:root {
  --bg: #141210;
  --text: #ece8e2;
  --muted: #98928a;
  --faint: #676159;
  --accent: #ff5c1f;
  --accent-text: #ff7a45;
  --on-accent: #ffffff;
  --line: #292521;
  --line-strong: #3b352f;
}
:root[data-theme="light"] {
  --bg: #f3f0ea;
  --text: #1b1917;
  --muted: #6b655d;
  --faint: #9b948a;
  --accent: #d14a15;
  --accent-text: #b83e0e;
  --on-accent: #ffffff;
  --line: #ddd7cc;
  --line-strong: #c4bdb0;
}
* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  background: var(--bg); color: var(--text);
  font-family: 'Archivo', -apple-system, 'Helvetica Neue', sans-serif;
  font-weight: 400; line-height: 1.55; font-size: 16px;
  -webkit-font-smoothing: antialiased;
  transition: background .2s ease, color .2s ease;
}
.wrap { max-width: 1200px; margin: 0 auto; padding: 0 40px; }
@media (max-width: 720px) { .wrap { padding: 0 20px; } }

/* ---------- top bar ---------- */
.bar {
  display: flex; justify-content: space-between; align-items: center;
  padding: 22px 0; border-bottom: 1px solid var(--line);
}
.logo { display: flex; align-items: center; gap: 10px; font-weight: 640; font-size: 17px; letter-spacing: -0.2px; color: var(--text); text-decoration: none; }
.logo svg { width: 24px; height: 24px; }
.bar-right { display: flex; align-items: center; gap: 28px; }
.bar-link { color: var(--muted); text-decoration: none; font-size: 14px; }
.bar-link:hover { color: var(--text); }
.mode {
  background: none; border: none; color: var(--muted); cursor: pointer;
  font-family: 'IBM Plex Mono', monospace; font-size: 12px; letter-spacing: 1px;
}
.mode:hover { color: var(--text); }
.btn {
  display: inline-block; background: var(--accent); color: var(--on-accent);
  font-weight: 640; font-size: 14px; padding: 11px 20px; border-radius: 3px;
  text-decoration: none; border: none; cursor: pointer; letter-spacing: 0.1px;
}
.btn:hover { opacity: .9; }
@media (max-width: 720px) { .bar-link { display: none; } }

/* ---------- hero ---------- */
.hero { padding: 96px 0 72px; }
.overline {
  font-family: 'IBM Plex Mono', monospace; font-size: 12px; letter-spacing: 2px;
  color: var(--muted); text-transform: uppercase; margin-bottom: 28px;
}
.overline b { color: var(--accent-text); font-weight: 500; }
h1 {
  font-size: clamp(40px, 6.2vw, 76px); line-height: 1.02; letter-spacing: -2.5px;
  font-weight: 750; max-width: 940px; margin-bottom: 28px;
}
h1 em { font-style: normal; color: var(--accent-text); }
.hero .sub { font-size: 18px; color: var(--muted); max-width: 580px; margin-bottom: 44px; }

.signup { max-width: 520px; }
.signup form { display: flex; border: 1px solid var(--line-strong); border-radius: 3px; overflow: hidden; }
.signup input {
  flex: 1; padding: 14px 16px; border: none; background: transparent;
  color: var(--text); font-size: 15px; font-family: inherit; outline: none; min-width: 0;
}
.signup .btn { border-radius: 0; }
.fine { font-family: 'IBM Plex Mono', monospace; font-size: 11.5px; color: var(--faint); margin-top: 14px; letter-spacing: 0.3px; }
.success { display: none; color: var(--accent-text); font-weight: 500; margin-top: 14px; font-size: 14px; }

/* loop ticker */
.ticker {
  border-top: 1px solid var(--line); border-bottom: 1px solid var(--line);
  padding: 16px 0; font-family: 'IBM Plex Mono', monospace; font-size: 13px;
  letter-spacing: 3px; color: var(--muted); text-transform: uppercase;
  display: flex; gap: 18px; flex-wrap: wrap;
}
.ticker span:nth-child(even) { color: var(--faint); }

