:root {
    --bg-primary: #0d1117;
    --bg-secondary: #161b22;
    --bg-tertiary: #21262d;
    --text-primary: #f0f6fc;
    --text-secondary: #b0bac5;
    --text-muted: #768390;
    --border: #30363d;
    --speed: #f0883e;
    --speed-deep: #bb5a1c;
    --control: #58a6ff;
    --control-deep: #1f6feb;
    --warn: #f85149;
    --font-sans: -apple-system, BlinkMacSystemFont, "Segoe UI", "Noto Sans", Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji";
    --font-mono: 'SF Mono', Monaco, 'Cascadia Code', 'Roboto Mono', Consolas, 'Courier New', monospace;
}

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

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family: var(--font-sans);
    color: var(--text-primary);
    background-color: var(--bg-primary);
    line-height: 1.65;
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}

a {
    color: var(--control);
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}

.wrap {
    width: 100%;
    max-width: 960px;
    margin-inline: auto;
    padding-inline: 1.5rem;
}

section {
    padding-block: 5rem;
    border-top: 1px solid var(--border);
}

h1,
h2,
h3 {
    line-height: 1.2;
    letter-spacing: -0.02em;
}

h2 {
    font-size: clamp(1.7rem, 4vw, 2.4rem);
    margin: 0 0 1rem;
}

.eyebrow {
    font-family: var(--font-mono);
    font-size: 0.85rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--control);
    margin: 0 0 0.75rem;
}

.lead {
    font-size: 1.15rem;
    color: var(--text-secondary);
    max-width: 60ch;
}

/* ---------- Hero ---------- */

.hero {
    position: relative;
    overflow: hidden;
    border-top: none;
    padding-block: 6rem 5rem;
    background:
        radial-gradient(120% 90% at 12% 0%, rgba(240, 136, 62, 0.16), transparent 55%),
        radial-gradient(120% 90% at 92% 110%, rgba(88, 166, 255, 0.18), transparent 55%),
        var(--bg-primary);
}

.hero-grid {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 3rem;
    align-items: center;
}

.brandmark {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-family: var(--font-mono);
    font-size: 0.95rem;
    color: var(--text-secondary);
    margin-bottom: 2.5rem;
}

.brandmark .cursor {
    animation: blink 1.1s steps(1) 5 forwards;
    color: var(--control);
}

@keyframes blink {
    50% {
        opacity: 0;
    }
}

.hero h1 {
    font-size: clamp(2.2rem, 5.2vw, 3.4rem);
    margin: 0 0 1.25rem;
}

.hero h1 .accent {
    background: linear-gradient(100deg, var(--speed), var(--control));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.hero p {
    font-size: 1.2rem;
    color: var(--text-secondary);
    margin: 0 0 2rem;
    max-width: 48ch;
}

.hero-cta {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    align-items: center;
}

/* ---------- Terminal mock ---------- */

.terminal {
    background: #0a0d12;
    border: 1px solid var(--border);
    border-radius: 12px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.45);
    font-family: var(--font-mono);
    font-size: 0.82rem;
    overflow: hidden;
}

.terminal-bar {
    display: flex;
    gap: 0.45rem;
    padding: 0.7rem 0.9rem;
    background: #11151b;
    border-bottom: 1px solid var(--border);
}

.terminal-bar span {
    width: 11px;
    height: 11px;
    border-radius: 50%;
    background: #30363d;
}

.terminal-body {
    padding: 1.1rem 1.2rem;
    line-height: 1.7;
    white-space: pre-wrap;
}

.terminal-body .dim {
    color: var(--text-muted);
}

.terminal-body .red {
    color: var(--warn);
    font-weight: 600;
}

.terminal-body .green {
    color: #3fb950;
    font-weight: 600;
}

.terminal-body .speed {
    color: var(--speed);
    font-weight: 600;
}

.terminal-body .prompt {
    color: var(--control);
}

/* ---------- Buttons ---------- */

.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.55rem;
    font-size: 1rem;
    font-weight: 600;
    padding: 0.95rem 1.7rem;
    border-radius: 8px;
    border: 1px solid transparent;
    cursor: pointer;
    transition: transform 0.12s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.btn:hover {
    text-decoration: none;
    transform: translateY(-2px);
}

.btn-primary {
    color: #fff;
    background: linear-gradient(120deg, var(--speed-deep), var(--speed));
    box-shadow: 0 8px 22px rgba(240, 136, 62, 0.28);
}

.btn-primary:hover {
    box-shadow: 0 12px 28px rgba(240, 136, 62, 0.42);
}

.btn-ghost {
    color: var(--text-primary);
    border-color: var(--border);
    background: var(--bg-secondary);
}

.btn-ghost:hover {
    border-color: var(--text-muted);
}

/* ---------- Facts strip ---------- */

.facts {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1px;
    background: var(--border);
    border: 1px solid var(--border);
    border-radius: 12px;
    overflow: hidden;
    margin-top: 3rem;
}

.fact {
    background: var(--bg-secondary);
    padding: 1.5rem 1.25rem;
}

.fact i {
    color: var(--control);
    font-size: 1.1rem;
}

.fact strong {
    display: block;
    font-size: 1.15rem;
    margin-top: 0.6rem;
}

.fact span {
    color: var(--text-muted);
    font-size: 0.9rem;
}

/* ---------- Tension: three ways ---------- */

.ways {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.25rem;
    margin-top: 2.5rem;
}

