/* ==========================================================================
   reeche — Cooperative Inference
   Tokens: canvas #0B0F14 · surface #1E2630 · signal #00F59B
           text #E6EDF3 · muted #899CAE
   Radii 6–8px. Hairlines only. No playful surfaces.
   ========================================================================== */

:root {
  --canvas: #0B0F14;
  --surface: #131A22;
  --line: #1E2630;
  --line-hi: #2A3543;
  --signal: #00F59B;
  --signal-dim: rgba(0, 245, 155, .14);
  --text: #E6EDF3;
  --muted: #899CAE;
  --neg: #C9736B;

  --sans: "Space Grotesk", "Inter", ui-sans-serif, system-ui, sans-serif;
  --body: "Inter", "Space Grotesk", ui-sans-serif, system-ui, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, monospace;

  --r: 8px;
  --r-sm: 6px;
  --wrap: 1240px;
  --pad: clamp(20px, 4vw, 48px);
}

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

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

body {
  margin: 0;
  background: var(--canvas);
  color: var(--text);
  font-family: var(--body);
  font-size: 16px;
  line-height: 1.6;
  letter-spacing: -.005em;
  font-feature-settings: "cv05" 1, "ss03" 1;
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}

/* faint grid, data-centre floor feel */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background-image:
    linear-gradient(to right, rgba(30, 38, 48, .55) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(30, 38, 48, .55) 1px, transparent 1px);
  background-size: 72px 72px;
  mask-image: radial-gradient(1200px 700px at 50% 0%, #000 0%, transparent 78%);
  -webkit-mask-image: radial-gradient(1200px 700px at 50% 0%, #000 0%, transparent 78%);
  opacity: .5;
}

img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
h1, h2, h3 { font-family: var(--sans); font-weight: 600; letter-spacing: -.03em; line-height: 1.06; margin: 0; }
p { margin: 0; }
ul, dl, dd, dt { margin: 0; padding: 0; list-style: none; }

.wrap { width: 100%; max-width: var(--wrap); margin-inline: auto; padding-inline: var(--pad); }

.mono-label {
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--muted);
}

.accent { color: var(--signal); }
.dim { color: var(--muted); }

