/* ============================================================
   shortorder — landing page styles
   Receipt-forward · playful · dark/light
   ============================================================ */

/* ---- Fonts ---- */
@import url('https://fonts.googleapis.com/css2?family=Space+Grotesk:wght@400;500;600;700&family=JetBrains+Mono:wght@400;500;600;700&display=swap');

/* ---- Tokens ---- */
:root {
  --font-display: 'Space Grotesk', system-ui, sans-serif;
  --font-mono: 'JetBrains Mono', ui-monospace, monospace;

  /* accents (oklch, shared chroma/lightness, varied hue) */
  --green:  oklch(0.74 0.14 156);
  --blue:   oklch(0.66 0.15 250);
  --amber:  oklch(0.78 0.14 68);
  --purple: oklch(0.67 0.15 300);

  /* primary accent — overridable via tweak */
  --accent: var(--green);
  --accent-ink: #06140d; /* readable text on accent */

  /* receipt paper is always paper, regardless of theme */
  --paper: #f6f2e7;
  --paper-2: #efe9da;
  --ink: #16150f;
  --ink-dim: #6a6657;

  --maxw: 1180px;
  --radius: 14px;
  --radius-sm: 9px;

  --shadow-1: 0 1px 2px rgba(0,0,0,.18), 0 8px 24px -12px rgba(0,0,0,.4);
  --shadow-2: 0 2px 6px rgba(0,0,0,.22), 0 24px 60px -24px rgba(0,0,0,.55);
}

/* dark (default) */
:root, [data-theme="dark"] {
  --bg:      #0c0e10;
  --bg-grid: #0e1113;
  --surface: #14171a;
  --surface-2: #181c20;
  --surface-3: #1e2329;
  --border:  rgba(255,255,255,.085);
  --border-2: rgba(255,255,255,.14);
  --text:    #e9e7e0;
  --text-dim:#9aa1a8;
  --text-faint:#646b72;
  --accent-ink: #06140d;
  color-scheme: dark;
}

[data-theme="light"] {
  --bg:      #eceadf;
  --bg-grid: #efece2;
  --surface: #fbf9f2;
  --surface-2: #f4f1e7;
  --surface-3: #ffffff;
  --border:  rgba(28,25,18,.12);
  --border-2: rgba(28,25,18,.2);
  --text:    #1b1915;
  --text-dim:#605c50;
  --text-faint:#8d887a;
  --accent-ink: #06140d;
  color-scheme: light;
}

/* ---- Reset ---- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 84px; }
body {
  margin: 0;
  font-family: var(--font-display);
  background: var(--bg);
  color: var(--text);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; }
::selection { background: var(--accent); color: var(--accent-ink); }

/* subtle dotted background texture */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  background-image: radial-gradient(currentColor 1px, transparent 1.4px);
  background-size: 26px 26px;
  color: var(--text);
  opacity: .025;
}

.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 28px; position: relative; z-index: 1; }

/* ---- Typography helpers ---- */
.mono { font-family: var(--font-mono); }
.eyebrow {
  font-family: var(--font-mono);
  font-size: 12.5px;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--text-faint);
  font-weight: 600;
}
.accent-text { color: var(--accent); }

h1, h2, h3 { font-weight: 600; letter-spacing: -.02em; margin: 0; text-wrap: balance; }

/* ============================================================
   NAV
   ============================================================ */
.nav {
  position: sticky; top: 0; z-index: 50;
  background: color-mix(in srgb, var(--bg) 80%, transparent);
  backdrop-filter: blur(14px) saturate(1.4);
  -webkit-backdrop-filter: blur(14px) saturate(1.4);
  border-bottom: 1px solid var(--border);
}
.nav-inner {
  max-width: var(--maxw); margin: 0 auto;
  height: 62px; padding: 0 28px;
  display: flex; align-items: center; gap: 22px;
}
.brand { display: flex; align-items: center; gap: 10px; font-family: var(--font-mono); font-weight: 700; font-size: 17px; letter-spacing: -.01em; }
.brand .glyph {
  width: 26px; height: 26px; display: grid; place-items: center;
  background: var(--accent); color: var(--accent-ink); border-radius: 7px;
  font-size: 15px; box-shadow: var(--shadow-1);
}
.ver-pill {
  font-family: var(--font-mono); font-size: 11px; font-weight: 600;
  color: var(--text-dim); border: 1px solid var(--border);
  padding: 2px 7px; border-radius: 999px;
}
.nav-links { display: flex; align-items: center; gap: 4px; margin-left: 8px; }
.nav-links a {
  font-size: 14px; color: var(--text-dim); padding: 7px 11px; border-radius: 8px;
  transition: color .15s, background .15s; font-weight: 500; white-space: nowrap;
}
.nav-links a:hover { color: var(--text); background: var(--surface-2); }
.nav-right { margin-left: auto; display: flex; align-items: center; gap: 10px; }

