/* ============================================================
   AgentForge — Premium Landing Page
   Space Grotesk + DM Sans | Dark minimal with depth
   ============================================================ */

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

:root {
    --bg: #09090b;
    --bg-elevated: #0f0f12;
    --bg-card: #151518;
    --bg-card-hover: #1a1a1f;
    --bg-hover: #1c1c22;
    --border: #222228;
    --border-subtle: #18181c;
    --border-accent: rgba(167,139,250,0.2);
    --text: #f4f4f5;
    --text-secondary: #a1a1aa;
    --text-muted: #63636e;
    --accent: #a78bfa;
    --accent-dim: rgba(167,139,250,0.08);
    --accent-glow: rgba(167,139,250,0.15);
    --accent-hover: #c4b5fd;
    --success: #34d399;
    --success-dim: rgba(52,211,153,0.08);
    --warning: #fbbf24;
    --warning-dim: rgba(251,191,36,0.08);
    --danger: #f87171;
    --danger-dim: rgba(248,113,113,0.08);
    --font-heading: 'Space Grotesk', system-ui, sans-serif;
    --font-body: 'DM Sans', system-ui, sans-serif;
    --font-mono: 'JetBrains Mono', 'Fira Code', monospace;
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --radius-xl: 24px;
    --max-w: 1100px;
    --nav-h: 64px;
    --shadow-card: 0 1px 3px rgba(0,0,0,0.3), 0 0 0 1px rgba(255,255,255,0.03);
    --shadow-card-hover: 0 8px 24px rgba(0,0,0,0.4), 0 0 0 1px rgba(167,139,250,0.1);
}

html { scroll-behavior: smooth; scroll-padding-top: calc(var(--nav-h) + 32px); }

body {
    font-family: var(--font-body);
    background: var(--bg);
    color: var(--text-secondary);
    line-height: 1.7;
    font-size: 15px;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
}

.container { max-width: var(--max-w); margin: 0 auto; padding: 0 28px; }

/* ── Typography ── */
h1, h2, h3, h4 { font-family: var(--font-heading); color: var(--text); line-height: 1.2; letter-spacing: -0.025em; }
h1 { font-size: clamp(2.2rem, 5vw, 3.4rem); font-weight: 700; }
h2 { font-size: clamp(1.5rem, 3.2vw, 2.1rem); font-weight: 600; }
h3 { font-size: 1rem; font-weight: 600; }
p { margin-bottom: 14px; }
p:last-child { margin-bottom: 0; }
strong { color: var(--text); font-weight: 600; }
em { font-style: italic; color: var(--text); }
a { color: inherit; text-decoration: none; }

.section-header { margin-bottom: 48px; }
.section-header--center { text-align: center; }
.section-header--center h2 { margin: 0 auto; }
.section-label {
    display: inline-flex; align-items: center; gap: 6px;
    font-family: var(--font-mono); font-size: 0.68rem; font-weight: 500;
    text-transform: uppercase; letter-spacing: 0.12em;
    color: var(--accent); margin-bottom: 14px;
}
.section-label::before {
    content: ''; width: 16px; height: 1px; background: var(--accent); opacity: 0.4;
}
.section-header--center .section-label::before { display: none; }
.section-sub { color: var(--text-muted); margin-top: 10px; max-width: 480px; font-size: 0.92rem; }
.section-header--center .section-sub { margin-left: auto; margin-right: auto; }

/* ── Buttons ── */
.btn {
    display: inline-flex; align-items: center; gap: 8px;
    padding: 12px 24px; border-radius: var(--radius-md);
    font-family: var(--font-body); font-weight: 600; font-size: 0.88rem;
    cursor: pointer; border: 1.5px solid transparent;
    transition: all 0.25s cubic-bezier(0.4,0,0.2,1); white-space: nowrap;
}
.btn--primary {
    background: var(--accent); color: #09090b; border-color: var(--accent);
    box-shadow: 0 0 0 0 var(--accent-glow);
}
.btn--primary:hover {
    background: var(--accent-hover); border-color: var(--accent-hover);
    box-shadow: 0 0 20px var(--accent-glow);
    transform: translateY(-1px);
}
.btn--outline { background: transparent; color: var(--text); border-color: var(--border); }
.btn--outline:hover { border-color: var(--accent); color: var(--accent); background: var(--accent-dim); }
.btn--lg { padding: 16px 32px; font-size: 0.95rem; border-radius: var(--radius-lg); }
.btn--sm { padding: 8px 18px; font-size: 0.78rem; border-radius: var(--radius-sm); }
.btn--block { width: 100%; justify-content: center; }
.btn__price { font-weight: 700; }
.btn__strike { text-decoration: line-through; opacity: 0.35; font-weight: 400; }

