/* Nova Drop — Landing Page
   Design system extracted from the game (lib/core/theme.dart):
   - Background:  #0D0B1F (deep space)
   - Surface:     #181432
   - Accent:      #8C6BFF (nebula violet)
   - Gold:        #FFD75E (supernova / stars)
   - Danger:      #FF3B30
   - Face ink:    #1A1A2E
   - Type: Orbitron (display, matches the trailer title cards) + Manrope (body)
*/

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

:root {
    --bg: #0D0B1F;
    --bg-2: #120F2A;
    --surface: #181432;
    --surface-2: #1F1A3D;
    --accent: #8C6BFF;
    --accent-bright: #A88BFF;
    --accent-glow: rgba(140, 107, 255, 0.30);
    --gold: #FFD75E;
    --gold-glow: rgba(255, 215, 94, 0.25);
    --danger: #FF3B30;
    --text: #E8E6F5;
    --text-dim: #9A93C2;
    --line: #2A2350;
    --font-display: 'Orbitron', system-ui, sans-serif;
    --font-body: 'Manrope', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

html { scroll-behavior: smooth; }

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

/* Starfield canvas behind everything */
#stars {
    position: fixed;
    inset: 0;
    z-index: 0;
    pointer-events: none;
}

/* Soft nebula glows fixed to the viewport */
body::before {
    content: '';
    position: fixed;
    inset: 0;
    z-index: 0;
    pointer-events: none;
    background:
        radial-gradient(60% 50% at 20% 12%, rgba(140,107,255,0.16), transparent 70%),
        radial-gradient(50% 45% at 85% 30%, rgba(255,215,94,0.07), transparent 70%),
        radial-gradient(70% 60% at 50% 110%, rgba(140,107,255,0.12), transparent 70%);
}

.container {
    max-width: 1120px;
    margin: 0 auto;
    padding: 0 24px;
    position: relative;
    z-index: 1;
}

/* Nav */
.nav {
    position: fixed;
    top: 0; left: 0; right: 0;
    z-index: 1000;
    background: rgba(13, 11, 31, 0.72);
    backdrop-filter: blur(14px);
    border-bottom: 1px solid var(--line);
}
.nav-inner {
    max-width: 1120px;
    margin: 0 auto;
    padding: 0 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 64px;
}
.nav-logo {
    display: flex;
    align-items: center;
    gap: 11px;
    text-decoration: none;
    color: var(--text);
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 1rem;
    letter-spacing: 3px;
}
.nav-icon { width: 32px; height: 32px; border-radius: 9px; box-shadow: 0 0 18px var(--accent-glow); }
.nav-links { display: flex; align-items: center; gap: 26px; }
.nav-links a {
    color: var(--text-dim);
    text-decoration: none;
    font-size: 0.86rem;
    font-weight: 600;
    letter-spacing: 0.4px;
    transition: color 0.2s;
}
.nav-links a:hover { color: var(--text); }
.nav-cta {
    color: #15102E !important;
    background: linear-gradient(135deg, var(--accent), var(--accent-bright));
    padding: 8px 18px;
    border-radius: 999px;
    font-weight: 700 !important;
    box-shadow: 0 0 20px var(--accent-glow);
}
.nav-cta:hover { filter: brightness(1.08); }

/* Hero */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding: 120px 24px 70px;
}
.hero-grid {
    max-width: 1120px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1.05fr 0.95fr;
    gap: 48px;
    align-items: center;
    position: relative;
    z-index: 1;
}
.hero-badge {
    display: inline-block;
    font-family: var(--font-display);
    font-size: 0.66rem;
    letter-spacing: 3px;
    color: var(--gold);
    border: 1px solid rgba(255,215,94,0.35);
    border-radius: 999px;
    padding: 6px 16px;
    margin-bottom: 22px;
}
.hero-title {
    font-family: var(--font-display);
    font-weight: 800;
    font-size: clamp(2.6rem, 6.5vw, 4.6rem);
    line-height: 1.02;
    letter-spacing: 1px;
    margin-bottom: 18px;
    background: linear-gradient(135deg, #fff 0%, var(--accent-bright) 55%, var(--gold) 130%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    text-shadow: 0 0 60px var(--accent-glow);
}
.hero-subtitle {
    font-size: 1.25rem;
    color: var(--text);
    font-weight: 600;
    margin-bottom: 14px;
}
.hero-tagline {
    font-size: 0.98rem;
    color: var(--text-dim);
    margin-bottom: 34px;
    max-width: 30em;
}
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; margin-bottom: 26px; }
.hero-meta {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
    font-size: 0.8rem;
    color: var(--text-dim);
}
.hero-meta span { display: inline-flex; align-items: center; gap: 7px; }
.hero-meta .dot { color: var(--accent); }

