/* Autonomous Research Agent ; static landing page */

:root {
  --zinc-50: #fafafa;
  --zinc-100: #f4f4f5;
  --zinc-200: #e4e4e7;
  --zinc-300: #d4d4d8;
  --zinc-400: #a1a1aa;
  --zinc-500: #71717a;
  --zinc-600: #52525b;
  --zinc-700: #3f3f46;
  --zinc-800: #27272a;
  --zinc-900: #18181b;
  --zinc-950: #09090b;
  --sky-300: #7dd3fc;
  --sky-400: #38bdf8;
  --sky-800: #075985;
  --sky-950: #082f49;
  --emerald-400: #34d399;
  --emerald-800: #065f46;
  --emerald-900: #064e3b;
  --emerald-950: #022c22;
  --amber-200: #fde68a;
  --amber-300: #fcd34d;
  --amber-400: #fbbf24;
  --amber-600: #d97706;
  --amber-700: #b45309;
  --amber-950: #451a03;
  --font-sans: "Geist", system-ui, sans-serif;
  --font-mono: "Geist Mono", ui-monospace, monospace;

  --stage-idle-border: var(--zinc-700);
  --stage-active-border: var(--sky-400);
  --stage-active-bg: rgb(56 189 248 / 0.08);
  --marker-pending: var(--zinc-400);
  --marker-pending-border: var(--zinc-700);
  --marker-resolved: var(--sky-300);
  --marker-resolved-border: rgb(125 211 252 / 0.45);
  --marker-flagged: var(--amber-400);
  --marker-flagged-border: rgb(251 191 36 / 0.5);
  --ease-out-expo: cubic-bezier(0.16, 1, 0.3, 1);
}

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

html {
  height: 100%;
  -webkit-font-smoothing: antialiased;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100%;
  display: flex;
  flex-direction: column;
  background: var(--zinc-950);
  color: var(--zinc-100);
  font-family: var(--font-sans);
}

/* --- animated starfield --- */

.starfield {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
  background:
    radial-gradient(ellipse 90% 55% at 75% 15%, rgb(56 189 248 / 0.06), transparent 55%),
    radial-gradient(ellipse 60% 45% at 10% 70%, rgb(52 211 153 / 0.035), transparent 50%),
    var(--zinc-950);
}

.starfield-canvas {
  display: block;
  width: 100%;
  height: 100%;
}

.site-nav,
main {
  position: relative;
  z-index: 1;
}

.site-nav {
  z-index: 50;
}

a {
  color: inherit;
  text-decoration: none;
}

ul,
ol {
  margin: 0;
  padding: 0;
  list-style: none;
}

h1,
h2,
h3,
p,
figure,
blockquote,
dl,
dd,
dt {
  margin: 0;
}

table {
  border-collapse: collapse;
}

.wrap {
  width: 100%;
  max-width: 64rem;
  margin-inline: auto;
}

.section {
  border-top: 1px solid var(--zinc-900);
  padding: 5rem 1.5rem;
  background: rgb(9 9 11 / 0.72);
}

@media (min-width: 640px) {
  .section {
    padding-block: 7rem;
  }
}

.eyebrow {
  margin-bottom: 1rem;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  line-height: 1rem;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--zinc-400);
}

.section-title {
  max-width: 26ch;
  font-size: 1.875rem;
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: -0.025em;
  color: var(--zinc-50);
  text-wrap: balance;
}

@media (min-width: 640px) {
  .section-title {
    font-size: 2.25rem;
  }
}

.section-lead {
  margin-top: 1.25rem;
  max-width: 65ch;
  font-size: 1.125rem;
  line-height: 1.625;
  color: var(--zinc-400);
  text-wrap: pretty;
}

.mono {
  border-radius: 0.25rem;
  background: var(--zinc-900);
  padding: 0.125rem 0.375rem;
  font-family: var(--font-mono);
  font-size: 0.85em;
  color: var(--zinc-300);
}

.btn {
  display: inline-block;
  border-radius: 0.5rem;
  padding: 0.625rem 1.25rem;
  font-weight: 500;
  transition:
    color 0.2s var(--ease-out-expo),
    background-color 0.2s var(--ease-out-expo),
    border-color 0.2s var(--ease-out-expo),
    transform 0.2s var(--ease-out-expo);
}

.btn:focus-visible {
  outline: 2px solid var(--sky-400);
  outline-offset: 2px;
}

.btn:active {
  transform: scale(0.97);
}

.btn-primary {
  background: var(--zinc-100);
  color: var(--zinc-900);
}

.btn-primary:hover {
  background: #fff;
  transform: scale(1.02);
}

.btn-ghost {
  border: 1px solid var(--zinc-700);
  color: var(--zinc-300);
}

.btn-ghost:hover {
  border-color: var(--zinc-500);
  color: var(--zinc-100);
  transform: scale(1.02);
}

.cta-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem;
}

.btn-sm {
  padding: 0.4rem 0.875rem;
  font-size: 0.8125rem;
}

.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;
}

/* --- top nav --- */