/* ── Nav ── */
.nav {
    position: fixed; top: 0; left: 0; right: 0; height: var(--nav-h);
    background: rgba(9,9,11,0.8);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    border-bottom: 1px solid var(--border-subtle);
    z-index: 100;
    transition: box-shadow 0.3s;
}
.nav--scrolled { box-shadow: 0 1px 0 var(--border), 0 4px 20px rgba(0,0,0,0.3); }
.nav__inner { display: flex; align-items: center; justify-content: space-between; height: 100%; }
.nav__logo { display: flex; align-items: center; gap: 8px; font-family: var(--font-heading); font-weight: 700; font-size: 1rem; color: var(--text); }
.nav__logo svg { color: var(--accent); }
.nav__links { display: flex; gap: 28px; }
.nav__links a { font-size: 0.82rem; font-weight: 500; color: var(--text-muted); transition: color 0.2s; }
.nav__links a:hover { color: var(--text); }

/* Hamburger */
.nav__hamburger {
    display: none; flex-direction: column; gap: 5px;
    background: none; border: none; cursor: pointer;
    padding: 4px; z-index: 102;
}
.nav__hamburger span {
    display: block; width: 20px; height: 2px;
    background: var(--text-muted); border-radius: 2px;
    transition: all 0.3s;
}
.nav__hamburger.active span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
.nav__hamburger.active span:nth-child(2) { opacity: 0; }
.nav__hamburger.active span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }

/* Mobile nav panel */
.nav__mobile {
    display: none; flex-direction: column; gap: 4px;
    position: fixed; top: var(--nav-h); left: 0; right: 0;
    background: var(--bg-elevated);
    border-bottom: 1px solid var(--border);
    padding: 16px 28px 24px;
    z-index: 99;
    transform: translateY(-100%); opacity: 0;
    transition: all 0.3s cubic-bezier(0.4,0,0.2,1);
    pointer-events: none;
}
.nav__mobile.open {
    transform: translateY(0); opacity: 1;
    pointer-events: auto;
}
.nav__mobile a {
    padding: 12px 0; font-size: 0.95rem; font-weight: 500;
    color: var(--text-secondary); border-bottom: 1px solid var(--border-subtle);
}
.nav__mobile a:last-child { border-bottom: none; margin-top: 8px; }

@media (max-width: 768px) {
    .nav__links { display: none; }
    .nav__cta-desktop { display: none; }
    .nav__hamburger { display: flex; }
    .nav__mobile { display: flex; }
}