/* ---------- sections ---------- */
section { padding: 88px 0; border-bottom: 1px solid var(--line); }
.sec-head { display: flex; align-items: baseline; gap: 24px; margin-bottom: 56px; }
.sec-num { font-family: 'IBM Plex Mono', monospace; font-size: 13px; color: var(--accent-text); }
h2 { font-size: clamp(26px, 3.4vw, 40px); letter-spacing: -1.2px; font-weight: 640; line-height: 1.1; }
.sec-sub { color: var(--muted); max-width: 580px; margin: -36px 0 56px 0; padding-left: 61px; }
@media (max-width: 720px) { .sec-sub { padding-left: 0; } }

/* loop columns */
.loop { display: grid; grid-template-columns: 1fr 1fr 1fr; }
.loop > div { padding: 0 32px; border-left: 1px solid var(--line); }
.loop > div:first-child { padding-left: 0; border-left: none; }
.loop .n { font-family: 'IBM Plex Mono', monospace; font-size: 12px; color: var(--accent-text); margin-bottom: 14px; }
.loop h3 { font-size: 19px; font-weight: 640; letter-spacing: -0.4px; margin-bottom: 10px; }
.loop p { color: var(--muted); font-size: 15px; }
@media (max-width: 820px) {
  .loop { grid-template-columns: 1fr; }
  .loop > div { border-left: none; border-top: 1px solid var(--line); padding: 24px 0; }
  .loop > div:first-child { border-top: none; padding-top: 0; }
}

/* capabilities index */
.cap { border-top: 1px solid var(--line); }
.cap-row {
  display: grid; grid-template-columns: 64px 280px 1fr 110px; gap: 24px;
  padding: 26px 0; border-bottom: 1px solid var(--line); align-items: baseline;
}
.cap-row .n { font-family: 'IBM Plex Mono', monospace; font-size: 12px; color: var(--faint); }
.cap-row h3 { font-size: 17px; font-weight: 640; letter-spacing: -0.3px; }
.cap-row p { color: var(--muted); font-size: 14.5px; }
.tag {
  font-family: 'IBM Plex Mono', monospace; font-size: 11px; letter-spacing: 1px;
  text-align: right; white-space: nowrap;
}
.tag.launch { color: var(--accent-text); }
.tag.road { color: var(--faint); }
@media (max-width: 820px) {
  .cap-row { grid-template-columns: 40px 1fr 90px; }
  .cap-row p { grid-column: 2 / 4; }
}

/* principles */
.prin { max-width: 780px; }
.prin-row { padding: 26px 0; border-bottom: 1px solid var(--line); }
.prin-row:first-child { border-top: 1px solid var(--line); }
.prin-row h3 {
  font-size: 18px; font-weight: 640; letter-spacing: -0.3px;
  text-decoration: line-through; text-decoration-color: var(--accent); text-decoration-thickness: 2px;
  margin-bottom: 8px; color: var(--muted);
}
.prin-row p { color: var(--text); font-size: 15px; max-width: 640px; }

/* pricing table */
.price-table { border: 1px solid var(--line-strong); border-radius: 3px; overflow: hidden; max-width: 860px; }
.pt-head, .pt-row { display: grid; grid-template-columns: 1.4fr 1fr 1fr; }
.pt-head { border-bottom: 1px solid var(--line-strong); }
.pt-head > div { padding: 22px 24px; }
.pt-head .plan-name { font-weight: 640; font-size: 17px; letter-spacing: -0.3px; }
.pt-head .plan-price { font-family: 'IBM Plex Mono', monospace; font-size: 13px; color: var(--muted); margin-top: 4px; }
.pt-head .pro-col { background: color-mix(in srgb, var(--accent) 7%, transparent); }
.pt-row { border-bottom: 1px solid var(--line); }
.pt-row:last-child { border-bottom: none; }
.pt-row > div { padding: 14px 24px; font-size: 14px; }
.pt-row .feature-name { color: var(--muted); }
.pt-row .yes { font-family: 'IBM Plex Mono', monospace; color: var(--accent-text); }
.pt-row .no { font-family: 'IBM Plex Mono', monospace; color: var(--faint); }
.pt-row .pro-col { background: color-mix(in srgb, var(--accent) 7%, transparent); }
.footnotes { font-family: 'IBM Plex Mono', monospace; font-size: 12px; color: var(--muted); max-width: 860px; margin-top: 22px; line-height: 2; }
.footnotes b { color: var(--text); font-weight: 500; }
@media (max-width: 720px) {
  .pt-head, .pt-row { grid-template-columns: 1.2fr .7fr .7fr; }
  .pt-head > div, .pt-row > div { padding: 12px 12px; font-size: 13px; }
}

