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

:root {
    --bg: #0a0a0a;
    --bg-card: #0f0f0f;
    --border: #1a1a1a;
    --text: #ccc;
    --text-dim: #444;
    --text-muted: #333;
    --accent: #00d4ff;
    --white: #fff;
    --mono: "ui-monospace", "SFMono-Regular", "Menlo", "Monaco", "Consolas", monospace;
}

html {
    scroll-behavior: smooth;
}

body {
    background: var(--bg);
    color: var(--text);
    font-family: var(--mono);
    font-size: 14px;
    line-height: 1.7;
}

a {
    color: inherit;
    text-decoration: none;
}

/* ── Nav ── */
.nav {
    position: sticky;
    top: 0;
    z-index: 100;
    background: var(--bg);
    border-bottom: 1px solid var(--border);
    height: 52px;
    padding: 0 40px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.nav-left {
    display: flex;
    align-items: center;
    gap: 10px;
}

.nav-logo {
    color: var(--white);
    font-weight: 700;
    font-size: 15px;
    letter-spacing: -0.02em;
}

.badge {
    background: #161616;
    color: #3a3a3a;
    font-size: 10px;
    padding: 2px 7px;
    letter-spacing: 0.05em;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 28px;
    font-size: 13px;
}

.nav-links a {
    color: #555;
    transition: color 0.15s;
}

.nav-links a:hover {
    color: var(--text);
}

/* ── CTA Buttons ── */
.btn-cta {
    background: var(--accent);
    color: var(--bg) !important;
    padding: 7px 16px;
    font-family: var(--mono);
    font-size: 13px;
    font-weight: 600;
    border: none;
    cursor: pointer;
    transition: opacity 0.15s;
    display: inline-block;
}

.btn-cta:hover {
    opacity: 0.85;
}

.btn-secondary {
    background: none;
    color: var(--text);
    padding: 8px 18px;
    font-family: var(--mono);
    font-size: 13px;
    border: 1px solid var(--border);
    cursor: pointer;
    transition: border-color 0.15s, color 0.15s;
    display: inline-block;
}

.btn-secondary:hover {
    border-color: #444;
    color: var(--white);
}

/* ── Hero ── */
.hero {
    max-width: 1100px;
    margin: 0 auto;
    padding: 80px 40px 96px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 64px;
    align-items: start;
}

.comment {
    color: var(--text-muted);
    font-size: 12px;
    margin-bottom: 28px;
}

h1 {
    font-size: 48px;
    font-weight: 800;
    line-height: 1.1;
    letter-spacing: -0.03em;
    color: var(--white);
    margin-bottom: 32px;
}

.accent {
    color: var(--accent);
}

.hero-desc {
    color: #555;
    font-size: 13px;
    line-height: 1.85;
    margin-bottom: 36px;
    max-width: 380px;
}

.npm-block {
    background: var(--bg-card);
    border: 1px solid var(--border);
    padding: 11px 16px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 12px;
    max-width: 340px;
}

.prompt {
    color: #555;
}

.npm-block code {
    color: var(--text);
    font-family: var(--mono);
    font-size: 13px;
    flex: 1;
}

.copy-btn {
    background: none;
    border: none;
    color: #444;
    cursor: pointer;
    padding: 2px 4px;
    display: flex;
    align-items: center;
    transition: color 0.15s;
    font-family: var(--mono);
}

.copy-btn:hover {
    color: #888;
}

.npm-alt {
    font-size: 12px;
    color: var(--text-muted);
}

.npm-alt a {
    color: #3a3a3a;
    text-decoration: underline;
}

.npm-alt a:hover {
    color: #555;
}

/* ── Code Card ── */
.code-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    font-size: 12px;
    line-height: 1.9;
}

.code-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 18px;
    border-bottom: 1px solid var(--border);
}

.code-filename {
    color: #333;
    font-size: 11px;
}

.dot-open {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--accent);
    display: inline-block;
}

.code-body {
    padding: 18px 20px;
    margin: 0;
    overflow-x: auto;
    font-family: var(--mono);
    font-size: 12px;
    line-height: 1.9;
}

/* JSON syntax colors */
.j-brace {
    color: #444;
}

.j-key {
    color: #6888c8;
}

.j-colon {
    color: #444;
}

.j-str {
    color: #85c88a;
}

/* ── Sections ── */
.section {
    border-top: 1px solid var(--border);
    padding: 72px 40px;
    max-width: 1100px;
    margin: 0 auto;
}

