/* ═══════════════════════════════════════════════════════════════
   ARISEE — Marketing site v3
   Bold arcade aesthetic · heavy motion · glass + neon
   ═══════════════════════════════════════════════════════════════ */

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

:root {
    --bg: #050810;
    --bg-elevated: #0c1222;
    --surface: rgba(255, 255, 255, 0.04);
    --border: rgba(255, 255, 255, 0.08);
    --border-glow: rgba(34, 211, 238, 0.35);

    --cyan: #22d3ee;
    --pink: #f472b6;
    --gold: #fbbf24;
    --violet: #a78bfa;
    --green: #34d399;

    --text: #e8edf8;
    --muted: #8b9cb8;
    --dim: #5a6b85;

    --font-display: 'Syne', system-ui, sans-serif;
    --font-body: 'DM Sans', system-ui, sans-serif;

    --ease-out-expo: cubic-bezier(0.16, 1, 0.3, 1);
    --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);
    --nav-h: 88px;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    color: var(--text);
    background: var(--bg);
    line-height: 1.65;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

body.nav-open { overflow: hidden; }

.container {
    max-width: 1180px;
    margin: 0 auto;
    padding: 0 clamp(20px, 4vw, 32px);
}

/* ── Background layers ── */
#particle-canvas {
    position: fixed;
    inset: 0;
    z-index: 0;
    pointer-events: none;
    opacity: 0.7;
}

.ambient-glow {
    position: fixed;
    border-radius: 50%;
    filter: blur(100px);
    pointer-events: none;
    z-index: 0;
    animation: ambientDrift 20s ease-in-out infinite;
}

.ambient-glow--1 {
    width: min(60vw, 520px);
    height: min(60vw, 520px);
    top: -10%;
    left: -15%;
    background: radial-gradient(circle, rgba(34, 211, 238, 0.18), transparent 70%);
}

.ambient-glow--2 {
    width: min(50vw, 440px);
    height: min(50vw, 440px);
    bottom: 10%;
    right: -10%;
    background: radial-gradient(circle, rgba(244, 114, 182, 0.14), transparent 70%);
    animation-delay: -10s;
    animation-direction: reverse;
}

.ambient-glow--3 {
    width: min(40vw, 360px);
    height: min(40vw, 360px);
    top: 40%;
    left: 40%;
    background: radial-gradient(circle, rgba(251, 191, 36, 0.1), transparent 70%);
    animation-duration: 28s;
    animation-delay: -5s;
}

/* Aurora wash */
.aurora {
    position: fixed;
    inset: -20%;
    z-index: 0;
    pointer-events: none;
    background:
        conic-gradient(from 0deg at 30% 40%, transparent, rgba(34, 211, 238, 0.07), transparent 30%),
        conic-gradient(from 120deg at 70% 60%, transparent, rgba(167, 139, 250, 0.08), transparent 35%),
        conic-gradient(from 240deg at 50% 30%, transparent, rgba(244, 114, 182, 0.06), transparent 40%);
    filter: blur(60px);
    animation: auroraSpin 40s linear infinite;
    opacity: 0.9;
}

@keyframes auroraSpin {
    to { transform: rotate(360deg); }
}

/* Scroll progress */
.scroll-progress {
    position: fixed;
    top: 0;
    left: 0;
    height: 3px;
    width: 0%;
    z-index: 300;
    background: linear-gradient(90deg, var(--cyan), var(--violet), var(--pink));
    box-shadow: 0 0 16px rgba(34, 211, 238, 0.6);
    transition: width 0.08s linear;
}

/* Cursor glow (desktop) */
.cursor-glow {
    position: fixed;
    width: 320px;
    height: 320px;
    margin: -160px 0 0 -160px;
    border-radius: 50%;
    pointer-events: none;
    z-index: 1;
    background: radial-gradient(circle, rgba(34, 211, 238, 0.12), transparent 65%);
    opacity: 0;
    transition: opacity 0.35s;
    mix-blend-mode: screen;
}

body.cursor-active .cursor-glow { opacity: 1; }

@keyframes ambientDrift {
    0%, 100% { transform: translate(0, 0) scale(1); }
    33% { transform: translate(40px, -30px) scale(1.08); }
    66% { transform: translate(-20px, 40px) scale(0.95); }
}

.grid-overlay {
    position: fixed;
    inset: 0;
    z-index: 0;
    pointer-events: none;
    background-image:
        linear-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
    background-size: 64px 64px;
    mask-image: radial-gradient(ellipse 80% 60% at 50% 30%, black, transparent);
    opacity: 0.4;
}

