/*
 * =============================================================================
 * DESIGN TOKENS — Premium SaaS (16px base)
 * =============================================================================
 *
 * TYPOGRAPHY SCALE (use only these steps; weights fixed per role)
 * -----------------------------------------------------------------------------
 * | Token    | Rem      | Px (≈) | Weight | Line-height | Letter-spacing   |
 * |----------|----------|--------|--------|-------------|------------------|
 * | H1       | 2.375–3.25* | 38–52 | 700 | 1.08        | -0.035em         |
 * | H2       | 1.5–2*   | 24–32  | 700    | 1.18        | -0.03em          |
 * | H3       | 1.125    | 18     | 600    | 1.4         | -0.012em         |
 * | Body     | 1        | 16     | 400    | 1.625       | 0                |
 * | Small    | 0.875    | 14     | 400    | 1.5         | 0                |
 * | Label    | 0.75     | 12     | 600    | 1.25        | 0.05em (caps)    |
 * | Lead     | 1.125    | 18     | 400    | 1.55        | 0                |
 * *H1/H2 use clamp() for responsive bounds — no arbitrary sizes elsewhere.
 *
 * COLOR PALETTE (minimal; WCAG-oriented contrast on light backgrounds)
 * -----------------------------------------------------------------------------
 * | Role            | Hex       | Notes                                    |
 * |-----------------|-----------|------------------------------------------|
 * | Primary         | #6090F0   | Favicon blue — CTAs, links, focus        |
 * | Primary hover   | #3C549C   | Interactive hover (sampled mid-blue)     |
 * | Primary subtle  | #DBEAFE   | Chips, nav active bg, icon wells         |
 * | Secondary (ink) | #0F172A   | Headings, strong emphasis              |
 * | Text body       | #334155   | slate-700 — readable body (~7:1 on #FFF)|
 * | Text muted      | #64748B   | slate-500 — secondary UI text          |
 * | Border          | #E2E8F0   | slate-200                              |
 * | Background      | #F8FAFC   | slate-50                               |
 * | Surface         | #FFFFFF   | Cards, header                            |
 * | Dark bg         | #0F172A   | Trust band, CTA, footer                |
 * | On-dark text    | #F8FAFC   | Primary text on dark                   |
 * | On-dark muted   | #94A3B8   | slate-400 on dark                      |
 * =============================================================================
 */
        :root {
            --font-sans: 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;
            --font-display: 'Bricolage Grotesque', 'Inter', system-ui, sans-serif;
            --font-mono: 'JetBrains Mono', ui-monospace, 'Cascadia Code', monospace;

            --color-primary: #6090f0;
            --color-primary-hover: #3c549c;
            --color-primary-muted: #6c9cf0;
            --color-link-hover-bright: #a8c0fc;
            --color-primary-subtle: rgba(96, 144, 240, 0.22);
            --color-secondary: #000c3c;

            /* Light text on PCSX2-style deep navy canvas */
            --color-text: #f1f5f9;
            --color-text-body: #cbd5e1;
            --color-text-muted: #94a3b8;
            --color-text-faint: #64748b;

            --color-bg: #040a14;
            --color-surface: #0c1525;
            --color-surface-raised: #111f36;
            --color-border: rgba(96, 144, 240, 0.14);
            --color-border-strong: rgba(148, 163, 184, 0.28);

            --color-dark-bg: #02142e;
            --color-dark-elevated: #123a62;
            --color-dark-text: #eff6ff;
            --color-dark-muted: #94a3b8;
            --color-dark-accent: #a8c0fc;

            --color-text-secondary: var(--color-text-body);
            --color-bg-canvas: var(--color-bg);
            --color-bg-elevated: var(--color-surface);
            --primary: var(--color-primary);
            --primary-dark: var(--color-primary-hover);

            --fs-h1: clamp(2.75rem, 0.65rem + 6vw, 4.5rem);
            --fs-h2: clamp(1.75rem, 0.5rem + 2.8vw, 2.375rem);
            --fs-h3: 1.125rem;
            --fs-lead: 1.125rem;
            --fs-body: 1rem;
            --fs-small: 0.875rem;
            --fs-label: 0.75rem;

            --fw-normal: 400;
            --fw-medium: 500;
            --fw-semibold: 600;
            --fw-bold: 700;

            --lh-h1: 1;
            --lh-h2: 1.1;
            --lh-h3: 1.45;
            --lh-body: 1.65;
            --lh-lead: 1.55;
            --lh-small: 1.5;
            --lh-label: 1.25;

            --ls-h1: -0.045em;
            --ls-h2: -0.036em;
            --ls-h3: -0.015em;
            --ls-label: 0.06em;

            --ink: var(--color-text);
            --ink-muted: var(--color-text-body);
            --ink-faint: var(--color-text-muted);
            --border: var(--color-border);
            --border-strong: var(--color-border-strong);
            --radius-sm: 0.375rem;
            --radius-md: 0.5rem;
            --radius-lg: 0.75rem;
            --radius-xl: 1rem;
            --radius-2xl: 1.25rem;
            --radius-3xl: 1.5rem;
            --radius-4xl: 2rem;
            --section-y: clamp(4.75rem, 10vw, 8rem);
            --header-h: 4.25rem;

            --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.35);
            --shadow-md: 0 8px 32px -8px rgba(0, 0, 0, 0.45);
            --shadow-lg: 0 24px 48px -16px rgba(0, 0, 0, 0.5);
            --shadow-glow-primary: 0 20px 56px -14px rgba(96, 144, 240, 0.38);
            --aurora-cyan: rgba(96, 144, 240, 0.16);
            --aurora-violet: rgba(60, 84, 156, 0.2);
        }

        html {
            color-scheme: dark;
            -webkit-font-smoothing: antialiased;
            -moz-osx-font-smoothing: grayscale;
            font-optical-sizing: auto;
            scroll-padding-top: calc(var(--header-h) + 0.5rem);
        }

        body.site-body {
            font-family: var(--font-sans);
            font-size: var(--fs-body);
            line-height: var(--lh-body);
            font-weight: var(--fw-normal);
            color: var(--color-text-body);
            background-color: var(--color-bg);
        }
        /* Slow atmospheric layer (no grid — soft color fields) */
        body.site-body-atmos::before {
            content: '';
            position: fixed;
            inset: 0;
            z-index: -1;
            pointer-events: none;
            background:
                radial-gradient(ellipse 120% 85% at 50% -25%, rgba(96, 144, 240, 0.12), transparent 55%),
                radial-gradient(ellipse 90% 70% at 100% 60%, rgba(18, 58, 98, 0.35), transparent 50%),
                radial-gradient(ellipse 80% 55% at 0% 100%, rgba(2, 20, 46, 0.9), transparent 45%),
                var(--color-bg);
            animation: none;
        }
        @keyframes site-atmosphere-drift {
            0% { transform: scale(1) translate(0, 0); }
            100% { transform: scale(1.02) translate(0, 0.25%); }
        }

        ::selection {
            background-color: var(--color-primary-subtle);
            color: #f8fafc;
        }

        .type-body {
            font-size: var(--fs-body);
            line-height: var(--lh-body);
            font-weight: var(--fw-normal);
            color: var(--color-text-body);
        }

        main strong {
            font-weight: var(--fw-semibold);
            color: var(--color-text);
        }

        /* Map Tailwind slate utilities → readable hierarchy on dark canvas */
        main .text-slate-900,
        main .text-slate-800 {
            color: var(--color-text) !important;
        }
        main .text-slate-700 {
            color: var(--color-text-body) !important;
        }
        main .text-slate-600 {
            color: var(--color-text-body) !important;
        }
        main .text-slate-500 {
            color: var(--color-text-muted) !important;
        }

        /* Inline links — distinct from body (primary hue + underline) */
        main a.text-brand-600 {
            color: var(--color-primary-muted) !important;
            font-weight: var(--fw-medium);
            text-decoration: underline;
            text-underline-offset: 3px;
            text-decoration-thickness: 1px;
            text-decoration-color: rgba(96, 144, 240, 0.45);
            transition: color 0.15s ease, text-decoration-color 0.15s ease;
        }
        main a.text-brand-600:hover {
            color: var(--color-link-hover-bright) !important;
            text-decoration-color: rgba(168, 192, 252, 0.65);
        }

        .footer-site .text-sky-400 {
            color: var(--color-dark-accent) !important;
        }
        .footer-site .text-sky-400:hover {
            color: #c8daf8 !important;
        }
        :focus:not(:focus-visible) { outline: none; }
        a:focus-visible, button:focus-visible, summary:focus-visible {
            outline: 2px solid var(--primary);
            outline-offset: 2px;
            border-radius: var(--radius-sm);
        }
        .skip-to-content {
            position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0;
        }
        .skip-to-content:focus {
            position: fixed; left: 1rem; top: 1rem; z-index: 200; width: auto; height: auto; margin: 0; padding: 0.625rem 1rem;
            clip: auto; white-space: normal; border-radius: var(--radius-sm); background: #0f172a; color: #f8fafc; font-weight: var(--fw-medium); font-size: var(--fs-small);
            box-shadow: 0 12px 40px rgba(0,0,0,.5);
        }
        #header.site-header {
            height: var(--header-h);
            border-bottom-color: transparent;
            transition: height .35s cubic-bezier(.16, 1, .3, 1), box-shadow .35s ease, background-color .35s ease, border-color .25s ease;
            background: rgba(4, 10, 20, 0.82) !important;
            backdrop-filter: blur(20px) saturate(1.12);
            -webkit-backdrop-filter: blur(20px) saturate(1.12);
        }
        #header .text-slate-900 { color: var(--color-text) !important; }
        #mobile-menu .text-slate-800 { color: var(--color-text-body) !important; }
        #header .border-slate-200 { border-color: var(--color-border-strong) !important; }
        #header .text-slate-600 { color: var(--color-text-muted) !important; }
        #header a.nav-brand:hover { background-color: rgba(255, 255, 255, 0.05) !important; }
        /* Brand mark: flat favicon, no halo ring or Tailwind ring around the image */
        .nav-brand-mark {
            position: relative;
            flex-shrink: 0;
            padding: 0;
            border-radius: 0.75rem;
            overflow: visible;
        }
        .nav-brand-mark::before {
            display: none;
        }
        @keyframes nav-brand-orbit {
            to { transform: rotate(360deg); }
        }
        .nav-brand-mark-inner {
            position: relative;
            z-index: 1;
            box-shadow: none !important;
            --tw-ring-shadow: 0 0 #0000 !important;
            --tw-ring-offset-shadow: 0 0 #0000 !important;
        }
        #header .nav-brand-mark img {
            border: 0;
            outline: none;
            display: block;
        }
        #header.site-header.is-scrolled {
            --header-h: 3.875rem;
            border-bottom-color: rgba(96, 144, 240, 0.12);
            box-shadow: var(--shadow-sm), 0 18px 40px -24px rgba(0, 0, 0, 0.4);
            background: rgba(4, 10, 20, 0.92) !important;
            backdrop-filter: blur(20px) saturate(1.15);
            -webkit-backdrop-filter: blur(20px) saturate(1.15);
        }
        #mobile-menu {
            background: rgba(4, 10, 20, 0.97) !important;
            backdrop-filter: blur(16px) saturate(1.08);
            -webkit-backdrop-filter: blur(16px) saturate(1.08);
            border-top-color: rgba(96, 144, 240, 0.12) !important;
        }
        #mobile-menu .mobile-nav-link:hover,
        #mobile-menu a.mobile-nav-link:hover {
            background-color: rgba(255, 255, 255, 0.06) !important;
        }
        #header #menu-toggle:hover {
            background-color: rgba(255, 255, 255, 0.06) !important;
        }
        .back-to-top {
            background-color: var(--color-surface) !important;
            border-color: var(--color-border-strong) !important;
            color: var(--color-text-muted) !important;
        }
        .back-to-top:hover {
            border-color: rgba(96, 144, 240, 0.35) !important;
            color: var(--color-text) !important;
        }
        @media (prefers-reduced-motion: reduce) {
            #header { transition: none; }
            body.site-body-atmos::before {
                animation: none;
                transform: none;
                opacity: 1;
            }
            .hero-orb { animation: none; }
            .nav-brand-mark::before { animation: none; }
            .fab-download-glow { animation: none !important; }
            .section-spotlight a.highlight-tile.card-interactive,
            .section-spotlight a.highlight-tile.card-interactive:hover {
                transform: none !important;
            }
            .btn-primary,
            .btn-accent,
            .hero-btn-primary {
                background-position: 0% 50% !important;
                transition-duration: 0.01ms !important;
            }
        }
        .nav-link {
            position: relative;
            font-size: var(--fs-small);
            font-weight: var(--fw-medium);
            letter-spacing: 0.01em;
            color: var(--ink-muted);
            padding: 0.5rem 0.75rem;
            border-radius: 9999px;
            transition: color .2s ease, background .2s ease, transform .2s ease;
        }
        .nav-link::after { display: none; }
        .nav-link:hover { color: var(--ink); background: rgba(96, 144, 240, 0.12); }
        #header .nav-link.active {
            color: #e2e8f0;
            background: linear-gradient(180deg, rgba(96, 144, 240, 0.18), rgba(17, 31, 54, 0.95));
            box-shadow:
                0 0 0 1px rgba(96, 144, 240, 0.22),
                0 6px 24px -8px rgba(0, 0, 0, 0.35);
        }
        .btn-primary {
            display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem;
            min-height: 2.75rem; padding: 0 1.25rem;
            font-size: var(--fs-small); font-weight: var(--fw-semibold); line-height: 1.25; color: #fff;
            border-radius: var(--radius-lg);
            background: linear-gradient(105deg, var(--color-primary-muted) 0%, var(--primary) 40%, var(--primary-dark) 55%, #3654b0 100%);
            background-size: 220% 100%;
            background-position: 0% 50%;
            box-shadow: var(--shadow-sm), var(--shadow-glow-primary);
            transition: transform .2s, filter .2s, box-shadow .2s, background-position 0.65s cubic-bezier(.16, 1, .3, 1);
        }
        .btn-primary:hover {
            filter: brightness(1.05);
            background-position: 100% 50%;
            box-shadow: var(--shadow-md), 0 16px 36px -10px rgba(96, 144, 240, 0.35);
        }
        .btn-primary:active { transform: scale(0.98); }
        .btn-accent {
            display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem;
            min-height: 2.75rem; padding: 0 1.25rem;
            font-size: var(--fs-small); font-weight: var(--fw-semibold); line-height: 1.25; color: #fff;
            border-radius: var(--radius-lg);
            background: linear-gradient(105deg, var(--color-primary-muted) 0%, var(--primary) 40%, var(--primary-dark) 55%, #3654b0 100%);
            background-size: 220% 100%;
            background-position: 0% 50%;
            box-shadow: var(--shadow-sm), var(--shadow-glow-primary);
            transition: transform .2s, filter .2s, box-shadow .2s, background-position 0.65s cubic-bezier(.16, 1, .3, 1);
        }
        .btn-accent:hover {
            filter: brightness(1.05);
            background-position: 100% 50%;
            box-shadow: var(--shadow-md), 0 16px 36px -10px rgba(96, 144, 240, 0.35);
        }
        .btn-accent:active { transform: scale(0.98); }
        .btn-ghost {
            display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem;
            min-height: 2.75rem; padding: 0 1.25rem;
            font-size: var(--fs-small); font-weight: var(--fw-semibold); color: var(--ink);
            background: var(--color-surface); border: 1px solid var(--border); border-radius: var(--radius-lg);
            transition: border-color .2s, background .2s, box-shadow .2s;
        }
        .btn-ghost:hover { border-color: var(--border-strong); background: var(--color-surface-raised); box-shadow: 0 1px 2px rgba(0, 0, 0, 0.25); }
        .eyebrow {
            font-family: var(--font-display);
            font-size: var(--fs-label);
            font-weight: var(--fw-semibold);
            line-height: var(--lh-label);
            letter-spacing: var(--ls-label);
            text-transform: uppercase;
            color: #93c5fd;
            font-optical-sizing: auto;
        }
        .t-display {
            font-family: var(--font-display);
            font-optical-sizing: auto;
            font-size: var(--fs-h1);
            font-weight: 800;
            line-height: var(--lh-h1);
            letter-spacing: var(--ls-h1);
            color: var(--color-text);
        }
        .t-title {
            font-family: var(--font-display);
            font-size: var(--fs-h2);
            font-weight: var(--fw-bold);
            line-height: var(--lh-h2);
            letter-spacing: var(--ls-h2);
            color: var(--color-text);
            font-optical-sizing: auto;
        }
        .t-h3 {
            font-family: var(--font-display);
            font-optical-sizing: auto;
            font-size: var(--fs-h3);
            font-weight: var(--fw-semibold);
            line-height: var(--lh-h3);
            letter-spacing: var(--ls-h3);
            color: var(--color-text);
        }
        .type-lead {
            font-size: var(--fs-lead);
            line-height: var(--lh-lead);
            font-weight: var(--fw-normal);
            color: var(--color-text-body);
        }
        .type-small {
            font-size: var(--fs-small);
            line-height: var(--lh-small);
            font-weight: var(--fw-normal);
            color: var(--color-text-muted);
        }
        .type-caption {
            font-size: var(--fs-label);
            line-height: var(--lh-label);
            font-weight: var(--fw-normal);
            color: var(--color-text-muted);
        }
        main a.link-primary {
            color: var(--primary);
            font-weight: var(--fw-medium);
            text-decoration: underline;
            text-underline-offset: 3px;
            text-decoration-thickness: 1px;
            text-decoration-color: rgba(96,144,240,.35);
            transition: color .15s, text-decoration-color .15s;
        }
        main a.link-primary:hover {
            color: var(--color-link-hover-bright);
            text-decoration-color: rgba(168, 192, 252, 0.55);
        }
        .section-y { padding-top: var(--section-y); padding-bottom: var(--section-y); }
        .section-anchor { scroll-margin-top: calc(var(--header-h) + 1rem); }
        .reveal { opacity: 0; transform: translateY(14px); transition: opacity .6s cubic-bezier(.22,1,.36,1), transform .6s cubic-bezier(.22,1,.36,1); }
        .reveal.visible { opacity: 1; transform: translateY(0); }
        .noise {
            pointer-events: none; opacity: 0.35;
            background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
        }
        .card-interactive { transition: transform .25s cubic-bezier(.16,1,.3,1), box-shadow .25s ease, border-color .2s; }
        .card-interactive:hover { transform: translateY(-2px); box-shadow: var(--shadow-lift, 0 12px 40px -12px rgba(0,0,0,.35)); border-color: rgba(96, 144, 240, 0.35) !important; }
        .icon-well {
            display: flex; align-items: center; justify-content: center; width: 2.75rem; height: 2.75rem;
            border-radius: var(--radius-lg);
            background: linear-gradient(145deg, rgba(96, 144, 240, 0.18) 0%, rgba(18, 58, 98, 0.45) 100%);
            color: var(--color-link-hover-bright);
            box-shadow: 0 1px 0 rgba(255, 255, 255, 0.08) inset, 0 4px 16px -4px rgba(0, 0, 0, 0.35);
        }
        .cta-rim {
            position: relative;
            border-radius: var(--radius-4xl);
            padding: 1px;
            background: linear-gradient(135deg, rgba(156, 180, 240, 0.7) 0%, rgba(96, 144, 240, 0.78) 38%, rgba(12, 18, 34, 0.95) 100%);
            box-shadow: var(--shadow-lg), 0 0 0 1px rgba(255, 255, 255, 0.06) inset;
        }
        .cta-rim-inner {
            border-radius: calc(var(--radius-4xl) - 1px);
            background: linear-gradient(172deg, #1e2a4a 0%, #1a2340 22%, var(--color-dark-elevated) 48%, var(--color-dark-bg) 78%, #030508 100%);
            box-shadow:
                0 1px 0 rgba(255, 255, 255, 0.07) inset,
                0 -40px 80px -40px rgba(96, 144, 240, 0.14) inset;
        }
        .cta-rim-inner .text-slate-400,
        .cta-rim-inner .text-slate-500 {
            color: var(--color-dark-muted) !important;
        }
        .cta-rim-inner .type-lead,
        .cta-rim-inner .type-small {
            color: var(--color-dark-muted) !important;
        }
        .cta-rim-inner .type-caption {
            color: var(--color-dark-muted) !important;
            opacity: 0.88;
        }
        .scrollbar-none { -ms-overflow-style: none; scrollbar-width: none; }
        .scrollbar-none::-webkit-scrollbar { display: none; }
        #mobile-menu:not(.open) { pointer-events: none; opacity: 0; visibility: hidden; }
        #mobile-menu.open { pointer-events: auto; opacity: 1; visibility: visible; }
        details summary::-webkit-details-marker { display: none; }
        .back-to-top { transition: opacity .3s ease, transform .3s ease; }
        .back-to-top:not(.visible) { opacity: 0; pointer-events: none; transform: translateY(8px); }
        .fab-download { transition: transform .2s ease, box-shadow .2s ease; }
        .fab-download:hover { transform: translateY(calc(-50% - 3px)) scale(1.02); box-shadow: 0 16px 40px -8px rgba(96,144,240,.45); }
        .fab-download-glow {
            animation: none;
        }
        @keyframes fab-download-breathe {
            0%, 100% {
                box-shadow: 0 0 0 1px rgba(96, 144, 240, 0.14), 0 20px 56px -14px rgba(96, 144, 240, 0.28);
            }
            50% {
                box-shadow: 0 0 0 1px rgba(96, 144, 240, 0.22), 0 22px 64px -12px rgba(96, 144, 240, 0.42);
            }
        }
        /* Hero floating orbs (organic, not a square grid) */
        .hero-deco {
            position: absolute;
            inset: 0;
            z-index: 0;
            pointer-events: none;
            overflow: hidden;
        }
        .hero-orb {
            position: absolute;
            border-radius: 50%;
            filter: blur(56px);
            opacity: 0.55;
            animation: none;
        }
        .hero-orb--a {
            width: min(46vw, 28rem);
            height: min(46vw, 28rem);
            background: radial-gradient(circle, rgba(96, 165, 250, 0.45) 0%, transparent 68%);
            top: -8%;
            right: -12%;
            animation-delay: 0s;
        }
        .hero-orb--b {
            width: min(38vw, 22rem);
            height: min(38vw, 22rem);
            background: radial-gradient(circle, rgba(60, 84, 156, 0.28) 0%, transparent 70%);
            bottom: 5%;
            left: -14%;
            animation-delay: -7s;
            animation-duration: 24s;
        }
        .hero-orb--c {
            width: min(32vw, 18rem);
            height: min(32vw, 18rem);
            background: radial-gradient(circle, rgba(96, 144, 240, 0.32) 0%, transparent 72%);
            top: 42%;
            left: 38%;
            animation-delay: -12s;
            animation-duration: 18s;
            opacity: 0.4;
        }
        @keyframes hero-orb-drift {
            0%, 100% { transform: translate(0, 0) scale(1); }
            33% { transform: translate(-14px, 12px) scale(1.06); }
            66% { transform: translate(10px, -8px) scale(0.96); }
        }
        /* Wave into dark trust band */
        .section-wave {
            position: relative;
            z-index: 1;
            line-height: 0;
            margin-top: clamp(1.5rem, 4vw, 2.5rem);
        }
        .section-wave-svg {
            display: block;
            width: 100%;
            height: clamp(3.25rem, 11vw, 5.25rem);
        }
        .section-wave-path {
            fill: var(--color-dark-bg);
        }
        .section-band-dark--wave {
            margin-top: -1px;
        }
        /* Hero — premium clarity */
        #home.hero-surface {
            position: relative;
            isolation: isolate;
            background: linear-gradient(165deg, #0a1628 0%, #060f1c 35%, var(--color-bg) 68%, #030811 100%);
            overflow: hidden;
        }
        #home.hero-surface::before {
            content: '';
            position: absolute;
            inset: 0;
            z-index: 0;
            background:
                radial-gradient(ellipse 90% 70% at 95% -15%, rgba(96, 144, 240, 0.14), transparent 52%),
                radial-gradient(ellipse 55% 45% at -5% 95%, rgba(2, 20, 46, 0.85), transparent 48%);
            pointer-events: none;
        }
        /* Soft aurora blobs — no grid pattern */
        #home.hero-surface::after {
            content: '';
            position: absolute;
            left: -20%;
            right: -20%;
            top: -35%;
            height: 95%;
            z-index: 0;
            background:
                radial-gradient(ellipse 42% 38% at 12% 42%, var(--aurora-violet), transparent 72%),
                radial-gradient(ellipse 38% 36% at 88% 28%, var(--aurora-cyan), transparent 70%),
                radial-gradient(ellipse 55% 45% at 52% 88%, rgba(96, 144, 240, 0.14), transparent 75%);
            filter: blur(72px);
            opacity: 0.85;
            pointer-events: none;
        }
        #home.hero-premium.hero-surface::before {
            background:
                radial-gradient(ellipse 95% 72% at 92% -12%, rgba(96, 144, 240, 0.18), transparent 54%),
                radial-gradient(ellipse 52% 42% at -6% 98%, rgba(18, 58, 98, 0.25), transparent 50%),
                radial-gradient(ellipse 70% 45% at 50% 108%, rgba(96, 144, 240, 0.1), transparent 42%);
        }
        #home .eyebrow {
            display: inline-flex;
            align-items: center;
            padding: 0.4rem 0.95rem;
            border-radius: 9999px;
            background: linear-gradient(180deg, rgba(17, 31, 54, 0.95), rgba(12, 21, 37, 0.88));
            border: 1px solid rgba(96, 144, 240, 0.28);
            box-shadow: 0 1px 0 rgba(255, 255, 255, 0.06) inset;
            letter-spacing: 0.07em;
        }
        .hero-v2-grid {
            position: relative;
            z-index: 1;
            display: grid;
            gap: clamp(1.5rem, 4vw, 2.5rem);
            grid-template-areas:
                "main"
                "media"
                "actions";
        }
        @media (min-width: 1024px) {
            .hero-v2-grid {
                grid-template-columns: minmax(0, 1fr) minmax(260px, min(46vw, 36rem));
                grid-template-rows: auto 1fr;
                grid-template-areas:
                    "main media"
                    "actions media";
                align-items: start;
                column-gap: 2.75rem;
                row-gap: 2rem;
            }
            .hero-v2-media {
                position: sticky;
                top: calc(var(--header-h) + 1rem);
                align-self: start;
                margin-left: 0;
                margin-right: 0;
                width: 100%;
                max-width: 100%;
                border-radius: 0;
                overflow: hidden;
                background: transparent;
                padding: 0;
                box-shadow: none;
            }
            .hero-v2-media .hero-shot-img {
                border-radius: 0;
                box-shadow: none;
            }
            .hero-shot-carousel-viewport {
                max-height: min(48vh, 480px);
            }
            .hero-shot-carousel .hero-shot-slide {
                display: flex;
                align-items: center;
                justify-content: center;
                min-height: 0;
            }
            .hero-shot-carousel .hero-shot-img {
                width: auto;
                max-width: 100%;
                max-height: min(48vh, 480px);
                height: auto;
                object-fit: contain;
            }
        }
        .hero-v2-main { grid-area: main; }
        .hero-v2-actions { grid-area: actions; }
        .hero-v2-media {
            grid-area: media;
            min-width: 0;
            margin: 0;
            padding: 0;
            overflow: hidden;
            border-radius: 0;
        }
        /* Full-bleed image below lg (matches container px-4 / sm:px-6) */
        @media (max-width: 1023.98px) {
            .hero-v2-media {
                margin-left: -1rem;
                margin-right: -1rem;
                width: calc(100% + 2rem);
            }
        }
        @media (min-width: 640px) and (max-width: 1023.98px) {
            .hero-v2-media {
                margin-left: -1.5rem;
                margin-right: -1.5rem;
                width: calc(100% + 3rem);
            }
        }
        .hero-shot-img {
            display: block;
            width: 100%;
            max-width: 100%;
            height: auto;
            margin: 0;
            padding: 0;
            border: none;
            border-radius: 0;
            box-shadow: none;
            vertical-align: middle;
            background: transparent;
            object-fit: contain;
            object-position: center;
        }

        /* Hero image carousel (home only) */
        .hero-shot-carousel {
            --hero-slides: 3;
            position: relative;
        }
        .hero-shot-carousel-viewport {
            overflow: hidden;
            width: 100%;
            position: relative;
        }
        .hero-shot-carousel-track {
            display: flex;
            width: calc(100% * var(--hero-slides));
            transition: transform 0.38s cubic-bezier(0.16, 1, 0.3, 1);
            will-change: transform;
        }
        .hero-shot-slide {
            flex: 0 0 calc(100% / var(--hero-slides));
            min-width: 0;
        }
        .hero-shot-carousel-toolbar {
            display: flex;
            align-items: center;
            justify-content: center;
            gap: 0.75rem;
            margin-top: 0.5rem;
            margin-bottom: 0;
            padding: 0;
        }
        .hero-shot-carousel-btn {
            display: inline-flex;
            align-items: center;
            justify-content: center;
            width: 2.5rem;
            height: 2.5rem;
            border-radius: 0.5rem;
            border: 1px solid rgba(148, 163, 184, 0.35);
            background: rgba(17, 31, 54, 0.85);
            color: #e2e8f0;
            cursor: pointer;
            transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease;
        }
        .hero-shot-carousel-btn:hover {
            background: rgba(96, 144, 240, 0.2);
            border-color: rgba(96, 144, 240, 0.45);
            color: #fff;
        }
        .hero-shot-carousel-btn:focus-visible {
            outline: 2px solid var(--color-primary-muted);
            outline-offset: 2px;
        }
        .hero-shot-carousel-dots {
            display: flex;
            align-items: center;
            gap: 0.5rem;
        }
        .hero-shot-carousel-dot {
            width: 0.5rem;
            height: 0.5rem;
            padding: 0;
            border-radius: 9999px;
            border: none;
            background: rgba(148, 163, 184, 0.45);
            cursor: pointer;
            transition: background 0.2s ease, transform 0.2s ease;
        }
        .hero-shot-carousel-dot:hover {
            background: rgba(203, 213, 225, 0.65);
        }
        .hero-shot-carousel-dot.is-active {
            background: var(--color-primary-muted);
            transform: scale(1.25);
        }
        .hero-shot-carousel-dot:focus-visible {
            outline: 2px solid var(--color-primary-muted);
            outline-offset: 2px;
        }
        @media (prefers-reduced-motion: reduce) {
            .hero-shot-carousel-track {
                transition: none;
            }
        }
        .hero-title-line1 {
            display: block;
            font-family: var(--font-sans);
            font-optical-sizing: auto;
            font-weight: 700;
            font-size: var(--fs-h1);
            line-height: 1.08;
            letter-spacing: -0.02em;
            color: var(--color-text);
            margin-top: 1rem;
            text-shadow: none;
        }
        .hero-title-accent {
            color: var(--color-primary-muted);
            font-weight: 700;
        }
        .hero-title-line2 {
            display: block;
            margin-top: 0.75rem;
            max-width: 42ch;
            font-size: var(--fs-lead);
            font-weight: var(--fw-medium);
            line-height: var(--lh-lead);
            letter-spacing: -0.01em;
            color: var(--color-text-body);
        }
        .hero-panel {
            align-self: start;
            border-radius: var(--radius-4xl);
            padding: clamp(1.25rem, 3vw, 1.75rem);
            background: linear-gradient(168deg, rgba(17, 31, 54, 0.92) 0%, rgba(12, 21, 37, 0.88) 100%);
            border: 1px solid rgba(96, 144, 240, 0.22);
            box-shadow: var(--shadow-md), 0 1px 0 rgba(255, 255, 255, 0.06) inset, 0 0 0 1px rgba(0, 0, 0, 0.2);
            backdrop-filter: blur(24px) saturate(1.15);
            -webkit-backdrop-filter: blur(24px) saturate(1.15);
        }
        @media (min-width: 1024px) {
            .hero-panel { padding: 1.5rem 1.375rem; }
        }
        .hero-panel .hero-alert {
            margin-top: 0;
            background: rgba(4, 10, 20, 0.55);
            border-color: rgba(96, 144, 240, 0.22);
            box-shadow: 0 2px 18px -6px rgba(0, 0, 0, 0.35);
        }
        .hero-alert {
            margin-top: 1.5rem;
            border-radius: var(--radius-lg);
            border: 1px solid var(--border-strong);
            border-left: 3px solid var(--primary);
            background: var(--color-surface);
            padding: 1rem 1.125rem;
            font-size: var(--fs-small);
            line-height: var(--lh-small);
            color: var(--color-text-body);
            box-shadow: 0 4px 20px -8px rgba(0, 0, 0, 0.35);
        }
        .hero-alert strong { color: var(--color-text); font-weight: var(--fw-semibold); }
        .hero-btn-primary {
            display: inline-flex;
            align-items: center;
            justify-content: center;
            gap: 0.5rem;
            width: 100%;
            min-height: 3rem;
            padding: 0 1.25rem;
            font-size: var(--fs-small);
            font-weight: var(--fw-semibold);
            line-height: 1.25;
            color: #fff;
            border-radius: var(--radius-lg);
            background: linear-gradient(105deg, var(--color-primary-muted) 0%, var(--primary) 40%, var(--primary-dark) 55%, #3654b0 100%);
            background-size: 220% 100%;
            background-position: 0% 50%;
            box-shadow: var(--shadow-sm), var(--shadow-glow-primary);
            transition: filter .2s, transform .15s, box-shadow .2s, background-position 0.65s cubic-bezier(.16, 1, .3, 1);
        }
        .hero-btn-primary:hover {
            filter: brightness(1.05);
            background-position: 100% 50%;
            box-shadow: var(--shadow-md), 0 16px 36px -10px rgba(96, 144, 240, 0.32);
        }
        .hero-btn-primary:active { transform: scale(0.99); }
        .hero-btn-secondary {
            display: inline-flex;
            align-items: center;
            justify-content: center;
            width: 100%;
            min-height: 3rem;
            padding: 0 1.25rem;
            font-size: var(--fs-small);
            font-weight: var(--fw-semibold);
            line-height: 1.25;
            color: var(--color-text);
            border-radius: var(--radius-lg);
            background: rgba(17, 31, 54, 0.85);
            border: 1px solid rgba(96, 144, 240, 0.28);
            box-shadow: var(--shadow-sm);
            transition: border-color .2s, background .2s, box-shadow .2s;
        }
        .hero-btn-secondary:hover {
            border-color: rgba(96, 144, 240, 0.45);
            background: rgba(24, 42, 72, 0.95);
            box-shadow: 0 8px 28px -10px rgba(96, 144, 240, 0.12);
        }
        .hero-btn-primary:focus-visible,
        .hero-btn-secondary:focus-visible {
            outline: 2px solid var(--primary);
            outline-offset: 3px;
        }
        /* Dark band + footer */
        .section-band-dark {
            position: relative;
            isolation: isolate;
            background: linear-gradient(175deg, #000c24 0%, var(--color-dark-bg) 35%, var(--color-dark-elevated) 70%, #031830 100%);
            color: var(--color-dark-muted);
        }
        .section-band-dark::before {
            content: '';
            position: absolute;
            inset: 0;
            z-index: 0;
            background:
                radial-gradient(ellipse 55% 42% at 100% 0%, rgba(147, 197, 253, 0.14), transparent 52%),
                radial-gradient(ellipse 50% 38% at 0% 100%, rgba(96, 165, 250, 0.08), transparent 48%),
                radial-gradient(ellipse 80% 60% at 50% 120%, rgba(0, 0, 0, 0.45), transparent 55%);
            pointer-events: none;
        }
        .section-band-dark > .max-w-content { position: relative; z-index: 1; }
        .section-band-dark .t-title,
        .section-band-dark .t-display { color: var(--color-dark-text); }
        #trust .t-title {
            font-size: var(--fs-h2);
            line-height: var(--lh-h2);
        }
        .section-band-dark .eyebrow,
        #trust .eyebrow { color: var(--color-dark-accent) !important; }
        .section-band-dark .text-slate-600,
        .section-band-dark .text-slate-500,
        .section-band-dark .text-slate-400 { color: var(--color-dark-muted) !important; }
        .section-band-dark .type-lead {
            color: var(--color-dark-muted) !important;
        }
        .stat-tile--on-dark {
            border-color: rgba(255, 255, 255, 0.12);
            background: linear-gradient(165deg, rgba(255, 255, 255, 0.08) 0%, rgba(255, 255, 255, 0.03) 100%);
            backdrop-filter: blur(16px) saturate(1.1);
            -webkit-backdrop-filter: blur(16px) saturate(1.1);
            box-shadow: 0 1px 0 rgba(255, 255, 255, 0.08) inset, 0 12px 40px -24px rgba(0, 0, 0, 0.35);
        }
        .stat-tile--on-dark .t-title { color: var(--color-dark-text); }
        .stat-tile--on-dark .text-slate-600,
        .stat-tile--on-dark .text-slate-500 { color: var(--color-dark-muted) !important; }
        .stat-tile--on-dark .icon-well {
            background: rgba(60, 84, 156, 0.22);
            color: var(--color-dark-accent);
            box-shadow: none;
        }
        .stat-tile--on-dark.card-interactive:hover {
            border-color: rgba(186, 210, 253, 0.35);
            box-shadow:
                0 1px 0 rgba(255, 255, 255, 0.1) inset,
                0 0 0 1px rgba(186, 210, 253, 0.12),
                0 24px 56px -22px rgba(0, 0, 0, 0.5);
        }
        /* Trust band — aligned headline + stat grid */
        .trust-section-intro {
            text-align: center;
            max-width: 40rem;
            margin-left: auto;
            margin-right: auto;
        }
        .trust-stat-card {
            text-align: center;
        }
        @media (min-width: 640px) {
            .trust-stat-card { text-align: left; }
        }
        .trust-stat-icon {
            display: block;
            font-size: var(--fs-lead);
            color: var(--color-dark-accent);
            margin-bottom: 0.75rem;
            opacity: 0.95;
        }
        .trust-stat-label {
            font-size: var(--fs-label);
            font-weight: var(--fw-semibold);
            letter-spacing: var(--ls-label);
            text-transform: uppercase;
            color: var(--color-dark-accent);
            margin-bottom: 0.35rem;
            line-height: 1.2;
        }
        .trust-stat-value {
            font-family: var(--font-display);
            font-size: clamp(1.25rem, 1.5vw + 0.75rem, 1.625rem);
            font-weight: var(--fw-bold);
            line-height: var(--lh-h2);
            letter-spacing: var(--ls-h2);
            color: var(--color-dark-text);
        }
        .trust-stat-detail {
            font-size: var(--fs-small);
            font-weight: var(--fw-medium);
            color: var(--color-dark-muted);
            line-height: 1.45;
            margin-top: auto;
            padding-top: 0.75rem;
        }
        .trust-stat-detail .trust-stat-note {
            color: rgba(148, 163, 184, 0.85);
            font-weight: var(--fw-medium);
        }
        .quote-card {
            border-radius: var(--radius-xl);
            border: 1px solid var(--border);
            background: linear-gradient(180deg, var(--color-surface) 0%, #0a1424 100%);
            box-shadow: 0 4px 24px -8px rgba(0,0,0,.35);
            transition: border-color .2s, box-shadow .25s;
        }
        .quote-card:hover {
            border-color: var(--border-strong);
            box-shadow: 0 12px 40px -12px rgba(96,144,240,.18);
        }
        .footer-site {
            position: relative;
            background: linear-gradient(180deg, #050810 0%, var(--color-dark-bg) 40%, #020617 100%);
            color: var(--color-dark-muted);
            border-top: 1px solid rgba(255, 255, 255, 0.07);
        }
        .footer-site::before {
            content: '';
            position: absolute;
            left: 0;
            right: 0;
            top: 0;
            height: 1px;
            background: linear-gradient(90deg, transparent, rgba(96, 144, 240, 0.35), transparent);
            opacity: 0.65;
            pointer-events: none;
        }
        .footer-site a { color: #d4d4d8; }
        .footer-site a:hover { color: var(--color-dark-text); }
        /* —— v3 sections & components —— */
        .section-mesh-canvas {
            position: relative;
            isolation: isolate;
            background: linear-gradient(168deg, var(--color-bg) 0%, #0c1829 42%, var(--color-bg) 100%);
        }
        .section-mesh-canvas::before {
            content: '';
            position: absolute;
            inset: 0;
            z-index: 0;
            background:
                radial-gradient(ellipse 65% 45% at 5% 10%, rgba(96, 144, 240, 0.08), transparent),
                radial-gradient(ellipse 55% 40% at 95% 90%, rgba(2, 20, 46, 0.5), transparent);
            pointer-events: none;
        }
        .section-mesh-canvas > .max-w-content { position: relative; z-index: 1; }
        /* Highlights / secondary light band */
        .section-spotlight {
            position: relative;
            isolation: isolate;
            background: linear-gradient(180deg, #0c1525 0%, var(--color-surface-raised) 38%, var(--color-bg) 100%);
        }
        .section-spotlight::before {
            content: '';
            position: absolute;
            inset: 0;
            z-index: 0;
            background:
                radial-gradient(ellipse 70% 45% at 100% 8%, rgba(96, 144, 240, 0.1), transparent 58%),
                radial-gradient(ellipse 50% 40% at 0% 100%, rgba(18, 58, 98, 0.2), transparent 55%);
            pointer-events: none;
        }
        .section-spotlight > .max-w-content { position: relative; z-index: 1; }
        .section-spotlight a.highlight-tile.card-interactive {
            transform-style: preserve-3d;
            transition: transform .32s cubic-bezier(.16, 1, .3, 1), box-shadow .32s ease, border-color .2s;
        }
        .section-spotlight a.highlight-tile.card-interactive:hover {
            transform: translateY(-6px) perspective(900px) rotateX(2.5deg);
            border-color: rgba(96, 165, 250, 0.35) !important;
            box-shadow:
                0 1px 0 rgba(255, 255, 255, 0.06) inset,
                0 28px 56px -20px rgba(96, 144, 240, 0.2),
                0 0 0 1px rgba(96, 144, 240, 0.15);
        }
        .step-num {
            display: flex;
            align-items: center;
            justify-content: center;
            width: 2.375rem;
            height: 2.375rem;
            flex-shrink: 0;
            border-radius: var(--radius-md);
            font-size: 0.75rem;
            font-weight: 800;
            font-family: var(--font-mono);
            color: #fff;
            background: linear-gradient(145deg, #1e293b 0%, #0f172a 100%);
            box-shadow:
                0 0 0 2px var(--color-surface),
                0 0 0 4px rgba(96,144,240,.12),
                0 6px 16px rgba(15,23,42,.1);
        }
        .step-num--lg {
            width: 2.625rem;
            height: 2.625rem;
            font-size: 0.8125rem;
            border-radius: var(--radius-lg);
        }
        .product-gallery .media-cap {
            border-radius: var(--radius-xl);
            padding: 1px;
            background: linear-gradient(135deg, rgba(96,144,240,.45), rgba(30,58,95,.9));
            box-shadow: 0 20px 48px -22px rgba(0,0,0,.45);
            overflow: hidden;
        }
        .product-gallery .media-cap img { display: block; width: 100%; height: auto; }
        .download-banner-shell {
            border-radius: var(--radius-2xl);
            padding: 1px;
            background: linear-gradient(105deg, rgba(96,144,240,.35), rgba(148,163,184,.3));
            box-shadow: 0 16px 40px -20px rgba(15,23,42,.1);
        }
        .download-banner-shell-inner {
            border-radius: calc(var(--radius-2xl) - 1px);
            overflow: hidden;
            background: linear-gradient(180deg, #111f36 0%, #0c1525 100%);
        }
        .download-os-card {
            border-radius: var(--radius-xl);
            border: 1px solid var(--border);
            background: linear-gradient(180deg, var(--color-surface) 0%, #0a1424 100%);
            transition: transform .28s cubic-bezier(.16,1,.3,1), box-shadow .28s, border-color .2s;
        }
        .download-os-card:hover {
            transform: translateY(-4px);
            box-shadow: 0 22px 48px -18px rgba(96,144,240,.14);
            border-color: #9cb4f0;
        }
        .download-os-card--featured {
            border-width: 2px;
            border-color: rgba(96,144,240,.4);
            background: linear-gradient(165deg, #111f36 0%, var(--color-surface) 50%, #0a1628 100%);
            box-shadow: 0 16px 44px -18px rgba(96,144,240,.22), 0 0 0 1px rgba(96,144,240,.1);
        }
        .download-os-card--featured:hover {
            box-shadow: 0 24px 52px -16px rgba(96,144,240,.28), 0 0 0 1px rgba(96,144,240,.08);
        }
        .req-panel {
            border-radius: var(--radius-xl);
            position: relative;
            overflow: hidden;
        }
        .req-panel::before {
            content: '';
            position: absolute;
            top: 0;
            left: 0;
            right: 0;
            height: 3px;
        }
        .req-panel--min::before { background: linear-gradient(90deg, #52525b, #a1a1aa); }
        .req-panel--rec::before { background: linear-gradient(90deg, var(--color-primary), var(--color-primary-hover)); }
        .setup-row {
            border-radius: var(--radius-xl);
            border: 1px solid var(--border);
            background: linear-gradient(180deg, var(--color-surface) 0%, #0a1424 100%);
            transition: border-color .2s, box-shadow .28s, transform .25s cubic-bezier(.16,1,.3,1);
        }
        .setup-row:hover {
            border-color: #9cb4f0;
            box-shadow: 0 14px 40px -14px rgba(96,144,240,.12);
            transform: translateX(5px);
        }
        .support-card-v3 {
            border-radius: var(--radius-xl);
            border: 1px solid var(--border);
            background: var(--color-surface);
            box-shadow: 0 1px 2px rgba(15,23,42,.04);
            transition: box-shadow .28s, border-color .2s;
            position: relative;
            padding: 1.5rem 1.5rem 1.5rem 1.75rem;
        }
        .support-card-v3::before {
            content: '';
            position: absolute;
            left: 0.65rem;
            top: 1.25rem;
            bottom: 1.25rem;
            width: 3px;
            border-radius: 2px;
            background: var(--primary);
            opacity: 1;
        }
        .support-card-v3:hover {
            box-shadow: 0 18px 44px -16px rgba(15,23,42,.1);
            border-color: var(--border-strong);
        }
        .faq-panel {
            border-radius: var(--radius-2xl);
            border: 1px solid var(--border);
            background: linear-gradient(180deg, var(--color-surface) 0%, #0a1424 100%);
            overflow: hidden;
            transition: border-color .2s, box-shadow .25s;
        }
        .faq-panel[open] {
            background: var(--color-surface-raised);
            border-color: var(--border-strong);
            box-shadow: 0 12px 36px -14px rgba(0,0,0,.4);
        }
        .faq-panel summary { transition: background .2s; }
        .faq-panel:hover:not([open]) { border-color: rgba(96, 144, 240, 0.28); }
        #faq.faq-page .faq-panel-answer,
        #extended-qa-home .faq-panel-answer {
            border-top: 1px solid var(--border);
            text-align: left;
        }
        #faq.faq-page .faq-panel-summary:hover,
        #extended-qa-home .faq-panel-summary:hover {
            background: rgba(96, 144, 240, 0.06);
        }
        #faq.faq-page .faq-panel[open] .faq-panel-summary,
        #extended-qa-home .faq-panel[open] .faq-panel-summary {
            background: rgba(96, 144, 240, 0.08);
        }
        /* FAQ: 1 col mobile, 2 cols side-by-side from md — each item is its own tile */
        #faq.faq-page .faq-panel-rows {
            width: 100%;
            border: none;
            background: transparent;
            box-shadow: none;
            overflow: visible;
        }
        #faq.faq-page .faq-panel-rows > .faq-panel {
            min-width: 0;
            border-radius: var(--radius-xl) !important;
            border: 1px solid var(--border) !important;
            background: linear-gradient(180deg, var(--color-surface) 0%, #0a1424 100%);
            box-shadow: none;
            transition: border-color 0.2s, box-shadow 0.25s, background 0.2s;
        }
        #faq.faq-page .faq-panel-rows > .faq-panel:hover:not([open]) {
            border-color: rgba(96, 144, 240, 0.28) !important;
        }
        #faq.faq-page .faq-panel-rows > .faq-panel[open] {
            background: var(--color-surface-raised);
            border-color: var(--border-strong) !important;
            box-shadow: 0 10px 32px -14px rgba(0, 0, 0, 0.4);
        }
        .gallery-frame {
            border-radius: var(--radius-xl);
            overflow: hidden;
            border: 1px solid var(--border);
            background: var(--color-surface);
            box-shadow: 0 4px 20px -8px rgba(15,23,42,.08);
            transition: box-shadow .35s ease, transform .35s cubic-bezier(.16,1,.3,1);
        }
        .gallery-frame:hover {
            transform: translateY(-4px);
            box-shadow: 0 20px 48px -16px rgba(96,144,240,.15);
        }
        .gallery-frame img { transition: opacity .35s ease; }
        .gallery-frame:hover img { opacity: 0.96; }
        .feature-tile {
            position: relative;
            overflow: hidden;
        }
        .feature-tile::after {
            content: '';
            position: absolute;
            top: 0;
            left: 2rem;
            right: 2rem;
            height: 2px;
            border-radius: 1px;
            background: linear-gradient(90deg, transparent, rgba(96,144,240,.35), transparent);
            opacity: 0;
            transition: opacity .35s ease;
        }
        .feature-tile:hover::after { opacity: 1; }
        /* Features page — tighter intro + compact mosaic tiles */
        #features.features-page .features-intro-compact .t-title {
            font-size: clamp(1.3rem, 0.35rem + 2.4vw, 1.75rem);
            line-height: 1.16;
            letter-spacing: -0.03em;
        }
        #features.features-page .features-intro-lead {
            font-size: var(--fs-small);
            line-height: 1.52;
            color: var(--color-text-body);
        }
        #features.features-page .features-intro-body {
            font-size: 0.8125rem;
            line-height: 1.5;
            color: var(--color-text-muted);
        }
        #features .features-mosaic--compact .feature-tile {
            border-radius: var(--radius-lg);
        }
        #features .features-mosaic--compact .feature-tile::after {
            left: 1.125rem;
            right: 1.125rem;
        }
        #features .features-mosaic--compact .icon-well--compact {
            width: 2.25rem;
            height: 2.25rem;
            margin-bottom: 0;
            font-size: 0.8125rem;
        }
        #features .features-mosaic--compact .icon-well--compact i {
            font-size: 0.8125rem;
        }
        #features .features-mosaic--compact .feature-tile-title {
            font-size: 0.9375rem;
            line-height: 1.28;
            letter-spacing: -0.014em;
        }
        #features .features-mosaic--compact .feature-tile-desc {
            margin: 0;
            font-size: 0.8125rem;
            line-height: 1.45;
        }
        .cta-action-primary {
            display: inline-flex;
            align-items: center;
            justify-content: center;
            gap: 0.5rem;
            border-radius: var(--radius-lg);
            background: linear-gradient(180deg, #e2e8f0 0%, #cbd5e1 100%);
            color: #0f172a;
            font-weight: var(--fw-bold);
            font-size: var(--fs-small);
            padding: 0.75rem 1.5rem;
            box-shadow: 0 4px 24px -4px rgba(0,0,0,.4), 0 1px 0 rgba(255,255,255,.25) inset;
            transition: transform .15s, filter .2s;
        }
        .cta-action-primary:hover { filter: brightness(1.03); }
        .cta-action-primary:active { transform: scale(0.98); }
        .cta-action-ghost {
            display: inline-flex;
            align-items: center;
            justify-content: center;
            gap: 0.5rem;
            border-radius: var(--radius-lg);
            border: 1px solid rgba(148,163,184,.45);
            color: var(--color-dark-text);
            font-weight: var(--fw-semibold);
            font-size: var(--fs-small);
            padding: 0.75rem 1.5rem;
            background: rgba(255,255,255,.04);
            transition: background .2s, border-color .2s;
        }
        .cta-action-ghost:hover {
            background: rgba(255,255,255,.08);
            border-color: rgba(226,232,240,.35);
        }
        .cta-action-primary:focus-visible,
        .cta-action-ghost:focus-visible {
            outline: 2px solid rgba(147,197,253,.9);
            outline-offset: 3px;
        }
        .resource-link {
            border-radius: var(--radius-lg);
            transition: transform .22s cubic-bezier(.16,1,.3,1), border-color .2s, box-shadow .22s;
        }
        .resource-link:hover {
            transform: translateY(-2px);
            border-color: #9cb4f0 !important;
            box-shadow: 0 12px 32px -12px rgba(96,144,240,.14);
        }
        @media (prefers-reduced-motion: reduce) {
            .download-os-card:hover,
            .setup-row:hover,
            .gallery-frame:hover,
            .resource-link:hover { transform: none; }
            .gallery-frame img { transition: none; }
            .gallery-frame:hover img { opacity: 1; }
        }
        /* Shared layout tokens */
        .mosaic-gap { gap: 1rem; }
        @media (min-width: 640px) {
            .mosaic-gap { gap: 1.5rem; }
        }
        .stat-tile {
            min-height: 10.25rem;
            display: flex;
            flex-direction: column;
            align-items: center;
            text-align: center;
            border-radius: var(--radius-xl);
            border: 1px solid var(--border);
            background: var(--color-surface);
            box-shadow: 0 1px 2px rgba(0,0,0,.25);
        }
        @media (min-width: 640px) {
            .stat-tile { align-items: flex-start; text-align: left; }
        }
        .stat-tile.trust-stat-card {
            min-height: 11.5rem;
        }
        .stat-tile .t-title { line-height: 1.1; }
        .stat-tile--compat {
            min-height: 9.5rem;
            justify-content: center;
            text-align: center;
            align-items: center;
        }
        @media (min-width: 640px) {
            .stat-tile.stat-tile--compat { align-items: center; text-align: center; }
        }
        .section-intro { margin-bottom: clamp(2rem, 5vw, 3rem); }
        .card-surface {
            border-radius: var(--radius-xl);
            border: 1px solid var(--border);
            background: linear-gradient(180deg, var(--color-surface) 0%, #0a1424 100%);
            box-shadow: 0 1px 0 rgba(255, 255, 255, 0.05) inset, 0 12px 36px -14px rgba(0, 0, 0, 0.35);
        }
        @media (prefers-reduced-motion: reduce) {
            .hero-v2-media { position: static !important; }
            html { scroll-behavior: auto; }
            .reveal { opacity: 1 !important; transform: none !important; transition: none !important; }
            .card-interactive:hover { transform: none; }
            .feature-tile:hover::after { opacity: 0; }
            .nav-link::after { transition: none; }
            .back-to-top, .fab-download, .btn-primary, .btn-accent, .btn-ghost, .cta-action-primary, .cta-action-ghost { transition: none !important; }
        }

/* Inner pages: Tailwind `bg-white` / borders still used in markup */
#main-content > section.bg-white {
    background-color: var(--color-surface-raised) !important;
}
#main-content > section.border-b {
    border-bottom-color: rgba(96, 144, 240, 0.14) !important;
}
main img.bg-slate-100 {
    background-color: var(--color-surface) !important;
}
#main-content [class*="border-slate-200"] {
    border-color: rgba(96, 144, 240, 0.14) !important;
}
main .bg-brand-100 {
    background-color: rgba(96, 144, 240, 0.2) !important;
}
main .text-brand-700 {
    color: #a8c0fc !important;
}

