/* claudo — product page.
   Tokens come from design-system/claudo-board/MASTER.md so the page and the
   app are visibly the same thing: Dark OLED slate, one green that only ever
   means running, JetBrains Mono for anything a machine would print. */

:root {
  --bg: #0f172a;
  --card: #1b2336;
  --elevated: #212a40;
  --muted: #272f42;
  --fg: #f8fafc;
  --dim: #94a3b8;
  --line: #1e2a3f;
  --line-strong: #475569;
  --accent: #22c55e;
  --on-accent: #0f172a;
  --danger: #ef4444;
  --warn: #f59e0b;
  --info: #818cf8;
  --radius: 10px;
  --sans: "IBM Plex Sans", ui-sans-serif, system-ui, -apple-system, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
  --page: 1100px;
}

* { box-sizing: border-box; border-color: var(--line); }

html { color-scheme: dark; scroll-behavior: smooth; scroll-padding-top: 80px; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; }
::selection { background: var(--accent); color: var(--on-accent); }
:focus-visible { outline: 2px solid #fff; outline-offset: 3px; border-radius: 6px; }

.wrap { width: 100%; max-width: var(--page); margin: 0 auto; padding: 0 20px; }
.mono { font-family: var(--mono); font-variant-numeric: tabular-nums; }
.label {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--dim);
}
.dim { color: var(--dim); }
.accent { color: var(--accent); }

/* ── nav ─────────────────────────────────────────────────────────────── */
header.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}
.nav-in { display: flex; align-items: center; gap: 14px; height: 60px; }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 600; letter-spacing: -0.02em; text-decoration: none; }
.mark { display: grid; place-items: center; width: 30px; height: 30px; border-radius: 9px; background: var(--accent); color: var(--on-accent); }
.nav-links { margin-left: auto; display: flex; align-items: center; gap: 6px; }
.nav-links a { font-size: 14px; color: var(--dim); text-decoration: none; padding: 8px 10px; border-radius: 8px; }
.nav-links a:hover { color: var(--fg); background: var(--card); }

.btn {
  display: inline-flex; align-items: center; gap: 8px;
  min-height: 42px; padding: 0 18px;
  border: 1px solid transparent; border-radius: var(--radius);
  font: inherit; font-size: 14px; font-weight: 600; text-decoration: none;
  cursor: pointer; transition: transform .12s ease, filter .15s ease, background .15s ease;
}
.btn:active { transform: translateY(1px); }
.btn-accent { background: var(--accent); color: var(--on-accent); }
.btn-accent:hover { filter: brightness(1.1); }
.btn-quiet { background: var(--card); color: var(--fg); border-color: var(--line-strong); }
.btn-quiet:hover { background: var(--elevated); }
.nav .btn { min-height: 36px; padding: 0 14px; }

