/* ─────────────────────────────────────────────────────────────────────────
   Agent O11y — landing
   Design language inherited from the product's own tokens
   (web/src/styles/tokens.css, the "evidence console"): paper canvas,
   dark bezel chrome, IBM Plex Sans/Mono, hairline rules, flat — no
   shadows, no gradients. Color is status, not decoration: the four
   verdict colors appear only where they name a verdict.
   ─────────────────────────────────────────────────────────────────────── */

@font-face {
  font-family: 'IBM Plex Mono';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('./assets/fonts/ibm-plex-mono-400.woff2') format('woff2');
}
@font-face {
  font-family: 'IBM Plex Mono';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url('./assets/fonts/ibm-plex-mono-500.woff2') format('woff2');
}
@font-face {
  font-family: 'IBM Plex Sans';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('./assets/fonts/ibm-plex-sans.woff2') format('woff2');
}

:root {
  /* base — product light scheme */
  --paper: #f4f5f3;
  --surface: #ffffff;
  --ink: #202a24;
  --ink-soft: #5a685f;
  --bezel: #1a211c;
  --bezel-raise: #242c26;
  --bezel-text: #a8b5ac;
  --bezel-text-active: #eef2ef;
  --line: #d6dbd5;
  --line-dark: #2e352f;
  --hover: #eef1ec;
  --highlight: #f3e2ae;
  --accent: #2c5e4f; /* deep pine: links and focus, per product tokens */

  /* status — the only saturated colors, used only as verdicts */
  --pass: #1e7b45;
  --fail: #c2342c;
  --caution: #9a6700;
  --idle: #5f6a63;

  /* dark-band ink (product dark scheme) */
  --dark-ink: #dfe6e1;
  --dark-soft: #97a49b;

  --font-sans: 'IBM Plex Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI',
    'Helvetica Neue', Arial, sans-serif;
  --font-mono: 'IBM Plex Mono', ui-monospace, SFMono-Regular, 'SF Mono',
    Menlo, Consolas, monospace;

  --radius: 3px;
  --gutter: clamp(20px, 5vw, 56px);
  --measure: 74ch;
}

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

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

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

::selection { background: var(--highlight); color: var(--ink); }

h1, h2, h3 { margin: 0; font-weight: 600; letter-spacing: -0.015em; }
p { margin: 0 0 1em; }
ul, ol { margin: 0; padding: 0; }
a { color: var(--accent); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 2px; }
a:hover { color: var(--ink); }
code {
  font-family: var(--font-mono);
  font-size: 0.875em;
  background: var(--hover);
  border: 1px solid var(--line);
  border-radius: 2px;
  padding: 0.1em 0.35em;
}

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

.skip {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--bezel);
  color: var(--bezel-text-active);
  padding: 8px 14px;
  z-index: 100;
}
.skip:focus { left: 8px; top: 8px; }

/* ── status bar ───────────────────────────────────────────────────────── */
.statusbar {
  background: var(--bezel);
  color: var(--bezel-text);
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.02em;
}
.statusbar__inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 7px var(--gutter);
  display: flex;
  justify-content: space-between;
  gap: 16px;
}
.statusbar__id strong { color: var(--bezel-text-active); font-weight: 500; }
.statusbar__meta { white-space: nowrap; }
@media (max-width: 560px) {
  .statusbar__meta { display: none; }
}

/* ── header ───────────────────────────────────────────────────────────── */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--paper);
  border-bottom: 1px solid var(--line);
}
.site-header__inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 var(--gutter);
  height: 56px;
  display: flex;
  align-items: center;
  gap: 28px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 9px;
  text-decoration: none;
  color: var(--ink);
}
.brand__mark {
  display: grid;
  place-items: center;
  width: 26px;
  height: 26px;
  background: var(--bezel);
  color: var(--bezel-text-active);
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 500;
  border-radius: var(--radius);
}
.brand__name { font-weight: 600; font-size: 15px; letter-spacing: -0.01em; }

.site-nav {
  display: flex;
  gap: 22px;
  margin-left: auto;
  font-family: var(--font-mono);
  font-size: 12.5px;
}
.site-nav a {
  color: var(--ink-soft);
  text-decoration: none;
  padding: 4px 0;
  border-bottom: 1px solid transparent;
}
.site-nav a:hover { color: var(--ink); border-bottom-color: var(--ink); }
@media (max-width: 860px) {
  .site-nav { display: none; }
}

