/* =============================================================
   PLANNT / v2.0.0
   Bitcoin-native access control for AI agents.
   Single stylesheet. Hand-written. No framework.
   ============================================================= */

/* ---------- FONTS ---------- */
@font-face {
  font-family: 'JetBrains Mono';
  src: url('fonts/JetBrainsMono-Thin.woff2') format('woff2');
  font-weight: 100;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'JetBrains Mono';
  src: url('fonts/JetBrainsMono-Light.woff2') format('woff2');
  font-weight: 300;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'JetBrains Mono';
  src: url('fonts/JetBrainsMono-Regular.woff2') format('woff2');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'JetBrains Mono';
  src: url('fonts/JetBrainsMono-Italic.woff2') format('woff2');
  font-weight: 400;
  font-style: italic;
  font-display: swap;
}
@font-face {
  font-family: 'JetBrains Mono';
  src: url('fonts/JetBrainsMono-Medium.woff2') format('woff2');
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'JetBrains Mono';
  src: url('fonts/JetBrainsMono-Bold.woff2') format('woff2');
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'JetBrains Mono';
  src: url('fonts/JetBrainsMono-ExtraBold.woff2') format('woff2');
  font-weight: 800;
  font-style: normal;
  font-display: swap;
}

/* ---------- TOKENS ---------- */
:root {
  --bg:        #050505;
  --bg-elev:   #0d0d0d;
  --bg-line:  #1a1a1a;
  --ink:       #f0f0f0;
  --ink-dim:   #8a8a8a;
  --ink-faint: #4a4a4a;
  --green:     #14F195;
  --green-dim: #0a7a4a;
  --orange:    #F7931A;
  --amber:     #FFB800;

  --container: 1280px;
  --gutter: 32px;

  --font: 'JetBrains Mono', ui-monospace, SFMono-Regular, Menlo, monospace;

  --rhythm: 180px;
}

/* ---------- RESET ---------- */
*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font);
  font-weight: 400;
  font-size: 15px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  font-feature-settings: "calt" 1, "liga" 0, "zero" 1, "ss01" 1;
  overflow-x: hidden;
  position: relative;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; }

/* ---------- AMBIENT BACKGROUND ---------- */
.ambient {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
}
.ambient::before {
  /* Vertical scanlines, 1px every 4px */
  content: '';
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(
    to right,
    transparent 0,
    transparent 3px,
    rgba(255, 255, 255, 0.012) 3px,
    rgba(255, 255, 255, 0.012) 4px
  );
}
.ambient::after {
  /* SVG fractal noise at 3% opacity */
  content: '';
  position: absolute;
  inset: -200%;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='200' height='200'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/></filter><rect width='200' height='200' filter='url(%23n)' opacity='0.5'/></svg>");
  opacity: 0.035;
  mix-blend-mode: screen;
}
.ambient .glow-g {
  position: absolute;
  width: 60vmax;
  height: 60vmax;
  top: -20vmax;
  right: -15vmax;
  background: radial-gradient(circle, rgba(20, 241, 149, 0.05) 0%, transparent 60%);
  filter: blur(40px);
  animation: pulse-g 14s ease-in-out infinite alternate;
}
.ambient .glow-o {
  position: absolute;
  width: 50vmax;
  height: 50vmax;
  bottom: -15vmax;
  left: -10vmax;
  background: radial-gradient(circle, rgba(247, 147, 26, 0.04) 0%, transparent 60%);
  filter: blur(40px);
  animation: pulse-o 18s ease-in-out infinite alternate;
}
@keyframes pulse-g {
  0%   { opacity: 0.6; transform: translate(0, 0) scale(1); }
  100% { opacity: 1;   transform: translate(-4vmax, 2vmax) scale(1.1); }
}
@keyframes pulse-o {
  0%   { opacity: 0.5; transform: translate(0, 0) scale(1.05); }
  100% { opacity: 1;   transform: translate(3vmax, -2vmax) scale(1); }
}

/* ---------- TOP / BOTTOM SYSTEM STRIPS ---------- */
.strip {
  position: fixed;
  left: 0;
  right: 0;
  z-index: 50;
  padding: 14px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-dim);
  background: linear-gradient(to bottom, rgba(5,5,5,0.92), rgba(5,5,5,0.6));
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}
.strip--top { top: 0; border-bottom: 1px solid var(--bg-line); }
.strip--bottom {
  bottom: 0; top: auto;
  border-top: 1px solid var(--bg-line);
  background: linear-gradient(to top, rgba(5,5,5,0.92), rgba(5,5,5,0.6));
}
.strip__group { display: flex; gap: 24px; align-items: center; }
.strip__item { display: inline-flex; align-items: center; gap: 8px; }
.strip__item--dim { color: var(--ink-faint); }