/* ── Hero ── */
.hero {
    position: relative;
    padding: calc(var(--nav-h) + 72px) 0 0;
    overflow: hidden;
}
.hero__bg { position: absolute; inset: 0; pointer-events: none; }
.hero__glow { position: absolute; border-radius: 50%; filter: blur(140px); }
.hero__glow--1 { width: 500px; height: 500px; background: var(--accent); opacity: 0.08; top: -180px; left: 50%; transform: translateX(-50%); }
.hero__glow--2 { width: 300px; height: 300px; background: #818cf8; opacity: 0.05; bottom: -80px; right: -60px; }
.hero .container { position: relative; z-index: 1; }

.hero__content { max-width: 640px; margin-bottom: 64px; }
.hero__badge {
    display: inline-flex; align-items: center; gap: 8px;
    font-size: 0.78rem; font-weight: 500; color: var(--text-muted);
    margin-bottom: 28px;
}
.hero__badge-dot {
    width: 6px; height: 6px; border-radius: 50%;
    background: var(--success); display: inline-block;
    box-shadow: 0 0 8px var(--success);
}
.hero__title { margin-bottom: 24px; }
.hero__title-muted { color: var(--text-muted); font-weight: 500; }
.hero__subtitle { font-size: 1.02rem; line-height: 1.8; margin-bottom: 36px; }
.hero__actions { display: flex; align-items: center; gap: 24px; flex-wrap: wrap; }
.hero__trust { display: flex; flex-direction: column; gap: 6px; }
.hero__trust-item {
    display: flex; align-items: center; gap: 6px;
    font-size: 0.78rem; color: var(--text-muted);
}
.hero__trust-item svg { opacity: 0.4; color: var(--success); }

.hero__proof {
    margin-top: 0;
    padding: 32px 36px;
    background: var(--bg-elevated);
    border: 1px solid var(--border);
    border-radius: var(--radius-xl);
    max-width: 600px;
    box-shadow: var(--shadow-card);
}
.hero__proof-row { display: flex; align-items: center; gap: 0; }
.hero__proof-item { flex: 1; text-align: center; }
.hero__proof-num { display: block; font-family: var(--font-heading); font-size: 1.6rem; font-weight: 700; color: var(--text); letter-spacing: -0.02em; }
.hero__proof-label { font-size: 0.68rem; color: var(--text-muted); line-height: 1.4; text-transform: uppercase; letter-spacing: 0.04em; }
.hero__proof-divider { width: 1px; height: 40px; background: var(--border); }

/* ── Logos ── */
.logos {
    padding: 40px 0;
    border-bottom: 1px solid var(--border-subtle);
}
.logos__label { text-align: center; font-size: 0.7rem; text-transform: uppercase; letter-spacing: 0.1em; color: var(--text-muted); margin-bottom: 16px; }
.logos__row { display: flex; justify-content: center; align-items: center; gap: 16px; flex-wrap: wrap; }
.logos__item { font-family: var(--font-heading); font-size: 0.92rem; font-weight: 600; color: var(--text-muted); opacity: 0.4; transition: opacity 0.2s; }
.logos__item:hover { opacity: 0.7; }
.logos__dot { color: var(--text-muted); opacity: 0.15; font-size: 1.2rem; }

/* ── Story ── */
.story {
    padding: 100px 0;
    border-bottom: 1px solid var(--border-subtle);
}
.story__grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 64px;
    align-items: start;
}
@media (max-width: 768px) { .story__grid { grid-template-columns: 1fr; gap: 32px; } }
.story__left { position: sticky; top: calc(var(--nav-h) + 32px); }
.story__heading { font-size: clamp(1.3rem, 2.5vw, 1.7rem); line-height: 1.35; }
.story__right p { font-size: 0.95rem; line-height: 1.8; }
.story__callout {
    display: flex; gap: 12px; align-items: flex-start;
    padding: 20px; margin-top: 20px;
    background: var(--accent-dim);
    border: 1px solid var(--border-accent);
    border-radius: var(--radius-md);
}
.story__callout-icon { color: var(--accent); font-size: 1.2rem; flex-shrink: 0; margin-top: 2px; }
.story__callout p { margin: 0; font-size: 0.95rem; color: var(--text); }

/* ── Solution ── */
.solution {
    padding: 100px 0;
    border-bottom: 1px solid var(--border-subtle);
}
.solution__split {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 56px;
    align-items: center;
}
@media (max-width: 768px) { .solution__split { grid-template-columns: 1fr; gap: 40px; } }
.solution__text h2 { margin-bottom: 20px; }
.solution__text p { font-size: 0.95rem; line-height: 1.8; }
.solution__highlight {
    padding: 20px; margin-top: 20px;
    background: var(--bg-card);
    border-left: 3px solid var(--accent);
    border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
    font-size: 1rem; color: var(--text);
}

/* Terminal */
.terminal {
    background: var(--bg-elevated);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-card);
}
.terminal__bar {
    display: flex; align-items: center; gap: 6px;
    padding: 12px 16px;
    background: var(--bg-card);
    border-bottom: 1px solid var(--border);
}
.terminal__dot { width: 10px; height: 10px; border-radius: 50%; background: var(--text-muted); opacity: 0.2; }
.terminal__title { margin-left: auto; font-family: var(--font-mono); font-size: 0.68rem; color: var(--text-muted); }
.terminal__body { padding: 20px; font-family: var(--font-mono); font-size: 0.78rem; min-height: 200px; line-height: 1.9; }
.terminal__line { display: flex; gap: 8px; }
.terminal__prompt { color: var(--success); font-weight: 600; }
.terminal__text { color: var(--text-secondary); }
.terminal__cursor { animation: blink 1s step-end infinite; color: var(--accent); }

