/* ==========================================================================
 * Eleven HUD — Marketing Website
 * Built for the multitasking-panel companion to Eleven Table Tennis on
 * Meta Quest. Modern, professional sports-premium aesthetic with strong
 * editorial typography, soft asymmetric layouts and fluid motion.
 * --------------------------------------------------------------------------
 * Palette tokens
 *   --bg          #0A0E14   canvas
 *   --surface     #161B22   cards
 *   --surface-2   #1F242C   raised
 *   --border      #30363D   1px hair
 *   --text        #E6EDF3   primary text
 *   --text-soft   #8B949E   muted
 *   --hud         #58A6FF   Eleven HUD blue
 *   --tt-orange   #FF7A1A   Eleven Table Tennis orange
 *   --tt-red      #F03A47   Eleven TT red highlight
 *   --good        #3FB950
 *
 *   ▼ A note on motion: every animation has a reduced-motion fallback at
 *     the bottom of this file. Hero auto-rotation halts in reduced-motion;
 *     the first pair stays statically separated.
 * ======================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Space+Grotesk:wght@400;500;600;700&family=Inter:wght@400;500;600;700&family=JetBrains+Mono:wght@400;600&display=swap');

:root {
    --bg: #0A0E14;
    --bg-alt: #0E141C;
    --surface: #161B22;
    --surface-2: #1F242C;
    --surface-3: #262C36;
    --border: #30363D;
    --border-soft: #21262D;
    --text: #E6EDF3;
    --text-soft: #8B949E;
    --text-mute: #6E7781;
    --hud: #58A6FF;
    --hud-soft: rgba(88, 166, 255, 0.18);
    --tt-orange: #FF7A1A;
    --tt-red: #F03A47;
    --tt-yellow: #FFB726;
    --good: #3FB950;
    --bad: #F85149;
    --accent: #A371F7;

    --gradient-hero:
        radial-gradient(ellipse 90% 55% at 75% 18%, rgba(255, 122, 26, 0.18) 0%, transparent 60%),
        radial-gradient(ellipse 90% 70% at 25% 0%, rgba(88, 166, 255, 0.20) 0%, transparent 60%),
        linear-gradient(180deg, #0A0E14 0%, #050709 100%);
    --gradient-cta: linear-gradient(135deg, var(--tt-orange) 0%, var(--tt-red) 100%);
    --gradient-feature: linear-gradient(180deg, rgba(88, 166, 255, 0.05) 0%, transparent 100%);
    --gradient-section-alt: linear-gradient(180deg, rgba(255, 122, 26, 0.025) 0%, transparent 30%);

    --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.5);
    --shadow-md: 0 6px 24px rgba(0, 0, 0, 0.45);
    --shadow-lg: 0 18px 48px rgba(0, 0, 0, 0.5);
    --shadow-xl: 0 30px 80px rgba(0, 0, 0, 0.6);
    --shadow-glow-blue: 0 0 32px rgba(88, 166, 255, 0.25);
    --shadow-glow-orange: 0 0 28px rgba(255, 122, 26, 0.45);
    --shadow-glow-soft: 0 12px 60px rgba(88, 166, 255, 0.18);

    --radius-sm: 8px;
    --radius-md: 14px;
    --radius-lg: 22px;
    --radius-xl: 32px;
    --radius-pill: 999px;

    --font-display: 'Space Grotesk', 'Inter', system-ui, sans-serif;
    --font-body: 'Inter', system-ui, sans-serif;
    --font-mono: 'JetBrains Mono', ui-monospace, monospace;

    --content-max: 1200px;
    --nav-height: 64px;

    --ease-snap: cubic-bezier(0.2, 0.9, 0.3, 1);
    --ease-soft: cubic-bezier(0.22, 0.61, 0.36, 1);
    --ease-glide: cubic-bezier(0.6, 0.05, 0.2, 1);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

/* The dark canvas now lives on the root element so the fixed `.site-bg`
 * cycling backdrop can sit between <html> and <body> content via z-index:-1.
 * Keeping the colour as a fallback also guarantees the page stays dark even
 * if image assets fail to load. */
html {
    background: var(--bg);
}
body {
    background: transparent;
    color: var(--text);
    font-family: var(--font-body);
    font-size: clamp(15px, 1vw + 0.5rem, 17px);
    line-height: 1.6;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}

body.is-lightbox-open {
    overflow: hidden;
    /* Touch handlers on the lightbox itself manage swipe; we still
     * need to suppress page-level scrolling underneath. */
    overscroll-behavior: contain;
}

/* --------------------------------------------------------------------------
 * AMBIENT CYCLING BACKDROP
 *
 * Three layered slides crossfade behind the entire page. Position is fixed
 * (no parallax / no scroll) and z-index sits at -1 so any section that paints
 * its own opaque background — hero, footer, .section-alt, .cta-strip — fully
 * masks the backdrop in those areas, exactly matching the requirement that
 * the hero retains its bespoke gradient.
 *
 * `background-size: cover` produces the expected responsive behaviour:
 *   - landscape viewports → image fills the width and crops top/bottom
 *   - portrait  viewports → image fills the height and crops left/right
 *
 * Slides hold at 0.18 opacity so the dark canvas (--bg from <html>) remains
 * the dominant tone and content stays high-contrast. The crossfade easing is
 * the same `var(--ease-soft)` used by hero copy, keeping the motion language
 * consistent across the page.
 * -------------------------------------------------------------------------- */

.site-bg {
    position: fixed;
    inset: 0;
    z-index: -1;
    pointer-events: none;
    overflow: hidden;
}
.site-bg__slide {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
    opacity: 0;
    transition: opacity 1600ms var(--ease-soft);
    will-change: opacity;
}
.site-bg__slide.is-active {
    opacity: 0.18;
}