.noise {
    position: fixed;
    inset: 0;
    z-index: 1;
    pointer-events: none;
    opacity: 0.035;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

main, .nav, .footer, .marquee-wrap { position: relative; z-index: 2; }

/* ── Utilities ── */
.gradient-text {
    background: linear-gradient(120deg, var(--cyan) 0%, var(--violet) 45%, var(--pink) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    background-size: 200% auto;
    animation: gradientShift 6s ease infinite;
}

@keyframes gradientShift {
    0%, 100% { background-position: 0% center; }
    50% { background-position: 100% center; }
}

[data-reveal] {
    opacity: 0;
    transform: translateY(36px);
    transition: opacity 0.9s var(--ease-out-expo), transform 0.9s var(--ease-out-expo);
}

[data-reveal].is-visible {
    opacity: 1;
    transform: translateY(0);
}

[data-reveal-delay="2"] { transition-delay: 0.15s; }

/* ═══════════════════════════════════════════════════════════════
   NAV — floating command bar + cinematic mobile menu
   ═══════════════════════════════════════════════════════════════ */

/* Custom cursor (desktop) */
.cursor-dot,
.cursor-ring {
    position: fixed;
    pointer-events: none;
    z-index: 9999;
    border-radius: 50%;
    transform: translate(-50%, -50%);
    opacity: 0;
    transition: opacity 0.35s, width 0.2s, height 0.2s;
}

body.cursor-ready .cursor-dot,
body.cursor-ready .cursor-ring { opacity: 1; }

body.cursor-ready .cursor-glow { opacity: 0 !important; }

.cursor-dot {
    width: 8px;
    height: 8px;
    background: var(--cyan);
    box-shadow: 0 0 16px var(--cyan);
}

.cursor-ring {
    width: 40px;
    height: 40px;
    border: 1px solid rgba(34, 211, 238, 0.45);
    transition: opacity 0.35s, width 0.25s var(--ease-spring), height 0.25s var(--ease-spring), border-color 0.25s;
}

body.cursor-hover .cursor-ring {
    width: 56px;
    height: 56px;
    border-color: rgba(244, 114, 182, 0.6);
}

.nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 250;
    padding: 14px clamp(16px, 3vw, 28px) 0;
    pointer-events: none;
    transition: transform 0.5s var(--ease-out-expo);
}

.nav.is-hidden { transform: translateY(-120%); }

.nav-shell {
    max-width: 1140px;
    margin: 0 auto;
    padding: 8px 10px 8px 14px;
    border-radius: 20px;
    background: rgba(8, 12, 24, 0.55);
    border: 1px solid rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(24px) saturate(1.6);
    box-shadow:
        0 4px 24px rgba(0, 0, 0, 0.35),
        0 0 0 1px rgba(34, 211, 238, 0.06) inset,
        0 0 40px rgba(34, 211, 238, 0.08);
    pointer-events: auto;
    transition: background 0.4s, box-shadow 0.4s, border-color 0.4s;
}

.nav.is-scrolled .nav-shell {
    background: rgba(5, 8, 16, 0.88);
    border-color: rgba(34, 211, 238, 0.2);
    box-shadow:
        0 12px 40px rgba(0, 0, 0, 0.45),
        0 0 60px rgba(34, 211, 238, 0.12);
}

.nav-inner {
    display: flex;
    align-items: center;
    gap: 12px;
    min-height: 52px;
}

/* Logo */
.nav-logo {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    color: #fff;
    position: relative;
    flex-shrink: 0;
    padding-right: 8px;
}

.logo-ring {
    position: absolute;
    left: -4px;
    top: 50%;
    transform: translateY(-50%);
    width: 48px;
    height: 48px;
    border-radius: 14px;
    border: 2px solid transparent;
    background: linear-gradient(135deg, var(--cyan), var(--pink)) border-box;
    -webkit-mask: linear-gradient(#fff 0 0) padding-box, linear-gradient(#fff 0 0);
    mask: linear-gradient(#fff 0 0) padding-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    animation: logoRingSpin 4s linear infinite;
}

@keyframes logoRingSpin {
    to { transform: translateY(-50%) rotate(360deg); }
}

.logo-img {
    width: 40px;
    height: 40px;
    border-radius: 12px;
    position: relative;
    z-index: 1;
    box-shadow: 0 0 24px rgba(34, 211, 238, 0.4);
}

.logo-copy {
    display: flex;
    flex-direction: column;
    line-height: 1.15;
}

.logo-text {
    font-family: var(--font-display);
    font-weight: 800;
    font-size: 17px;
    letter-spacing: -0.02em;
    background: linear-gradient(120deg, #fff, var(--cyan));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.logo-sub {
    font-size: 9px;
    font-weight: 700;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--cyan);
    opacity: 0.85;
}

/* Pill nav links */
.nav-pill {
    display: flex;
    align-items: center;
    gap: 2px;
    padding: 4px;
    border-radius: 14px;
    background: rgba(0, 0, 0, 0.35);
    border: 1px solid rgba(255, 255, 255, 0.06);
    position: relative;
    flex: 1;
    justify-content: center;
    max-width: 520px;
    margin: 0 auto;
}

.nav-indicator {
    position: absolute;
    top: 4px;
    left: 4px;
    height: calc(100% - 8px);
    width: 80px;
    border-radius: 10px;
    background: linear-gradient(135deg, rgba(34, 211, 238, 0.25), rgba(167, 139, 250, 0.2));
    border: 1px solid rgba(34, 211, 238, 0.35);
    box-shadow: 0 0 20px rgba(34, 211, 238, 0.25);
    transition: transform 0.45s var(--ease-spring), width 0.45s var(--ease-spring);
    pointer-events: none;
    z-index: 0;
}

.nav-link {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 10px 14px;
    border-radius: 10px;
    text-decoration: none;
    color: var(--muted);
    font-size: 13px;
    font-weight: 600;
    transition: color 0.25s;
    white-space: nowrap;
}

.nav-link__icon {
    font-size: 11px;
    opacity: 0.5;
    transition: opacity 0.25s, transform 0.25s var(--ease-spring);
}

.nav-link:hover,
.nav-link.is-active {
    color: #fff;
}

.nav-link:hover .nav-link__icon,
.nav-link.is-active .nav-link__icon {
    opacity: 1;
    transform: scale(1.15);
}

.nav-link.is-active .nav-link__icon {
    color: var(--cyan);
}

/* CTA */
.nav-cta {
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 22px;
    border-radius: 14px;
    background: linear-gradient(135deg, var(--cyan) 0%, var(--violet) 50%, var(--pink) 100%);
    background-size: 200% auto;
    animation: ctaGradient 4s ease infinite;
    color: #050810 !important;
    font-weight: 800 !important;
    font-size: 12px !important;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    text-decoration: none;
    overflow: hidden;
    flex-shrink: 0;
    box-shadow: 0 4px 28px rgba(34, 211, 238, 0.4);
    transition: transform 0.3s var(--ease-spring), box-shadow 0.3s;
}

@keyframes ctaGradient {
    0%, 100% { background-position: 0% center; }
    50% { background-position: 100% center; }
}

.nav-cta__shine {
    position: absolute;
    top: 0;
    left: -100%;
    width: 50%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.35), transparent);
    animation: ctaShine 3s ease-in-out infinite;
}

@keyframes ctaShine {
    0%, 100% { left: -100%; }
    50% { left: 150%; }
}

.nav-cta__text,
.nav-cta svg { position: relative; z-index: 1; }

.nav-cta:hover {
    box-shadow: 0 8px 40px rgba(34, 211, 238, 0.55), 0 0 30px rgba(244, 114, 182, 0.3);
}

/* Mobile toggle */
.nav-toggle {
    display: none;
    align-items: center;
    gap: 8px;
    padding: 10px 14px;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.1);
    cursor: pointer;
    color: #fff;
    font-family: var(--font-display);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.nav-toggle__bars {
    display: flex;
    flex-direction: column;
    gap: 5px;
    width: 20px;
}

.nav-toggle__bars span {
    display: block;
    height: 2px;
    background: #fff;
    border-radius: 2px;
    transition: transform 0.35s var(--ease-spring), opacity 0.25s;
}

.nav-open .nav-toggle__bars span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-open .nav-toggle__bars span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.nav-open .nav-toggle__bars span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Fullscreen mobile overlay */
.nav-overlay {
    position: fixed;
    inset: 0;
    z-index: 400;
    pointer-events: none;
    visibility: hidden;
}

.nav-overlay.is-open {
    pointer-events: auto;
    visibility: visible;
}

.nav-overlay__backdrop {
    position: absolute;
    inset: 0;
    background: rgba(3, 5, 10, 0.92);
    backdrop-filter: blur(20px);
    opacity: 0;
    transition: opacity 0.5s var(--ease-out-expo);
}

.nav-overlay.is-open .nav-overlay__backdrop { opacity: 1; }

.nav-overlay__content {
    position: relative;
    height: 100%;
    display: flex;
    flex-direction: column;
    padding: clamp(24px, 5vw, 48px);
    transform: translateY(24px);
    opacity: 0;
    transition: transform 0.55s var(--ease-out-expo), opacity 0.45s;
}

.nav-overlay.is-open .nav-overlay__content {
    transform: translateY(0);
    opacity: 1;
}

.nav-overlay__header {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 40px;
}

.nav-overlay__header img {
    border-radius: 14px;
    box-shadow: 0 0 30px rgba(34, 211, 238, 0.4);
}

.nav-overlay__header strong {
    display: block;
    font-family: var(--font-display);
    font-size: 22px;
    color: #fff;
}

.nav-overlay__header span {
    font-size: 11px;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--cyan);
}

.nav-overlay__close {
    margin-left: auto;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, 0.15);
    background: rgba(255, 255, 255, 0.05);
    color: #fff;
    font-size: 20px;
    cursor: pointer;
    transition: background 0.25s, transform 0.25s var(--ease-spring);
}