/* ── Obstacle ── */
.obstacle {
    padding: 80px 0;
    border-bottom: 1px solid var(--border-subtle);
    background: var(--bg-elevated);
}
.obstacle__content { max-width: 640px; }
.obstacle__content h2 { margin-bottom: 20px; }
.obstacle__lead { font-size: 1.05rem; line-height: 1.8; margin-bottom: 28px; }
.obstacle__checks { display: flex; flex-wrap: wrap; gap: 16px; }
.obstacle__check {
    display: flex; align-items: center; gap: 8px;
    padding: 10px 16px;
    background: var(--success-dim);
    border: 1px solid rgba(52,211,153,0.12);
    border-radius: var(--radius-sm);
    font-size: 0.85rem; font-weight: 500; color: var(--text);
}
.obstacle__check svg { color: var(--success); flex-shrink: 0; }

/* ── Imagine Timeline ── */
.imagine {
    padding: 100px 0;
    border-bottom: 1px solid var(--border-subtle);
}
.imagine__timeline {
    position: relative;
    max-width: 700px;
    margin: 0 auto;
}
.imagine__line {
    position: absolute;
    left: 50%;
    top: 0; bottom: 0;
    width: 1px;
    background: linear-gradient(to bottom, transparent, var(--border) 10%, var(--border) 90%, transparent);
    transform: translateX(-50%);
}
@media (max-width: 768px) {
    .imagine__line { left: 20px; }
}

.imagine__card {
    position: relative;
    width: 45%;
    padding: 24px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    margin-bottom: 24px;
    box-shadow: var(--shadow-card);
    transition: border-color 0.2s, box-shadow 0.2s;
}
.imagine__card:hover { border-color: var(--accent); box-shadow: var(--shadow-card-hover); }
.imagine__card--left { margin-right: auto; }
.imagine__card--right { margin-left: auto; }

.imagine__dot {
    position: absolute;
    top: 28px;
    width: 10px; height: 10px;
    background: var(--accent);
    border-radius: 50%;
    box-shadow: 0 0 12px var(--accent-glow);
}
.imagine__card--left .imagine__dot { right: -30px; }
.imagine__card--right .imagine__dot { left: -30px; }

@media (max-width: 768px) {
    .imagine__card { width: calc(100% - 48px); margin-left: 48px !important; margin-right: 0 !important; }
    .imagine__card--left .imagine__dot,
    .imagine__card--right .imagine__dot { left: -36px; right: auto; }
}

.imagine__time {
    font-family: var(--font-mono); font-size: 0.68rem; font-weight: 500;
    color: var(--accent); text-transform: uppercase; letter-spacing: 0.06em;
    margin-bottom: 10px;
}
.imagine__card h3 { font-size: 0.95rem; margin-bottom: 8px; }
.imagine__card p { font-size: 0.85rem; line-height: 1.7; }

/* ── Features ── */
.features {
    padding: 100px 0;
    border-bottom: 1px solid var(--border-subtle);
}
.features__grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
}
@media (max-width: 768px) { .features__grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 480px) { .features__grid { grid-template-columns: 1fr; } }

.feature {
    padding: 28px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-card);
    transition: all 0.25s cubic-bezier(0.4,0,0.2,1);
}
.feature:hover { border-color: var(--accent); box-shadow: var(--shadow-card-hover); transform: translateY(-2px); }
.feature__icon-wrap { display: flex; align-items: center; gap: 12px; margin-bottom: 16px; }
.feature__num { font-family: var(--font-mono); font-size: 0.68rem; color: var(--text-muted); opacity: 0.4; }
.feature__icon {
    width: 36px; height: 36px;
    display: flex; align-items: center; justify-content: center;
    background: var(--accent-dim); border-radius: var(--radius-sm);
    color: var(--accent);
}
.feature h3 { font-size: 0.92rem; margin-bottom: 6px; }
.feature p { font-size: 0.82rem; line-height: 1.65; }

