/*
 * Dockyard product site.
 * Light theme on white surfaces with a dark-green accent. Plain CSS, no build step.
 */

:root {
  --green: #0e7a43;
  --green-hover: #0b6537;
  --green-soft: rgba(14, 122, 67, 0.1);
  --green-softer: rgba(14, 122, 67, 0.05);
  --ink: #0f1a14;
  --text: #24302a;
  --muted: #6b7a71;
  --border: #dde5e0;
  --border-strong: #c9d4cd;
  --bg: #fcfcfc;
  --surface: #ffffff;
  --surface-2: #f5f8f6;
  --code-bg: #f6f8f7;

  /* Container states used in the product mocks */
  --st-run: #0e7a43;
  --st-pause: #a35f00;
  --st-stop: #6b7a71;
  --st-err: #b42318;

  --radius: 8px;
  --radius-lg: 12px;
  --shadow-sm: 0 1px 2px rgba(15, 26, 20, 0.05);
  --shadow: 0 1px 2px rgba(15, 26, 20, 0.04), 0 8px 24px -12px rgba(15, 26, 20, 0.12);
  --shadow-lg: 0 2px 4px rgba(15, 26, 20, 0.04), 0 24px 48px -20px rgba(15, 26, 20, 0.22);

  --font: "DM Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  --wrap: 1260px;
  --gutter: clamp(16px, 4vw, 40px);
}

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

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  min-width: 320px;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

h1, h2, h3, h4 { color: var(--ink); line-height: 1.15; margin: 0; letter-spacing: -0.02em; }
p { margin: 0; }
a { color: var(--green); text-decoration: none; }
a:hover { color: var(--green-hover); }
code, pre, kbd { font-family: var(--mono); font-variant-ligatures: none; }
:not(pre) > code {
  font-size: 0.86em;
  padding: 0.12em 0.4em;
  border-radius: 5px;
  background: var(--green-soft);
  color: var(--green-hover);
  word-break: break-word;
}
:focus-visible { outline: 2px solid var(--green); outline-offset: 2px; border-radius: 4px; }
img { max-width: 100%; display: block; }

/* Sprite icons: <svg class="ic"><use href="assets/icons.svg#i-name" /></svg> */
.ic {
  width: 18px;
  height: 18px;
  flex: 0 0 auto;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.75;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }
.skip-link {
  position: absolute; left: 12px; top: -48px; z-index: 100;
  padding: 8px 12px; border-radius: var(--radius);
  background: var(--green); color: #fff;
}
.skip-link:focus { top: 12px; color: #fff; }

/* ---- Top bar ---------------------------------------------------------- */
.topbar {
  position: sticky; top: 0; z-index: 50;
  background: rgba(252, 252, 252, 0.86);
  backdrop-filter: saturate(1.4) blur(12px);
  -webkit-backdrop-filter: saturate(1.4) blur(12px);
  border-bottom: 1px solid var(--border);
}
.topbar .wrap { display: flex; align-items: center; gap: 24px; height: 64px; }
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--ink); font-weight: 700; font-size: 18px; letter-spacing: -0.01em; }
.brand:hover { color: var(--ink); }
.brand img { width: 30px; height: 30px; }
.nav { display: flex; align-items: center; gap: 4px; margin-left: auto; }
.nav a {
  display: inline-flex; align-items: center; gap: 7px;
  padding: 7px 12px; border-radius: var(--radius);
  color: var(--text); font-size: 15px; font-weight: 500;
}
.nav a:hover { background: var(--surface-2); color: var(--ink); }
.nav a[aria-current="page"] { color: var(--green); background: var(--green-softer); }
.nav .nav-gh { margin-left: 8px; border: 1px solid var(--border); background: var(--surface); }
.nav .nav-gh:hover { border-color: var(--border-strong); }
.nav-toggle {
  display: none; margin-left: auto;
  width: 40px; height: 40px; border-radius: var(--radius);
  border: 1px solid var(--border); background: var(--surface); color: var(--ink);
  align-items: center; justify-content: center; cursor: pointer;
}
.nav-toggle .ic { width: 20px; height: 20px; }
.nav-toggle .i-close { display: none; }
.topbar.open .nav-toggle .i-menu { display: none; }
.topbar.open .nav-toggle .i-close { display: block; }

