    /* ===== CSS Custom Properties ===== */
    :root {
        --midnight-950: #060f21;
        --midnight-900: #0a1835;
        --midnight-800: #0f234a;
        --midnight-700: #153063;
        --midnight-600: #1e4080;
        --midnight-300: #7493c4;
        --midnight-200: #a3b8d6;
        --midnight-100: #d0dbe8;
        --mint-400: #4ade80;
        --mint-500: #22c55e;
        --mint-300: #86efac;
    }

    /* ===== Smooth Scrolling ===== */
    html {
        scroll-behavior: smooth;
    }

    /* ===== Scroll Reveal Base (progressive enhancement) ===== */
    @media (prefers-reduced-motion: no-preference) {
        .reveal {
            opacity: 0;
            transform: translateY(30px);
            transition: opacity 0.7s cubic-bezier(0.16, 1, 0.3, 1), transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
        }
        .reveal.revealed {
            opacity: 1;
            transform: translateY(0);
        }
    }

    /* Without animation preference, always show content */
    @media (prefers-reduced-motion: reduce) {
        .reveal {
            opacity: 1;
            transform: none;
        }
    }

    /* ===== Hero Animations (first-gen only, above fold) ===== */
    #heroEyebrow {
        animation: slideInLeft 0.8s cubic-bezier(0.16, 1, 0.3, 1) 0.2s forwards;
        opacity: 0;
    }
    #heroHeadline {
        animation: slideInUp 0.9s cubic-bezier(0.16, 1, 0.3, 1) 0.4s forwards;
        opacity: 0;
    }
    #heroSub {
        animation: slideInUp 0.9s cubic-bezier(0.16, 1, 0.3, 1) 0.6s forwards;
        opacity: 0;
    }
    #heroCTAs {
        animation: slideInUp 0.9s cubic-bezier(0.16, 1, 0.3, 1) 0.8s forwards;
        opacity: 0;
    }

    @keyframes slideInLeft {
        from {
            opacity: 0;
            transform: translateX(-30px);
        }
        to {
            opacity: 1;
            transform: translateX(0);
        }
    }

    @keyframes slideInUp {
        from {
            opacity: 0;
            transform: translateY(40px);
        }
        to {
            opacity: 1;
            transform: translateY(0);
        }
    }

    /* ===== Navbar Transition ===== */
    #navbar.scrolled {
        background: rgba(6, 15, 33, 0.95);
        backdrop-filter: blur(20px);
        border-bottom: 1px solid rgba(74, 222, 128, 0.1);
        box-shadow: 0 4px 30px rgba(0, 0, 0, 0.3);
    }

    /* ===== Mobile Menu ===== */
    #mobileMenu.open {
        opacity: 1;
        pointer-events: all;
    }

    /* ===== Custom Scrollbar ===== */
    ::-webkit-scrollbar {
        width: 8px;
    }
    ::-webkit-scrollbar-track {
        background: var(--midnight-950);
    }
    ::-webkit-scrollbar-thumb {
        background: var(--midnight-700);
        border-radius: 4px;
    }
    ::-webkit-scrollbar-thumb:hover {
        background: var(--midnight-600);
    }

    /* ===== Selection ===== */
    ::selection {
        background: rgba(74, 222, 128, 0.3);
        color: white;
    }

    /* ===== Focus Styles ===== */
    a:focus-visible,
    button:focus-visible {
        outline: 2px solid var(--mint-400);
        outline-offset: 2px;
        border-radius: 4px;
    }

    /* ===== Image Optimization ===== */
    img {
        max-width: 100%;
        height: auto;
    }

    /* ===== Reduced Motion ===== */
    @media (prefers-reduced-motion: reduce) {
        *,
        *::before,
        *::after {
            animation-duration: 0.01ms !important;
            animation-iteration-count: 1 !important;
            transition-duration: 0.01ms !important;
        }
        html {
            scroll-behavior: auto;
        }
        #heroEyebrow,
        #heroHeadline,
        #heroSub,
        #heroCTAs {
            opacity: 1;
            animation: none;
        }
    }