/* ── Curriculum ── */
.curriculum {
    padding: 100px 0;
    border-bottom: 1px solid var(--border-subtle);
}
.curriculum__grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}
@media (max-width: 768px) { .curriculum__grid { grid-template-columns: 1fr; } }
.curriculum__list { display: flex; flex-direction: column; gap: 4px; }
.curriculum__item {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    overflow: hidden;
    transition: border-color 0.2s;
}
.curriculum__item:hover { border-color: var(--text-muted); }
.curriculum__item[open] { border-color: var(--accent); }
.curriculum__item summary {
    display: flex; align-items: center; gap: 14px;
    padding: 16px 18px; cursor: pointer;
    list-style: none; user-select: none;
    transition: background 0.15s;
}
.curriculum__item summary::-webkit-details-marker { display: none; }
.curriculum__item summary::marker { display: none; content: ''; }
.curriculum__item summary:hover { background: var(--bg-hover); }
.curriculum__num { font-family: var(--font-mono); font-size: 0.68rem; color: var(--accent); font-weight: 500; min-width: 20px; }
.curriculum__name { flex: 1; font-family: var(--font-heading); font-weight: 600; font-size: 0.88rem; color: var(--text); }
.curriculum__pages { font-family: var(--font-mono); font-size: 0.62rem; color: var(--text-muted); }
.curriculum__item ul { list-style: none; padding: 0 18px 16px 52px; }
.curriculum__item li { padding: 5px 0; font-size: 0.8rem; color: var(--text-muted); position: relative; }
.curriculum__item li::before { content: ''; position: absolute; left: -14px; top: 11px; width: 3px; height: 3px; border-radius: 50%; background: var(--text-muted); opacity: 0.3; }

/* ── Included ── */
.included {
    padding: 100px 0;
    border-bottom: 1px solid var(--border-subtle);
}
.included__grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
}
@media (max-width: 768px) { .included__grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 480px) { .included__grid { grid-template-columns: 1fr; } }
.included__item {
    padding: 28px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-card);
    transition: all 0.25s;
}
.included__item:hover { border-color: var(--accent); box-shadow: var(--shadow-card-hover); transform: translateY(-2px); }
.included__icon {
    width: 36px; height: 36px;
    display: flex; align-items: center; justify-content: center;
    background: var(--accent-dim); border-radius: var(--radius-sm);
    margin-bottom: 16px; color: var(--accent);
}
.included__item h3 { font-size: 0.92rem; margin-bottom: 6px; }
.included__item p { font-size: 0.82rem; line-height: 1.65; }

/* ── Proof ── */
.proof {
    padding: 100px 0;
    border-bottom: 1px solid var(--border-subtle);
    background: var(--bg-elevated);
}
.proof__grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
}
@media (max-width: 768px) { .proof__grid { grid-template-columns: 1fr; } }
.proof__card {
    padding: 28px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-card);
    display: flex; flex-direction: column;
    transition: all 0.25s;
}
.proof__card:hover { border-color: var(--accent); box-shadow: var(--shadow-card-hover); transform: translateY(-2px); }
.proof__stars { color: var(--warning); font-size: 0.82rem; letter-spacing: 2px; margin-bottom: 14px; }
.proof__quote { flex: 1; font-size: 0.88rem; line-height: 1.75; font-style: italic; margin-bottom: 20px; }
.proof__person { display: flex; align-items: center; gap: 12px; padding-top: 16px; border-top: 1px solid var(--border); }
.proof__avatar {
    width: 34px; height: 34px; border-radius: 50%;
    background: var(--accent-dim); display: flex; align-items: center; justify-content: center;
    font-family: var(--font-heading); font-weight: 700; font-size: 0.7rem; color: var(--accent);
}
.proof__person strong { display: block; font-size: 0.82rem; }
.proof__person span { font-size: 0.72rem; color: var(--text-muted); }

/* ── Comparison ── */
.comparison {
    padding: 100px 0;
    border-bottom: 1px solid var(--border-subtle);
}
.comparison__grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    max-width: 700px;
    margin: 0 auto;
}
@media (max-width: 640px) { .comparison__grid { grid-template-columns: 1fr; } }
.comparison__col {
    padding: 28px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-card);
}
.comparison__col h3 { font-size: 0.92rem; margin-bottom: 16px; }
.comparison__col ul { list-style: none; }
.comparison__col li { padding: 8px 0; font-size: 0.82rem; line-height: 1.5; padding-left: 20px; position: relative; }
.comparison__col li::before { content: ''; position: absolute; left: 0; top: 14px; width: 6px; height: 6px; border-radius: 50%; }
.comparison__col--bad li { color: var(--text-muted); }
.comparison__col--bad li::before { background: var(--danger); opacity: 0.25; }
.comparison__col--bad { border-color: rgba(248,113,113,0.08); }
.comparison__col--good li { color: var(--text-secondary); }
.comparison__col--good li::before { background: var(--success); opacity: 0.5; }
.comparison__col--good { border-color: rgba(52,211,153,0.1); }

