/* ========================================
   КВИЗИ! LANDING — Night Quiz Board
   Unbounded + Geologica
   Dark-first · Dot grid · Bento layout
   ======================================== */

/* ==========================================================================
   RESET & TOKENS
   ========================================================================== */

*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

:root {
    --bg:        #09090B;
    --surface:   #18181B;
    --surface-2: #27272A;
    --border:    #3F3F46;
    --border-2:  #52525B;
    --text:      #FAFAFA;
    --text-2:    #D4D4D8;
    --muted:     #A1A1AA;
    --dim:       #71717A;

    --purple:    #A855F7;
    --purple-h:  #9333EA;
    --purple-bg: rgba(168,85,247,.10);
    --purple-ring:rgba(168,85,247,.22);
    --amber:     #FBBF24;
    --amber-bg:  rgba(251,191,36,.10);
    --amber-ring:rgba(251,191,36,.22);

    --dot:       rgba(161,161,170,.08);
    --sh-sm:     0 1px 3px rgba(0,0,0,.5);
    --sh-md:     0 4px 20px rgba(0,0,0,.5);
    --sh-lg:     0 12px 40px rgba(0,0,0,.5);
    --sh-glow:   0 0 60px rgba(168,85,247,.15);

    --r-sm: 8px;
    --r-md: 12px;
    --r-lg: 16px;
    --r-xl: 24px;
    --r-pill: 999px;
    --nav-h: 64px;
    --expo: cubic-bezier(.16, 1, .3, 1);
}

/* ── Light theme ── */
html[data-theme="light"] {
    --bg:        #F9FAFB;
    --surface:   #FFFFFF;
    --surface-2: #F3F4F6;
    --border:    #E5E7EB;
    --border-2:  #D1D5DB;
    --text:      #111827;
    --text-2:    #374151;
    --muted:     #6B7280;
    --dim:       #9CA3AF;
    --dot:       rgba(107,114,128,.07);
    --sh-sm:     0 1px 3px rgba(0,0,0,.06);
    --sh-md:     0 4px 20px rgba(0,0,0,.06);
    --sh-lg:     0 12px 40px rgba(0,0,0,.08);
    --sh-glow:   0 0 60px rgba(168,85,247,.08);
    --purple-bg: rgba(168,85,247,.06);
    --purple-ring:rgba(168,85,247,.15);
    --amber-bg:  rgba(251,191,36,.08);
    --amber-ring:rgba(251,191,36,.18);
}

html { scroll-behavior: smooth; }

body {
    font-family: 'Geologica', sans-serif;
    background: var(--bg);
    color: var(--text);
    line-height: 1.6;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    /* Dot grid */
    background-image: radial-gradient(circle, var(--dot) 1px, transparent 1px);
    background-size: 28px 28px;
    background-attachment: fixed;
}

a { text-decoration: none; color: inherit; }
strong { font-weight: 700; }

.container { max-width: 1120px; margin: 0 auto; padding: 0 24px; }

/* ==========================================================================
   AOS
   ========================================================================== */

[data-aos] {
    opacity: 0;
    transform: translateY(22px);
    transition: opacity .6s var(--expo), transform .6s var(--expo);
}
[data-aos][data-aos-delay="60"]  { transition-delay:  60ms; }
[data-aos][data-aos-delay="80"]  { transition-delay:  80ms; }
[data-aos][data-aos-delay="100"] { transition-delay: 100ms; }
[data-aos][data-aos-delay="120"] { transition-delay: 120ms; }
[data-aos][data-aos-delay="150"] { transition-delay: 150ms; }
[data-aos][data-aos-delay="160"] { transition-delay: 160ms; }
[data-aos][data-aos-delay="180"] { transition-delay: 180ms; }
[data-aos][data-aos-delay="200"] { transition-delay: 200ms; }

.aos-animate { opacity: 1 !important; transform: none !important; }

/* ==========================================================================
   NAVBAR — floating pill
   ========================================================================== */

.navbar {
    position: fixed; top: 12px; left: 0; right: 0;
    z-index: 200;
    display: flex; justify-content: center;
    padding: 0 16px;
    pointer-events: none;
    transition: transform .3s ease;
}