/* ── buttons (product .btn shape) ─────────────────────────────────────── */
.btn {
  display: inline-block;
  background: var(--ink);
  color: var(--paper);
  font-family: var(--font-sans);
  font-size: 14px;
  font-weight: 500;
  text-decoration: none;
  padding: 9px 18px;
  border: 1px solid var(--ink);
  border-radius: var(--radius);
  transition: background 120ms ease, border-color 120ms ease;
}
.btn:hover { background: #33403a; border-color: #33403a; color: var(--paper); }
.btn--ghost {
  background: transparent;
  color: var(--ink);
}
.btn--ghost:hover { background: var(--hover); border-color: var(--ink); }

/* ── hero ─────────────────────────────────────────────────────────────── */
.hero {
  max-width: 1200px;
  margin: 0 auto;
  padding: clamp(48px, 8vw, 88px) var(--gutter) clamp(48px, 7vw, 72px);
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  gap: clamp(32px, 5vw, 64px);
  align-items: center;
}
@media (max-width: 980px) {
  .hero { grid-template-columns: 1fr; }
}

.eyebrow {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--ink-soft);
  margin-bottom: 18px;
}
.hero__h1 {
  font-size: clamp(38px, 5.4vw, 58px);
  line-height: 1.04;
  letter-spacing: -0.025em;
  margin-bottom: 22px;
}
.hero__sub {
  font-size: clamp(16px, 1.6vw, 18px);
  color: var(--ink-soft);
  max-width: 54ch;
  margin-bottom: 18px;
}
.hero__sub strong, .hero__sub { color: var(--ink); }
.hero__standards {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--accent);
  margin-bottom: 28px;
}
.hero__cta { display: flex; gap: 12px; flex-wrap: wrap; }

/* ── terminal ─────────────────────────────────────────────────────────── */
.hero__terminal { min-width: 0; }
.terminal {
  background: var(--bezel);
  border-radius: 4px;
  border: 1px solid #0d100e;
  overflow: hidden;
}
.terminal__bar {
  display: flex;
  align-items: stretch;
  justify-content: space-between;
  background: var(--bezel-raise);
  border-bottom: 1px solid var(--line-dark);
}
.terminal__tabs { display: flex; }
.terminal__tab {
  appearance: none;
  background: none;
  border: none;
  border-right: 1px solid var(--line-dark);
  color: var(--bezel-text);
  font-family: var(--font-mono);
  font-size: 12px;
  padding: 9px 14px;
  cursor: pointer;
}
.terminal__tab[aria-selected="true"] {
  background: var(--bezel);
  color: var(--bezel-text-active);
  box-shadow: inset 0 2px 0 var(--pass);
}
.terminal__copy {
  appearance: none;
  background: none;
  border: none;
  border-left: 1px solid var(--line-dark);
  color: var(--bezel-text);
  font-family: var(--font-mono);
  font-size: 11px;
  padding: 9px 14px;
  cursor: pointer;
}
.terminal__copy:hover { color: var(--bezel-text-active); background: var(--bezel-raise); }
.terminal__panel {
  margin: 0;
  padding: 18px 18px 20px;
  font-family: var(--font-mono);
  font-size: 13px;
  line-height: 1.75;
  color: #cdd8d0;
  overflow-x: auto;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  min-height: 118px;
}
.terminal__panel code {
  background: none;
  border: none;
  padding: 0;
  font-size: inherit;
  font-family: inherit;
}
.t-prompt { color: #6f8a7c; }
.terminal__note {
  font-size: 13px;
  color: var(--ink-soft);
  margin-top: 12px;
  line-height: 1.6;
}
.terminal__note a { font-size: 13px; }

/* ── verdict band ─────────────────────────────────────────────────────── */
.verdict-band {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: var(--surface);
  max-width: 1200px;
  margin: 0 auto;
  padding: 14px var(--gutter);
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  font-family: var(--font-mono);
  font-size: 12px;
}
.verdict-band__label, .verdict-band__tail { color: var(--ink-soft); }
.verdict-band__tail { margin-left: auto; }
.verdict-band__safety {
  flex-basis: 100%;
  margin-top: 8px;
  padding-top: 8px;
  border-top: 1px solid var(--line);
  color: var(--accent);
  font-weight: 500;
  letter-spacing: 0.02em;
}
@media (max-width: 900px) { .verdict-band__tail { margin-left: 0; width: 100%; } }

.verdict {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.04em;
  padding: 2px 8px;
  border-radius: 2px;
  border: 1px solid currentColor;
  white-space: nowrap;
}
.verdict--pass { color: var(--pass); }
.verdict--fail { color: var(--fail); }
.verdict--inconclusive { color: var(--caution); }
.verdict--not-evaluated { color: var(--idle); }

/* ── section scaffolding ──────────────────────────────────────────────── */
section { scroll-margin-top: 72px; }

.problem, .loop, .platform, .sdks, .why, .cta {
  max-width: 1200px;
  margin: 0 auto;
  padding: clamp(56px, 8vw, 96px) var(--gutter);
}
.problem h2, .loop h2, .platform h2, .sdks h2, .why h2, .cta h2,
.debugger h2 {
  font-size: clamp(26px, 3.2vw, 34px);
  letter-spacing: -0.02em;
  margin-bottom: 18px;
}

/* ── problem ──────────────────────────────────────────────────────────── */
.problem {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
  gap: clamp(32px, 5vw, 72px);
  border-top: 1px solid var(--line);
  padding-top: clamp(56px, 8vw, 96px);
}
@media (max-width: 900px) { .problem { grid-template-columns: 1fr; } }
.problem__lead p { color: var(--ink-soft); max-width: 52ch; }
.problem__promise { color: var(--ink); font-weight: 500; }
.problem__questions { border-top: 1px solid var(--line); }
.q {
  padding: 20px 0 18px;
  border-bottom: 1px solid var(--line);
}
.q h3 { font-size: 16.5px; margin-bottom: 6px; letter-spacing: -0.01em; }
.q p { color: var(--ink-soft); font-size: 14.5px; margin: 0; max-width: 46ch; }

/* ── loop ─────────────────────────────────────────────────────────────── */
.loop__head { margin-bottom: 8px; }
.loop__pipeline {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--ink-soft);
  line-height: 2;
  margin-bottom: 28px;
  white-space: normal;
}
.loop__pipeline span { color: var(--accent); }
.loop__steps { list-style: none; border-top: 1px solid var(--line); }
.step {
  display: grid;
  grid-template-columns: 3.2rem 8.5rem 1fr;
  gap: 20px;
  padding: 22px 0 20px;
  border-bottom: 1px solid var(--line);
}
@media (max-width: 720px) {
  .step { grid-template-columns: 2.6rem 1fr; }
  .step__body { grid-column: 1 / -1; padding-left: 0; }
}
.step__num {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--ink-soft);
  padding-top: 4px;
}
.step__label {
  font-family: var(--font-mono);
  font-size: 12.5px;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink);
  padding-top: 3px;
}
.step__body h3 { font-size: 17px; margin-bottom: 8px; letter-spacing: -0.01em; }
.step__body p { color: var(--ink-soft); font-size: 14.5px; max-width: 66ch; margin: 0; }

