/* ============================================================
   Macroscape — landing page
   ============================================================ */

:root {
  /* surfaces */
  --bg:        oklch(0.984 0.004 95);
  --bg-tint:   oklch(0.968 0.005 95);
  --bg-rail:   oklch(0.978 0.004 95);
  --bg-chrome: oklch(0.972 0.004 95);
  --surface:   oklch(1 0 0);

  /* ink */
  --ink:   oklch(0.22 0.02 265);
  --ink-2: oklch(0.3 0.02 265);
  --ink-3: oklch(0.4 0.015 265);
  --muted: oklch(0.5 0.015 265);
  --dim:   oklch(0.6 0.015 265);
  --faint: oklch(0.62 0.015 265);

  /* lines */
  --line:      oklch(0.91 0.006 265);
  --line-soft: oklch(0.93 0.006 265);
  --line-2:    oklch(0.92 0.006 265);
  --line-3:    oklch(0.87 0.008 265);
  --wire:      oklch(0.86 0.01 265);

  /* accents */
  --blue:      oklch(0.62 0.15 250);
  --blue-deep: oklch(0.44 0.13 250);
  --violet:    oklch(0.58 0.14 300);
  --teal:      oklch(0.58 0.13 160);
  --amber:     oklch(0.62 0.16 55);
  --amber-ink: oklch(0.5 0.15 55);
  --slate:     oklch(0.5 0.02 265);
  --green:     oklch(0.44 0.14 150);

  --mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
  --sans: "Instrument Sans", -apple-system, BlinkMacSystemFont, Helvetica, Arial, sans-serif;

  --shell: 1200px;
  --gutter: 28px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: 76px; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

h1, h2, h3, p, dl, dd, dt, figure, ul { margin: 0; }
ul { padding: 0; list-style: none; }

a { color: var(--blue-deep); text-decoration: none; }
a:hover { color: oklch(0.36 0.13 250); }

button { font: inherit; }

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

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

.skip-link {
  position: absolute; left: -9999px; top: 8px; z-index: 100;
  background: var(--ink); color: oklch(0.99 0 0);
  padding: 10px 16px; border-radius: 8px; font-size: 14px;
}
.skip-link:focus { left: 12px; color: oklch(0.99 0 0); }

.shell { max-width: var(--shell); margin: 0 auto; padding-inline: var(--gutter); }

/* ── shared type ─────────────────────────────────────────── */

.h2 {
  font-size: 34px; line-height: 1.1; letter-spacing: -0.03em;
  font-weight: 600; text-wrap: balance;
}
.lede {
  font-size: 16px; line-height: 1.6; color: var(--muted); text-wrap: pretty;
}

.badge {
  font-family: var(--mono); font-size: 11px;
  padding: 3px 9px; border-radius: 999px;
}
.badge--pass { color: var(--green); background: oklch(0.95 0.04 150); }
.badge--fail { color: oklch(0.48 0.15 55); background: oklch(0.96 0.04 70); }

/* ── glyphs (decorative shapes inside icon tiles) ────────── */

.glyph {
  display: block; width: 10px; height: 10px;
  background: var(--fg, oklch(1 0 0 / 0.95));
}
.glyph--on-icon { --fg: oklch(1 0 0 / 0.95); }
.glyph--diamond { border-radius: 2px; transform: rotate(45deg); }
.glyph--dot     { border-radius: 999px; }
.glyph--sq      { border-radius: 3px; }
.glyph--bar     { width: 14px; height: 4px; border-radius: 2px; }
.glyph--pill    { width: 14px; height: 9px; border-radius: 999px; }
.glyph--vbar    { width: 4px; height: 12px; border-radius: 2px; }
.glyph--lg      { width: 12px; height: 12px; }
.glyph--xs      { width: 5px; height: 5px; }

/* ── buttons ─────────────────────────────────────────────── */

.btn {
  display: inline-block;
  font-size: 15px; font-weight: 500;
  border-radius: 10px; cursor: pointer;
  transition: background 180ms ease, border-color 180ms ease, color 180ms ease;
}
.btn--ghost {
  font-size: 14px; padding: 8px 15px;
  color: var(--ink); background: var(--surface);
  border: 1px solid var(--line-3);
}
.btn--ghost:hover { color: var(--ink); border-color: var(--ink); }

.btn--solid {
  padding: 13px 20px;
  color: oklch(0.99 0 0); background: var(--ink);
  border: 1px solid var(--ink);
}
.btn--solid:hover { background: oklch(0.3 0.03 265); }

.btn--light {
  padding: 13px 22px;
  color: oklch(0.2 0.02 265); background: oklch(0.98 0.004 95);
}
.btn--light:hover { background: oklch(0.88 0.006 95); color: oklch(0.2 0.02 265); }

/* ── header ──────────────────────────────────────────────── */

.site-header {
  position: sticky; top: 0; z-index: 30;
  backdrop-filter: blur(14px);
  background: color-mix(in oklab, var(--bg) 80%, transparent);
  border-bottom: 1px solid var(--line);
}
.site-header__inner {
  display: flex; align-items: center; gap: 30px;
  padding-block: 14px;
}

.brand { display: flex; align-items: center; gap: 9px; margin-right: auto; color: var(--ink); }
.brand:hover { color: var(--ink); }
.brand__mark {
  width: 24px; height: 24px; border-radius: 7px;
  background: var(--ink); display: grid; place-items: center;
}
.brand__mark .glyph { width: 9px; height: 9px; --fg: var(--blue); }
.brand__name { font-size: 17px; font-weight: 600; letter-spacing: -0.015em; }

.site-nav { display: flex; align-items: center; gap: 26px; font-size: 14px; }
.site-nav a { color: var(--muted); }
.site-nav a:hover { color: var(--ink); }

/* ── hero ────────────────────────────────────────────────── */

.hero {
  padding-top: 84px;
  display: flex; flex-direction: column; align-items: center;
  gap: 26px; text-align: center;
}
.pill {
  display: flex; align-items: center; gap: 9px;
  border: 1px solid oklch(0.89 0.02 250); background: var(--surface);
  color: var(--blue-deep);
  padding: 6px 13px 6px 10px; border-radius: 999px;
  font-family: var(--mono); font-size: 12px;
}
.pill__dot { width: 6px; height: 6px; border-radius: 999px; background: var(--blue); }

.hero__title {
  font-size: clamp(40px, 5.6vw, 66px); line-height: 1.03;
  letter-spacing: -0.038em; font-weight: 600;
  max-width: 900px; text-wrap: balance;
}
.hero__sub {
  font-size: 19px; line-height: 1.5; color: var(--muted);
  max-width: 620px; text-wrap: pretty;
}

.waitlist { display: flex; flex-direction: column; align-items: center; gap: 9px; }
.waitlist__form { display: flex; gap: 9px; flex-wrap: wrap; justify-content: center; }
.waitlist__form input {
  width: 260px; padding: 13px 15px;
  font-family: inherit; font-size: 15px; color: var(--ink);
  background: var(--surface); border: 1px solid var(--line-3);
  border-radius: 10px; outline: none;
  transition: border-color 160ms ease;
}
.waitlist__form input::placeholder { color: oklch(0.68 0.01 265); }
.waitlist__form input:focus { border-color: var(--blue); }
.waitlist__form input[aria-invalid="true"] { border-color: oklch(0.6 0.16 30); }
.waitlist__form .btn--solid:disabled { opacity: 0.6; cursor: default; }
.waitlist__form .btn--solid:disabled:hover { background: var(--ink); }
.waitlist__note { font-family: var(--mono); font-size: 12px; color: var(--dim); }

/* honeypot — must stay reachable to bots, invisible to everyone else */
.hp { position: absolute; left: -5000px; width: 1px; height: 1px; overflow: hidden; }

/* ── product panel ───────────────────────────────────────── */

.section-product { padding-top: 56px; padding-bottom: 90px; }

.app {
  border: 1px solid oklch(0.89 0.008 265); border-radius: 16px;
  background: var(--surface); overflow: hidden;
  box-shadow: 0 2px 4px oklch(0.22 0.02 265 / 0.04),
              0 40px 80px -40px oklch(0.22 0.02 265 / 0.28);
}

.app__chrome {
  display: flex; align-items: center; gap: 14px;
  padding: 11px 14px;
  background: var(--bg-chrome); border-bottom: 1px solid var(--line-2);
}
.app__dots { display: flex; gap: 6px; }
.app__dots i { width: 10px; height: 10px; border-radius: 999px; background: oklch(0.86 0.01 265); }

.app__file {
  display: flex; align-items: center; gap: 8px;
  font-family: var(--mono); font-size: 11.5px; color: oklch(0.52 0.015 265);
}
.app__file-mark {
  width: 15px; height: 15px; border-radius: 4px;
  background: var(--ink); display: grid; place-items: center;
}
.app__file-mark .glyph { --fg: var(--blue); border-radius: 0; }

.tabs {
  display: flex; gap: 4px; margin: 0 auto;
  padding: 3px; background: oklch(0.94 0.006 265); border-radius: 9px;
}
.tab {
  border: none; cursor: pointer;
  font-size: 13px; font-weight: 500; padding: 6px 16px; border-radius: 7px;
  color: var(--muted); background: transparent;
  transition: background 200ms ease, color 200ms ease;
}
.tab:hover { color: var(--ink); }
.tab.is-active {
  color: var(--ink); background: var(--surface);
  box-shadow: 0 1px 3px oklch(0.22 0.02 265 / 0.14);
}

.app__people { display: flex; align-items: center; gap: 10px; }
.avatars { display: flex; }
.avatars i {
  width: 22px; height: 22px; border-radius: 999px;
  border: 2px solid var(--surface);
}
.avatars i + i { margin-left: -7px; }
.avatars .a1 { background: oklch(0.7 0.1 250); }
.avatars .a2 { background: oklch(0.7 0.1 300); }
.avatars .a3 { background: oklch(0.7 0.1 160); }
.chip-share {
  font-size: 12.5px; font-weight: 500; color: oklch(0.99 0 0);
  background: var(--blue); padding: 6px 13px; border-radius: 7px;
}

.app__body {
  display: grid;
  grid-template-columns: 46px minmax(0, 1fr) 224px;
  min-height: 470px;
}

/* tool rail */
.rail {
  border-right: 1px solid var(--line-soft); background: var(--bg-rail);
  padding: 12px 0;
  display: flex; flex-direction: column; align-items: center; gap: 8px;
}
.rail__tool {
  width: 28px; height: 28px; border-radius: 8px;
  display: grid; place-items: center;
}
.rail__tool.is-active { background: oklch(0.92 0.02 250); }

/* stage */
.stage {
  position: relative;
  background-image: radial-gradient(oklch(0.9 0.006 265) 1px, transparent 1px);
  background-size: 24px 24px;
  padding: 34px 30px;
  display: flex; flex-direction: column; gap: 18px;
}
.stage:focus-visible { outline-offset: -2px; }
.view { display: flex; flex-direction: column; gap: 18px; flex: 1 1 auto; }
.view[hidden] { display: none; }

/* canvas */
.canvas {
  position: relative;
  border: 1px solid oklch(0.88 0.02 250); border-radius: 14px;
  background: oklch(0.985 0.008 250 / 0.7);
  padding: 30px 16px 22px;
}
.canvas__tag,
.group__tag {
  position: absolute; top: -11px; left: 16px;
  background: var(--surface); border: 1px solid oklch(0.88 0.02 250);
  border-radius: 6px; padding: 3px 9px;
  font-family: var(--mono); font-size: 10.5px; color: var(--blue-deep);
}

.topology { display: flex; align-items: flex-start; gap: 4px; }

.node {
  display: flex; flex-direction: column; align-items: center; gap: 8px;
  flex: 0 0 auto; min-width: 96px;
}
.topology > .node:first-child { flex: 0 0 82px; min-width: 0; }
.node--db { flex: 0 0 108px; min-width: 0; }

.node__icon {
  width: 38px; height: 38px; border-radius: 11px;
  background: var(--bg, var(--slate));
  display: grid; place-items: center;
  box-shadow: 0 3px 8px oklch(0.45 0.02 265 / 0.3);
}
.node__name { font-size: 12.5px; font-weight: 600; white-space: nowrap; }
.node__meta {
  font-family: var(--mono); font-size: 10.5px; color: oklch(0.58 0.015 265);
  margin-top: -4px; white-space: nowrap;
}

.edge {
  flex: 1 1 56px; min-width: 56px;
  display: flex; flex-direction: column; align-items: center; gap: 6px;
  padding-top: 8px;
}
.edge--short { flex: 0 0 40px; min-width: 0; }
.edge__label {
  font-family: var(--mono); font-size: 10px; color: var(--dim); white-space: nowrap;
}
.edge__line {
  position: relative; display: block;
  width: 100%; height: 1.5px; background: var(--wire);
}
.edge__packet {
  position: absolute; top: -2.5px;
  width: 6px; height: 6px; border-radius: 999px;
  background: var(--c, var(--blue)); opacity: 0;
  animation: mflow var(--dur, 2s) linear var(--delay, 0s) infinite;
  animation-play-state: paused;
}
.app[data-flow="on"] .edge__packet { animation-play-state: running; }

@keyframes mflow {
  0%   { left: 0;    opacity: 0; }
  10%  { opacity: 1; }
  90%  { opacity: 1; }
  100% { left: 100%; opacity: 0; }
}
@keyframes mflow-v {
  0%   { top: 0;     opacity: 0; }
  10%  { opacity: 1; }
  90%  { opacity: 1; }
  100% { top: 100%;  opacity: 0; }
}
@keyframes mpulse {
  0%, 100% { box-shadow: 0 0 0 0 oklch(0.62 0.16 55 / 0.4); }
  60%      { box-shadow: 0 0 0 9px oklch(0.62 0.16 55 / 0); }
}

.node__icon.is-hot { animation: mpulse 2.2s ease-out infinite; }

/* group (app tier) */
.group {
  position: relative;
  border: 1px dashed oklch(0.84 0.03 300); border-radius: 12px;
  background: oklch(0.99 0.01 300 / 0.6);
  padding: 26px 14px 16px;
  flex: 1 1 auto; min-width: 0;
}
.group__tag {
  left: 14px; border-color: oklch(0.86 0.03 300); color: oklch(0.46 0.13 300);
}
.group__inner { display: flex; align-items: flex-start; gap: 4px; }

/* run bar */
.runbar {
  display: flex; align-items: center; gap: 14px; margin-top: auto;
  background: var(--surface); border: 1px solid var(--line-2);
  border-radius: 11px; padding: 11px 14px;
}
.runbar__play {
  width: 28px; height: 28px; border-radius: 999px;
  background: var(--blue); display: grid; place-items: center; flex: 0 0 auto;
  transition: background 250ms ease;
}
.runbar__play i { width: 8px; height: 8px; border-radius: 2px; background: oklch(1 0 0); }
.runbar__label,
.runbar__seed { font-family: var(--mono); font-size: 11px; flex: 0 0 auto; }
.runbar__label { color: var(--muted); }
.runbar__seed { color: var(--dim); }
.runbar__track {
  flex: 1 1 auto; height: 4px; border-radius: 999px;
  background: oklch(0.94 0.006 265); overflow: hidden;
}
.runbar__track i {
  display: block; height: 100%; border-radius: 999px;
  background: var(--blue); transition: width 900ms linear;
}

/* report */
.report {
  display: flex; flex-direction: column; gap: 20px;
  background: var(--surface); border: 1px solid var(--line-2);
  border-radius: 12px; padding: 22px;
}
.report__head { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.report__title { font-size: 15px; font-weight: 600; }
.report__seed {
  margin-left: auto; font-family: var(--mono); font-size: 11px; color: var(--dim);
}
.report__cards {
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px;
}
.statcard {
  border: 1px solid var(--line-soft); border-radius: 10px; padding: 14px;
  display: flex; flex-direction: column; gap: 6px;
}
.statcard__label,
.statcard__delta { font-family: var(--mono); font-size: 10.5px; }
.statcard__label { color: var(--dim); }
.statcard__delta { color: var(--faint); }
.statcard__value {
  font-size: 22px; font-weight: 500; letter-spacing: -0.02em; color: var(--ink-2);
}
.statcard__value.is-good { color: var(--green); }

.report__bars { display: flex; flex-direction: column; gap: 12px; }
.report__caption { font-family: var(--mono); font-size: 10.5px; color: var(--dim); }

.ubar { display: flex; align-items: center; gap: 12px; }
.ubar__icon {
  width: 24px; height: 24px; border-radius: 7px; background: var(--c);
  display: grid; place-items: center; flex: 0 0 auto;
}
.ubar__icon .glyph { width: 8px; height: 8px; }
.ubar__name { font-size: 13px; font-weight: 500; width: 140px; }
.ubar__track {
  flex: 1 1 auto; height: 6px; border-radius: 999px;
  background: oklch(0.94 0.006 265); overflow: hidden;
}
.ubar__track i { display: block; height: 100%; border-radius: 999px; background: var(--c); }
.ubar__val {
  font-family: var(--mono); font-size: 11px; color: var(--muted);
  width: 42px; text-align: right;
}

/* inspector */
.inspector {
  border-left: 1px solid var(--line-soft); background: var(--bg-rail);
  padding: 16px; display: flex; flex-direction: column; gap: 16px;
}
.inspector__head { display: flex; align-items: center; gap: 9px; }
.inspector__mark {
  width: 22px; height: 22px; border-radius: 7px; background: var(--violet);
  display: grid; place-items: center;
  transition: background 250ms ease;
}
.inspector__mark .glyph { width: 8px; height: 8px; }
.inspector__title { font-size: 13.5px; font-weight: 600; }

.inspector__rows { display: flex; flex-direction: column; gap: 16px; }
.irow { display: flex; flex-direction: column; gap: 5px; }
.irow__label {
  font-family: var(--mono); font-size: 10px; color: var(--faint); letter-spacing: 0.03em;
}
.irow__value {
  font-family: var(--mono); font-size: 12.5px; color: var(--ink-2);
  background: var(--surface); border: 1px solid var(--line-2);
  border-radius: 7px; padding: 7px 9px;
}
.inspector__note {
  margin-top: auto;
  font-family: var(--mono); font-size: 10.5px; line-height: 1.5; color: var(--faint);
}

/* stage cards under the panel */
.stage-cards {
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px; margin-top: 28px;
}
.stagecard {
  text-align: left; cursor: pointer;
  display: flex; flex-direction: column; gap: 8px;
  padding: 18px; border-radius: 12px;
  border: 1px solid var(--line-2); background: transparent;
  transition: border-color 220ms ease, background 220ms ease;
}
.stagecard:hover { background: oklch(1 0 0 / 0.6); }
.stagecard.is-active { border-color: oklch(0.84 0.04 250); background: var(--surface); }
.stagecard__head { display: flex; align-items: center; gap: 9px; }
.stagecard__mark {
  width: 24px; height: 24px; border-radius: 7px; background: var(--c);
  display: grid; place-items: center;
}
.stagecard__mark .glyph { width: 8px; height: 8px; }
.stagecard__title { font-size: 16px; font-weight: 600; letter-spacing: -0.015em; }
.stagecard__body {
  font-size: 14.5px; line-height: 1.5; color: var(--muted); text-wrap: pretty;
}

/* ── bands ───────────────────────────────────────────────── */

.band { border-top: 1px solid var(--line); }
.band--tint { background: var(--bg-tint); }
.band--white { background: var(--surface); }

/* ── model section ───────────────────────────────────────── */

.model {
  padding-block: 76px;
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.25fr);
  gap: 56px; align-items: start;
}
.model__copy { display: flex; flex-direction: column; gap: 22px; }

.vocab { display: flex; flex-direction: column; gap: 14px; }
.vocab__item { display: flex; gap: 12px; align-items: flex-start; }
.vocab__mark {
  width: 26px; height: 26px; border-radius: 8px; background: var(--c);
  display: grid; place-items: center; flex: 0 0 auto;
}
.vocab__mark .glyph { width: 9px; height: 9px; }
.vocab dt { font-family: var(--mono); font-size: 12px; color: var(--ink-2); margin-bottom: 3px; }
.vocab dd {
  font-size: 14.5px; line-height: 1.5; color: var(--muted); text-wrap: pretty;
}

.codecard {
  border: 1px solid var(--line); border-radius: 14px;
  background: var(--surface); overflow: hidden;
}
.codecard__head {
  display: flex; align-items: center; gap: 10px;
  padding: 11px 16px; border-bottom: 1px solid var(--line-soft);
  font-family: var(--mono); font-size: 11.5px; color: oklch(0.52 0.015 265);
}
.codecard__dot { width: 8px; height: 8px; border-radius: 2px; background: var(--violet); }
.codecard__state { margin-left: auto; color: var(--dim); }
.codecard__body {
  margin: 0; padding: 20px; overflow-x: auto;
  font-family: var(--mono); font-size: 12.5px; line-height: 1.75;
  color: var(--ink-2);
}
.codecard__body .k { color: oklch(0.46 0.13 300); }
.codecard__body .v { color: var(--ink-2); }
.codecard__body .c { color: var(--dim); }

/* ── example section ─────────────────────────────────────── */

.example { padding-block: 76px; display: flex; flex-direction: column; gap: 32px; }
.example__intro { display: flex; flex-direction: column; gap: 12px; max-width: 620px; }

.runs { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.run {
  border: 1px solid var(--line); border-radius: 14px;
  background: var(--surface); overflow: hidden;
  display: flex; flex-direction: column;
}
.run--fail  { border-color: oklch(0.87 0.05 60); }
.run--fixed { border-color: oklch(0.85 0.05 250); }

.run__head {
  display: flex; align-items: center; gap: 10px;
  padding: 11px 16px; border-bottom: 1px solid var(--line-soft);
  font-family: var(--mono); font-size: 11.5px; color: oklch(0.52 0.015 265);
}
.run__head .badge { margin-left: auto; }
.run__body {
  padding: 20px 16px; display: flex; flex-direction: column; gap: 16px; flex: 1 1 auto;
}
.run__title { font-size: 16px; font-weight: 600; letter-spacing: -0.015em; }
.run__metrics { display: flex; flex-direction: column; gap: 9px; }
.run__metrics > div { display: flex; align-items: baseline; gap: 12px; }
.run__metrics dt { font-family: var(--mono); font-size: 10.5px; color: var(--dim); }
.run__metrics dd {
  font-family: var(--mono); font-size: 13.5px; margin-left: auto; color: var(--ink-2);
}
.run__metrics dd.is-bad  { color: oklch(0.48 0.15 55); }
.run__metrics dd.is-blue { color: var(--blue-deep); }
.run__note {
  font-size: 14px; line-height: 1.55; color: var(--muted);
  margin-top: auto; text-wrap: pretty;
}
.example__closing {
  font-size: 16px; line-height: 1.6; color: var(--ink-3);
  max-width: 660px; text-wrap: pretty;
}

/* ── audiences ───────────────────────────────────────────── */

.audiences {
  padding-block: 66px;
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 32px;
}
.audience { display: flex; flex-direction: column; gap: 8px; }
.audience h3 {
  font-family: var(--mono); font-size: 11px; font-weight: 400;
  color: var(--blue-deep); letter-spacing: 0.03em;
}
.audience p { font-size: 16px; line-height: 1.55; color: var(--ink-3); text-wrap: pretty; }

/* ── why simulate ────────────────────────────────────────── */

.why { padding-block: 76px; display: flex; flex-direction: column; gap: 34px; }
.why__title { max-width: 640px; }

.pillars {
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px; background: var(--line);
  border: 1px solid var(--line); border-radius: 14px; overflow: hidden;
}
.pillar {
  background: var(--surface); padding: 26px;
  display: flex; flex-direction: column; gap: 12px;
}
.pillar__mark {
  width: 30px; height: 30px; border-radius: 9px; background: var(--c);
  display: grid; place-items: center;
}
.pillar__mark .glyph { width: 10px; height: 10px; }
.pillar h3 { font-size: 17px; font-weight: 600; letter-spacing: -0.015em; }
.pillar p { font-size: 15px; line-height: 1.55; color: var(--muted); text-wrap: pretty; }

.why__caveat { font-family: var(--mono); font-size: 12px; color: oklch(0.58 0.015 265); }

/* ── roadmap ─────────────────────────────────────────────── */

.roadmap { padding-block: 76px; display: flex; flex-direction: column; gap: 30px; }
.phases { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.phase {
  border: 1px solid var(--line); border-radius: 14px; background: var(--surface);
  padding: 24px; display: flex; flex-direction: column; gap: 14px;
}
.phase__state {
  display: flex; align-items: center; gap: 8px;
  font-family: var(--mono); font-size: 11px; color: var(--muted);
}
.phase__dot { width: 7px; height: 7px; border-radius: 999px; background: var(--c); }
.phase__title { font-size: 17px; font-weight: 600; letter-spacing: -0.015em; }
.phase ul { display: flex; flex-direction: column; gap: 7px; }
.phase li { font-size: 14px; line-height: 1.5; color: var(--muted); }

/* ── CTA + footer ────────────────────────────────────────── */

.cta {
  border-top: 1px solid var(--line);
  background: var(--ink); color: oklch(0.97 0.005 95);
}
.cta__inner {
  padding-block: 84px;
  display: flex; flex-direction: column; gap: 24px;
  align-items: center; text-align: center;
}
.cta__title {
  font-size: clamp(30px, 4vw, 46px); line-height: 1.06;
  letter-spacing: -0.03em; font-weight: 600; max-width: 700px; text-wrap: balance;
}
.cta__sub {
  font-size: 17px; line-height: 1.55; color: oklch(0.76 0.01 265);
  max-width: 520px; text-wrap: pretty;
}

.site-footer {
  padding-top: 24px; padding-bottom: 44px;
  display: flex; flex-wrap: wrap; gap: 14px; align-items: center;
  font-family: var(--mono); font-size: 12px; color: var(--dim);
}
.site-footer span { margin-right: auto; }

/* ============================================================
   Responsive
   ============================================================ */

@media (max-width: 1080px) {
  .app__body { grid-template-columns: 46px minmax(0, 1fr); }
  .inspector {
    grid-column: 1 / -1;
    border-left: none; border-top: 1px solid var(--line-soft);
  }
  .inspector__rows {
    display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  }
  .inspector__note { margin-top: 0; }

  .model { grid-template-columns: minmax(0, 1fr); gap: 40px; }
}

@media (max-width: 900px) {
  .site-nav { display: none; }
  .app__file, .app__people { display: none; }
  .tabs { margin-left: auto; }

  .runs, .phases, .pillars, .stage-cards, .audiences {
    grid-template-columns: minmax(0, 1fr);
  }
  .pillars { gap: 1px; }
}

@media (max-width: 760px) {
  :root { --gutter: 20px; }

  .hero { padding-top: 56px; gap: 22px; }
  .hero__sub { font-size: 17px; }
  .waitlist__form { width: 100%; }
  .waitlist__form input { width: 100%; }
  .waitlist__form .btn--solid { width: 100%; }

  .section-product { padding-top: 44px; padding-bottom: 64px; }
  .model, .example, .why, .roadmap { padding-block: 56px; }
  .audiences { padding-block: 48px; }
  .cta__inner { padding-block: 64px; }
  .h2 { font-size: 28px; }

  .rail { display: none; }
  .app__body { grid-template-columns: minmax(0, 1fr); min-height: 0; }
  .stage { padding: 24px 16px; }

  /* topology stacks vertically; edges become vertical wires */
  .topology, .group__inner { flex-direction: column; align-items: stretch; }
  .node { min-width: 0; }
  .topology > .node:first-child, .node--db { flex: 0 0 auto; }

  .edge, .edge--short {
    flex: 0 0 auto; min-width: 0;
    flex-direction: row; justify-content: center; align-items: center;
    gap: 10px; padding: 6px 0;
  }
  .edge__line { width: 1.5px; height: 26px; }
  .edge__packet {
    left: -2.5px; top: 0;
    animation-name: mflow-v;
  }

  /* run bar wraps so the progress track keeps a usable width */
  .runbar { flex-wrap: wrap; gap: 10px; }
  .runbar__seed { margin-left: auto; }
  .runbar__track { flex: 1 0 100%; order: 3; }

  .report__cards { grid-template-columns: minmax(0, 1fr); }

  /* node name and value on one line, the bar below it at full width */
  .ubar { flex-wrap: wrap; gap: 8px 12px; }
  .ubar__name { width: auto; flex: 1 1 auto; }
  .ubar__track { flex: 1 0 100%; order: 3; }

  .report__seed { margin-left: 0; width: 100%; }
}

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