@font-face {
  font-family: "Geist";
  src: url("/assets/fonts/Geist-Variable.woff2") format("woff2");
  font-weight: 100 900;
  font-display: swap;
}
@font-face {
  font-family: "Geist Mono";
  src: url("/assets/fonts/GeistMono-Variable.woff2") format("woff2");
  font-weight: 100 900;
  font-display: swap;
}

:root {
  --bg: #0b0d12;
  --bg-2: #10131a;
  --line: #1f2430;
  --text: #e8eaf0;
  --muted: #9aa1b2;
  --accent: #f59e3d;      /* single accent: the warning amber from the Weft UI */
  --accent-ink: #1a1206;
  --err: #ff6b6b;         /* semantic only: squiggles and error output */
  --info: #7c9cff;        /* semantic only: terminal info lines */
  --add: #7ee2a8;
  --radius: 12px;
  --sans: "Geist", ui-sans-serif, system-ui, -apple-system, sans-serif;
  --mono: "Geist Mono", ui-monospace, "SF Mono", Menlo, monospace;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 80px; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 400 17px/1.6 var(--sans);
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
h1, h2, h3 { margin: 0; font-weight: 600; letter-spacing: -0.02em; text-wrap: balance; }
h2 { font-size: clamp(28px, 3.6vw, 44px); line-height: 1.1; }
h3 { font-size: 18px; letter-spacing: -0.01em; }
p { margin: 0; }
.wrap { width: min(1200px, 100% - 48px); margin-inline: auto; }
.fine { font-size: 14px; color: var(--muted); }
.fine a { color: var(--text); }
.section-sub { color: var(--muted); max-width: 62ch; margin-top: 16px; }
section { padding-block: 96px; }

/* Nav */
.nav {
  position: sticky; top: 0; z-index: 10;
  background: rgb(11 13 18 / 0.82);
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}
.nav-inner { display: flex; align-items: center; gap: 32px; height: 64px; }
.brand { display: inline-flex; align-items: center; gap: 10px; font-weight: 650; font-size: 19px; letter-spacing: -0.02em; text-decoration: none; }
.nav-links { display: flex; gap: 28px; margin-left: auto; }
.nav-links a { color: var(--muted); text-decoration: none; font-size: 15px; transition: color .2s; }
.nav-links a:hover { color: var(--text); }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  height: 46px; padding: 0 22px; border-radius: 999px;
  background: var(--accent); color: var(--accent-ink);
  font-weight: 600; font-size: 16px; text-decoration: none; white-space: nowrap;
  border: 1px solid var(--accent);
  transition: transform .2s cubic-bezier(.16,1,.3,1), background .2s, border-color .2s;
}
.btn:hover { background: #ffb15c; border-color: #ffb15c; }
.btn:active { transform: translateY(1px) scale(.98); }
.btn:focus-visible, a:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
.btn-ghost { background: transparent; color: var(--text); border-color: #343b4a; }
.btn-ghost:hover { background: var(--bg-2); border-color: #4a5366; }
.btn-small { height: 36px; padding: 0 16px; font-size: 14px; }
.ctas { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }

/* Hero */
.hero {
  display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: 56px; align-items: center;
  padding-top: 72px; padding-bottom: 56px;
  min-height: min(calc(100dvh - 64px - 120px), 760px);
}
.hero h1 { font-size: clamp(40px, 5vw, 64px); line-height: 1.04; letter-spacing: -0.035em; }
.lede { font-size: 19px; color: var(--muted); margin-top: 24px; max-width: 34ch; }
.squiggle {
  text-decoration-line: underline;
  text-decoration-style: wavy;
  text-decoration-color: var(--err);
  text-decoration-thickness: 2px;
  text-underline-offset: 8px;
  text-decoration-skip-ink: none;
}
.hero-shot {
  margin: 0; border-radius: var(--radius); overflow: hidden;
  border: 1px solid var(--line);
  box-shadow: 0 40px 100px -30px rgb(245 158 61 / 0.18), 0 20px 60px -20px rgb(0 0 0 / 0.6);
}

/* Works with */
.works-with { display: flex; align-items: baseline; gap: 24px; flex-wrap: wrap; padding-block: 24px 40px; border-bottom: 1px solid var(--line); }
.works-with p { color: var(--muted); font-size: 14px; }
.works-with ul { display: flex; flex-wrap: wrap; gap: 8px 28px; list-style: none; margin: 0; padding: 0; font-weight: 600; font-size: 18px; letter-spacing: -0.01em; }
.works-with .muted { color: var(--muted); font-weight: 400; font-size: 15px; }

/* Manifesto */
.manifesto { max-width: 820px; }
.manifesto h2 { font-size: clamp(36px, 5vw, 60px); }
.manifesto p { font-size: 21px; line-height: 1.5; color: var(--muted); margin-top: 24px; max-width: 58ch; }

/* How */
.how h2 { max-width: 20ch; }
.how-grid { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 7fr); gap: 56px; margin-top: 56px; align-items: start; }
.how-steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 32px; counter-reset: s; }
.how-steps li { padding-left: 20px; border-left: 2px solid var(--line); transition: border-color .4s; }
.how-steps li:hover { border-color: var(--accent); }
.how-steps p { color: var(--muted); margin-top: 6px; }
.how-shot { margin: 0; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); }

