/* ═══════════════════════════════════════════
   WIN EVERY ARGUMENT — Landing Page
   Dark slate + gold/orange accent
   ═══════════════════════════════════════════ */

:root {
    --bg-dark: #0f172a;
    --bg-deep: #1e293b;
    --bg-card: #1e293b;
    --bg-surface: #334155;
    --gold: #f59e0b;
    --gold-light: #fbbf24;
    --gold-dim: #d97706;
    --orange: #f97316;
    --text-primary: #f8fafc;
    --text-secondary: #94a3b8;
    --text-muted: #64748b;
    --accent: #f59e0b;
    --radius: 16px;
    --radius-lg: 24px;
    --shadow: 0 8px 32px rgba(0,0,0,0.3);
    --font: 'Inter', -apple-system, sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
    font-family: var(--font);
    background: var(--bg-dark);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
}

/* ── Navigation ── */
.nav {
    position: fixed; top: 0; left: 0; right: 0; z-index: 100;
    background: rgba(15, 23, 42, 0.9);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(255,255,255,0.05);
}
.nav-inner {
    max-width: 1200px; margin: 0 auto; padding: 14px 24px;
    display: flex; align-items: center; justify-content: space-between;
}
.nav-logo {
    font-size: 18px; font-weight: 900; color: var(--text-primary);
    text-decoration: none; letter-spacing: 2px;
}
.nav-logo .accent { color: var(--gold); }
.nav-links { display: flex; gap: 28px; }
.nav-links a {
    color: var(--text-secondary); text-decoration: none; font-size: 14px; font-weight: 500;
    transition: color 0.2s;
}
.nav-links a:hover { color: var(--gold); }
.nav-cta {
    background: var(--gold); color: var(--bg-dark);
    padding: 8px 18px; border-radius: 20px; font-size: 13px; font-weight: 700;
    text-decoration: none; transition: all 0.2s;
}
.nav-cta:hover { background: var(--gold-light); }

/* ── Hero ── */
.hero {
    min-height: 100vh; padding: 120px 24px 80px;
    display: flex; align-items: center; position: relative;
}
.hero-bg {
    position: absolute; inset: 0;
    background: radial-gradient(ellipse at 70% 50%, rgba(245,158,11,0.08) 0%, transparent 60%),
                radial-gradient(ellipse at 30% 80%, rgba(249,115,22,0.05) 0%, transparent 50%);
}
.hero-grid {
    max-width: 1200px; margin: 0 auto; width: 100%;
    display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center;
}
.hero-tag {
    display: inline-block;
    background: rgba(245,158,11,0.15); border: 1px solid rgba(245,158,11,0.3);
    color: var(--gold); padding: 5px 14px; border-radius: 20px;
    font-size: 11px; font-weight: 700; letter-spacing: 2px; margin-bottom: 20px;
}
.hero-content h1 {
    font-size: clamp(36px, 5vw, 56px); font-weight: 900;
    line-height: 1.1; margin-bottom: 16px;
}
.hero-content h1 .accent { color: var(--gold); }
.hero-subtitle { font-size: 17px; color: var(--text-secondary); line-height: 1.7; margin-bottom: 32px; max-width: 480px; }
.hero-cta { display: flex; gap: 14px; margin-bottom: 40px; flex-wrap: wrap; }
.hero-stats { display: flex; gap: 32px; }
.stat { display: flex; flex-direction: column; }
.stat-num { font-size: 24px; font-weight: 800; color: var(--gold); }
.stat-label { font-size: 12px; color: var(--text-muted); text-transform: uppercase; letter-spacing: 1px; }