/* Setup walkthrough — compact typography & rhythm */
#setup.setup-page .setup-page-header .t-title {
    font-size: clamp(1.25rem, 0.3rem + 2.2vw, 1.65rem);
    line-height: 1.18;
    letter-spacing: -0.028em;
}
#setup.setup-page .setup-page-header .setup-page-lead {
    font-size: var(--fs-small);
    line-height: 1.52;
    color: var(--color-text-body);
}
#setup.setup-page .setup-page-header .setup-page-sub {
    font-size: 0.8125rem;
    line-height: 1.5;
    color: var(--color-text-muted);
}
#setup.setup-page .step-num--compact {
    width: 2rem;
    height: 2rem;
    font-size: 0.6875rem;
    border-radius: var(--radius-sm);
    box-shadow:
        0 0 0 1px var(--color-surface),
        0 0 0 3px rgba(96, 144, 240, 0.1),
        0 4px 12px rgba(15, 23, 42, 0.08);
}
#setup.setup-page .setup-steps > li.setup-step {
    scroll-margin-top: calc(var(--header-h) + 0.75rem);
}
#setup.setup-page .setup-row:hover {
    transform: translateX(3px);
}
#setup.setup-page .setup-step-body {
    display: flex;
    flex-direction: column;
    gap: 0.45rem;
}
#setup.setup-page .setup-step-body .setup-step-title {
    margin: 0;
    font-family: var(--font-display);
    font-size: 1rem;
    font-weight: var(--fw-semibold);
    letter-spacing: -0.018em;
    line-height: 1.32;
    color: var(--color-text);
}
#setup.setup-page .setup-step-body .setup-step-text {
    margin: 0;
    font-size: var(--fs-small);
    line-height: 1.52;
    color: var(--color-text-body);
}