/* faq */
.faq { max-width: 780px; }
details { border-bottom: 1px solid var(--line); }
details:first-of-type { border-top: 1px solid var(--line); }
summary {
  cursor: pointer; list-style: none; padding: 22px 0;
  font-size: 16.5px; font-weight: 500; letter-spacing: -0.2px;
  display: flex; justify-content: space-between; align-items: center; gap: 16px;
}
summary::-webkit-details-marker { display: none; }
summary::after { content: "+"; font-family: 'IBM Plex Mono', monospace; color: var(--faint); font-size: 18px; }
details[open] summary::after { content: "−"; color: var(--accent-text); }
details p { color: var(--muted); font-size: 15px; padding: 0 0 24px; max-width: 640px; }

/* cta */
.cta { padding: 110px 0; border-bottom: 1px solid var(--line); }
.cta h2 { font-size: clamp(32px, 4.6vw, 56px); letter-spacing: -2px; font-weight: 750; max-width: 700px; margin-bottom: 36px; }

/* footer */
footer { padding: 48px 0 64px; }
.foot { display: flex; justify-content: space-between; gap: 32px; flex-wrap: wrap; }
.foot .col { font-size: 13.5px; color: var(--muted); line-height: 2; }
.foot a { color: var(--muted); text-decoration: none; }
.foot a:hover { color: var(--text); }
.legal { margin-top: 40px; font-family: 'IBM Plex Mono', monospace; font-size: 11.5px; color: var(--faint); max-width: 640px; line-height: 1.8; }

/* ---------- subpages ---------- */
.page { padding: 80px 0 96px; max-width: 780px; }
.page .overline { margin-bottom: 20px; }
.page h1 { font-size: clamp(32px, 4.6vw, 54px); letter-spacing: -1.8px; margin-bottom: 20px; }
.page .intro { font-size: 17px; color: var(--muted); margin-bottom: 48px; max-width: 620px; }
.prose h2 { font-size: 21px; letter-spacing: -0.5px; margin: 44px 0 12px; }
.prose h2:first-child { margin-top: 0; }
.prose p { color: var(--muted); font-size: 15.5px; margin-bottom: 14px; max-width: 660px; }
.prose strong { color: var(--text); font-weight: 640; }
.prose a { color: var(--accent-text); text-decoration: none; }
.prose a:hover { text-decoration: underline; }
.updated { font-family: 'IBM Plex Mono', monospace; font-size: 11.5px; color: var(--faint); letter-spacing: 1px; margin-bottom: 40px; }

/* public roadmap */
.rmap { border-top: 1px solid var(--line); }
.rmap-row { display: grid; grid-template-columns: 130px 1fr; gap: 24px; padding: 26px 0; border-bottom: 1px solid var(--line); }
.rmap-row .stage { font-family: 'IBM Plex Mono', monospace; font-size: 12px; letter-spacing: 1.5px; }
.rmap-row .stage.now { color: var(--accent-text); }
.rmap-row .stage.next { color: var(--text); }
.rmap-row .stage.later { color: var(--faint); }
.rmap-row h3 { font-size: 17px; font-weight: 640; letter-spacing: -0.3px; margin-bottom: 6px; }
.rmap-row p { color: var(--muted); font-size: 14.5px; max-width: 620px; }