.strip a.strip__item:hover { color: var(--ink); }

.dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 8px rgba(20, 241, 149, 0.6);
}
.dot-row { display: inline-flex; gap: 4px; align-items: center; margin-right: 8px; }
.dot-row .dot { animation: blink 1.8s ease-in-out infinite; }
.dot-row .dot:nth-child(2) { animation-delay: 0.2s; }
.dot-row .dot:nth-child(3) { animation-delay: 0.4s; }
@keyframes blink {
  0%, 100% { opacity: 1;   box-shadow: 0 0 8px rgba(20, 241, 149, 0.7); }
  50%      { opacity: 0.3; box-shadow: 0 0 2px rgba(20, 241, 149, 0.2); }
}

.settling {
  display: inline-flex; align-items: center; gap: 6px;
}
.settling__ring {
  display: inline-block;
  width: 8px; height: 8px;
  border: 1px solid var(--orange);
  border-right-color: transparent;
  border-radius: 50%;
  animation: spin 1.6s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* Tiny sparkline */
.spark {
  display: inline-flex;
  align-items: flex-end;
  gap: 2px;
  height: 14px;
  margin-right: 8px;
}
.spark span {
  display: block;
  width: 2px;
  background: var(--green-dim);
  opacity: 0.7;
}

/* ---------- BRAND ---------- */
.brand {
  font-weight: 800;
  font-size: 11px;
  letter-spacing: 0.32em;
  color: var(--ink);
  text-transform: uppercase;
  display: inline-flex;
  align-items: baseline;
  gap: 6px;
}
.brand__mark {
  display: inline-block;
  width: 8px; height: 8px;
  background: var(--green);
  box-shadow: 0 0 10px rgba(20, 241, 149, 0.7);
  transform: translateY(1px);
}

/* ---------- LAYOUT ---------- */
.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 var(--gutter);
  position: relative;
  z-index: 1;
}
main { position: relative; z-index: 1; padding-top: 44px; padding-bottom: 44px; }

section { padding: 0 0 var(--rhythm); position: relative; }
section.first { padding-top: 100px; }

/* ---------- SECTION LABELS ---------- */
.section-label {
  display: inline-flex;
  gap: 14px;
  align-items: baseline;
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--ink-dim);
  margin-bottom: 40px;
  position: relative;
}
.section-label__num {
  color: var(--ink-faint);
  font-weight: 400;
}
.section-label__slash {
  color: var(--ink-faint);
  margin: 0 2px;
}

/* Section divider */
.divider {
  display: flex;
  align-items: center;
  gap: 24px;
  color: var(--ink-faint);
  margin: 0 0 var(--rhythm);
  padding-top: 40px;
}
.divider::before, .divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--bg-line);
}
.divider__sym {
  font-size: 18px;
  color: var(--ink-faint);
}

/* ---------- HERO ---------- */
.hero {
  position: relative;
  min-height: calc(100vh - 140px);
  display: grid;
  grid-template-columns: 1fr;
  align-content: center;
  padding: 60px 0 80px;
}
.hero__frame {
  position: absolute;
  inset: 20px 0 20px 0;
  pointer-events: none;
}
.hero__frame::before,
.hero__frame::after,
.hero__frame > span:first-child,
.hero__frame > span:last-child {
  content: '';
  position: absolute;
  width: 48px;
  height: 48px;
  border-color: var(--ink-faint);
  border-style: solid;
}
.hero__frame::before { top: 0; left: 0; border-width: 2px 0 0 2px; }
.hero__frame::after  { top: 0; right: 0; border-width: 2px 2px 0 0; }
.hero__frame > span:first-child { bottom: 0; left: 0; border-width: 0 0 2px 2px; }
.hero__frame > span:last-child  { bottom: 0; right: 0; border-width: 0 2px 2px 0; }

