:root {
  --bg: #071311;
  --bg-soft: #0a1917;
  --panel: #0d211e;
  --panel-raised: #112824;
  --ink: #e8f2ef;
  --muted: #93aaa5;
  --faint: #607873;
  --line: #1d3a35;
  --teal: #7fd1c9;
  --powder: #bfe3e6;
  --rust: #e0653a;
  --amber: #f0a07a;
  --green: #7fe0a8;
  --red: #ff8171;
  --violet: #b9a7ff;
  --radius: 18px;
  --mono: "Cascadia Code", "SFMono-Regular", Consolas, "Liberation Mono", monospace;
  --sans: "Segoe UI", system-ui, -apple-system, BlinkMacSystemFont, Arial, sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background:
    radial-gradient(1100px 650px at 12% -10%, rgba(127, 209, 201, 0.12), transparent 60%),
    radial-gradient(900px 600px at 100% 0%, rgba(224, 101, 58, 0.10), transparent 55%),
    var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--teal); text-decoration: none; }
a:hover { text-decoration: underline; }

code, pre { font-family: var(--mono); }

.hidden { display: none !important; }

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 16px clamp(20px, 4vw, 56px);
  background: rgba(7, 19, 17, 0.78);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(29, 58, 53, 0.7);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--powder);
  font-weight: 800;
  letter-spacing: 0.02em;
  font-size: 1.08rem;
  text-decoration: none;
}
.brand:hover { text-decoration: none; }
.brand-mark { display: inline-flex; color: var(--teal); }

.site-nav {
  display: flex;
  align-items: center;
  gap: 22px;
  font-size: 0.92rem;
  color: var(--muted);
}
.site-nav a { color: var(--muted); }
.site-nav a:hover { color: var(--ink); text-decoration: none; }
.nav-cta {
  padding: 8px 16px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--ink) !important;
  background: var(--panel);
}
.nav-cta:hover { border-color: var(--teal); }

/* Layout */
main {
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 clamp(20px, 4vw, 56px);
}

section { padding: clamp(48px, 7vw, 96px) 0; }

.eyebrow {
  margin: 0 0 12px;
  color: var(--teal);
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

h1, h2, h3 { line-height: 1.12; margin: 0; }

h1 {
  font-size: clamp(2.7rem, 6.2vw, 5.2rem);
  font-weight: 800;
  letter-spacing: -0.04em;
  max-width: 13ch;
}
h1 em {
  font-style: normal;
  color: var(--teal);
  position: relative;
}
h1 em::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: 0.06em;
  height: 0.09em;
  background: linear-gradient(90deg, var(--teal), transparent);
  opacity: 0.55;
}

h2 {
  font-size: clamp(1.8rem, 3.6vw, 2.9rem);
  letter-spacing: -0.03em;
  font-weight: 800;
}

h3 { font-size: 1.1rem; font-weight: 700; }

.lede {
  margin: 24px 0 0;
  max-width: 58ch;
  color: var(--muted);
  font-size: clamp(1.02rem, 1.6vw, 1.2rem);
}

.section-heading { max-width: 760px; margin-bottom: 36px; }
.section-sub { margin: 14px 0 0; color: var(--muted); }

/* Hero */
.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(300px, 0.75fr);
  align-items: center;
  gap: clamp(32px, 6vw, 80px);
  padding-top: clamp(56px, 9vw, 120px);
}

.button-row { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 32px; }

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 13px 22px;
  border-radius: 999px;
  border: 1px solid transparent;
  font: inherit;
  font-weight: 700;
  font-size: 0.95rem;
  cursor: pointer;
  transition: transform 120ms ease, background 160ms ease, border-color 160ms ease;
}
.button:hover { transform: translateY(-1px); text-decoration: none; }
.button:disabled { opacity: 0.45; cursor: not-allowed; transform: none; }
.button-primary { background: var(--teal); color: #05201c; }
.button-primary:hover { background: var(--powder); }
.button-ghost { background: transparent; color: var(--ink); border-color: var(--line); }
.button-ghost:hover { border-color: var(--teal); }
.button-small { padding: 9px 14px; font-size: 0.82rem; border: 1px solid var(--line); background: var(--panel); color: var(--ink); }

.badges {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  padding: 0;
  margin: 30px 0 0;
  list-style: none;
}
.badges li {
  padding: 7px 13px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--muted);
  font-size: 0.78rem;
  background: rgba(13, 33, 30, 0.55);
}

