:root {
    --ink: #17201b;
    --muted: #667068;
    --paper: #f3f1e9;
    --paper-2: #e8e7dd;
    --green: #163d2a;
    --green-2: #255b3e;
    --green-soft: #dbe7dc;
    --red: #b8443d;
    --red-dark: #8e342f;
    --line: #c9cec6;
    --white: #fbfcf8;
    --code: #111713;
    --max: 1180px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
    margin: 0;
    color: var(--ink);
    background: var(--paper);
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    line-height: 1.6;
}
a { color: inherit; }
img { max-width: 100%; }
.shell { width: min(calc(100% - 40px), var(--max)); margin-inline: auto; }
.narrow { max-width: 860px; }
.skip-link { position: absolute; left: -9999px; }
.skip-link:focus { left: 12px; top: 12px; z-index: 100; background: white; padding: 8px 12px; }

.site-header {
    position: sticky;
    top: 0;
    z-index: 20;
    background: rgba(243, 241, 233, .96);
    border-bottom: 1px solid var(--line);
    backdrop-filter: blur(8px);
}
.nav-shell { min-height: 76px; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.brand { display: inline-flex; align-items: center; gap: 11px; text-decoration: none; }
.brand-mark {
    width: 42px; height: 42px; display: grid; place-items: center;
    background: var(--green); color: white; font: 800 14px/1 ui-monospace, monospace;
    border-bottom: 4px solid var(--red);
}
.brand strong { display: block; letter-spacing: -.02em; }
.brand small { display: block; color: var(--muted); font: 12px/1.3 ui-monospace, monospace; margin-top: 2px; }
.site-nav { display: flex; gap: 7px; }
.site-nav a {
    text-decoration: none; padding: 8px 11px; border: 1px solid transparent;
    font: 700 13px/1 ui-monospace, monospace; text-transform: uppercase; letter-spacing: .04em;
}
.site-nav a:hover, .site-nav a.active { border-color: var(--line); background: var(--white); }
.site-nav a.active { color: var(--green-2); box-shadow: inset 0 -2px var(--red); }
.nav-toggle { display: none; border: 1px solid var(--line); background: var(--white); padding: 9px 12px; font-weight: 700; }

.hero { padding: 86px 0 74px; background:
    linear-gradient(rgba(22,61,42,.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(22,61,42,.045) 1px, transparent 1px);
    background-size: 34px 34px;
}
.hero-grid { display: block; }
.hero-copy { max-width: 900px; }
.eyebrow {
    margin: 0 0 15px; color: var(--green-2); font: 800 12px/1.2 ui-monospace, monospace;
    letter-spacing: .12em;
}
.eyebrow.red { color: var(--red); }
h1, h2, h3 { line-height: 1.08; letter-spacing: -.035em; }
h1 { margin: 0; font-size: clamp(48px, 7vw, 84px); }
.hero h1 span { color: var(--green-2); }
.lead { max-width: 720px; color: #4d5850; font-size: 19px; line-height: 1.65; margin: 24px 0 0; }
.button-row { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 30px; }
.button { text-decoration: none; padding: 12px 17px; border: 1px solid var(--green); font-weight: 800; font-size: 14px; }
.button.primary { background: var(--green); color: white; }
.button.primary:hover { background: var(--green-2); }
.button.secondary { background: transparent; }
.button.secondary:hover { background: var(--green-soft); }
.hero-meta { display: flex; flex-wrap: wrap; gap: 18px; margin-top: 28px; color: var(--muted); font-size: 13px; }
.hero-meta span { display: flex; align-items: center; gap: 7px; }
.hero-meta i { width: 7px; height: 7px; background: var(--green-2); border-radius: 50%; }

.terminal-card { border: 1px solid #25372b; background: var(--code); color: #dfe9df; box-shadow: 14px 14px 0 var(--green-soft); }
.terminal-top { height: 42px; border-bottom: 1px solid #2e4034; display: flex; align-items: center; justify-content: space-between; padding: 0 14px; font: 12px ui-monospace, monospace; color: #98a79c; }
.terminal-lights { display: flex; gap: 6px; }
.terminal-lights b { width: 8px; height: 8px; border-radius: 50%; background: #526257; }
.terminal-lights b:last-child { background: var(--red); }
.terminal-card pre { margin: 0; padding: 28px; overflow-x: auto; min-height: 340px; }
.terminal-card code { font: 14px/1.75 ui-monospace, SFMono-Regular, Menlo, monospace; }
.terminal-card .muted { color: #718078; }
.terminal-card .key { color: #8bc79d; }
.terminal-card .value { color: #e7d7a4; }
.terminal-card .prompt { color: #d56860; }
.terminal-card .ok { color: #8bc79d; }

.section { padding: 78px 0; }
.section-border { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); background: var(--white); }
.section-heading { display: flex; justify-content: space-between; gap: 50px; align-items: end; margin-bottom: 34px; }
.section-heading h2, .split-section h2 { font-size: clamp(34px, 4vw, 52px); margin: 0; }
.section-heading > p { max-width: 470px; color: var(--muted); margin: 0; }
.feature-grid { display: grid; grid-template-columns: repeat(3, 1fr); border: 1px solid var(--line); }
.feature-card { min-height: 280px; padding: 26px; border-right: 1px solid var(--line); position: relative; }
.feature-card:last-child { border-right: 0; }
.feature-card h3 { font-size: 25px; margin: 40px 0 12px; }
.feature-card p { color: var(--muted); }
.feature-card a { color: var(--green-2); font-weight: 800; text-decoration: none; }
.card-number { font: 800 12px ui-monospace, monospace; color: var(--muted); }
.accent-card::after { content: ""; position: absolute; top: 0; right: 0; width: 5px; height: 64px; background: var(--red); }

.split-section { display: grid; grid-template-columns: 1fr 1fr; gap: 70px; align-items: start; }
.body-copy { color: var(--muted); font-size: 18px; max-width: 600px; }
.info-panel { border-top: 3px solid var(--green); }
.info-row { display: flex; justify-content: space-between; gap: 20px; padding: 17px 4px; border-bottom: 1px solid var(--line); }
.info-row span { color: var(--muted); }
.info-row strong { text-align: right; }

.dark-band { background: var(--green); color: #eef4ed; }
.inverse .eyebrow { color: #a7cbb2; }
.inverse h2 { color: white; }
.text-link { color: white; font-weight: 800; text-decoration: none; }
.docs-preview { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.doc-preview-card { color: inherit; text-decoration: none; padding: 25px; border: 1px solid #426650; background: #1a452f; }
.doc-preview-card:hover { border-color: #8eb39a; transform: translateY(-2px); }
.doc-preview-card span { color: #a7cbb2; font: 800 11px ui-monospace, monospace; text-transform: uppercase; }
.doc-preview-card h3 { font-size: 24px; margin: 28px 0 10px; }
.doc-preview-card p { color: #c5d5ca; min-height: 78px; }
.doc-preview-card b { color: white; font-size: 13px; }

.page-hero, .article-hero { padding: 74px 0 64px; }
.page-hero h1, .article-hero h1 { font-size: clamp(42px, 6vw, 68px); }
.docs-hero { background: var(--green-soft); }
.feature-list { border-top: 1px solid var(--line); }
.feature-list article { display: grid; grid-template-columns: 150px 1fr; gap: 30px; padding: 32px 0; border-bottom: 1px solid var(--line); }
.feature-list article > span { color: var(--red-dark); font: 800 12px ui-monospace, monospace; text-transform: uppercase; }
.feature-list h2 { margin: 0 0 8px; font-size: 30px; }
.feature-list p { margin: 0; color: var(--muted); max-width: 700px; }
.template-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; }
.template-box { border: 1px dashed #9aa39b; padding: 28px; min-height: 210px; background: rgba(255,255,255,.28); }
.template-box span { color: var(--red-dark); font: 800 11px ui-monospace, monospace; text-transform: uppercase; }
.template-box h3 { margin: 36px 0 8px; font-size: 27px; }
.template-box p { color: var(--muted); margin: 0; }
.quote-panel { border-left: 5px solid var(--red); background: var(--green); color: white; padding: 30px; }
.quote-panel span { font: 800 11px ui-monospace, monospace; color: #a7cbb2; }
.quote-panel p { font-size: 24px; line-height: 1.45; margin-bottom: 0; }

.docs-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; }
.doc-card { text-decoration: none; border: 1px solid var(--line); padding: 28px; background: var(--paper); min-height: 270px; }
.doc-card:hover { border-color: var(--green-2); box-shadow: inset 4px 0 var(--green-2); }
.doc-card-top { display: flex; justify-content: space-between; color: var(--muted); font: 800 11px ui-monospace, monospace; text-transform: uppercase; }
.doc-card-top span { color: var(--green-2); }
.doc-card h2 { font-size: 31px; margin: 50px 0 10px; }
.doc-card p { color: var(--muted); }
.doc-card strong { display: inline-block; margin-top: 12px; color: var(--green-2); font-size: 13px; }

.article-hero { border-bottom: 1px solid var(--line); background: var(--green-soft); }
.back-link { display: inline-block; margin-bottom: 28px; color: var(--muted); font-size: 13px; font-weight: 800; text-decoration: none; }
.article-section { background: var(--white); }
.article-layout { display: grid; grid-template-columns: 220px minmax(0, 760px); gap: 70px; justify-content: center; }
.docs-sidebar { position: sticky; top: 110px; align-self: start; display: flex; flex-direction: column; border-left: 1px solid var(--line); }
.docs-sidebar strong, .docs-sidebar a { padding: 8px 14px; }
.docs-sidebar strong { font: 800 11px ui-monospace, monospace; text-transform: uppercase; color: var(--muted); }
.docs-sidebar a { text-decoration: none; font-size: 14px; color: var(--muted); }
.docs-sidebar a.current { color: var(--green); font-weight: 800; border-left: 3px solid var(--red); margin-left: -2px; }
.prose { min-width: 0; }
.prose h2 { margin: 42px 0 13px; font-size: 30px; }
.prose h2:first-child { margin-top: 0; }
.prose p { color: #4f5b53; font-size: 17px; }
.prose pre { overflow-x: auto; background: var(--code); color: #dfe9df; padding: 22px; border-left: 4px solid var(--green-2); }
.prose code { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: .9em; }
.prose p code { background: var(--paper-2); padding: 2px 5px; color: var(--red-dark); }
.callout { margin: 28px 0; padding: 18px 20px; background: var(--green-soft); border-left: 4px solid var(--green-2); }
.callout.warning { background: #f0dfdc; border-left-color: var(--red); }

.site-footer { background: #111713; color: #b9c5bc; padding: 55px 0 24px; border-top: 5px solid var(--red); }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 60px; }
.footer-brand { color: white; font-weight: 900; font-size: 19px; }
.footer-brand span { color: #8eb39a; font: 13px ui-monospace, monospace; }
.footer-grid p { max-width: 440px; }
.footer-grid h2 { color: #829087; font: 800 11px ui-monospace, monospace; text-transform: uppercase; letter-spacing: .1em; margin-top: 4px; }
.footer-grid a { display: block; color: #d7dfd9; text-decoration: none; margin: 8px 0; font-size: 14px; }
.footer-grid a:hover { color: white; }
.footer-bottom { border-top: 1px solid #2d3730; margin-top: 42px; padding-top: 20px; display: flex; justify-content: space-between; font: 12px ui-monospace, monospace; color: #7f8c83; }

@media (max-width: 850px) {
    .hero-grid, .split-section, .article-layout { grid-template-columns: 1fr; }
    .feature-grid, .docs-preview { grid-template-columns: 1fr; }
    .feature-card { border-right: 0; border-bottom: 1px solid var(--line); }
    .feature-card:last-child { border-bottom: 0; }
    .section-heading { display: block; }
    .section-heading > p, .text-link { display: block; margin-top: 18px; }
    .docs-sidebar { position: static; border-left: 0; border-bottom: 1px solid var(--line); padding-bottom: 20px; }
    .docs-sidebar a.current { border-left: 0; box-shadow: inset 3px 0 var(--red); margin-left: 0; }
}
@media (max-width: 650px) {
    .shell { width: min(calc(100% - 28px), var(--max)); }
    .site-nav { display: none; position: absolute; left: 14px; right: 14px; top: 68px; background: var(--paper); border: 1px solid var(--line); padding: 8px; flex-direction: column; }
    .site-nav.open { display: flex; }
    .nav-toggle { display: block; }
    .hero { padding-top: 58px; }
    .hero-grid { gap: 42px; }
    .terminal-card pre { padding: 18px; min-height: auto; }
    .template-grid, .docs-grid, .footer-grid { grid-template-columns: 1fr; }
    .feature-list article { grid-template-columns: 1fr; gap: 8px; }
    .footer-grid { gap: 25px; }
    .footer-bottom { display: block; }
    .footer-bottom span { display: block; margin-top: 5px; }
}