.hero-visual { display: none; }
.hero-card {
    background: var(--bg-deep); border: 1px solid rgba(255,255,255,0.08);
    border-radius: var(--radius-lg); padding: 32px;
}
.hero-card-label { font-size: 11px; color: var(--gold); font-weight: 700; letter-spacing: 1px; margin-bottom: 12px; }
.hero-card-question { font-size: 16px; color: var(--text-primary); margin-bottom: 20px; line-height: 1.6; }
.hero-card-options { display: flex; flex-direction: column; gap: 8px; margin-bottom: 20px; }
.hero-card-options .opt {
    padding: 10px 16px; border-radius: 10px; font-size: 14px;
    background: rgba(255,255,255,0.03); border: 1px solid rgba(255,255,255,0.06);
    color: var(--text-secondary);
}
.hero-card-options .opt.correct { background: rgba(34,197,94,0.15); border-color: rgba(34,197,94,0.3); color: #4ade80; }
.hero-card-explanation { font-size: 13px; color: var(--text-muted); border-top: 1px solid rgba(255,255,255,0.06); padding-top: 16px; }

/* ── Sections ── */
.section { padding: 100px 24px; }
.section-inner { max-width: 1200px; margin: 0 auto; }
.section-tag { display: inline-block; color: var(--gold); font-size: 11px; font-weight: 700; letter-spacing: 2px; margin-bottom: 14px; }
.section-title { font-size: clamp(28px, 4vw, 42px); font-weight: 900; line-height: 1.2; margin-bottom: 14px; }
.section-title .accent { color: var(--gold); }
.section-desc { font-size: 16px; color: var(--text-secondary); max-width: 640px; line-height: 1.7; margin-bottom: 40px; }
.section-desc { margin-left: 0; }

/* ── Lessons ── */
.lessons-section { background: linear-gradient(180deg, transparent, rgba(245,158,11,0.03), transparent); }
.lesson-box { background: var(--bg-deep); border: 1px solid rgba(255,255,255,0.06); border-radius: var(--radius-lg); padding: 40px; }
.lesson-definitions { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 20px; margin-bottom: 40px; }
.def-card { background: rgba(255,255,255,0.03); border: 1px solid rgba(255,255,255,0.06); border-radius: var(--radius); padding: 24px; text-align: center; }
.def-icon { font-size: 32px; margin-bottom: 12px; }
.def-card h3 { font-size: 16px; font-weight: 700; margin-bottom: 6px; color: var(--gold); }
.def-card p { font-size: 13px; color: var(--text-secondary); }

.lesson-examples h3 { font-size: 18px; font-weight: 700; margin-bottom: 16px; }
.example-card {
    background: rgba(255,255,255,0.02); border: 1px solid rgba(255,255,255,0.05);
    border-radius: var(--radius); padding: 20px; margin-bottom: 12px;
}
.example-label { font-size: 12px; font-weight: 700; color: var(--gold); margin-bottom: 8px; }
.example-label.unsound { color: #f97316; }
.example-label.invalid { color: #ef4444; }
.example-card p { font-size: 14px; color: var(--text-secondary); line-height: 1.7; }

/* ── Practice Games ── */
.practice-section { background: linear-gradient(180deg, transparent, rgba(245,158,11,0.04), transparent); }
.game-menu { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 16px; }
.game-card {
    background: var(--bg-card); border: 1px solid rgba(255,255,255,0.06);
    border-radius: var(--radius); padding: 28px; cursor: pointer;
    transition: all 0.3s; position: relative;
}
.game-card:hover { border-color: rgba(245,158,11,0.4); transform: translateY(-4px); box-shadow: var(--shadow); }
.game-card-icon { font-size: 32px; margin-bottom: 12px; }
.game-card h3 { font-size: 16px; font-weight: 700; margin-bottom: 6px; }
.game-card p { font-size: 13px; color: var(--text-secondary); margin-bottom: 12px; }
.game-count { font-size: 11px; color: var(--gold); font-weight: 600; }

.game-area { background: var(--bg-deep); border: 1px solid rgba(255,255,255,0.06); border-radius: var(--radius-lg); padding: 32px; }
.game-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 16px; }
.btn-back { background: none; border: none; color: var(--text-secondary); cursor: pointer; font-size: 14px; }
.btn-back:hover { color: var(--gold); }
.game-score { font-size: 14px; font-weight: 600; color: var(--gold); }

.game-progress { width: 100%; height: 6px; background: rgba(255,255,255,0.06); border-radius: 3px; margin-bottom: 24px; }
#progress-bar { height: 100%; background: var(--gold); border-radius: 3px; width: 0%; transition: width 0.3s; }

.question-prompt {
    font-size: 18px; line-height: 1.7; color: var(--text-primary);
    margin-bottom: 24px; white-space: pre-line;
}

.options-area { display: flex; flex-direction: column; gap: 10px; margin-bottom: 20px; }
.option-btn {
    width: 100%; text-align: left; padding: 14px 20px;
    background: rgba(255,255,255,0.04); border: 1px solid rgba(255,255,255,0.08);
    border-radius: 12px; color: var(--text-primary); font-size: 15px;
    cursor: pointer; transition: all 0.2s;
}
.option-btn:hover:not(:disabled) { background: rgba(245,158,11,0.1); border-color: rgba(245,158,11,0.3); }
.option-btn.correct { background: rgba(34,197,94,0.15); border-color: rgba(34,197,94,0.4); color: #4ade80; }
.option-btn.incorrect { background: rgba(239,68,68,0.15); border-color: rgba(239,68,68,0.4); color: #f87171; }
.option-btn:disabled { cursor: default; }

.feedback-area { margin-top: 16px; }
#feedback-text { font-size: 15px; line-height: 1.7; padding: 16px; border-radius: 12px; margin-bottom: 16px; }
.feedback-correct { background: rgba(34,197,94,0.1); color: #4ade80; }
.feedback-incorrect { background: rgba(239,68,68,0.1); color: #f87171; }

#next-btn:disabled { opacity: 0.4; cursor: not-allowed; }

.complete-message { text-align: center; padding: 40px 0; }
.complete-message h2 { font-size: 28px; margin-bottom: 12px; }

/* ── Subscribe Popup ── */
#subscribe-popup {
    display: none; position: fixed; top: 50%; left: 50%;
    transform: translate(-50%, -50%);
    background: var(--bg-deep); border: 1px solid rgba(245,158,11,0.3);
    border-radius: var(--radius-lg); padding: 40px; max-width: 480px; width: 90%;
    z-index: 200; text-align: center;
}
#subscribe-popup h2 { font-family: var(--font); font-size: 24px; color: var(--gold); margin-bottom: 12px; }
#subscribe-popup p { color: var(--text-secondary); margin-bottom: 20px; line-height: 1.6; }
.popup-buttons { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }

/* ── Premium Lessons ── */
.lesson-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 20px; }
.lesson-card {
    background: var(--bg-card); border: 1px solid rgba(255,255,255,0.06);
    border-radius: var(--radius); padding: 28px; position: relative;
    transition: all 0.3s;
}
.lesson-card:hover { border-color: rgba(245,158,11,0.3); transform: translateY(-4px); }
.lesson-card-icon { font-size: 28px; margin-bottom: 12px; }
.lesson-card h3 { font-size: 16px; font-weight: 700; margin-bottom: 8px; }
.lesson-card p { font-size: 13px; color: var(--text-secondary); }
.locked-badge {
    display: inline-block; margin-top: 12px; padding: 4px 12px;
    background: rgba(245,158,11,0.15); color: var(--gold);
    border-radius: 12px; font-size: 11px; font-weight: 700;
}

/* ── Pricing ── */
.pricing-section { background: linear-gradient(180deg, transparent, rgba(245,158,11,0.03), transparent); }
.pricing-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 24px; }
.pricing-card {
    background: var(--bg-card); border: 1px solid rgba(255,255,255,0.06);
    border-radius: var(--radius-lg); padding: 36px; position: relative;
}
.pricing-card.featured { border-color: var(--gold); }
.popular-badge {
    position: absolute; top: -12px; left: 50%; transform: translateX(-50%);
    background: var(--gold); color: var(--bg-dark); padding: 4px 16px;
    border-radius: 12px; font-size: 11px; font-weight: 800;
}
.pricing-header { text-align: center; margin-bottom: 24px; }
.pricing-header h3 { font-size: 18px; font-weight: 700; margin-bottom: 8px; }
.price { font-size: 42px; font-weight: 900; color: var(--gold); }
.price .period { font-size: 16px; font-weight: 500; color: var(--text-muted); }
.pricing-sub { font-size: 13px; color: var(--text-muted); }
.pricing-features { list-style: none; margin-bottom: 24px; }
.pricing-features li { padding: 8px 0; font-size: 14px; color: var(--text-secondary); border-bottom: 1px solid rgba(255,255,255,0.04); }
.btn-block { width: 100%; }

/* ── FAQ ── */
.faq-grid { max-width: 800px; }
.faq-item {
    background: var(--bg-card); border: 1px solid rgba(255,255,255,0.06);
    border-radius: var(--radius); padding: 20px 24px; margin-bottom: 12px;
}
.faq-item summary { font-size: 16px; font-weight: 600; cursor: pointer; color: var(--text-primary); }
.faq-item summary:hover { color: var(--gold); }
.faq-item p { margin-top: 12px; font-size: 14px; color: var(--text-secondary); line-height: 1.7; }

/* ── Subscribe Popup ── */
#subscribe-popup {
    display: none; position: fixed; top: 50%; left: 50%;
    transform: translate(-50%, -50%);
    background: var(--bg-deep); border: 1px solid rgba(245,158,11,0.3);
    border-radius: var(--radius-lg); padding: 36px; max-width: 520px; width: 90%;
    z-index: 200; text-align: center;
}
#subscribe-popup h2 { font-size: 22px; color: var(--gold); margin-bottom: 10px; }
#subscribe-popup > p { color: var(--text-secondary); margin-bottom: 24px; font-size: 14px; line-height: 1.6; }
.share-box {
    background: rgba(245,158,11,0.08); border: 1px solid rgba(245,158,11,0.2);
    border-radius: var(--radius); padding: 20px; margin: 16px 0; text-align: center;
}
.share-box p { margin-bottom: 12px; font-size: 14px; }
.btn-share {
    background: linear-gradient(135deg, #1da1f2, #0d8bd9);
    color: white; padding: 12px 24px; border-radius: 25px;
    font-size: 15px; font-weight: 700; border: none; cursor: pointer;
    transition: all 0.2s; display: inline-block;
}
.btn-share:hover { transform: translateY(-2px); box-shadow: 0 4px 12px rgba(29,161,242,0.4); }
.share-hint { font-size: 12px; color: var(--text-muted); margin-top: 8px; }
.share-hint a { color: var(--gold); }
.subscribe-divider {
    text-align: center; margin: 16px 0; color: var(--text-muted);
    font-size: 13px; text-transform: uppercase; letter-spacing: 1px;
}
.pricing-mini-card {
    background: rgba(255,255,255,0.03); border: 1px solid rgba(255,255,255,0.06);
    border-radius: var(--radius); padding: 20px; text-align: center;
}
.pricing-mini-card strong { font-size: 24px; color: var(--gold); display: block; margin-bottom: 8px; }
.pricing-mini-card p { font-size: 12px; color: var(--text-secondary); margin-bottom: 12px; line-height: 1.5; }
.pricing-mini-card .btn { padding: 10px 16px; font-size: 13px; }

/* ── Success Banner ── */
.success-banner {
    background: linear-gradient(90deg, rgba(34,197,94,0.2), rgba(34,197,94,0.1));
    border: 1px solid rgba(34,197,94,0.3);
    color: #4ade80; padding: 16px 24px; text-align: center;
    font-size: 15px; font-weight: 600;
}
.success-banner a { color: inherit; margin-left: 12px; opacity: 0.7; }
.success-banner a:hover { opacity: 1; }

/* ── Footer ── */
.footer { border-top: 1px solid rgba(255,255,255,0.05); padding: 40px 24px; text-align: center; }
.footer-logo { font-size: 18px; font-weight: 900; color: var(--text-primary); letter-spacing: 2px; margin-bottom: 6px; }
.footer-logo .accent { color: var(--gold); }
.footer-tagline { color: var(--text-muted); font-size: 13px; margin-bottom: 8px; }
.footer-copy { color: var(--text-muted); font-size: 12px; opacity: 0.4; }

/* ── Responsive ── */
@media (max-width: 768px) {
    .nav-links { display: none; }
    .hero-grid { grid-template-columns: 1fr; gap: 32px; }
    .hero-cta { flex-direction: column; }
    .hero-cta .btn { width: 100%; }
    .hero-stats { gap: 20px; }
    .stat-num { font-size: 20px; }
    .section { padding: 60px 20px; }
    .lesson-box { padding: 24px; }
    .lesson-definitions { grid-template-columns: 1fr 1fr; }
    .game-area { padding: 20px; }
    .pricing-grid { grid-template-columns: 1fr; }
    .faq-item { padding: 16px 20px; }
}
@media (min-width: 1024px) {
    .hero-visual { display: block; }
}