.nav-pill {
    display: flex; align-items: center; gap: 8px;
    height: 52px;
    padding: 0 6px 0 12px;
    background: rgba(24,24,27,.82);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--border);
    border-radius: var(--r-pill);
    box-shadow: var(--sh-md);
    pointer-events: auto;
    max-width: 720px;
    width: 100%;
}
html[data-theme="light"] .nav-pill {
    background: rgba(255,255,255,.82);
}

.nav-logo {
    display: flex; align-items: center; gap: 7px;
    flex-shrink: 0;
}
.logo-icon { border-radius: 8px; }
.logo-text {
    font-family: 'Unbounded', sans-serif;
    font-weight: 700; font-size: 15px;
    color: var(--purple);
}

.nav-links {
    display: flex; gap: 2px;
    margin: 0 auto;
}
.nav-link {
    font-size: 13px; font-weight: 500;
    color: var(--muted);
    padding: 5px 12px;
    border-radius: var(--r-pill);
    transition: color .18s, background .18s;
}
.nav-link:hover { color: var(--text); background: var(--purple-bg); }

.nav-right { display: flex; align-items: center; gap: 6px; flex-shrink: 0; }

.nav-cta {
    display: inline-flex; align-items: center; gap: 5px;
    font-family: 'Geologica', sans-serif;
    font-size: 13px; font-weight: 600;
    padding: 6px 14px;
    border-radius: var(--r-pill);
    background: var(--purple);
    color: #fff;
    transition: all .18s;
    box-shadow: 0 2px 12px rgba(168,85,247,.25);
}
.nav-cta:hover { background: var(--purple-h); transform: translateY(-1px); }
.nav-cta.ghost {
    background: transparent; color: var(--text-2);
    border: 1px solid var(--border);
    box-shadow: none;
}
.nav-cta.ghost:hover { border-color: var(--purple-ring); color: var(--purple); }
.nav-cta.wide { justify-content: center; width: 100%; padding: 10px; }

/* Theme toggle */
.theme-toggle {
    display: inline-flex; align-items: center; justify-content: center;
    width: 32px; height: 32px;
    border-radius: 50%;
    border: 1px solid var(--border);
    background: transparent;
    color: var(--muted);
    cursor: pointer;
    transition: all .18s;
}
.theme-toggle:hover { color: var(--purple); border-color: var(--purple-ring); }
.theme-toggle .icon-sun, .theme-toggle .icon-moon { display: none; }
html[data-theme="dark"] .theme-toggle .icon-sun { display: block; }
html[data-theme="light"] .theme-toggle .icon-moon { display: block; }
html:not([data-theme="dark"]):not([data-theme="light"]) .theme-toggle .icon-sun { display: block; }

/* Mobile menu */
.mobile-menu-btn {
    display: none; flex-direction: column; gap: 4px;
    background: none; border: none; cursor: pointer; padding: 8px;
}
.mobile-menu-btn span {
    display: block; width: 20px; height: 2px;
    background: var(--muted); border-radius: 2px; transition: all .25s;
}
.mobile-menu-btn.open span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.mobile-menu-btn.open span:nth-child(2) { opacity: 0; }
.mobile-menu-btn.open span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

.mobile-menu {
    display: none; flex-direction: column;
    position: fixed; top: 72px; left: 16px; right: 16px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--r-lg);
    padding: 12px 16px 16px;
    box-shadow: var(--sh-lg);
    z-index: 199;
    pointer-events: auto;
}
.mobile-menu.open { display: flex; }
.mobile-link {
    font-size: 15px; font-weight: 500; color: var(--text-2);
    padding: 10px 0; border-bottom: 1px solid var(--border); transition: color .18s;
}
.mobile-link:last-of-type { border-bottom: none; }
.mobile-link:hover { color: var(--purple); }
.mobile-actions { display: flex; flex-direction: column; gap: 8px; margin-top: 12px; }

/* ==========================================================================
   HERO
   ========================================================================== */

.hero {
    min-height: 100vh;
    display: flex; align-items: center;
    position: relative;
    padding: calc(var(--nav-h) + 48px) 0 40px;
    overflow: hidden;
}