img { max-width: 100%; display: block; }

a { color: var(--hud); text-decoration: none; transition: opacity 200ms var(--ease-snap); }
a:hover { opacity: 0.85; }

::selection { background: var(--hud-soft); color: var(--text); }

:focus-visible {
    outline: 2px solid var(--hud);
    outline-offset: 3px;
    border-radius: 6px;
}

/* --------------------------------------------------------------------------
 * NAV
 * -------------------------------------------------------------------------- */

.nav {
    position: sticky;
    top: 0;
    z-index: 50;
    background: rgba(10, 14, 20, 0.78);
    backdrop-filter: blur(18px) saturate(160%);
    -webkit-backdrop-filter: blur(18px) saturate(160%);
    border-bottom: 1px solid var(--border-soft);
    height: var(--nav-height);
}

.nav-inner {
    max-width: var(--content-max);
    margin: 0 auto;
    height: 100%;
    padding: 0 clamp(16px, 4vw, 32px);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}

.nav-brand {
    display: flex;
    align-items: center;
    gap: 12px;
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 17px;
    letter-spacing: -0.01em;
    color: var(--text);
}
.nav-brand img {
    width: 32px;
    height: 32px;
    border-radius: 8px;
    box-shadow: var(--shadow-glow-blue);
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 4px;
    list-style: none;
}
.nav-links a {
    color: var(--text-soft);
    font-size: 14px;
    font-weight: 500;
    padding: 8px 12px;
    border-radius: var(--radius-sm);
    transition: color 160ms var(--ease-snap), background 160ms var(--ease-snap);
}
.nav-links a:hover {
    color: var(--text);
    background: var(--surface-2);
}

.nav-tools {
    display: flex;
    align-items: center;
    gap: 10px;
}

.lang-select {
    background: var(--surface-2);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    color: var(--text);
    font-family: inherit;
    font-size: 13px;
    padding: 6px 10px;
    cursor: pointer;
}
.lang-select:focus {
    outline: 2px solid var(--hud);
    outline-offset: 2px;
}

.nav-cta {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 14px;
    border-radius: var(--radius-pill);
    background: var(--gradient-cta);
    color: #fff;
    font-weight: 600;
    font-size: 13.5px;
    box-shadow: var(--shadow-glow-orange);
    transition: transform 200ms var(--ease-snap), box-shadow 200ms var(--ease-snap);
}
.nav-cta:hover { opacity: 1; transform: translateY(-1px); box-shadow: 0 0 36px rgba(255, 122, 26, 0.6); }

.nav-toggle {
    display: none;
    background: transparent;
    border: 1px solid var(--border);
    color: var(--text);
    border-radius: var(--radius-sm);
    width: 38px;
    height: 38px;
    cursor: pointer;
    align-items: center;
    justify-content: center;
    font-size: 18px;
}

/* --------------------------------------------------------------------------
 * SECTIONS / LAYOUT HELPERS
 * -------------------------------------------------------------------------- */

.section {
    max-width: var(--content-max);
    margin: 0 auto;
    padding: clamp(56px, 9vw, 112px) clamp(16px, 4vw, 32px);
    position: relative;
}

.section--alt {
    background: var(--gradient-section-alt), linear-gradient(180deg, var(--bg) 0%, var(--bg-alt) 100%);
    max-width: 100%;
    border-top: 1px solid var(--border-soft);
    border-bottom: 1px solid var(--border-soft);
}

.section-inner {
    max-width: var(--content-max);
    margin: 0 auto;
}

.section--narrow .section-inner--narrow,
.section-inner--narrow {
    max-width: 880px;
    margin: 0 auto;
}

.section-tag {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    border-radius: var(--radius-pill);
    background: var(--hud-soft);
    color: var(--hud);
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    margin-bottom: 16px;
    border: 1px solid rgba(88, 166, 255, 0.3);
    font-family: var(--font-display);
}

.section-title {
    font-family: var(--font-display);
    font-size: clamp(28px, 4vw, 44px);
    font-weight: 700;
    line-height: 1.1;
    letter-spacing: -0.02em;
    color: var(--text);
    margin-bottom: 12px;
    max-width: 22ch;
}
.section-title em {
    font-style: normal;
    background: var(--gradient-cta);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.section-subtitle {
    font-size: clamp(15px, 1.2vw, 18px);
    color: var(--text-soft);
    max-width: 720px;
    margin-bottom: 48px;
}

.pricing-note { margin-top: 24px; font-size: 13px; color: var(--text-mute); text-align: center; }

/* --------------------------------------------------------------------------
 * HERO
 * -------------------------------------------------------------------------- */

.hero {
    position: relative;
    background: var(--gradient-hero);
    overflow: hidden;
    border-bottom: 1px solid var(--border-soft);
}
.hero::after {
    content: "";
    position: absolute;
    inset: auto 0 0 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--hud), transparent);
    opacity: 0.45;
}

.hero-grid {
    max-width: var(--content-max);
    margin: 0 auto;
    padding: clamp(48px, 8vw, 96px) clamp(16px, 4vw, 32px) clamp(64px, 9vw, 96px);
    display: grid;
    grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
    gap: clamp(24px, 5vw, 64px);
    align-items: center;
    min-height: 620px;
}
@media (max-width: 880px) {
    .hero-grid { grid-template-columns: 1fr; gap: 40px; min-height: unset; }
}

.hero-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 12px;
    border-radius: var(--radius-pill);
    background: rgba(22, 27, 34, 0.6);
    border: 1px solid var(--border);
    color: var(--text-soft);
    font-size: 12.5px;
    font-weight: 500;
    margin-bottom: 22px;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}