.nav-overlay__close:hover {
    background: rgba(244, 114, 182, 0.2);
    transform: rotate(90deg);
}

.nav-overlay__links {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 8px;
}

.nav-overlay__link {
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 20px 0;
    text-decoration: none;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    opacity: 0;
    transform: translateX(-40px);
    transition: opacity 0.5s var(--ease-out-expo), transform 0.5s var(--ease-out-expo), border-color 0.3s;
}

.nav-overlay.is-open .nav-overlay__link {
    opacity: 1;
    transform: translateX(0);
}

.nav-overlay.is-open .nav-overlay__link:nth-child(1) { transition-delay: 0.08s; }
.nav-overlay.is-open .nav-overlay__link:nth-child(2) { transition-delay: 0.14s; }
.nav-overlay.is-open .nav-overlay__link:nth-child(3) { transition-delay: 0.2s; }
.nav-overlay.is-open .nav-overlay__link:nth-child(4) { transition-delay: 0.26s; }
.nav-overlay.is-open .nav-overlay__link:nth-child(5) { transition-delay: 0.32s; }

.nav-overlay__num {
    font-family: var(--font-display);
    font-size: 14px;
    font-weight: 800;
    color: var(--cyan);
    opacity: 0.7;
    min-width: 28px;
}

.nav-overlay__name {
    font-family: var(--font-display);
    font-size: clamp(32px, 8vw, 52px);
    font-weight: 800;
    color: #fff;
    letter-spacing: -0.03em;
    flex: 1;
    transition: background 0.3s;
}

.nav-overlay__link:hover .nav-overlay__name {
    background: linear-gradient(120deg, var(--cyan), var(--pink));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.nav-overlay__arrow {
    font-size: 28px;
    color: var(--dim);
    transition: transform 0.35s var(--ease-spring), color 0.25s;
}

.nav-overlay__link:hover .nav-overlay__arrow {
    transform: translateX(8px);
    color: var(--cyan);
}

.nav-overlay__footer {
    position: relative;
    padding-top: 32px;
}

.nav-overlay__char {
    position: absolute;
    right: -20px;
    bottom: 60px;
    width: 140px;
    height: 140px;
    object-fit: contain;
    opacity: 0.35;
    filter: drop-shadow(0 0 30px rgba(34, 211, 238, 0.3));
    pointer-events: none;
    animation: charBob 4s ease-in-out infinite;
}

.nav-overlay__cta {
    display: block;
    text-align: center;
    padding: 20px 32px;
    border-radius: 16px;
    background: linear-gradient(135deg, var(--cyan), var(--violet));
    color: #050810;
    font-family: var(--font-display);
    font-weight: 800;
    font-size: 16px;
    text-decoration: none;
    box-shadow: 0 8px 40px rgba(34, 211, 238, 0.4);
    transition: transform 0.3s var(--ease-spring), box-shadow 0.3s;
}

.nav-overlay__cta:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 50px rgba(34, 211, 238, 0.5);
}

/* Side section rail */
.section-rail {
    position: fixed;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
    z-index: 180;
    display: flex;
    flex-direction: column;
    gap: 14px;
    padding: 12px 8px;
    border-radius: 999px;
    background: rgba(8, 12, 24, 0.5);
    border: 1px solid rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(12px);
    opacity: 0;
    animation: railFadeIn 1s var(--ease-out-expo) 2.5s forwards;
}

@keyframes railFadeIn {
    to { opacity: 1; }
}

.rail-dot {
    width: 10px;
    height: 10px;
    padding: 0;
    border: none;
    background: none;
    cursor: pointer;
    position: relative;
}

.rail-dot span {
    display: block;
    width: 6px;
    height: 6px;
    margin: 0 auto;
    border-radius: 50%;
    background: var(--dim);
    transition: transform 0.35s var(--ease-spring), background 0.3s, box-shadow 0.3s;
}

.rail-dot:hover span,
.rail-dot.is-active span {
    transform: scale(1.5);
    background: var(--cyan);
    box-shadow: 0 0 12px var(--cyan);
}

.rail-dot.is-active span {
    background: var(--pink);
    box-shadow: 0 0 16px var(--pink);
}

/* Dual marquee */
.marquee-wrap--dual {
    display: flex;
    flex-direction: column;
    gap: 0;
    padding: 0;
}

.marquee-wrap--dual .marquee {
    padding: 18px 0;
}

.marquee--rev {
    animation-direction: reverse;
    border-top: 1px solid rgba(255, 255, 255, 0.04);
    color: rgba(139, 156, 184, 0.5);
}

.marquee--fwd .dot { color: var(--cyan); }
.marquee--rev .dot { color: var(--pink); }

/* Phone screen glare */
.phone-screen::after {
    content: '';
    position: absolute;
    inset: 0;
    z-index: 5;
    background: linear-gradient(
        105deg,
        transparent 0%,
        transparent 40%,
        rgba(255, 255, 255, 0.08) 50%,
        transparent 60%,
        transparent 100%
    );
    background-size: 200% 100%;
    animation: screenGlare 5s ease-in-out infinite;
    pointer-events: none;
}

@keyframes screenGlare {
    0%, 100% { background-position: 200% center; }
    50% { background-position: -100% center; }
}

/* Hero scanlines */
.hero::before {
    content: '';
    position: absolute;
    inset: 0;
    z-index: 1;
    pointer-events: none;
    background: repeating-linear-gradient(
        0deg,
        transparent,
        transparent 2px,
        rgba(0, 0, 0, 0.03) 2px,
        rgba(0, 0, 0, 0.03) 4px
    );
    opacity: 0.5;
}

/* ── Hero layout ── */
.hero {
    min-height: 100vh;
    min-height: 100dvh;
    padding: calc(var(--nav-h) + 48px) 0 80px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.hero-inner {
    position: relative;
    z-index: 2;
    max-width: 1180px;
    margin: 0 auto;
    padding: 0 clamp(20px, 4vw, 32px);
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: center;
    gap: clamp(40px, 6vw, 80px);
    width: 100%;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.14em;
    color: var(--cyan);
    padding: 8px 16px;
    border-radius: 999px;
    border: 1px solid rgba(34, 211, 238, 0.3);
    background: rgba(34, 211, 238, 0.08);
    margin-bottom: 28px;
    animation: badgeGlow 4s ease-in-out infinite;
}

@keyframes badgeGlow {
    0%, 100% { box-shadow: 0 0 0 rgba(34, 211, 238, 0); }
    50% { box-shadow: 0 0 24px rgba(34, 211, 238, 0.2); }
}

.pulse-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--cyan);
    box-shadow: 0 0 12px var(--cyan);
    animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% { transform: scale(1); opacity: 1; }
    50% { transform: scale(1.3); opacity: 0.7; }
}

.hero-eyebrow {
    font-size: 13px;
    font-weight: 600;
    color: var(--dim);
    text-transform: uppercase;
    letter-spacing: 0.14em;
    margin-bottom: 12px;
}

.hero-title { margin-bottom: 8px; }

.hero-brand {
    font-family: var(--font-display);
    font-size: clamp(52px, 8vw, 96px);
    font-weight: 800;
    line-height: 0.92;
    letter-spacing: -0.04em;
    display: block;
    color: #fff;
    text-shadow: 0 0 60px rgba(34, 211, 238, 0.25);
}