.hero__overlay {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0;
}
.hero__hash {
  position: absolute;
  font-size: 11px;
  letter-spacing: 0.12em;
  color: var(--ink-faint);
  opacity: 0.4;
  white-space: nowrap;
}
.hero__hash--a { top: 14%;  right: 6%;  }
.hero__hash--b { top: 38%;  left: 4%;   }
.hero__hash--c { bottom: 32%; right: 9%; }
.hero__hash--d { top: 22%; left: 38%; opacity: 0.18; }

.hero__inner {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 1.55fr 1fr;
  gap: 80px;
  align-items: end;
}

.hero__eyebrow {
  font-size: 10px;
  letter-spacing: 0.32em;
  font-weight: 500;
  color: var(--green);
  text-transform: uppercase;
  display: inline-flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 36px;
}
.hero__eyebrow::before {
  content: '';
  width: 28px; height: 1px;
  background: var(--green);
  display: inline-block;
}

.hero__title {
  font-size: clamp(44px, 7.2vw, 84px);
  line-height: 0.98;
  letter-spacing: -0.025em;
  font-weight: 800;
  margin: 0 0 28px;
  text-transform: uppercase;
}
.hero__title em {
  font-style: italic;
  font-weight: 800;
  color: var(--orange);
  display: inline-block;
  transform: skewX(-6deg);
}
.hero__title .stop {
  display: inline-block;
  width: 0.55em;
  height: 0.55em;
  background: var(--green);
  vertical-align: baseline;
  margin-left: 8px;
  margin-bottom: 0.1em;
  box-shadow: 0 0 16px rgba(20, 241, 149, 0.55);
}

.hero__sub {
  max-width: 580px;
  font-size: 17px;
  line-height: 1.55;
  color: var(--ink-dim);
  margin: 0 0 48px;
  font-weight: 300;
}
.hero__sub strong { color: var(--ink); font-weight: 500; }

.hero__cta {
  display: flex;
  gap: 18px;
  flex-wrap: wrap;
  align-items: center;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  padding: 16px 22px;
  font-family: var(--font);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  border: 1px solid var(--bg-line);
  background: transparent;
  color: var(--ink);
  transition: border-color 200ms, color 200ms, background 200ms, transform 200ms;
}
.btn:hover { border-color: var(--ink); transform: translateY(-1px); }
.btn__arrow { font-size: 14px; }
.btn--primary {
  background: var(--green);
  color: var(--bg);
  border-color: var(--green);
}
.btn--primary:hover { background: transparent; color: var(--green); }
.btn--ghost { color: var(--ink-dim); }
.btn--ghost:hover { color: var(--ink); }

/* Hero log panel */
.log {
  position: relative;
  border: 1px solid var(--bg-line);
  background: linear-gradient(180deg, rgba(13,13,13,0.92), rgba(13,13,13,0.55));
  padding: 18px 20px 16px;
  font-size: 11px;
  line-height: 1.85;
  color: var(--ink-dim);
  min-height: 220px;
  overflow: hidden;
}
.log::before {
  content: 'AGENT.LOG ◢ LIVE';
  position: absolute;
  top: -1px; left: -1px;
  padding: 4px 10px;
  background: var(--bg);
  border: 1px solid var(--bg-line);
  font-size: 9px;
  letter-spacing: 0.22em;
  color: var(--ink-faint);
}
.log::after {
  content: '';
  position: absolute;
  top: 8px; right: 12px;
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 8px var(--green);
  animation: blink 1.6s ease-in-out infinite;
}
.log__inner { margin-top: 28px; }
.log__line { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.log__t { color: var(--ink-faint); margin-right: 10px; }
.log__status { color: var(--green); }
.log__status--402 { color: var(--amber); }
.log__status--err { color: #ff5d4a; }
.log__sats { color: var(--orange); }
.log__hash { color: var(--ink-faint); }

/* ---------- PREMISE CARDS ---------- */
.cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--bg-line);
  border: 1px solid var(--bg-line);
}
.card {
  position: relative;
  padding: 48px 36px 44px;
  background: var(--bg-elev);
  overflow: hidden;
  isolation: isolate;
}
.card__num {
  position: absolute;
  top: -32px;
  right: -8px;
  font-size: 220px;
  font-weight: 100;
  line-height: 1;
  color: transparent;
  -webkit-text-stroke: 1px var(--ink-faint);
  opacity: 0.45;
  pointer-events: none;
  letter-spacing: -0.04em;
  z-index: 0;
}
.card__label {
  font-size: 10px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--orange);
  margin: 0 0 16px;
  position: relative;
  z-index: 1;
}
.card__title {
  font-size: 22px;
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.01em;
  margin: 0 0 16px;
  position: relative;
  z-index: 1;
}
.card__body {
  font-size: 14px;
  line-height: 1.65;
  color: var(--ink-dim);
  margin: 0;
  position: relative;
  z-index: 1;
  font-weight: 300;
}

