/* Apple-style Design System */
:root {
    --bg-dark: #000000; /* Apple uses pure black for OLED displays */
    --neon-green: #00ff9d;
    --text-main: #f5f5f7;
    --text-muted: #86868b;
    --glass-bg: rgba(255, 255, 255, 0.02);
    --glass-border: rgba(255, 255, 255, 0.05);
}

* { margin: 0; padding: 0; box-sizing: border-box; }

body {
    background-color: var(--bg-dark);
    color: var(--text-main);
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    line-height: 1.4;
    overflow-x: hidden;
}

/* --- APPLE FROSTED NAVIGATION --- */
.navbar {
    position: fixed; /* Locks to top */
    top: 0;
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem 5%;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(12px); /* The Apple Glass Effect */
    -webkit-backdrop-filter: blur(12px);
    z-index: 1000;
    border-bottom: 1px solid var(--glass-border);
}

.nav-brand { font-weight: 700; font-size: 1.5rem; letter-spacing: -1px; }
.nav-links { display: flex; align-items: center; gap: 2rem; }
.nav-links a { color: var(--text-main); opacity: 0.8; text-decoration: none; font-size: 0.85rem; transition: opacity 0.3s; }
.nav-links a:hover { opacity: 1; }

/* --- HERO SECTION --- */
.hero {
    height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding-top: 60px; /* Offset for fixed nav */
}

.super-title { color: var(--neon-green); font-size: 0.9rem; font-weight: 600; letter-spacing: 0.2rem; margin-bottom: 1rem; }
.logo { font-size: 12vw; font-weight: 800; line-height: 1; letter-spacing: -6px; }
.highlight { color: var(--neon-green); }
.subtitle { color: var(--text-main); font-size: 2rem; font-weight: 600; letter-spacing: -1px; margin: 1.5rem 0 3rem; }

/* Input & Buttons */
.cta-group { display: flex; justify-content: center; gap: 10px; max-width: 450px; margin: 0 auto; }
.email-input {
    flex: 1;
    background: rgba(255,255,255,0.05);
    border: none;
    padding: 15px 25px;
    border-radius: 30px; /* Apple loves pill-shaped inputs */
    color: white;
    font-size: 1rem;
    outline: none;
}
.btn-primary, .btn-outline {
    padding: 15px 30px;
    border-radius: 30px; /* Pill shape */
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
}
.btn-primary { background: var(--text-main); color: var(--bg-dark); border: none; }
.btn-primary:hover { transform: scale(1.05); }
.btn-outline { background: transparent; border: 1px solid var(--glass-border); color: var(--text-main); }
.btn-outline:hover { background: var(--text-main); color: var(--bg-dark); }

/* --- APPLE-STYLE SCROLL SECTIONS --- */
.about {
    max-width: 1200px;
    margin: 0 auto;
    padding: 150px 5% 200px;
}

.cinematic-text {
    text-align: center;
    margin-bottom: 100px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}
.cinematic-text h2 { font-size: 4rem; font-weight: 700; letter-spacing: -2px; margin-bottom: 1.5rem; line-height: 1.1; }
.cinematic-text p { font-size: 1.5rem; color: var(--text-muted); font-weight: 400; }

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 30px;
}

.feature-card {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    padding: 50px 40px;
    border-radius: 24px; /* Apple uses large, smooth border radii */
}
.card-icon { font-size: 3rem; margin-bottom: 1.5rem; }
.feature-card h3 { font-size: 1.8rem; font-weight: 600; margin-bottom: 1rem; }
.feature-card p { color: var(--text-muted); font-size: 1.1rem; line-height: 1.5; }

/* --- THE SECRET SAUCE: SCROLL REVEAL ANIMATIONS --- */
.reveal {
    opacity: 0;
    transform: translateY(60px) scale(0.95); /* Starts lower and slightly smaller */
    transition: all 1s cubic-bezier(0.25, 1, 0.5, 1); /* Apple's smooth spring-like easing */
}

.reveal.active {
    opacity: 1;
    transform: translateY(0) scale(1); /* Floats up and scales to normal */
}

/* Staggering the cards so they don't appear all at once */
.delay-1 { transition-delay: 0.1s; }
.delay-2 { transition-delay: 0.3s; }
.delay-3 { transition-delay: 0.5s; }

/* Add this to your style.css */
.reveal {
    opacity: 1; /* Change from 0 to 1 if you want them visible by default */
    transform: translateY(0);
    transition: all 1s cubic-bezier(0.25, 1, 0.5, 1);
}

.reveal.hidden {
    opacity: 0;
    transform: translateY(60px);
}

/* =========================================
   MOBILE RESPONSIVENESS (APPLE-STYLE)
   ========================================= */
@media (max-width: 768px) {
    
    /* 1. Stack the Navigation Bar */
    .navbar {
        flex-direction: column;
        padding: 1rem 5%;
        gap: 12px;
    }
    .nav-links {
        width: 100%;
        justify-content: center;
        flex-wrap: wrap; /* Allows links to wrap to a second line if needed */
        row-gap: 10px;
        column-gap: 15px;
    }

    /* 2. Fix the Hero Section & Typography */
    .hero {
        padding-top: 140px; /* Pushes content down so the taller nav doesn't cover it */
        padding-left: 5%;
        padding-right: 5%;
        height: auto;
        min-height: 100vh;
    }
    .logo { 
        font-size: 20vw; /* Scales perfectly to the phone width */
        letter-spacing: -3px; 
    }
    .subtitle { 
        font-size: 1.2rem; 
        margin: 1rem 0 2rem;
    }

    /* 3. Stack Inputs and Buttons */
    .cta-group {
        flex-direction: column;
        width: 100%;
    }
    .email-input, .btn-primary, .btn-outline {
        width: 100%;
        text-align: center;
        justify-content: center;
    }

    /* 4. Cinematic Spacing for Mobile */
    .about { 
        padding: 60px 5% 100px; 
    }
    .cinematic-text { 
        margin-bottom: 50px; 
    }
    .cinematic-text h2 { 
        font-size: 2.5rem; 
        letter-spacing: -1px;
    }
    .cinematic-text p { 
        font-size: 1.1rem; 
    }

    /* 5. Force 1-Column Layouts for Cards */
    .features-grid, .policy-grid, .about-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .feature-card { 
        padding: 30px 20px; 
    }
    
    /* Ensure Download PDF buttons stack nicely under titles on phones */
    .policy-header { 
        flex-direction: column; 
        align-items: flex-start; 
        gap: 15px; 
    }
}

/* Modal Styling */
.modal-overlay {
    position: fixed; top: 0; left: 0; width: 100%; height: 100vh;
    background: rgba(0, 0, 0, 0.7); backdrop-filter: blur(10px);
    display: flex; justify-content: center; align-items: center;
    z-index: 9999; opacity: 0; visibility: hidden; transition: 0.3s;
}
.modal-overlay.show { opacity: 1; visibility: visible; }
.modal-content {
    background: var(--glass-bg); padding: 40px; border-radius: 24px;
    width: 90%; max-width: 400px; text-align: center; position: relative;
}
.close-modal {
    position: absolute; top: 15px; right: 20px; font-size: 2rem; cursor: pointer; color: white;
}