.site-nav {
  position: sticky;
  top: 0;
  border-bottom: 1px solid rgb(39 39 42 / 0.8);
  background: rgb(9 9 11 / 0.78);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.nav-inner {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  width: 100%;
  max-width: 72rem;
  margin-inline: auto;
  padding: 0.75rem 1.5rem;
}

.nav-brand {
  flex-shrink: 0;
  max-width: 14rem;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: -0.01em;
  color: var(--zinc-100);
  transition: color 0.2s var(--ease-out-expo);
}

.nav-brand:hover {
  color: var(--sky-300);
}

.nav-toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2.25rem;
  height: 2.25rem;
  border: 1px solid var(--zinc-700);
  border-radius: 0.5rem;
  background: transparent;
  color: var(--zinc-200);
  cursor: pointer;
}

.nav-toggle:focus-visible {
  outline: 2px solid var(--sky-400);
  outline-offset: 2px;
}

.nav-toggle-bars,
.nav-toggle-bars::before,
.nav-toggle-bars::after {
  display: block;
  width: 1rem;
  height: 1.5px;
  background: currentColor;
  border-radius: 1px;
  transition: transform 0.25s var(--ease-out-expo), opacity 0.2s;
}

.nav-toggle-bars {
  position: relative;
}

.nav-toggle-bars::before,
.nav-toggle-bars::after {
  content: "";
  position: absolute;
  left: 0;
}

.nav-toggle-bars::before {
  top: -5px;
}

.nav-toggle-bars::after {
  top: 5px;
}

.site-nav.is-open .nav-toggle-bars {
  background: transparent;
}

.site-nav.is-open .nav-toggle-bars::before {
  top: 0;
  transform: rotate(45deg);
}

.site-nav.is-open .nav-toggle-bars::after {
  top: 0;
  transform: rotate(-45deg);
}

.nav-menu {
  display: none;
  flex-direction: column;
  align-items: stretch;
  gap: 0.25rem;
  position: absolute;
  top: calc(100% + 1px);
  left: 0;
  right: 0;
  padding: 0.75rem 1.5rem 1.25rem;
  border-bottom: 1px solid var(--zinc-800);
  background: rgb(9 9 11 / 0.96);
  backdrop-filter: blur(12px);
}

.site-nav.is-open .nav-menu {
  display: flex;
}

.nav-menu a {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.02em;
  color: var(--zinc-400);
  padding: 0.625rem 0.25rem;
  transition: color 0.2s var(--ease-out-expo);
}

.nav-menu a:hover {
  color: var(--zinc-100);
}

.nav-menu .nav-cta {
  margin-top: 0.5rem;
  text-align: center;
  color: var(--zinc-900);
}

.nav-menu .nav-cta:hover {
  color: var(--zinc-900);
}

@media (min-width: 900px) {
  .nav-toggle {
    display: none;
  }

  .nav-menu {
    position: static;
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 1.25rem;
    padding: 0;
    border: none;
    background: transparent;
    backdrop-filter: none;
  }

  .nav-menu a:not(.nav-cta) {
    padding: 0;
  }

  .nav-menu .nav-cta {
    margin-top: 0;
    margin-left: 0.5rem;
  }

  .nav-brand {
    max-width: none;
  }
}

/* --- hero --- */

.hero {
  position: relative;
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  padding: 0;
}

.hero-atmosphere {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(ellipse 80% 50% at 70% 40%, rgb(56 189 248 / 0.05), transparent 60%),
    radial-gradient(ellipse 50% 40% at 20% 80%, rgb(52 211 153 / 0.03), transparent 55%),
    linear-gradient(180deg, transparent 0%, rgb(9 9 11 / 0.35) 55%, rgb(9 9 11 / 0.75) 100%);
}

.hero-atmosphere::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgb(39 39 42 / 0.45) 1px, transparent 1px),
    linear-gradient(90deg, rgb(39 39 42 / 0.45) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: radial-gradient(ellipse 70% 60% at 60% 45%, black 20%, transparent 75%);
  opacity: 0.5;
}

.hero-inner {
  position: relative;
  z-index: 1;
  flex: 1;
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  align-items: end;
  width: 100%;
  max-width: 72rem;
  margin-inline: auto;
  padding: 4.5rem 1.5rem 1.5rem;
}

@media (min-width: 960px) {
  .hero-inner {
    grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.15fr);
    align-items: center;
    gap: 2.5rem;
    padding: 5rem 1.5rem 2rem;
  }
}

.hero-copy {
  max-width: 36rem;
}

.hero h1 {
  max-width: 14ch;
  font-size: clamp(2.25rem, 5.5vw, 3.75rem);
  font-weight: 600;
  line-height: 1.02;
  letter-spacing: -0.03em;
  color: var(--zinc-50);
  text-wrap: balance;
}

.hero-line {
  margin-top: 1rem;
  max-width: 28ch;
  font-size: clamp(1.125rem, 2.2vw, 1.5rem);
  font-weight: 500;
  line-height: 1.35;
  letter-spacing: -0.02em;
  color: var(--sky-300);
  text-wrap: balance;
}

.hero-lead {
  margin-top: 1rem;
  max-width: 42ch;
  font-size: 1.0625rem;
  line-height: 1.6;
  color: var(--zinc-400);
  text-wrap: pretty;
}

.hero-copy .cta-row {
  margin-top: 1.75rem;
}

/* --- hero recorder --- */

.hero-recorder {
  position: relative;
  width: 100%;
  border: 1px solid var(--zinc-800);
  border-radius: 0.75rem;
  background: rgb(9 9 11 / 0.85);
  backdrop-filter: blur(8px);
  overflow: hidden;
  box-shadow:
    0 0 0 1px rgb(56 189 248 / 0.04),
    0 24px 48px -24px rgb(0 0 0 / 0.7);
}