/* ── debugger band ────────────────────────────────────────────────────── */
.debugger {
  background: var(--bezel);
  color: var(--dark-ink);
  padding: clamp(56px, 8vw, 92px) var(--gutter);
}
.debugger__head {
  max-width: 1200px;
  margin: 0 auto 36px;
}
.debugger p { color: var(--dark-soft); }
.debugger code {
  background: var(--bezel-raise);
  border-color: var(--line-dark);
  color: var(--bezel-text-active);
}
.debugger__grid {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr;
  gap: 28px;
}
.shot {
  margin: 0;
  border: 1px solid var(--line-dark);
  border-radius: 4px;
  background: var(--bezel-raise);
  padding: 8px;
}
.shot img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 2px;
  border: 1px solid var(--line-dark);
}
.shot figcaption {
  font-family: var(--font-mono);
  font-size: 11.5px;
  color: var(--dark-soft);
  padding: 10px 4px 4px;
  line-height: 1.6;
}

/* ── platform spec ────────────────────────────────────────────────────── */
.platform {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
  gap: clamp(32px, 5vw, 72px);
  border-top: 1px solid var(--line);
}
@media (max-width: 900px) { .platform { grid-template-columns: 1fr; } }
.platform__intro { align-self: start; }
@media (min-width: 901px) {
  .platform__intro { position: sticky; top: 88px; }
}
.platform__intro p { color: var(--ink-soft); max-width: 40ch; }
.surfaces {
  list-style: none;
  columns: 2;
  column-gap: 24px;
  font-family: var(--font-mono);
  font-size: 12.5px;
  margin: 20px 0 8px;
}
.surfaces li {
  padding: 7px 0;
  border-bottom: 1px solid var(--line);
  break-inside: avoid;
  color: var(--ink);
}
.surfaces li::before { content: '·  '; color: var(--accent); }
.spec { margin: 0; border-top: 1px solid var(--line); }
.spec__row {
  display: grid;
  grid-template-columns: 7.5rem 1fr;
  gap: 20px;
  padding: 18px 0 16px;
  border-bottom: 1px solid var(--line);
}
@media (max-width: 560px) {
  .spec__row { grid-template-columns: 1fr; gap: 6px; }
}
.spec__row dt {
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 500;
  padding-top: 2px;
}
.spec__row dt::after { content: '/'; color: var(--accent); margin-left: 2px; }
.spec__row dd { margin: 0; color: var(--ink-soft); font-size: 14.5px; }