/* ---------- FLOW STEPS ---------- */
.flow {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 1px;
  background: var(--bg-line);
  border: 1px solid var(--bg-line);
}
.flow__step {
  position: relative;
  padding: 36px 24px 32px;
  background: var(--bg-elev);
  display: flex;
  flex-direction: column;
  gap: 14px;
  min-height: 280px;
  overflow: hidden;
  isolation: isolate;
}
.flow__num {
  font-size: 56px;
  font-weight: 100;
  line-height: 1;
  color: var(--ink-faint);
  letter-spacing: -0.03em;
}
.flow__step:hover .flow__num { color: var(--green); transition: color 200ms; }
.flow__action {
  font-size: 13px;
  font-weight: 500;
  color: var(--ink);
  line-height: 1.45;
  letter-spacing: -0.005em;
}
.flow__code {
  margin-top: auto;
  padding-top: 16px;
  border-top: 1px solid var(--bg-line);
  font-size: 11px;
  color: var(--ink-dim);
  line-height: 1.5;
  font-weight: 300;
}
.flow__code .k { color: var(--green); }
.flow__code .o { color: var(--orange); }
.flow__code .a { color: var(--amber); }

/* ---------- ENDPOINTS TABLE ---------- */
.endpoints {
  border: 1px solid var(--bg-line);
  background: var(--bg-elev);
}
.endpoints__head, .endpoints__row {
  display: grid;
  grid-template-columns: 100px 1fr 1fr 140px;
  gap: 0;
  align-items: center;
}
.endpoints__head {
  padding: 14px 28px;
  border-bottom: 1px solid var(--bg-line);
  font-size: 10px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--ink-faint);
  font-weight: 500;
}
.endpoints__row {
  padding: 22px 28px;
  border-bottom: 1px solid var(--bg-line);
  font-size: 14px;
  transition: background 160ms;
}
.endpoints__row:last-child { border-bottom: none; }
.endpoints__row:hover { background: rgba(255, 255, 255, 0.018); }

.method {
  display: inline-block;
  padding: 4px 10px;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.12em;
  border: 1px solid var(--green);
  color: var(--green);
  width: fit-content;
}
.method--post { border-color: var(--orange); color: var(--orange); }

.path {
  font-weight: 500;
  color: var(--ink);
  font-size: 14px;
  letter-spacing: -0.005em;
}
.desc { color: var(--ink-dim); font-size: 13px; font-weight: 300; }
.price {
  text-align: right;
  color: var(--orange);
  font-weight: 500;
  letter-spacing: 0.04em;
}
.price--public { color: var(--ink-faint); text-transform: uppercase; font-size: 11px; letter-spacing: 0.18em; }
.price__suffix { color: var(--ink-faint); margin-left: 4px; font-weight: 400; font-size: 11px; }

/* ---------- QUICK START / TERMINALS ---------- */
.terminals { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.term {
  border: 1px solid var(--bg-line);
  background: var(--bg-elev);
  display: flex;
  flex-direction: column;
}
.term__bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 16px;
  border-bottom: 1px solid var(--bg-line);
  font-size: 10px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-faint);
}
.term__bar__num { color: var(--green); font-weight: 500; }
.term__bar__dots { display: flex; gap: 5px; }
.term__bar__dots span {
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--bg-line);
}
.term__body {
  padding: 18px 18px 22px;
  font-size: 12px;
  line-height: 1.6;
  color: var(--ink-dim);
  white-space: pre-wrap;
  word-break: break-all;
  flex: 1;
  font-weight: 400;
}
.term__body .prompt { color: var(--green); }
.term__body .cmd { color: var(--ink); }
.term__body .flag { color: var(--ink-dim); }
.term__body .str { color: var(--orange); }
.term__body .key { color: var(--green); }
.term__body .num { color: var(--orange); }
.term__body .hl { color: var(--amber); }
.term__body .comment { color: var(--ink-faint); }

