/* ============================================================
   AVASTHA — the price of intelligence
   Design system: "an actuary's terminal for the intelligence economy"
   Warm near-black · ivory editorial serif · mono for everything numeric
   Accent: ember orange · reserved market-green for LOCKED states
   ============================================================ */

:root {
  --bg: #0B0A08;
  --bg-raised: #0F0E0C;
  --surface: #141210;
  --surface-2: #1A1815;
  --ink: #F2EDE3;
  --ink-2: #B5AFA3;
  --muted: #8A8477;
  --line: rgba(242, 237, 227, 0.12);
  --line-soft: rgba(242, 237, 227, 0.07);
  --accent: #FF4F00;
  --accent-bright: #FF6A1F;
  --accent-dim: rgba(255, 79, 0, 0.12);
  --green: #3ECF8E;
  --green-dim: rgba(62, 207, 142, 0.12);

  --serif: "Instrument Serif", Georgia, "Times New Roman", serif;
  --sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --mono: "IBM Plex Mono", "SFMono-Regular", Menlo, Consolas, monospace;

  --w: 1200px;
  --pad: clamp(20px, 4vw, 48px);
  --cut: 14px; /* ticket corner */
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}

body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

/* faint graph-paper field over the whole page */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  background-image:
    linear-gradient(var(--line-soft) 1px, transparent 1px),
    linear-gradient(90deg, var(--line-soft) 1px, transparent 1px);
  background-size: 72px 72px;
  opacity: 0.5;
  mask-image: radial-gradient(ellipse 120% 90% at 50% 0%, black 20%, transparent 78%);
  -webkit-mask-image: radial-gradient(ellipse 120% 90% at 50% 0%, black 20%, transparent 78%);
}

::selection { background: var(--accent); color: var(--bg); }

a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: none; cursor: pointer; }

.wrap {
  max-width: var(--w);
  margin: 0 auto;
  padding-left: var(--pad);
  padding-right: var(--pad);
  position: relative;
  z-index: 1;
}

/* ---------------------------------------------------------- */
/* Type primitives                                             */
/* ---------------------------------------------------------- */

.eyebrow {
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
  display: flex;
  align-items: center;
  gap: 14px;
}
.eyebrow .idx { color: var(--accent-bright); }
.eyebrow::after {
  content: "";
  height: 1px;
  width: 56px;
  background: var(--line);
}

.display {
  font-family: var(--serif);
  font-weight: 400;
  line-height: 1.02;
  letter-spacing: -0.015em;
  text-wrap: balance;
}
.display em {
  font-style: italic;
  color: var(--accent-bright);
}
.display em.tok { color: #D8B45A; } /* token gold: coins, not fire */

h2.display { font-size: clamp(2.4rem, 5.2vw, 4.2rem); max-width: 21ch; }

.lede {
  color: var(--ink-2);
  font-size: clamp(1.05rem, 1.6vw, 1.25rem);
  line-height: 1.65;
  max-width: 58ch;
}

.kicker {
  font-family: var(--serif);
  font-style: italic;
  font-size: clamp(1.5rem, 2.8vw, 2.2rem);
  line-height: 1.3;
  color: var(--ink);
  text-wrap: balance;
}
.kicker .hl { color: var(--accent-bright); }

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

.src {
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: 0.04em;
  color: var(--muted);
}

/* ---------------------------------------------------------- */
/* Buttons                                                     */
/* ---------------------------------------------------------- */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--mono);
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 15px 24px;
  white-space: nowrap;
  transition: transform 0.18s ease, background 0.18s ease,
              border-color 0.18s ease, color 0.18s ease;
}
.btn:active { transform: translateY(1px); }

.btn-primary {
  background: var(--accent);
  color: var(--bg);
  clip-path: polygon(0 0, calc(100% - var(--cut)) 0, 100% var(--cut), 100% 100%, 0 100%);
}
.btn-primary:hover { background: var(--accent-bright); }

.btn-ghost {
  border: 1px solid var(--line);
  color: var(--ink);
}
.btn-ghost:hover { border-color: var(--accent); color: var(--accent-bright); }