.hero-eyebrow .dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--good);
    box-shadow: 0 0 8px var(--good);
    animation: pulse-dot 2.4s var(--ease-soft) infinite;
}
@keyframes pulse-dot {
    0%, 100% { box-shadow: 0 0 8px var(--good); }
    50% { box-shadow: 0 0 16px rgba(63, 185, 80, 0.85); }
}

/* Hero copy host: stacks panels and cross-fades them. */
.hero-copy-host {
    position: relative;
    min-height: 280px;
}
@media (max-width: 880px) { .hero-copy-host { min-height: 240px; } }
@media (max-width: 480px) { .hero-copy-host { min-height: 220px; } }

.hero-copy {
    position: absolute;
    inset: 0;
    opacity: 0;
    transform: translateY(8px);
    pointer-events: none;
    transition: opacity 1400ms var(--ease-soft), transform 1400ms var(--ease-soft);
}
.hero-copy.is-active {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
}

.hero-title {
    font-family: var(--font-display);
    font-size: clamp(36px, 5.6vw, 64px);
    line-height: 1.02;
    font-weight: 700;
    letter-spacing: -0.03em;
    color: var(--text);
    margin-bottom: 18px;
}
.hero-title em {
    font-style: normal;
    background: var(--gradient-cta);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.hero-tagline {
    font-size: clamp(16px, 1.4vw, 19px);
    color: var(--text);
    margin-bottom: 14px;
    font-weight: 500;
}
.hero-subtitle {
    font-size: clamp(14.5px, 1.05vw, 16.5px);
    color: var(--text-soft);
    max-width: 580px;
    margin-bottom: 32px;
    line-height: 1.55;
}

.cta-row {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    align-items: center;
    margin-top: 42px;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    border: 0;
    cursor: pointer;
    font-family: inherit;
    font-weight: 600;
    border-radius: var(--radius-pill);
    padding: 13px 22px;
    font-size: 14.5px;
    text-decoration: none;
    transition: transform 200ms var(--ease-snap), box-shadow 200ms var(--ease-snap), opacity 200ms var(--ease-snap), background 200ms var(--ease-snap);
    will-change: transform;
}
.btn-primary {
    background: var(--gradient-cta);
    color: #fff;
    box-shadow: var(--shadow-glow-orange);
    position: relative;
}
.btn-primary::after {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: inherit;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.18), rgba(255, 255, 255, 0));
    pointer-events: none;
    opacity: 0;
    transition: opacity 200ms var(--ease-snap);
}
.btn-primary:hover { transform: translateY(-2px); opacity: 1; box-shadow: 0 0 36px rgba(255, 122, 26, 0.65), 0 12px 30px rgba(240, 58, 71, 0.25); }
.btn-primary:hover::after { opacity: 1; }
.btn-outline {
    background: transparent;
    color: var(--text);
    border: 1px solid var(--border);
}
.btn-outline:hover { background: var(--surface-2); border-color: var(--hud); opacity: 1; }
.btn-ghost {
    background: transparent;
    color: var(--text-soft);
}
.btn-ghost:hover { color: var(--text); }
.btn--magnetic {
    /* JS sets a transform on mousemove; we keep transition fast so the
     * cursor-follow feels alive. */
    transition: transform 140ms var(--ease-soft), box-shadow 200ms var(--ease-snap), opacity 200ms var(--ease-snap), background 200ms var(--ease-snap);
}

.hero-strip {
    display: flex;
    align-items: center;
    gap: 26px;
    margin-top: 32px;
    padding-top: 24px;
    border-top: 1px dashed var(--border);
    color: var(--text-soft);
    font-size: 12.5px;
    flex-wrap: wrap;
}
.hero-strip > div {
    display: flex;
    flex-direction: column;
    gap: 2px;
}
.hero-strip strong {
    color: var(--text);
    font-family: var(--font-display);
    font-size: 22px;
    font-weight: 700;
    letter-spacing: -0.02em;
    background: linear-gradient(180deg, var(--text) 0%, var(--text-soft) 130%);
    -webkit-background-clip: text;
    background-clip: text;
}

/* --------------------------------------------------------------------------
 * HERO STAGE — paired phone mockups with overlap → ease-apart animation
 * -------------------------------------------------------------------------- */

.hero-stage-wrap {
    position: relative;
    width: 100%;
    aspect-ratio: 5 / 6;
    max-width: 560px;
    margin: 0 auto;
}

.hero-stage-glow {
    position: absolute;
    inset: -6%;
    z-index: 0;
    background:
        radial-gradient(60% 60% at 30% 40%, rgba(88, 166, 255, 0.45) 0%, transparent 70%),
        radial-gradient(50% 50% at 70% 65%, rgba(255, 122, 26, 0.45) 0%, transparent 70%);
    filter: blur(60px);
    opacity: 0.55;
    pointer-events: none;
    animation: glow-drift 14s ease-in-out infinite alternate;
}
@keyframes glow-drift {
    0%   { transform: translate3d(0, 0, 0) scale(1); }
    100% { transform: translate3d(-3%, 4%, 0) scale(1.05); }
}

.hero-stage {
    position: relative;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.hero-panel {
    position: absolute;
    inset: 0;
    opacity: 0;
    pointer-events: none;
    transition: opacity 800ms var(--ease-soft);
}
.hero-panel.is-active {
    opacity: 1;
    pointer-events: auto;
}

.hero-phone {
    position: absolute;
    width: 56%;
    aspect-ratio: 9 / 18.6;
    border-radius: 36px;
    overflow: hidden;
    background: var(--surface);
    border: 1px solid rgba(88, 166, 255, 0.4);
    box-shadow:
        var(--shadow-xl),
        0 0 60px rgba(88, 166, 255, 0.18),
        inset 0 1px 0 rgba(255, 255, 255, 0.06);
    transition:
        transform 3800ms var(--ease-glide),
        opacity 1400ms var(--ease-soft);
    will-change: transform, opacity;
}
.hero-phone img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top center;
}
.hero-phone::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, transparent 70%, rgba(0, 0, 0, 0.35) 100%);
    pointer-events: none;
}