.hero-tagline {
    margin-bottom: 22px;
    display: block;
}

.tagline-glow {
    font-family: var(--font-display);
    font-size: clamp(24px, 4vw, 42px);
    font-weight: 800;
    letter-spacing: -0.02em;
    background: linear-gradient(120deg, var(--cyan), var(--violet), var(--pink), var(--cyan));
    background-size: 300% auto;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: taglineFlow 5s ease infinite;
    filter: drop-shadow(0 0 24px rgba(34, 211, 238, 0.35));
}

@keyframes taglineFlow {
    0%, 100% { background-position: 0% center; }
    50% { background-position: 100% center; }
}

.shimmer-text {
    position: relative;
    background: linear-gradient(
        110deg,
        #fff 0%,
        #fff 38%,
        var(--cyan) 48%,
        var(--pink) 52%,
        #fff 62%,
        #fff 100%
    );
    background-size: 250% 100%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: brandShimmer 4s ease-in-out infinite;
}

@keyframes brandShimmer {
    0%, 100% { background-position: 100% center; }
    50% { background-position: 0% center; }
}

/* Hero atmosphere */
.hero {
    background:
        radial-gradient(ellipse 90% 70% at 15% 50%, rgba(34, 211, 238, 0.12), transparent),
        radial-gradient(ellipse 70% 60% at 85% 35%, rgba(244, 114, 182, 0.1), transparent),
        var(--bg);
}

.hero-bg-pattern {
    position: absolute;
    inset: 0;
    background: url('assets/ui/pattern-hero.jpg') center / cover no-repeat;
    opacity: 0.12;
    mask-image: radial-gradient(ellipse 90% 80% at 60% 40%, black, transparent);
    pointer-events: none;
}

.hero-platforms {
    position: absolute;
    inset: 0;
    pointer-events: none;
    overflow: hidden;
}

.hp {
    position: absolute;
    height: 12px;
    border-radius: 8px;
    background: linear-gradient(90deg, var(--violet), var(--cyan));
    box-shadow: 0 4px 20px rgba(34, 211, 238, 0.35);
    opacity: 0.5;
    animation: hpDrift 12s ease-in-out infinite;
}

.hp-1 { width: 120px; top: 22%; left: 8%; animation-delay: 0s; }
.hp-2 { width: 80px; top: 55%; left: 4%; background: linear-gradient(90deg, var(--pink), var(--gold)); animation-delay: -3s; }
.hp-3 { width: 100px; top: 35%; right: 12%; animation-delay: -6s; }
.hp-4 { width: 70px; bottom: 25%; right: 8%; background: linear-gradient(90deg, var(--gold), var(--pink)); animation-delay: -9s; }

@keyframes hpDrift {
    0%, 100% { transform: translate(0, 0) rotate(-2deg); opacity: 0.35; }
    50% { transform: translate(12px, -20px) rotate(3deg); opacity: 0.65; }
}

.hero-desc {
    font-size: clamp(16px, 2vw, 19px);
    color: var(--muted);
    max-width: 480px;
    margin-bottom: 36px;
    line-height: 1.75;
}

.hero-actions {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 24px;
}

.btn-appstore {
    display: inline-block;
    border-radius: 14px;
    transition: transform 0.35s var(--ease-spring), filter 0.35s;
}

.btn-appstore img {
    display: block;
    border-radius: 10px;
}

.btn-appstore:hover {
    transform: translateY(-4px) scale(1.02);
    filter: drop-shadow(0 12px 28px rgba(0, 0, 0, 0.5));
}

.glow-pulse {
    animation: storeGlow 3s ease-in-out infinite;
}

@keyframes storeGlow {
    0%, 100% { filter: drop-shadow(0 0 0 transparent); }
    50% { filter: drop-shadow(0 0 20px rgba(34, 211, 238, 0.25)); }
}