@media (min-width: 960px) {
  .hero-recorder {
    border-radius: 0.875rem;
    min-height: 28rem;
  }
}

.recorder-chrome {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  border-bottom: 1px solid var(--zinc-800);
  background: rgb(24 24 27 / 0.7);
  padding: 0.625rem 1rem;
}

.recorder-path {
  margin-left: 0.5rem;
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--zinc-400);
}

.recorder-prompt {
  padding: 1rem 1.25rem 0.75rem;
  border-bottom: 1px solid var(--zinc-900);
}

.recorder-prompt-label {
  display: block;
  margin-bottom: 0.375rem;
  font-family: var(--font-mono);
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--zinc-500);
}

.recorder-question {
  min-height: 2.75rem;
  font-size: 0.9375rem;
  line-height: 1.5;
  color: var(--zinc-200);
}

.recorder-caret {
  display: inline-block;
  width: 0.4rem;
  height: 1em;
  margin-left: 1px;
  vertical-align: text-bottom;
  background: var(--sky-400);
  animation: caretBlink 1s steps(1) infinite;
}

.recorder-caret.is-hidden {
  opacity: 0;
}

@keyframes caretBlink {
  0%,
  49% {
    opacity: 1;
  }
  50%,
  100% {
    opacity: 0;
  }
}

.recorder-stages {
  display: flex;
  flex-wrap: wrap;
  gap: 0.375rem;
  padding: 0.75rem 1rem;
  border-bottom: 1px solid var(--zinc-900);
}

.recorder-stages li {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  border: 1px solid var(--zinc-800);
  border-radius: 999px;
  padding: 0.25rem 0.625rem;
  font-family: var(--font-mono);
  font-size: 10px;
  color: var(--zinc-500);
  transition:
    border-color 0.35s var(--ease-out-expo),
    color 0.35s var(--ease-out-expo),
    background-color 0.35s var(--ease-out-expo);
}

.recorder-stages li span {
  width: 0.3rem;
  height: 0.3rem;
  border-radius: 999px;
  background: var(--zinc-600);
  transition:
    background-color 0.35s var(--ease-out-expo),
    transform 0.35s var(--ease-out-expo);
}

.recorder-stages li.is-active {
  border-color: var(--sky-400);
  background: rgb(56 189 248 / 0.08);
  color: var(--sky-300);
}

.recorder-stages li.is-active span {
  background: var(--sky-400);
  transform: scale(1.35);
}

.recorder-stages li.accent.is-active {
  border-color: var(--emerald-400);
  background: rgb(52 211 153 / 0.08);
  color: var(--emerald-400);
}

.recorder-stages li.accent.is-active span {
  background: var(--emerald-400);
}

.recorder-stages li.is-done {
  border-color: var(--zinc-700);
  color: var(--zinc-400);
}

.recorder-body {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0;
}

@media (min-width: 640px) {
  .recorder-body {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr);
  }
}

.recorder-timeline {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  padding: 1rem;
  font-size: 0.8125rem;
  border-bottom: 1px solid var(--zinc-900);
  min-height: 11rem;
}

@media (min-width: 640px) {
  .recorder-timeline {
    border-bottom: none;
    border-right: 1px solid var(--zinc-900);
  }
}

.rec-row {
  display: flex;
  gap: 0.5rem;
  line-height: 1.35;
}

.js-motion .rec-row {
  opacity: 0;
  transform: translateY(6px);
  transition:
    opacity 0.4s var(--ease-out-expo),
    transform 0.4s var(--ease-out-expo);
}

.js-motion .rec-row.is-visible {
  opacity: 1;
  transform: none;
}

.rec-row.warn .timeline-label {
  color: var(--amber-300);
}

.recorder-report {
  padding: 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  min-height: 11rem;
}

.recorder-banner {
  border-radius: 0.5rem;
  border: 1px solid var(--amber-700);
  background: rgb(69 26 3 / 0.55);
  padding: 0.625rem 0.875rem;
  font-size: 0.8125rem;
  color: var(--amber-200);
}

.js-motion .recorder-banner {
  opacity: 0;
  transform: translateY(-6px);
  transition:
    opacity 0.45s var(--ease-out-expo),
    transform 0.45s var(--ease-out-expo);
}

.js-motion .recorder-banner.is-visible {
  opacity: 1;
  transform: none;
}

.recorder-banner .detail {
  display: block;
  margin-top: 0.25rem;
  color: rgb(252 211 77 / 0.9);
}

.recorder-stream {
  font-size: 0.875rem;
  line-height: 1.6;
  color: var(--zinc-300);
  min-height: 4.5rem;
}

.stream-caret {
  background: var(--zinc-500);
}

.hero-stack-strip {
  position: relative;
  z-index: 1;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem 0.75rem;
  width: 100%;
  max-width: 72rem;
  margin-inline: auto;
  padding: 1rem 1.5rem 2rem;
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  letter-spacing: -0.01em;
  color: var(--zinc-500);
  border-top: 1px solid var(--zinc-900);
}

.stack-arrow {
  color: var(--zinc-600);
}

/* --- failure modes --- */

.failure-grid {
  margin-top: 3.5rem;
  display: grid;
  grid-template-columns: 1fr;
  gap: 3rem 2.5rem;
}