/* ── Bonuses ── */
.bonuses {
    padding: 100px 0;
    border-bottom: 1px solid var(--border-subtle);
}
.bonuses__grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
}
@media (max-width: 640px) { .bonuses__grid { grid-template-columns: 1fr; } }
.bonus {
    padding: 28px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-card);
    transition: all 0.25s;
}
.bonus:hover { border-color: var(--warning); box-shadow: var(--shadow-card-hover); transform: translateY(-2px); }
.bonus__value {
    display: inline-block;
    font-family: var(--font-mono); font-size: 0.62rem; font-weight: 500;
    text-transform: uppercase; letter-spacing: 0.06em;
    color: var(--warning); background: var(--warning-dim);
    padding: 3px 10px; border-radius: 100px; margin-bottom: 14px;
}
.bonus h3 { font-size: 0.92rem; margin-bottom: 6px; }
.bonus p { font-size: 0.82rem; line-height: 1.65; }

/* ── Pricing ── */
.pricing {
    padding: 100px 0;
    border-bottom: 1px solid var(--border-subtle);
}
.pricing__note {
    text-align: center;
    font-family: var(--font-mono); font-size: 0.75rem;
    color: var(--text-muted); margin-bottom: 40px;
}
.pricing__grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
    align-items: start;
}
@media (max-width: 768px) { .pricing__grid { grid-template-columns: 1fr; max-width: 380px; margin-left: auto; margin-right: auto; } }

.plan {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-xl);
    padding: 32px 26px;
    position: relative;
    display: flex; flex-direction: column;
    box-shadow: var(--shadow-card);
    transition: all 0.25s;
}
.plan:hover { border-color: var(--text-muted); box-shadow: var(--shadow-card-hover); transform: translateY(-2px); }
.plan--popular { border-color: var(--accent); box-shadow: var(--shadow-card), 0 0 0 1px var(--accent); }
.plan--popular:hover { box-shadow: var(--shadow-card-hover), 0 0 0 1px var(--accent); }
.plan__badge {
    position: absolute; top: -10px; left: 50%; transform: translateX(-50%);
    font-family: var(--font-mono); font-size: 0.6rem; font-weight: 600;
    text-transform: uppercase; letter-spacing: 0.1em;
    color: #09090b; background: var(--accent);
    padding: 4px 14px; border-radius: 100px;
}
.plan__head { margin-bottom: 24px; text-align: center; }
.plan__head h3 { font-size: 1.05rem; margin-bottom: 12px; }
.plan__price { display: flex; align-items: baseline; justify-content: center; gap: 8px; }
.plan__amount { font-family: var(--font-heading); font-size: 2.6rem; font-weight: 700; color: var(--text); letter-spacing: -0.03em; }
.plan__was { font-size: 0.95rem; text-decoration: line-through; color: var(--text-muted); }
.plan__desc { font-size: 0.78rem; color: var(--text-muted); margin-top: 8px; line-height: 1.5; }
.plan__list { list-style: none; margin-bottom: 28px; display: flex; flex-direction: column; gap: 10px; }
.plan__li { font-size: 0.82rem; padding-left: 22px; position: relative; }
.plan__li::before { content: ''; position: absolute; left: 0; top: 6px; width: 10px; height: 10px; border-radius: 50%; }
.plan__li--on { color: var(--text-secondary); }
.plan__li--on::before { background: var(--accent-dim); border: 1.5px solid var(--accent); }
.plan__li--off { color: var(--text-muted); opacity: 0.4; }
.plan__li--off::before { background: var(--bg-hover); border: 1.5px solid var(--border); }
.plan__cta { margin-top: auto; }

.pricing__guarantee {
    display: flex; align-items: center; justify-content: center; gap: 8px;
    margin-top: 32px; font-size: 0.82rem; color: var(--text-muted);
}
.pricing__guarantee svg { color: var(--success); opacity: 0.6; }

