@font-face {
  font-family: 'Archivo';
  src: url('fonts/archivo-latin-var.woff2') format('woff2-variations');
  font-weight: 400 800;
  font-display: swap;
}
@font-face {
  font-family: 'Plex Mono';
  src: url('fonts/plexmono-400-latin.woff2') format('woff2');
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: 'Plex Mono';
  src: url('fonts/plexmono-500-latin.woff2') format('woff2');
  font-weight: 500;
  font-display: swap;
}

:root {
  --ground: #101821;
  --surface: #18222E;
  --line: #26323F;
  --text: #DDE4EA;
  --mute: #7C8E9F;
  /* small mono text sits on --surface, where --mute is only ~4.6:1 */
  --mute-up: #9CACBA;
  --lamp: #F2A63B;

  --rail: 226px;
  --gutter: 56px;
  --measure: 760px;

  --sans: 'Archivo', system-ui, sans-serif;
  --mono: 'Plex Mono', ui-monospace, monospace;
}

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

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--ground);
  color: var(--text);
  font-family: var(--sans);
  font-weight: 400;
  font-size: 17px;
  line-height: 1.62;
  letter-spacing: -0.005em;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

a { color: var(--text); text-decoration: none; border-bottom: 1px solid var(--line); }
a:hover { border-bottom-color: var(--lamp); }

:focus-visible {
  outline: 2px solid var(--lamp);
  outline-offset: 3px;
  border-radius: 2px;
}

.skip {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--lamp);
  color: #101821;
  padding: 10px 16px;
  font-family: var(--mono);
  font-size: 12px;
  z-index: 100;
}
.skip:focus { left: 12px; top: 12px; }

/* ---------- shell ---------- */

.shell {
  display: grid;
  grid-template-columns: var(--rail) minmax(0, 1fr);
  max-width: calc(var(--rail) + var(--gutter) + var(--measure) + 48px);
  margin: 0 auto;
  padding: 0 24px;
}

.main { padding: 0 0 0 var(--gutter); max-width: var(--measure); min-width: 0; }

section { padding: 84px 0; border-top: 1px solid var(--line); }
section:first-of-type { border-top: 0; padding-top: 88px; padding-bottom: 72px; }

/* ---------- signature: the log spine ---------- */

.spine {
  position: sticky;
  top: 0;
  align-self: start;
  height: 100vh;
  padding: 88px 0 40px;
  font-family: var(--mono);
  font-size: 11px;
  line-height: 1.9;
  color: var(--mute);
  overflow: hidden;
  border-right: 1px solid var(--line);
  mask-image: linear-gradient(to bottom, transparent, #000 12%, #000 78%, transparent);
  -webkit-mask-image: linear-gradient(to bottom, transparent, #000 12%, #000 78%, transparent);
}

.spine-head {
  font-size: 9px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--mute);
  opacity: .65;
  padding-bottom: 18px;
}

.spine-log { list-style: none; margin: 0; padding: 0 22px 0 0; }

.spine-log li {
  display: flex;
  gap: 8px;
  opacity: 0;
  transform: translateY(4px);
  transition: opacity .5s ease, transform .5s ease;
  padding-bottom: 3px;
}
.spine-log li.in { opacity: 1; transform: none; }

.spine-log .t { color: var(--mute); opacity: .42; flex: 0 0 auto; }
.spine-log .m { min-width: 0; overflow-wrap: break-word; }

/* the single warm line on the page's rail */
.spine-log li.human .m { color: var(--lamp); }
.spine-log li.human .t { color: var(--lamp); opacity: .5; }

/* mobile echo of the signature: a 2px rail that warms at the human moment */
.rail-lite { display: none; }

/* ---------- type ---------- */

.eyebrow {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--mute);
  margin: 0 0 26px;
}

h1 {
  font-size: clamp(2.35rem, 6.2vw, 4rem);
  font-weight: 800;
  line-height: 1.02;
  letter-spacing: -0.035em;
  margin: 0 0 26px;
  text-wrap: balance;
}

h2 {
  font-size: clamp(1.6rem, 3.6vw, 2.3rem);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.028em;
  margin: 0 0 22px;
  text-wrap: balance;
}

.lede {
  font-size: clamp(1.06rem, 2.1vw, 1.28rem);
  color: var(--mute);
  margin: 0 0 34px;
  max-width: 44ch;
}

p { margin: 0 0 20px; max-width: 62ch; }
p:last-child { margin-bottom: 0; }

.kicker {
  font-family: var(--mono);
  font-size: 13px;
  color: var(--lamp);
  margin-top: 28px;
}

.aside {
  margin-top: 30px;
  padding: 18px 20px;
  border-left: 2px solid var(--line);
  color: var(--mute);
  font-size: 15.5px;
}
.aside p { margin-bottom: 12px; }

.tag {
  display: inline-block;
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--lamp);
  border: 1px solid var(--lamp);
  border-radius: 3px;
  padding: 2px 7px;
  margin-top: 26px;
}

/* ---------- hero demo ---------- */

.demo {
  margin-top: 44px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  overflow: hidden;
}

.demo-bar {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 14px;
  border-bottom: 1px solid var(--line);
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: 0.06em;
  color: var(--mute);
}
.demo-bar .dot {
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--line);
  flex: 0 0 auto;
}
.demo-bar .dot.on { background: var(--lamp); }

.demo-panes { display: grid; grid-template-columns: 1.15fr 0.85fr; }
.pane { padding: 18px; min-width: 0; }
.pane + .pane { border-left: 1px solid var(--line); }

.pane-label {
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--mute);
  opacity: .7;
  margin-bottom: 14px;
}