/* Initial overlapped position. Phone B is offset right & down ~30% from
 * phone A. When .is-separated lands, both phones glide outward to be
 * visible side by side within the stage. */
.hero-phone--a {
    left: 22%;
    top: 6%;
    z-index: 2;
    transform: translate3d(0, 0, 0) rotate(-3deg);
}
.hero-phone--b {
    left: 22%;
    top: 6%;
    z-index: 1;
    transform: translate3d(30%, 18%, 0) rotate(2deg);
    border-color: rgba(255, 122, 26, 0.45);
    box-shadow:
        var(--shadow-xl),
        0 0 60px rgba(255, 122, 26, 0.20),
        inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

.hero-panel.is-active.is-separated .hero-phone--a {
    transform: translate3d(calc(-28.6% - 20px), -2%, 0) rotate(-4deg);
}
.hero-panel.is-active.is-separated .hero-phone--b {
    transform: translate3d(calc(50.6% + 20px), 14%, 0) rotate(3deg);
}

/* On mobile: keep stage compact. Stack phones a bit closer. */
@media (max-width: 880px) {
    .hero-stage-wrap { max-width: 460px; aspect-ratio: 6 / 6; }
    .hero-phone { width: 50%; }
    .hero-phone--a { left: 22%; top: 4%; }
    .hero-phone--b { left: 22%; top: 4%; }
    .hero-panel.is-active.is-separated .hero-phone--a { transform: translate3d(calc(-24.2% - 20px), -2%, 0) rotate(-4deg); }
    .hero-panel.is-active.is-separated .hero-phone--b { transform: translate3d(calc(39.6% + 20px), 14%, 0) rotate(3deg); }
}

@media (max-width: 480px) {
    .hero-stage-wrap { max-width: 380px; }
    .hero-phone { width: 54%; }
}

/* --------------------------------------------------------------------------
 * FEATURE GRID
 * -------------------------------------------------------------------------- */

.feature-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 16px;
}
.feature-card {
    position: relative;
    padding: 22px 22px 24px;
    border-radius: var(--radius-lg);
    background: var(--surface);
    border: 1px solid var(--border);
    transition: transform 220ms var(--ease-snap), border-color 220ms var(--ease-snap), box-shadow 220ms var(--ease-snap);
    overflow: hidden;
}
.feature-card::before {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: inherit;
    background: var(--gradient-feature);
    pointer-events: none;
    opacity: 0;
    transition: opacity 240ms var(--ease-snap);
}
.feature-card::after {
    content: "";
    position: absolute;
    top: 0; left: 50%;
    width: 60%;
    height: 1px;
    transform: translateX(-50%) scaleX(0.4);
    transform-origin: center;
    background: linear-gradient(90deg, transparent, var(--hud), transparent);
    opacity: 0;
    transition: opacity 240ms var(--ease-snap), transform 320ms var(--ease-snap);
}
.feature-card:hover {
    transform: translateY(-4px);
    border-color: rgba(88, 166, 255, 0.5);
    box-shadow: 0 18px 40px rgba(0, 0, 0, 0.35);
}
.feature-card:hover::before { opacity: 1; }
.feature-card:hover::after { opacity: 1; transform: translateX(-50%) scaleX(1); }
.feature-icon {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    display: grid;
    place-items: center;
    background: var(--surface-2);
    border: 1px solid var(--border);
    font-size: 22px;
    margin-bottom: 14px;
}
.feature-title {
    font-family: var(--font-display);
    font-size: 17px;
    font-weight: 600;
    color: var(--text);
    margin-bottom: 8px;
    letter-spacing: -0.01em;
}
.feature-desc {
    font-size: 14px;
    color: var(--text-soft);
    line-height: 1.55;
}

/* --------------------------------------------------------------------------
 * PERSONAS
 * -------------------------------------------------------------------------- */

.persona-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 14px;
}
.persona-card {
    padding: 22px;
    border-radius: var(--radius-md);
    background: var(--surface);
    border: 1px solid var(--border);
    border-left: 3px solid var(--tt-orange);
    transition: transform 220ms var(--ease-snap), border-color 220ms var(--ease-snap), background 220ms var(--ease-snap);
    position: relative;
}
.persona-card::after {
    content: "";
    position: absolute;
    right: 18px; top: 22px;
    width: 8px; height: 8px;
    border-radius: 50%;
    background: var(--tt-orange);
    box-shadow: 0 0 12px rgba(255, 122, 26, 0.6);
    opacity: 0.55;
}
.persona-card:nth-child(2n) { border-left-color: var(--hud); }
.persona-card:nth-child(2n)::after { background: var(--hud); box-shadow: 0 0 12px var(--hud); }
.persona-card:nth-child(3n) { border-left-color: var(--tt-yellow); }
.persona-card:nth-child(3n)::after { background: var(--tt-yellow); box-shadow: 0 0 12px var(--tt-yellow); }
.persona-card:nth-child(4n) { border-left-color: var(--accent); }
.persona-card:nth-child(4n)::after { background: var(--accent); box-shadow: 0 0 12px var(--accent); }
.persona-card:nth-child(5n) { border-left-color: var(--good); }
.persona-card:nth-child(5n)::after { background: var(--good); box-shadow: 0 0 12px var(--good); }
.persona-card:hover {
    transform: translateY(-3px);
    border-color: rgba(255, 255, 255, 0.18);
    background: linear-gradient(180deg, var(--surface) 0%, var(--surface-2) 100%);
}
.persona-name {
    font-family: var(--font-display);
    font-size: 16px;
    font-weight: 600;
    color: var(--text);
    margin-bottom: 8px;
    padding-right: 22px;
    letter-spacing: -0.01em;
}
.persona-desc {
    font-size: 13.8px;
    color: var(--text-soft);
    line-height: 1.55;
}