.icon-btn {
  width: 38px; height: 38px; display: grid; place-items: center;
  border: 1px solid var(--border); background: var(--surface);
  color: var(--text-dim); border-radius: 9px; transition: .15s;
}
.icon-btn:hover { color: var(--text); border-color: var(--border-2); }
.icon-btn svg { width: 17px; height: 17px; }
.theme-toggle .moon { display: none; }
[data-theme="light"] .theme-toggle .sun { display: none; }
[data-theme="light"] .theme-toggle .moon { display: block; }

/* ---- Buttons ---- */
.btn {
  display: inline-flex; align-items: center; gap: 9px;
  padding: 11px 17px; border-radius: 10px; font-size: 14.5px; font-weight: 600;
  border: 1px solid transparent; transition: .16s; white-space: nowrap;
}
.btn svg { width: 16px; height: 16px; }
.btn-primary { background: var(--accent); color: var(--accent-ink); }
.btn-primary:hover { filter: brightness(1.07); transform: translateY(-1px); }
.btn-ghost { background: var(--surface); color: var(--text); border-color: var(--border-2); }
.btn-ghost:hover { background: var(--surface-2); border-color: var(--text-faint); transform: translateY(-1px); }
.btn-lg { padding: 14px 22px; font-size: 15.5px; border-radius: 11px; }

/* ============================================================
   SECTION scaffolding
   ============================================================ */
section { padding: 92px 0; position: relative; }
.section-head { max-width: 720px; margin-bottom: 46px; }
.section-head h2 { font-size: clamp(28px, 4vw, 40px); margin-top: 14px; line-height: 1.08; }
.section-head p { color: var(--text-dim); font-size: 17px; margin: 14px 0 0; }
.divider { border: none; border-top: 1px dashed var(--border-2); margin: 0; opacity: .8; }

/* ============================================================
   HERO (shared)
   ============================================================ */
.hero { padding: 70px 0 84px; }

.hero h1 {
  font-size: clamp(38px, 6vw, 66px); line-height: 1.02; letter-spacing: -.035em;
  margin-top: 0;
}
.hero h1 .pop { color: var(--accent); }
.hero-sub { font-size: clamp(16px, 2vw, 19px); color: var(--text-dim); max-width: 560px; margin: 22px 0 0; line-height: 1.55; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; margin-top: 30px; }

/* install command chip used in hero */
.cmd-chip {
  display: inline-flex; align-items: center; gap: 12px;
  font-family: var(--font-mono); font-size: 14px;
  background: var(--surface); border: 1px solid var(--border-2);
  padding: 11px 11px 11px 16px; border-radius: 11px; color: var(--text);
}
.cmd-chip .prompt { color: var(--accent); }
.cmd-chip .copy-mini {
  border: 1px solid var(--border); background: var(--surface-2); color: var(--text-dim);
  width: 30px; height: 30px; border-radius: 7px; display: grid; place-items: center; transition: .15s;
}
.cmd-chip .copy-mini:hover { color: var(--text); border-color: var(--border-2); }
.cmd-chip .copy-mini svg { width: 14px; height: 14px; }

/* hero layout variants are controlled by [data-hero] on .hero-stage */
.hero-stage { display: none; }
.hero-stage.active { display: block; }

/* --- Hero A: split --- */
.heroA-grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: 54px; align-items: center; }

/* --- Hero B: receipt-as-hero --- */
.heroB { text-align: center; }
.heroB .hero-sub { margin-left: auto; margin-right: auto; }
.heroB .hero-cta { justify-content: center; }
.heroB-receipt-wrap { margin-top: 50px; display: flex; justify-content: center; }

/* --- Hero C: agent flow --- */
.heroC-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 54px; align-items: center; }

/* ============================================================
   RECEIPT component (the signature motif)
   ============================================================ */