.section-label {
    color: var(--text-muted);
    font-size: 12px;
    letter-spacing: 0.04em;
    margin-bottom: 48px;
}

/* ── Core Concepts ── */
.concepts-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 0;
}

.concept {
    padding-right: 28px;
    border-right: 1px solid var(--border);
    padding-left: 28px;
}

.concept:first-child {
    padding-left: 0;
}

.concept:last-child {
    border-right: none;
    padding-right: 0;
}

.concept-key {
    color: var(--accent);
    font-size: 13px;
    font-weight: 600;
    margin-bottom: 10px;
}

.concept-desc {
    color: #444;
    font-size: 12px;
    line-height: 1.75;
}

/* ── How Actions Work ── */
.steps {
    display: flex;
    flex-direction: column;
}

.step {
    display: grid;
    grid-template-columns: 80px 1fr;
    gap: 16px;
    align-items: baseline;
    border-top: 1px solid var(--border);
    padding: 28px 0;
}

.step:first-child {
    border-top: none;
    padding-top: 0;
}

.step-num {
    color: #222;
    font-size: 13px;
}

.step-title {
    color: var(--white);
    font-weight: 600;
    font-size: 14px;
    margin-bottom: 6px;
}

.step-desc {
    color: #444;
    font-size: 13px;
}

.inline-code {
    color: var(--accent);
    background: var(--bg-card);
    padding: 1px 5px;
    font-size: 12px;
    font-family: var(--mono);
}

/* ── Why Not Alternatives ── */
.why-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
}

.why-col {
    padding: 24px;
    border: 1px solid #111;
    margin-left: -1px;
}

.why-col:first-child {
    margin-left: 0;
}

.why-col--dim .why-col-key {
    color: var(--text-muted);
    font-size: 12px;
    margin-bottom: 20px;
}

.why-col--highlight {
    background: #0a1a1f;
    border-color: #003344;
}

.why-col--highlight .why-col-key {
    color: var(--accent);
    font-size: 12px;
    font-weight: 600;
    margin-bottom: 20px;
}

.why-items {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.why-item {
    color: var(--text-muted);
    font-size: 13px;
}

.why-item--pos {
    color: #009db8;
}

/* ── Examples ── */
.examples-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
}

.example-card {
    border: 1px solid var(--border);
    padding: 24px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.example-name {
    color: var(--white);
    font-weight: 600;
    font-size: 13px;
}

.example-desc {
    color: #444;
    font-size: 12px;
    line-height: 1.7;
}

.example-steps {
    display: flex;
    flex-direction: column;
    gap: 4px;
    color: var(--text-muted);
    font-size: 11px;
}

.example-cta {
    color: var(--accent);
    font-size: 12px;
    margin-top: 4px;
    display: inline-block;
}

.example-cta:hover {
    opacity: 0.8;
}

/* ── Get Started ── */
.getstarted-section {
    text-align: center;
    padding-top: 96px;
    padding-bottom: 96px;
}

.getstarted-title {
    font-size: 40px;
    font-weight: 800;
    color: var(--white);
    letter-spacing: -0.03em;
    line-height: 1.15;
    margin: 20px 0 44px;
}

.getstarted-btns {
    display: flex;
    gap: 12px;
    justify-content: center;
    flex-wrap: wrap;
}

/* ── Footer ── */
.footer {
    border-top: 1px solid var(--border);
    padding: 28px 40px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1100px;
    margin: 0 auto;
}

.footer-copy {
    color: var(--text-muted);
    font-size: 12px;
}

.footer-links {
    display: flex;
    gap: 20px;
}

.footer-links a {
    color: #444;
    font-size: 12px;
    transition: color 0.15s;
}

.footer-links a:hover {
    color: var(--text);
}

/* ── Responsive ── */
@media (max-width: 800px) {
    .nav {
        padding: 0 20px;
    }

    .hero {
        grid-template-columns: 1fr;
        gap: 40px;
        padding: 60px 20px 72px;
    }

    h1 {
        font-size: 36px;
    }

    .concepts-grid {
        grid-template-columns: 1fr 1fr;
        gap: 24px;
    }

    .concept {
        border-right: none;
        padding: 0;
    }

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

    .why-col {
        margin-left: 0;
        margin-top: -1px;
    }

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

    .section {
        padding: 56px 20px;
    }

    .footer {
        padding: 24px 20px;
        flex-direction: column;
        gap: 16px;
        text-align: center;
    }

    .getstarted-title {
        font-size: 28px;
    }
}