/* --------------------------------------------------------------------------
 * SCREENSHOT GALLERY (modern card grid + lightbox)
 * -------------------------------------------------------------------------- */

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 18px;
}
@media (min-width: 1080px) {
    .gallery-grid { grid-template-columns: repeat(6, 1fr); }
}
@media (max-width: 720px) {
    .gallery-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }
}

.gallery-tile {
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding: 0;
    background: transparent;
    border: 0;
    color: var(--text);
    cursor: zoom-in;
    text-align: left;
    font: inherit;
}

.gallery-tile-frame {
    position: relative;
    display: block;
    border-radius: 18px;
    overflow: hidden;
    background: var(--surface);
    border: 1px solid var(--border);
    aspect-ratio: 9 / 16.5;
    transition:
        transform 320ms var(--ease-snap),
        border-color 240ms var(--ease-snap),
        box-shadow 320ms var(--ease-snap);
}
.gallery-tile-frame::before {
    /* glossy highlight */
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(160deg, rgba(255, 255, 255, 0.07) 0%, transparent 35%);
    pointer-events: none;
    z-index: 2;
}
.gallery-tile-frame::after {
    /* zoom indicator */
    content: "+";
    position: absolute;
    right: 10px; bottom: 10px;
    width: 30px; height: 30px;
    border-radius: 999px;
    display: grid;
    place-items: center;
    background: rgba(10, 14, 20, 0.7);
    color: var(--text);
    font-family: var(--font-mono);
    font-weight: 600;
    font-size: 17px;
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    border: 1px solid rgba(255, 255, 255, 0.12);
    transition: transform 240ms var(--ease-snap), background 200ms var(--ease-snap);
    z-index: 3;
}
.gallery-tile-frame img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top center;
    transition: transform 600ms var(--ease-glide);
}
.gallery-tile:hover .gallery-tile-frame {
    transform: translateY(-4px);
    border-color: rgba(88, 166, 255, 0.55);
    box-shadow: 0 22px 60px rgba(0, 0, 0, 0.45), 0 0 36px rgba(88, 166, 255, 0.18);
}
.gallery-tile:hover .gallery-tile-frame img { transform: scale(1.04); }
.gallery-tile:hover .gallery-tile-frame::after { transform: scale(1.08); background: var(--hud); color: #0A0E14; }
.gallery-tile:focus-visible .gallery-tile-frame {
    border-color: var(--hud);
    box-shadow: 0 0 0 3px var(--hud-soft);
}

.gallery-tile-meta {
    display: flex;
    align-items: baseline;
    gap: 10px;
    padding: 0 4px;
}
.gallery-tile-num {
    font-family: var(--font-mono);
    font-size: 11px;
    font-weight: 600;
    color: var(--text-mute);
    letter-spacing: 0.06em;
}
.gallery-tile-caption {
    font-size: 13px;
    color: var(--text-soft);
    line-height: 1.4;
}

/* Lightbox */
.lightbox {
    position: fixed;
    inset: 0;
    z-index: 100;
    background: rgba(5, 7, 9, 0.92);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: center;
    gap: 12px;
    padding: clamp(40px, 6vw, 60px) clamp(8px, 3vw, 32px);
    animation: lightbox-fade 220ms var(--ease-snap);
}
.lightbox[hidden] { display: none; }
@keyframes lightbox-fade {
    from { opacity: 0; }
    to   { opacity: 1; }
}

.lightbox-media {
    grid-column: 2;
    align-self: center;
    justify-self: center;
    max-width: min(560px, 90vw);
    max-height: 86vh;
    display: grid;
    place-items: center;
    user-select: none;
}
.lightbox-img {
    max-width: 100%;
    max-height: 86vh;
    height: auto;
    object-fit: contain;
    border-radius: 18px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: var(--shadow-xl), 0 0 60px rgba(88, 166, 255, 0.25);
    animation: lightbox-pop 320ms var(--ease-snap);
}
@keyframes lightbox-pop {
    from { transform: scale(0.96); opacity: 0; }
    to   { transform: scale(1); opacity: 1; }
}

.lightbox-btn {
    background: rgba(22, 27, 34, 0.85);
    color: var(--text);
    border: 1px solid var(--border);
    border-radius: 999px;
    width: 48px;
    height: 48px;
    display: grid;
    place-items: center;
    cursor: pointer;
    font-size: 18px;
    transition: transform 180ms var(--ease-snap), background 180ms var(--ease-snap), border-color 180ms var(--ease-snap);
}
.lightbox-btn:hover {
    background: var(--surface-2);
    border-color: var(--hud);
    transform: scale(1.05);
}
.lightbox-btn--close { position: absolute; top: 18px; right: 18px; }
.lightbox-btn--prev { grid-column: 1; }
.lightbox-btn--next { grid-column: 3; }

.lightbox-bar {
    position: absolute;
    bottom: 18px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 8px 16px;
    border-radius: 999px;
    background: rgba(22, 27, 34, 0.85);
    border: 1px solid var(--border);
    color: var(--text);
    font-size: 13px;
    max-width: 90vw;
}
.lightbox-counter {
    font-family: var(--font-mono);
    font-size: 12px;
    color: var(--text-soft);
    letter-spacing: 0.08em;
}
.lightbox-caption { color: var(--text); }

@media (max-width: 720px) {
    .lightbox { grid-template-columns: 1fr; padding: 16px; }
    .lightbox-btn--prev, .lightbox-btn--next { position: absolute; bottom: 70px; }
    .lightbox-btn--prev { left: 16px; grid-column: 1; }
    .lightbox-btn--next { right: 16px; grid-column: 1; }
    .lightbox-media { grid-column: 1; max-width: 100%; }
}

/* --------------------------------------------------------------------------
 * TIERS / PRICING
 * -------------------------------------------------------------------------- */

.tiers {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 16px;
}
.tier-card {
    position: relative;
    padding: 28px;
    border-radius: var(--radius-lg);
    background: var(--surface);
    border: 1px solid var(--border);
    display: flex;
    flex-direction: column;
    gap: 16px;
    transition: transform 220ms var(--ease-snap), border-color 220ms var(--ease-snap);
}
.tier-card:hover { transform: translateY(-4px); border-color: rgba(255, 255, 255, 0.18); }
.tier-card.featured {
    border-color: rgba(255, 122, 26, 0.5);
    background: linear-gradient(180deg, rgba(255, 122, 26, 0.06) 0%, var(--surface) 60%);
    box-shadow: 0 0 0 1px rgba(255, 122, 26, 0.18), var(--shadow-glow-orange);
}
.tier-flag {
    position: absolute;
    top: -10px;
    right: 18px;
    background: var(--gradient-cta);
    color: #fff;
    width: 28px; height: 28px;
    border-radius: 50%;
    display: grid; place-items: center;
    font-size: 14px;
    box-shadow: 0 4px 16px rgba(255, 122, 26, 0.4);
}
.tier-name {
    font-family: var(--font-display);
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--text-soft);
}
.tier-price {
    font-family: var(--font-display);
    font-size: 36px;
    font-weight: 700;
    color: var(--text);
    line-height: 1;
}
.tier-price small {
    font-size: 14px;
    color: var(--text-soft);
    font-weight: 500;
    margin-left: 6px;
}
.tier-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 10px;
    font-size: 14px;
    color: var(--text-soft);
}
.tier-list li {
    display: flex;
    gap: 10px;
    align-items: flex-start;
}
.tier-list li::before {
    content: "";
    flex: 0 0 16px;
    height: 16px;
    margin-top: 3px;
    border-radius: 50%;
    background: var(--good);
    box-shadow: 0 0 0 3px rgba(63, 185, 80, 0.15);
}
.tier-card.featured .tier-list li::before { background: var(--tt-orange); box-shadow: 0 0 0 3px rgba(255, 122, 26, 0.18); }
.tier-cta { margin-top: auto; align-self: flex-start; }