/* Home glossary — uniform term / definition sizing */
#glossary-home .glossary-term-card dt {
    margin: 0 0 0.5rem;
    min-height: 2.625rem;
    display: flex;
    align-items: flex-end;
    font-family: var(--font-mono);
    font-size: var(--fs-small);
    font-weight: var(--fw-semibold);
    letter-spacing: 0.04em;
    line-height: 1.3;
    color: var(--color-primary-muted);
    text-transform: uppercase;
}
#glossary-home .glossary-term-card dt.glossary-dt--mixed {
    text-transform: none;
    letter-spacing: 0.02em;
}
#glossary-home .glossary-term-card dd {
    margin: 0;
    font-size: var(--fs-small);
    line-height: var(--lh-small);
    color: var(--color-text-body);
}

/* Why PCSX2 — aligned body blocks */
#why-pcsx2 .why-pcsx2-point {
    padding-left: 1.125rem;
    border-left: 3px solid rgba(96, 144, 240, 0.35);
}

/* Multi-page: first section spacing below fixed header */
.section-page-top {
    padding-top: calc(var(--header-h) + 1.25rem);
}

#cta .t-title {
    font-size: var(--fs-h2);
    line-height: var(--lh-h2);
    color: var(--color-dark-text);
}

/* Language dropdown (navbar + mobile; markup from js/site.js) */
.site-lang-dropdown {
    position: relative;
}
.site-lang-dropdown__btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
    min-height: 2.5rem;
    padding: 0 0.75rem;
    border-radius: var(--radius-lg);
    font-size: var(--fs-label);
    font-weight: var(--fw-semibold);
    letter-spacing: 0.04em;
    line-height: 1.2;
    cursor: pointer;
    transition: background-color 0.2s ease, border-color 0.2s ease, color 0.2s ease, box-shadow 0.2s ease;
}
/* Desktop: same dark glass language as nav / menu-toggle */
#header .site-lang-dropdown__btn {
    border: 1px solid rgba(96, 144, 240, 0.22);
    background: rgba(255, 255, 255, 0.06);
    color: var(--color-text-body);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
}
#header .site-lang-dropdown__btn:hover {
    background: rgba(96, 144, 240, 0.12);
    border-color: rgba(96, 144, 240, 0.38);
    color: var(--color-text);
}
#header .site-lang-dropdown.is-open .site-lang-dropdown__btn {
    background: rgba(96, 144, 240, 0.14);
    border-color: rgba(96, 144, 240, 0.42);
    color: #e2e8f0;
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.06),
        0 0 0 1px rgba(96, 144, 240, 0.12);
}
.site-lang-dropdown__chev {
    font-size: 0.5rem;
    opacity: 0.85;
    transition: transform 0.2s ease, color 0.2s ease;
}
#header .site-lang-dropdown__chev {
    color: var(--color-text-muted);
}
.site-lang-dropdown.is-open .site-lang-dropdown__chev {
    transform: rotate(180deg);
}
.site-lang-dropdown__panel {
    position: absolute;
    right: 0;
    top: calc(100% + 0.4rem);
    z-index: 56;
    min-width: 12rem;
    padding: 0.4rem 0;
    border-radius: var(--radius-lg);
}
#header .site-lang-dropdown__panel {
    border: 1px solid rgba(96, 144, 240, 0.22);
    background: rgba(8, 14, 26, 0.96);
    backdrop-filter: blur(16px) saturate(1.1);
    -webkit-backdrop-filter: blur(16px) saturate(1.1);
    box-shadow:
        0 20px 50px -16px rgba(0, 0, 0, 0.55),
        0 0 0 1px rgba(96, 144, 240, 0.08);
}
.site-lang-dropdown__item {
    display: block;
    padding: 0.55rem 1rem;
    font-size: var(--fs-small);
    font-weight: var(--fw-semibold);
    text-decoration: none;
    transition: background-color 0.15s ease, color 0.15s ease;
}
#header .site-lang-dropdown__item {
    color: var(--color-text-body);
}
#header .site-lang-dropdown__item:hover {
    background: rgba(96, 144, 240, 0.12);
    color: var(--color-text);
}
#header .site-lang-dropdown__item.is-current {
    color: var(--color-link-hover-bright);
    background: rgba(96, 144, 240, 0.14);
}
/* Mobile sheet: language chips match dark menu */
#mobile-menu .site-lang-dropdown-mobile {
    margin-bottom: 0.25rem;
}
#mobile-menu .site-lang-dropdown-mobile a {
    border: 1px solid rgba(96, 144, 240, 0.2) !important;
    background: rgba(255, 255, 255, 0.05) !important;
    color: var(--color-text-body) !important;
    border-radius: var(--radius-lg) !important;
    font-size: var(--fs-label) !important;
    font-weight: var(--fw-semibold) !important;
    letter-spacing: 0.03em;
    transition: background-color 0.15s ease, border-color 0.15s ease, color 0.15s ease !important;
}
#mobile-menu .site-lang-dropdown-mobile a:hover {
    background: rgba(96, 144, 240, 0.12) !important;
    border-color: rgba(96, 144, 240, 0.35) !important;
    color: var(--color-text) !important;
}
#mobile-menu .site-lang-dropdown-mobile a[aria-current='page'] {
    color: var(--color-link-hover-bright) !important;
    background: rgba(96, 144, 240, 0.15) !important;
    border-color: rgba(96, 144, 240, 0.38) !important;
}