:root {
  --bg: #F7F6F3;
  --bg-alt: #EFEBE4;
  --surface: #FFFFFF;
  --line: #E2DDD4;
  --text: #1C1A17;
  --muted: #5F5A52;
  --brand: #122B34;
  --accent: #1A7D6B;
  --accent-strong: #146455;
  --accent-soft: #E3F2EE;
  --mint: #21A58E;
  --warn-bg: #FBF1DC;
  --warn-line: #F0B442;
  --warn-text: #3A2C10;
  --yes: #1A7D6B;
  --part: #8A5A00;
  --no: #8C3B2C;
  --shadow: 0 1px 2px rgb(28 26 23 / .06), 0 12px 40px -12px rgb(28 26 23 / .18);
  --radius: 14px;
  --font: Figtree, system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
  color-scheme: light dark;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #141719;
    --bg-alt: #1A1F22;
    --surface: #1E2428;
    --line: #2C3439;
    --text: #ECE9E3;
    --muted: #A39E95;
    --accent: #3CC3A8;
    --accent-strong: #5ED3BB;
    --accent-soft: #15332E;
    --warn-bg: #2A2312;
    --warn-line: #A57A1F;
    --warn-text: #F3E3BE;
    --yes: #5ED3BB;
    --part: #F3CD7D;
    --no: #F4917D;
    --shadow: 0 1px 2px rgb(0 0 0 / .3), 0 16px 48px -16px rgb(0 0 0 / .6);
  }
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 72px; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 400 17px/1.6 var(--font);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--accent); text-underline-offset: 3px; }
a:hover { color: var(--accent-strong); }
code { font: 500 .86em var(--mono); background: var(--bg-alt); padding: .1em .35em; border-radius: 5px; }
h1, h2, h3 { line-height: 1.12; letter-spacing: -.02em; margin: 0; }
h2 { font-size: clamp(28px, 4vw, 42px); font-weight: 800; margin-bottom: 14px; }
h3 { font-size: 18px; font-weight: 700; margin-bottom: 6px; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 6px; }

.wrap { max-width: 1160px; margin: 0 auto; padding: 0 16px; }
@media (min-width: 720px) { .wrap { padding: 0 28px; } }
.narrow { max-width: 820px; }

/* nav */
.nav {
  position: sticky; top: 0; z-index: 10;
  background: color-mix(in srgb, var(--bg) 82%, transparent);
  backdrop-filter: saturate(1.4) blur(12px);
  -webkit-backdrop-filter: saturate(1.4) blur(12px);
  border-bottom: 1px solid color-mix(in srgb, var(--line) 70%, transparent);
}
.nav-in { display: flex; align-items: center; gap: 24px; height: 60px; }
.brand { display: inline-flex; align-items: center; gap: 10px; font-weight: 800; font-size: 19px; color: var(--text); text-decoration: none; letter-spacing: -.01em; }
.brand img { border-radius: 7px; }
.nav-links { display: none; gap: 22px; margin-left: auto; }
.nav-links a { color: var(--muted); text-decoration: none; font-weight: 500; font-size: 15px; }
.nav-links a:hover { color: var(--text); }
.nav .btn { margin-left: auto; }
@media (min-width: 820px) { .nav-links { display: flex; } .nav .btn { margin-left: 0; } }

/* buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: 46px; padding: 0 22px; border-radius: 10px;
  font: 600 16px var(--font); text-decoration: none; white-space: nowrap;
  border: 1px solid transparent; transition: background .15s, border-color .15s, transform .15s;
}
.btn small { font-weight: 500; opacity: .75; font-size: 13px; }
.btn-sm { height: 36px; padding: 0 14px; font-size: 14px; }
.btn-primary { background: var(--brand); color: #fff; }
.btn-primary:hover { background: #1B3D49; color: #fff; transform: translateY(-1px); }
@media (prefers-color-scheme: dark) {
  .btn-primary { background: var(--mint); color: #08201B; }
  .btn-primary:hover { background: #3CC3A8; color: #08201B; }
}
.btn-ghost { background: var(--surface); color: var(--text); border-color: var(--line); }
.btn-ghost:hover { border-color: var(--muted); color: var(--text); }

/* hero */
.hero { padding: 56px 0 0; overflow: hidden; position: relative; }
.hero::before {
  content: ""; position: absolute; inset: -20% -10% auto; height: 620px; z-index: -1;
  background: radial-gradient(ellipse 50% 60% at 50% 30%, color-mix(in srgb, var(--mint) 18%, transparent), transparent 70%);
}
.hero-in { text-align: center; max-width: 880px; }
.pill {
  display: inline-flex; align-items: center; gap: 8px; padding: 6px 14px;
  border: 1px solid var(--line); background: var(--surface); border-radius: 999px;
  font-size: 14px; font-weight: 500; color: var(--muted); text-decoration: none; margin-bottom: 26px;
}
.pill:hover { color: var(--text); border-color: var(--muted); }
.dot { width: 8px; height: 8px; border-radius: 50%; background: var(--mint); box-shadow: 0 0 0 3px color-mix(in srgb, var(--mint) 25%, transparent); }
h1 { font-size: clamp(38px, 7vw, 72px); font-weight: 800; letter-spacing: -.035em; }
.accent { color: var(--accent); }
.lede { font-size: clamp(17px, 2vw, 20px); color: var(--muted); max-width: 720px; margin: 22px auto 30px; }
.cta { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }
.meta { font-size: 14px; color: var(--muted); margin: 18px 0 48px; }

