body {
    margin: 0;
    padding: 120px 24px 40px 24px;
    font-family: 'Inter', sans-serif;
    background-color: #F9F9F6;
    color: #1A1A1A;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    box-sizing: border-box;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;

    /* --- NEW GRID BACKGROUND --- */
    background-color: #F9F9F6;
    /* This creates a 40px grid with very faint 1px lines */
    background-image: 
        linear-gradient(to right, rgba(0,0,0,0.04) 1px, transparent 1px),
        linear-gradient(to bottom, rgba(0,0,0,0.04) 1px, transparent 1px);
    background-size: 40px 40px;
    background-attachment: fixed; /* Keeps grid static while you scroll */
}

header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    padding: 24px 40px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 10;

    /* Update background to be semi-transparent + blur */
    background-color: rgba(249, 249, 246, 0.7); /* 70% opacity match to body color */
    backdrop-filter: blur(8px); /* Blurs the grid lines behind header */
    -webkit-backdrop-filter: blur(8px); /* Safari support */
    border: 1px solid rgba(255, 255, 255, 0.4); 
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.02); /* Very faint lift */

}

.logo {
    height: 32px;
    width: auto;
}

main {
    max-width: 680px;
    width: 100%;
    padding: 60px 40px;
    margin: auto;
    box-sizing: border-box;
    text-align: left;
    opacity: 0;
    transform: translateY(8px);
    animation: fadeUp 0.8s cubic-bezier(0.2, 0.8, 0.2, 1) forwards;
    
}

@keyframes fadeUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

h1 {
    font-weight: 600;  /* Was 700 → Semibold for restrained authority */
    font-size: 48px;
    color: #111111;
    margin: 0 0 24px 0;
    line-height: 1.2;
    letter-spacing: -0.03em;
}

h1 span {
    display: block;
}

.subline {
    font-size: 22px;
    margin: 0 0 48px 0;
    line-height: 1.4;
    color: #4A4A4A;
}

.outcomes {
    list-style: none;
    padding: 0;
    margin: 0 0 48px 0;
}

.outcomes li {
    font-size: 20px;
    line-height: 1.5;
    margin-bottom: 24px;
    position: relative;
    padding-left: 32px;
    letter-spacing: -0.01em;
    /* Remove white-space: nowrap; and its media query */
}

.outcomes li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 4px;
    
    /* Size */
    width: 20px;
    height: 20px;
    
    /* The File */
    background-image: url('checkmark.svg');
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
}

.outcomes strong {
    font-weight: 600;
}

.cta {
    margin-bottom: 32px;
}

.cta label {
    display: block;
    font-weight: 600;
    font-size: 18px;
    color: #111111;
    margin-bottom: 12px;
}

form {
    display: flex;
    gap: 12px;
    max-width: 480px;
}

input[type="email"]:hover {
    border-color: rgba(0, 0, 0, 0.3);
}

input[type="email"] {
    flex: 1;
    padding: 12px 16px;
    font-size: 16px;
    background-color: transparent; /* Blends with background */
    border: 1px solid rgba(0, 0, 0, 0.15); /* Softer than #cccccc */
    border-radius: 6px; /* Slightly more modern than 4px */
    transition: all 0.2s ease; /* Smooth hover/focus effects */
}

input[type="email"]:focus {
    outline: none;
    border-color: #111111;
    box-shadow: 0 0 0 1px #111111; /* Clean sharp border instead of fuzzy glow */
}

button {
    padding: 12px 24px;
    font-weight: 600;
    font-size: 16px;
    background-color: #111111;
    color: white;
    border: none;
    border-radius: 6px;
    transition: transform 0.1s ease, background-color 0.2s ease;
    cursor: pointer;
}

button:active {
    transform: scale(0.98); /* Subtle "press" effect */
}

button:hover {
    background-color: #333333;
}