.visually-hidden {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

.skip {
  position: absolute; left: -9999px; top: 8px; z-index: 60;
  background: var(--signal); color: #04140D; padding: 8px 14px; border-radius: var(--r-sm);
  font-family: var(--mono); font-size: 12px;
}
.skip:focus { left: 8px; }

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

/* ── Buttons ───────────────────────────────────────────── */
.btn {
  --btn-fg: #04140D;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 13px 20px;
  border-radius: var(--r-sm);
  border: 1px solid transparent;
  font-family: var(--mono);
  font-size: 12.5px;
  font-weight: 500;
  letter-spacing: .06em;
  text-transform: uppercase;
  cursor: pointer;
  transition: background-color .16s ease, color .16s ease, border-color .16s ease, transform .16s ease, box-shadow .16s ease;
  white-space: nowrap;
}
.btn-primary {
  background: var(--signal);
  color: var(--btn-fg);
  border-color: var(--signal);
  box-shadow: 0 0 0 0 rgba(0, 245, 155, 0);
}
.btn-primary:hover {
  background: #22FFAC;
  box-shadow: 0 6px 26px -10px rgba(0, 245, 155, .65);
  transform: translateY(-1px);
}
.btn-primary:active { transform: translateY(0); }
.btn-ghost {
  background: transparent;
  color: var(--text);
  border-color: var(--line-hi);
}
.btn-ghost:hover {
  border-color: var(--signal);
  color: var(--signal);
  background: rgba(0, 245, 155, .05);
}
.btn-sm { padding: 9px 15px; font-size: 11.5px; }
.btn[disabled] { opacity: .55; cursor: progress; transform: none; box-shadow: none; }

/* ── Header ────────────────────────────────────────────── */
.site-header {
  position: sticky; top: 0; z-index: 40;
  background: rgba(11, 15, 20, .82);
  backdrop-filter: blur(14px) saturate(140%);
  -webkit-backdrop-filter: blur(14px) saturate(140%);
  border-bottom: 1px solid var(--line);
}
.header-inner {
  display: flex; align-items: center; gap: clamp(14px, 3vw, 32px);
  min-height: 68px;
}
.brand { display: inline-flex; align-items: center; gap: 10px; flex: 0 0 auto; }
.brand-mark { width: 24px; height: 24px; color: var(--signal); flex: 0 0 auto; }
.brand-text { display: flex; flex-direction: column; line-height: 1.05; }
.brand-word {
  font-family: var(--sans); font-weight: 600; font-size: 19px;
  letter-spacing: -.04em; color: var(--text);
}
.brand-sub {
  font-family: var(--mono); font-size: 8.5px; letter-spacing: .19em;
  text-transform: uppercase; color: var(--muted); margin-top: 4px;
}

.status-badge {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 6px 11px;
  border: 1px solid var(--line);
  border-radius: var(--r-sm);
  background: rgba(19, 26, 34, .8);
  font-family: var(--mono); font-size: 10.5px; letter-spacing: .07em;
  color: var(--muted); text-transform: uppercase;
  min-width: 0;
}
.status-text { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

.pulse {
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--signal); flex: 0 0 auto;
  box-shadow: 0 0 0 0 rgba(0, 245, 155, .5);
  animation: pulse 2.4s ease-out infinite;
}
@keyframes pulse {
  0%   { box-shadow: 0 0 0 0 rgba(0, 245, 155, .45); }
  70%  { box-shadow: 0 0 0 7px rgba(0, 245, 155, 0); }
  100% { box-shadow: 0 0 0 0 rgba(0, 245, 155, 0); }
}

.nav {
  margin-left: auto;
  display: flex; align-items: center; gap: clamp(14px, 2vw, 26px);
  font-family: var(--mono); font-size: 11.5px; letter-spacing: .09em; text-transform: uppercase;
}
.nav a:not(.btn) { color: var(--muted); transition: color .15s ease; }
.nav a:not(.btn):hover { color: var(--text); }
.nav .btn { color: var(--btn-fg); }

.nav-toggle {
  display: none; margin-left: auto;
  width: 38px; height: 34px; padding: 0;
  background: transparent; border: 1px solid var(--line); border-radius: var(--r-sm);
  cursor: pointer;
}
.nav-toggle span {
  display: block; width: 16px; height: 1.5px; margin: 3.5px auto;
  background: var(--text); transition: transform .2s ease, opacity .2s ease;
}
.nav-toggle[aria-expanded="true"] span:first-child { transform: translateY(2.5px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:last-child { transform: translateY(-2.5px) rotate(-45deg); }

.mobile-nav {
  display: none; flex-direction: column; gap: 4px;
  padding: 8px var(--pad) 18px;
  border-top: 1px solid var(--line);
}
.mobile-nav a {
  padding: 11px 2px;
  font-family: var(--mono); font-size: 12px; letter-spacing: .09em; text-transform: uppercase;
  color: var(--muted); border-bottom: 1px solid rgba(30, 38, 48, .7);
}
.mobile-nav a.btn { margin-top: 12px; border-bottom: none; color: var(--btn-fg); }

/* ── Hero ──────────────────────────────────────────────── */
.hero { padding: clamp(46px, 7vw, 96px) 0 clamp(40px, 6vw, 76px); }
.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.12fr) minmax(0, .88fr);
  gap: clamp(28px, 5vw, 64px);
  align-items: start;
}
.eyebrow {
  display: inline-flex; align-items: center; gap: 9px;
  font-family: var(--mono); font-size: 11px; letter-spacing: .14em;
  text-transform: uppercase; color: var(--muted); margin-bottom: 22px;
}
.tick { width: 18px; height: 1px; background: var(--signal); display: inline-block; }

.hero h1 {
  font-size: clamp(38px, 5.4vw, 66px);
  letter-spacing: -.045em;
  margin-bottom: 22px;
}
.lede {
  color: var(--muted); font-size: clamp(15px, 1.15vw, 17.5px);
  line-height: 1.62; max-width: 56ch;
}
.cta-row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }

.hero-facts {
  display: flex; flex-wrap: wrap; gap: 0;
  margin-top: 38px; padding-top: 20px;
  border-top: 1px solid var(--line);
}
.hero-facts > div {
  padding-right: clamp(20px, 3vw, 44px);
  margin-right: clamp(20px, 3vw, 44px);
  border-right: 1px solid var(--line);
}
.hero-facts > div:last-child { border-right: 0; margin-right: 0; padding-right: 0; }
.hero-facts dt {
  font-family: var(--mono); font-size: 10px; letter-spacing: .13em;
  text-transform: uppercase; color: var(--muted); margin-bottom: 6px;
}
.hero-facts dd { font-family: var(--mono); font-size: 17px; color: var(--text); letter-spacing: -.01em; }
.hero-facts dd .dim { font-size: 11px; letter-spacing: .04em; }