/* ---------------------------------------------------------- */
/* Nav                                                         */
/* ---------------------------------------------------------- */

.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 50;
  background: rgba(11, 10, 8, 0.72);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line-soft);
}
.nav-inner {
  max-width: var(--w);
  margin: 0 auto;
  padding: 0 var(--pad);
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.wordmark {
  font-family: var(--mono);
  font-weight: 600;
  font-size: 15px;
  letter-spacing: 0.45em;
  color: var(--ink);
  display: inline-flex;
  align-items: center;
  gap: 11px;
}
.logo-mark {
  height: 27px;
  width: auto;
  display: block;
  flex: none;
}
.wordmark .tick { color: var(--accent); }
.nav-links {
  display: flex;
  align-items: center;
  gap: clamp(16px, 3vw, 36px);
}
.nav-links a {
  font-family: var(--mono);
  font-size: 11.5px;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-2);
  transition: color 0.15s ease;
}
.nav-links a:hover { color: var(--ink); }
.nav-links a.active { color: var(--accent-bright); }
.nav-cta {
  font-family: var(--mono);
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--bg) !important;
  background: var(--accent);
  padding: 10px 16px;
  clip-path: polygon(0 0, calc(100% - 9px) 0, 100% 9px, 100% 100%, 0 100%);
  transition: background 0.15s ease;
}
.nav-cta:hover { background: var(--accent-bright); }

/* ---------------------------------------------------------- */
/* Hero                                                        */
/* ---------------------------------------------------------- */

.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  overflow: hidden;
}
#field {
  position: absolute;
  inset: 0;
  z-index: 0;
  opacity: 0.9;
}
.hero::after { /* bottom fade into page */
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 30%;
  background: linear-gradient(transparent, var(--bg));
  z-index: 1;
  pointer-events: none;
}
.hero-inner {
  position: relative;
  z-index: 2;
  padding-top: 64px; /* clear the fixed nav; block centers in the viewport */
  padding-bottom: 0;
}
.hero-eyebrow { margin-bottom: 28px; }
.hero h1 {
  font-size: clamp(2.8rem, 6.8vw, 5.6rem);
  margin-bottom: 32px;
  max-width: none;
}
.hero .lede { margin-bottom: 40px; }
.hero-ctas { display: flex; gap: 16px; flex-wrap: wrap; }

.hero-meta {
  position: absolute;
  right: var(--pad);
  bottom: clamp(48px, 8vh, 96px);
  z-index: 2;
  text-align: right;
  display: none;
}
@media (min-width: 980px) { .hero-meta { display: block; } }
.hero-meta .mono-label { display: block; margin-bottom: 6px; }
.hero-meta .big {
  font-family: var(--mono);
  font-size: 15px;
  color: var(--ink-2);
}

/* ---------------------------------------------------------- */
/* Sections                                                    */
/* ---------------------------------------------------------- */

.section {
  position: relative;
  padding: clamp(84px, 12vh, 150px) 0;
  border-top: 1px solid var(--line-soft);
}
.section.no-rule { border-top: none; }
.section-head { margin-bottom: clamp(40px, 6vh, 72px); }
.section-head .eyebrow { margin-bottom: 26px; }
.section-head .lede { margin-top: 22px; }

/* scroll reveal */
.reveal {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity 0.85s cubic-bezier(0.22, 0.61, 0.36, 1),
              transform 0.85s cubic-bezier(0.22, 0.61, 0.36, 1);
  transition-delay: var(--d, 0s);
}
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
}

/* ---------------------------------------------------------- */
/* 01 · Problem                                                */
/* ---------------------------------------------------------- */

.prob-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1px;
  background: var(--line-soft);
  border: 1px solid var(--line-soft);
}
.prob-card {
  background: var(--bg-raised);
  padding: 36px 32px 40px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  transition: background 0.25s ease;
}
.prob-card:hover { background: var(--surface); }
.prob-card .num {
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.14em;
  color: var(--accent-bright);
}
.prob-card h3 {
  font-family: var(--serif);
  font-weight: 400;
  font-size: 1.7rem;
  line-height: 1.15;
}
.prob-card p { color: var(--ink-2); font-size: 0.95rem; }
.prob-card .quote {
  margin-top: auto;
  padding-top: 18px;
  border-top: 1px solid var(--line-soft);
  font-family: var(--serif);
  font-style: italic;
  font-size: 1.02rem;
  color: var(--muted);
}