.hero-orb {
    position: absolute; border-radius: 50%; pointer-events: none;
}
.hero-orb--1 {
    width: 600px; height: 600px; top: -80px; left: -40px;
    background: radial-gradient(circle, rgba(168,85,247,.22) 0%, rgba(168,85,247,.06) 60%, transparent 80%);
    filter: blur(60px);
    animation: orb-drift-1 12s ease-in-out infinite;
}
.hero-orb--2 {
    width: 500px; height: 500px; bottom: 0; right: 5%;
    background: radial-gradient(circle, rgba(217,70,239,.18) 0%, rgba(168,85,247,.05) 60%, transparent 80%);
    filter: blur(50px);
    animation: orb-drift-2 14s ease-in-out infinite;
}
html[data-theme="light"] .hero-orb--1 {
    background: radial-gradient(circle, rgba(168,85,247,.14) 0%, rgba(168,85,247,.04) 60%, transparent 80%);
}
html[data-theme="light"] .hero-orb--2 {
    background: radial-gradient(circle, rgba(217,70,239,.12) 0%, rgba(168,85,247,.03) 60%, transparent 80%);
}

@keyframes orb-drift-1 {
    0%, 100% { transform: translate(0, 0) scale(1); }
    50% { transform: translate(30px, 20px) scale(1.05); }
}
@keyframes orb-drift-2 {
    0%, 100% { transform: translate(0, 0) scale(1); }
    50% { transform: translate(-20px, -25px) scale(1.08); }
}

.hero-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: center;
    position: relative; z-index: 1;
}

.hero-text { max-width: 540px; }

.hero-eyebrow {
    font-size: 12px; font-weight: 600;
    letter-spacing: 2px; text-transform: uppercase;
    color: var(--purple);
    margin-bottom: 20px;
}

.hero-title {
    font-family: 'Unbounded', sans-serif;
    font-size: clamp(38px, 6vw, 64px);
    font-weight: 900;
    line-height: 1.05;
    letter-spacing: -1.5px;
    color: var(--text);
    margin-bottom: 20px;
}
.hero-accent {
    background: linear-gradient(135deg, var(--purple), #D946EF);
    -webkit-background-clip: text; -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-sub {
    font-size: 17px; color: var(--muted);
    line-height: 1.7; max-width: 440px;
    margin-bottom: 32px;
}

.hero-actions { display: flex; gap: 10px; flex-wrap: wrap; }

/* Mascot */
.hero-visual {
    display: flex; align-items: center; justify-content: center;
    position: relative;
}
.mascot-glow {
    position: absolute; inset: 10%;
    background: radial-gradient(circle, rgba(168,85,247,.18) 0%, transparent 70%);
    border-radius: 50%; filter: blur(40px);
}
html[data-theme="light"] .mascot-glow {
    background: radial-gradient(circle, rgba(168,85,247,.10) 0%, transparent 70%);
}
.mascot {
    width: min(320px, 80vw); height: auto;
    filter: drop-shadow(0 24px 48px rgba(0,0,0,.4));
    animation: float 5s ease-in-out infinite;
    position: relative; z-index: 1;
}
html[data-theme="light"] .mascot {
    filter: drop-shadow(0 16px 32px rgba(0,0,0,.12));
}

@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-16px); }
}

/* ==========================================================================
   BUTTONS
   ========================================================================== */

.btn {
    display: inline-flex; align-items: center; gap: 8px;
    font-family: 'Geologica', sans-serif;
    font-weight: 600; font-size: 14px;
    padding: 12px 24px;
    border-radius: var(--r-pill);
    border: 1px solid transparent;
    cursor: pointer;
    transition: all .22s var(--expo);
    position: relative; overflow: hidden;
}
.btn--fill {
    background: var(--purple); color: #fff;
    box-shadow: 0 4px 20px rgba(168,85,247,.25);
}
.btn--fill:hover {
    background: var(--purple-h);
    box-shadow: 0 8px 30px rgba(168,85,247,.35);
    transform: translateY(-2px);
}
.btn--ghost {
    background: transparent; color: var(--text-2);
    border-color: var(--border);
}
.btn--ghost:hover {
    border-color: var(--purple-ring); color: var(--purple);
    transform: translateY(-2px);
}
.btn--lg { font-size: 15px; padding: 14px 32px; }

/* ==========================================================================
   TICKER
   ========================================================================== */

.ticker {
    overflow: hidden;
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
    padding: 14px 0;
    background: var(--surface);
}