/* --------------------------------------------------------------------------
 * VERIFY / CTA STRIP
 * -------------------------------------------------------------------------- */

.cta-strip {
    border-radius: var(--radius-xl);
    padding: clamp(32px, 4vw, 56px);
    background:
        radial-gradient(ellipse 80% 60% at 50% 0%, rgba(255, 122, 26, 0.18) 0%, transparent 70%),
        linear-gradient(135deg, rgba(255, 122, 26, 0.08) 0%, rgba(88, 166, 255, 0.06) 100%);
    border: 1px solid var(--border);
    text-align: center;
    position: relative;
    overflow: hidden;
}
.cta-strip::before {
    content: "";
    position: absolute;
    inset: 1px;
    border-radius: inherit;
    background: linear-gradient(180deg, transparent, rgba(255, 255, 255, 0.02));
    pointer-events: none;
}
.cta-strip h3 {
    font-family: var(--font-display);
    font-size: clamp(24px, 3vw, 36px);
    font-weight: 700;
    line-height: 1.1;
    color: var(--text);
    margin-bottom: 12px;
    max-width: 30ch;
    margin-left: auto;
    margin-right: auto;
}
.cta-strip p {
    color: var(--text-soft);
    margin-bottom: 28px;
    font-size: clamp(14px, 1.1vw, 16px);
}

/* --------------------------------------------------------------------------
 * FAQ
 * -------------------------------------------------------------------------- */

.faq {
    display: flex;
    flex-direction: column;
    gap: 12px;
}
.faq details {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    padding: 18px 20px;
    transition: border-color 200ms var(--ease-snap), background 200ms var(--ease-snap);
}
.faq details[open] { border-color: var(--hud); background: linear-gradient(180deg, var(--surface) 0%, var(--surface-2) 100%); }
.faq summary {
    cursor: pointer;
    font-weight: 600;
    color: var(--text);
    list-style: none;
    display: flex;
    justify-content: space-between;
    gap: 12px;
    align-items: center;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
    content: "+";
    font-family: var(--font-mono);
    color: var(--text-soft);
    transition: transform 200ms var(--ease-snap), color 200ms var(--ease-snap);
    font-size: 18px;
}
.faq details[open] summary::after { content: "−"; color: var(--hud); }
.faq p {
    margin-top: 14px;
    color: var(--text-soft);
    font-size: 14.5px;
    line-height: 1.65;
}

/* --------------------------------------------------------------------------
 * FOOTER
 * -------------------------------------------------------------------------- */

.footer {
    border-top: 1px solid var(--border-soft);
    background: var(--bg-alt);
    padding: 48px 0 24px;
}
.footer-inner {
    max-width: var(--content-max);
    margin: 0 auto;
    padding: 0 clamp(16px, 4vw, 32px);
    display: flex;
    flex-direction: column;
    gap: 24px;
}
.footer-row {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    align-items: center;
    justify-content: space-between;
}
.footer-links {
    display: flex;
    flex-wrap: wrap;
    gap: 18px;
}
.footer-links a {
    color: var(--text-soft);
    font-size: 13.5px;
}
.footer-links a:hover { color: var(--text); }
.footer-meta {
    color: var(--text-mute);
    font-size: 12.5px;
}
.footer-brand {
    display: flex;
    align-items: center;
    gap: 12px;
    color: var(--text);
    font-family: var(--font-display);
    font-weight: 700;
}
.footer-brand img { width: 28px; height: 28px; border-radius: 6px; }

