/* === Variables === */
:root {
    --bg: #12112A;
    --bg-secondary: #181738;
    --bg-gradient-start: #100F28;
    --bg-gradient-mid: #1C1B3A;
    --bg-gradient-end: #161540;
    --card: rgba(30, 28, 65, 0.7);
    --card-border: rgba(255, 255, 255, 0.08);
    --card-hover: rgba(40, 38, 80, 0.8);
    --accent: #D4AF37;
    --accent-light: rgba(212, 175, 55, 0.15);
    --accent-secondary: #E8C75A;
    --accent-secondary-light: rgba(232, 199, 90, 0.15);
    --teal: #C9A84C;
    --teal-light: rgba(201, 168, 76, 0.15);
    --text: #ffffff;
    --text-muted: rgba(255, 255, 255, 0.6);
    --text-tertiary: rgba(255, 255, 255, 0.35);
    --radius: 16px;
    --radius-sm: 10px;
    --shadow: 0 2px 12px rgba(0, 0, 0, 0.2);
    --shadow-lg: 0 8px 32px rgba(0, 0, 0, 0.3);
    --glass: rgba(255, 255, 255, 0.05);
    --glass-border: rgba(255, 255, 255, 0.1);
}

/* === Reset === */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; overflow-x: clip; }
body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    background: var(--bg);
    color: var(--text);
    line-height: 1.6;
    overflow-x: clip;
}
a { text-decoration: none; color: inherit; }
img { max-width: 100%; display: block; }
button { cursor: pointer; border: none; background: none; font: inherit; }
ul { list-style: none; }

/* === Utilities === */
.container { max-width: 1120px; margin: 0 auto; padding: 0 24px; }
.text-accent { color: var(--accent); }

/* === Nav === */
.navbar {
    position: fixed; top: 0; left: 0; right: 0; z-index: 100;
    background: rgba(18, 17, 42, 0.85);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--card-border);
    transition: background 0.3s;
}
.navbar.scrolled { background: rgba(18, 17, 42, 0.95); }
.nav-container {
    max-width: 1120px; margin: 0 auto; padding: 0 24px;
    display: flex; align-items: center; justify-content: space-between;
    height: 64px;
}
.nav-back {
    display: flex; align-items: center; justify-content: center;
    width: 36px; height: 36px; border-radius: 10px;
    color: var(--text-muted); transition: all 0.2s;
    margin-right: 4px;
}
.nav-back:hover { background: var(--accent-light); color: var(--accent); }
.nav-logo { display: flex; align-items: center; gap: 10px; font-weight: 700; font-size: 1.15rem; }
.nav-icon { width: 36px; height: 36px; border-radius: 8px; box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3); }
.logo-text { color: var(--text); }
.nav-links { display: flex; gap: 32px; }
.nav-links a { font-size: 0.9rem; font-weight: 500; color: var(--text-muted); transition: color 0.2s; }
.nav-links a:hover { color: var(--text); }
.nav-cta {
    font-size: 0.85rem; font-weight: 600;
    padding: 8px 20px; border-radius: 999px;
    background: var(--accent); color: #fff;
    transition: transform 0.2s, box-shadow 0.2s;
}
.nav-cta:hover { transform: translateY(-1px); box-shadow: 0 4px 12px rgba(212, 175, 55, 0.35); }

/* Mobile toggle */
.mobile-toggle { display: none; flex-direction: column; gap: 5px; padding: 4px; }
.mobile-toggle span { width: 22px; height: 2px; background: var(--text); border-radius: 2px; transition: 0.3s; }

@media (max-width: 768px) {
    .nav-links, .nav-cta { display: none; }
    .mobile-toggle { display: flex; }
    .nav-links.open {
        display: flex; flex-direction: column; gap: 0;
        position: absolute; top: 64px; left: 0; right: 0;
        background: var(--bg); border-bottom: 1px solid var(--card-border);
        padding: 16px 24px;
    }
    .nav-links.open a { padding: 12px 0; font-size: 1rem; }
}

/* === Hero === */
.hero {
    position: relative; padding: 140px 0 80px; overflow: hidden;
    background: linear-gradient(170deg, var(--bg-gradient-start) 0%, var(--bg-gradient-mid) 40%, var(--bg-gradient-end) 100%);
}
.hero-bg-shapes { position: absolute; inset: 0; pointer-events: none; overflow: hidden; }
.shape { position: absolute; border-radius: 50%; filter: blur(80px); }
.shape-1 { width: 500px; height: 500px; background: var(--accent); opacity: 0.06; top: -150px; right: -100px; }
.shape-2 { width: 300px; height: 300px; background: var(--accent-secondary); opacity: 0.06; bottom: -80px; left: -60px; }
.shape-3 { width: 200px; height: 200px; background: var(--teal); opacity: 0.04; top: 40%; left: 30%; }