/* ---------- SECURITY LIST ---------- */
.security { display: grid; grid-template-columns: 1fr 1fr; gap: 32px; max-width: 980px; }
.sec-item {
  position: relative;
  padding: 28px 28px 28px 64px;
  border: 1px solid var(--bg-line);
  background: var(--bg-elev);
}
.sec-item__check {
  position: absolute;
  top: 28px; left: 22px;
  width: 24px; height: 24px;
  border: 1px solid var(--green);
  display: flex; align-items: center; justify-content: center;
  color: var(--green);
  font-size: 12px;
  font-weight: 700;
}
.sec-item__check::before { content: '✓'; }
.sec-item__title {
  font-size: 15px;
  font-weight: 700;
  margin: 0 0 8px;
  letter-spacing: -0.005em;
  color: var(--ink);
}
.sec-item__body { color: var(--ink-dim); font-size: 13px; line-height: 1.55; margin: 0; font-weight: 300; }

/* ---------- FINAL CTA BAND ---------- */
.cta-band {
  border: 1px solid var(--bg-line);
  background: var(--bg-elev);
  padding: 60px 56px;
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  align-items: center;
  gap: 56px;
  position: relative;
  overflow: hidden;
}
.cta-band::before {
  content: '⚡';
  position: absolute;
  font-size: 320px;
  font-weight: 100;
  color: var(--ink-faint);
  opacity: 0.07;
  top: 50%;
  left: -40px;
  transform: translateY(-50%);
  line-height: 1;
}
.cta-band__title {
  font-size: 36px;
  line-height: 1.1;
  letter-spacing: -0.015em;
  font-weight: 700;
  margin: 0 0 12px;
  position: relative;
}
.cta-band__sub {
  color: var(--ink-dim);
  font-size: 15px;
  margin: 0;
  font-weight: 300;
  position: relative;
}
.cta-band__actions {
  display: flex;
  flex-direction: column;
  gap: 14px;
  position: relative;
}

/* ---------- FOOTER ---------- */
.foot {
  border-top: 1px solid var(--bg-line);
  padding: 60px 0 40px;
  margin-top: 80px;
}
.foot__grid {
  display: grid;
  grid-template-columns: 1.5fr repeat(3, 1fr);
  gap: 48px;
  margin-bottom: 48px;
}
.foot__title {
  font-size: 10px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--ink-faint);
  font-weight: 500;
  margin: 0 0 16px;
}
.foot__list { list-style: none; padding: 0; margin: 0; }
.foot__list li { margin-bottom: 8px; font-size: 13px; }
.foot__list a { color: var(--ink-dim); transition: color 150ms; }
.foot__list a:hover { color: var(--ink); }
.foot__mark {
  font-size: 28px;
  font-weight: 800;
  letter-spacing: 0.05em;
  margin: 0 0 10px;
}
.foot__mark .dot-on { color: var(--green); }
.foot__about { font-size: 13px; color: var(--ink-dim); line-height: 1.55; max-width: 320px; font-weight: 300; }
.foot__meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 28px;
  border-top: 1px solid var(--bg-line);
  font-size: 10px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--ink-faint);
  font-weight: 500;
}
.foot__meta__r { display: flex; gap: 20px; align-items: center; }

/* ---------- PROBLEM PAGE (long-form) ---------- */
.essay {
  max-width: 720px;
  margin: 60px auto 0;
  padding: 0 var(--gutter);
  position: relative;
  z-index: 1;
}
.essay__kicker {
  font-size: 10px;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--green);
  margin-bottom: 24px;
}
.essay__title {
  font-size: clamp(36px, 5.5vw, 64px);
  line-height: 1.02;
  letter-spacing: -0.025em;
  font-weight: 800;
  margin: 0 0 28px;
  text-transform: uppercase;
}
.essay__lede {
  font-size: 19px;
  line-height: 1.55;
  color: var(--ink-dim);
  margin: 0 0 64px;
  font-weight: 300;
  border-left: 2px solid var(--green);
  padding-left: 24px;
}
.essay h2 {
  font-size: 24px;
  font-weight: 700;
  letter-spacing: -0.01em;
  margin: 64px 0 20px;
  padding-top: 32px;
  border-top: 1px solid var(--bg-line);
}
.essay h2 .num {
  display: inline-block;
  color: var(--ink-faint);
  margin-right: 16px;
  font-weight: 400;
}
.essay p {
  font-size: 15px;
  line-height: 1.75;
  color: var(--ink);
  margin: 0 0 22px;
  font-weight: 400;
}
.essay p strong { color: var(--orange); font-weight: 500; }
.essay code {
  font-size: 13px;
  background: var(--bg-elev);
  padding: 2px 6px;
  border: 1px solid var(--bg-line);
  color: var(--green);
  font-weight: 400;
}
.essay__compare {
  margin: 36px 0;
  padding: 24px 28px;
  background: var(--bg-elev);
  border: 1px solid var(--bg-line);
  font-size: 12.5px;
  line-height: 1.85;
  color: var(--ink);
  font-weight: 400;
}
.essay__compare .label {
  display: inline-block;
  width: 200px;
  color: var(--ink-faint);
  font-size: 10px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}