/* ── Telemetry card ────────────────────────────────────── */
.telemetry {
  border: 1px solid var(--line);
  border-radius: var(--r);
  background: linear-gradient(180deg, #141C25 0%, #10161D 100%);
  overflow: hidden;
  position: relative;
}
.telemetry::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(420px 180px at 92% -8%, rgba(0, 245, 155, .1), transparent 70%);
}
.telemetry-head {
  display: flex; align-items: center; justify-content: space-between;
  padding: 12px 16px;
  border-bottom: 1px solid var(--line);
  background: rgba(11, 15, 20, .5);
}
.live-dot {
  width: 6px; height: 6px; border-radius: 50%; background: var(--signal);
  animation: blink 1.9s steps(1, end) infinite;
}
@keyframes blink { 0%, 55% { opacity: 1; } 56%, 100% { opacity: .25; } }

.metric { padding: 16px; border-bottom: 1px solid var(--line); position: relative; }
.metric:last-of-type { border-bottom: 0; }
.metric-lead { padding-bottom: 20px; }
.metric-value { display: flex; align-items: baseline; gap: 8px; margin-top: 8px; flex-wrap: wrap; }
.num {
  font-family: var(--mono); font-size: 24px; font-weight: 500;
  letter-spacing: -.03em; color: var(--text); line-height: 1.1;
}
.metric-lead .num { font-size: clamp(32px, 3.4vw, 40px); }
.num-slash { font-family: var(--mono); font-size: 18px; color: var(--muted); letter-spacing: -.02em; }
.mono-label.inline { font-size: 9.5px; letter-spacing: .12em; margin-left: 4px; }
.metric-sub {
  display: block; margin-top: 6px;
  font-family: var(--mono); font-size: 10.5px; letter-spacing: .1em;
  text-transform: uppercase; color: var(--muted);
}

.bar {
  position: relative;
  height: 8px; margin-top: 14px;
  border-radius: 2px;
  background: #0A0E13;
  border: 1px solid var(--line);
  display: flex; gap: 2px; padding: 1px;
  overflow: hidden;
}
.bar-fill {
  height: 100%; width: var(--pct); border-radius: 1px;
  background: linear-gradient(90deg, rgba(0, 245, 155, .55), var(--signal));
  box-shadow: 0 0 12px -2px rgba(0, 245, 155, .7);
  transition: width 1.4s cubic-bezier(.16, 1, .3, 1);
}
.bar-tick { position: absolute; top: 0; bottom: 0; width: 1px; background: rgba(30, 38, 48, .9); left: calc(var(--i) * 10%); }

.telemetry-foot {
  display: flex; align-items: center; justify-content: space-between; gap: 14px;
  padding: 11px 16px;
  border-top: 1px solid var(--line);
  background: rgba(11, 15, 20, .5);
}
.spark { width: 108px; height: 24px; }
.spark polyline {
  fill: none; stroke: var(--signal); stroke-width: 1.4;
  stroke-linejoin: round; stroke-linecap: round;
  stroke-dasharray: 260; stroke-dashoffset: 260;
  animation: draw 2.2s ease-out .3s forwards;
}
@keyframes draw { to { stroke-dashoffset: 0; } }