.stat-row {
  margin-top: clamp(48px, 7vh, 80px);
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: clamp(24px, 4vw, 48px);
}
.stat .stat-val {
  font-family: var(--mono);
  font-weight: 600;
  font-size: clamp(2.4rem, 4.5vw, 3.6rem);
  line-height: 1.1;
  color: var(--ink);
  letter-spacing: -0.02em;
}
.stat .stat-val .unit { color: var(--accent-bright); }
.stat .stat-label {
  margin-top: 8px;
  color: var(--ink-2);
  font-size: 0.92rem;
  line-height: 1.45;
}
.stat .src { display: block; margin-top: 8px; }

/* narrow manifesto column (hone-style single flow) */
.wrap-narrow { max-width: 880px; }
.section-head .lede + .lede { margin-top: 18px; }
.subtle-link {
  color: var(--accent-bright);
  border-bottom: 1px solid rgba(255, 106, 31, 0.4);
  transition: border-color 0.15s ease;
}
.subtle-link:hover { border-bottom-color: var(--accent-bright); }

.phrase-list {
  list-style: none;
  counter-reset: ph;
  border-top: 1px solid var(--line-soft);
  max-width: 760px;
}
.phrase-list li {
  counter-increment: ph;
  display: flex;
  align-items: baseline;
  gap: 24px;
  padding: 22px 0;
  border-bottom: 1px solid var(--line-soft);
  font-family: var(--serif);
  font-size: clamp(1.35rem, 2.7vw, 2rem);
  line-height: 1.2;
  color: var(--ink);
}
.phrase-list li::before {
  content: "0" counter(ph);
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.14em;
  color: var(--accent-bright);
}

/* the manifesto: intro statement + plain prose, one style (hone-style) */
.manifesto { padding-top: clamp(72px, 11vh, 130px); }
h2.display.m-intro {
  max-width: none;
  margin-bottom: clamp(22px, 3.5vh, 36px);
}
h2.display.m-step {
  margin-top: clamp(48px, 12vh, 110px); /* ~an eighth-scroll below the mission */
  margin-bottom: clamp(26px, 4vh, 40px);
  scroll-margin-top: 120px;
}

/* hone-style scroll cue between the prose and the step title */
.scroll-cue {
  display: inline-block;
  margin-top: clamp(40px, 7vh, 72px);
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.2em;
  color: var(--muted);
  animation: cue-bob 2.4s ease-in-out infinite;
  transition: color 0.15s ease;
}
.scroll-cue:hover { color: var(--accent-bright); }
@keyframes cue-bob {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(6px); }
}
@media (prefers-reduced-motion: reduce) { .scroll-cue { animation: none; } }
.m-sub {
  font-family: var(--serif);
  font-size: clamp(1.4rem, 2.5vw, 2rem);
  line-height: 1.3;
  color: var(--ink);
  margin-bottom: clamp(40px, 6vh, 64px);
}
.m-prose p {
  font-size: clamp(1.05rem, 1.5vw, 1.2rem);
  line-height: 1.75;
  color: var(--ink-2);
  max-width: 62ch;
  margin-bottom: 28px;
}
.m-prose b { color: var(--ink); font-weight: 600; }
.m-prose p.m-lead { margin-bottom: 12px; }
.m-prose p.m-mission {
  font-family: var(--serif);
  font-size: clamp(2.4rem, 5.2vw, 4.2rem);
  line-height: 1.02;
  letter-spacing: -0.015em;
  text-wrap: balance;
  color: var(--ink);
  max-width: none;
  margin-top: clamp(76px, 11vh, 120px); /* several clear line breaks after the lead-in */
}
.manifesto .btn { margin-top: 10px; }

.casino-tease {
  margin-top: clamp(40px, 6vh, 64px);
  text-align: center;
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.14em;
}
.casino-tease a { color: var(--muted); }
.casino-tease span { color: var(--accent-bright); font-weight: 600; white-space: nowrap; }
.casino-tease a:hover span { color: var(--accent); text-decoration: underline; }