.hero-content { display: flex; align-items: center; gap: 60px; position: relative; }
.hero-text { flex: 1; }
.hero-badge {
    display: inline-block; font-size: 0.78rem; font-weight: 600; text-transform: uppercase;
    letter-spacing: 0.08em; padding: 5px 14px; border-radius: 999px;
    background: var(--accent-light); color: var(--accent); margin-bottom: 20px;
}
.hero h1 { font-size: clamp(2.4rem, 5vw, 3.6rem); font-weight: 800; line-height: 1.12; margin-bottom: 20px; }
.hero-subtitle { font-size: 1.1rem; color: var(--text-muted); max-width: 480px; margin-bottom: 32px; line-height: 1.65; }
.hero-stats { display: flex; gap: 32px; align-items: flex-end; }
.stat { display: flex; flex-direction: column; align-items: center; justify-content: flex-end; }
.stat-number { font-size: 1.8rem; font-weight: 800; color: var(--accent); display: flex; align-items: center; }
.stat-number svg { color: var(--accent); }
.stat-label { font-size: 0.8rem; font-weight: 500; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.05em; }

.hero-visual { flex-shrink: 0; display: flex; align-items: center; justify-content: center; }
.hero-app-icon {
    width: 280px; height: 280px; border-radius: 62px;
    box-shadow: 0 20px 60px rgba(212, 175, 55, 0.2), 0 8px 24px rgba(28, 27, 58, 0.4);
}

@media (max-width: 900px) {
    .hero-content { flex-direction: column; text-align: center; }
    .hero-subtitle { margin-left: auto; margin-right: auto; }
    .hero-stats { justify-content: center; flex-wrap: wrap; gap: 24px; }
    .hero-app-icon { width: 200px; height: 200px; border-radius: 44px; }
}

/* === Section Headers === */
.section-header { text-align: center; margin-bottom: 48px; }
.section-header.light h2 { color: var(--text); }
.section-tag {
    display: inline-block; font-size: 0.78rem; font-weight: 600; text-transform: uppercase;
    letter-spacing: 0.08em; padding: 5px 14px; border-radius: 999px;
    background: var(--accent-light); color: var(--accent); margin-bottom: 12px;
}
.section-header h2 { font-size: clamp(1.6rem, 3vw, 2.2rem); font-weight: 800; }

/* === Countdown === */
.countdown { padding: 96px 0; }
.countdown-sub {
    font-size: 0.95rem; color: var(--text-muted);
    margin-top: 8px;
}
.countdown-grid {
    display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px;
    max-width: 640px; margin: 0 auto;
}
.countdown-card {
    background: var(--card);
    border: 1px solid var(--card-border);
    border-radius: var(--radius); padding: 32px 16px;
    text-align: center;
    transition: transform 0.3s, background 0.3s;
}
.countdown-card:hover { transform: translateY(-4px); background: var(--card-hover); }
.countdown-number {
    display: block; font-size: clamp(2.4rem, 5vw, 3.2rem); font-weight: 800;
    color: var(--accent);
    line-height: 1.2; margin-bottom: 8px;
}
.countdown-label {
    font-size: 0.82rem; font-weight: 600; text-transform: uppercase;
    letter-spacing: 0.08em; color: var(--text-tertiary);
}
.countdown-live {
    text-align: center; margin-top: 40px;
    font-size: clamp(1.4rem, 3vw, 2rem); font-weight: 800;
    color: var(--accent);
}
@media (max-width: 560px) {
    .countdown-grid { grid-template-columns: repeat(2, 1fr); gap: 16px; }
}

/* === Features === */
.features { padding: 96px 0; background: var(--bg-secondary); }
.features-grid {
    display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px;
}
.feature-card {
    background: var(--card); border-radius: var(--radius); padding: 32px;
    border: 1px solid var(--card-border);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    transition: transform 0.3s, box-shadow 0.3s, background 0.3s;
}
.feature-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); background: var(--card-hover); }
.feature-icon {
    width: 52px; height: 52px; border-radius: 14px;
    display: flex; align-items: center; justify-content: center;
    margin-bottom: 20px;
}
.feature-icon.accent { background: var(--accent-light); color: var(--accent); }
.feature-icon.gold { background: var(--accent-secondary-light); color: var(--accent-secondary); }
.feature-icon.teal { background: var(--teal-light); color: var(--teal); }
.feature-card h3 { font-size: 1.1rem; font-weight: 700; margin-bottom: 8px; }
.feature-card p { font-size: 0.9rem; color: var(--text-muted); line-height: 1.55; }