/* Tagline + CTA row — sits between the nav row and the legal copy. */
.footer-tagline-row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    padding: 4px 0;
}
.footer-tagline {
    color: var(--text-soft);
    font-size: 13.5px;
    margin: 0;
    flex: 1 1 320px;
    min-width: 0;
}
.footer-ctas {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    align-items: stretch;
}

.footer-cta {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    padding: 8px 14px;
    border-radius: var(--radius-md);
    background: var(--surface);
    border: 1px solid var(--border);
    color: var(--text);
    text-decoration: none;
    font-family: inherit;
    line-height: 1.2;
    transition:
        transform 200ms var(--ease-snap),
        border-color 200ms var(--ease-snap),
        background 200ms var(--ease-snap),
        box-shadow 200ms var(--ease-snap);
}
.footer-cta:hover {
    transform: translateY(-2px);
    background: var(--surface-2);
    opacity: 1;
}

.footer-cta-text {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

/* The NeuroStrike chip wraps two distinct anchors so the badge can target the
 * official Play Store listing while the text targets the marketing landing
 * page. Inner anchors inherit colour, drop underlines, and behave as flex
 * children inside the chip without disturbing the existing hover effect. */
.footer-cta-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: inherit;
    text-decoration: none;
    border-radius: 6px;
    outline: none;
    transition: opacity 200ms var(--ease-snap);
}
.footer-cta-link:focus-visible {
    box-shadow: 0 0 0 2px rgba(88, 166, 255, 0.55);
}
.footer-cta-link--text:hover { opacity: 0.85; }
.footer-cta-eyebrow {
    font-size: 10.5px;
    font-weight: 500;
    color: var(--text-mute);
    text-transform: uppercase;
    letter-spacing: 0.06em;
    font-family: var(--font-display);
}
.footer-cta-title {
    font-size: 13.5px;
    font-weight: 600;
    color: var(--text);
    font-family: var(--font-display);
    letter-spacing: -0.005em;
}

.footer-cta-badge {
    display: block;
    height: 32px;
    width: auto;
    flex: 0 0 auto;
    /* The official badge is a colour SVG; we keep it as-is so it stays
     * brand-compliant. A subtle drop-shadow on hover ties it into the
     * Eleven HUD palette without altering the source asset. */
    filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.4));
    transition: filter 200ms var(--ease-snap), transform 200ms var(--ease-snap);
}
.footer-cta--neurostrike {
    border-color: rgba(88, 166, 255, 0.28);
    box-shadow: inset 0 0 0 1px rgba(88, 166, 255, 0.06);
}
.footer-cta--neurostrike:hover {
    border-color: rgba(88, 166, 255, 0.55);
    box-shadow: 0 8px 22px rgba(0, 0, 0, 0.4), 0 0 24px rgba(88, 166, 255, 0.18);
}
.footer-cta--neurostrike:hover .footer-cta-badge {
    transform: scale(1.04);
    filter: drop-shadow(0 4px 10px rgba(88, 166, 255, 0.35));
}

.footer-cta--support {
    border-color: rgba(255, 122, 26, 0.28);
    background: linear-gradient(180deg, rgba(255, 122, 26, 0.05) 0%, var(--surface) 80%);
}
.footer-cta--support:hover {
    border-color: rgba(255, 122, 26, 0.55);
    background: linear-gradient(180deg, rgba(255, 122, 26, 0.10) 0%, var(--surface-2) 80%);
    box-shadow: 0 8px 22px rgba(0, 0, 0, 0.4), 0 0 24px rgba(255, 122, 26, 0.22);
}
.footer-cta-icon {
    display: grid;
    place-items: center;
    width: 32px;
    height: 32px;
    border-radius: 10px;
    background: var(--gradient-cta);
    color: #fff;
    font-size: 16px;
    box-shadow: var(--shadow-glow-orange);
    flex: 0 0 auto;
}

@media (max-width: 720px) {
    .footer-tagline-row { gap: 14px; }
    .footer-tagline { flex-basis: 100%; text-align: center; }
    .footer-ctas { width: 100%; justify-content: center; }
}

/* --------------------------------------------------------------------------
 * REVEAL ON SCROLL — taste-skill influenced subtle reveal
 * -------------------------------------------------------------------------- */

[data-reveal] {
    opacity: 0;
    transform: translateY(18px);
    transition: opacity 700ms var(--ease-soft), transform 700ms var(--ease-soft);
}
[data-reveal].is-visible { opacity: 1; transform: translateY(0); }
[data-reveal]:nth-child(2) { transition-delay: 60ms; }
[data-reveal]:nth-child(3) { transition-delay: 120ms; }
[data-reveal]:nth-child(4) { transition-delay: 180ms; }
[data-reveal]:nth-child(5) { transition-delay: 240ms; }
[data-reveal]:nth-child(6) { transition-delay: 300ms; }
[data-reveal]:nth-child(7) { transition-delay: 360ms; }
[data-reveal]:nth-child(8) { transition-delay: 420ms; }
[data-reveal]:nth-child(9) { transition-delay: 480ms; }
[data-reveal]:nth-child(10) { transition-delay: 540ms; }
[data-reveal]:nth-child(11) { transition-delay: 600ms; }
[data-reveal]:nth-child(12) { transition-delay: 660ms; }

/* --------------------------------------------------------------------------
 * MODERN POLISH — non-hero block animations
 * Premium / professional sports cues: gradient sweep on feature cards,
 * pulsing ring on the featured tier, breathing accent dot on personas,
 * and a soft underline shine that runs across section titles when they
 * enter the viewport. All paths honour prefers-reduced-motion via the
 * global override at the bottom of this file.
 * -------------------------------------------------------------------------- */