/* ---------------------------------------------------------- */
/* 02 · Proposition                                            */
/* ---------------------------------------------------------- */

.prop-panels {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 24px;
}
.panel {
  border: 1px solid var(--line);
  background: var(--bg-raised);
  padding: 40px 36px;
  position: relative;
}
.panel .mono-label { display: block; margin-bottom: 18px; }
.panel h3 {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(1.6rem, 2.6vw, 2.2rem);
  line-height: 1.12;
  margin-bottom: 16px;
}
.panel p { color: var(--ink-2); }
.panel-contract { border-top: 2px solid var(--accent); }
.panel-guarantee { border-top: 2px solid var(--green); }
.panel-guarantee .mono-label { color: var(--green); }
.panel-contract .mono-label { color: var(--accent-bright); }

.chip-row {
  margin-top: 24px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1px;
  background: var(--line-soft);
  border: 1px solid var(--line-soft);
}
.chip {
  background: var(--bg-raised);
  padding: 24px 24px 28px;
}
.chip h4 {
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink);
  margin-bottom: 10px;
}
.chip p { color: var(--muted); font-size: 0.88rem; line-height: 1.5; }

/* ---------------------------------------------------------- */
/* 03 · Flow                                                   */
/* ---------------------------------------------------------- */

.flow-rail {
  display: flex;
  flex-wrap: wrap;
  align-items: stretch;
  gap: 0;
  border: 1px solid var(--line-soft);
  background: var(--line-soft);
}
.flow-step {
  flex: 1 1 150px;
  min-width: 150px;
  background: var(--bg-raised);
  padding: 26px 22px;
  position: relative;
  margin-right: 1px;
}
.flow-step:last-child { margin-right: 0; }
.flow-step .fnum {
  font-family: var(--mono);
  font-size: 11px;
  color: var(--muted);
  display: block;
  margin-bottom: 12px;
}
.flow-step h4 {
  font-family: var(--serif);
  font-weight: 400;
  font-size: 1.35rem;
  margin-bottom: 6px;
}
.flow-step p { color: var(--muted); font-size: 0.84rem; line-height: 1.5; }
.flow-step .arrow {
  position: absolute;
  top: 26px; right: 14px;
  font-family: var(--mono);
  color: var(--accent-bright);
  font-size: 13px;
}

.settle-split {
  margin-top: 24px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 24px;
}
.settle {
  padding: 32px 32px 36px;
  border: 1px solid var(--line);
  background: var(--bg-raised);
}
.settle .mono-label { display: block; margin-bottom: 14px; }
.settle-met { border-left: 2px solid var(--green); }
.settle-met .mono-label { color: var(--green); }
.settle-unmet { border-left: 2px solid var(--accent); }
.settle-unmet .mono-label { color: var(--accent-bright); }
.settle p { color: var(--ink-2); font-size: 0.95rem; }

.flow-kicker { margin-top: clamp(48px, 7vh, 72px); text-align: center; }
.flow-kicker .kicker { max-width: 34ch; margin: 0 auto; }

/* ---------------------------------------------------------- */
/* 04 · Engine (five hard problems)                            */
/* ---------------------------------------------------------- */

.engine-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(216px, 1fr));
  gap: 1px;
  background: var(--line-soft);
  border: 1px solid var(--line-soft);
  counter-reset: engine;
}
.engine-card {
  background: var(--bg-raised);
  padding: 30px 26px 36px;
  counter-increment: engine;
  transition: background 0.25s ease;
}
.engine-card:hover { background: var(--surface); }
.engine-card::before {
  content: "0" counter(engine);
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.14em;
  color: var(--accent-bright);
  display: block;
  margin-bottom: 40px;
}
.engine-card h4 {
  font-family: var(--serif);
  font-weight: 400;
  font-size: 1.4rem;
  line-height: 1.15;
  margin-bottom: 10px;
}
.engine-card p { color: var(--muted); font-size: 0.86rem; line-height: 1.55; }