/* Terminal */
.terminal-section { background: var(--bg-2); border-block: 1px solid var(--line); }
.terminal { margin-top: 40px; border-radius: var(--radius); border: 1px solid var(--line); background: #07080c; overflow: hidden; }
.terminal-bar { padding: 12px 18px; border-bottom: 1px solid var(--line); font: 13px var(--mono); color: var(--muted); }
.terminal pre { margin: 0; padding: 22px 18px 26px; overflow-x: auto; font: 14px/1.65 var(--mono); }
.t-err { color: #ff8a8a; }
.t-info { color: var(--info); }
.t-del { color: #ff8a8a; }
.t-add { color: var(--add); }
.sq { text-decoration: underline wavy var(--err); text-underline-offset: 4px; text-decoration-skip-ink: none; }

/* Humans bento */
.bento {
  display: grid; margin-top: 48px; gap: 16px;
  grid-template-columns: minmax(0, 3fr) minmax(0, 5fr);
  grid-template-rows: auto auto;
}
.cell { margin: 0; border-radius: var(--radius); border: 1px solid var(--line); background: var(--bg-2); overflow: hidden; display: flex; flex-direction: column; }
.cell img { width: 100%; }
.cell figcaption { padding: 16px 20px 20px; color: var(--muted); font-size: 15px; }
.cell-phone {
  grid-row: span 2;
  background: radial-gradient(120% 70% at 50% 100%, rgb(245 158 61 / 0.16), transparent 60%), var(--bg-2);
}
.cell-phone figcaption { order: -1; padding-top: 22px; }
.cell-phone img { width: min(340px, 84%); margin: auto auto 0; border-radius: 32px 32px 0 0; border: 1px solid #2a3040; border-bottom: 0; }

/* Dogfood stats */
.dogfood { border-top: 1px solid var(--line); }
.stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0; margin: 48px 0 24px; }
.stats div { padding: 8px 24px 8px 0; display: flex; flex-direction: column-reverse; gap: 6px; }
.stats div + div { padding-left: 24px; border-left: 1px solid var(--line); }
.stats dd { margin: 0; font: 600 clamp(44px, 6vw, 72px)/1 var(--sans); letter-spacing: -0.04em; font-variant-numeric: tabular-nums; }
.stats div:last-child dd { color: var(--accent); }
.stats dt { color: var(--muted); font-size: 15px; }

/* Protocol */
.protocol { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: 64px; align-items: start; border-top: 1px solid var(--line); }
.protocol-copy p { color: var(--muted); margin-top: 20px; max-width: 52ch; }
.protocol-copy .fine { margin-top: 24px; }
.spec-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.spec-list a {
  display: grid; gap: 4px; padding: 20px 22px; text-decoration: none;
  border-radius: var(--radius); border: 1px solid var(--line); background: var(--bg-2);
  transition: border-color .2s, transform .3s cubic-bezier(.16,1,.3,1);
}
.spec-list a:hover { border-color: var(--accent); transform: translateX(4px); }
.spec-list strong { font-weight: 600; }
.spec-list span { color: var(--muted); font-size: 15px; }

/* Stack */
.stack { background: var(--bg-2); border-block: 1px solid var(--line); }
.stack-grid { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 40px 32px; margin-top: 48px; }
.stack-grid > div { grid-column: span 2; }
.stack-grid > div:nth-child(4) { grid-column: 2 / span 2; }
.stack-grid p { color: var(--muted); margin-top: 6px; font-size: 15px; }
.stack-grid h3 { padding-top: 14px; border-top: 2px solid var(--accent); }

/* Closing */
.closing { max-width: 760px; text-align: left; }
.closing h2 { font-size: clamp(32px, 4.4vw, 52px); }
.closing p { color: var(--muted); margin-top: 18px; }
.cmd { margin: 28px 0 0; padding: 18px 20px; border-radius: var(--radius); background: #07080c; border: 1px solid var(--line); overflow-x: auto; font: 14px/1.7 var(--mono); color: var(--text); }

/* Footer */
.footer { border-top: 1px solid var(--line); padding-block: 32px; color: var(--muted); font-size: 14px; }
.footer-inner { display: flex; gap: 28px; align-items: center; flex-wrap: wrap; }
.footer .brand { font-size: 16px; color: var(--text); }
.footer nav { display: flex; gap: 20px; flex-wrap: wrap; }
.footer nav a { text-decoration: none; }
.footer nav a:hover { color: var(--text); }
.footer p { margin-left: auto; }

/* Motion: reveal on scroll, hero entrance, squiggle draw */
@media (prefers-reduced-motion: no-preference) {
  .js .reveal { opacity: 0; transform: translateY(24px); transition: opacity .8s cubic-bezier(.16,1,.3,1), transform .8s cubic-bezier(.16,1,.3,1); }
  .js .reveal.in { opacity: 1; transform: none; }
  .hero-copy > * { animation: rise .9s cubic-bezier(.16,1,.3,1) both; }
  .hero-copy > :nth-child(2) { animation-delay: .08s; }
  .hero-copy > :nth-child(3) { animation-delay: .16s; }
  .hero-shot { animation: rise 1.1s .2s cubic-bezier(.16,1,.3,1) both; }
  .squiggle { animation: squiggle-in .6s .9s ease-out both; }
  @keyframes rise { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }
  @keyframes squiggle-in { from { text-decoration-color: transparent; } to { text-decoration-color: var(--err); } }
}

/* Responsive */
@media (max-width: 1024px) {
  .nav-links a:nth-child(3) { display: none; }
  .hero { grid-template-columns: minmax(0, 1fr); min-height: 0; gap: 40px; padding-top: 56px; }
  .lede { max-width: 48ch; }
  .how-grid, .protocol { grid-template-columns: minmax(0, 1fr); gap: 40px; }
}
@media (max-width: 767px) {
  body { font-size: 16px; }
  .wrap { width: calc(100% - 32px); }
  section { padding-block: 64px; }
  .nav-inner { gap: 16px; }
  .nav-links { display: none; }
  .nav-inner .btn-small { margin-left: auto; }
  .hero { padding-top: 40px; }
  .lede { font-size: 17px; }
  .manifesto p { font-size: 18px; }
  .bento { grid-template-columns: minmax(0, 1fr); }
  .cell-phone { grid-row: auto; }
  .stats { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 28px; }
  .stats div:nth-child(3) { padding-left: 0; border-left: 0; }
  .stack-grid { grid-template-columns: minmax(0, 1fr); gap: 28px; }
  .stack-grid > div, .stack-grid > div:nth-child(4) { grid-column: auto; }
  .terminal pre { font-size: 12px; }
  .footer p { margin-left: 0; width: 100%; }
}