@media (min-width: 768px) {
  .failure-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.failure-item {
  position: relative;
}

.fail-demo {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem;
  min-height: 2.5rem;
  margin-bottom: 1.25rem;
  font-family: var(--font-mono);
  font-size: 0.75rem;
}

.fail-cite {
  border-radius: 0.25rem;
  border: 1px solid var(--zinc-700);
  padding: 0.2rem 0.4rem;
  color: var(--zinc-300);
}

.fail-cite.ghost {
  color: var(--zinc-500);
  border-style: dashed;
}

.fail-ghost-label {
  color: var(--amber-400);
  opacity: 0;
}

.fail-domain {
  border-radius: 0.25rem;
  border: 1px solid var(--zinc-700);
  padding: 0.2rem 0.4rem;
  color: var(--zinc-300);
  transition:
    transform 0.5s var(--ease-out-expo),
    opacity 0.5s var(--ease-out-expo);
}

.fail-domain.is-merged {
  opacity: 0.25;
  transform: scale(0.9);
}

.fail-merge {
  color: var(--amber-400);
  opacity: 0;
}

.fail-date {
  border-radius: 0.25rem;
  border: 1px solid var(--zinc-700);
  padding: 0.2rem 0.4rem;
  color: var(--zinc-300);
}

.fail-date[data-date-old] {
  color: var(--amber-300);
  border-color: var(--amber-700);
}

.fail-date-arrow {
  color: var(--zinc-600);
}

.fail-date[data-date-now] {
  color: var(--zinc-500);
  text-decoration: line-through;
}

.failure-n {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.18em;
  color: var(--zinc-500);
}

.failure-grid h3 {
  margin-top: 0.75rem;
  font-size: 1.125rem;
  font-weight: 500;
  line-height: 1.375;
  color: var(--zinc-100);
  text-wrap: balance;
}

.failure-grid p {
  margin-top: 0.625rem;
  font-size: 15px;
  line-height: 1.625;
  color: var(--zinc-400);
}

/* --- guardrails --- */

.card-grid {
  margin-top: 3.5rem;
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.25rem;
}

@media (min-width: 768px) {
  .card-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

.card {
  border-radius: 0.75rem;
  border: 1px solid var(--zinc-800);
  background: rgb(24 24 27 / 0.4);
  padding: 1.5rem;
}

.card-n {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--zinc-500);
}

.card h3 {
  margin-top: 0.625rem;
  font-size: 1.125rem;
  font-weight: 500;
  line-height: 1.375;
  color: var(--zinc-100);
  text-wrap: balance;
}

.card p {
  margin-top: 0.75rem;
  font-size: 15px;
  line-height: 1.625;
  color: var(--zinc-400);
}

.guard-demo {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem;
  margin-top: 1rem;
  padding: 0.75rem;
  border-radius: 0.5rem;
  border: 1px solid var(--zinc-800);
  background: rgb(9 9 11 / 0.5);
  font-family: var(--font-mono);
  font-size: 0.75rem;
}

.guard-marker {
  border-radius: 0.25rem;
  border: 1px solid var(--zinc-600);
  padding: 0.15rem 0.35rem;
  color: var(--zinc-300);
}

.guard-marker.is-fail {
  border-color: var(--amber-600);
  color: var(--amber-400);
}

.guard-arrow {
  color: var(--zinc-600);
}

.guard-verdict {
  border-radius: 0.25rem;
  padding: 0.15rem 0.4rem;
  opacity: 0;
}

.guard-verdict.bad {
  border: 1px solid var(--amber-700);
  background: var(--amber-950);
  color: var(--amber-300);
}

.guard-verdict.is-visible {
  opacity: 1;
}

.guard-host {
  border-radius: 0.25rem;
  border: 1px solid var(--zinc-700);
  padding: 0.15rem 0.4rem;
  color: var(--zinc-300);
  transition:
    opacity 0.45s var(--ease-out-expo),
    transform 0.45s var(--ease-out-expo);
}

.guard-host.is-collapsed {
  opacity: 0.3;
  transform: scale(0.92);
}

.guard-collapse {
  color: var(--sky-300);
  opacity: 0;
}

.guard-collapse.is-visible {
  opacity: 1;
}

.guard-badge {
  border-radius: 0.25rem;
  border: 1px solid var(--zinc-700);
  padding: 0.15rem 0.45rem;
  color: var(--zinc-500);
  opacity: 0.4;
  transition:
    opacity 0.4s var(--ease-out-expo),
    border-color 0.4s var(--ease-out-expo),
    color 0.4s var(--ease-out-expo),
    background-color 0.4s var(--ease-out-expo);
}

.guard-badge.is-lit[data-g-badge="fresh"] {
  opacity: 1;
  border-color: var(--emerald-800);
  background: var(--emerald-950);
  color: var(--emerald-400);
}

.guard-badge.is-lit[data-g-badge="stale"] {
  opacity: 1;
  border-color: var(--amber-700);
  background: var(--amber-950);
  color: var(--amber-400);
}

.guard-badge.is-lit[data-g-badge="unknown"] {
  opacity: 1;
  border-color: var(--zinc-600);
  background: var(--zinc-900);
  color: var(--zinc-300);
}

.budget-demo {
  flex-direction: column;
  align-items: stretch;
  gap: 0.625rem;
}

.budget-meter {
  display: grid;
  grid-template-columns: 4.5rem 1fr 1.5rem;
  align-items: center;
  gap: 0.5rem;
  color: var(--zinc-400);
}

.meter-track {
  height: 0.35rem;
  border-radius: 999px;
  background: var(--zinc-800);
  overflow: hidden;
}

.meter-fill {
  height: 100%;
  width: 0%;
  border-radius: 999px;
  background: var(--sky-400);
}

.meter-cap {
  text-align: right;
  color: var(--zinc-500);
}

.budget-stop {
  margin-top: 0.25rem;
  color: var(--amber-400);
  opacity: 0;
}

.budget-stop.is-visible {
  opacity: 1;
}

.guardrails-note {
  margin-top: 2.5rem;
  max-width: 65ch;
  font-size: 15px;
  line-height: 1.625;
  color: var(--zinc-400);
}

.flag-text {
  white-space: nowrap;
  font-weight: 500;
  color: var(--amber-400);
}

/* --- pipeline --- */

.pipeline {
  margin-top: 3.5rem;
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.75rem;
}

@media (min-width: 640px) {
  .pipeline {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .pipeline {
    grid-template-columns: repeat(4, 1fr);
  }
}

.stage {
  border-radius: 0.5rem;
  border: 1px solid var(--zinc-700);
  padding: 1rem;
  background: transparent;
  transition:
    border-color 0.35s var(--ease-out-expo),
    background-color 0.35s var(--ease-out-expo);
}

.stage.is-active {
  border-color: var(--stage-active-border);
  background-color: var(--stage-active-bg);
}

.stage[data-stage="5"].is-active {
  border-color: var(--emerald-400);
  background-color: rgb(52 211 153 / 0.08);
}

.stage-head {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.stage-dot {
  height: 0.375rem;
  width: 0.375rem;
  flex-shrink: 0;
  border-radius: 9999px;
  background: var(--sky-400);
  opacity: 0.35;
  transform: scale(1);
  transition:
    opacity 0.35s var(--ease-out-expo),
    transform 0.35s var(--ease-out-expo);
}

.stage.is-active .stage-dot {
  opacity: 1;
  transform: scale(1.35);
}

.stage-dot.accent {
  background: var(--emerald-400);
}

.stage-name {
  font-family: var(--font-mono);
  font-size: 0.875rem;
  color: var(--zinc-100);
}

.stage-note {
  margin-top: 0.5rem;
  font-size: 0.75rem;
  line-height: 1.625;
  color: var(--zinc-400);
}

.stage-note.accent {
  font-family: var(--font-mono);
  color: var(--emerald-400);
}

.pipeline-note {
  margin-top: 2rem;
  max-width: 65ch;
  font-size: 15px;
  line-height: 1.625;
  color: var(--zinc-400);
}

/* --- evidence mock UI --- */

.ui-frame {
  margin-top: 3rem;
  overflow: hidden;
  border-radius: 0.75rem;
  border: 1px solid var(--zinc-800);
  background: var(--zinc-950);
}

.ui-chrome {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  border-bottom: 1px solid var(--zinc-800);
  background: rgb(24 24 27 / 0.6);
  padding: 0.625rem 1rem;
}

.ui-dot {
  height: 0.5rem;
  width: 0.5rem;
  border-radius: 9999px;
  background: var(--zinc-700);
}

.ui-path {
  margin-left: 0.5rem;
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--zinc-400);
}

.ui-body {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1px;
  background: var(--zinc-800);
}

@media (min-width: 1024px) {
  .ui-body {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr);
  }
}

.ui-pane {
  background: var(--zinc-950);
  padding: 1.25rem;
}

.ui-rail {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.ui-label {
  margin-bottom: 0.75rem;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.025em;
  color: var(--zinc-400);
}

.timeline {
  display: flex;
  flex-direction: column;
  gap: 0.375rem;
  font-size: 0.875rem;
}

.timeline li {
  display: flex;
  gap: 0.5rem;
  line-height: 1.375;
}

.timeline-icon {
  width: 1.25rem;
  flex-shrink: 0;
  text-align: center;
}

.timeline-label {
  color: var(--zinc-200);
}

.timeline-detail {
  margin-left: 0.375rem;
  color: var(--zinc-400);
}

.sources-scroll {
  overflow-x: auto;
}

.sources-table {
  width: 100%;
  min-width: 380px;
  text-align: left;
  font-size: 0.875rem;
}

.sources-table thead tr {
  border-bottom: 1px solid var(--zinc-800);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.025em;
  color: var(--zinc-400);
}

.sources-table th {
  padding: 0.5rem 0.75rem 0.5rem 0;
  font-weight: 500;
}

.sources-table th:last-child {
  padding-right: 0;
}

.sources-table tbody tr {
  border-bottom: 1px solid var(--zinc-900);
  vertical-align: top;
}

.sources-table td {
  padding: 0.5rem 0.75rem 0.5rem 0;
  white-space: nowrap;
  color: var(--zinc-400);
}

.sources-table td:first-child {
  font-family: var(--font-mono);
  color: var(--zinc-300);
}

.sources-table td:last-child {
  padding-right: 0;
  white-space: normal;
}

.badge {
  display: inline-block;
  border-radius: 0.25rem;
  border: 1px solid;
  padding: 0.125rem 0.375rem;
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.025em;
}

.badge-live {
  border-color: var(--emerald-800);
  background: var(--emerald-950);
  color: var(--emerald-400);
}

.badge-cache {
  border-color: var(--sky-800);
  background: var(--sky-950);
  color: var(--sky-400);
}

.stale {
  margin-left: 0.375rem;
  white-space: nowrap;
  color: var(--amber-400);
}

.verify-banner {
  border-radius: 0.5rem;
  border: 1px solid var(--amber-700);
  background: rgb(69 26 3 / 0.6);
  padding: 0.75rem 1rem;
  font-size: 0.875rem;
  color: var(--amber-200);
}

.verify-banner .sub {
  font-weight: 400;
  color: rgb(251 191 36 / 0.9);
}

.verify-banner .detail {
  margin-top: 0.375rem;
  line-height: 1.375;
  color: rgb(252 211 77 / 0.9);
}

.report-body {
  margin-top: 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  font-size: 15px;
  line-height: 1.625;
  color: var(--zinc-300);
}

.flagged-claim {
  border-radius: 0.375rem;
  border-left: 2px solid var(--amber-600);
  background: rgb(69 26 3 / 0.2);
  padding: 0.5rem 0 0.5rem 1rem;
}

.flagged-reason {
  display: block;
  margin-top: 0.375rem;
  font-size: 0.875rem;
  color: var(--amber-300);
}

.cursor {
  display: inline-block;
  margin-left: 0.125rem;
  height: 1rem;
  width: 0.375rem;
  transform: translateY(0.125rem);
  background: var(--zinc-400);
  box-shadow:
    0 0 6px rgb(161 161 170 / 0.75),
    0 0 14px rgb(161 161 170 / 0.4),
    0 0 24px rgb(161 161 170 / 0.2);
  vertical-align: baseline;
  animation: caretBlink 1s steps(1) infinite;
}

.writing {
  color: var(--zinc-400);
}

.marker,
.marker-flagged {
  margin-left: 0.125rem;
  border-radius: 0.25rem;
  border: 1px solid var(--marker-pending-border);
  padding: 0 0.25rem;
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--marker-pending);
  transition:
    color 0.4s var(--ease-out-expo),
    border-color 0.4s var(--ease-out-expo);
}

.marker.is-resolved {
  color: var(--marker-resolved);
  border-color: var(--marker-resolved-border);
}

.marker-flagged.is-flagged {
  color: var(--marker-flagged);
  border-color: var(--marker-flagged-border);
}

/* Playback: hide rows until JS reveals (reduced-motion keeps visible) */
.js-motion .ui-row,
.js-motion .ui-src,
.js-motion [data-ui-para],
.js-motion [data-ui-banner],
.js-motion [data-ui-reason] {
  opacity: 0;
  transform: translateY(8px);
}

.js-motion .ui-row.is-visible,
.js-motion .ui-src.is-visible,
.js-motion [data-ui-para].is-visible,
.js-motion [data-ui-banner].is-visible,
.js-motion [data-ui-reason].is-visible {
  opacity: 1;
  transform: none;
  transition:
    opacity 0.45s var(--ease-out-expo),
    transform 0.45s var(--ease-out-expo);
}

.evidence-caption {
  margin-top: 1rem;
  max-width: 70ch;
  font-size: 0.875rem;
  line-height: 1.625;
  color: var(--zinc-500);
}

.evidence-caption strong {
  color: var(--zinc-400);
  font-weight: 500;
}

/* --- cost --- */

.subhead {
  margin-top: 3rem;
  margin-bottom: 1rem;
  font-size: 1rem;
  font-weight: 500;
  color: var(--zinc-200);
}

.table-frame {
  overflow-x: auto;
  border-radius: 0.75rem;
  border: 1px solid var(--zinc-800);
}

.roles-table {
  width: 100%;
  min-width: 520px;
  text-align: left;
  font-size: 0.875rem;
}

.roles-table thead tr {
  border-bottom: 1px solid var(--zinc-800);
  background: rgb(24 24 27 / 0.5);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--zinc-400);
}