.pullquote {
  margin-top: clamp(56px, 9vh, 96px);
  text-align: center;
}
.pullquote .kicker {
  font-size: clamp(1.8rem, 3.6vw, 2.8rem);
  max-width: 26ch;
  margin: 0 auto;
}

/* ---------------------------------------------------------- */
/* 05 · Why now + chart                                        */
/* ---------------------------------------------------------- */

.whynow-grid {
  display: grid;
  grid-template-columns: 1.35fr 1fr;
  gap: clamp(32px, 5vw, 72px);
  align-items: start;
}
@media (max-width: 920px) {
  .whynow-grid { grid-template-columns: 1fr; }
}

.chart-frame {
  border: 1px solid var(--line);
  background: var(--bg-raised);
  padding: 28px 24px 20px;
}
.chart-frame .chart-title {
  font-family: var(--mono);
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink);
  margin-bottom: 4px;
}
.chart-frame .chart-sub {
  font-family: var(--mono);
  font-size: 10.5px;
  color: var(--muted);
  margin-bottom: 18px;
}
.chart-frame svg { width: 100%; height: auto; display: block; }
.chart-frame .axis-text {
  font-family: var(--mono);
  font-size: 11px;
  fill: var(--muted);
}
.chart-frame .pt-label {
  font-family: var(--mono);
  font-size: 11.5px;
  font-weight: 600;
  fill: var(--ink);
}
.chart-frame .pt-sub {
  font-family: var(--mono);
  font-size: 10.5px;
  fill: var(--muted);
}
.chart-frame .grid-line { stroke: var(--line-soft); stroke-width: 1; }
.chart-frame .series { stroke: var(--accent-bright); stroke-width: 2; fill: none; stroke-linejoin: round; stroke-linecap: round; }
.chart-frame .dot { fill: var(--accent-bright); stroke: var(--bg-raised); stroke-width: 2; }
.chart-frame .dot-hit { fill: transparent; cursor: pointer; }
.chart-frame .chart-src { margin-top: 14px; }

.chart-tip {
  position: fixed;
  z-index: 80;
  pointer-events: none;
  background: var(--surface-2);
  border: 1px solid var(--line);
  color: var(--ink);
  font-family: var(--mono);
  font-size: 11.5px;
  padding: 8px 12px;
  white-space: nowrap;
  opacity: 0;
  transition: opacity 0.12s ease;
}
.chart-tip.on { opacity: 1; }

.why-items { display: flex; flex-direction: column; gap: 0; }
.why-item {
  padding: 26px 0;
  border-bottom: 1px solid var(--line-soft);
}
.why-item:first-child { border-top: 1px solid var(--line-soft); }
.why-item h4 {
  font-family: var(--serif);
  font-weight: 400;
  font-size: 1.45rem;
  margin-bottom: 8px;
}
.why-item p { color: var(--ink-2); font-size: 0.93rem; }
.why-item .src { display: block; margin-top: 8px; }

/* ---------------------------------------------------------- */
/* 06 · Roadmap                                                */
/* ---------------------------------------------------------- */

.road-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
}
.road-stage {
  border: 1px solid var(--line);
  background: var(--bg-raised);
  padding: 36px 32px 40px;
  position: relative;
  display: flex;
  flex-direction: column;
  transition: border-color 0.25s ease, transform 0.25s ease;
}
.road-stage:hover { border-color: var(--line); transform: translateY(-3px); }
.road-stage .stage-num {
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.16em;
  color: var(--muted);
  margin-bottom: 44px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.badge {
  font-family: var(--mono);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.14em;
  padding: 5px 9px;
}
.badge-live { background: var(--accent); color: var(--bg); }
.badge-next { border: 1px solid var(--line); color: var(--muted); }
.road-stage h3 {
  font-family: var(--serif);
  font-weight: 400;
  font-size: 2rem;
  margin-bottom: 14px;
}
.road-stage p { color: var(--ink-2); font-size: 0.94rem; flex: 1; }
.road-stage .stage-link {
  margin-top: 26px;
  font-family: var(--mono);
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent-bright);
}
.road-stage .stage-link:hover { color: var(--accent); }
.road-stage.live { border-color: rgba(255, 79, 0, 0.45); }
.road-stage.live:hover { border-color: var(--accent); }