.ticker-track {
    display: flex; align-items: center;
    white-space: nowrap;
    animation: ticker-scroll var(--ticker-dur, 40s) linear infinite;
    width: max-content;
}

.ticker-set {
    display: flex; align-items: center; gap: 24px;
    padding-right: 24px;
}

.ticker-item {
    font-family: 'Unbounded', sans-serif;
    font-size: 13px; font-weight: 600;
    letter-spacing: .5px; text-transform: uppercase;
    color: var(--muted);
}

.ticker-dot {
    width: 5px; height: 5px; border-radius: 50%;
    background: var(--purple);
    flex-shrink: 0; opacity: .5;
}

@keyframes ticker-scroll {
    0%   { transform: translateX(0); }
    100% { transform: translateX(calc(-100% / var(--ticker-copies))); }
}

/* ==========================================================================
   SECTION HEADER
   ========================================================================== */

.sect-head { margin-bottom: 48px; }
.sect-label {
    font-size: 11px; font-weight: 700;
    letter-spacing: 2px; text-transform: uppercase;
    color: var(--purple);
    margin-bottom: 10px;
}
.sect-title {
    font-family: 'Unbounded', sans-serif;
    font-size: clamp(26px, 4vw, 40px);
    font-weight: 800;
    line-height: 1.15;
    letter-spacing: -.5px;
    color: var(--text);
}
.sect-sub {
    font-size: 15px; color: var(--muted);
    margin-top: 10px; max-width: 460px;
}

/* ==========================================================================
   BENTO FEATURES
   ========================================================================== */

.features {
    padding: 80px 0;
    border-top: 1px solid var(--border);
}

.bento {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
}

.bento-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--r-lg);
    padding: 28px 24px;
    transition: all .28s var(--expo);
    position: relative;
    overflow: hidden;
}
.bento-card::after {
    content: '';
    position: absolute; top: 0; left: 24px; right: 24px;
    height: 2px;
    background: linear-gradient(90deg, var(--purple), transparent);
    opacity: 0; transition: opacity .28s;
}
.bento-card:hover {
    border-color: var(--purple-ring);
    box-shadow: var(--sh-glow);
    transform: translateY(-4px);
}
.bento-card:hover::after { opacity: 1; }

.bento--wide { grid-column: span 2; }

.bc-head {
    display: flex; align-items: center; gap: 12px;
    margin-bottom: 16px;
}

.bc-icon {
    width: 40px; height: 40px;
    border-radius: var(--r-md);
    background: var(--purple-bg);
    border: 1px solid var(--purple-ring);
    display: flex; align-items: center; justify-content: center;
    color: var(--purple);
    flex-shrink: 0;
    transition: all .25s;
}
.bento-card:hover .bc-icon {
    background: var(--purple); border-color: var(--purple); color: #fff;
}

.bc-stat {
    font-family: 'Unbounded', sans-serif;
    font-size: 20px; font-weight: 800;
    letter-spacing: -.5px;
    background: linear-gradient(135deg, var(--purple), #D946EF);
    -webkit-background-clip: text; -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1;
}

.bc-title {
    font-family: 'Unbounded', sans-serif;
    font-size: 15px; font-weight: 700;
    color: var(--text);
    margin-bottom: 8px;
    letter-spacing: -.2px;
}
.bc-desc {
    font-size: 14px; color: var(--muted);
    line-height: 1.65;
}
.bc-highlight {
    margin-top: 10px;
    font-size: 12px; font-weight: 600;
    color: var(--purple);
    letter-spacing: .3px;
    padding-left: 12px;
    border-left: 2px solid var(--purple-ring);
    line-height: 1.4;
}

/* ==========================================================================
   FLOW — HOW IT WORKS
   ========================================================================== */

.flow {
    padding: 80px 0;
    border-top: 1px solid var(--border);
}

.flow-steps {
    display: flex; align-items: stretch; gap: 0;
}

.flow-step {
    flex: 1;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--r-lg);
    padding: 28px 24px;
    transition: all .25s var(--expo);
}
.flow-step:hover {
    border-color: var(--purple-ring);
    box-shadow: var(--sh-glow);
    transform: translateY(-4px);
}

.fs-num {
    font-family: 'Unbounded', sans-serif;
    font-size: 28px; font-weight: 900;
    color: var(--purple);
    opacity: .3;
    margin-bottom: 16px;
    line-height: 1;
}
.flow-step:hover .fs-num { opacity: 1; }