.roles-table th,
.roles-table td {
  padding: 0.75rem 1rem;
}

.roles-table tbody tr {
  border-bottom: 1px solid var(--zinc-900);
}

.roles-table tbody tr:last-child {
  border-bottom: none;
}

.roles-table .model {
  font-family: var(--font-mono);
  font-size: 0.8125rem;
  color: var(--sky-300);
}

.roles-table .meta {
  color: var(--zinc-400);
}

.effort-col {
  width: 7rem;
}

.effort-bar {
  height: 0.35rem;
  border-radius: 999px;
  background: var(--zinc-800);
  overflow: hidden;
}

.effort-fill {
  height: 100%;
  width: 0%;
  border-radius: 999px;
  background: var(--sky-400);
}

.effort-bar.opus .effort-fill {
  background: var(--emerald-400);
}

.effort-bar.quiet .effort-fill {
  background: var(--zinc-500);
}

.cost-note {
  margin-top: 1.25rem;
  max-width: 65ch;
  font-size: 15px;
  line-height: 1.625;
  color: var(--zinc-400);
}

.ceilings {
  margin-top: 1.5rem;
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
}

@media (min-width: 640px) {
  .ceilings {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .ceilings {
    grid-template-columns: repeat(3, 1fr);
  }
}

.ceiling {
  border-radius: 0.75rem;
  border: 1px solid var(--zinc-800);
  background: rgb(24 24 27 / 0.35);
  padding: 1.25rem;
}

.ceiling dt {
  font-size: 0.8125rem;
  color: var(--zinc-400);
}

.ceiling .value {
  margin-top: 0.5rem;
  font-family: var(--font-mono);
  font-size: 1.75rem;
  font-weight: 500;
  letter-spacing: -0.03em;
  color: var(--zinc-50);
}

.ceiling .src {
  margin-top: 0.375rem;
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--zinc-500);
}