.road-kicker { margin-top: clamp(48px, 7vh, 72px); text-align: center; }
.road-kicker .kicker { max-width: 40ch; margin: 0 auto; }

/* ---------------------------------------------------------- */
/* 07 · Moat                                                   */
/* ---------------------------------------------------------- */

.loop-strip {
  font-family: var(--mono);
  font-size: clamp(13px, 2vw, 16px);
  letter-spacing: 0.06em;
  color: var(--ink-2);
  border: 1px solid var(--line-soft);
  background: var(--bg-raised);
  padding: 22px 28px;
  display: flex;
  flex-wrap: wrap;
  gap: 12px 18px;
  align-items: center;
  justify-content: center;
  margin-bottom: 48px;
}
.loop-strip .op { color: var(--accent-bright); }
.loop-strip .note { color: var(--muted); font-size: 0.82em; width: 100%; text-align: center; }

.moat-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: clamp(28px, 4vw, 56px);
}
.moat-item h4 {
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent-bright);
  margin-bottom: 14px;
}
.moat-item p { color: var(--ink-2); font-size: 0.95rem; }

/* ---------------------------------------------------------- */
/* Closing + footer                                            */
/* ---------------------------------------------------------- */

.closing {
  text-align: center;
  padding: clamp(110px, 18vh, 200px) 0;
}
.closing h2 {
  font-size: clamp(2.8rem, 7vw, 6rem);
  max-width: 16ch;
  margin: 0 auto 28px;
}
.closing .lede { margin: 0 auto 44px; }
.closing-ctas { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }

.footer {
  border-top: 1px solid var(--line-soft);
  padding: 48px 0 56px;
}
.footer-inner {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  align-items: baseline;
  justify-content: space-between;
}
.footer .tag {
  font-family: var(--serif);
  font-style: italic;
  color: var(--muted);
  font-size: 1.05rem;
}
.footer-links { display: flex; gap: 28px; }
.footer-links a {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
}
.footer-links a:hover { color: var(--ink); }
.footer .fine {
  width: 100%;
  margin-top: 20px;
  font-family: var(--mono);
  font-size: 10.5px;
  color: var(--muted);
  opacity: 0.7;
}

/* ============================================================
   PRODUCT PAGE
   ============================================================ */

.p-hero {
  position: relative;
  padding-top: 170px;
  padding-bottom: 64px;
  overflow: hidden;
}
.p-hero h1 {
  font-size: clamp(2.8rem, 6.5vw, 5.4rem);
  margin: 26px 0 24px;
  max-width: 17ch;
}
.p-hero .lede { margin-bottom: 8px; }

.stage-tag {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--mono);
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--accent-bright);
}
.stage-tag .pulse {
  width: 7px; height: 7px;
  background: var(--accent);
  border-radius: 50%;
  animation: pulse 2.2s ease-in-out infinite;
}
@keyframes pulse {
  0%, 100% { opacity: 1; box-shadow: 0 0 0 0 rgba(255, 79, 0, 0.5); }
  50% { opacity: 0.6; box-shadow: 0 0 0 7px rgba(255, 79, 0, 0); }
}
@media (prefers-reduced-motion: reduce) { .stage-tag .pulse { animation: none; } }

/* Console */

.console {
  border: 1px solid var(--line);
  background: var(--bg-raised);
}
.console-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 16px 24px;
  border-bottom: 1px solid var(--line-soft);
  flex-wrap: wrap;
}
.console-head .mono-label { color: var(--ink-2); }
.console-head .status { color: var(--muted); }
.console-body { padding: clamp(20px, 3vw, 36px); }

.task-input {
  width: 100%;
  min-height: 130px;
  resize: vertical;
  background: var(--bg);
  border: 1px solid var(--line);
  color: var(--ink);
  font-family: var(--mono);
  font-size: 13.5px;
  line-height: 1.7;
  padding: 18px 20px;
  outline: none;
  transition: border-color 0.15s ease;
}
.task-input:focus { border-color: rgba(255, 79, 0, 0.55); }
.task-input::placeholder { color: var(--muted); opacity: 0.8; }