/* ── hero ────────────────────────────────────────────────────────────── */
.hero { position: relative; padding: 72px 0 40px; overflow: hidden; }
.hero::before {
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background-image: radial-gradient(rgba(148, 163, 184, 0.16) 1px, transparent 1px);
  background-size: 18px 18px;
  mask-image: radial-gradient(90% 70% at 20% 0%, #000, transparent 72%);
}
.pill {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 5px 12px; border: 1px solid var(--line-strong); border-radius: 999px;
  background: var(--card); font-family: var(--mono); font-size: 11px; color: var(--dim);
}
.dot { width: 7px; height: 7px; border-radius: 999px; background: var(--accent); animation: breathe 2s ease-in-out infinite; }
@keyframes breathe { 0%, 100% { opacity: 1 } 50% { opacity: .35 } }

h1 {
  margin: 20px 0 0;
  font-size: clamp(34px, 5.4vw, 58px);
  line-height: 1.03;
  letter-spacing: -0.035em;
  font-weight: 700;
  max-width: 17ch;
}
.lede { margin: 18px 0 0; max-width: 62ch; font-size: clamp(16px, 1.6vw, 18px); color: #cbd5e1; }
.cta-row { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin-top: 28px; }

.cmd {
  display: flex; align-items: center; gap: 10px;
  padding: 10px 10px 10px 14px; border: 1px solid var(--line-strong); border-radius: var(--radius);
  background: #0b1220; font-family: var(--mono); font-size: 13px;
}
.cmd span { color: var(--accent); }
.copy {
  margin-left: auto; display: grid; place-items: center; width: 30px; height: 30px;
  border: 0; border-radius: 7px; background: transparent; color: var(--dim); cursor: pointer;
}
.copy:hover { color: var(--fg); background: var(--muted); }

/* ── the board mock ──────────────────────────────────────────────────── */
.shot {
  margin-top: 48px; border: 1px solid var(--line-strong); border-radius: 14px;
  background: var(--bg); overflow: hidden;
  box-shadow: 0 40px 80px -40px rgba(0, 0, 0, .9);
}
.shot-bar { display: flex; align-items: center; gap: 7px; padding: 10px 14px; border-bottom: 1px solid var(--line); background: var(--card); }
.tl { width: 10px; height: 10px; border-radius: 999px; background: #334155; }
.shot-url { margin-left: 10px; font-family: var(--mono); font-size: 11px; color: var(--dim); }
.board { display: grid; grid-template-columns: 170px 1fr; min-height: 300px; }
.board-side { border-right: 1px solid var(--line); padding: 14px 10px; }
.side-item { display: flex; align-items: center; gap: 8px; padding: 7px 9px; border-radius: 8px; font-size: 13px; color: var(--dim); }
.side-item.on { background: var(--card); color: var(--fg); font-weight: 500; }
.side-item b { margin-left: auto; font-family: var(--mono); font-size: 11px; font-weight: 400; color: var(--dim); }
.sd { width: 6px; height: 6px; border-radius: 999px; }
.kpis { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; padding: 14px; }
.kpi { border: 1px solid var(--line); border-radius: var(--radius); background: var(--card); padding: 10px 12px; }
.kpi b { display: block; font-family: var(--mono); font-size: 20px; font-weight: 600; margin-top: 2px; }
.rows { width: 100%; border-collapse: collapse; font-size: 13px; }
.rows th { text-align: left; padding: 6px 12px; border-bottom: 1px solid var(--line); }
.rows td { padding: 9px 12px; border-bottom: 1px solid var(--line); vertical-align: top; }
.rows tr:last-child td { border-bottom: 0; }
.name { font-weight: 600; letter-spacing: -0.01em; }
.path { font-family: var(--mono); font-size: 10.5px; color: var(--dim); }
.chip {
  display: inline-flex; align-items: center; gap: 6px; white-space: nowrap;
  padding: 3px 8px; border-radius: 7px; font-family: var(--mono); font-size: 11px;
}
.c-live { background: rgba(34, 197, 94, .12); color: var(--accent); }
.c-blocked { background: rgba(239, 68, 68, .12); color: var(--danger); }
.c-ship { background: rgba(129, 140, 248, .12); color: var(--info); }
.c-stall { background: rgba(245, 158, 11, .12); color: var(--warn); }
.num { font-family: var(--mono); text-align: right; white-space: nowrap; }

/* The live strip, as the product draws it. */
.strip { margin-top: 34px; border: 1px solid var(--line-strong); border-radius: 12px; background: var(--card); padding: 14px 16px 12px; }
.strip-head { display: flex; justify-content: space-between; padding-bottom: 10px; border-bottom: 1px solid var(--line); margin-bottom: 10px; }
.strip-row { display: flex; align-items: center; gap: 9px; font-size: 13.5px; }
.strip-row b { font-weight: 600; }
.strip-row .path { font-size: 11px; }
.strip-state { margin-left: auto; font-size: 11px; color: var(--dim); }
.strip-recap { margin: 3px 0 14px 16px; font-size: 13px; color: #cbd5e1; max-width: 78ch; }
.strip-recap:last-of-type { margin-bottom: 10px; }
.strip-foot { padding-top: 9px; border-top: 1px solid var(--line); font-size: 11px; color: var(--dim); }

/* ── sections ────────────────────────────────────────────────────────── */
section { padding: 72px 0; border-top: 1px solid var(--line); }
h2 { margin: 10px 0 0; font-size: clamp(25px, 3.2vw, 34px); line-height: 1.12; letter-spacing: -0.03em; font-weight: 700; max-width: 20ch; }
.sub { margin: 14px 0 0; max-width: 60ch; color: var(--dim); }
.grid { display: grid; gap: 14px; margin-top: 36px; }
.g3 { grid-template-columns: repeat(3, 1fr); }
.g2 { grid-template-columns: repeat(2, 1fr); }
.card {
  border: 1px solid var(--line); border-radius: 12px; background: var(--card); padding: 20px;
}
.card h3 { margin: 12px 0 6px; font-size: 16px; letter-spacing: -0.015em; }
.card p { margin: 0; font-size: 14px; color: var(--dim); }
.ico { display: grid; place-items: center; width: 32px; height: 32px; border-radius: 9px; background: var(--muted); color: var(--accent); }
.ico svg { width: 17px; height: 17px; fill: none; stroke: currentColor; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }

.flow { display: grid; gap: 10px; margin-top: 36px; grid-template-columns: repeat(3, 1fr); }
.step { border: 1px solid var(--line); border-radius: 12px; padding: 20px; background: var(--card); position: relative; }
.step .n { font-family: var(--mono); font-size: 11px; color: var(--accent); }
.step h3 { margin: 8px 0 6px; font-size: 15px; }
.step p { margin: 0; font-size: 13.5px; color: var(--dim); }

pre {
  margin: 0; padding: 18px; overflow-x: auto;
  border: 1px solid var(--line-strong); border-radius: 12px; background: #0b1220;
  font-family: var(--mono); font-size: 13px; line-height: 1.75;
}
pre .c { color: var(--dim); }
pre .g { color: var(--accent); }

footer { border-top: 1px solid var(--line); padding: 36px 0 56px; color: var(--dim); font-size: 13px; }
.foot-in { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.foot-in a { color: var(--dim); }
.foot-in a:hover { color: var(--fg); }

/* Motion 5/10: things arrive as you reach them, once, and never if you
   asked the system not to animate. */
.reveal { opacity: 0; transform: translateY(14px); transition: opacity .5s ease, transform .5s cubic-bezier(.22,1,.36,1); }
.reveal.in { opacity: 1; transform: none; }
.reveal:nth-child(2) { transition-delay: .06s }
.reveal:nth-child(3) { transition-delay: .12s }
.reveal:nth-child(4) { transition-delay: .18s }
.reveal:nth-child(5) { transition-delay: .24s }
.reveal:nth-child(6) { transition-delay: .3s }

@media (max-width: 860px) {
  .g3, .g2, .flow { grid-template-columns: 1fr; }
  .board { grid-template-columns: 1fr; }
  .board-side { display: none; }
  .kpis { grid-template-columns: repeat(2, 1fr); }
  .hide-sm { display: none; }
  .hero { padding-top: 48px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
  .reveal { opacity: 1; transform: none; }
}