.callout {
  margin-top: 1.5rem;
  border-radius: 0.75rem;
  padding: 1.5rem;
}

.callout-emerald {
  border: 1px solid var(--emerald-900);
  background: rgb(2 44 34 / 0.3);
}

.callout-emerald h3 {
  font-family: var(--font-mono);
  font-size: 0.875rem;
  color: var(--emerald-400);
}

.callout-emerald.is-pulse {
  box-shadow: 0 0 0 1px rgb(52 211 153 / 0.35);
}

.callout-muted {
  border: 1px solid var(--zinc-800);
  background: rgb(24 24 27 / 0.4);
}

.callout-muted h3 {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--zinc-200);
}

.callout p {
  margin-top: 0.625rem;
  max-width: 65ch;
  font-size: 15px;
  line-height: 1.625;
  color: var(--zinc-300);
}

.callout-muted p {
  color: var(--zinc-400);
}

/* --- honesty / tradeoffs --- */

.tradeoffs-section {
  position: relative;
  overflow: hidden;
}

.tradeoffs-section::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(ellipse 60% 40% at 10% 20%, rgb(56 189 248 / 0.05), transparent 60%),
    radial-gradient(ellipse 50% 35% at 90% 70%, rgb(52 211 153 / 0.04), transparent 55%);
  opacity: 0;
  transition: opacity 0.8s var(--ease-out-expo);
}