.essay__compare .o { color: var(--orange); }
.essay__compare .g { color: var(--green); }

/* ---------- NEXT-SHIP BADGE ---------- */
.next-ship {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 8px 14px 8px 12px;
  border: 1px solid var(--amber);
  background: rgba(255, 184, 0, 0.04);
  margin-bottom: 32px;
  font-size: 10px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--amber);
  font-weight: 500;
  text-decoration: none;
  transition: background 200ms, transform 200ms;
}
.next-ship:hover { background: rgba(255, 184, 0, 0.08); transform: translateY(-1px); }
.next-ship__pulse {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--amber);
  box-shadow: 0 0 8px rgba(255, 184, 0, 0.7);
  animation: blink 1.6s ease-in-out infinite;
}
.next-ship__arrow { color: var(--amber); font-weight: 700; margin-left: 4px; }

/* ---------- SHIP / ROADMAP CARDS ---------- */
.ship-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1px;
  background: var(--bg-line);
  border: 1px solid var(--bg-line);
}
.ship-card {
  background: var(--bg-elev);
  padding: 40px 36px 36px;
  position: relative;
  overflow: hidden;
  isolation: isolate;
  display: flex;
  flex-direction: column;
  min-height: 280px;
}
.ship-card__head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 24px;
  gap: 16px;
}
.ship-card__tag {
  font-size: 9px;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  padding: 4px 10px;
  border: 1px solid var(--amber);
  color: var(--amber);
  font-weight: 500;
  white-space: nowrap;
}
.ship-card__tag--live { border-color: var(--green); color: var(--green); }
.ship-card__tag--planned { border-color: var(--ink-faint); color: var(--ink-faint); }
.ship-card__when {
  font-size: 10px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--ink-faint);
  font-weight: 400;
  white-space: nowrap;
  align-self: center;
}
.ship-card__name {
  font-size: 32px;
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: -0.02em;
  margin: 0 0 14px;
  text-transform: uppercase;
}
.ship-card__name em { color: var(--orange); font-style: italic; transform: skewX(-6deg); display: inline-block; }
.ship-card__desc {
  font-size: 14px;
  color: var(--ink-dim);
  line-height: 1.6;
  margin: 0 0 24px;
  font-weight: 300;
}
.ship-card__cmd {
  margin-top: auto;
  padding: 14px 16px;
  background: var(--bg);
  border: 1px solid var(--bg-line);
  font-size: 12px;
  color: var(--ink-dim);
  font-weight: 400;
}
.ship-card__cmd .prompt { color: var(--green); margin-right: 8px; }
.ship-card__cmd .cmd { color: var(--ink); }
.ship-card__cmd .arg { color: var(--orange); }

/* ---------- DOCS PAGE ---------- */
.docs {
  max-width: 920px;
  margin: 56px auto 0;
  padding: 0 var(--gutter);
  position: relative;
  z-index: 1;
}
.docs__head { margin-bottom: 48px; }
.docs__kicker {
  font-size: 10px;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--green);
  margin-bottom: 22px;
}
.docs__title {
  font-size: clamp(40px, 6vw, 68px);
  line-height: 1.0;
  letter-spacing: -0.025em;
  font-weight: 800;
  margin: 0 0 24px;
  text-transform: uppercase;
}
.docs__lede {
  font-size: 17px;
  line-height: 1.6;
  color: var(--ink-dim);
  font-weight: 300;
  max-width: 720px;
  border-left: 2px solid var(--green);
  padding-left: 22px;
  margin: 0;
}