/* ---- Buttons ---------------------------------------------------------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 44px; padding: 10px 18px;
  border-radius: var(--radius); border: 1px solid transparent;
  font: 600 15px/1.2 var(--font); cursor: pointer;
  transition: background-color 0.15s ease, border-color 0.15s ease, box-shadow 0.15s ease, transform 0.15s ease;
}
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--green); color: #fff; box-shadow: 0 1px 2px rgba(14, 122, 67, 0.25); }
.btn-primary:hover { background: var(--green-hover); color: #fff; }
.btn-secondary { background: var(--surface); color: var(--ink); border-color: var(--border); box-shadow: var(--shadow-sm); }
.btn-secondary:hover { border-color: var(--border-strong); color: var(--ink); background: var(--surface-2); }
.btn .ic { width: 17px; height: 17px; }
.btn-label { display: flex; flex-direction: column; align-items: flex-start; }
.btn-label small { font-size: 12px; font-weight: 500; opacity: 0.85; }
.btn-label small[hidden] { display: none; }

/* ---- Type helpers ----------------------------------------------------- */
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  color: var(--green); font-size: 13px; font-weight: 700;
  letter-spacing: 0.06em; text-transform: uppercase;
}
.pill {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 5px 12px 5px 6px; border-radius: 999px;
  border: 1px solid var(--border); background: var(--surface);
  color: var(--text); font-size: 13px; font-weight: 500; box-shadow: var(--shadow-sm);
}
.pill b { padding: 2px 8px; border-radius: 999px; background: var(--green-soft); color: var(--green); font-weight: 700; font-size: 12px; }

.section { padding: clamp(64px, 9vw, 112px) 0; }
.section + .section { border-top: 1px solid var(--border); }
.section.tint { background: var(--surface); }
.section-head { max-width: 680px; margin-bottom: clamp(32px, 5vw, 52px); }
.section-head h2 { margin-top: 12px; font-size: clamp(28px, 4vw, 40px); }
.section-head p { margin-top: 14px; color: var(--muted); font-size: 18px; }

/* ---- Hero ------------------------------------------------------------- */
.hero { padding: clamp(48px, 8vw, 96px) 0 clamp(56px, 8vw, 96px); position: relative; }
.hero::before {
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background:
    radial-gradient(60% 50% at 85% 10%, rgba(14, 122, 67, 0.07), transparent 70%),
    linear-gradient(var(--border) 1px, transparent 1px) 0 0 / 100% 48px;
  mask-image: linear-gradient(to bottom, rgba(0, 0, 0, 0.5), transparent 70%);
  -webkit-mask-image: linear-gradient(to bottom, rgba(0, 0, 0, 0.5), transparent 70%);
  opacity: 0.6;
}
.hero-grid { display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); gap: clamp(32px, 5vw, 64px); align-items: center; }
.hero h1 { margin-top: 20px; font-size: clamp(36px, 5.6vw, 60px); line-height: 1.04; letter-spacing: -0.035em; }
.hero h1 em { font-style: normal; color: var(--green); }
.hero .lede { margin-top: 20px; font-size: clamp(17px, 1.6vw, 19px); color: var(--text); max-width: 540px; }
.hero .actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }
.checks { display: flex; flex-wrap: wrap; gap: 8px 20px; margin: 28px 0 0; padding: 0; list-style: none; color: var(--muted); font-size: 14px; font-weight: 500; }
.checks li { display: inline-flex; align-items: center; gap: 6px; }
.checks .ic { width: 16px; height: 16px; color: var(--green); stroke-width: 2.4; }