.tradeoffs-section.is-lit::before {
  opacity: 1;
}

.honesty-grid {
  margin-top: 3.5rem;
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.25rem;
}

@media (min-width: 768px) {
  .honesty-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1.25rem;
  }
}

.honesty-card {
  position: relative;
  border-radius: 0.75rem;
  border: 1px solid var(--zinc-800);
  background: rgb(24 24 27 / 0.35);
  padding: 1.5rem;
  overflow: hidden;
  transition:
    border-color 0.4s var(--ease-out-expo),
    background-color 0.4s var(--ease-out-expo),
    box-shadow 0.4s var(--ease-out-expo);
}

.honesty-card.is-active {
  border-color: rgb(56 189 248 / 0.35);
  background: rgb(24 24 27 / 0.55);
  box-shadow: 0 0 0 1px rgb(56 189 248 / 0.08);
}

.honesty-card[data-tradeoff="tests"].is-active {
  border-color: rgb(52 211 153 / 0.4);
  box-shadow: 0 0 0 1px rgb(52 211 153 / 0.1);
}

.honesty-index {
  display: block;
  margin-top: 1rem;
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  letter-spacing: 0.14em;
  color: var(--zinc-600);
}

.honesty-grid h3 {
  margin-top: 0.5rem;
  font-size: 1.125rem;
  font-weight: 500;
  line-height: 1.375;
  color: var(--zinc-100);
  text-wrap: balance;
}

.honesty-grid p {
  margin-top: 0.625rem;
  font-size: 15px;
  line-height: 1.625;
  color: var(--zinc-400);
}

.honesty-demo {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem;
  min-height: 2.75rem;
  padding: 0.75rem;
  border-radius: 0.5rem;
  border: 1px solid var(--zinc-800);
  background: rgb(9 9 11 / 0.55);
  font-family: var(--font-mono);
  font-size: 0.75rem;
}

.worker-node {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 2.25rem;
  padding: 0.3rem 0.5rem;
  border-radius: 0.35rem;
  border: 1px solid var(--zinc-700);
  color: var(--zinc-300);
  transition:
    opacity 0.45s var(--ease-out-expo),
    transform 0.45s var(--ease-out-expo),
    border-color 0.45s var(--ease-out-expo),
    color 0.45s var(--ease-out-expo),
    background-color 0.45s var(--ease-out-expo);
}

.worker-node.is-kept {
  border-color: var(--sky-800);
  background: var(--sky-950);
  color: var(--sky-300);
}

.worker-node.is-gone {
  opacity: 0.2;
  transform: scale(0.85);
  text-decoration: line-through;
}

.worker-verdict {
  margin-left: auto;
  color: var(--sky-300);
  opacity: 0;
}

.worker-verdict.is-visible {
  opacity: 1;
}

.sse-rail {
  display: flex;
  align-items: center;
  gap: 0.35rem;
}

.sse-dot {
  width: 0.45rem;
  height: 0.45rem;
  border-radius: 999px;
  background: var(--zinc-700);
  opacity: 0.35;
  transform: scale(0.8);
  transition:
    opacity 0.3s var(--ease-out-expo),
    transform 0.3s var(--ease-out-expo),
    background-color 0.3s var(--ease-out-expo);
}

.sse-dot.is-on {
  opacity: 1;
  transform: scale(1);
  background: var(--sky-400);
}

.sse-drop {
  color: var(--amber-400);
  opacity: 0;
}

.sse-drop.is-visible {
  opacity: 1;
}

.sse-replay {
  color: var(--emerald-400);
  opacity: 0;
}

.sse-replay.is-visible {
  opacity: 1;
}

.cache-url {
  color: var(--zinc-400);
}