@media (max-width: 900px) { .features-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) {
    .features-grid { grid-template-columns: 1fr; }
    .hero-stats { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
}

/* === Screenshots === */
.screenshots { padding: 96px 0; }
.screenshots-wrapper {
    display: flex; align-items: center; gap: 16px;
    max-width: 1200px; margin: 0 auto; padding: 0 16px;
}
.screenshots-scroll {
    flex: 1; min-width: 0;
    display: flex; gap: 20px; overflow-x: auto;
    padding: 8px 0 20px;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
}
.screenshots-scroll::-webkit-scrollbar { display: none; }
.screenshot-item {
    flex-shrink: 0;
    width: 260px;
    scroll-snap-align: start;
}
.screenshot-item img {
    width: 100%; border-radius: 20px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
    transition: transform 0.3s ease;
}
.screenshot-item img:hover { transform: scale(1.03); }
.screenshot-caption {
    text-align: center; margin-top: 12px;
    font-size: 0.82rem; font-weight: 500; color: var(--text-muted);
}
.scroll-btn {
    flex-shrink: 0;
    width: 48px; height: 48px; border-radius: 50%;
    background: var(--card); border: 1px solid var(--card-border);
    color: var(--text-muted); display: flex; align-items: center; justify-content: center;
    cursor: pointer; transition: all 0.2s;
}
.scroll-btn:hover { background: var(--accent); color: #fff; border-color: var(--accent); }
@media (max-width: 768px) {
    .scroll-btn { width: 36px; height: 36px; }
    .screenshots-wrapper { gap: 8px; padding: 0 8px; }
}
@media (max-width: 560px) {
    .screenshot-item { width: 180px; }
}

/* === How It Works === */
.how-it-works {
    padding: 96px 0;
    background: linear-gradient(135deg, var(--bg-gradient-mid) 0%, #1A1040 100%);
}
.steps-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.step-card {
    background: var(--glass); border-radius: var(--radius); padding: 36px;
    border: 1px solid var(--glass-border);
    text-align: center;
    transition: transform 0.3s, background 0.3s;
}
.step-card:hover { transform: translateY(-4px); background: rgba(255, 255, 255, 0.08); }
.step-number {
    width: 48px; height: 48px; border-radius: 14px;
    background: linear-gradient(135deg, var(--accent), var(--accent-secondary));
    color: #fff; font-weight: 800; font-size: 1.2rem;
    display: flex; align-items: center; justify-content: center;
    margin: 0 auto 20px;
}
.step-card h3 { font-size: 1.1rem; font-weight: 700; margin-bottom: 8px; }
.step-card p { font-size: 0.9rem; color: var(--text-muted); line-height: 1.55; }

@media (max-width: 900px) { .steps-grid { grid-template-columns: 1fr; max-width: 480px; margin: 0 auto; } }

/* === Our Story === */
.our-story { padding: 96px 0; background: var(--bg-secondary); }
.story-content {
    max-width: 720px; margin: 0 auto;
    display: flex; flex-direction: column; gap: 24px;
}
.story-block {
    background: var(--card); border-radius: var(--radius); padding: 32px;
    border: 1px solid var(--card-border);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
}
.story-block h4 { font-size: 1.05rem; font-weight: 700; margin-bottom: 12px; color: var(--accent); }
.story-block p { font-size: 0.92rem; color: var(--text-muted); line-height: 1.75; }
.story-block p + p { margin-top: 12px; }
.story-block strong { color: var(--text); font-weight: 600; }
.story-block em { color: var(--accent-secondary); font-style: italic; }

/* === CTA === */
.cta { padding: 80px 0 96px; }
.cta-card {
    text-align: center; padding: 64px 40px; border-radius: 24px;
    background: linear-gradient(135deg, #D4AF37 0%, #8B6914 100%);
    color: #fff;
    display: flex; flex-direction: column; align-items: center;
}
.cta-icon {
    width: 88px; height: 88px; border-radius: 22px;
    margin: 0 auto 24px;
    box-shadow: 0 8px 28px rgba(0, 0, 0, 0.3);
}
.cta-card h2 { font-size: clamp(1.6rem, 3vw, 2.2rem); font-weight: 800; margin-bottom: 8px; }
.cta-card p { font-size: 1.05rem; opacity: 0.9; margin-bottom: 32px; }
.cta-badge {
    display: inline-flex; align-items: center; gap: 10px;
    padding: 12px 24px; border-radius: 999px;
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    font-size: 0.9rem; font-weight: 500;
}

/* === Footer === */
.footer { padding: 32px 0; border-top: 1px solid var(--card-border); }
.footer-inner { display: flex; align-items: center; justify-content: space-between; }
.footer-brand { display: flex; align-items: center; gap: 10px; font-weight: 700; }
.footer-icon { width: 32px; height: 32px; border-radius: 8px; box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2); }
.footer-copy { font-size: 0.82rem; color: var(--text-muted); }

@media (max-width: 560px) {
    .footer-inner { flex-direction: column; gap: 12px; text-align: center; }
}

/* === Animations === */
[data-animate] {
    opacity: 0; transform: translateY(24px);
    transition: opacity 0.5s ease, transform 0.5s ease;
}
[data-animate].visible {
    opacity: 1; transform: translateY(0);
}