/* ── FAQ ── */
.faq {
    padding: 100px 0;
    border-bottom: 1px solid var(--border-subtle);
}
.faq__list { max-width: 640px; display: flex; flex-direction: column; gap: 4px; }
.faq__item {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    overflow: hidden;
    transition: border-color 0.2s;
}
.faq__item:hover { border-color: var(--text-muted); }
.faq__item[open] { border-color: var(--accent); }
.faq__item summary {
    padding: 16px 20px; cursor: pointer;
    font-family: var(--font-heading); font-weight: 600; font-size: 0.92rem;
    color: var(--text); list-style: none; user-select: none;
    transition: background 0.15s;
    display: flex; align-items: center; justify-content: space-between;
}
.faq__item summary::-webkit-details-marker { display: none; }
.faq__item summary::marker { display: none; content: ''; }
.faq__item summary:hover { background: var(--bg-hover); }
.faq__item summary::after {
    content: '+'; font-family: var(--font-mono); font-size: 1.1rem;
    color: var(--text-muted); flex-shrink: 0; margin-left: 16px;
}
.faq__item[open] summary::after { content: '−'; color: var(--accent); }
.faq__item p { padding: 0 20px 16px; font-size: 0.85rem; line-height: 1.7; }

/* ── Final CTA ── */
.cta-final {
    padding: 120px 0;
    border-bottom: 1px solid var(--border-subtle);
    position: relative;
    text-align: center;
}
.cta-final::before {
    content: ''; position: absolute; inset: 0;
    background: radial-gradient(ellipse 40% 50% at 50% 50%, var(--accent-dim), transparent);
    pointer-events: none;
}
.cta-final .container { position: relative; z-index: 1; }
.cta-final__content { max-width: 560px; margin: 0 auto; }
.cta-final h2 { font-size: clamp(1.4rem, 3vw, 2rem); margin-bottom: 14px; line-height: 1.3; }
.cta-final p { margin: 0 auto 32px; font-size: 0.95rem; }
.cta-final__meta { display: block; margin-top: 16px; font-size: 0.78rem; color: var(--text-muted); }

/* ── Page Hero (sub-pages) ── */
.page-hero {
    padding: calc(var(--nav-h) + 64px) 0 48px;
    border-bottom: 1px solid var(--border-subtle);
}
.page-hero h1 { margin-bottom: 12px; }
.page-hero__sub { font-size: 1rem; color: var(--text-muted); max-width: 480px; }

/* ── Legal (Terms/Privacy) ── */
.legal {
    padding: 100px 0;
    border-bottom: 1px solid var(--border-subtle);
}
.legal__content {
    max-width: 640px;
}
.legal__content p { font-size: 0.92rem; line-height: 1.8; margin-bottom: 14px; }
.legal__content h3 { font-size: 1rem; margin: 28px 0 10px; }
.legal__content ul, .legal__content ol { padding-left: 20px; margin-bottom: 14px; }
.legal__content li { font-size: 0.88rem; line-height: 1.7; margin-bottom: 6px; color: var(--text-secondary); }
.legal__content a { color: var(--accent); text-decoration: underline; text-underline-offset: 2px; }
.legal__content a:hover { color: var(--accent-hover); }

/* ── Refund Policy ── */
.refund {
    padding: 100px 0;
    border-bottom: 1px solid var(--border-subtle);
}
.refund__content {
    max-width: 640px;
}
.refund__content p { font-size: 0.95rem; line-height: 1.8; margin-bottom: 16px; }
.refund__content h3 { font-size: 1rem; margin: 28px 0 12px; }
.refund__content ul, .refund__content ol { padding-left: 20px; margin-bottom: 16px; }
.refund__content li { font-size: 0.9rem; line-height: 1.7; margin-bottom: 6px; color: var(--text-secondary); }
.refund__content a { color: var(--accent); text-decoration: underline; text-underline-offset: 2px; }
.refund__content a:hover { color: var(--accent-hover); }

/* ── Footer ── */
.footer { padding: 56px 0 24px; }
.footer__top { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 36px; margin-bottom: 40px; }
@media (max-width: 640px) { .footer__top { grid-template-columns: 1fr 1fr; gap: 28px; } }
.footer__brand p { margin-top: 8px; font-size: 0.82rem; color: var(--text-muted); }
.footer__col h4 { font-family: var(--font-heading); font-size: 0.68rem; text-transform: uppercase; letter-spacing: 0.1em; color: var(--text-muted); margin-bottom: 14px; }
.footer__col a { display: block; font-size: 0.82rem; padding: 4px 0; transition: color 0.15s; }
.footer__col a:hover { color: var(--text); }
.footer__bottom { padding-top: 20px; border-top: 1px solid var(--border-subtle); font-size: 0.72rem; color: var(--text-muted); }

/* ── Animations ── */
@keyframes blink { 0%, 100% { opacity: 1; } 50% { opacity: 0; } }