.hero-stats {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.stat-card {
    padding: 14px 20px;
    border-radius: 14px;
    background: var(--surface);
    border: 1px solid var(--border);
    backdrop-filter: blur(8px);
    text-align: center;
    min-width: 88px;
    transition: transform 0.3s var(--ease-spring), border-color 0.3s;
}

.stat-card:hover {
    transform: translateY(-3px);
    border-color: rgba(255, 255, 255, 0.15);
}

.stat-card strong {
    display: block;
    font-family: var(--font-display);
    font-size: 22px;
    font-weight: 800;
    color: #fff;
}

.stat-card small {
    font-size: 11px;
    color: var(--dim);
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

.stat-card.accent strong {
    background: linear-gradient(135deg, var(--gold), var(--pink));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Hero stage / phone */
.hero-stage {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 520px;
}

.orbit-ring {
    position: absolute;
    border-radius: 50%;
    border: 1px solid rgba(34, 211, 238, 0.15);
    animation: orbitSpin 24s linear infinite;
}

.orbit-ring--1 {
    width: 420px;
    height: 420px;
}

.orbit-ring--2 {
    width: 340px;
    height: 340px;
    border-color: rgba(244, 114, 182, 0.12);
    animation-duration: 18s;
    animation-direction: reverse;
}

@keyframes orbitSpin {
    to { transform: rotate(360deg); }
}

.combo-burst {
    position: absolute;
    top: 8%;
    right: 5%;
    font-family: var(--font-display);
    font-weight: 800;
    font-size: 13px;
    letter-spacing: 0.08em;
    padding: 8px 14px;
    border-radius: 8px;
    background: linear-gradient(135deg, rgba(251, 191, 36, 0.2), rgba(244, 114, 182, 0.2));
    border: 1px solid rgba(251, 191, 36, 0.4);
    color: var(--gold);
    animation: comboPop 2.5s var(--ease-spring) infinite;
    z-index: 5;
}

@keyframes comboPop {
    0%, 100% { transform: scale(1) rotate(-3deg); }
    50% { transform: scale(1.08) rotate(3deg); }
}

.phone-stack {
    position: relative;
    z-index: 3;
}

.phone {
    position: relative;
    animation: phoneFloat 5s ease-in-out infinite;
    transform-style: preserve-3d;
}

@keyframes phoneFloat {
    0%, 100% { transform: translateY(0) rotateY(-4deg) rotateX(2deg); }
    50% { transform: translateY(-18px) rotateY(4deg) rotateX(-2deg); }
}

.phone-glow {
    position: absolute;
    inset: -20%;
    background: radial-gradient(ellipse, rgba(34, 211, 238, 0.25), transparent 60%);
    filter: blur(40px);
    animation: phoneGlowPulse 4s ease-in-out infinite;
}

@keyframes phoneGlowPulse {
    0%, 100% { opacity: 0.6; transform: scale(1); }
    50% { opacity: 1; transform: scale(1.1); }
}

.phone-bezel {
    width: 280px;
    height: 560px;
    background: linear-gradient(155deg, #2a3040 0%, #0e1018 50%, #1a1e28 100%);
    border-radius: 40px;
    border: 2px solid rgba(255, 255, 255, 0.12);
    position: relative;
    padding: 14px;
    box-shadow:
        0 40px 80px rgba(0, 0, 0, 0.6),
        0 0 0 1px rgba(255, 255, 255, 0.05) inset,
        0 0 60px rgba(34, 211, 238, 0.15);
}

.phone-notch {
    position: absolute;
    top: 10px;
    left: 50%;
    transform: translateX(-50%);
    width: 90px;
    height: 26px;
    background: #050810;
    border-radius: 0 0 16px 16px;
    z-index: 4;
}

.phone-screen {
    position: absolute;
    top: 24px;
    left: 14px;
    right: 14px;
    bottom: 36px;
    border-radius: 30px;
    overflow: hidden;
    background: linear-gradient(180deg, #0a1628 0%, #050810 100%);
}

.phone-screen video {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 2;
}

.phone-screen video[data-playing="true"] + .phone-fallback {
    opacity: 0;
    pointer-events: none;
}

.phone-fallback {
    position: absolute;
    inset: 0;
    z-index: 1;
    transition: opacity 0.5s;
}

.climb-scene {
    position: absolute;
    inset: 0;
    overflow: hidden;
}

.climb-player {
    position: absolute;
    width: 48px;
    height: 48px;
    left: 50%;
    bottom: 26%;
    margin-left: -24px;
    object-fit: contain;
    filter: drop-shadow(0 4px 12px rgba(34, 211, 238, 0.5));
    animation: playerBounce 2.2s var(--ease-spring) infinite;
    z-index: 10;
}

@keyframes playerBounce {
    0%, 100% { transform: translateY(0); }
    45% { transform: translateY(-120px); }
    55% { transform: translateY(-120px); }
}

.platform {
    position: absolute;
    left: 50%;
    height: 10px;
    border-radius: 6px;
    transform: translateX(-50%);
    background: linear-gradient(90deg, var(--violet), var(--cyan));
    box-shadow: 0 4px 12px rgba(34, 211, 238, 0.3);
    animation: platformDrift 8s ease-in-out infinite;
}

.platform.p1 { width: 70%; bottom: 18%; animation-delay: 0s; }
.platform.p2 { width: 55%; bottom: 32%; animation-delay: -1.5s; background: linear-gradient(90deg, var(--pink), var(--violet)); }
.platform.p3 { width: 65%; bottom: 46%; animation-delay: -3s; }
.platform.p4 { width: 50%; bottom: 60%; animation-delay: -4.5s; background: linear-gradient(90deg, var(--gold), var(--pink)); }
.platform.p5 { width: 60%; bottom: 74%; animation-delay: -6s; }

@keyframes platformDrift {
    0%, 100% { transform: translateX(-50%) scaleX(1); opacity: 0.9; }
    50% { transform: translateX(-48%) scaleX(1.05); opacity: 1; }
}

.phone-home {
    position: absolute;
    bottom: 12px;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 4px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 999px;
}

.hero-stage {
    --px: 0px;
    --py: 0px;
}

.hero-char-orbit {
    position: absolute;
    inset: 0;
    pointer-events: none;
    z-index: 2;
    transform: translate(var(--px), var(--py));
    transition: transform 0.15s ease-out;
}

.orbit-char {
    position: absolute;
    width: 56px;
    height: 56px;
    object-fit: contain;
    filter: drop-shadow(0 8px 16px rgba(0, 0, 0, 0.4));
    animation: orbitCharFloat 6s ease-in-out infinite;
}

.orbit-char.oc1 { top: 12%; left: 8%; animation-delay: 0s; }
.orbit-char.oc2 { bottom: 22%; right: 6%; width: 64px; height: 64px; animation-delay: -2s; }
.orbit-char.oc3 { top: 38%; right: 2%; animation-delay: -4s; }

@keyframes orbitCharFloat {
    0%, 100% { transform: translateY(0) rotate(-6deg); }
    50% { transform: translateY(-14px) rotate(6deg); }
}

.float-chip {
    position: absolute;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 16px;
    border-radius: 12px;
    font-size: 13px;
    font-weight: 600;
    background: rgba(12, 18, 34, 0.92);
    border: 1px solid var(--border);
    backdrop-filter: blur(12px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
    animation: chipFloat 5s ease-in-out infinite;
    z-index: 6;
}

.float-chip img {
    border-radius: 6px;
    object-fit: contain;
}

.float-chip--1 { top: 18%; left: 0; animation-delay: 0s; }
.float-chip--2 { bottom: 30%; left: -8%; animation-delay: -1.5s; }
.float-chip--3 { top: 40%; right: 0; animation-delay: -3s; }

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

.hero-scroll-hint {
    position: absolute;
    bottom: 32px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    font-size: 10px;
    text-transform: uppercase;
    letter-spacing: 0.2em;
    color: var(--dim);
}

.scroll-line {
    width: 1px;
    height: 40px;
    background: linear-gradient(to bottom, var(--cyan), transparent);
    animation: scrollPulse 2s ease-in-out infinite;
}

@keyframes scrollPulse {
    0%, 100% { transform: scaleY(0.6); opacity: 0.5; }
    50% { transform: scaleY(1); opacity: 1; }
}

/* ── Marquee ── */
.marquee-wrap {
    padding: 22px 0;
    border-block: 1px solid rgba(34, 211, 238, 0.15);
    background: linear-gradient(90deg, rgba(34, 211, 238, 0.06), rgba(12, 18, 34, 0.8), rgba(244, 114, 182, 0.06));
    overflow: hidden;
    box-shadow: 0 0 40px rgba(34, 211, 238, 0.06);
}

.marquee {
    display: flex;
    gap: 40px;
    width: max-content;
    animation: marquee 30s linear infinite;
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 13px;
    letter-spacing: 0.2em;
    color: var(--dim);
}

.marquee .dot {
    color: var(--cyan);
    opacity: 0.6;
}

@keyframes marquee {
    to { transform: translateX(-50%); }
}

/* ── Sections ── */
.section-head {
    text-align: center;
    margin-bottom: 56px;
}

.section-label {
    display: inline-block;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.16em;
    color: var(--cyan);
    margin-bottom: 16px;
}

.section-heading {
    font-family: var(--font-display);
    font-size: clamp(32px, 5vw, 52px);
    font-weight: 800;
    letter-spacing: -0.03em;
    color: #fff;
    margin-bottom: 16px;
    line-height: 1.1;
}

.section-head.is-visible .section-heading {
    animation: headingPop 0.8s var(--ease-out-expo) both;
}

@keyframes headingPop {
    from { opacity: 0; transform: translateY(20px) scale(0.96); }
    to { opacity: 1; transform: translateY(0) scale(1); }
}

.section-sub {
    font-size: 17px;
    color: var(--muted);
    max-width: 520px;
    margin: 0 auto;
}

/* ── Features bento ── */
.features {
    padding: clamp(80px, 12vw, 140px) 0;
}

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

.feature-card,
.mode-card,
.contact-card,
.cta-card,
.character-card.is-active {
    --accent: var(--cyan);
    position: relative;
}

.feature-card {
    padding: 32px 28px;
    border-radius: 20px;
    background: rgba(8, 12, 24, 0.75);
    border: 1px solid var(--border);
    overflow: hidden;
    transition: transform 0.45s var(--ease-out-expo), border-color 0.45s, box-shadow 0.45s;
}

.feature-card::before,
.mode-card::before,
.contact-card::before {
    content: '';
    position: absolute;
    inset: -1px;
    border-radius: inherit;
    padding: 1px;
    background: linear-gradient(135deg, rgba(34, 211, 238, 0.5), rgba(167, 139, 250, 0.3), rgba(244, 114, 182, 0.4), rgba(34, 211, 238, 0.5));
    background-size: 300% 300%;
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    opacity: 0.35;
    animation: borderFlow 6s linear infinite;
    pointer-events: none;
    transition: opacity 0.4s;
}

.feature-card:hover::before,
.mode-card:hover::before,
.contact-card:hover::before {
    opacity: 1;
}

@keyframes borderFlow {
    0% { background-position: 0% 50%; }
    100% { background-position: 200% 50%; }
}

.feature-card__glow {
    position: absolute;
    top: -50%;
    right: -50%;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle, color-mix(in srgb, var(--accent) 25%, transparent), transparent 65%);
    opacity: 0;
    transition: opacity 0.45s;
    pointer-events: none;
}

.feature-card:hover {
    transform: translateY(-8px);
    border-color: rgba(34, 211, 238, 0.35);
    border-color: color-mix(in srgb, var(--accent) 40%, transparent);
    box-shadow: 0 24px 48px rgba(0, 0, 0, 0.35), 0 0 40px rgba(34, 211, 238, 0.12);
    box-shadow: 0 24px 48px rgba(0, 0, 0, 0.35), 0 0 40px color-mix(in srgb, var(--accent) 12%, transparent);
}

.feature-card:hover .feature-card__glow { opacity: 1; }

.feature-card--large {
    grid-column: span 2;
    grid-row: span 1;
}

.feature-card--wide {
    grid-column: span 2;
}

.feature-icon-wrap {
    width: 64px;
    height: 64px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 16px;
    background: rgba(34, 211, 238, 0.08);
    border: 1px solid rgba(34, 211, 238, 0.2);
    margin-bottom: 20px;
    transition: transform 0.4s var(--ease-spring);
}

.feature-card[style*="--accent"] .feature-icon-wrap {
    background: rgba(34, 211, 238, 0.06);
    border-color: rgba(255, 255, 255, 0.1);
}

.feature-icon {
    font-size: 32px;
    line-height: 1;
}

.feature-img-icon {
    width: 40px;
    height: 40px;
    object-fit: contain;
}

.feature-card:hover .feature-icon-wrap {
    transform: scale(1.08) rotate(-4deg);
}

.feature-card h3 {
    font-family: var(--font-display);
    font-size: 20px;
    font-weight: 700;
    color: #fff;
    margin-bottom: 10px;
}

.feature-card p {
    font-size: 14px;
    color: var(--muted);
    line-height: 1.65;
}

.feature-card p strong { color: var(--gold); }

.feature-meter {
    display: flex;
    gap: 8px;
    margin-top: 24px;
    align-items: flex-end;
    height: 48px;
}

.feature-meter span {
    flex: 1;
    height: var(--w, 20%);
    border-radius: 6px 6px 2px 2px;
    background: linear-gradient(to top, var(--gold), var(--pink));
    transform-origin: bottom;
    animation: meterPop 0.8s var(--ease-out-expo) backwards;
}

.feature-meter span:nth-child(1) { animation-delay: 0.1s; }
.feature-meter span:nth-child(2) { animation-delay: 0.2s; }
.feature-meter span:nth-child(3) { animation-delay: 0.3s; }
.feature-meter span:nth-child(4) { animation-delay: 0.4s; }
.feature-meter span:nth-child(5) { animation-delay: 0.5s; }

@keyframes meterPop {
    from { transform: scaleY(0); }
    to { transform: scaleY(1); }
}

.swipe-demo {
    position: absolute;
    right: 24px;
    bottom: 24px;
    width: 100px;
    height: 60px;
}

.swipe-trail {
    position: absolute;
    inset: 0;
    border-radius: 12px;
    border: 2px dashed color-mix(in srgb, var(--accent) 40%, transparent);
    animation: swipeDash 2s ease-in-out infinite;
}

@keyframes swipeDash {
    0%, 100% { opacity: 0.4; transform: translateX(0); }
    50% { opacity: 1; transform: translateX(8px); }
}

.swipe-hand {
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    font-size: 24px;
    animation: swipeHand 2s ease-in-out infinite;
}

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

/* ── Characters ── */
.characters {
    padding: clamp(60px, 10vw, 100px) 0;
    background:
        radial-gradient(ellipse 60% 40% at 50% 100%, rgba(244, 114, 182, 0.06), transparent),
        var(--bg);
}

.character-showcase {
    max-width: 900px;
    margin: 0 auto;
}

.character-carousel {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0;
    min-height: 360px;
    perspective: 1200px;
    position: relative;
}

.character-card {
    flex: 0 0 auto;
    width: 220px;
    text-align: center;
    padding: 28px 18px;
    border-radius: 24px;
    background: rgba(8, 12, 24, 0.85);
    border: 1px solid var(--border);
    opacity: 0.35;
    transform: scale(0.82);
    transition:
        opacity 0.55s var(--ease-out-expo),
        transform 0.55s var(--ease-out-expo),
        border-color 0.4s,
        box-shadow 0.4s;
    pointer-events: none;
    will-change: transform, opacity;
}

.character-card.is-active {
    opacity: 1;
    transform: scale(1.05) translateZ(0);
    border-color: rgba(34, 211, 238, 0.45);
    box-shadow:
        0 28px 56px rgba(0, 0, 0, 0.4),
        0 0 50px rgba(34, 211, 238, 0.18),
        inset 0 1px 0 rgba(255, 255, 255, 0.08);
    pointer-events: auto;
}

.character-card img {
    width: 140px;
    height: 140px;
    object-fit: contain;
    margin: 0 auto 16px;
    filter: drop-shadow(0 12px 24px rgba(0, 0, 0, 0.35));
    transition: transform 0.5s var(--ease-spring);
}

.character-card.is-active img {
    animation: charBob 3s ease-in-out infinite;
}

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

.character-card h4 {
    font-family: var(--font-display);
    font-size: 18px;
    font-weight: 700;
    color: #fff;
    margin-bottom: 6px;
}

.character-card p {
    font-size: 13px;
    color: var(--muted);
    line-height: 1.5;
}

.character-dots {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 28px;
}

.character-dots button {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    border: none;
    background: var(--dim);
    cursor: pointer;
    padding: 0;
    transition: transform 0.3s var(--ease-spring), background 0.3s;
}

.character-dots button.is-active {
    background: var(--cyan);
    transform: scale(1.35);
    box-shadow: 0 0 12px rgba(34, 211, 238, 0.6);
}

.characters-more {
    text-align: center;
    margin-top: 24px;
    font-size: 14px;
    color: var(--dim);
}

/* ── Modes grid ── */
.modes {
    padding: clamp(60px, 10vw, 100px) 0;
    border-top: 1px solid var(--border);
}

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

.mode-card {
    position: relative;
    padding: 28px 24px;
    border-radius: 18px;
    background: var(--surface);
    border: 1px solid var(--border);
    transition: transform 0.45s var(--ease-out-expo), border-color 0.4s, box-shadow 0.4s;
}

.mode-card:hover {
    transform: translateY(-6px);
    border-color: rgba(34, 211, 238, 0.25);
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.28);
}

.mode-card--featured {
    grid-column: span 1;
    background: linear-gradient(145deg, rgba(34, 211, 238, 0.1), rgba(167, 139, 250, 0.06));
    border-color: rgba(34, 211, 238, 0.25);
}

.mode-card--wide { grid-column: span 2; }

.mode-card__tag {
    display: inline-block;
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: var(--cyan);
    margin-bottom: 12px;
}

.mode-card h3 {
    font-family: var(--font-display);
    font-size: 18px;
    font-weight: 700;
    color: #fff;
    margin-bottom: 10px;
}

.mode-card p {
    font-size: 14px;
    color: var(--muted);
    line-height: 1.6;
}

/* ── CTA ── */
.cta {
    padding: 40px 0 clamp(80px, 10vw, 120px);
}

.cta-card {
    position: relative;
    text-align: center;
    padding: clamp(56px, 8vw, 88px) clamp(32px, 6vw, 64px);
    border-radius: 28px;
    background: linear-gradient(160deg, rgba(34, 211, 238, 0.08) 0%, rgba(167, 139, 250, 0.06) 50%, rgba(244, 114, 182, 0.06) 100%);
    border: 1px solid rgba(34, 211, 238, 0.2);
    overflow: hidden;
}

.cta-rays {
    position: absolute;
    inset: -50%;
    background: conic-gradient(from 0deg at 50% 50%, transparent, rgba(34, 211, 238, 0.06), transparent, rgba(244, 114, 182, 0.06), transparent);
    animation: ctaSpin 20s linear infinite;
}

@keyframes ctaSpin {
    to { transform: rotate(360deg); }
}

.cta-icon {
    position: relative;
    display: block;
    margin: 0 auto 20px;
    border-radius: 18px;
    box-shadow: 0 12px 40px rgba(34, 211, 238, 0.3);
    animation: arrowBounce 2.5s var(--ease-spring) infinite;
}

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

.cta-card h2 {
    position: relative;
    font-family: var(--font-display);
    font-size: clamp(32px, 5vw, 48px);
    font-weight: 800;
    color: #fff;
    margin-bottom: 16px;
}

.cta-card p {
    position: relative;
    color: var(--muted);
    font-size: 17px;
    max-width: 440px;
    margin: 0 auto 36px;
}

.cta-card .btn-appstore { position: relative; }

/* ── Contact ── */
.contact {
    padding: clamp(80px, 10vw, 120px) 0;
    border-top: 1px solid var(--border);
}

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

.contact-card {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    text-decoration: none;
    color: inherit;
    padding: 40px 28px;
    border-radius: 20px;
    background: var(--surface);
    border: 1px solid var(--border);
    transition: transform 0.45s var(--ease-out-expo), border-color 0.45s, box-shadow 0.45s;
    overflow: hidden;
}

.contact-card::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(34, 211, 238, 0.08), rgba(244, 114, 182, 0.08));
    opacity: 0;
    transition: opacity 0.4s;
}

.contact-card:hover {
    transform: translateY(-8px);
    border-color: rgba(34, 211, 238, 0.3);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

.contact-card:hover::before { opacity: 1; }

.contact-icon {
    font-size: 32px;
    margin-bottom: 16px;
    position: relative;
    transition: transform 0.4s var(--ease-spring);
}

.contact-card:hover .contact-icon { transform: scale(1.2); }

.contact-card h3 {
    position: relative;
    font-family: var(--font-display);
    font-size: 17px;
    font-weight: 700;
    color: #fff;
    margin-bottom: 8px;
}

.contact-card p {
    position: relative;
    font-size: 14px;
    color: var(--muted);
}

.contact-arrow {
    position: relative;
    margin-top: 16px;
    font-size: 20px;
    color: var(--cyan);
    opacity: 0;
    transform: translateX(-8px);
    transition: opacity 0.3s, transform 0.3s var(--ease-out-expo);
}

.contact-card:hover .contact-arrow {
    opacity: 1;
    transform: translateX(0);
}

/* ── Footer ── */
.footer {
    padding: 48px 0;
    border-top: 1px solid var(--border);
}

.footer-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 20px;
}

.footer-logo .logo-img { width: 32px; height: 32px; }

.footer-tagline {
    font-family: var(--font-display);
    font-size: 13px;
    font-weight: 600;
    color: var(--cyan);
    letter-spacing: 0.06em;
    opacity: 0.85;
}

.footer-links {
    display: flex;
    gap: 28px;
}

.footer-links a {
    color: var(--dim);
    text-decoration: none;
    font-size: 13px;
    transition: color 0.25s;
}

.footer-links a:hover { color: var(--text); }

.footer-copy {
    font-size: 13px;
    color: var(--dim);
    width: 100%;
    text-align: center;
    margin-top: 8px;
}

/* ═══════════════════════════════════════════════════════════════
   WOW LAYER — intro, game HUD, 3D phone, clip sections
   ═══════════════════════════════════════════════════════════════ */

body.is-loading { overflow: hidden; }
body.is-loading main,
body.is-loading .marquee-wrap,
body.is-loading .nav { opacity: 0; }

body.intro-done main,
body.intro-done .marquee-wrap,
body.intro-done .nav {
    animation: siteFadeIn 1s var(--ease-out-expo) forwards;
}

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

/* Cinematic intro */
.intro {
    position: fixed;
    inset: 0;
    z-index: 500;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: #030508;
    transition: opacity 0.7s var(--ease-out-expo), visibility 0.7s;
}

.intro.is-done {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

.intro__burst {
    position: absolute;
    width: 400px;
    height: 400px;
    border-radius: 50%;
    background: conic-gradient(from 0deg, var(--cyan), var(--violet), var(--pink), var(--cyan));
    filter: blur(80px);
    opacity: 0.5;
    animation: introBurst 2s ease-in-out infinite;
}

@keyframes introBurst {
    0%, 100% { transform: scale(0.8) rotate(0deg); opacity: 0.35; }
    50% { transform: scale(1.2) rotate(180deg); opacity: 0.65; }
}

.intro__icon {
    position: relative;
    border-radius: 22px;
    box-shadow: 0 0 60px rgba(34, 211, 238, 0.5);
    animation: introIconPop 0.9s var(--ease-spring) 0.2s both;
}

@keyframes introIconPop {
    from { opacity: 0; transform: scale(0.5) rotate(-12deg); }
    to { opacity: 1; transform: scale(1) rotate(0); }
}

.intro__brand {
    position: relative;
    font-family: var(--font-display);
    font-size: clamp(36px, 8vw, 56px);
    font-weight: 800;
    margin-top: 24px;
    background: linear-gradient(120deg, #fff, var(--cyan), var(--pink));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: introTextUp 0.8s var(--ease-out-expo) 0.45s both;
}

.intro__tagline {
    position: relative;
    font-family: var(--font-display);
    font-size: 18px;
    font-weight: 600;
    color: var(--muted);
    margin-top: 8px;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    animation: introTextUp 0.8s var(--ease-out-expo) 0.6s both;
}

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

.intro__bar {
    position: relative;
    width: min(200px, 50vw);
    height: 3px;
    margin-top: 32px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 999px;
    overflow: hidden;
}

.intro__bar-fill {
    display: block;
    height: 100%;
    width: 0%;
    background: linear-gradient(90deg, var(--cyan), var(--pink));
    border-radius: inherit;
    animation: introLoad 1.4s var(--ease-out-expo) 0.3s forwards;
    box-shadow: 0 0 12px var(--cyan);
}

@keyframes introLoad {
    to { width: 100%; }
}

/* Phone 3D */
.phone-stack {
    transform-style: preserve-3d;
    transition: transform 0.12s ease-out;
    will-change: transform;
}

/* In-game HUD overlay on phone */
.game-hud {
    position: absolute;
    top: 12px;
    left: 12px;
    right: 12px;
    z-index: 4;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    pointer-events: none;
    font-family: var(--font-display);
}

.game-hud__row {
    flex: 1;
    min-width: 72px;
    padding: 6px 10px;
    border-radius: 10px;
    background: rgba(5, 8, 16, 0.75);
    border: 1px solid rgba(34, 211, 238, 0.25);
    backdrop-filter: blur(8px);
}

.game-hud__label {
    display: block;
    font-size: 8px;
    font-weight: 700;
    letter-spacing: 0.12em;
    color: var(--cyan);
    opacity: 0.9;
}

.game-hud__value {
    display: block;
    font-size: 16px;
    font-weight: 800;
    color: #fff;
    font-variant-numeric: tabular-nums;
}

.game-hud__combo {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 8px 12px;
    border-radius: 10px;
    background: linear-gradient(90deg, rgba(251, 191, 36, 0.2), rgba(244, 114, 182, 0.15));
    border: 1px solid rgba(251, 191, 36, 0.35);
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.1em;
    color: var(--gold);
}

.game-hud__combo strong {
    font-size: 18px;
    color: #fff;
    text-shadow: 0 0 12px rgba(251, 191, 36, 0.6);
    transition: transform 0.2s var(--ease-spring);
}

.game-hud__combo strong.bump {
    transform: scale(1.2);
}

/* Floating score pops near phone */
.score-pops {
    position: absolute;
    inset: 0;
    pointer-events: none;
    z-index: 8;
    overflow: visible;
}

.score-pop {
    position: absolute;
    font-family: var(--font-display);
    font-weight: 800;
    font-size: 14px;
    color: var(--gold);
    text-shadow: 0 0 20px rgba(251, 191, 36, 0.8);
    animation: scorePopRise 1.8s var(--ease-out-expo) forwards;
    white-space: nowrap;
}

.score-pop.combo {
    color: var(--pink);
    font-size: 12px;
    text-shadow: 0 0 16px rgba(244, 114, 182, 0.8);
}

@keyframes scorePopRise {
    0% { opacity: 0; transform: translateY(0) scale(0.6); }
    15% { opacity: 1; transform: translateY(-8px) scale(1.1); }
    100% { opacity: 0; transform: translateY(-80px) scale(0.9); }
}

.combo-burst {
    transition: transform 0.2s var(--ease-spring);
}

.combo-burst.punch {
    transform: scale(1.15) rotate(-2deg);
}

/* Section clip reveal */
.section-clip {
    clip-path: inset(0 0 0 0);
    transition: clip-path 1.2s var(--ease-out-expo);
}

.section-clip:not(.is-visible) {
    clip-path: inset(8% 4% 8% 4% round 24px);
}

/* Character spotlight */
.characters {
    position: relative;
}

.character-spotlight {
    position: absolute;
    width: 400px;
    height: 400px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(34, 211, 238, 0.12), transparent 65%);
    pointer-events: none;
    transform: translate(-50%, -50%);
    opacity: 0;
    transition: opacity 0.4s;
    z-index: 0;
}

.characters:hover .character-spotlight,
.characters.is-spotlight-active .character-spotlight {
    opacity: 1;
}

/* CTA spark canvas */
.cta-card {
    position: relative;
    overflow: hidden;
}

.cta-sparks {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 0;
}

.cta-card > *:not(.cta-sparks):not(.cta-rays) {
    position: relative;
    z-index: 1;
}

/* Hero brand scramble cursor */
.hero-brand.is-scrambling {
    font-variant-numeric: tabular-nums;
}

/* Enhanced feature card shine sweep */
.feature-card::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 60%;
    height: 100%;
    background: linear-gradient(105deg, transparent, rgba(255, 255, 255, 0.06), transparent);
    transform: skewX(-20deg);
    transition: left 0.6s;
    pointer-events: none;
}

.feature-card:hover::after {
    left: 140%;
    transition: left 0.7s var(--ease-out-expo);
}

/* ── Reduced motion ── */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }

    [data-reveal] {
        opacity: 1;
        transform: none;
    }

    .marquee { animation: none; }
    .aurora { animation: none; }
    .cursor-glow { display: none; }
    .hp { animation: none; opacity: 0.3; }
    .intro { display: none !important; }
    body.is-loading { overflow: auto; }
    body.is-loading main,
    body.is-loading .nav,
    body.is-loading .marquee-wrap { opacity: 1; }
    .section-clip:not(.is-visible) { clip-path: none; }
    .section-rail { display: none; }
    .nav-overlay__link { transform: none; opacity: 1; }
}