.way {
    position: relative;
    background: var(--bg-secondary);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 1.75rem;
}

.way .label {
    font-family: var(--font-mono);
    font-size: 0.8rem;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: var(--text-muted);
}

.way h3 {
    margin: 0.5rem 0 0.6rem;
    font-size: 1.2rem;
}

.way p {
    margin: 0;
    color: var(--text-secondary);
    font-size: 0.97rem;
}

.way.speed-only {
    border-top: 3px solid var(--speed);
}

.way.control-only {
    border-top: 3px solid var(--warn);
}

.way.balanced {
    border-top: 3px solid var(--control);
    background:
        radial-gradient(120% 120% at 50% 0%, rgba(88, 166, 255, 0.12), transparent 60%),
        var(--bg-secondary);
}

.way .outcome {
    display: inline-block;
    font-family: var(--font-mono);
    font-size: 0.75rem;
    padding: 0.15rem 0.6rem;
    border-radius: 999px;
    margin-top: 1rem;
}

.way.speed-only .outcome {
    color: var(--speed);
    background: rgba(240, 136, 62, 0.12);
}

.way.control-only .outcome {
    color: var(--warn);
    background: rgba(248, 81, 73, 0.12);
}

.way.balanced .outcome {
    color: var(--control);
    background: rgba(88, 166, 255, 0.14);
}

/* ---------- Curriculum list ---------- */

.topics {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.75rem 2rem;
    margin-top: 2rem;
    list-style: none;
    padding: 0;
}

.topics li {
    position: relative;
    padding-left: 2rem;
    color: var(--text-secondary);
    padding-block: 0.4rem;
}

.topics li::before {
    content: "\f0e7";
    font-family: "Font Awesome 6 Free";
    font-weight: 900;
    position: absolute;
    left: 0;
    top: 0.55rem;
    color: var(--speed);
    font-size: 0.85rem;
}

/* ---------- Audience / two-col lists ---------- */

.cols {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    margin-top: 2rem;
}

.card {
    background: var(--bg-secondary);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 1.75rem;
}

.card h3 {
    margin-top: 0;
    font-size: 1.2rem;
}

.card p {
    color: var(--text-secondary);
    margin: 0;
}

.checklist {
    list-style: none;
    padding: 0;
    margin: 0;
}

.checklist li {
    position: relative;
    padding-left: 1.8rem;
    margin-bottom: 0.7rem;
    color: var(--text-secondary);
}

.checklist li::before {
    content: "\f00c";
    font-family: "Font Awesome 6 Free";
    font-weight: 900;
    position: absolute;
    left: 0;
    top: 0.05rem;
    color: var(--control);
    font-size: 0.85rem;
}

/* ---------- Outcomes ---------- */

.outcomes {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.25rem;
    margin-top: 2.5rem;
}

.outcome-card {
    background: var(--bg-secondary);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 1.75rem;
}

.outcome-card i {
    color: var(--speed);
    font-size: 1.4rem;
}

.outcome-card p {
    margin: 0.9rem 0 0;
    color: var(--text-secondary);
    font-size: 0.97rem;
}

/* ---------- About ---------- */

.about {
    display: grid;
    grid-template-columns: 160px 1fr;
    gap: 2rem;
    align-items: center;
}

.about img {
    width: 160px;
    height: 160px;
    border-radius: 16px;
    object-fit: cover;
    border: 1px solid var(--border);
}

.about p {
    color: var(--text-secondary);
    margin: 0 0 1rem;
}

/* ---------- Pricing / final CTA ---------- */

.pricing {
    background:
        radial-gradient(100% 120% at 50% 0%, rgba(240, 136, 62, 0.12), transparent 60%),
        var(--bg-secondary);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 3rem 2rem;
    text-align: center;
    margin-top: 1rem;
}

.price {
    font-size: 3rem;
    font-weight: 700;
    margin: 0.5rem 0 0.25rem;
}

.price small {
    font-size: 1.1rem;
    color: var(--text-muted);
    font-weight: 400;
}

.pricing .lead {
    margin-inline: auto;
}

.flatrate-note {
    margin-top: 2rem;
    padding: 1.1rem 1.4rem;
    border: 1px dashed var(--border);
    border-radius: 10px;
    color: var(--text-secondary);
    font-size: 0.97rem;
    display: inline-flex;
    gap: 0.7rem;
    align-items: center;
    text-align: left;
}

.flatrate-note i {
    color: var(--speed);
}

/* ---------- Footer ---------- */

footer {
    border-top: 1px solid var(--border);
    padding-block: 2.5rem;
    color: var(--text-muted);
    font-size: 0.9rem;
}

.footer-inner {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem 1.5rem;
    align-items: center;
    justify-content: space-between;
}

.footer-inner .logo {
    font-family: var(--font-mono);
    color: var(--text-secondary);
}

.footer-inner .logo .cursor {
    color: var(--control);
    animation: blink 1.1s steps(1) 5 forwards;
}

.footer-links a {
    color: var(--text-muted);
    margin-left: 1.25rem;
}

.footer-links a:first-child {
    margin-left: 0;
}

/* ---------- Responsive ---------- */

@media (max-width: 820px) {
    .hero-grid {
        grid-template-columns: 1fr;
    }

    .hero .terminal {
        order: -1;
    }

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

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

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

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

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

    .about {
        grid-template-columns: 1fr;
        text-align: center;
        justify-items: center;
    }
}

@media (max-width: 480px) {
    .facts {
        grid-template-columns: 1fr;
    }
}