/* ── Sections ──────────────────────────────────────────── */
.section { padding: clamp(56px, 7vw, 100px) 0; }
.section-alt {
  background:
    linear-gradient(180deg, rgba(19, 26, 34, .55), rgba(11, 15, 20, 0));
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.section-head { max-width: 62ch; margin-bottom: clamp(28px, 4vw, 46px); }
.section-head .eyebrow { margin-bottom: 14px; }
.section-head h2 { font-size: clamp(27px, 3.2vw, 40px); margin-bottom: 14px; }
.section-lede { color: var(--muted); font-size: 15.5px; max-width: 58ch; }

.card {
  border: 1px solid var(--line);
  border-radius: var(--r);
  background: var(--surface);
}

.pillars {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(14px, 1.6vw, 20px);
}
.pillar {
  padding: 24px 22px 20px;
  display: flex; flex-direction: column;
  transition: border-color .18s ease, background-color .18s ease, transform .18s ease;
}
.pillar:hover { border-color: var(--line-hi); transform: translateY(-2px); }
.pillar-index {
  font-family: var(--mono); font-size: 11px; letter-spacing: .14em;
  color: var(--signal); margin-bottom: 16px;
}
.pillar h3 { font-size: 19px; letter-spacing: -.025em; margin-bottom: 10px; }
.pillar p { color: var(--muted); font-size: 14.5px; line-height: 1.6; }

.spec-list { margin-top: 20px; padding-top: 14px; border-top: 1px solid var(--line); }
.spec-list li {
  display: flex; justify-content: space-between; gap: 12px;
  font-family: var(--mono); font-size: 10.5px; letter-spacing: .06em;
  text-transform: uppercase; padding: 5px 0;
}
.spec-list li span:first-child { color: var(--muted); }
.spec-list li span:last-child { color: var(--text); text-align: right; }

/* ── Economics ─────────────────────────────────────────── */
.econ-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) minmax(0, 1fr);
  gap: clamp(14px, 1.8vw, 22px);
  align-items: start;
}
.table-card { padding: 6px; overflow-x: auto; }
.econ { width: 100%; border-collapse: collapse; min-width: 460px; }
.econ th, .econ td { text-align: left; padding: 13px 14px; vertical-align: top; }
.econ thead th {
  font-family: var(--mono); font-size: 11px; letter-spacing: .1em; text-transform: uppercase;
  color: var(--text); font-weight: 500;
  border-bottom: 1px solid var(--line-hi);
  padding-bottom: 10px;
}
.econ thead th .th-sub {
  display: block; margin-top: 4px;
  font-size: 9.5px; letter-spacing: .1em; color: var(--muted); text-transform: uppercase;
}
.econ thead th.col-row { color: var(--muted); font-size: 10px; }
.econ tbody th {
  font-family: var(--body); font-size: 13.5px; font-weight: 400;
  color: var(--text); letter-spacing: -.005em;
  border-bottom: 1px solid rgba(30, 38, 48, .75);
}
.econ tbody td {
  font-family: var(--mono); font-size: 12px; letter-spacing: .02em;
  border-bottom: 1px solid rgba(30, 38, 48, .75);
}
.econ tbody tr:last-child th, .econ tbody tr:last-child td { border-bottom: 0; }
.econ tbody tr:hover td { background: rgba(30, 38, 48, .34); }
.num-neg { color: var(--neg); }
.num-pos { color: var(--signal); }
.econ .col-coop {
  border-left: 1px solid var(--signal);
  background: rgba(0, 245, 155, .045);
}

.calc { padding: 24px 22px; }
.calc h3 { font-size: 17px; margin: 10px 0 22px; letter-spacing: -.02em; }
.calc-label {
  display: flex; align-items: baseline; justify-content: space-between; gap: 12px;
  font-family: var(--mono); font-size: 10.5px; letter-spacing: .1em;
  text-transform: uppercase; color: var(--muted); margin-bottom: 10px;
}
.calc-label output { font-size: 13px; letter-spacing: .02em; text-transform: none; }

input[type="range"] {
  -webkit-appearance: none; appearance: none;
  width: 100%; height: 5px; margin: 10px 0 6px;
  background: linear-gradient(90deg, var(--signal) var(--fill, 22%), #0A0E13 var(--fill, 22%));
  border: 1px solid var(--line);
  border-radius: 2px; cursor: pointer;
}
input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none; appearance: none;
  width: 14px; height: 14px; border-radius: 3px;
  background: var(--signal); border: 1px solid #04140D;
  box-shadow: 0 0 10px -2px rgba(0, 245, 155, .9);
}
input[type="range"]::-moz-range-thumb {
  width: 13px; height: 13px; border-radius: 3px;
  background: var(--signal); border: 1px solid #04140D;
}
.calc-hint { font-size: 12px; color: var(--muted); line-height: 1.5; margin-bottom: 20px; }

.calc-rows { border-top: 1px solid var(--line); }
.calc-row {
  display: flex; align-items: baseline; justify-content: space-between; gap: 12px;
  padding: 11px 0; border-bottom: 1px solid var(--line);
  font-size: 13px; color: var(--muted);
}
.calc-row .mono { font-size: 13.5px; }
.calc-row:nth-child(2) .mono { color: var(--text); }
.calc-total { border-bottom: 0; padding-bottom: 4px; }
.calc-total span:first-child { color: var(--text); }
.calc-total .mono { font-size: 16px; }
.calc-foot { margin-top: 14px; font-size: 9.5px; line-height: 1.6; letter-spacing: .08em; }