.term {
  font-family: var(--mono);
  font-size: 10.5px;
  line-height: 1.85;
  color: var(--mute-up);
  /* a terminal scrolls; it never wraps a command mid-token */
  white-space: pre;
  overflow-x: auto;
  overflow-y: hidden;
  margin: 0;
  min-height: 158px;
  padding-bottom: 2px;
}
.term::-webkit-scrollbar { height: 5px; }
.term::-webkit-scrollbar-thumb { background: var(--line); border-radius: 3px; }
.term .cmd { color: var(--text); }
.term .ok { color: var(--lamp); }
.caret {
  display: inline-block;
  width: 6px;
  height: 13px;
  background: var(--lamp);
  vertical-align: -2px;
  animation: blink 1.05s steps(1) infinite;
}
@keyframes blink { 50% { opacity: 0; } }

.card {
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 15px;
  min-height: 158px;
  opacity: 0;
  transition: opacity .6s ease;
}
.card.in { opacity: 1; }

.card-eye {
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--mute);
  opacity: .8;
  margin-bottom: 8px;
}
.card h3 {
  font-size: 16px;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin: 0 0 4px;
}
.card .stage {
  font-family: var(--mono);
  font-size: 10.5px;
  color: var(--lamp);
  margin-bottom: 12px;
}
.card ul { margin: 0; padding-left: 15px; font-size: 13px; line-height: 1.68; color: var(--mute-up); }
.card li { margin-bottom: 3px; }

.demo-cap {
  font-family: var(--mono);
  font-size: 11px;
  color: var(--mute-up);
  padding: 11px 14px;
  border-top: 1px solid var(--line);
}

/* ---------- council transcript ---------- */

.transcript {
  margin-top: 32px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  font-family: var(--mono);
  font-size: 12px;
  line-height: 1.7;
  overflow: hidden;
}
.tr-row { padding: 13px 16px; border-bottom: 1px solid var(--line); color: var(--mute-up); }
.tr-row:last-child { border-bottom: 0; }
.tr-who { color: var(--text); letter-spacing: 0.05em; }
.tr-row.synth { background: rgba(242, 166, 59, 0.05); }
.tr-row.synth .tr-who { color: var(--lamp); }

/* ---------- spec ---------- */

.spec {
  width: 100%;
  border-collapse: collapse;
  margin-top: 30px;
  font-size: 14.5px;
}
.spec th {
  text-align: left;
  vertical-align: top;
  font-family: var(--mono);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--mute);
  width: 118px;
  padding: 14px 18px 14px 0;
  border-top: 1px solid var(--line);
  white-space: nowrap;
}
.spec td {
  padding: 14px 0;
  border-top: 1px solid var(--line);
  color: var(--text);
}
.spec tr:first-child th, .spec tr:first-child td { border-top: 0; }

.spec-wrap { overflow-x: auto; }

/* ---------- plans + cta ---------- */

.plans { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin: 34px 0 34px; }

.plan {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 22px 20px;
  min-width: 0;
}
.plan.hi { border-color: rgba(242, 166, 59, 0.42); }

.plan-name {
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--mute);
  margin-bottom: 10px;
}
.plan.hi .plan-name { color: var(--lamp); }
.plan-price { font-size: 30px; font-weight: 800; letter-spacing: -0.035em; line-height: 1; }
.plan-price span { font-size: 13px; font-weight: 400; color: var(--mute); letter-spacing: 0; }
.plan p { font-size: 14.5px; color: var(--mute); margin: 14px 0 0; max-width: none; }

.cta-row { display: flex; flex-wrap: wrap; align-items: center; gap: 22px; }

.btn {
  display: inline-block;
  background: var(--lamp);
  color: #101821;
  font-family: var(--sans);
  font-size: 15px;
  font-weight: 700;
  letter-spacing: -0.01em;
  padding: 14px 26px;
  border: 0;
  border-radius: 6px;
  transition: transform .12s ease, filter .12s ease;
}
.btn:hover { filter: brightness(1.08); transform: translateY(-1px); }

.alt { font-size: 14.5px; color: var(--mute); }
.alt a { color: var(--text); }

footer {
  border-top: 1px solid var(--line);
  padding: 30px 0 60px;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.06em;
  color: var(--mute);
}

/* ---------- responsive ---------- */

@media (max-width: 900px) {
  :root { --gutter: 0px; }
  .shell { grid-template-columns: minmax(0, 1fr); padding: 0 20px 0 30px; }
  .spine { display: none; }

  .rail-lite {
    display: block;
    position: fixed;
    left: 0;
    top: 0;
    bottom: 0;
    width: 2px;
    background: var(--line);
    z-index: 2;
    transition: background-color .45s ease;
  }
  .rail-lite.human { background: var(--lamp); }
  .demo-panes { grid-template-columns: 1fr; }
  .pane + .pane { border-left: 0; border-top: 1px solid var(--line); }
  .term, .card { min-height: 0; }
  .plans { grid-template-columns: 1fr; }
  section { padding: 76px 0; }
  .spec th { width: auto; white-space: normal; padding-right: 14px; }
}

@media (max-width: 560px) {
  body { font-size: 16.5px; }
  section { padding: 58px 0; }
  .eyebrow { font-size: 10px; letter-spacing: 0.1em; }
  .term { font-size: 11px; }
  .spec th { display: block; border-top: 1px solid var(--line); padding-bottom: 0; }
  .spec td { display: block; border-top: 0; padding-top: 5px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .rail-lite { transition: none; }
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
  .caret { display: none; }
  .spine-log li { opacity: 1; transform: none; }
  .card { opacity: 1; }
}