.typewriter {
    opacity: 0;
    transform: translateY(20px);
    animation: slideUpFade 1.2s forwards cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

@keyframes slideUpFade {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Staggered delays for natural reading flow */
.subline { animation-delay: 0.6s; }
.outcomes { animation-delay: 1.2s; }
.cta { animation-delay: 1.8s; }
.microcopy { animation-delay: 2.2s; }
.typewriter-paragraph + .typewriter-paragraph {
    margin-top: 24px;          /* Clean separation between paragraphs */
}

.success {
    font-size: 16px;
    color: #111111;
    margin-top: 12px;
    display: none;
}

.microcopy {
    font-size: 14px;
    color: #4A4A4A;
}

/* Overlay */
.overlay {
    display: none;
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(0,0,0,0.4);
    justify-content: center;
    align-items: center;
    z-index: 20;
}

.card {
    background: #F9F9F6;
    max-width: 460px;
    width: 90%;
    padding: 40px;
    border-radius: 8px;
    opacity: 0;
    transform: translateY(20px) scale(0.95);
    box-shadow: 0 4px 20px rgba(0,0,0,0);
    transition: 
        opacity 400ms cubic-bezier(0.25, 0.8, 0.25, 1),
        transform 500ms cubic-bezier(0.25, 0.8, 0.25, 1),
        box-shadow 500ms ease;
    min-height: 320px;  /* Pre-set height for full text → no resize */
}

.card h2 {
    font-weight: 600;
    font-size: 24px;
    margin: 0 0 24px 0;
    color: #111111;
}

.card p {
    line-height: 1.6;          /* Normal readable spacing */
    margin: 0 0 32px 0;        /* Bottom margin only */
    min-height: 240px;         /* Reserves space for full text */
    opacity: 1;
    transition: opacity 500ms ease;
}

.close {
    font-size: 16px;
    color: #111111;
    text-decoration: underline;
    cursor: pointer;
}

/* The Scanner Beam */
.scanline {
    width: 100%;
    height: 100px;
    z-index: 1;
    background: linear-gradient(0deg, rgba(0,0,0,0) 0%, rgba(17, 17, 17, 0.04) 50%, rgba(0,0,0,0) 100%);
    opacity: 0.1;
    position: fixed; /* Stays on screen while you scroll */
    bottom: 100%;
    animation: scanline 10s linear infinite;
    pointer-events: none; /* Ensures you can click through it */
}

@keyframes scanline {
    0% {
        transform: translateY(0);
    }
    100% {
        transform: translateY(120vh); /* Moves all the way down and off screen */
    }
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .outcomes li {
        line-height: 1.4;
    }
    body { 
        justify-content: flex-start; 
        padding-top: 120px; 
    }
    h1 span {
        display: inline;
    }
    
}

@media (max-width: 480px) {
    main {
        padding: 48px 24px;
        backdrop-filter: blur(8px);
    }
    header {
        padding: 24px;
    }
    form {
        flex-direction: column;
    }
    button {
        width: 100%;
        margin-top: 8px;
    }
}

@media (max-width: 360px) {
    main {
        padding: 0 16px;
    }
    header {
        padding: 16px;
    }
}

.protocol-link {
    font-size: 13px;
    color: rgba(74, 74, 74, 0.3);  /* #4A4A4A at 30% opacity */
    text-decoration: none;
    transition: color 300ms ease;
}

.protocol-link:hover {
    color: rgba(74, 74, 74, 0.8);  /* Becomes more visible on hover */
}

@media (prefers-color-scheme: dark) {
    /* 1. Invert the Base & Grid */
    body {
        background-color: #111111; /* The deep void */
        color: #EAEAEB; /* Off-white for readability (pure white is too harsh) */
        
        /* The Grid: Faint white lines instead of black */
        background-image: 
            linear-gradient(to right, rgba(255, 255, 255, 0.03) 1px, transparent 1px),
            linear-gradient(to bottom, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
    }

    /* 2. Dark Frosted Glass for Main & Header */
    header {
        background-color: rgba(17, 17, 17, 0.75); /* Dark tint */
        border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    }

    main {
        background-color: rgba(17, 17, 17, 0.6);
        box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5); /* Stronger shadow for depth in dark */
        border: 1px solid rgba(255, 255, 255, 0.03); /* Subtle edge highlight */
    }

    .outcomes li::before {
        /* This flips the black icon to white, exactly like your logo */
        filter: invert(1);
    }

    /* 3. Typography Adjustments */
    h1, .card h2 {
        color: #FFFFFF; /* Pure white for hierarchy */
    }
    
    .subline, .microcopy, .protocol-link {
        color: #A0A0A0; /* Dimmed text */
    }

    /* 4. Form Elements */
    input[type="email"] {
        color: #FFFFFF;
        border-color: rgba(255, 255, 255, 0.2);
    }
    
    input[type="email"]:focus {
        border-color: #FFFFFF;
        box-shadow: 0 0 0 1px #FFFFFF;
    }
    
    input[type="email"]::placeholder {
        color: rgba(255, 255, 255, 0.3);
    }

    /* High Contrast Button (White on Black background) */
    button {
        background-color: #FFFFFF;
        color: #111111;
    }
    
    button:hover {
        background-color: #E0E0E0;
    }

    /* 5. The Logo Fix */
    /* Since your logo is likely black, we need to invert it to white */
    .logo {
        filter: invert(1);
    }
    
    /* 6. Protocol Card (The "Secret" Overlay) */
    .card {
        background: #1A1A1A; /* Slightly lighter than body */
        border: 1px solid rgba(255, 255, 255, 0.1);
    }
    
    .close {
        color: #FFFFFF;
    }

    .cta label {
        color: #FFFFFF;
    }

    .scanline {
        /* Invert the beam to white for dark mode */
        background: linear-gradient(0deg, rgba(255,255,255,0) 0%, rgba(255, 255, 255, 0.04) 50%, rgba(255,255,255,0) 100%);
        opacity: 0.05; /* Even more subtle in dark mode */
    }
}