.hero-art {
  position: relative;
  min-height: 390px;
  display: grid;
  place-items: center;
}
.orbit {
  position: absolute;
  border: 1px solid rgba(127, 209, 201, 0.22);
  border-radius: 50%;
}
.orbit-one { width: 360px; height: 360px; }
.orbit-two { width: 280px; height: 280px; border-color: rgba(224, 101, 58, 0.25); transform: rotate(24deg); }
.hero-card {
  position: relative;
  z-index: 1;
  width: min(340px, 90%);
  padding: 22px;
  border-radius: var(--radius);
  background: linear-gradient(160deg, #0f2521, #0a1a17 70%);
  border: 1px solid #24453f;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.55);
}
.hero-card-label {
  font-size: 0.68rem;
  letter-spacing: 0.18em;
  color: var(--faint);
  font-weight: 800;
}
.hero-card p { margin: 10px 0 18px; font-size: 1rem; }
.hero-flow {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.78rem;
  color: var(--muted);
  font-family: var(--mono);
}
.flow-arrow { color: var(--rust); }
.hero-verdict {
  margin-top: 18px;
  padding: 11px 14px;
  border-radius: 12px;
  background: rgba(127, 224, 168, 0.10);
  border: 1px solid rgba(127, 224, 168, 0.25);
  color: var(--green);
  font-weight: 800;
  letter-spacing: 0.04em;
  display: flex;
  justify-content: space-between;
  gap: 10px;
  font-size: 0.86rem;
}
.hero-verdict span { color: var(--muted); font-weight: 500; letter-spacing: 0; }

/* Model strip */
.model-strip {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 0;
  padding: 16px 20px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: rgba(13, 33, 30, 0.65);
  color: var(--muted);
  font-size: 0.88rem;
}
.pulse {
  width: 9px; height: 9px; border-radius: 50%;
  background: var(--teal);
  box-shadow: 0 0 0 0 rgba(127, 209, 201, 0.5);
  animation: pulse 2.2s infinite;
  flex: none;
}
@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(127, 209, 201, 0.45); }
  70% { box-shadow: 0 0 0 10px rgba(127, 209, 201, 0); }
  100% { box-shadow: 0 0 0 0 rgba(127, 209, 201, 0); }
}
.model-strip .error, .run-status.error { color: var(--red); }

/* How */
.cards.three {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}
.step {
  padding: 26px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: linear-gradient(170deg, var(--panel), var(--bg-soft));
}
.step-number {
  font-family: var(--mono);
  color: var(--rust);
  font-size: 0.78rem;
  font-weight: 700;
}
.step h3 { margin: 10px 0 10px; }
.step p { margin: 0; color: var(--muted); font-size: 0.94rem; }

/* Demo */
.demo-grid {
  display: grid;
  grid-template-columns: 340px minmax(0, 1fr);
  gap: 22px;
  align-items: start;
}
.panel {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: linear-gradient(170deg, var(--panel), var(--bg-soft));
  padding: 22px;
}
.panel h3 { margin-bottom: 8px; }
.panel-copy { color: var(--muted); font-size: 0.88rem; margin: 0 0 16px; }
.panel code { color: var(--powder); font-size: 0.82em; }
.panel hr { border: 0; border-top: 1px solid var(--line); margin: 22px 0; }

.controls .button { width: 100%; }
.run-status { min-height: 42px; margin: 12px 0 0; color: var(--muted); font-size: 0.82rem; }

.field { display: block; margin: 0 0 12px; }
.field span {
  display: block;
  margin-bottom: 5px;
  color: var(--faint);
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  font-weight: 700;
}
.field input {
  width: 100%;
  padding: 10px 12px;
  border-radius: 10px;
  border: 1px solid var(--line);
  background: #081512;
  color: var(--ink);
  font-family: var(--mono);
  font-size: 0.78rem;
}
.field input:focus { outline: none; border-color: var(--teal); }

.results {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(13, 33, 30, 0.55);
  padding: 22px;
}
.results-head {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 18px;
}
.results-head h3 { font-size: 1rem; color: var(--muted); font-weight: 600; }

.summary {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  min-width: 0;
  gap: 10px;
  margin-bottom: 14px;
}
.stat {
  padding: 14px;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: var(--bg-soft);
}
.stat-value { font-size: 1.6rem; font-weight: 800; line-height: 1; }
.stat-label { margin-top: 5px; color: var(--faint); font-size: 0.7rem; text-transform: uppercase; letter-spacing: 0.1em; }
.stat-match .stat-value { color: var(--green); }
.stat-mismatch .stat-value { color: var(--red); }
.stat-unverified .stat-value { color: var(--amber); }
.stat-error .stat-value { color: var(--violet); }