.fs-title {
    font-family: 'Unbounded', sans-serif;
    font-size: 15px; font-weight: 700;
    color: var(--text);
    margin-bottom: 8px;
    letter-spacing: -.2px;
}
.fs-desc { font-size: 14px; color: var(--muted); line-height: 1.65; }

.flow-connector {
    display: flex; align-items: center; justify-content: center;
    width: 56px; flex-shrink: 0;
    color: var(--dim);
}

/* ==========================================================================
   APP SECTION
   ========================================================================== */

.app-section {
    padding: 80px 0;
    border-top: 1px solid var(--border);
}

.app-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 12px;
}

.app-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--r-lg);
    padding: 28px 24px;
    text-align: center;
    transition: all .25s var(--expo);
}
.app-card:hover {
    border-color: var(--purple-ring);
    box-shadow: var(--sh-glow);
    transform: translateY(-4px);
}

.ac-icon {
    width: 40px; height: 40px;
    border-radius: var(--r-md);
    background: var(--purple-bg);
    border: 1px solid var(--purple-ring);
    display: flex; align-items: center; justify-content: center;
    margin: 0 auto 14px; color: var(--purple);
    transition: all .25s;
}
.app-card:hover .ac-icon {
    background: var(--purple); border-color: var(--purple); color: #fff;
}

.ac-title {
    font-family: 'Unbounded', sans-serif;
    font-size: 15px; font-weight: 700;
    color: var(--text);
    margin-bottom: 6px; letter-spacing: -.2px;
}
.ac-desc { font-size: 14px; color: var(--muted); line-height: 1.65; }

/* ==========================================================================
   ACCESS GRID — Telegram Mini App + Browser
   ========================================================================== */

.access-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
    margin-bottom: 24px;
}

.access-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--r-lg);
    padding: 28px 24px;
    transition: all .25s var(--expo);
    position: relative;
    display: flex; flex-direction: column;
}
.access-card:hover {
    border-color: var(--purple-ring);
    box-shadow: var(--sh-glow);
    transform: translateY(-4px);
}

/* Primary card — gradient border glow */
.access-card--primary {
    border-color: var(--purple-ring);
    box-shadow: 0 0 0 1px var(--purple-ring), 0 4px 24px rgba(168,85,247,.10);
}
.access-card--primary:hover {
    box-shadow: 0 0 0 1px var(--purple), var(--sh-glow);
}

.access-badge {
    width: 40px; height: 40px;
    border-radius: var(--r-md);
    background: var(--purple-bg);
    border: 1px solid var(--purple-ring);
    display: flex; align-items: center; justify-content: center;
    color: var(--purple);
    margin-bottom: 14px;
    transition: all .25s;
}
.access-card:hover .access-badge {
    background: var(--purple); border-color: var(--purple); color: #fff;
}

.access-title {
    font-family: 'Unbounded', sans-serif;
    font-size: 15px; font-weight: 700;
    color: var(--text);
    margin-bottom: 6px; letter-spacing: -.2px;
}
.access-desc {
    font-size: 14px; color: var(--muted);
    line-height: 1.65; margin-bottom: 12px;
}

/* Perks list */
.access-perks {
    list-style: none; padding: 0; margin: 0 0 18px;
    display: flex; flex-direction: column; gap: 7px;
    flex: 1;
}
.access-perks li {
    font-size: 13px; font-weight: 500;
    color: var(--text-2);
    padding-left: 20px;
    position: relative;
    line-height: 1.4;
}
.access-perks li::before {
    content: '';
    position: absolute; left: 0; top: 4px;
    width: 12px; height: 12px;
    border-radius: 50%;
    background: var(--purple-bg);
    border: 1.5px solid var(--purple);
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 12 12' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M3.5 6L5.5 8L8.5 4.5' stroke='%23A855F7' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
}