.window {
  margin: 0; background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow);
}
.window-bar { display: flex; gap: 7px; padding: 11px 14px; border-bottom: 1px solid var(--line); background: var(--bg-alt); }
.window-bar i { width: 11px; height: 11px; border-radius: 50%; background: var(--line); }
.shot-hero { margin-bottom: -2px; border-bottom-left-radius: 0; border-bottom-right-radius: 0; }

/* strip */
.strip { background: var(--brand); color: #DDE7E4; }
.strip-in { display: grid; gap: 18px; padding-top: 30px; padding-bottom: 30px; }
.strip-in div { display: flex; align-items: baseline; gap: 14px; }
.strip strong { font-size: 40px; font-weight: 800; color: var(--mint); line-height: 1; min-width: 32px; }
.strip span { font-size: 15px; }
.strip code { background: rgb(255 255 255 / .1); color: #fff; }
@media (min-width: 820px) { .strip-in { grid-template-columns: repeat(3, 1fr); } }

/* sections */
.section { padding: 88px 0; }
.section-alt { background: var(--bg-alt); }
.eyebrow { font: 600 13px var(--mono); text-transform: uppercase; letter-spacing: .1em; color: var(--accent); margin: 0 0 12px; }
.sub { color: var(--muted); max-width: 720px; margin: 0 0 28px; }
.fine { font-size: 13px; color: var(--muted); }
.caption { margin: 16px 0 4px; font-weight: 500; }

.grid { display: grid; gap: 16px; margin-top: 36px; }
.features { grid-template-columns: 1fr; }
@media (min-width: 640px) { .features { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) { .features { grid-template-columns: repeat(4, 1fr); } }
.card {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 22px; transition: border-color .2s, transform .2s;
}
.card:hover { border-color: color-mix(in srgb, var(--accent) 45%, var(--line)); transform: translateY(-2px); }
.card p { margin: 0; color: var(--muted); font-size: 15px; }
.ic {
  width: 40px; height: 40px; border-radius: 10px; background: var(--accent-soft);
  display: grid; place-items: center; margin-bottom: 16px;
}
.ic svg { width: 22px; height: 22px; fill: none; stroke: var(--accent); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }

/* tabs */
.tabs { display: inline-flex; flex-wrap: wrap; gap: 4px; padding: 4px; background: var(--surface); border: 1px solid var(--line); border-radius: 12px; margin: 8px 0 22px; }
.tabs button {
  font: 600 14px var(--font); color: var(--muted); background: none; border: 0;
  padding: 8px 14px; border-radius: 8px; cursor: pointer;
}
.tabs button:hover { color: var(--text); }
.tabs button[aria-selected="true"] { background: var(--brand); color: #fff; }
@media (prefers-color-scheme: dark) { .tabs button[aria-selected="true"] { background: var(--accent-soft); color: var(--accent-strong); } }

/* table */
.table-scroll { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); -webkit-overflow-scrolling: touch; }
table.bmc { border-collapse: collapse; width: 100%; min-width: 860px; font-size: 14.5px; }
.bmc th, .bmc td { text-align: left; padding: 14px 16px; vertical-align: top; border-bottom: 1px solid var(--line); }
.bmc thead th { font: 600 12px var(--mono); text-transform: uppercase; letter-spacing: .06em; color: var(--muted); background: var(--bg-alt); white-space: nowrap; }
.bmc tbody th { font-weight: 700; white-space: nowrap; }
.bmc tbody th span { display: block; font-weight: 500; font-size: 12.5px; color: var(--muted); }
.bmc tbody tr:last-child > * { border-bottom: 0; }
.bmc td { color: var(--muted); }
.bmc b { display: inline-flex; align-items: center; gap: 6px; font-weight: 600; }
.bmc b::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: currentColor; flex: none; }
.bmc b.y { color: var(--yes); }
.bmc b.p { color: var(--part); }
.bmc b.p::before { background: none; border: 1.5px solid currentColor; width: 5px; height: 5px; }
.bmc b.n { color: var(--muted); }
.bmc b.n::before { background: none; border: 1.5px dashed currentColor; width: 5px; height: 5px; }
.bmc small { display: block; font-size: 12.5px; margin-top: 2px; }

.note { margin-top: 28px; padding: 22px 24px; border-radius: var(--radius); background: var(--accent-soft); border: 1px solid color-mix(in srgb, var(--accent) 25%, transparent); font-size: 15px; }
.note p { margin: 0 0 8px; }
.note ul { margin: 0; padding-left: 20px; color: var(--muted); }
.note li { margin: 4px 0; }
.note-plain { background: var(--surface); border-color: var(--line); }
.note-plain p { margin: 0; }

/* dark cli section */
.section-dark { background: var(--brand); color: #DDE7E4; }
.section-dark h2 { color: #fff; }
.section-dark .eyebrow { color: var(--mint); }
.section-dark .sub { color: #A9BDB8; }
.section-dark code { background: rgb(255 255 255 / .08); color: #fff; }
.two { display: grid; gap: 40px; align-items: center; }
@media (min-width: 960px) { .two { grid-template-columns: 1fr 1.25fr; gap: 56px; } }
.term { background: #0B191E; border: 1px solid #23414B; border-radius: var(--radius); overflow: hidden; box-shadow: 0 24px 60px -20px rgb(0 0 0 / .6); min-width: 0; }
.term-bar { display: flex; align-items: center; gap: 7px; padding: 11px 14px; border-bottom: 1px solid #1C343C; }
.term-bar i { width: 11px; height: 11px; border-radius: 50%; background: #23414B; }
.term-bar span { margin-left: 10px; font: 500 12px var(--mono); color: #6E8C86; }
.term pre { margin: 0; padding: 20px; overflow-x: auto; font: 400 13.5px/1.75 var(--mono); color: #E6EFEC; }
.term pre code { background: none; padding: 0; font: inherit; color: inherit; }
.term .c { color: #5F7D77; }
.term .pr { color: var(--mint); user-select: none; }

/* install */
.os { max-width: 760px; }
.os p { color: var(--muted); }
.dl { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 18px; }
.snip {
  margin: 0 0 16px; padding: 14px 18px; border-radius: 10px; background: var(--surface);
  border: 1px solid var(--line); overflow-x: auto; font: 400 14px var(--mono);
}
.snip code { background: none; padding: 0; font: inherit; }
.install-links { margin: 20px 0 0; }

/* warn */
.warn { background: var(--warn-bg); border: 1px solid var(--warn-line); border-left-width: 4px; border-radius: 12px; padding: 22px 24px; color: var(--warn-text); }
.warn p { margin: 0 0 12px; }
.warn p:last-child { margin: 0; }

/* footer */
.foot { border-top: 1px solid var(--line); padding: 48px 0 40px; font-size: 14px; color: var(--muted); }
.foot-in { display: grid; gap: 24px; }
.foot-in p { margin: 10px 0 0; }
.foot nav { display: flex; flex-wrap: wrap; gap: 18px; }
.foot nav a { color: var(--text); text-decoration: none; font-weight: 500; }
.foot nav a:hover { color: var(--accent); }
.foot .fine { max-width: 760px; margin: 0; }
@media (min-width: 820px) { .foot-in { grid-template-columns: 1fr auto; } .foot .fine { grid-column: 1 / -1; } }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; }
}

/* changelog */
.changelog details { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); margin-bottom: 12px; }
.changelog summary {
  display: flex; align-items: baseline; gap: 12px; flex-wrap: wrap;
  padding: 16px 20px; cursor: pointer; list-style: none; font-weight: 700; font-size: 18px;
}
.changelog summary::-webkit-details-marker { display: none; }
.changelog summary::before { content: "›"; color: var(--muted); transition: transform .15s; display: inline-block; width: 10px; }
.changelog details[open] > summary::before { transform: rotate(90deg); }
.changelog summary time { font: 500 13px var(--mono); color: var(--muted); }
.changelog .tag { font: 600 11px var(--mono); text-transform: uppercase; letter-spacing: .06em; color: var(--accent); background: var(--accent-soft); padding: 2px 8px; border-radius: 999px; }
.changelog .body { padding: 0 20px 18px 42px; }
.changelog .intro { margin: 0 0 8px; color: var(--muted); }
.changelog h4 { font: 600 12px var(--mono); text-transform: uppercase; letter-spacing: .08em; color: var(--accent); margin: 18px 0 6px; }
.changelog ul { margin: 0; padding-left: 18px; }
.changelog li { margin: 8px 0; font-size: 15px; color: var(--muted); }
.changelog li::marker { color: var(--line); }
.changelog .more { margin-top: 8px; font-size: 15px; }