.receipt {
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-mono);
  width: 340px;
  position: relative;
  box-shadow: var(--shadow-2);
  filter: drop-shadow(0 2px 0 rgba(0,0,0,.04));
}
/* torn top + bottom edges via mask */
.receipt-paper {
  background: var(--paper);
  padding: 26px 26px 30px;
  position: relative;
  -webkit-mask:
    linear-gradient(#000 0 0) center / 100% calc(100% - 18px) no-repeat,
    radial-gradient(circle at 8px 9px, #0000 8px, #000 8.5px) top    left / 16px 12px repeat-x,
    radial-gradient(circle at 8px 3px, #0000 8px, #000 8.5px) bottom left / 16px 12px repeat-x;
          mask:
    linear-gradient(#000 0 0) center / 100% calc(100% - 18px) no-repeat,
    radial-gradient(circle at 8px 9px, #0000 8px, #000 8.5px) top    left / 16px 12px repeat-x,
    radial-gradient(circle at 8px 3px, #0000 8px, #000 8.5px) bottom left / 16px 12px repeat-x;
}
/* faint thermal paper sheen */
.receipt-paper::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: repeating-linear-gradient(180deg, rgba(0,0,0,.018) 0 1px, transparent 1px 3px);
}
.r-center { text-align: center; }
.r-big { font-size: 21px; font-weight: 700; letter-spacing: .04em; }
.r-small { font-size: 11px; color: var(--ink-dim); letter-spacing: .03em; }
.r-line { font-size: 12.5px; line-height: 1.7; }
.r-rule { border: none; border-top: 1px dashed rgba(0,0,0,.32); margin: 12px 0; }
.r-rule-solid { border: none; border-top: 1px solid rgba(0,0,0,.55); margin: 12px 0; }
.r-row { display: flex; justify-content: space-between; gap: 12px; font-size: 12.5px; line-height: 1.85; }
.r-row .qty { color: var(--ink-dim); }
.r-total { font-weight: 700; font-size: 14px; }
.r-barcode {
  height: 46px; margin: 6px auto 4px; width: 80%;
  background: repeating-linear-gradient(90deg, var(--ink) 0 2px, transparent 2px 4px, var(--ink) 4px 5px, transparent 5px 9px, var(--ink) 9px 12px, transparent 12px 14px);
}
.r-qr {
  width: 118px; height: 118px; margin: 6px auto; image-rendering: pixelated;
}

/* ============================================================
   PRINTER + animated print demo (hero A)
   ============================================================ */
.printer-rig { position: relative; width: 360px; margin: 0 auto; }
.printer {
  position: relative; z-index: 3;
  background: linear-gradient(180deg, var(--surface-3), var(--surface));
  border: 1px solid var(--border-2);
  border-radius: 16px 16px 12px 12px;
  padding: 18px 22px 14px;
  box-shadow: var(--shadow-2);
}
.printer-top { display: flex; align-items: center; gap: 10px; margin-bottom: 14px; }
.printer-top .led { width: 9px; height: 9px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 10px var(--accent); animation: blink 2.4s infinite; }
@keyframes blink { 0%,92%,100%{opacity:1} 95%{opacity:.35} }
.printer-top .name { font-family: var(--font-mono); font-size: 12px; color: var(--text-dim); letter-spacing: .04em; }
.printer-top .status { margin-left: auto; font-family: var(--font-mono); font-size: 10.5px; color: var(--accent); border: 1px solid color-mix(in srgb, var(--accent) 40%, transparent); padding: 2px 8px; border-radius: 999px; }
.printer-slot {
  height: 14px; border-radius: 4px;
  background: linear-gradient(180deg, #000, #0a0c0e 60%, var(--surface-3));
  box-shadow: inset 0 3px 6px rgba(0,0,0,.6);
  position: relative;
}
/* receipt feeding out from behind the printer */
.print-feed {
  position: absolute; left: 50%; transform: translateX(-50%);
  top: calc(100% - 8px); width: 300px; z-index: 1;
  display: flex; justify-content: center;
}
.feed-paper {
  width: 280px; background: var(--paper); color: var(--ink);
  font-family: var(--font-mono); padding: 20px 22px 26px;
  box-shadow: var(--shadow-2);
  -webkit-mask:
    linear-gradient(#000 0 0) top/100% calc(100% - 11px) no-repeat,
    radial-gradient(circle at 8px 11px, #0000 8px, #000 8.5px) bottom left / 16px 11px repeat-x;
          mask:
    linear-gradient(#000 0 0) top/100% calc(100% - 11px) no-repeat,
    radial-gradient(circle at 8px 11px, #0000 8px, #000 8.5px) bottom left / 16px 11px repeat-x;
}

/* ============================================================
   AGENT FLOW (hero C) + diagram cards
   ============================================================ */
.chat-bubble {
  background: var(--surface); border: 1px solid var(--border); border-radius: 14px 14px 14px 4px;
  padding: 14px 16px; font-size: 14.5px; max-width: 320px; box-shadow: var(--shadow-1);
}
.chat-bubble .who { font-family: var(--font-mono); font-size: 11px; color: var(--text-faint); margin-bottom: 5px; letter-spacing: .05em; }
.flow-arrow { display: grid; place-items: center; color: var(--text-faint); }
.tool-call {
  font-family: var(--font-mono); font-size: 12.5px; background: var(--surface-2);
  border: 1px solid var(--border-2); border-radius: 11px; padding: 13px 15px; box-shadow: var(--shadow-1);
}
.tool-call .tc-head { color: var(--purple); margin-bottom: 7px; display: flex; align-items: center; gap: 7px; font-weight: 600; }
.tool-call .tc-line { color: var(--text-dim); line-height: 1.7; }
.tool-call .tc-line .k { color: var(--text); }

/* ============================================================
   CARDS
   ============================================================ */
.card-grid { display: grid; gap: 18px; }
.cols-3 { grid-template-columns: repeat(3, 1fr); }
.cols-2 { grid-template-columns: repeat(2, 1fr); }
.card {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 26px; transition: .18s; position: relative; overflow: hidden;
}
.card:hover { border-color: var(--border-2); transform: translateY(-3px); box-shadow: var(--shadow-1); }
.card .ci {
  width: 40px; height: 40px; border-radius: 10px; display: grid; place-items: center;
  background: color-mix(in srgb, var(--accent) 14%, transparent);
  color: var(--accent); margin-bottom: 16px; border: 1px solid color-mix(in srgb, var(--accent) 26%, transparent);
}
.card .ci svg { width: 20px; height: 20px; }
.card h3 { font-size: 18px; margin-bottom: 8px; }
.card p { color: var(--text-dim); font-size: 14.5px; margin: 0; line-height: 1.6; }
.card .ci.purple { background: color-mix(in srgb, var(--purple) 14%, transparent); color: var(--purple); border-color: color-mix(in srgb, var(--purple) 26%, transparent); }
.card .ci.blue { background: color-mix(in srgb, var(--blue) 14%, transparent); color: var(--blue); border-color: color-mix(in srgb, var(--blue) 26%, transparent); }
.card .ci.amber { background: color-mix(in srgb, var(--amber) 16%, transparent); color: var(--amber); border-color: color-mix(in srgb, var(--amber) 30%, transparent); }

/* ============================================================
   CODE BLOCKS + tabs
   ============================================================ */
.codeblock {
  background: var(--surface); border: 1px solid var(--border-2); border-radius: var(--radius);
  overflow: hidden; box-shadow: var(--shadow-1);
}
.code-tabs {
  display: flex; gap: 2px; padding: 9px 12px; border-bottom: 1px solid var(--border);
  background: var(--surface-2); overflow-x: auto; scrollbar-width: thin;
}
.code-tab {
  font-family: var(--font-mono); font-size: 12.5px; color: var(--text-dim);
  background: transparent; border: 1px solid transparent; padding: 6px 12px; border-radius: 8px;
  white-space: nowrap; transition: .14s; font-weight: 500;
}
.code-tab:hover { color: var(--text); }
.code-tab.active { color: var(--accent); background: var(--surface); border-color: var(--border); }
.code-body { position: relative; }
.code-pane { display: none; }
.code-pane.active { display: block; }
.code-pre {
  margin: 0; padding: 22px 24px; font-family: var(--font-mono); font-size: 13.5px;
  line-height: 1.75; color: var(--text); overflow-x: auto; tab-size: 2;
  white-space: pre; scrollbar-width: thin;
}
.code-pre .c-method { color: var(--accent); font-weight: 600; }
.code-pre .c-url { color: var(--blue); }
.code-pre .c-flag { color: var(--text-faint); }
.code-pre .c-str { color: var(--amber); }
.code-pre .c-key { color: var(--purple); }
.code-pre .c-comment { color: var(--text-faint); font-style: italic; }
[data-theme="light"] .code-pre .c-comment { color: var(--text-faint); }
.copy-btn {
  position: absolute; top: 14px; right: 14px; z-index: 2;
  display: inline-flex; align-items: center; gap: 6px;
  font-family: var(--font-mono); font-size: 11.5px; color: var(--text-dim);
  background: var(--surface-2); border: 1px solid var(--border-2); padding: 6px 10px; border-radius: 8px; transition: .14s;
}
.copy-btn:hover { color: var(--text); border-color: var(--text-faint); }
.copy-btn.copied { color: var(--accent); border-color: var(--accent); }
.copy-btn svg { width: 13px; height: 13px; }

/* try-it split: code + mini receipt preview */
.tryit-grid { display: grid; grid-template-columns: 1.55fr .9fr; gap: 26px; align-items: start; }
.tryit-preview {
  display: flex; flex-direction: column; align-items: center; gap: 12px;
  background: var(--surface-2); border: 1px dashed var(--border-2); border-radius: var(--radius); padding: 30px 22px;
}
.tryit-preview .ptitle { font-family: var(--font-mono); font-size: 11px; color: var(--text-faint); letter-spacing: .1em; text-transform: uppercase; }

/* ============================================================
   TOOL CHIPS
   ============================================================ */
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 22px; }
.chip {
  font-family: var(--font-mono); font-size: 12.5px; color: var(--text);
  background: var(--surface); border: 1px solid var(--border-2); padding: 7px 12px; border-radius: 999px;
}
.chip .c-mark { color: var(--accent); }

/* ============================================================
   HOW IT WORKS — pipeline
   ============================================================ */
.pipeline { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin-top: 8px; }
.pipe-step {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 20px 18px;
  position: relative;
}
.pipe-step .pn { font-family: var(--font-mono); font-size: 11px; color: var(--accent); font-weight: 700; }
.pipe-step h4 { margin: 8px 0 6px; font-size: 15px; font-weight: 600; }
.pipe-step p { margin: 0; font-size: 13px; color: var(--text-dim); line-height: 1.55; }
.pipe-step .pipe-arrow { position: absolute; right: -10px; top: 50%; transform: translateY(-50%); color: var(--text-faint); z-index: 2; }
.pipe-step:last-child .pipe-arrow { display: none; }

.split-paths { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; margin-top: 30px; }
.path {
  border: 1px solid var(--border); border-radius: var(--radius); padding: 24px; background: var(--surface);
}
.path h4 { font-size: 16px; display: flex; align-items: center; gap: 10px; margin-bottom: 12px; }
.path .tag { font-family: var(--font-mono); font-size: 10.5px; padding: 3px 8px; border-radius: 6px; border: 1px solid var(--border-2); color: var(--text-dim); }
.path ul { margin: 0; padding-left: 18px; color: var(--text-dim); font-size: 14px; line-height: 1.7; }
.path code { font-family: var(--font-mono); color: var(--accent); font-size: 13px; }

/* ============================================================
   HARDWARE table
   ============================================================ */
.hw-table { width: 100%; border-collapse: collapse; font-size: 14.5px; }
.hw-table th, .hw-table td { text-align: left; padding: 15px 16px; border-bottom: 1px solid var(--border); }
.hw-table th { font-family: var(--font-mono); font-size: 11px; letter-spacing: .1em; text-transform: uppercase; color: var(--text-faint); font-weight: 600; }
.hw-table tr:last-child td { border-bottom: none; }
.hw-table .model { font-weight: 600; }
.hw-table .iface { font-family: var(--font-mono); font-size: 12.5px; color: var(--text-dim); }
.status-pill { font-family: var(--font-mono); font-size: 11px; padding: 3px 10px; border-radius: 999px; font-weight: 600; }
.status-pill.ok { color: var(--accent); background: color-mix(in srgb, var(--accent) 14%, transparent); }
.status-pill.works { color: var(--blue); background: color-mix(in srgb, var(--blue) 14%, transparent); }
.hw-note { margin-top: 18px; color: var(--text-dim); font-size: 14px; }
.hw-note code { font-family: var(--font-mono); color: var(--accent); font-size: 13px; }

/* ============================================================
   INSTALL
   ============================================================ */
.install-grid { display: grid; grid-template-columns: 260px 1fr; gap: 24px; align-items: start; }
.os-list { display: flex; flex-direction: column; gap: 7px; }
.os-btn {
  display: flex; align-items: center; gap: 12px; text-align: left;
  background: var(--surface); border: 1px solid var(--border); border-radius: 11px; padding: 14px 16px;
  color: var(--text-dim); transition: .15s; font-size: 14.5px; font-weight: 500; width: 100%;
}
.os-btn:hover { border-color: var(--border-2); color: var(--text); }
.os-btn.active { border-color: var(--accent); color: var(--text); background: color-mix(in srgb, var(--accent) 8%, var(--surface)); }
.os-btn .oi { width: 20px; height: 20px; display: grid; place-items: center; color: var(--text-faint); }
.os-btn.active .oi { color: var(--accent); }
.os-btn b { font-weight: 600; }
.os-btn small { display: block; font-size: 11.5px; color: var(--text-faint); font-weight: 400; margin-top: 2px; }
.install-pane { display: none; }
.install-pane.active { display: block; }
.install-note {
  margin: 0; padding: 20px 112px 0 24px;
  color: var(--text-dim); font-size: 14px; line-height: 1.5;
}
.install-note a { color: var(--accent); font-weight: 600; }
.install-note a:hover { text-decoration: underline; }
.install-note code { font-family: var(--font-mono); color: var(--text); }
.install-note + .code-pre { padding-top: 12px; }

/* ============================================================
   CONTRIBUTE
   ============================================================ */
.contribute {
  background: var(--surface); border: 1px solid var(--border-2); border-radius: 20px;
  padding: 54px 48px; position: relative; overflow: hidden;
}
.contribute::before {
  content: ""; position: absolute; right: -60px; top: -60px; width: 260px; height: 260px;
  background: radial-gradient(circle, color-mix(in srgb, var(--accent) 18%, transparent), transparent 70%);
  pointer-events: none;
}
.contribute-grid { display: grid; grid-template-columns: 1.2fr 1fr; gap: 40px; align-items: center; position: relative; }
.contribute h2 { font-size: clamp(26px, 3.5vw, 36px); line-height: 1.1; }
.contribute p { color: var(--text-dim); font-size: 16px; margin: 16px 0 0; }
.contribute .hero-cta { margin-top: 28px; }
.cstats { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.cstat { background: var(--surface-2); border: 1px solid var(--border); border-radius: 12px; padding: 18px; }
.cstat .num { font-family: var(--font-mono); font-size: 22px; font-weight: 700; color: var(--accent); }
.cstat .lab { font-size: 12.5px; color: var(--text-dim); margin-top: 3px; }

/* ============================================================
   FOOTER
   ============================================================ */
.footer { border-top: 1px solid var(--border); padding: 56px 0 40px; }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 32px; }
.footer .brand { margin-bottom: 14px; }
.footer-tag { color: var(--text-dim); font-size: 14px; max-width: 280px; }
.footer-col h5 { font-family: var(--font-mono); font-size: 11px; letter-spacing: .1em; text-transform: uppercase; color: var(--text-faint); margin: 0 0 14px; font-weight: 600; }
.footer-col a { display: block; color: var(--text-dim); font-size: 14px; padding: 5px 0; transition: color .14s; }
.footer-col a:hover { color: var(--accent); }
.footer-bottom { margin-top: 44px; padding-top: 24px; border-top: 1px dashed var(--border); display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; font-family: var(--font-mono); font-size: 12.5px; color: var(--text-faint); }

/* ============================================================
   reveal on scroll
   ============================================================ */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .6s cubic-bezier(.2,.7,.2,1), transform .6s cubic-bezier(.2,.7,.2,1); }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  * { animation: none !important; }
  html { scroll-behavior: auto; }
}

/* ============================================================
   responsive
   ============================================================ */
@media (max-width: 900px) {
  .heroA-grid, .heroC-grid, .tryit-grid, .install-grid, .contribute-grid, .footer-grid { grid-template-columns: 1fr; }
  .cols-3, .cols-2, .pipeline, .split-paths { grid-template-columns: 1fr; }
  .nav-links { display: none; }
  .heroA-grid .printer-rig, .heroC-grid > div:last-child { margin-top: 18px; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  section { padding: 66px 0; }
  .contribute { padding: 36px 26px; }
}
@media (max-width: 560px) {
  .footer-grid { grid-template-columns: 1fr; }
  .wrap { padding: 0 20px; }
  .nav-inner { padding: 0 18px; }
}