/* Hero phone */
.hero-visual { display: flex; justify-content: center; position: relative; }
.phone {
    position: relative;
    width: min(300px, 78vw);
    aspect-ratio: 1206 / 2622;
    border-radius: 34px;
    padding: 9px;
    background: linear-gradient(160deg, #2A2350, #100D26);
    border: 1px solid var(--line);
    box-shadow: 0 30px 80px rgba(0,0,0,0.55), 0 0 80px var(--accent-glow);
}
.phone img {
    width: 100%; height: 100%;
    object-fit: cover;
    border-radius: 26px;
    display: block;
}
.phone::after {
    content: '';
    position: absolute;
    top: 16px; left: 50%; transform: translateX(-50%);
    width: 96px; height: 22px;
    background: #0b0920;
    border-radius: 0 0 14px 14px;
}
.hero-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(2px);
    opacity: 0.85;
    animation: float 7s ease-in-out infinite;
}
.hero-orb.a { width: 56px; height: 56px; top: 4%; right: 6%;
    background: radial-gradient(circle at 35% 30%, #fff, var(--accent) 60%, #5b3fd6); }
.hero-orb.b { width: 38px; height: 38px; bottom: 12%; left: 2%;
    background: radial-gradient(circle at 35% 30%, #fff, var(--gold) 55%, #c79a1f); animation-delay: 1.5s; }
@keyframes float { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-16px); } }

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    padding: 13px 26px;
    font-family: var(--font-body);
    font-size: 0.92rem;
    font-weight: 700;
    border-radius: 999px;
    text-decoration: none;
    border: none;
    cursor: pointer;
    transition: all 0.2s;
}
.btn-primary {
    background: linear-gradient(135deg, var(--accent), var(--accent-bright));
    color: #15102E;
    box-shadow: 0 0 26px var(--accent-glow);
}
.btn-primary:hover { filter: brightness(1.08); transform: translateY(-2px); }
.btn-secondary {
    background: transparent;
    color: var(--text);
    border: 1px solid var(--line);
}
.btn-secondary:hover { border-color: var(--accent); box-shadow: 0 0 16px var(--accent-glow); }

/* Sections */
.section { padding: 96px 0; position: relative; z-index: 1; }
.section-dark { background: linear-gradient(180deg, transparent, var(--bg-2) 12%, var(--bg-2) 88%, transparent); }
.section-header { text-align: center; margin-bottom: 56px; }
.section-label {
    font-family: var(--font-display);
    font-size: 0.66rem;
    letter-spacing: 3px;
    color: var(--accent);
    margin-bottom: 14px;
}
.section-header h2 {
    font-family: var(--font-display);
    font-weight: 700;
    font-size: clamp(1.7rem, 3.6vw, 2.3rem);
    letter-spacing: 1px;
}
.section-sub { margin-top: 16px; font-size: 0.96rem; color: var(--text-dim); max-width: 40em; margin-inline: auto; }

/* About */
.about-grid { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 56px; align-items: center; }
.about-text p { margin-bottom: 16px; color: var(--text); }
.about-text strong { color: var(--accent-bright); }
.about-stats { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.stat {
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: 16px;
    padding: 26px 20px;
    text-align: center;
}
.stat-number {
    font-family: var(--font-display);
    font-weight: 800;
    font-size: 2.3rem;
    color: var(--gold);
    text-shadow: 0 0 22px var(--gold-glow);
}
.stat-label { font-size: 0.74rem; color: var(--text-dim); letter-spacing: 1.5px; margin-top: 6px; text-transform: uppercase; }

/* Features */
.features-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.feature {
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: 18px;
    padding: 30px 26px;
    transition: transform 0.3s, border-color 0.3s;
}
.feature:hover { transform: translateY(-4px); border-color: var(--accent); }
.feature-icon { font-size: 1.9rem; margin-bottom: 14px; display: block; }
.feature h3 { font-family: var(--font-display); font-weight: 600; font-size: 1.02rem; letter-spacing: 0.5px; margin-bottom: 10px; }
.feature p { font-size: 0.9rem; color: var(--text-dim); }

/* Game modes */
.modes-showcase { display: flex; justify-content: center; margin-bottom: 40px; }
.modes-showcase img {
    width: min(270px, 70vw);
    border-radius: 26px;
    border: 1px solid var(--line);
    box-shadow: 0 22px 60px rgba(0,0,0,0.5), 0 0 60px var(--accent-glow);
    display: block;
}
.modes-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.mode-card {
    background: linear-gradient(165deg, var(--surface-2), var(--surface));
    border: 1px solid var(--line);
    border-radius: 20px;
    padding: 32px 28px;
    transition: transform 0.3s, border-color 0.3s;
}
.mode-card:hover { transform: translateY(-4px); border-color: var(--accent); }
.mode-eyebrow { font-family: var(--font-display); font-size: 0.64rem; letter-spacing: 2px; color: var(--gold); margin-bottom: 10px; }
.mode-card h3 { font-family: var(--font-display); font-weight: 700; font-size: 1.25rem; letter-spacing: 1px; margin-bottom: 12px; }
.mode-card > p { color: var(--text-dim); font-size: 0.92rem; margin-bottom: 16px; }
.mode-card ul { list-style: none; display: flex; flex-direction: column; gap: 9px; }
.mode-card li { font-size: 0.86rem; color: var(--text); display: flex; gap: 9px; align-items: flex-start; }
.mode-card li::before { content: '✦'; color: var(--accent); flex-shrink: 0; }

/* Mystery powers teaser */
.powers-box { max-width: 760px; margin: 0 auto; text-align: center; }
.powers-locks { display: flex; justify-content: center; gap: 14px; flex-wrap: wrap; margin-top: 28px; }
.lock {
    width: 96px;
    padding: 20px 8px;
    background: var(--surface);
    border: 1px dashed var(--line);
    border-radius: 16px;
    display: flex; flex-direction: column; align-items: center; gap: 10px;
    transition: border-color 0.3s, transform 0.3s;
}
.lock:hover { border-color: var(--accent); transform: translateY(-3px); }
.lock .ic { font-size: 1.5rem; opacity: 0.6; }
.lock .lv { font-family: var(--font-display); font-size: 0.7rem; letter-spacing: 1px; color: var(--text-dim); }

/* Gallery (portrait shots) */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 14px;
}
.gallery-item {
    border-radius: 16px;
    overflow: hidden;
    border: 1px solid var(--line);
    aspect-ratio: 1206 / 2622;
    transition: transform 0.3s, border-color 0.3s;
}
.gallery-item:hover { transform: translateY(-5px) scale(1.02); border-color: var(--accent); }
.gallery-item img { width: 100%; height: 100%; object-fit: cover; display: block; }

/* Clip */
.clip-wrap {
    max-width: 320px;
    margin: 0 auto;
    border-radius: 28px;
    overflow: hidden;
    border: 1px solid var(--line);
    box-shadow: 0 24px 70px rgba(0,0,0,0.5), 0 0 70px var(--accent-glow);
}
.clip-wrap video { width: 100%; display: block; background: #000; }

/* Download CTA */
.download-box {
    max-width: 720px;
    margin: 0 auto;
    text-align: center;
    background: linear-gradient(165deg, var(--surface-2), var(--surface));
    border: 1px solid var(--line);
    border-radius: 26px;
    padding: 56px 40px;
    box-shadow: 0 0 80px var(--accent-glow);
}
.download-box .dl-icon { width: 84px; height: 84px; border-radius: 22px; margin-bottom: 20px; box-shadow: 0 0 30px var(--accent-glow); }
.download-box h2 { font-family: var(--font-display); font-weight: 700; font-size: clamp(1.5rem, 3.4vw, 2.1rem); margin-bottom: 12px; }
.download-box p { color: var(--text-dim); margin-bottom: 32px; }

.store-grid { display: flex; flex-wrap: wrap; justify-content: center; gap: 16px; }
.store-btn {
    display: inline-flex;
    align-items: center;
    gap: 13px;
    min-width: 220px;
    padding: 13px 22px;
    background: var(--bg);
    border: 1px solid var(--line);
    border-radius: 14px;
    color: var(--text);
    text-decoration: none;
    transition: all 0.2s;
}
.store-btn:hover { border-color: var(--accent); box-shadow: 0 0 18px var(--accent-glow); transform: translateY(-2px); }
.store-icon { width: 30px; height: 30px; flex-shrink: 0; color: var(--accent-bright); }
.store-text { display: flex; flex-direction: column; line-height: 1.25; text-align: left; }
.store-top { font-size: 0.6rem; letter-spacing: 1.5px; text-transform: uppercase; color: var(--text-dim); }
.store-name { font-family: var(--font-display); font-weight: 700; font-size: 1.02rem; letter-spacing: 0.5px; }

/* Footer */
.footer {
    background: var(--bg-2);
    border-top: 1px solid var(--line);
    padding: 48px 0 28px;
    position: relative;
    z-index: 1;
}
.footer-grid { display: flex; justify-content: space-between; gap: 32px; flex-wrap: wrap; margin-bottom: 32px; }
.footer-brand { display: flex; flex-direction: column; gap: 10px; max-width: 280px; }
.footer-brand .fb-top { display: flex; align-items: center; gap: 10px; }
.footer-brand img { width: 34px; height: 34px; border-radius: 9px; }
.footer-brand .fb-name { font-family: var(--font-display); font-weight: 700; letter-spacing: 2px; font-size: 0.92rem; }
.footer-tagline { font-size: 0.82rem; color: var(--text-dim); }
.footer-col { display: flex; flex-direction: column; gap: 9px; }
.footer-col h4 { font-size: 0.68rem; letter-spacing: 1.5px; text-transform: uppercase; color: var(--accent); margin-bottom: 4px; }
.footer-col a { font-size: 0.84rem; color: var(--text-dim); text-decoration: none; transition: color 0.2s; }
.footer-col a:hover { color: var(--text); }
.footer-bottom {
    display: flex; justify-content: space-between; align-items: center; gap: 12px;
    padding-top: 22px; border-top: 1px solid var(--line);
    font-size: 0.76rem; color: var(--text-dim); flex-wrap: wrap;
}

/* Reveal on scroll */
.reveal { opacity: 0; transform: translateY(22px); transition: opacity 0.6s ease, transform 0.6s ease; }
.reveal.in { opacity: 1; transform: none; }

/* Responsive */
@media (max-width: 900px) {
    .gallery-grid { grid-template-columns: repeat(3, 1fr); }
    .features-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 760px) {
    .nav-links a:not(.nav-cta) { display: none; }
    .hero-grid { grid-template-columns: 1fr; text-align: center; }
    .hero-tagline { margin-inline: auto; }
    .hero-actions, .hero-meta { justify-content: center; }
    .hero-visual { order: -1; }
    .modes-grid { grid-template-columns: 1fr; }
    .about-grid { grid-template-columns: 1fr; gap: 36px; }
    .features-grid { grid-template-columns: 1fr; }
    .gallery-grid { grid-template-columns: repeat(2, 1fr); }
    .section { padding: 64px 0; }
    .footer-grid { flex-direction: column; }
}