/* CTA buttons */
.access-btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 6px;
    font-family: 'Geologica', sans-serif;
    font-size: 13px; font-weight: 600;
    padding: 10px 20px;
    border-radius: var(--r-pill);
    background: var(--purple);
    color: #fff;
    transition: all .2s var(--expo);
    box-shadow: 0 2px 12px rgba(168,85,247,.25);
    margin-top: auto;
}
.access-btn:hover {
    background: var(--purple-h);
    box-shadow: 0 6px 20px rgba(168,85,247,.35);
    transform: translateY(-1px);
}
.access-btn--ghost {
    background: transparent;
    color: var(--text-2);
    border: 1px solid var(--border);
    box-shadow: none;
}
.access-btn--ghost:hover {
    border-color: var(--purple-ring);
    color: var(--purple);
    box-shadow: none;
}

/* ==========================================================================
   CTA
   ========================================================================== */

.cta { padding: 40px 0 80px; }

.cta-card {
    position: relative; overflow: hidden;
    background: linear-gradient(135deg, #2E1065, #581C87, #7C3AED);
    border-radius: var(--r-xl);
    padding: 64px 40px;
    text-align: center;
    box-shadow: var(--sh-lg);
}
html[data-theme="light"] .cta-card {
    background: linear-gradient(135deg, #4C1D95, #6D28D9, #8B5CF6);
}

.cta-glow {
    position: absolute; inset: 0;
    background:
        radial-gradient(circle at 25% 80%, rgba(255,255,255,.04) 0%, transparent 50%),
        radial-gradient(circle at 75% 20%, rgba(255,255,255,.04) 0%, transparent 50%);
}

.cta-mascot {
    width: 72px; height: auto;
    margin-bottom: 20px;
    filter: drop-shadow(0 8px 20px rgba(0,0,0,.3));
    border-radius: var(--r-lg);
}
.cta-title {
    font-family: 'Unbounded', sans-serif;
    font-size: clamp(28px, 5vw, 44px);
    font-weight: 900; color: #fff;
    letter-spacing: -1px; margin-bottom: 12px;
}
.cta-desc {
    font-size: 16px; color: rgba(255,255,255,.7);
    line-height: 1.7; margin-bottom: 28px;
}
.cta-desc strong { color: #fff; }
.cta-note {
    display: block; margin-top: 16px;
    font-size: 12px; font-weight: 500;
    color: rgba(255,255,255,.4); letter-spacing: .5px;
}

.cta .btn--fill {
    background: #fff; color: var(--purple-h);
    box-shadow: 0 4px 20px rgba(0,0,0,.2);
}
.cta .btn--fill:hover {
    background: #F5F3FF;
    box-shadow: 0 8px 32px rgba(0,0,0,.25);
}

/* ==========================================================================
   FOOTER
   ========================================================================== */

.footer {
    padding: 48px 0 32px;
    border-top: 1px solid var(--border);
}
.footer-inner {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 32px; align-items: start;
}
.footer-logo {
    display: flex; align-items: center; gap: 7px;
    font-family: 'Unbounded', sans-serif;
    font-size: 15px; font-weight: 700;
    color: var(--purple); margin-bottom: 8px;
}
.logo-icon-sm { border-radius: 6px; }
.footer-tagline { font-size: 13px; color: var(--muted); line-height: 1.5; }
.footer-col { display: flex; flex-direction: column; gap: 6px; }
.footer-col h4 {
    font-family: 'Unbounded', sans-serif;
    font-size: 10px; font-weight: 700;
    text-transform: uppercase; letter-spacing: 1.5px;
    color: var(--text-2); margin-bottom: 2px;
}
.footer-col a { font-size: 13px; color: var(--muted); transition: color .18s; }
.footer-col a:hover { color: var(--purple); }
.footer-copy { font-size: 11px; color: var(--dim); margin-top: 8px; }

/* ==========================================================================
   RESPONSIVE
   ========================================================================== */

@media (max-width: 1024px) {
    .hero-grid { grid-template-columns: 1fr; text-align: center; }
    .hero-text { max-width: none; }
    .hero-sub { max-width: 500px; margin-left: auto; margin-right: auto; }
    .hero-actions { justify-content: center; }
    .hero-visual { order: -1; }
    .mascot { width: min(240px, 60vw); }

    .bento { grid-template-columns: repeat(2, 1fr); }
    .bento--wide { grid-column: span 2; }

    .app-grid { grid-template-columns: repeat(2, 1fr); }
    .access-grid { grid-template-columns: 1fr; }
    .footer-inner { grid-template-columns: 1fr 1fr 1fr; }
    .footer-brand { grid-column: 1 / -1; }
}

@media (max-width: 768px) {
    .nav-links { display: none; }
    .nav-right { display: none; }
    .mobile-menu-btn { display: flex; }
    .nav-pill { justify-content: space-between; max-width: none; }

    .hero { min-height: auto; padding: calc(var(--nav-h) + 32px) 0 24px; }
    .mascot { width: min(200px, 55vw); }
    .hero-title { font-size: clamp(32px, 9vw, 48px); }

    .bento { grid-template-columns: 1fr; }
    .bento--wide { grid-column: span 1; }

    .flow-steps { flex-direction: column; gap: 12px; }
    .flow-connector { transform: rotate(90deg); width: auto; height: 40px; }

    .app-grid { grid-template-columns: 1fr 1fr; }

    .cta-card { padding: 48px 24px; }

    .footer-inner { grid-template-columns: 1fr; gap: 20px; }
    .footer-brand { grid-column: auto; }
}

@media (max-width: 480px) {
    .container { padding: 0 16px; }
    .hero-title { font-size: 30px; letter-spacing: -.5px; }
    .hero-sub { font-size: 15px; }
    .app-grid { grid-template-columns: 1fr; }
    .btn { font-size: 13px; padding: 11px 20px; }
    .hero-actions { flex-direction: column; align-items: stretch; }
    .hero-actions .btn { justify-content: center; }
}

/* ==========================================================================
   LEGAL PAGES (terms, privacy, consent)
   ========================================================================== */

.legal-page {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.legal-nav {
    position: sticky; top: 0; z-index: 100;
    display: flex; align-items: center; justify-content: space-between;
    padding: 16px 24px;
    background: rgba(24,24,27,.82);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border);
}
html[data-theme="light"] .legal-nav {
    background: rgba(255,255,255,.82);
}

.legal-nav-left {
    display: flex; align-items: center; gap: 12px;
}

.legal-back {
    display: inline-flex; align-items: center; gap: 6px;
    font-size: 13px; font-weight: 500;
    color: var(--muted);
    transition: color .18s;
}
.legal-back:hover { color: var(--purple); }

.legal-content {
    flex: 1;
    max-width: 780px;
    margin: 0 auto;
    padding: 48px 24px 80px;
    width: 100%;
}

.legal-content h1 {
    font-family: 'Unbounded', sans-serif;
    font-size: clamp(24px, 4vw, 36px);
    font-weight: 800;
    color: var(--text);
    letter-spacing: -.5px;
    margin-bottom: 8px;
    line-height: 1.2;
}

.legal-date {
    font-size: 13px;
    color: var(--dim);
    margin-bottom: 32px;
}

.legal-content h2 {
    font-family: 'Unbounded', sans-serif;
    font-size: 17px;
    font-weight: 700;
    color: var(--text);
    margin: 32px 0 12px;
    letter-spacing: -.2px;
}

.legal-content h3 {
    font-family: 'Geologica', sans-serif;
    font-size: 15px;
    font-weight: 600;
    color: var(--text-2);
    margin: 20px 0 8px;
}

.legal-content p {
    font-size: 14px;
    color: var(--muted);
    line-height: 1.75;
    margin-bottom: 12px;
}

.legal-content ul, .legal-content ol {
    font-size: 14px;
    color: var(--muted);
    line-height: 1.75;
    margin: 0 0 12px 20px;
}

.legal-content li {
    margin-bottom: 4px;
}

.legal-content a {
    color: var(--purple);
    text-decoration: underline;
    text-decoration-color: var(--purple-ring);
    text-underline-offset: 2px;
    transition: text-decoration-color .18s;
}
.legal-content a:hover {
    text-decoration-color: var(--purple);
}

.legal-content strong {
    color: var(--text-2);
}

.legal-footer-links {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 16px;
    margin-top: 40px;
    padding-top: 24px;
    border-top: 1px solid var(--border);
}

.legal-footer-links a {
    font-size: 13px;
    color: var(--muted);
    transition: color .18s;
    text-decoration: none;
}
.legal-footer-links a:hover { color: var(--purple); }

@media (max-width: 480px) {
    .legal-content { padding: 32px 16px 60px; }
    .legal-nav { padding: 12px 16px; }
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { animation-duration: 0s !important; transition-duration: 0s !important; }
    .ticker-track { animation: none; }
}