/* ── Responsive ── */
@media (max-width: 960px) {
    .hero-inner {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .hero-desc { margin-left: auto; margin-right: auto; }
    .hero-actions { align-items: center; }
    .hero-stats { justify-content: center; }
    .hero-stage { min-height: 460px; order: -1; }
    .float-chip--2 { left: 5%; }

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

    .feature-card--large,
    .feature-card--wide {
        grid-column: span 2;
    }

    .modes-grid { grid-template-columns: 1fr 1fr; }
    .mode-card--wide { grid-column: span 2; }
}

@media (max-width: 1024px) {
    .nav-pill { display: none; }
    .nav-cta { display: none; }
    .logo-sub { display: none; }
    .section-rail { display: none; }
    .nav-toggle { display: flex; }
    .nav-shell { padding: 8px 12px; }
}

@media (max-width: 720px) {
    .nav { padding-top: 10px; }
    .logo-copy { display: none; }
    .cursor-dot, .cursor-ring { display: none !important; }

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

    .feature-card--large,
    .feature-card--wide { grid-column: span 1; }

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

    .phone-bezel { width: 240px; height: 480px; }
    .orbit-ring--1 { width: 320px; height: 320px; }
    .orbit-ring--2 { width: 260px; height: 260px; }

    .footer-inner { flex-direction: column; text-align: center; }
    .footer-links { flex-wrap: wrap; justify-content: center; }

    .character-carousel {
        flex-direction: column;
        min-height: auto;
        gap: 16px;
    }

    .character-card {
        width: min(280px, 100%);
        opacity: 0;
        transform: scale(0.95);
        display: none;
    }

    .character-card.is-active {
        display: block;
        opacity: 1;
        transform: scale(1);
    }

    .modes-grid { grid-template-columns: 1fr; }
    .mode-card--wide { grid-column: span 1; }

    .orbit-char { width: 44px; height: 44px; }
    .orbit-char.oc2 { width: 48px; height: 48px; }
}