/* ── sdks strip ───────────────────────────────────────────────────────── */
.sdks { border-top: 1px solid var(--line); }
.sdks__note {
  color: var(--ink-soft);
  font-size: 15px;
  line-height: 1.6;
  max-width: 58ch;
  margin: 0 0 4px;
}
.sdks__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: 4px;
  overflow: hidden;
  margin-top: 8px;
}
@media (max-width: 900px) { .sdks__grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 540px) { .sdks__grid { grid-template-columns: 1fr; } }
.sdk {
  background: var(--surface);
  padding: 22px 20px 20px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  min-height: 150px;
}
.sdk__name {
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink-soft);
}
.sdk__cmd {
  font-family: var(--font-mono);
  font-size: 13px;
  background: var(--bezel);
  color: var(--bezel-text-active);
  padding: 8px 10px;
  border-radius: 2px;
  white-space: nowrap;
  overflow-x: auto;
}
.sdk__note {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--ink-soft);
  margin-top: auto;
  line-height: 1.6;
}

/* ── why replay ───────────────────────────────────────────────────────── */
.why {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  gap: clamp(32px, 5vw, 72px);
  border-top: 1px solid var(--line);
}
@media (max-width: 900px) { .why { grid-template-columns: 1fr; } }
.why__lead p { color: var(--ink-soft); max-width: 52ch; }
.guarantees {
  border: 1px solid var(--line);
  border-radius: 4px;
  background: var(--surface);
  padding: 26px 28px 22px;
  align-self: start;
}
.guarantees__h {
  font-family: var(--font-mono);
  font-size: 11.5px;
  font-weight: 500;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--ink-soft);
  margin-bottom: 16px;
}
.guarantees li {
  list-style: none;
  font-size: 14.5px;
  padding: 11px 0 10px;
  border-bottom: 1px solid var(--line);
}
.guarantees li:last-child { border-bottom: none; padding-bottom: 0; }
.guarantees li::before {
  content: '—';
  color: var(--pass);
  margin-right: 10px;
  font-family: var(--font-mono);
}

/* ── final cta ────────────────────────────────────────────────────────── */
.cta { text-align: left; }
.cta h2 { font-size: clamp(28px, 3.6vw, 40px); margin-bottom: 14px; }
.cta p { color: var(--ink-soft); max-width: 56ch; font-size: 17px; margin-bottom: 26px; }
.cta__btns { display: flex; gap: 12px; flex-wrap: wrap; }

/* ── footer ───────────────────────────────────────────────────────────── */
.site-footer {
  background: var(--bezel);
  color: var(--bezel-text);
  border-top: 1px solid #0d100e;
}
.site-footer__grid {
  max-width: 1200px;
  margin: 0 auto;
  padding: clamp(40px, 6vw, 64px) var(--gutter) 40px;
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 40px;
}
.site-footer__col a { color: var(--bezel-text-active); text-decoration: none; }
.site-footer__col a:hover { color: #ffffff; }
.site-footer .brand__mark--footer {
  background: var(--bezel-raise);
  border: 1px solid var(--line-dark);
}
@media (max-width: 900px) {
  .site-footer__grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 540px) {
  .site-footer__grid { grid-template-columns: 1fr; }
}
.site-footer__name {
  font-weight: 600;
  color: var(--bezel-text-active);
  margin: 14px 0 0;
  font-size: 16px;
}
.site-footer__tag {
  font-family: var(--font-mono);
  font-size: 11.5px;
  margin: 4px 0 14px;
}
.site-footer__desc {
  font-size: 13.5px;
  line-height: 1.6;
  max-width: 30ch;
  margin-bottom: 16px;
}
.site-footer__col h3 {
  font-family: var(--font-mono);
  font-size: 11.5px;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--bezel-text);
  opacity: 0.75;
  margin-bottom: 14px;
}
.site-footer__col ul { list-style: none; margin: 0; padding: 0; }
.site-footer__col li {
  color: var(--bezel-text-active);
  font-size: 13.5px;
  padding: 6px 0;
  line-height: 1.5;
}
.site-footer__col li span { color: var(--bezel-text); font-size: 12.5px; }
.site-footer__status {
  max-width: 1200px;
  margin: 0 auto;
  padding: 18px var(--gutter) 26px;
  border-top: 1px solid var(--line-dark);
  display: flex;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--bezel-text);
  opacity: 0.85;
}