/* Sticky TOC strip */
.toc {
  position: sticky;
  top: 44px;
  z-index: 40;
  background: linear-gradient(to bottom, rgba(5,5,5,0.97), rgba(5,5,5,0.85));
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border-top: 1px solid var(--bg-line);
  border-bottom: 1px solid var(--bg-line);
  margin: 0 0 56px;
  padding: 12px 0;
}
.toc__list {
  display: flex;
  gap: 0;
  list-style: none;
  margin: 0;
  padding: 0;
  overflow-x: auto;
  scrollbar-width: none;
}
.toc__list::-webkit-scrollbar { display: none; }
.toc__list li {
  flex-shrink: 0;
  border-right: 1px solid var(--bg-line);
}
.toc__list li:first-child { border-left: 1px solid var(--bg-line); }
.toc__list a {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 10px 20px;
  font-size: 10px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-dim);
  font-weight: 500;
  white-space: nowrap;
  transition: color 160ms, background 160ms;
}
.toc__list a:hover { color: var(--ink); background: rgba(255,255,255,0.02); }
.toc__list a .num { color: var(--ink-faint); }

/* Sections */
.docs-section {
  scroll-margin-top: 120px;
  padding: 24px 0 56px;
  border-bottom: 1px solid var(--bg-line);
}
.docs-section:last-of-type { border-bottom: none; }
.docs-section__head {
  display: flex;
  align-items: baseline;
  gap: 20px;
  margin-bottom: 28px;
}
.docs-section__num {
  font-size: 11px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--green);
  font-weight: 500;
}
.docs-section__title {
  font-size: 30px;
  line-height: 1.15;
  letter-spacing: -0.015em;
  font-weight: 700;
  margin: 0;
}
.docs-section__lede {
  font-size: 16px;
  line-height: 1.65;
  color: var(--ink-dim);
  margin: 0 0 28px;
  font-weight: 300;
  max-width: 680px;
}

.docs h3 {
  font-size: 16px;
  font-weight: 700;
  letter-spacing: -0.005em;
  margin: 36px 0 14px;
  color: var(--ink);
}
.docs h3 .pre {
  color: var(--ink-faint);
  font-weight: 400;
  margin-right: 10px;
}
.docs p {
  font-size: 15px;
  line-height: 1.75;
  color: var(--ink);
  margin: 0 0 18px;
}
.docs p.dim { color: var(--ink-dim); }
.docs ul, .docs ol {
  font-size: 15px;
  line-height: 1.75;
  color: var(--ink);
  margin: 0 0 22px;
  padding-left: 22px;
}
.docs li { margin-bottom: 6px; }
.docs li::marker { color: var(--ink-faint); }
.docs code {
  font-size: 13px;
  background: var(--bg-elev);
  padding: 2px 6px;
  border: 1px solid var(--bg-line);
  color: var(--green);
}
.docs strong { color: var(--orange); font-weight: 500; }
.docs a.inline {
  color: var(--green);
  border-bottom: 1px solid var(--green-dim);
}
.docs a.inline:hover { color: var(--ink); border-bottom-color: var(--ink); }

/* Reference table for env vars / endpoints */
.docs-table {
  width: 100%;
  border-collapse: collapse;
  border: 1px solid var(--bg-line);
  margin: 22px 0 28px;
  font-size: 13.5px;
}
.docs-table th, .docs-table td {
  text-align: left;
  padding: 12px 14px;
  border-bottom: 1px solid var(--bg-line);
  vertical-align: top;
}
.docs-table th {
  font-size: 10px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-faint);
  font-weight: 500;
  background: var(--bg-elev);
}
.docs-table tr:last-child td { border-bottom: none; }
.docs-table td code {
  background: transparent;
  border: none;
  padding: 0;
  color: var(--green);
  font-size: 13px;
}
.docs-table td.dim { color: var(--ink-dim); }
.docs-table td.req { color: var(--orange); font-size: 10px; letter-spacing: 0.18em; text-transform: uppercase; white-space: nowrap; }

/* Inline file path label above code blocks */
.code-label {
  font-size: 10px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-faint);
  margin: 28px 0 8px;
  font-weight: 500;
}
.code-label code { background: transparent; border: none; padding: 0; color: var(--ink-dim); font-size: 11px; }

/* Plain code block (lighter than terminal) */
.code-block {
  background: var(--bg-elev);
  border: 1px solid var(--bg-line);
  padding: 18px 20px;
  margin: 0 0 24px;
  font-size: 13px;
  line-height: 1.65;
  color: var(--ink-dim);
  white-space: pre;
  overflow-x: auto;
}
.code-block .k { color: var(--green); }
.code-block .o { color: var(--orange); }
.code-block .a { color: var(--amber); }
.code-block .c { color: var(--ink-faint); }
.code-block .s { color: var(--orange); }
.code-block .n { color: var(--orange); }
.code-block .v { color: var(--ink); }