/* Feature cards — animated top accent line that sweeps in on hover. */
.feature-card::after {
    /* override base ::after — keep the same hairline but make it glide. */
    transition: opacity 360ms var(--ease-snap), transform 720ms var(--ease-glide);
}
.feature-card:hover .feature-icon {
    transform: translateY(-2px) scale(1.04);
    border-color: rgba(88, 166, 255, 0.55);
    box-shadow: 0 8px 22px rgba(0, 0, 0, 0.35), 0 0 18px rgba(88, 166, 255, 0.25);
}
.feature-icon {
    transition: transform 280ms var(--ease-snap), border-color 240ms var(--ease-snap), box-shadow 280ms var(--ease-snap);
}

/* Persona cards — breathing accent dot. Each colour group pulses on its
 * own delay so the grid feels alive without being noisy. */
.persona-card::after {
    animation: persona-dot-pulse 4.6s var(--ease-soft) infinite;
}
.persona-card:nth-child(2n)::after { animation-delay: 0.4s; }
.persona-card:nth-child(3n)::after { animation-delay: 0.8s; }
.persona-card:nth-child(4n)::after { animation-delay: 1.2s; }
.persona-card:nth-child(5n)::after { animation-delay: 1.6s; }
@keyframes persona-dot-pulse {
    0%, 100% { opacity: 0.45; transform: scale(1); }
    50%      { opacity: 0.95; transform: scale(1.18); }
}

/* Tier card (featured plan) — subtle premium breathing ring. */
.tier-card.featured::after {
    content: "";
    position: absolute;
    inset: -1px;
    border-radius: inherit;
    pointer-events: none;
    box-shadow: 0 0 0 1px rgba(255, 122, 26, 0.0);
    animation: tier-ring-breathe 4.2s var(--ease-soft) infinite;
}
@keyframes tier-ring-breathe {
    0%, 100% { box-shadow: 0 0 0 1px rgba(255, 122, 26, 0.18), 0 0 24px rgba(255, 122, 26, 0.10); }
    50%      { box-shadow: 0 0 0 1px rgba(255, 122, 26, 0.42), 0 0 36px rgba(255, 122, 26, 0.28); }
}

/* Section title — soft shine sweeps left→right when first revealed. */
[data-reveal].is-visible .section-title em,
.section-title.is-shine em {
    background-image: linear-gradient(
        90deg,
        var(--tt-orange) 0%,
        var(--tt-red) 30%,
        var(--tt-yellow) 50%,
        var(--tt-red) 70%,
        var(--tt-orange) 100%
    );
    background-size: 200% 100%;
    animation: title-shine 5.8s var(--ease-soft) infinite;
}
@keyframes title-shine {
    0%   { background-position: 0% 50%; }
    100% { background-position: 200% 50%; }
}

/* Section tag — quiet shimmer sweep so the eyebrow feels alive. */
.section-tag {
    position: relative;
    overflow: hidden;
    isolation: isolate;
}
.section-tag::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(110deg, transparent 35%, rgba(255, 255, 255, 0.18) 50%, transparent 65%);
    transform: translateX(-100%);
    animation: tag-shimmer 6s var(--ease-soft) infinite;
    z-index: -1;
}
@keyframes tag-shimmer {
    0%, 60%, 100% { transform: translateX(-100%); }
    80%           { transform: translateX(100%); }
}

/* CTA strip — slow sheen sweep across the panel. */
.cta-strip::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(115deg, transparent 30%, rgba(255, 255, 255, 0.05) 50%, transparent 70%);
    transform: translateX(-100%);
    animation: cta-sheen 9s var(--ease-soft) infinite;
    pointer-events: none;
}
@keyframes cta-sheen {
    0%, 50%, 100% { transform: translateX(-100%); }
    75%           { transform: translateX(100%); }
}

/* --------------------------------------------------------------------------
 * RESPONSIVE
 * -------------------------------------------------------------------------- */

@media (max-width: 760px) {
    .nav-links { display: none; position: absolute; top: var(--nav-height); left: 0; right: 0; flex-direction: column; gap: 0; padding: 12px; background: rgba(10, 14, 20, 0.97); border-bottom: 1px solid var(--border); }
    .nav-links.is-open { display: flex; }
    .nav-links a { padding: 12px 14px; border-radius: 8px; }
    .nav-toggle { display: inline-flex; }
    .nav-cta { display: none; }
    .feature-grid { grid-template-columns: 1fr; }
    .lightbox-btn { width: 44px; height: 44px; }
}

@media (max-width: 1024px) and (min-width: 761px) {
    .hero-grid { grid-template-columns: 1.05fr 1fr; }
    .feature-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation: none !important;
        transition: none !important;
        scroll-behavior: auto !important;
    }
    [data-reveal] { opacity: 1; transform: none; }
    .hero-panel { opacity: 0; }
    .hero-panel.is-active { opacity: 1; }
    /* Show separated state immediately so reduced-motion users still get
     * a clean side-by-side hero rather than overlapped phones. */
    .hero-panel.is-active .hero-phone--a { transform: translate3d(calc(-24.2% - 20px), -2%, 0) rotate(-4deg); }
    .hero-panel.is-active .hero-phone--b { transform: translate3d(calc(39.6% + 20px), 14%, 0) rotate(3deg); }
    .hero-stage-glow { animation: none; }
    /* Backdrop: lock the first slide visible so users don't see crossfade
     * while still getting the ambient tone. */
    .site-bg__slide { transition: none !important; opacity: 0; }
    .site-bg__slide[data-bg="0"] { opacity: 0.18; }
}