/* ── Offer ─────────────────────────────────────────────── */
.offer {
  position: relative;
  padding: clamp(22px, 3vw, 34px);
  overflow: hidden;
}
.offer::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(560px 220px at 8% 0%, rgba(0, 245, 155, .09), transparent 70%);
}
.offer-corner {
  position: absolute; top: 0; right: 0;
  padding: 7px 14px;
  border-left: 1px solid var(--line); border-bottom: 1px solid var(--line);
  border-radius: 0 var(--r) 0 var(--r-sm);
  background: rgba(11, 15, 20, .7);
  font-size: 10px; color: var(--signal);
}
.offer-grid {
  display: grid;
  grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr);
  gap: clamp(24px, 4vw, 56px);
  position: relative;
}
.offer-price { border-right: 1px solid var(--line); padding-right: clamp(16px, 3vw, 40px); }
.price-main {
  display: flex; align-items: flex-start; gap: 2px;
  font-family: var(--mono); font-size: clamp(46px, 6vw, 66px);
  line-height: 1; letter-spacing: -.05em; color: var(--text);
}
.price-main .currency { font-size: .42em; color: var(--muted); margin-top: .35em; }
.offer-price .mono-label { margin-top: 12px; display: block; }
.price-dues {
  display: flex; align-items: baseline; gap: 8px;
  margin-top: 20px; padding-top: 16px; border-top: 1px solid var(--line);
}
.price-dues .mono { font-size: 17px; }
.offer-price .mono-label:last-of-type { margin-top: 0; }
.offer-note { margin-top: 18px; font-size: 12.5px; color: var(--muted); line-height: 1.55; max-width: 34ch; }

.includes { margin: 14px 0 24px; display: grid; gap: 11px; }
.includes li { display: flex; gap: 10px; align-items: flex-start; font-size: 14.5px; color: var(--text); }
.includes svg { width: 15px; height: 15px; color: var(--signal); flex: 0 0 auto; margin-top: 4px; }

.waitlist { display: flex; gap: 8px; flex-wrap: wrap; align-items: stretch; margin-top: 6px; }
.waitlist .btn { min-height: 46px; padding-block: 0; }
.waitlist input {
  flex: 1 1 240px; min-width: 0; min-height: 46px;
  padding: 13px 14px;
  background: #0A0E13;
  border: 1px solid var(--line-hi);
  border-radius: var(--r-sm);
  color: var(--text);
  font-family: var(--mono); font-size: 13px; letter-spacing: .02em;
  transition: border-color .16s ease, box-shadow .16s ease;
}
.waitlist input::placeholder { color: #5B6B7C; }
.waitlist input:focus {
  outline: none; border-color: var(--signal);
  box-shadow: 0 0 0 3px rgba(0, 245, 155, .13);
}
.waitlist input[aria-invalid="true"] { border-color: var(--neg); }
.waitlist-alt { margin-top: 12px; font-size: 12px; color: var(--muted); }
.waitlist-alt a { color: var(--signal); border-bottom: 1px solid rgba(0, 245, 155, .35); }
.waitlist-alt a:hover { border-bottom-color: var(--signal); }
.form-status {
  margin-top: 10px; min-height: 18px;
  font-family: var(--mono); font-size: 11.5px; letter-spacing: .04em;
}
.form-status[data-state="ok"] { color: var(--signal); }
.form-status[data-state="err"] { color: var(--neg); }

/* ── Footer ────────────────────────────────────────────── */
.site-footer { border-top: 1px solid var(--line); padding: 22px 0 26px; }
.footer-inner {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 16px;
}
.footer-inner > :first-child { justify-self: start; }
.footer-inner > .footer-status { justify-self: center; }
.footer-nav { justify-self: end; }
.footer-status { display: inline-flex; align-items: center; gap: 8px; }
.footer-status .pulse { width: 5px; height: 5px; }
.footer-nav { display: flex; gap: 18px; }
.footer-nav a { color: var(--muted); transition: color .15s ease; }
.footer-nav a:hover { color: var(--signal); }

/* ── Responsive ────────────────────────────────────────── */
@media (max-width: 1080px) {
  .status-badge { display: none; }
  .hero-grid { grid-template-columns: 1fr; }
  .telemetry { max-width: 560px; }
  .econ-grid { grid-template-columns: 1fr; }
}
@media (max-width: 900px) {
  .pillars { grid-template-columns: 1fr; }
  .offer-grid { grid-template-columns: 1fr; }
  .offer-price { border-right: 0; border-bottom: 1px solid var(--line); padding-right: 0; padding-bottom: 22px; }
  .offer-note { max-width: 46ch; }
}
@media (max-width: 760px) {
  .nav { display: none; }
  .nav-toggle { display: block; }
  .mobile-nav:not([hidden]) { display: flex; }
  .hero-facts > div { border-right: 0; margin-right: 0; padding-right: 0; }
  .hero-facts { gap: 16px 26px; }
  .cta-row .btn { flex: 1 1 100%; }
  .footer-inner { grid-template-columns: 1fr; justify-items: start; gap: 8px; }
  .footer-inner > .footer-status, .footer-nav { justify-self: start; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
  html { scroll-behavior: auto; }
}