/* ASCII diagram block (used in whitepaper too) */
.diagram {
  background: var(--bg-elev);
  border: 1px solid var(--bg-line);
  padding: 24px 28px;
  margin: 24px 0 32px;
  font-size: 12px;
  line-height: 1.5;
  color: var(--ink-dim);
  white-space: pre;
  overflow-x: auto;
  font-weight: 400;
}
.diagram .l { color: var(--green); }
.diagram .o { color: var(--orange); }
.diagram .a { color: var(--amber); }
.diagram .d { color: var(--ink-faint); }

/* Callout for caveats / notes */
.callout {
  display: grid;
  grid-template-columns: 80px 1fr;
  gap: 20px;
  align-items: start;
  border: 1px solid var(--bg-line);
  background: var(--bg-elev);
  padding: 20px 22px;
  margin: 24px 0 28px;
}
.callout__tag {
  font-size: 10px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--amber);
  font-weight: 500;
  padding-top: 2px;
}
.callout__tag--note { color: var(--green); }
.callout__body { font-size: 14px; line-height: 1.6; color: var(--ink); margin: 0; }
.callout__body code { font-size: 12.5px; }

/* Responsive */
@media (max-width: 720px) {
  .toc { top: 38px; }
  .docs-section__title { font-size: 24px; }
  .docs-section__head { gap: 14px; flex-wrap: wrap; }
}

/* ---------- COMING SOON STUB ---------- */
.stub {
  min-height: calc(100vh - 200px);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 var(--gutter);
  position: relative;
  z-index: 1;
}
.stub__kicker {
  font-size: 10px;
  letter-spacing: 0.32em;
  color: var(--amber);
  text-transform: uppercase;
  margin-bottom: 28px;
  display: inline-flex; align-items: center; gap: 12px;
}
.stub__kicker::before {
  content: ''; width: 28px; height: 1px; background: var(--amber);
}
.stub__title {
  font-size: clamp(48px, 8vw, 96px);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 0.94;
  margin: 0 0 32px;
  text-transform: uppercase;
}
.stub__title em { color: var(--orange); font-style: italic; transform: skewX(-6deg); display: inline-block; }
.stub__sub { color: var(--ink-dim); font-size: 17px; max-width: 600px; line-height: 1.55; margin: 0 0 48px; font-weight: 300; }
.stub__cta { display: flex; gap: 16px; flex-wrap: wrap; }
.stub__note {
  margin-top: 80px;
  font-size: 11px;
  letter-spacing: 0.18em;
  color: var(--ink-faint);
  text-transform: uppercase;
  display: flex; gap: 16px; align-items: center;
}
.stub__note::before { content: ''; width: 32px; height: 1px; background: var(--ink-faint); }

/* ---------- RESPONSIVE ---------- */
@media (max-width: 1100px) {
  .hero__inner { grid-template-columns: 1fr; gap: 56px; }
  .cards { grid-template-columns: 1fr; }
  .flow { grid-template-columns: repeat(2, 1fr); }
  .terminals { grid-template-columns: 1fr; }
  .security { grid-template-columns: 1fr; }
  .cta-band { grid-template-columns: 1fr; padding: 40px 32px; }
  .foot__grid { grid-template-columns: 1fr 1fr; }
  .ship-grid { grid-template-columns: 1fr; }
}
@media (max-width: 720px) {
  :root { --rhythm: 120px; --gutter: 22px; }
  .strip { font-size: 9px; padding: 12px 16px; }
  .strip__group { gap: 14px; }
  .strip__item--hide-sm { display: none; }
  .hero { padding-top: 80px; min-height: 520px; }
  .endpoints__head, .endpoints__row {
    grid-template-columns: 80px 1fr 100px;
    padding: 16px;
    gap: 12px;
  }
  .endpoints__head .col-desc, .endpoints__row .desc { display: none; }
  .flow { grid-template-columns: 1fr; }
  .foot__grid { grid-template-columns: 1fr; }
  .foot__meta { flex-direction: column; gap: 16px; align-items: flex-start; }
  .cta-band__title { font-size: 26px; }
  .card__num { font-size: 160px; }
}

/* ---------- PREFERS REDUCED MOTION ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