.cache-arrow {
  color: var(--zinc-600);
}

.honesty-demo .badge.is-hidden {
  display: none;
}

.honesty-demo .badge.is-swap-out {
  opacity: 0;
  transform: scale(0.9);
}

.sandbox-demo {
  gap: 0.75rem;
}

.sandbox-box {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  padding: 0.4rem 0.65rem;
  border-radius: 0.35rem;
  border: 1px dashed var(--zinc-600);
  color: var(--zinc-300);
  transition:
    border-color 0.4s var(--ease-out-expo),
    box-shadow 0.4s var(--ease-out-expo);
}

.sandbox-box.is-sealed {
  border-color: var(--sky-400);
  border-style: solid;
  box-shadow: inset 0 0 0 1px rgb(56 189 248 / 0.15);
}

.sandbox-meta {
  font-size: 0.625rem;
  color: var(--zinc-500);
}

.sandbox-block {
  color: var(--amber-400);
  opacity: 0;
  transform: translateX(6px);
}

.sandbox-block.is-visible {
  opacity: 1;
  transform: none;
}

.types-demo {
  gap: 0.5rem;
}

.types-chip {
  padding: 0.25rem 0.5rem;
  border-radius: 0.3rem;
  border: 1px solid var(--zinc-700);
  color: var(--zinc-300);
}

.types-flow {
  position: relative;
  width: 2.5rem;
  height: 2px;
  background: var(--zinc-800);
  overflow: hidden;
  border-radius: 999px;
}

.types-flow::after {
  content: "";
  position: absolute;
  inset: 0;
  width: 40%;
  background: var(--sky-400);
  transform: translateX(-120%);
}

.types-flow.is-running::after {
  animation: typesPulse 0.9s var(--ease-out-expo) forwards;
}

@keyframes typesPulse {
  to {
    transform: translateX(280%);
  }
}

.types-sync {
  margin-left: auto;
  color: var(--emerald-400);
  opacity: 0;
}

.types-sync.is-visible {
  opacity: 1;
}

.tests-demo {
  justify-content: space-between;
}

.tests-count {
  font-size: 1.25rem;
  font-weight: 500;
  letter-spacing: -0.03em;
  color: var(--zinc-100);
}

.tests-suffix {
  font-size: 0.75rem;
  font-weight: 400;
  color: var(--zinc-500);
}

.tests-pass {
  color: var(--emerald-400);
  opacity: 0;
}

.tests-pass.is-visible {
  opacity: 1;
}

@media (prefers-reduced-motion: reduce) {
  .worker-verdict,
  .sse-drop,
  .sse-replay,
  .sandbox-block,
  .types-sync,
  .tests-pass {
    opacity: 1;
    transform: none;
  }

  .worker-node:not(.is-kept) {
    opacity: 0.2;
    text-decoration: line-through;
  }

  .sse-dot {
    opacity: 1;
    background: var(--sky-400);
  }

  .sandbox-box {
    border-color: var(--sky-400);
    border-style: solid;
  }

  .honesty-demo .badge-cache {
    display: inline-block;
  }

  .honesty-demo .badge-live {
    display: none;
  }

  .types-flow::after {
    transform: none;
    width: 100%;
  }

  .tradeoffs-section::before {
    opacity: 1;
  }
}

/* --- footer --- */

.site-footer {
  border-top: 1px solid var(--zinc-900);
  padding: 2rem 1.5rem;
  background: rgb(9 9 11 / 0.85);
}

.footer-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  font-size: 0.875rem;
  color: var(--zinc-500);
}

.footer-inner .btn {
  font-family: var(--font-mono);
  font-size: 0.75rem;
}

/* --- reduced motion --- */

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

  .recorder-caret,
  .cursor {
    animation: none;
    opacity: 1;
  }

  .btn:hover,
  .btn:active {
    transform: none;
  }

  .rec-row,
  .recorder-banner {
    opacity: 1;
    transform: none;
  }

  .fail-ghost-label,
  .fail-merge,
  .guard-verdict,
  .guard-collapse,
  .budget-stop {
    opacity: 1;
  }

  .guard-badge {
    opacity: 1;
  }

  .guard-badge[data-g-badge="fresh"] {
    border-color: var(--emerald-800);
    background: var(--emerald-950);
    color: var(--emerald-400);
  }

  .guard-badge[data-g-badge="stale"] {
    border-color: var(--amber-700);
    background: var(--amber-950);
    color: var(--amber-400);
  }

  .guard-badge[data-g-badge="unknown"] {
    border-color: var(--zinc-600);
    background: var(--zinc-900);
    color: var(--zinc-300);
  }

  .meter-fill {
    width: 70%;
  }

  .marker {
    color: var(--marker-resolved);
    border-color: var(--marker-resolved-border);
  }

  .marker-flagged {
    color: var(--marker-flagged);
    border-color: var(--marker-flagged-border);
  }

  .js-motion .ui-row,
  .js-motion .ui-src,
  .js-motion [data-ui-para],
  .js-motion [data-ui-banner],
  .js-motion [data-ui-reason] {
    opacity: 1;
    transform: none;
  }

  .effort-fill {
    width: var(--effort, 50%);
  }

  .recorder-stages li:nth-child(6) {
    border-color: var(--emerald-400);
    background: rgb(52 211 153 / 0.08);
    color: var(--emerald-400);
  }
}
