:root {
    --bg-primary: #0d1117;
    --bg-secondary: #161b22;
    --bg-tertiary: #21262d;
    --text-primary: #f0f6fc;
    --text-secondary: #b0bac5;
    --text-muted: #768390;
    --border: #30363d;
    --chain: #e3b341;
    --chain-deep: #9e6a03;
    --shield: #a371f7;
    --shield-deep: #8957e5;
    --ok: #3fb950;
    --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(--chain);
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}

code {
    font-family: var(--font-mono);
    font-size: 0.9em;
    background: var(--bg-tertiary);
    padding: 0.1em 0.4em;
    border-radius: 5px;
}

.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(--chain);
    margin: 0 0 0.75rem;
}

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

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

.hero {
    position: relative;
    overflow: hidden;
    border-top: none;
    padding-block: 6rem 5rem;
    background:
        radial-gradient(120% 90% at 12% 0%, rgba(227, 179, 65, 0.13), transparent 55%),
        radial-gradient(120% 90% at 90% 110%, rgba(163, 113, 247, 0.16), transparent 55%),
        var(--bg-primary);
}

.hero-grid {
    display: grid;
    grid-template-columns: 1.15fr 0.85fr;
    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(--chain);
}

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

.hero h1 {
    font-size: clamp(2rem, 4.8vw, 3.1rem);
    margin: 0 0 1.25rem;
}

.hero h1 .accent {
    background: linear-gradient(100deg, var(--chain), var(--shield));
    -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;
}

.cta-center {
    justify-content: center;
    margin-top: 2rem;
}

/* ---------- 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 .amber {
    color: var(--chain);
}

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

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

/* ---------- 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(--shield-deep), var(--shield));
    box-shadow: 0 8px 22px rgba(163, 113, 247, 0.28);
}

.btn-primary:hover {
    box-shadow: 0 12px 28px rgba(163, 113, 247, 0.4);
}

.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(--chain);
    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;
}

/* ---------- Threat grid ---------- */

.threats {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.25rem;
    margin-block: 2.5rem;
}

.threat {
    background: var(--bg-secondary);
    border: 1px solid var(--border);
    border-top: 3px solid var(--warn);
    border-radius: 12px;
    padding: 1.5rem 1.25rem;
}

.threat i {
    color: var(--warn);
    font-size: 1.2rem;
}

.threat h3 {
    margin: 0.7rem 0 0.5rem;
    font-size: 1.05rem;
}

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

/* ---------- Project journey ---------- */

.journey {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: 2.5rem;
    font-family: var(--font-mono);
    font-size: 0.85rem;
}

.journey .stage {
    display: inline-flex;
    align-items: center;
    gap: 0.55rem;
    background: var(--bg-secondary);
    border: 1px solid var(--border);
    border-radius: 999px;
    padding: 0.45rem 1rem;
    color: var(--text-secondary);
}

.journey .stage:not(:last-child)::after {
    content: "\f0c1";
    font-family: "Font Awesome 6 Free";
    font-weight: 900;
    color: var(--chain-deep);
    margin-left: 1rem;
    font-size: 0.75rem;
}

.journey .stage:not(:last-child) {
    margin-right: 0.5rem;
}

.journey .dot {
    width: 9px;
    height: 9px;
    border-radius: 50%;
    background: var(--chain);
}

.journey .stage:last-child {
    border-color: var(--ok);
    color: var(--text-primary);
}

.journey .stage:last-child .dot {
    background: var(--ok);
}

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

.session {
    position: relative;
    border: 1px solid var(--border);
    border-left: 3px solid var(--chain);
    border-radius: 12px;
    padding: 1.75rem;
    margin-top: 1.25rem;
    background: var(--bg-secondary);
}

.session:first-of-type {
    margin-top: 2.5rem;
}

.session-head {
    display: flex;
    align-items: baseline;
    gap: 0.9rem;
    flex-wrap: wrap;
    margin-bottom: 0.4rem;
}

.session-head .tag {
    font-family: var(--font-mono);
    font-size: 0.8rem;
    color: var(--bg-primary);
    background: var(--chain);
    padding: 0.2rem 0.65rem;
    border-radius: 6px;
    font-weight: 700;
}

.session-head h3 {
    margin: 0;
    font-size: 1.25rem;
}

.session-head .dur {
    margin-left: auto;
    color: var(--text-muted);
    font-size: 0.9rem;
    font-family: var(--font-mono);
}

.pill {
    display: inline-block;
    font-family: var(--font-mono);
    font-size: 0.75rem;
    color: var(--shield);
    background: rgba(163, 113, 247, 0.12);
    padding: 0.15rem 0.6rem;
    border-radius: 999px;
    margin-bottom: 0.75rem;
}

.qlist {
    list-style: none;
    padding: 0;
    margin: 0.5rem 0 0;
}

.qlist li {
    position: relative;
    padding-left: 1.6rem;
    margin-bottom: 0.55rem;
    color: var(--text-secondary);
    font-size: 0.97rem;
}

.qlist li::before {
    content: "\f105";
    font-family: "Font Awesome 6 Free";
    font-weight: 900;
    position: absolute;
    left: 0.3rem;
    top: 0.05rem;
    color: var(--chain);
}

/* ---------- Audience ---------- */

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

.audience li {
    position: relative;
    background: var(--bg-secondary);
    border: 1px solid var(--border);
    border-radius: 10px;
    padding: 1rem 1.25rem 1rem 2.9rem;
    color: var(--text-secondary);
    font-size: 0.97rem;
}

.audience li::before {
    content: "\f007";
    font-family: "Font Awesome 6 Free";
    font-weight: 900;
    position: absolute;
    left: 1.15rem;
    top: 1.05rem;
    color: var(--shield);
    font-size: 0.9rem;
}

/* ---------- Two-col cards ---------- */

.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;
}

.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(--ok);
    font-size: 0.85rem;
}

.checklist.muted li::before {
    content: "\f0a9";
    color: var(--text-muted);
}

/* ---------- 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(163, 113, 247, 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(--chain);
}

/* ---------- 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(--chain);
    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;
}

.footer-org {
    margin-top: 1rem;
}

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

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

    .hero .terminal {
        order: -1;
    }

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

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

    .audience {
        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;
    }

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

    .session-head .dur {
        margin-left: 0;
    }
}