/* ---- Product mock: browser chrome ------------------------------------- */
.mock {
  position: relative;
  border: 1px solid var(--border); border-radius: var(--radius-lg);
  background: var(--surface); box-shadow: var(--shadow-lg);
  overflow: hidden; font-size: 13px; color: var(--text);
  min-width: 0;
}
.mock-chrome {
  display: flex; align-items: center; gap: 12px;
  height: 40px; padding: 0 14px;
  border-bottom: 1px solid var(--border); background: var(--surface-2);
}
.mock-dots { display: flex; gap: 6px; }
.mock-dots i { width: 10px; height: 10px; border-radius: 50%; background: #d5ddd8; }
.mock-address {
  flex: 1; max-width: 300px; margin: 0 auto;
  display: flex; align-items: center; justify-content: center; gap: 6px;
  height: 24px; border-radius: 6px; border: 1px solid var(--border); background: var(--surface);
  color: var(--muted); font: 500 11.5px var(--mono);
}
.mock-address .ic { width: 12px; height: 12px; }
.mock-body { display: grid; grid-template-columns: 160px minmax(0, 1fr); min-height: 420px; }

/* Sidebar navigation */
.mock-side { display: flex; flex-direction: column; border-right: 1px solid var(--border); background: #fafcfb; padding: 12px 8px; min-width: 0; }
.mock-brand { display: flex; align-items: center; gap: 8px; padding: 2px 8px 12px; font-weight: 700; color: var(--ink); font-size: 13px; }
.mock-brand img { width: 20px; height: 20px; }
.mock-label { padding: 10px 8px 6px; color: var(--muted); font-size: 10.5px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; }
.side-nav { list-style: none; margin: 0; padding: 0; }
.side-nav li { display: flex; align-items: center; gap: 9px; height: 30px; padding: 0 8px; border-radius: 6px; white-space: nowrap; color: var(--text); }
.side-nav .ic { width: 15px; height: 15px; color: var(--muted); }
.side-nav .sel { background: var(--green-soft); color: var(--ink); font-weight: 600; box-shadow: inset 2px 0 0 var(--green); }
.side-nav .sel .ic { color: var(--green); }
.side-nav .count { margin-left: auto; color: var(--muted); font: 500 10.5px var(--mono); }
.engine {
  margin-top: auto; display: flex; align-items: center; gap: 8px;
  padding: 10px 8px 2px; border-top: 1px solid var(--border);
  color: var(--muted); font-size: 11.5px;
}
.engine b { color: var(--ink); font-weight: 600; }

/* Status dot shared by the sidebar, table and agent mock */
.dot { display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: var(--st-stop); flex: 0 0 auto; }
.dot.on { background: var(--st-run); box-shadow: 0 0 0 3px var(--green-soft); }

/* Main column */
.mock-main { display: flex; flex-direction: column; gap: 14px; padding: 16px; min-width: 0; background: var(--surface); container-type: inline-size; }
.mock-head { display: flex; align-items: center; gap: 10px; min-width: 0; }
.mock-head h3 { font-size: 15px; letter-spacing: -0.01em; }
.mock-head .sub { color: var(--muted); font-size: 12px; }
.mock-search {
  margin-left: auto; display: flex; align-items: center; gap: 6px;
  width: 150px; height: 28px; padding: 0 9px;
  border: 1px solid var(--border); border-radius: 6px; background: var(--surface);
  color: var(--muted); font-size: 12px; white-space: nowrap; overflow: hidden;
}
.mock-search .ic { width: 13px; height: 13px; }

.tiles { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; }
.tile { padding: 10px 11px; border: 1px solid var(--border); border-radius: 7px; background: var(--surface); min-width: 0; }
.tile small { display: block; color: var(--muted); font-size: 11px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tile strong { display: block; margin-top: 2px; color: var(--ink); font-size: 19px; line-height: 1.2; letter-spacing: -0.02em; font-variant-numeric: tabular-nums; }
.tile span { display: block; color: var(--muted); font-size: 11px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* Container table */
.ctable { border: 1px solid var(--border); border-radius: 7px; overflow: hidden; }
.crow {
  display: grid; grid-template-columns: minmax(0, 1.5fr) 74px minmax(0, 0.9fr) 92px 56px;
  align-items: center; gap: 10px;
  height: 46px; padding: 0 12px;
  border-top: 1px solid var(--border);
  transition: background-color 0.2s ease;
}
.crow:first-child { border-top: 0; }
.crow.head { height: 32px; background: var(--surface-2); color: var(--muted); font-size: 10.5px; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; }
.crow .name { min-width: 0; }
.crow .name b { display: block; color: var(--ink); font-weight: 600; font-size: 12.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.crow .name small { display: block; color: var(--muted); font: 400 10.5px var(--mono); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.crow .port { color: var(--green); font: 500 11px var(--mono); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.crow .port.none { color: var(--muted); }
.crow.flash { background: var(--green-softer); }

.status {
  display: inline-flex; align-items: center; gap: 5px; justify-self: start;
  height: 20px; padding: 0 7px; border-radius: 999px;
  font-size: 10.5px; font-weight: 700;
  background: rgba(107, 122, 113, 0.12); color: var(--st-stop);
}
.status::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.status.running { background: var(--green-soft); color: var(--st-run); }
.status.paused { background: rgba(214, 150, 20, 0.14); color: var(--st-pause); }

.meter { display: flex; align-items: center; gap: 7px; min-width: 0; }
.meter .bar { flex: 1; height: 5px; border-radius: 999px; background: var(--surface-2); box-shadow: inset 0 0 0 1px var(--border); overflow: hidden; }
.meter .bar i { display: block; height: 100%; width: 0; border-radius: inherit; background: var(--green); transition: width 0.6s ease; }
.meter code { width: 34px; padding: 0; background: none; text-align: right; color: var(--muted); font-size: 10.5px; font-variant-numeric: tabular-nums; }

.acts { display: flex; justify-content: flex-end; gap: 4px; }
.act {
  width: 24px; height: 24px; padding: 0;
  display: grid; place-items: center;
  border: 1px solid var(--border); border-radius: 6px; background: var(--surface);
  color: var(--text); cursor: pointer;
}
.act:hover { border-color: var(--border-strong); color: var(--ink); }
.act .ic { width: 12px; height: 12px; }
.act.danger:hover { color: var(--st-err); }
.act[disabled] { cursor: not-allowed; color: var(--border-strong); background: var(--surface-2); }
.act .i-play { display: none; }
.crow.stopped .act .i-play { display: block; }
.crow.stopped .act .i-stop { display: none; }
.lock { display: inline-flex; align-items: center; gap: 4px; color: var(--muted); font-size: 10.5px; }
.lock .ic { width: 11px; height: 11px; }

/* The mock adapts to its own width, which differs from the viewport's. */
@container (max-width: 560px) {
  .crow { grid-template-columns: minmax(0, 1fr) 72px 84px 56px; }
  .crow .port { display: none; }
}
@container (max-width: 440px) {
  .tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .mock-search { display: none; }
  .crow { grid-template-columns: minmax(0, 1fr) 70px 56px 56px; }
  .meter code { display: none; }
}

/* ---- Command blocks --------------------------------------------------- */
.cmd {
  position: relative;
  display: flex; align-items: flex-start; gap: 10px;
  border: 1px solid var(--border); border-radius: var(--radius);
  background: var(--code-bg);
  min-width: 0;
}
.cmd pre {
  flex: 1; min-width: 0; margin: 0;
  padding: 13px 0 13px 14px;
  font-size: 13.5px; line-height: 1.65; color: var(--ink);
}
.cmd pre code { white-space: pre-wrap; overflow-wrap: break-word; }
.cmd .prompt { color: var(--green); user-select: none; -webkit-user-select: none; }
.cmd .cmt { color: var(--muted); user-select: none; -webkit-user-select: none; }
.copy-btn {
  flex: 0 0 auto; margin: 7px 7px 0 0;
  display: inline-flex; align-items: center; gap: 6px;
  height: 32px; padding: 0 10px;
  border-radius: 6px; border: 1px solid var(--border); background: var(--surface);
  color: var(--text); font: 600 12.5px var(--font); cursor: pointer;
  transition: border-color 0.15s ease, color 0.15s ease, background-color 0.15s ease;
}
.copy-btn:hover { border-color: var(--border-strong); color: var(--ink); }
.copy-btn .ic { width: 15px; height: 15px; }
.copy-btn .i-check { display: none; }
.copy-btn.done { color: var(--green); border-color: rgba(14, 122, 67, 0.4); background: var(--green-softer); }
.copy-btn.done .i-copy { display: none; }
.copy-btn.done .i-check { display: block; stroke-width: 2.4; }

/* ---- Steps and notes -------------------------------------------------- */
.steps { display: grid; gap: 16px; counter-reset: step; }
.step {
  display: grid; grid-template-columns: 40px minmax(0, 1fr); gap: 4px 18px;
  padding: 22px; border: 1px solid var(--border); border-radius: var(--radius);
  background: var(--surface); box-shadow: var(--shadow-sm);
}
.step::before {
  counter-increment: step; content: counter(step);
  grid-row: span 3;
  width: 36px; height: 36px; border-radius: 50%;
  display: grid; place-items: center;
  background: var(--green-soft); color: var(--green); font-weight: 700;
}
.step h3 { font-size: 18px; }
.step p { color: var(--muted); margin-top: 4px; }
.step .cmd { margin-top: 14px; }
.notes { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; margin-top: 16px; }
.note { padding: 20px 22px; border: 1px solid var(--border); border-radius: var(--radius); background: var(--surface); min-width: 0; }
.note h3 { display: flex; align-items: center; gap: 10px; font-size: 16px; }
.note h3 .ic { color: var(--green); }
.note p { margin-top: 8px; color: var(--muted); font-size: 15px; }
.note .cmd { margin-top: 12px; }
.note .cmd pre { font-size: 12.5px; }

/* ---- Features --------------------------------------------------------- */
.features { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.card {
  padding: 24px; border: 1px solid var(--border); border-radius: var(--radius);
  background: var(--surface); box-shadow: var(--shadow-sm);
  transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
  min-width: 0;
}
.card:hover { border-color: var(--border-strong); box-shadow: var(--shadow); }
.card .icon {
  width: 38px; height: 38px; border-radius: var(--radius);
  display: grid; place-items: center;
  background: var(--green-soft); color: var(--green);
}
.card .icon .ic { width: 20px; height: 20px; }
.card h3 { margin-top: 16px; font-size: 17px; letter-spacing: -0.01em; }
.card p { margin-top: 8px; color: var(--muted); font-size: 15px; }

/* ---- Split sections (agent map, live view) ---------------------------- */
.split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: clamp(32px, 5vw, 64px); align-items: center; }
.split .section-head { margin-bottom: 0; }
.bullets { list-style: none; margin: 24px 0 0; padding: 0; display: grid; gap: 12px; }
.bullets li { display: flex; gap: 12px; align-items: flex-start; }
.bullets .ic { margin-top: 3px; color: var(--green); stroke-width: 2.4; width: 16px; height: 16px; }

/* Agent map mock */
.agentcard { border: 1px solid var(--border); border-radius: var(--radius-lg); background: var(--surface); box-shadow: var(--shadow); overflow: hidden; min-width: 0; }
.agentcard-head {
  display: flex; align-items: center; gap: 10px;
  padding: 10px 14px; border-bottom: 1px solid var(--border); background: var(--surface-2);
  font-size: 12.5px; color: var(--muted);
}
.agentcard-head .ic { width: 15px; height: 15px; color: var(--green); }
.agentcard-head b { color: var(--ink); font-weight: 600; }
.agentcard-head .meta { margin-left: auto; font: 500 11.5px var(--mono); white-space: nowrap; }
.agent-search {
  display: flex; align-items: center; gap: 8px;
  margin: 12px 14px 0; height: 34px; padding: 0 10px;
  border: 1px solid var(--border); border-radius: 7px; background: var(--surface);
  color: var(--muted);
}
.agent-search:focus-within { border-color: var(--green); box-shadow: 0 0 0 3px var(--green-soft); }
.agent-search .ic { width: 14px; height: 14px; }
.agent-search input {
  flex: 1; min-width: 0; border: 0; outline: 0; background: transparent;
  color: var(--ink); font: 400 13px var(--font);
}
.agent-search input::placeholder { color: var(--muted); }
.agent-map { position: relative; margin: 0; padding: 12px 14px 16px; list-style: none; display: grid; gap: 10px; }
.agent-file { position: relative; padding: 10px 12px; border: 1px solid var(--border); border-radius: 8px; background: var(--surface); min-width: 0; }
.agent-file header { display: flex; align-items: center; gap: 8px; min-width: 0; }
.agent-file header .ic { width: 14px; height: 14px; color: var(--green); }
.agent-file header b { color: var(--ink); font: 600 12px var(--mono); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.agent-file header small { margin-left: auto; color: var(--muted); font-size: 11px; white-space: nowrap; }
.agent-file ul { list-style: none; margin: 8px 0 0; padding: 0 0 0 7px; border-left: 1px solid var(--border); display: grid; gap: 3px; }
.agent-file li { display: flex; align-items: center; gap: 8px; padding-left: 10px; font-size: 12.5px; color: var(--text); min-width: 0; }
.agent-file li span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.agent-file li.l3 { padding-left: 26px; }
.agent-file li mark { background: rgba(214, 150, 20, 0.22); color: inherit; border-radius: 3px; padding: 0 1px; }
.lvl { flex: 0 0 auto; min-width: 22px; padding: 0 4px; border-radius: 4px; background: var(--green-soft); color: var(--green-hover); font: 700 9.5px/16px var(--mono); text-align: center; }
.agent-empty { padding: 18px 12px; border: 1px dashed var(--border-strong); border-radius: 8px; text-align: center; color: var(--muted); font-size: 12.5px; }

/* Dark live view (logs, terminal) */
.term { border-radius: var(--radius-lg); border: 1px solid #1f2a24; background: #0f1a14; color: #d7e3dc; box-shadow: var(--shadow-lg); overflow: hidden; min-width: 0; }
.term-head { display: flex; align-items: center; gap: 12px; padding: 10px 14px; border-bottom: 1px solid #22302a; font: 500 12px var(--mono); color: #8fa398; }
.term-head .mock-dots i { background: #2c3a33; }
.term-tabs { display: flex; gap: 4px; margin-left: auto; }
.term-tabs span { padding: 2px 9px; border-radius: 5px; font: 600 11.5px var(--font); color: #8fa398; }
.term-tabs .on { background: rgba(111, 211, 155, 0.14); color: #6fd39b; }
.term-stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border-bottom: 1px solid #22302a; }
.term-stats div { padding: 10px 14px; border-left: 1px solid #22302a; min-width: 0; }
.term-stats div:first-child { border-left: 0; }
.term-stats small { display: block; color: #7f9388; font-size: 11px; }
.term-stats b { display: block; color: #ffffff; font: 600 14px var(--mono); }
.term-stats svg { display: block; width: 100%; height: 22px; margin-top: 4px; fill: none; stroke: #6fd39b; stroke-width: 1.5; stroke-linejoin: round; }
.term pre { margin: 0; padding: 16px; font: 12.5px/1.6 var(--mono); overflow-x: auto; white-space: pre; }
.term .g { color: #6fd39b; }
.term .r { color: #f08a7e; }
.term .y { color: #e8c36a; }
.term .d { color: #7f9388; }
.term .w { color: #ffffff; font-weight: 600; }

/* ---- CTA -------------------------------------------------------------- */
.cta {
  display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 24px;
  padding: clamp(28px, 4vw, 44px);
  border: 1px solid rgba(14, 122, 67, 0.25); border-radius: var(--radius-lg);
  background: linear-gradient(135deg, rgba(14, 122, 67, 0.08), rgba(14, 122, 67, 0.02)), var(--surface);
}
.cta h2 { font-size: clamp(24px, 3vw, 32px); }
.cta p { margin-top: 8px; color: var(--muted); }
.cta .actions { display: flex; flex-wrap: wrap; gap: 12px; }

/* ---- Footer ----------------------------------------------------------- */
.footer { border-top: 1px solid var(--border); background: var(--surface); padding: 40px 0; }
.footer .wrap { display: flex; flex-wrap: wrap; align-items: flex-start; justify-content: space-between; gap: 24px; }
.footer .brand { font-size: 16px; }
.footer .brand img { width: 26px; height: 26px; }
.footer p { margin-top: 8px; color: var(--muted); font-size: 14px; max-width: 360px; }
.footer-links { display: flex; flex-wrap: wrap; gap: 8px 22px; font-size: 14px; }
.footer-links a { display: inline-flex; align-items: center; gap: 7px; color: var(--text); }
.footer-links a:hover { color: var(--green); }
.footer-links .ic { width: 15px; height: 15px; color: var(--muted); }

/* ---- Inner pages ------------------------------------------------------ */
.page-hero { padding: clamp(48px, 7vw, 80px) 0 clamp(28px, 4vw, 40px); border-bottom: 1px solid var(--border); background: var(--surface); }
.page-hero h1 { margin-top: 12px; font-size: clamp(32px, 5vw, 48px); letter-spacing: -0.03em; }
.page-hero p { margin-top: 12px; color: var(--muted); font-size: 18px; max-width: 640px; }
.page-hero .updated { font-size: 14px; }
.page-body { padding: clamp(32px, 5vw, 56px) 0 clamp(64px, 8vw, 96px); }
.narrow { max-width: 820px; }

.prose-card { padding: 24px 26px; border: 1px solid var(--border); border-radius: var(--radius); background: var(--surface); box-shadow: var(--shadow-sm); }
.prose-card + .prose-card { margin-top: 16px; }
.prose-card h2 { display: flex; align-items: center; gap: 10px; font-size: 20px; }
.prose-card h2 .ic { color: var(--green); width: 20px; height: 20px; }
.prose-card p, .prose-card li { color: var(--text); }
.prose-card p { margin-top: 10px; }
.prose-card ul { margin: 10px 0 0; padding-left: 20px; }
.prose-card li + li { margin-top: 6px; }
.prose-card.callout { border-color: rgba(14, 122, 67, 0.3); background: linear-gradient(rgba(14, 122, 67, 0.05), rgba(14, 122, 67, 0.05)), var(--surface); }

/* Releases */
.rel-top { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 16px; margin-bottom: 32px; }
.rel-toolbar { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 12px; margin-bottom: 16px; }
.rel-toolbar h2 { font-size: 22px; }
.toggle { display: inline-flex; align-items: center; gap: 10px; color: var(--text); font-size: 14px; font-weight: 500; cursor: pointer; user-select: none; }
.toggle input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.toggle .track { position: relative; width: 36px; height: 20px; border-radius: 999px; background: var(--border-strong); transition: background-color 0.15s ease; }
.toggle .track::after { content: ""; position: absolute; top: 2px; left: 2px; width: 16px; height: 16px; border-radius: 50%; background: #fff; box-shadow: 0 1px 2px rgba(0, 0, 0, 0.2); transition: transform 0.15s ease; }
.toggle input:checked + .track { background: var(--green); }
.toggle input:checked + .track::after { transform: translateX(16px); }
.toggle input:focus-visible + .track { outline: 2px solid var(--green); outline-offset: 2px; }

.rel-list { display: grid; gap: 14px; }
.release { padding: 22px 24px; border: 1px solid var(--border); border-radius: var(--radius); background: var(--surface); box-shadow: var(--shadow-sm); min-width: 0; }
.release.latest { border-color: rgba(14, 122, 67, 0.35); box-shadow: 0 0 0 3px var(--green-softer), var(--shadow-sm); }
.release-head { display: flex; align-items: center; flex-wrap: wrap; gap: 8px 12px; }
.release-head h3 { font-size: 20px; font-family: var(--mono); letter-spacing: -0.01em; }
.badge { display: inline-flex; align-items: center; height: 22px; padding: 0 8px; border-radius: 999px; font-size: 12px; font-weight: 700; }
.badge-latest { background: var(--green); color: #fff; }
.badge-pre { background: rgba(214, 150, 20, 0.14); color: #8a5a00; }
.release-date { margin-left: auto; color: var(--muted); font-size: 14px; }
.release-name { margin-top: 4px; color: var(--muted); }
.release .cmd { margin-top: 14px; }
.release .tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 12px; }
.release .tags span { display: inline-flex; align-items: center; gap: 5px; padding: 2px 9px; border: 1px solid var(--border); border-radius: 999px; font: 500 12px var(--mono); color: var(--text); background: var(--surface-2); }
.release .tags .ic { width: 12px; height: 12px; color: var(--green); }
.changelog { margin-top: 14px; border-top: 1px solid var(--border); padding-top: 12px; }
.changelog summary { cursor: pointer; color: var(--green); font-weight: 600; font-size: 14px; list-style: none; display: inline-flex; align-items: center; gap: 6px; }
.changelog summary::-webkit-details-marker { display: none; }
.changelog summary .ic { width: 14px; height: 14px; transition: transform 0.15s ease; }
.changelog[open] summary .ic { transform: rotate(90deg); }
.md { margin-top: 10px; font-size: 15px; color: var(--text); overflow-wrap: anywhere; }
.md h4 { margin: 14px 0 6px; font-size: 15px; }
.md h4:first-child { margin-top: 0; }
.md ul { margin: 6px 0; padding-left: 20px; }
.md li + li { margin-top: 3px; }
.md p + p { margin-top: 8px; }
.release-links { display: flex; flex-wrap: wrap; gap: 8px 18px; margin-top: 14px; font-size: 14px; }
.release-links a { display: inline-flex; align-items: center; gap: 6px; font-weight: 600; }
.release-links .ic { width: 15px; height: 15px; }
.state { padding: 40px 24px; border: 1px dashed var(--border-strong); border-radius: var(--radius); background: var(--surface); text-align: center; color: var(--muted); }
.state h3 { color: var(--ink); font-size: 17px; }
.state p { margin-top: 6px; }
.state .btn { margin-top: 16px; }
.pager { display: flex; align-items: center; justify-content: center; gap: 14px; margin-top: 24px; color: var(--muted); font-size: 14px; }
.pager .btn { min-height: 38px; padding: 8px 14px; }
.pager .btn:disabled { opacity: 0.45; cursor: default; }
.hidden, [hidden] { display: none !important; }

/* 404 */
.notfound { min-height: calc(100vh - 64px - 140px); display: grid; place-items: center; text-align: center; padding: 64px 0; }
.notfound .code404 { font: 700 clamp(72px, 14vw, 128px)/1 var(--mono); color: var(--green); letter-spacing: -0.04em; }
.notfound h1 { margin-top: 12px; font-size: clamp(24px, 4vw, 32px); }
.notfound p { margin-top: 10px; color: var(--muted); }
.notfound .actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-top: 24px; }

/* Monospace surfaces never use programming ligatures (placed after any `font` shorthand). */
pre, code, kbd, .term pre, .mock-address, .crow .port, .crow .name small, .lvl { font-variant-ligatures: none; }

/* ---- Scroll reveal ---------------------------------------------------- */
.js [data-reveal] { opacity: 0; transform: translateY(10px); transition: opacity 0.5s ease, transform 0.5s ease; transition-delay: var(--d, 0s); }
.js [data-reveal].in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js [data-reveal] { opacity: 1; transform: none; transition: none; }
  * { transition-duration: 0.01ms !important; }
}

/* ---- Responsive ------------------------------------------------------- */
@media (max-width: 1020px) {
  .hero-grid, .split { grid-template-columns: minmax(0, 1fr); }
  .hero .lede { max-width: 640px; }
  .features { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 760px) {
  .nav-toggle { display: inline-flex; }
  .nav {
    position: absolute; top: 64px; left: 0; right: 0;
    display: none; flex-direction: column; align-items: stretch; gap: 2px;
    padding: 10px var(--gutter) 16px;
    background: var(--surface); border-bottom: 1px solid var(--border); box-shadow: var(--shadow);
  }
  .topbar.open .nav { display: flex; }
  .nav a { padding: 11px 12px; }
  .nav .nav-gh { margin: 6px 0 0; justify-content: center; }
  .mock-body { grid-template-columns: minmax(0, 1fr); min-height: 0; }
  .mock-side { display: none; }
  .notes, .rel-top { grid-template-columns: minmax(0, 1fr); }
  .release-date { margin-left: 0; width: 100%; }
}
@media (max-width: 600px) {
  .features { grid-template-columns: minmax(0, 1fr); }
  .hero .actions .btn, .cta .actions .btn { flex: 1 1 auto; }
  .step { grid-template-columns: minmax(0, 1fr); padding: 18px; }
  .step::before { grid-row: auto; }
  .mock-main { padding: 12px; }
  .term pre { font-size: 11px; }
  .term-tabs span:not(.on) { display: none; }
  .copy-btn span { display: none; }
  .copy-btn { padding: 0 8px; }
  .prose-card, .release { padding: 20px 18px; }
}