.pinned-block {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  padding: 11px 14px;
  border-radius: 10px;
  background: #081512;
  border: 1px solid var(--line);
  color: var(--faint);
  font-size: 0.78rem;
  margin-bottom: 18px;
}
.pinned-block strong { color: var(--ink); }
.pinned-block code { color: var(--teal); font-size: 0.72rem; word-break: break-all; }

.claims { display: grid; gap: 14px; }

.claim-card {
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--panel);
  padding: 18px;
}
.claim-head {
  display: flex;
  align-items: flex-start;
  gap: 12px;
}
.claim-head p { margin: 0; font-size: 0.96rem; }
.claim-number {
  margin-left: auto;
  color: var(--faint);
  font-family: var(--mono);
  font-size: 0.72rem;
}
.verdict {
  flex: none;
  padding: 4px 9px;
  border-radius: 7px;
  font-size: 0.67rem;
  font-weight: 800;
  letter-spacing: 0.07em;
  font-family: var(--mono);
}
.verdict-match { background: rgba(127, 224, 168, 0.12); color: var(--green); border: 1px solid rgba(127, 224, 168, 0.3); }
.verdict-mismatch { background: rgba(255, 129, 113, 0.12); color: var(--red); border: 1px solid rgba(255, 129, 113, 0.3); }
.verdict-observed { background: rgba(191, 227, 230, 0.10); color: var(--powder); border: 1px solid rgba(191, 227, 230, 0.25); }
.verdict-unverified { background: rgba(240, 160, 122, 0.10); color: var(--amber); border: 1px solid rgba(240, 160, 122, 0.3); }
.verdict-error { background: rgba(185, 167, 255, 0.10); color: var(--violet); border: 1px solid rgba(185, 167, 255, 0.3); }

.claim-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 16px;
  margin: 10px 0 0;
  color: var(--faint);
  font-size: 0.76rem;
}
.claim-meta .intent strong { color: var(--teal); }
.claim-meta .tool { font-family: var(--mono); }
.note { margin: 10px 0 0; color: var(--amber); font-size: 0.8rem; }

.checks {
  width: 100%;
  margin-top: 12px;
  border-collapse: collapse;
  font-size: 0.76rem;
}
.checks th {
  text-align: left;
  padding: 7px 8px;
  color: var(--faint);
  font-weight: 700;
  border-bottom: 1px solid var(--line);
  font-size: 0.68rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}
.checks td {
  padding: 7px 8px;
  border-bottom: 1px solid rgba(29, 58, 53, 0.55);
  vertical-align: top;
  color: var(--muted);
  word-break: break-word;
}
.checks td code { color: var(--ink); font-size: 0.72rem; }
.checks tr.pass td:last-child { color: var(--green); font-weight: 800; }
.checks th:last-child, .checks td:last-child { white-space: nowrap; width: 54px; text-align: right; }
.checks td code { overflow-wrap: anywhere; word-break: break-word; }
.checks tr.fail td:last-child { color: var(--red); font-weight: 800; }

.evidence { margin-top: 12px; }
.evidence summary {
  cursor: pointer;
  color: var(--teal);
  font-size: 0.78rem;
  font-weight: 700;
}
.evidence pre {
  margin: 10px 0 0;
  padding: 14px;
  border-radius: 10px;
  background: #06100e;
  border: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.7rem;
  overflow: auto;
  max-height: 320px;
}

/* Footer */
.site-footer {
  display: flex;
  justify-content: space-between;
  gap: 32px;
  max-width: 1240px;
  margin: 0 auto;
  padding: 36px clamp(20px, 4vw, 56px) 56px;
  border-top: 1px solid var(--line);
  color: var(--faint);
  font-size: 0.8rem;
}
.site-footer strong { color: var(--ink); }
.site-footer p { max-width: 62ch; margin: 6px 0 0; }
.footer-links { display: flex; flex-wrap: wrap; gap: 18px; align-items: flex-start; }
.footer-links a { color: var(--muted); }

@media (max-width: 980px) {
  .hero { grid-template-columns: 1fr; }
  .hero-art { min-height: 320px; order: -1; }
  .cards.three { grid-template-columns: 1fr; }
  .demo-grid { grid-template-columns: 1fr; }
  .summary { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 620px) {
  .site-nav a:not(.nav-cta) { display: none; }
  .site-footer { flex-direction: column; }
  .claim-head { flex-wrap: wrap; }
  .claim-number { display: none; }
  .checks { display: block; overflow-x: auto; }
}