.console-controls {
  margin-top: 22px;
  display: flex;
  flex-wrap: wrap;
  gap: 22px 40px;
  align-items: flex-end;
}
.control-group .mono-label { display: block; margin-bottom: 10px; }
.seg {
  display: inline-flex;
  border: 1px solid var(--line);
  background: var(--bg);
}
.seg button {
  font-family: var(--mono);
  font-size: 11.5px;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  padding: 11px 16px;
  border-right: 1px solid var(--line-soft);
  transition: color 0.14s ease, background 0.14s ease;
}
.seg button:last-child { border-right: none; }
.seg button:hover { color: var(--ink); }
.seg button.on {
  background: var(--accent);
  color: var(--bg);
  font-weight: 600;
}
.console-controls .go { margin-left: auto; }
@media (max-width: 720px) {
  .console-controls .go { margin-left: 0; width: 100%; justify-content: center; }
}

/* Quote board */

.board { margin-top: 36px; }
.board-empty {
  border: 1px dashed var(--line);
  padding: 56px 24px;
  text-align: center;
  color: var(--muted);
  font-family: var(--mono);
  font-size: 12.5px;
  letter-spacing: 0.08em;
}

.quote-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(228px, 1fr));
  gap: 14px;
}

/* ticket cards: outer = hairline, inner = surface, both clipped */
.qcard {
  background: var(--line);
  clip-path: polygon(0 0, calc(100% - var(--cut)) 0, 100% var(--cut), 100% 100%, 0 100%);
  padding: 1px;
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 0.5s ease, transform 0.5s ease;
  transition-delay: var(--d, 0s);
}
.qcard.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .qcard { opacity: 1; transform: none; transition: none; }
}
.qcard-inner {
  background: var(--surface);
  clip-path: polygon(0 0, calc(100% - 13.4px) 0, 100% 13.4px, 100% 100%, 0 100%);
  padding: 20px 20px 18px;
  height: 100%;
  display: flex;
  flex-direction: column;
  gap: 4px;
  transition: background 0.2s ease;
}
.qcard:hover .qcard-inner { background: var(--surface-2); }
.qcard.keenest { background: var(--green); }
.qcard.keenest .qcard-inner { background: #101613; }
.qcard .q-model {
  font-family: var(--mono);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: var(--ink);
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 8px;
}
.qcard .q-id {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
}
.qcard .q-logo {
  flex: none;
  width: 17px;
  height: 17px;
  display: inline-flex;
}
.qcard .q-logo svg,
.qcard .q-logo img { width: 100%; height: 100%; display: block; }
.qcard .q-tag {
  font-size: 9px;
  letter-spacing: 0.12em;
  color: var(--accent-bright);
  border: 1px solid rgba(255, 79, 0, 0.4);
  padding: 2px 5px;
  white-space: nowrap;
}
.qcard .q-tag.green { color: var(--green); border-color: rgba(62, 207, 142, 0.4); }
.qcard .q-tag.gold { color: #D8B45A; border-color: rgba(216, 180, 90, 0.45); }
.qcard .q-slug {
  font-family: var(--mono);
  font-size: 10px;
  color: var(--muted);
  letter-spacing: 0.03em;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.qcard .q-price {
  margin-top: 14px;
  font-family: var(--mono);
  font-weight: 600;
  font-size: 1.9rem;
  letter-spacing: -0.01em;
  color: var(--ink);
  line-height: 1;
}
.qcard.keenest .q-price { color: var(--green); }
.qcard .q-firm {
  font-family: var(--mono);
  font-size: 9.5px;
  letter-spacing: 0.14em;
  color: var(--muted);
  margin-top: 5px;
  text-transform: uppercase;
}
.qcard .q-meta {
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid var(--line-soft);
  font-family: var(--mono);
  font-size: 10.5px;
  color: var(--ink-2);
  display: flex;
  flex-direction: column;
  gap: 3px;
}
.qcard .q-meta span b { color: var(--ink); font-weight: 500; }
.qcard .q-lock {
  margin-top: 16px;
  width: 100%;
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 11px 0;
  border: 1px solid var(--line);
  color: var(--ink);
  text-align: center;
  transition: all 0.16s ease;
}
.qcard .q-lock:hover { border-color: var(--accent); color: var(--accent-bright); }
.qcard .q-lock.locked {
  background: var(--green-dim);
  border-color: rgba(62, 207, 142, 0.5);
  color: var(--green);
  cursor: default;
}

.board-fine {
  margin-top: 20px;
  font-family: var(--mono);
  font-size: 10.5px;
  color: var(--muted);
  line-height: 1.7;
}

/* toast */
.toast {
  position: fixed;
  left: 50%;
  bottom: 28px;
  transform: translate(-50%, 12px);
  z-index: 90;
  background: var(--surface-2);
  border: 1px solid rgba(62, 207, 142, 0.5);
  color: var(--ink);
  font-family: var(--mono);
  font-size: 12px;
  padding: 13px 20px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease, transform 0.25s ease;
  max-width: min(92vw, 560px);
  text-align: center;
}
.toast.on { opacity: 1; transform: translate(-50%, 0); }
.toast .ok { color: var(--green); font-weight: 600; }

/* binding / explainer */

.binding-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1px;
  background: var(--line-soft);
  border: 1px solid var(--line-soft);
}
/* plain fine-print prose under the product hero */
.hero-fine { margin-top: 40px; max-width: 66ch; }
.hero-fine p {
  color: var(--ink-2);
  font-size: 1.02rem;
  line-height: 1.7;
  margin-bottom: 26px;
}
.hero-fine p:last-child { margin-bottom: 0; }
.hero-fine .p-label {
  display: block;
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--accent-bright);
  margin-bottom: 8px;
}
.binding-card { background: var(--bg-raised); padding: 34px 30px 38px; }
.binding-card h4 {
  font-family: var(--serif);
  font-weight: 400;
  font-size: 1.5rem;
  margin-bottom: 12px;
}
.binding-card p { color: var(--ink-2); font-size: 0.93rem; }
.binding-card .mono-label { display: block; margin-bottom: 16px; color: var(--accent-bright); }
.binding-card a { color: var(--accent-bright); }
.binding-card a:hover { text-decoration: underline; }

.formula {
  margin-top: 48px;
  border: 1px solid var(--line-soft);
  background: var(--bg-raised);
  padding: 30px 28px;
  text-align: center;
  font-family: var(--mono);
  font-size: clamp(13px, 2.2vw, 17px);
  letter-spacing: 0.04em;
  color: var(--ink-2);
  overflow-x: auto;
}
.formula .v { color: var(--ink); font-weight: 600; }
.formula .op { color: var(--accent-bright); }
.formula-note {
  margin-top: 14px;
  font-family: var(--mono);
  font-size: 10.5px;
  color: var(--muted);
  text-align: center;
}

/* pilot */

.pilot {
  text-align: center;
  padding: clamp(90px, 14vh, 160px) 0;
}
.pilot h2 { margin: 0 auto 20px; }
.pilot .lede { margin: 0 auto 40px; }
.pilot-form {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
}
.pilot-form input {
  background: var(--bg-raised);
  border: 1px solid var(--line);
  color: var(--ink);
  font-family: var(--mono);
  font-size: 13px;
  padding: 15px 18px;
  width: min(360px, 86vw);
  outline: none;
  transition: border-color 0.15s ease;
}
.pilot-form input:focus { border-color: rgba(255, 79, 0, 0.55); }
.pilot-form input::placeholder { color: var(--muted); }
.pilot-done {
  font-family: var(--mono);
  font-size: 13px;
  color: var(--green);
  border: 1px solid rgba(62, 207, 142, 0.4);
  display: inline-block;
  padding: 15px 26px;
}

/* ---------------------------------------------------------- */
/* Small screens                                               */
/* ---------------------------------------------------------- */

@media (max-width: 640px) {
  .nav-links a.nav-link-plain { display: none; }
  .hero h1 { font-size: clamp(2.9rem, 13vw, 4.2rem); }
  .flow-step { min-width: 46%; }
}