/* ── Responsive ── */
@media (max-width: 768px) {
    .hero { padding: calc(var(--nav-h) + 48px) 0 0; }
    .hero__proof-row { flex-direction: column; gap: 16px; padding: 24px; }
    .hero__proof-divider { width: 40px; height: 1px; }
    .hero__actions { flex-direction: column; align-items: flex-start; gap: 16px; }
    .story, .solution, .features, .curriculum, .included, .proof, .comparison, .bonuses, .pricing, .faq { padding: 64px 0; }
    .cta-final { padding: 80px 0; }
    .obstacle { padding: 56px 0; }
    .imagine { padding: 64px 0; }
}

/* ============================================================
   Theme Toggle Button
   ============================================================ */
.theme-toggle {
    display: flex; align-items: center; justify-content: center;
    width: 36px; height: 36px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    cursor: pointer;
    color: var(--text-muted);
    transition: all 0.2s;
}
.theme-toggle:hover { color: var(--text); border-color: var(--accent); background: var(--accent-dim); }
.theme-toggle__sun { display: none; }
.theme-toggle__moon { display: block; }
[data-theme="light"] .theme-toggle__sun { display: block; }
[data-theme="light"] .theme-toggle__moon { display: none; }

/* ============================================================
   Light Theme
   ============================================================ */
[data-theme="light"] {
    --bg: #fafafa;
    --bg-elevated: #f4f4f5;
    --bg-card: #ffffff;
    --bg-card-hover: #f9f9fb;
    --bg-hover: #f0f0f3;
    --border: #e4e4e7;
    --border-subtle: #eeeeee;
    --border-accent: rgba(124,58,237,0.2);
    --text: #18181b;
    --text-secondary: #52525b;
    --text-muted: #a1a1aa;
    --accent: #7c3aed;
    --accent-dim: rgba(124,58,237,0.06);
    --accent-glow: rgba(124,58,237,0.12);
    --accent-hover: #6d28d9;
    --success: #059669;
    --success-dim: rgba(5,150,105,0.06);
    --warning: #d97706;
    --warning-dim: rgba(217,119,6,0.06);
    --danger: #dc2626;
    --danger-dim: rgba(220,38,38,0.06);
    --shadow-card: 0 1px 3px rgba(0,0,0,0.06), 0 0 0 1px rgba(0,0,0,0.04);
    --shadow-card-hover: 0 8px 24px rgba(0,0,0,0.08), 0 0 0 1px rgba(124,58,237,0.1);
}

[data-theme="light"] body { background: var(--bg); color: var(--text-secondary); }
[data-theme="light"] h1, [data-theme="light"] h2, [data-theme="light"] h3, [data-theme="light"] h4 { color: var(--text); }
[data-theme="light"] strong { color: var(--text); }
[data-theme="light"] em { color: var(--text); }

[data-theme="light"] .nav { background: rgba(250,250,250,0.85); }
[data-theme="light"] .nav--scrolled { box-shadow: 0 1px 0 var(--border), 0 4px 20px rgba(0,0,0,0.06); }

[data-theme="light"] .hero__glow--1 { opacity: 0.06; }
[data-theme="light"] .hero__glow--2 { opacity: 0.04; }
[data-theme="light"] .hero__badge-dot { box-shadow: 0 0 8px var(--success); }

[data-theme="light"] .btn--primary { color: #ffffff; }

[data-theme="light"] .story__callout { background: var(--accent-dim); border-color: var(--border-accent); }
[data-theme="light"] .story__callout p { color: var(--text); }

[data-theme="light"] .solution__highlight { background: var(--bg-elevated); }

[data-theme="light"] .obstacle { background: var(--bg-elevated); }

[data-theme="light"] .imagine__dot { box-shadow: 0 0 12px var(--accent-glow); }

[data-theme="light"] .proof { background: var(--bg-elevated); }

[data-theme="light"] .comparison__col--bad { border-color: rgba(220,38,38,0.1); }
[data-theme="light"] .comparison__col--good { border-color: rgba(5,150,105,0.12); }

[data-theme="light"] .plan__badge { color: #ffffff; }

[data-theme="light"] .cta-final::before { background: radial-gradient(ellipse 40% 50% at 50% 50%, var(--accent-dim), transparent); }

[data-theme="light"] .footer__bottom { border-top-color: var(--border); }
