/* ============================================================
   Aidithi marketing site
   Color tokens mirror the app's theme (Aidithi/wwwroot/css/theme.css):
   light in :root, dark under [data-theme="dark"]. Consume tokens with
   var(--token) — do not hardcode palette colors in pages.
   ============================================================ */

/* ---- Light theme (default) ---- */
:root {
    color-scheme: light;
    --bg-main: #F8FAFC;
    --bg-surface: #CEE1F0;
    --text-primary: #0F172A;
    --text-secondary: #64748B;
    --accent-primary: #1E3A8A;
    --accent-secondary: #3B82F6;
    --bg-formcontrols: #cbd5d7;
    --border: #E2E8F0;
    --surface-hover: #F1F5F9;
    --accent-soft: rgba(30, 58, 138, .10);
    --accent-contrast: #FFFFFF;
    --on-accent: var(--accent-contrast);
    --shadow: rgba(15, 23, 42, .08);
    --accent-strong: #172554;
    --accent-primary-rgb: 30, 58, 138;
    --bg-inset: #EDF2F7;
    --border-strong: #CBD5E1;
    --success: #178352;
    --success-soft: rgba(23, 131, 82, .12);
    --warning: #F59E0B;
    --danger: #DC3545;
    --danger-soft: rgba(220, 53, 69, .12);
    --info: #2563EB;
    --pink: #CE8C2D;
    --pink-soft: #BD9F6F;
    /* Site-only helpers derived from the palette */
    --card: #FFFFFF;
    --band: linear-gradient(180deg, #0A1120 0%, #12336E 50%, #0B1730 100%); /* app sidebar gradient */
    --band-text: #CBD5E1;
    --band-muted: #94A3B8;
    --gold-soft: rgba(206, 140, 45, .14); /* translucent gold tint (theme.css --pink-soft is solid in light) */
    --radius: 18px;
    --wrap: 1180px;
    --font-display: 'Sora', 'Segoe UI', system-ui, sans-serif;
    --font-body: 'Inter', 'Segoe UI', system-ui, sans-serif;
}

/* ---- Dark theme ---- */
:root[data-theme="dark"] {
    color-scheme: dark;
    --bg-main: #0B0F19;
    --bg-surface: #111827;
    --text-primary: #F8FAFC;
    --text-secondary: #94A3B8;
    --accent-primary: #3B82F6;
    --accent-secondary: #60A5FA;
    --bg-formcontrols: #2f4950ab;
    --border: #1E293B;
    --surface-hover: #1E293B;
    --accent-soft: rgba(59, 130, 246, .14);
    --shadow: rgba(0, 0, 0, .50);
    --accent-strong: #2563EB;
    --accent-primary-rgb: 59, 130, 246;
    --bg-inset: #070A12;
    --border-strong: #334155;
    --success: #3DBE86;
    --success-soft: rgba(61, 190, 134, .16);
    --danger: #F16B77;
    --danger-soft: rgba(241, 107, 119, .16);
    --info: #3B82F6;
    --pink-soft: rgba(206, 140, 45, .16);
    --card: #111827;
}

/* No-JS fallback: follow the OS when no explicit choice was made. */
@media (prefers-color-scheme: dark) {
    :root:not([data-theme="light"]) {
        color-scheme: dark;
        --bg-main: #0B0F19;
        --bg-surface: #111827;
        --text-primary: #F8FAFC;
        --text-secondary: #94A3B8;
        --accent-primary: #3B82F6;
        --accent-secondary: #60A5FA;
        --bg-formcontrols: #2f4950ab;
        --border: #1E293B;
        --surface-hover: #1E293B;
        --accent-soft: rgba(59, 130, 246, .14);
        --shadow: rgba(0, 0, 0, .50);
        --accent-strong: #2563EB;
        --accent-primary-rgb: 59, 130, 246;
        --bg-inset: #070A12;
        --border-strong: #334155;
        --success: #3DBE86;
        --success-soft: rgba(61, 190, 134, .16);
        --danger: #F16B77;
        --danger-soft: rgba(241, 107, 119, .16);
        --info: #3B82F6;
        --pink-soft: rgba(206, 140, 45, .16);
        --card: #111827;
    }
}

/* ============================================================
   Base
   ============================================================ */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
    margin: 0;
    background: var(--bg-main);
    color: var(--text-primary);
    font-family: var(--font-body);
    font-size: 16px;
    line-height: 1.6;
    overflow-x: hidden;
    transition: background-color .2s ease, color .2s ease;
}
img, svg, video { max-width: 100%; display: block; }
a { color: var(--accent-primary); text-decoration: none; }
a:hover { color: var(--accent-secondary); }
h1, h2, h3, h4 { font-family: var(--font-display); line-height: 1.15; margin: 0 0 .5em; letter-spacing: -.02em; }
p { margin: 0 0 1em; }
:focus-visible { outline: 3px solid var(--accent-secondary); outline-offset: 3px; border-radius: 6px; }

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 20px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---- Buttons ---- */
.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 8px;
    padding: 12px 22px; border-radius: 999px; border: 1.5px solid transparent;
    font-family: var(--font-body); font-weight: 600; font-size: 15px; line-height: 1;
    cursor: pointer; transition: transform .15s ease, background-color .2s ease, border-color .2s ease, color .2s ease, box-shadow .2s ease;
    white-space: nowrap;
}
.btn:hover { transform: translateY(-1px); }
.btn-primary { background: var(--accent-primary); color: var(--on-accent); box-shadow: 0 8px 24px -10px rgba(var(--accent-primary-rgb), .7); }
.btn-primary:hover { background: var(--accent-strong); color: var(--on-accent); }
.btn-primary:disabled { opacity: .7; cursor: progress; transform: none; }
.btn-ghost { background: transparent; color: var(--text-primary); border-color: var(--border-strong); }
.btn-ghost:hover { border-color: var(--accent-primary); color: var(--accent-primary); }
.btn-gold { background: var(--pink); color: #1a1204; }
.btn-gold:hover { filter: brightness(1.08); color: #1a1204; }
.btn-glass { background: rgba(255,255,255,.08); color: #F8FAFC; border-color: rgba(255,255,255,.28); backdrop-filter: blur(6px); }
.btn-glass:hover { background: rgba(255,255,255,.16); color: #fff; }

.tag {
    display: inline-flex; align-items: center; gap: 8px;
    padding: 6px 14px; border-radius: 999px;
    background: var(--accent-soft); color: var(--accent-primary);
    font-size: 12.5px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase;
}

/* ============================================================
   Header
   ============================================================ */
.site-header {
    position: sticky; top: 0; z-index: 50;
    background: color-mix(in srgb, var(--bg-main) 82%, transparent);
    backdrop-filter: saturate(160%) blur(12px);
    -webkit-backdrop-filter: saturate(160%) blur(12px);
    border-bottom: 1px solid var(--border);
}
.site-header nav { display: flex; align-items: center; gap: 20px; height: 68px; }
.logo { display: inline-flex; align-items: center; gap: 10px; font-family: var(--font-display); font-weight: 700; font-size: 20px; color: var(--text-primary); letter-spacing: -.02em; }
.logo:hover { color: var(--text-primary); }
.logo img { width: 40px; height: 40px; border-radius: 50%; box-shadow: 0 2px 8px -2px var(--shadow); }
.logo .ai { color: var(--accent-secondary); }
.navlinks { display: flex; gap: 26px; margin-left: auto; }
.navlinks a { color: var(--text-secondary); font-weight: 500; font-size: 15px; }
.navlinks a:hover, .navlinks a[aria-current="page"] { color: var(--text-primary); }
.nav-actions { display: flex; align-items: center; gap: 10px; }
.theme-toggle {
    width: 40px; height: 40px; border-radius: 50%;
    display: inline-grid; place-items: center;
    background: var(--surface-hover); color: var(--text-primary);
    border: 1px solid var(--border); cursor: pointer; font-size: 17px;
}
.theme-toggle:hover { border-color: var(--accent-primary); }
.theme-toggle .i-sun { display: none; }
:root[data-theme="dark"] .theme-toggle .i-sun { display: inline; }
:root[data-theme="dark"] .theme-toggle .i-moon { display: none; }
.menu-toggle { display: none; }

/* Header floating over the hero (index only) */
.site-header.over-hero {
    position: fixed; left: 0; right: 0;
    background: transparent; border-bottom-color: transparent; backdrop-filter: none; -webkit-backdrop-filter: none;
    transition: background-color .25s ease, border-color .25s ease;
}
.site-header.over-hero .logo, .site-header.over-hero .navlinks a { color: #E2E8F0; }
.site-header.over-hero .navlinks a:hover { color: #fff; }
.site-header.over-hero .theme-toggle { background: rgba(255,255,255,.08); color: #fff; border-color: rgba(255,255,255,.2); }
.site-header.over-hero.scrolled {
    background: color-mix(in srgb, var(--bg-main) 85%, transparent);
    border-bottom-color: var(--border);
    backdrop-filter: saturate(160%) blur(12px); -webkit-backdrop-filter: saturate(160%) blur(12px);
}
.site-header.over-hero.scrolled .logo { color: var(--text-primary); }
.site-header.over-hero.scrolled .navlinks a { color: var(--text-secondary); }
.site-header.over-hero.scrolled .navlinks a:hover { color: var(--text-primary); }
.site-header.over-hero.scrolled .theme-toggle { background: var(--surface-hover); color: var(--text-primary); border-color: var(--border); }

/* ============================================================
   Hero — always a night scene regardless of theme
   ============================================================ */
.hero {
    position: relative; min-height: 100vh; min-height: 100svh;
    display: flex; align-items: center;
    padding: 110px 0 70px;
    background: #05070D; color: #F8FAFC;
    overflow: hidden; isolation: isolate;
}
.hero-video {
    position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
    z-index: -2; opacity: 0; transition: opacity 1s ease;
}
.hero-video.ready { opacity: 1; }
.hero::after { /* legibility overlay */
    content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
    background:
        linear-gradient(90deg, rgba(5,7,13,.88) 0%, rgba(5,7,13,.55) 45%, rgba(5,7,13,.25) 100%),
        linear-gradient(0deg, rgba(5,7,13,.9) 0%, transparent 35%);
}

/* ---- Animated CSS club scene (fallback / under the video) ---- */
.club { position: absolute; inset: 0; z-index: -3; overflow: hidden; background: radial-gradient(120% 80% at 70% 10%, #0f1d44 0%, #070a14 55%, #03040a 100%); }
.club .wash { position: absolute; width: 70vmax; height: 70vmax; border-radius: 50%; filter: blur(70px); opacity: .55; mix-blend-mode: screen; }
.club .wash.w1 { background: #1d4ed8; top: -30vmax; left: 30%; animation: drift1 9s ease-in-out infinite alternate; }
.club .wash.w2 { background: #CE8C2D; top: 10%; right: -30vmax; opacity: .35; animation: drift2 11s ease-in-out infinite alternate; }
.club .wash.w3 { background: #7c3aed; bottom: -35vmax; left: -20vmax; opacity: .35; animation: drift1 13s ease-in-out infinite alternate-reverse; }
@keyframes drift1 { to { transform: translate(-12vmax, 8vmax) scale(1.1); } }
@keyframes drift2 { to { transform: translate(-10vmax, -6vmax) scale(.9); } }

.club .rig { position: absolute; top: -4%; left: 62%; width: 0; height: 0; }
.club .beam {
    position: absolute; top: 0; left: 0; width: 3px; height: 130vh; transform-origin: top center;
    background: linear-gradient(180deg, rgba(96,165,250,.95), rgba(96,165,250,0) 85%);
    filter: drop-shadow(0 0 6px rgba(96,165,250,.9));
    mix-blend-mode: screen;
}
.club .beam:nth-child(odd) { background: linear-gradient(180deg, rgba(232,176,86,.95), rgba(232,176,86,0) 80%); filter: drop-shadow(0 0 6px rgba(232,176,86,.8)); }
.club .beam:nth-child(1) { animation: sweepA 4.2s ease-in-out infinite alternate; }
.club .beam:nth-child(2) { animation: sweepB 3.6s ease-in-out infinite alternate; }
.club .beam:nth-child(3) { animation: sweepA 5.1s ease-in-out -1s infinite alternate-reverse; }
.club .beam:nth-child(4) { animation: sweepB 4.6s ease-in-out -2s infinite alternate; }
.club .beam:nth-child(5) { animation: sweepA 3.9s ease-in-out -.5s infinite alternate-reverse; }
.club .beam:nth-child(6) { animation: sweepB 5.5s ease-in-out -3s infinite alternate-reverse; }
.club .rig.r2 { left: 18%; }
@keyframes sweepA { from { transform: rotate(-55deg); } to { transform: rotate(35deg); } }
@keyframes sweepB { from { transform: rotate(50deg); } to { transform: rotate(-30deg); } }

.club .strobe { position: absolute; inset: 0; background: radial-gradient(60% 40% at 60% 0%, rgba(255,255,255,.22), transparent 70%); opacity: 0; animation: strobe 2.4s steps(1) infinite; }
@keyframes strobe { 0%, 8%, 16% { opacity: 1; } 4%, 12%, 20%, 100% { opacity: 0; } }

.club .haze { position: absolute; left: 0; right: 0; bottom: 18%; height: 40%; background: radial-gradient(60% 50% at 50% 100%, rgba(148,163,184,.18), transparent 70%); animation: haze 7s ease-in-out infinite alternate; }
@keyframes haze { to { transform: translateX(6%); opacity: .6; } }

.club .eq { position: absolute; left: 0; right: 0; bottom: 0; height: 26%; display: flex; align-items: flex-end; gap: 6px; padding: 0 6px; opacity: .22; }
.club .eq span { flex: 1; background: linear-gradient(0deg, #3B82F6, #CE8C2D); border-radius: 3px 3px 0 0; height: 30%; animation: eq 1s ease-in-out infinite alternate; }
@keyframes eq { 0% { height: 12%; } 50% { height: 70%; } 100% { height: 30%; } }

.club .crowd { position: absolute; left: -2%; right: -2%; bottom: -2px; height: 34%; }
.club .crowd svg { width: 100%; height: 100%; }
.club .crowd .bob { animation: bob .47s ease-in-out infinite alternate; transform-box: fill-box; transform-origin: bottom center; }
.club .crowd .bob.d1 { animation-delay: -.12s; }
.club .crowd .bob.d2 { animation-delay: -.25s; }
.club .crowd .bob.d3 { animation-delay: -.36s; }
.club .crowd .hands { animation: hands .94s ease-in-out infinite alternate; transform-box: fill-box; transform-origin: bottom center; }
@keyframes bob { to { transform: translateY(6px); } }
@keyframes hands { to { transform: translateY(-10px) rotate(-4deg); } }

.club .dj {
    position: absolute; left: 50%; bottom: 30%; transform: translateX(-50%);
    width: 180px; height: 12px; border-radius: 6px;
    background: linear-gradient(90deg, #3B82F6, #CE8C2D, #3B82F6);
    background-size: 200% 100%; animation: djbar 2s linear infinite; filter: blur(1px) drop-shadow(0 0 14px rgba(96,165,250,.8)); opacity: .7;
}
@keyframes djbar { to { background-position: 200% 0; } }

/* ---- Hero content ---- */
.hero-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: 48px; align-items: center; }
.hero-copy .eyebrow { display: inline-flex; align-items: center; gap: 10px; padding: 7px 14px; border-radius: 999px; background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.16); font-size: 13px; font-weight: 600; letter-spacing: .04em; color: #E2E8F0; backdrop-filter: blur(6px); }
.hero-copy .eyebrow .dot { width: 8px; height: 8px; border-radius: 50%; background: #3DBE86; box-shadow: 0 0 0 0 rgba(61,190,134,.7); animation: ping 1.8s infinite; }
@keyframes ping { 70% { box-shadow: 0 0 0 10px rgba(61,190,134,0); } 100% { box-shadow: 0 0 0 0 rgba(61,190,134,0); } }
.hero h1 { font-size: clamp(38px, 6vw, 70px); margin: 22px 0 18px; font-weight: 700; color: #fff; }
.hero h1 .glow { background: linear-gradient(90deg, #60A5FA, #E8B056); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero .lead { font-size: clamp(16px, 1.6vw, 19px); color: #CBD5E1; max-width: 540px; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.hero-stats { display: flex; flex-wrap: wrap; gap: 28px; margin-top: 40px; color: #94A3B8; font-size: 13.5px; }
.hero-stats strong { display: block; font-family: var(--font-display); font-size: 24px; color: #F8FAFC; }
.scroll-cue { position: absolute; left: 50%; bottom: 22px; transform: translateX(-50%); color: #94A3B8; font-size: 12px; letter-spacing: .12em; text-transform: uppercase; display: flex; flex-direction: column; align-items: center; gap: 8px; }
.scroll-cue::after { content: ""; width: 2px; height: 28px; background: linear-gradient(#94A3B8, transparent); animation: cue 1.6s ease-in-out infinite; }
@keyframes cue { 0% { transform: scaleY(0); transform-origin: top; } 50% { transform: scaleY(1); transform-origin: top; } 51% { transform-origin: bottom; } 100% { transform: scaleY(0); transform-origin: bottom; } }

/* ============================================================
   Phone mockup + WhatsApp-style chat
   ============================================================ */
.phone-stage { position: relative; display: flex; justify-content: center; }
.phone-stage::before { content: ""; position: absolute; width: 120%; height: 70%; top: 15%; background: radial-gradient(closest-side, rgba(59,130,246,.45), transparent); filter: blur(30px); z-index: 0; }
.phone {
    position: relative; z-index: 1;
    width: 300px; height: clamp(520px, calc(100vh - 170px), 610px); padding: 12px; border-radius: 46px;
    background: linear-gradient(145deg, #2b3445, #0d1220);
    box-shadow: 0 0 0 2px #3a4458, 0 40px 80px -20px rgba(0,0,0,.8), inset 0 0 0 2px #111827;
    animation: float 6s ease-in-out infinite;
}
@keyframes float { 50% { transform: translateY(-10px) rotate(.4deg); } }
.phone::before { content: ""; position: absolute; top: 20px; left: 50%; transform: translateX(-50%); width: 92px; height: 24px; border-radius: 14px; background: #05070d; z-index: 5; }
.screen { position: relative; width: 100%; height: 100%; border-radius: 36px; overflow: hidden; background: #0b141a; color: #e9edef; font-size: 13px; display: flex; flex-direction: column; }

.statusbar { display: flex; justify-content: space-between; padding: 14px 26px 6px; font-size: 11.5px; font-weight: 600; color: #e9edef; }
.wa-head { display: flex; align-items: center; gap: 10px; padding: 8px 12px 10px; background: #1f2c34; }
.wa-head .back { color: #8696a0; font-size: 16px; }
.wa-head .avatar { width: 34px; height: 34px; border-radius: 50%; flex: none; }
.wa-head .avatar img { width: 100%; height: 100%; }
.wa-head .who { line-height: 1.2; }
.wa-head .who b { display: block; font-size: 13.5px; }
.wa-head .who small { color: #8696a0; font-size: 11px; }
.wa-head .verified { display: inline-grid; place-items: center; width: 13px; height: 13px; border-radius: 50%; background: #25D366; color: #0b141a; font-size: 9px; margin-left: 4px; vertical-align: 1px; }

.chat {
    flex: 1; overflow: hidden; padding: 12px 10px 10px;
    display: flex; flex-direction: column; justify-content: flex-end; gap: 6px;
    background-color: #0b141a;
    background-image: radial-gradient(rgba(255,255,255,.035) 1px, transparent 1px);
    background-size: 14px 14px;
}
.msg { max-width: 84%; padding: 7px 9px 6px; border-radius: 10px; line-height: 1.4; position: relative; animation: pop .28s ease-out both; font-size: 12.5px; }
.msg.in { align-self: flex-start; background: #1f2c34; border-top-left-radius: 3px; }
.msg.out { align-self: flex-end; background: #005c4b; border-top-right-radius: 3px; }
.msg .t { display: block; text-align: right; font-size: 9.5px; color: rgba(233,237,239,.55); margin-top: 2px; }
.msg.out .t::after { content: " ✓✓"; color: #53bdeb; }
.msg .poster { margin: -3px -5px 6px; border-radius: 7px; overflow: hidden; height: 112px; position: relative; background: linear-gradient(135deg, #1E3A8A, #0B0F19 60%), #0B0F19; display: flex; flex-direction: column; justify-content: flex-end; padding: 10px; }
.msg .poster::before { content: ""; position: absolute; inset: 0; background: repeating-conic-gradient(from 0deg at 80% 0%, rgba(232,176,86,.25) 0 4deg, transparent 4deg 16deg); }
.msg .poster b { position: relative; font-family: var(--font-display); font-size: 16px; letter-spacing: .02em; }
.msg .poster small { position: relative; color: #E8B056; font-size: 10.5px; font-weight: 600; }
.quick { align-self: stretch; display: grid; gap: 4px; margin-top: -2px; animation: pop .28s ease-out both; }
.quick.row { grid-template-columns: repeat(3, 1fr); }
.quick button { background: #1f2c34; color: #53bdeb; border: 0; border-radius: 8px; padding: 8px 4px; font: 600 12px var(--font-body); cursor: default; transition: background-color .2s ease, transform .2s ease; }
.quick button.tap { background: #2a3942; transform: scale(.96); }
.quick button.picked { background: #005c4b; color: #e9edef; }
.chips { display: flex; flex-wrap: wrap; gap: 5px; margin-top: 6px; }
.chips span { padding: 4px 9px; border-radius: 999px; border: 1px solid #2a3942; font-size: 11px; color: #aebac1; transition: all .2s ease; }
.chips span.on { background: #25D366; border-color: #25D366; color: #0b141a; font-weight: 600; }
.typing { align-self: flex-start; background: #1f2c34; padding: 10px 12px; border-radius: 10px; border-top-left-radius: 3px; display: flex; gap: 4px; animation: pop .2s ease-out both; }
.typing i { width: 6px; height: 6px; border-radius: 50%; background: #8696a0; animation: blink 1s infinite; }
.typing i:nth-child(2) { animation-delay: .15s; }
.typing i:nth-child(3) { animation-delay: .3s; }
@keyframes blink { 50% { opacity: .25; transform: translateY(-2px); } }
@keyframes pop { from { opacity: 0; transform: translateY(8px) scale(.97); } }

.pass { display: grid; grid-template-columns: 64px 1fr; gap: 10px; align-items: center; margin-top: 6px; }
.qr { width: 64px; height: 64px; border-radius: 6px; background: #fff; padding: 5px; }
.qr i { display: block; width: 100%; height: 100%; background:
    linear-gradient(90deg, #000 25%, transparent 25% 50%, #000 50% 62%, transparent 62% 75%, #000 75%) 0 0 / 100% 12.5%,
    linear-gradient(0deg, #000 12%, transparent 12% 38%, #000 38% 50%, transparent 50% 88%, #000 88%) 0 0 / 12.5% 100%;
    -webkit-mask: repeating-linear-gradient(45deg, #000 0 3px, rgba(0,0,0,.55) 3px 6px); mask: repeating-linear-gradient(45deg, #000 0 3px, rgba(0,0,0,.55) 3px 6px); }
.wallet { display: grid; gap: 4px; }
.wallet span { display: flex; justify-content: space-between; background: rgba(255,255,255,.06); border-radius: 6px; padding: 4px 8px; font-size: 11px; }
.wallet b { color: #E8B056; }

.wa-input { display: flex; align-items: center; gap: 8px; padding: 8px 10px 16px; background: #0b141a; }
.wa-input div { flex: 1; background: #1f2c34; border-radius: 999px; padding: 9px 14px; color: #8696a0; font-size: 12px; }
.wa-input b { width: 34px; height: 34px; border-radius: 50%; background: #00a884; display: grid; place-items: center; color: #0b141a; font-size: 14px; }

/* Themed RSVP landing — the last scene of the loop */
.landing-view { position: absolute; inset: 0; z-index: 4; display: flex; flex-direction: column; background: #070a14; opacity: 0; pointer-events: none; transition: opacity .5s ease; }
.landing-view.show { opacity: 1; }
.landing-view .lv-hero { position: relative; height: 52%; padding: 58px 18px 18px; display: flex; flex-direction: column; justify-content: flex-end; overflow: hidden;
    background: radial-gradient(90% 70% at 70% 0%, #1E3A8A, transparent 70%), radial-gradient(80% 60% at 0% 100%, rgba(206,140,45,.55), transparent 70%), #070a14; }
.landing-view .lv-hero::before { content: ""; position: absolute; inset: 0; background: repeating-conic-gradient(from 0deg at 50% -10%, rgba(255,255,255,.07) 0 3deg, transparent 3deg 12deg); animation: spin 18s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.landing-view .lv-hero > * { position: relative; }
.landing-view .lv-hero small { color: #E8B056; font-weight: 700; letter-spacing: .14em; font-size: 10px; }
.landing-view .lv-hero b { font-family: var(--font-display); font-size: 26px; line-height: 1.05; margin: 4px 0; }
.landing-view .lv-hero span { color: #CBD5E1; font-size: 11.5px; }
.landing-view .lv-form { flex: 1; padding: 14px 16px; display: grid; gap: 8px; align-content: start; }
.landing-view .lv-field { background: #111827; border: 1px solid #1E293B; border-radius: 10px; padding: 9px 12px; font-size: 11.5px; color: #94A3B8; }
.landing-view .lv-field b { color: #F8FAFC; font-weight: 500; }
.landing-view .lv-btn { margin-top: 4px; background: linear-gradient(90deg, #3B82F6, #1E3A8A); border-radius: 999px; text-align: center; padding: 11px; font-weight: 700; font-size: 12.5px; color: #fff; }
.landing-view .lv-note { text-align: center; color: #64748B; font-size: 10px; }

.phone-caption { position: absolute; bottom: -34px; left: 0; right: 0; text-align: center; font-size: 12.5px; color: #94A3B8; z-index: 1; }
.phone-caption b { color: #F8FAFC; font-weight: 600; }
.steps-dots { display: flex; justify-content: center; gap: 6px; margin-top: 6px; }
.steps-dots i { width: 6px; height: 6px; border-radius: 50%; background: rgba(255,255,255,.2); transition: all .3s ease; }
.steps-dots i.on { width: 18px; border-radius: 3px; background: #60A5FA; }

/* ============================================================
   Sections
   ============================================================ */
.section { padding: 110px 0; position: relative; }
.section.alt { background: var(--bg-inset); }
.section-head { max-width: 720px; margin: 0 auto 64px; text-align: center; }
.section-head h2 { font-size: clamp(30px, 4vw, 46px); margin-top: 16px; }
.section-head p { color: var(--text-secondary); font-size: 18px; }

/* ---- Feature rows ---- */
.feature { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; padding: 44px 0; }
.feature + .feature { border-top: 1px dashed var(--border-strong); }
.feature:nth-child(even) .feature-copy { order: 2; }
.feature-copy .num { font-family: var(--font-display); font-size: 14px; font-weight: 700; color: var(--pink); letter-spacing: .1em; }
.feature-copy h3 { font-size: clamp(24px, 2.8vw, 34px); margin: 8px 0 14px; }
.feature-copy p { color: var(--text-secondary); font-size: 17px; }
.checks { list-style: none; padding: 0; margin: 18px 0 0; display: grid; gap: 10px; }
.checks li { display: flex; gap: 10px; align-items: flex-start; }
.checks li::before { content: "✓"; flex: none; width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center; font-size: 12px; font-weight: 700; background: var(--accent-soft); color: var(--accent-primary); margin-top: 2px; }

.mock {
    position: relative; border-radius: var(--radius); padding: 26px;
    background: var(--card); border: 1px solid var(--border);
    box-shadow: 0 30px 60px -30px var(--shadow), 0 2px 0 var(--border) inset;
    overflow: hidden; min-height: 320px;
}
.mock::before { content: ""; position: absolute; width: 260px; height: 260px; right: -80px; top: -80px; border-radius: 50%; background: var(--accent-soft); z-index: 0; }
.mock > * { position: relative; z-index: 1; }
.mock-title { display: flex; align-items: center; justify-content: space-between; font-weight: 600; font-size: 14px; margin-bottom: 16px; }
.mock-title small { color: var(--text-secondary); font-weight: 500; }
.pill { display: inline-flex; align-items: center; gap: 6px; padding: 3px 10px; border-radius: 999px; font-size: 11.5px; font-weight: 600; background: var(--success-soft); color: var(--success); }
.pill.gold { background: var(--gold-soft); color: color-mix(in srgb, var(--pink) 72%, var(--text-primary)); }
.pill.blue { background: var(--accent-soft); color: var(--accent-primary); }

/* Invite list */
.invite-list { display: grid; gap: 10px; }
.invite-row { display: grid; grid-template-columns: 36px 1fr auto; gap: 12px; align-items: center; padding: 10px 12px; border-radius: 12px; background: var(--bg-main); border: 1px solid var(--border); }
.invite-row .av { width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; font-weight: 700; font-size: 13px; color: #fff; background: var(--accent-secondary); }
.invite-row:nth-child(2) .av { background: var(--pink); }
.invite-row:nth-child(3) .av { background: var(--success); }
.invite-row:nth-child(4) .av { background: var(--accent-primary); }
.invite-row b { display: block; font-size: 14px; }
.invite-row small { color: var(--text-secondary); font-size: 12px; }
.ticks { font-size: 12px; font-weight: 700; color: var(--text-secondary); }
.ticks.read { color: #34B7F1; }
.send-bar { margin-top: 14px; display: flex; align-items: center; gap: 12px; }
.progress { flex: 1; height: 8px; border-radius: 99px; background: var(--bg-inset); overflow: hidden; }
.progress i { display: block; height: 100%; width: 0; border-radius: inherit; background: linear-gradient(90deg, var(--accent-secondary), var(--success)); transition: width 1.8s cubic-bezier(.2,.8,.2,1); }
.in-view .progress i { width: var(--w, 80%); }

/* Themed landing preview */
.themes { display: grid; grid-template-columns: 1fr 1.2fr; gap: 18px; align-items: stretch; }
.swatches { display: grid; gap: 10px; align-content: start; }
.swatch { display: flex; align-items: center; gap: 10px; padding: 10px; border-radius: 12px; border: 1.5px solid var(--border); font-size: 13px; font-weight: 600; cursor: pointer; background: var(--bg-main); color: var(--text-primary); text-align: left; font-family: inherit; }
.swatch i { width: 28px; height: 28px; border-radius: 8px; flex: none; }
.swatch.on { border-color: var(--accent-primary); box-shadow: 0 0 0 3px var(--accent-soft); }
.mini-landing { border-radius: 14px; overflow: hidden; border: 1px solid var(--border); display: flex; flex-direction: column; background: var(--bg-main); min-height: 250px; }
.mini-landing .ml-hero { padding: 22px 16px 16px; color: #fff; transition: background .5s ease; min-height: 118px; display: flex; flex-direction: column; justify-content: flex-end; }
.mini-landing .ml-hero small { font-size: 10px; letter-spacing: .14em; font-weight: 700; opacity: .85; }
.mini-landing .ml-hero b { font-family: var(--font-display); font-size: 20px; line-height: 1.1; }
.mini-landing .ml-body { padding: 12px 14px; display: grid; gap: 7px; }
.mini-landing .ml-body span { height: 26px; border-radius: 8px; background: var(--bg-inset); border: 1px solid var(--border); }
.mini-landing .ml-body em { height: 30px; border-radius: 999px; transition: background .5s ease; }

/* Collateral */
.collateral { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.card-art { aspect-ratio: 3 / 4; border-radius: 14px; padding: 14px; color: #fff; display: flex; flex-direction: column; justify-content: space-between; position: relative; overflow: hidden; box-shadow: 0 16px 30px -18px var(--shadow); transition: transform .3s ease; }
.card-art:hover { transform: translateY(-4px) rotate(-1deg); }
.card-art small { font-size: 10px; font-weight: 700; letter-spacing: .12em; opacity: .85; }
.card-art b { font-family: var(--font-display); font-size: 17px; line-height: 1.1; }
.card-art.a1 { background: radial-gradient(90% 60% at 80% 0%, #3B82F6, transparent), linear-gradient(160deg, #1E3A8A, #0B0F19); }
.card-art.a2 { background: radial-gradient(80% 60% at 20% 100%, #CE8C2D, transparent), linear-gradient(200deg, #172554, #0B0F19); }
.card-art.a3 { background: linear-gradient(160deg, #0f766e, #0B0F19 80%); }
.card-art .ph-note { font-size: 11px; opacity: .85; }
.collateral-foot { margin-top: 16px; display: flex; flex-wrap: wrap; gap: 8px; align-items: center; font-size: 13px; color: var(--text-secondary); }

/* Coupons */
.coupons { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
.coupon { position: relative; display: grid; grid-template-columns: 46px 1fr; gap: 12px; align-items: center; padding: 14px; border-radius: 14px; background: var(--bg-main); border: 1.5px dashed var(--border-strong); }
.coupon::before, .coupon::after { content: ""; position: absolute; top: 50%; width: 16px; height: 16px; border-radius: 50%; background: var(--card); transform: translateY(-50%); border: 1.5px dashed var(--border-strong); }
.coupon::before { left: -9px; clip-path: inset(0 0 0 50%); }
.coupon::after { right: -9px; clip-path: inset(0 50% 0 0); }
.coupon .ic { width: 46px; height: 46px; border-radius: 12px; display: grid; place-items: center; font-size: 22px; background: var(--gold-soft); }
.coupon b { display: block; font-size: 14px; }
.coupon small { color: var(--text-secondary); font-size: 12px; }
.coupon .meter { margin-top: 6px; height: 5px; border-radius: 99px; background: var(--bg-inset); overflow: hidden; }
.coupon .meter i { display: block; height: 100%; width: 0; background: var(--pink); transition: width 1.4s ease .3s; }
.in-view .coupon .meter i { width: var(--w); }

/* Reports */
.kpis { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-bottom: 18px; }
.kpi { padding: 12px; border-radius: 12px; background: var(--bg-main); border: 1px solid var(--border); }
.kpi small { color: var(--text-secondary); font-size: 11.5px; display: block; }
.kpi b { font-family: var(--font-display); font-size: 22px; }
.kpi em { font-style: normal; font-size: 11px; color: var(--success); font-weight: 600; }
.funnel { display: grid; gap: 9px; }
.funnel div { display: grid; grid-template-columns: 88px 1fr 42px; gap: 10px; align-items: center; font-size: 12.5px; }
.funnel span { color: var(--text-secondary); }
.funnel .bar { height: 12px; border-radius: 6px; background: var(--bg-inset); overflow: hidden; }
.funnel .bar i { display: block; height: 100%; width: 0; border-radius: inherit; background: var(--accent-primary); transition: width 1.4s cubic-bezier(.2,.8,.2,1); }
.funnel .bar.gold i { background: var(--pink); }
.in-view .funnel .bar i { width: var(--w); }
.funnel b { text-align: right; font-variant-numeric: tabular-nums; }
.funnel-sep { margin: 14px 0 8px; font-size: 12px; font-weight: 600; color: var(--text-secondary); text-transform: uppercase; letter-spacing: .08em; }

/* ============================================================
   Ethos band — Atithi Devo Bhava / (Ai)dithi
   ============================================================ */
.ethos { background: var(--band); color: var(--band-text); padding: 120px 0 90px; position: relative; overflow: hidden; }
.ethos::before { content: ""; position: absolute; width: 640px; height: 640px; right: -260px; top: -220px; border-radius: 50%; border: 1px solid rgba(255,255,255,.1); box-shadow: -60px 50px 0 -1px rgba(255,255,255,.04), -120px 100px 0 -1px rgba(255,255,255,.03); }
.ethos .wrap { position: relative; }
/* Atithi Devo Bhava — cycles through Indian scripts (Malayalam first) */
.atithi { position: relative; height: 1.5em; font-size: clamp(34px, 5vw, 60px); line-height: 1.5; color: #E8B056; }
.atithi-line { position: absolute; left: 0; top: 0; white-space: nowrap; font-weight: 600; opacity: 0; transform: translateY(.35em); transition: opacity .55s ease, transform .55s cubic-bezier(.2,.8,.2,1); }
.atithi-line.on { opacity: 1; transform: none; }
.atithi-line.out { opacity: 0; transform: translateY(-.35em); }
.atithi-line:lang(ml) { font-family: 'Noto Serif Malayalam', serif; }
.atithi-line:lang(hi), .atithi-line:lang(sa) { font-family: 'Tiro Devanagari Sanskrit', 'Noto Sans Devanagari', serif; font-weight: 400; }
.atithi-line:lang(ta) { font-family: 'Noto Serif Tamil', serif; font-size: .82em; }
.atithi-line:lang(te) { font-family: 'Noto Serif Telugu', serif; }
.atithi-line:lang(kn) { font-family: 'Noto Serif Kannada', serif; }
.atithi-line:lang(bn) { font-family: 'Noto Serif Bengali', serif; }
.atithi-line:lang(gu) { font-family: 'Noto Serif Gujarati', serif; }
.atithi-line:lang(pa) { font-family: 'Noto Serif Gurmukhi', serif; }
.atithi-line:lang(or) { font-family: 'Noto Serif Oriya', serif; }
.ethos .atithi-lang { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin: 4px 0 0; font-size: 13px; color: var(--band-muted); letter-spacing: .04em; }
.atithi-dots { display: inline-flex; gap: 5px; }
.atithi-dots i { width: 5px; height: 5px; border-radius: 50%; background: rgba(255,255,255,.22); transition: all .3s ease; }
.atithi-dots i.on { width: 14px; border-radius: 3px; background: #E8B056; }

.translit { font-family: var(--font-display); font-size: clamp(18px, 2vw, 22px); color: #fff; margin: 10px 0 4px; letter-spacing: .02em; }
.translit + small { color: var(--band-muted); font-style: italic; }
.ethos-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: start; }
.ethos p { color: var(--band-text); font-size: 17px; }
.ethos h2 { color: #fff; font-size: clamp(28px, 3.4vw, 40px); }
.wordmark { font-family: var(--font-display); font-weight: 700; font-size: clamp(56px, 9vw, 110px); line-height: 1; color: #fff; letter-spacing: -.04em; margin: 26px 0 8px; white-space: nowrap; }
.wordmark .paren { color: rgba(255,255,255,.35); font-weight: 400; }
.wordmark .ai { background: linear-gradient(90deg, #60A5FA, #E8B056); -webkit-background-clip: text; background-clip: text; color: transparent; }
.domain { display: inline-flex; gap: 8px; align-items: center; padding: 8px 14px; border-radius: 999px; background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.14); font-size: 14px; color: #fff; }
.ai-list { list-style: none; padding: 0; margin: 26px 0 0; display: grid; gap: 14px; }
.ai-list li { display: grid; grid-template-columns: 40px 1fr; gap: 14px; align-items: start; padding: 14px; border-radius: 14px; background: rgba(255,255,255,.05); border: 1px solid rgba(255,255,255,.08); }
.ai-list .ic { width: 40px; height: 40px; border-radius: 10px; display: grid; place-items: center; background: rgba(59,130,246,.28); font-size: 18px; }
.ai-list b { color: #fff; display: block; font-size: 15px; }
.ai-list span { color: var(--band-muted); font-size: 14px; }
.equation { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin-top: 30px; font-family: var(--font-display); font-size: 15px; color: #fff; }
.equation span { padding: 8px 14px; border-radius: 10px; background: rgba(255,255,255,.07); border: 1px solid rgba(255,255,255,.12); }
.equation i { font-style: normal; color: #E8B056; font-weight: 700; }

/* ============================================================
   Footer
   ============================================================ */
.site-footer { background: #070A12; color: #94A3B8; padding: 64px 0 28px; font-size: 14px; }
.site-footer .logo { color: #F8FAFC; margin-bottom: 12px; }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 36px; }
.site-footer h4 { color: #E8B056; font-size: 13px; letter-spacing: .1em; text-transform: uppercase; margin-bottom: 14px; }
.flinks { display: grid; gap: 9px; }
.flinks a { color: #CBD5E1; }
.flinks a:hover { color: #fff; }
.foot-bottom { margin-top: 44px; padding-top: 22px; border-top: 1px solid #1E293B; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px; color: #64748B; font-size: 13px; }

/* ============================================================
   Page hero (portfolio / contact)
   ============================================================ */
.page-hero { position: relative; padding: 90px 0 70px; overflow: hidden; background: var(--band); color: #fff; }
.page-hero::after { content: ""; position: absolute; width: 520px; height: 520px; right: -160px; bottom: -260px; border-radius: 50%; border: 1px solid rgba(255,255,255,.1); box-shadow: -50px -40px 0 -1px rgba(255,255,255,.05); }
.page-hero .wrap { position: relative; z-index: 1; }
.page-hero .tag { background: rgba(255,255,255,.1); color: #E8B056; }
.page-hero h1 { font-size: clamp(34px, 5vw, 58px); margin: 18px 0 16px; max-width: 820px; }
.page-hero p { color: #CBD5E1; font-size: 18px; max-width: 640px; }
.page-hero .hero-cta { margin-top: 26px; }

/* ---- Problem / solution ---- */
.ps { display: grid; grid-template-columns: .9fr 1.1fr; gap: 40px; align-items: center; padding: 56px 0; }
.ps + .ps { border-top: 1px dashed var(--border-strong); }
.ps.flip .ps-visual { order: -1; }
.ps-copy .problem { position: relative; padding: 20px 22px; border-radius: 16px; background: var(--danger-soft); border: 1px solid color-mix(in srgb, var(--danger) 25%, transparent); margin-bottom: 18px; }
.ps-copy .problem small, .ps-copy .solution small { display: block; font-size: 11.5px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; margin-bottom: 6px; }
.ps-copy .problem small { color: var(--danger); }
.ps-copy .problem q { display: block; font-family: var(--font-display); font-size: clamp(19px, 2vw, 23px); font-weight: 600; quotes: none; line-height: 1.3; }
.ps-copy .solution { padding: 20px 22px; border-radius: 16px; background: var(--card); border: 1px solid var(--border); box-shadow: 0 20px 40px -30px var(--shadow); }
.ps-copy .solution small { color: var(--success); }
.ps-copy .solution h3 { font-size: clamp(20px, 2.2vw, 26px); margin-bottom: 10px; }
.ps-copy .solution p { color: var(--text-secondary); }
.ps-copy .solution .checks { margin-top: 12px; font-size: 15px; }
.covered { display: inline-flex; align-items: center; gap: 8px; margin-top: 10px; font-weight: 700; color: var(--success); font-size: 15px; }

/* Step flow */
.flow { display: grid; grid-template-columns: repeat(5, 1fr); gap: 10px; counter-reset: step; }
.flow div { position: relative; text-align: center; padding: 18px 8px 14px; border-radius: 14px; background: var(--card); border: 1px solid var(--border); font-size: 13px; font-weight: 600; }
.flow div .ic { font-size: 24px; display: block; margin-bottom: 6px; }
.flow div small { display: block; color: var(--text-secondary); font-weight: 500; font-size: 11.5px; margin-top: 3px; }
.flow div:not(:last-child)::after { content: "→"; position: absolute; right: -10px; top: 50%; transform: translate(50%, -50%); color: var(--accent-secondary); font-weight: 700; z-index: 1; }
.flow div.active { border-color: var(--accent-primary); box-shadow: 0 0 0 3px var(--accent-soft); }

/* Kiosk device */
.kiosk-wrap { display: flex; justify-content: center; gap: 28px; align-items: flex-end; flex-wrap: wrap; }
.kiosk { width: 230px; display: flex; flex-direction: column; align-items: center; }
.kiosk .k-screen { width: 230px; height: 330px; border-radius: 22px; padding: 10px; background: linear-gradient(145deg, #2b3445, #0d1220); box-shadow: 0 30px 60px -25px rgba(0,0,0,.6); }
.kiosk .k-inner { width: 100%; height: 100%; border-radius: 14px; overflow: hidden; position: relative; background: #070a14; color: #F8FAFC; }
.kiosk .k-stand { width: 26px; height: 90px; background: linear-gradient(90deg, #1e293b, #334155, #1e293b); }
.kiosk .k-base { width: 130px; height: 14px; border-radius: 8px; background: #1e293b; }
.k-scene { position: absolute; inset: 0; padding: 18px 14px; display: flex; flex-direction: column; justify-content: center; align-items: center; text-align: center; gap: 8px; opacity: 0; transition: opacity .5s ease; }
.k-scene.on { opacity: 1; }
.k-scene small { font-size: 10px; letter-spacing: .14em; color: #E8B056; font-weight: 700; }
.k-scene b { font-family: var(--font-display); font-size: 20px; line-height: 1.15; }
.k-scene span { font-size: 12px; color: #94A3B8; }
.k-scene.s-welcome { background: radial-gradient(90% 60% at 50% 0%, #1E3A8A, transparent 70%), #070a14; }
.scan-box { width: 110px; height: 110px; border-radius: 14px; position: relative; border: 2px solid rgba(96,165,250,.4); display: grid; place-items: center; }
.scan-box::after { content: ""; position: absolute; left: 8px; right: 8px; height: 2px; background: #60A5FA; box-shadow: 0 0 12px #60A5FA; top: 10px; animation: scan 1.6s ease-in-out infinite alternate; }
@keyframes scan { to { top: calc(100% - 12px); } }
.scan-box .qr { width: 72px; height: 72px; }
.ok-badge { width: 64px; height: 64px; border-radius: 50%; background: #3DBE86; color: #052e1b; display: grid; place-items: center; font-size: 30px; font-weight: 800; }
.k-coupons { display: grid; gap: 6px; width: 100%; }
.k-coupons span { display: flex; justify-content: space-between; padding: 7px 10px; border-radius: 8px; background: rgba(255,255,255,.07); font-size: 12px; }
.k-coupons em { font-style: normal; color: #E8B056; font-weight: 700; }

/* Token board */
.board { border-radius: 18px; overflow: hidden; background: #070a14; color: #F8FAFC; box-shadow: 0 30px 60px -30px rgba(0,0,0,.6); border: 8px solid #1e293b; }
.board-head { display: flex; justify-content: space-between; align-items: center; padding: 12px 16px; background: #0f172a; font-size: 12px; color: #94A3B8; }
.board-head b { color: #fff; font-family: var(--font-display); font-size: 14px; }
.board-now { display: grid; grid-template-columns: 1fr auto; align-items: center; padding: 18px 16px; background: linear-gradient(90deg, rgba(59,130,246,.3), transparent); border-bottom: 1px solid #1e293b; }
.board-now small { color: #94A3B8; font-size: 11px; letter-spacing: .12em; text-transform: uppercase; }
.board-now .tok { font-family: var(--font-display); font-weight: 700; font-size: 38px; letter-spacing: .02em; line-height: 1; }
.board-now .ctr { text-align: right; }
.board-now .ctr b { display: block; font-family: var(--font-display); font-size: 26px; color: #E8B056; }
.board-now.flash { animation: flash .9s ease; }
@keyframes flash { 0%, 40% { background: rgba(232,176,86,.35); } 100% { background: linear-gradient(90deg, rgba(59,130,246,.3), transparent); } }
.board-rows { display: grid; }
.board-rows div { display: grid; grid-template-columns: 1fr 1fr 1fr; padding: 10px 16px; font-size: 13px; border-bottom: 1px solid #111827; }
.board-rows div:nth-child(1) { color: #64748B; font-size: 11px; letter-spacing: .1em; text-transform: uppercase; }
.board-rows .st { color: #3DBE86; }
.board-rows .st.wait { color: #F59E0B; }
.board-ticker { padding: 9px 16px; background: #0f172a; color: #CBD5E1; font-size: 12px; white-space: nowrap; overflow: hidden; }
.board-ticker span { display: inline-block; animation: ticker 18s linear infinite; padding-left: 100%; }
@keyframes ticker { to { transform: translateX(-100%); } }

.queue-visual { display: grid; grid-template-columns: 1fr 170px; gap: 20px; align-items: center; }
.mini-phone { width: 170px; border-radius: 28px; padding: 8px; background: linear-gradient(145deg, #2b3445, #0d1220); box-shadow: 0 24px 50px -20px rgba(0,0,0,.6); }
.mini-phone .mp { border-radius: 21px; background: #0b141a; color: #e9edef; padding: 26px 10px 12px; min-height: 280px; display: flex; flex-direction: column; gap: 8px; font-size: 11.5px; }
.mini-phone .msg { max-width: 94%; font-size: 11px; }
.mini-phone .big { font-family: var(--font-display); font-size: 22px; color: #60A5FA; display: block; line-height: 1.1; }

/* Display signage */
.tv { border-radius: 16px; background: #0d1220; padding: 10px; box-shadow: 0 30px 60px -30px rgba(0,0,0,.6); }
.tv-inner { position: relative; aspect-ratio: 16 / 9; border-radius: 8px; overflow: hidden; background: #070a14; color: #fff; }
.tv-stand { width: 120px; height: 16px; margin: 0 auto; background: linear-gradient(#1e293b, #0d1220); clip-path: polygon(20% 0, 80% 0, 100% 100%, 0 100%); }
.tv-scene { position: absolute; inset: 0; opacity: 0; transition: opacity .7s ease; display: flex; }
.tv-scene.on { opacity: 1; }
.tv-promo { flex-direction: column; justify-content: flex-end; padding: 22px; background: radial-gradient(80% 90% at 90% 0%, #3B82F6, transparent 60%), radial-gradient(70% 80% at 0% 100%, #CE8C2D, transparent 60%), #0B0F19; }
.tv-promo::before { content: ""; position: absolute; inset: 0; background: repeating-conic-gradient(from 0deg at 70% -20%, rgba(255,255,255,.07) 0 3deg, transparent 3deg 12deg); animation: spin 22s linear infinite; }
.tv-promo > * { position: relative; }
.tv-promo small { color: #E8B056; font-weight: 700; letter-spacing: .14em; font-size: 11px; }
.tv-promo b { font-family: var(--font-display); font-size: clamp(20px, 3vw, 32px); line-height: 1.05; }
.tv-split { display: grid; grid-template-columns: 1.4fr 1fr; }
.tv-split .media { background: linear-gradient(160deg, #1E3A8A, #0B0F19); display: flex; flex-direction: column; justify-content: flex-end; padding: 16px; position: relative; overflow: hidden; }
.tv-split .media::after { content: "▶"; position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); width: 46px; height: 46px; border-radius: 50%; background: rgba(255,255,255,.18); display: grid; place-items: center; font-size: 16px; }
.tv-split .media b { font-family: var(--font-display); font-size: 16px; }
.tv-split .media small { font-size: 11px; color: #CBD5E1; }
.tv-split .tokens { background: #0f172a; padding: 12px; display: grid; gap: 6px; align-content: center; }
.tv-split .tokens div { display: flex; justify-content: space-between; padding: 7px 10px; border-radius: 8px; background: rgba(255,255,255,.06); font-size: 12px; }
.tv-split .tokens div:first-child { background: rgba(59,130,246,.35); font-weight: 700; }
.tv-split .tokens b { color: #E8B056; }
.tv-welcome { flex-direction: column; justify-content: center; align-items: center; text-align: center; gap: 6px; background: radial-gradient(70% 70% at 50% 40%, #172554, #070a14); }
.tv-welcome small { color: #94A3B8; font-size: 12px; }
.tv-welcome b { font-family: var(--font-display); font-size: clamp(22px, 3.4vw, 36px); }
.tv-welcome span { color: #E8B056; font-size: 13px; font-weight: 600; }
.tv-caption { display: flex; justify-content: space-between; align-items: center; margin-top: 14px; font-size: 12.5px; color: var(--text-secondary); gap: 10px; flex-wrap: wrap; }
.device-list { display: grid; gap: 8px; margin-top: 16px; }
.device-list div { display: grid; grid-template-columns: auto 1fr auto; gap: 12px; align-items: center; padding: 10px 12px; border-radius: 12px; background: var(--card); border: 1px solid var(--border); font-size: 13px; }
.device-list .dot { width: 9px; height: 9px; border-radius: 50%; background: var(--success); box-shadow: 0 0 0 3px var(--success-soft); }
.device-list small { color: var(--text-secondary); }

/* Hub diagram */
.hub { position: relative; display: grid; grid-template-columns: 1fr auto 1fr; gap: 26px; align-items: center; }
.hub-col { display: grid; gap: 12px; }
.hub-node { display: flex; align-items: center; gap: 12px; padding: 14px 16px; border-radius: 14px; background: var(--card); border: 1px solid var(--border); box-shadow: 0 14px 30px -24px var(--shadow); font-size: 14px; }
.hub-node .ic { width: 38px; height: 38px; border-radius: 10px; display: grid; place-items: center; background: var(--accent-soft); font-size: 18px; flex: none; }
.hub-node b { display: block; }
.hub-node small { color: var(--text-secondary); font-size: 12px; }
.hub-core { width: 200px; height: 200px; border-radius: 50%; display: grid; place-items: center; text-align: center; background: var(--band); color: #fff; position: relative; box-shadow: 0 30px 60px -20px rgba(var(--accent-primary-rgb), .6); }
.hub-core::before, .hub-core::after { content: ""; position: absolute; inset: -14px; border-radius: 50%; border: 1.5px dashed var(--accent-secondary); opacity: .5; animation: spin 30s linear infinite; }
.hub-core::after { inset: -30px; opacity: .25; animation-direction: reverse; }
.hub-core img { width: 58px; height: 58px; margin: 0 auto 6px; }
.hub-core b { font-family: var(--font-display); font-size: 18px; }
.hub-core small { display: block; color: #CBD5E1; font-size: 12px; }

.hw-strip { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin-top: 48px; }
.hw-strip span { padding: 9px 16px; border-radius: 999px; background: var(--card); border: 1px solid var(--border); font-size: 14px; font-weight: 500; }

.cta-band { padding: 80px 0; }
.cta-card { border-radius: 26px; padding: 48px; background: var(--band); color: #fff; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 24px; position: relative; overflow: hidden; }
.cta-card h2 { font-size: clamp(26px, 3vw, 36px); margin-bottom: 8px; color: #fff; }
.cta-card p { color: #CBD5E1; margin: 0; max-width: 560px; }

/* ============================================================
   Contact
   ============================================================ */
.contact-layout { display: grid; grid-template-columns: .9fr 1.1fr; gap: 48px; align-items: start; }
.contact-intro h2 { font-size: clamp(26px, 3vw, 34px); }
.contact-intro > p { color: var(--text-secondary); font-size: 17px; }
.contact-points { display: grid; gap: 14px; margin-top: 26px; }
.contact-point { display: grid; grid-template-columns: 46px 1fr; gap: 14px; align-items: start; padding: 16px; border-radius: 14px; background: var(--card); border: 1px solid var(--border); }
.contact-point .cp-icon { width: 46px; height: 46px; border-radius: 12px; display: grid; place-items: center; background: var(--accent-soft); font-size: 20px; }
.contact-point strong { display: block; }
.contact-point div { color: var(--text-secondary); font-size: 14.5px; }
.contact-point a { display: block; font-weight: 600; }
.form-card { padding: 32px; border-radius: 22px; background: var(--card); border: 1px solid var(--border); box-shadow: 0 30px 60px -36px var(--shadow); }
.field { display: grid; gap: 6px; margin-top: 16px; }
.field.row { grid-template-columns: 1fr 1fr; gap: 16px; }
.field.row > div { display: grid; gap: 6px; }
.field:first-of-type { margin-top: 0; }
label { font-size: 13.5px; font-weight: 600; }
.req { color: var(--danger); }
.opt { color: var(--text-secondary); font-weight: 400; }
input, select, textarea {
    width: 100%; font: inherit; font-size: 15px; color: var(--text-primary);
    background: var(--bg-main); border: 1.5px solid var(--border-strong); border-radius: 12px; padding: 11px 14px;
    transition: border-color .2s ease, box-shadow .2s ease, background-color .2s ease;
}
input::placeholder, textarea::placeholder { color: var(--text-secondary); opacity: .8; }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--accent-primary); box-shadow: 0 0 0 4px var(--accent-soft); }
textarea { min-height: 130px; resize: vertical; }
.hp-field { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.captcha-row { display: grid; grid-template-columns: auto auto 1fr; gap: 10px; align-items: center; }
.captcha-question { font-family: var(--font-display); font-weight: 700; font-size: 18px; padding: 9px 14px; border-radius: 12px; background: var(--bg-inset); border: 1px dashed var(--border-strong); min-width: 96px; text-align: center; }
.captcha-refresh { width: 42px; height: 42px; border-radius: 12px; border: 1.5px solid var(--border-strong); background: var(--bg-main); color: var(--text-primary); cursor: pointer; font-size: 18px; }
.captcha-refresh:hover { border-color: var(--accent-primary); }
.form-actions { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; margin-top: 22px; }
.hint { color: var(--text-secondary); font-size: 12.5px; }
.form-status { display: none; margin-top: 16px; padding: 12px 14px; border-radius: 12px; font-size: 14px; }
.form-status.show { display: block; }
.form-status.success { background: var(--success-soft); color: var(--success); }
.form-status.error { background: var(--danger-soft); color: var(--danger); }

/* 404 */
.error-hero { min-height: calc(100vh - 68px - 90px); display: grid; place-items: center; padding: 60px 20px; }
.error-card { max-width: 520px; text-align: center; }
.error-card img { width: 72px; height: 72px; margin: 0 auto 16px; }
.error-code { font-family: var(--font-display); font-weight: 700; font-size: 110px; line-height: 1; background: linear-gradient(90deg, var(--accent-secondary), var(--pink)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.error-card p { color: var(--text-secondary); }
.error-actions { display: flex; justify-content: center; gap: 12px; margin-top: 22px; flex-wrap: wrap; }

/* ============================================================
   Reveal on scroll
   ============================================================ */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity .7s ease, transform .7s cubic-bezier(.2,.8,.2,1); }
.reveal.in-view { opacity: 1; transform: none; }
.no-js .reveal { opacity: 1; transform: none; }

/* ============================================================
   Responsive
   ============================================================ */
@media (max-width: 980px) {
    .hero-grid, .feature, .ethos-grid, .ps, .contact-layout { grid-template-columns: 1fr; }
    .hero-grid { gap: 64px; }
    .hero-copy { text-align: center; }
    .hero .lead { margin-left: auto; margin-right: auto; }
    .hero-cta, .hero-stats { justify-content: center; }
    .feature { gap: 32px; }
    .feature:nth-child(even) .feature-copy { order: 0; }
    .ps.flip .ps-visual { order: 0; }
    .footer-grid { grid-template-columns: 1fr 1fr; }
    .hub { grid-template-columns: 1fr; justify-items: center; }
    .hub-col { width: 100%; max-width: 460px; }
    .flow { grid-template-columns: repeat(2, 1fr); }
    .flow div::after { display: none; }
}
@media (max-width: 760px) {
    .navlinks { display: none; position: absolute; top: 68px; left: 0; right: 0; flex-direction: column; gap: 0; padding: 8px 20px 16px; background: var(--bg-main); border-bottom: 1px solid var(--border); box-shadow: 0 20px 30px -20px var(--shadow); }
    .navlinks.open { display: flex; }
    .navlinks a { padding: 12px 0; border-bottom: 1px solid var(--border); color: var(--text-secondary) !important; }
    .menu-toggle { display: inline-grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; border: 1px solid var(--border); background: var(--surface-hover); color: var(--text-primary); font-size: 18px; cursor: pointer; margin-left: auto; }
    .site-header.over-hero:not(.scrolled) .menu-toggle { background: rgba(255,255,255,.08); color: #fff; border-color: rgba(255,255,255,.2); }
    .nav-actions .btn { display: none; }
    .section { padding: 80px 0; }
    .themes, .coupons, .field.row, .queue-visual { grid-template-columns: 1fr; }
    .queue-visual .mini-phone { margin: 0 auto; }
    .collateral { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
    .card-art { padding: 10px; }
    .card-art b { font-size: 13px; }
    .kpis { grid-template-columns: 1fr 1fr 1fr; }
    .kpi b { font-size: 17px; }
    .mock, .form-card { padding: 18px; }
    .cta-card { padding: 30px 22px; }
}
@media (max-width: 480px) {
    .footer-grid { grid-template-columns: 1fr; }
    .flow { grid-template-columns: 1fr; }
    .phone { width: 272px; height: 560px; }
    .hero h1 { font-size: 36px; }
    .captcha-row { grid-template-columns: auto auto; }
    .captcha-row input { grid-column: 1 / -1; }
    .wordmark { font-size: 52px; }
    .funnel div { grid-template-columns: 74px 1fr 36px; }
}

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; scroll-behavior: auto !important; }
    .hero-video { display: none; }
}

/* Token board: keep tokens on one line when the column is narrow */
.board-now .tok { font-size: clamp(26px, 3vw, 38px); white-space: nowrap; }
.board-now .ctr b { font-size: clamp(17px, 2vw, 26px); white-space: nowrap; }
.board-rows div { grid-template-columns: .8fr 1fr 1.3fr; gap: 6px; font-size: 12.5px; }
.ps.flip { grid-template-columns: 1.1fr .9fr; }
.queue-visual { display: block; position: relative; padding: 0 96px 40px 0; }
.queue-visual .mini-phone { position: absolute; right: 0; bottom: 0; width: 160px; }
.queue-visual .mini-phone .mp { min-height: 250px; }
@media (max-width: 980px) {
    .ps.flip { grid-template-columns: 1fr; }
}
@media (max-width: 480px) {
    .queue-visual { padding: 0; }
    .queue-visual .mini-phone { position: static; margin: 20px auto 0; }
}
/* Grid children may shrink below their content (tickers, nowrap tokens) */
.ps > *, .feature > *, .hero-grid > *, .ethos-grid > *, .contact-layout > * { min-width: 0; }
