:root {
  color-scheme: light;
  --page: #f6f7f9;
  --surface: #ffffff;
  --surface-soft: #f8fafc;
  --ink: #172033;
  --muted: #536173;
  --dim: #7a879a;
  --line: #dfe4eb;
  --green: #15803d;
  --green-bright: #37df8b;
  --indigo: #4338ca;
  --warn: #b45309;
  --night: #101827;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--page);
  color: var(--ink);
  font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

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

img {
  display: block;
  max-width: 100%;
}

.hero {
  position: relative;
  overflow: hidden;
  min-height: 82vh;
  color: #fff;
  border-bottom: 1px solid var(--line);
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(6, 10, 20, 0.92) 0%, rgba(6, 10, 20, 0.76) 42%, rgba(6, 10, 20, 0.28) 100%),
    url("assets/screenshots/05-review-queue.png") center / cover;
}

.wrap {
  width: min(1180px, calc(100% - 40px));
  margin: 0 auto;
}

.hero-inner {
  position: relative;
  min-height: 82vh;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 24px 0 28px;
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-weight: 700;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border-radius: 8px;
  background: var(--green-bright);
  color: #061121;
  font-weight: 800;
}

.nav-links {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.nav-links a,
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  border-radius: 8px;
  padding: 9px 14px;
  font-size: 14px;
  font-weight: 700;
}

.nav-links a {
  border: 1px solid rgba(255, 255, 255, 0.22);
  color: rgba(255, 255, 255, 0.9);
}

.nav-links a:hover,
.button.secondary:hover {
  background: rgba(255, 255, 255, 0.1);
}

.hero-copy {
  max-width: 780px;
  padding: 80px 0 48px;
}

.eyebrow {
  margin: 0;
  color: var(--green);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.hero .eyebrow {
  color: var(--green-bright);
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  margin-bottom: 22px;
  font-size: clamp(56px, 9vw, 108px);
  line-height: 0.92;
  letter-spacing: 0;
}

.hero-lede {
  max-width: 680px;
  color: rgba(255, 255, 255, 0.82);
  font-size: clamp(19px, 2vw, 24px);
  line-height: 1.45;
}

.actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 28px;
}

.button.primary {
  background: var(--green-bright);
  color: #061121;
}

.button.secondary {
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.28);
}

.metric-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
}

.metric {
  min-height: 132px;
  padding: 18px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(8px);
}

.metric strong {
  display: block;
  font-size: clamp(32px, 4vw, 48px);
  line-height: 1;
}

.metric span {
  display: block;
  margin-top: 12px;
  font-weight: 800;
}

.metric p {
  margin: 6px 0 0;
  color: rgba(255, 255, 255, 0.72);
  font-size: 13px;
  line-height: 1.45;
}

.section {
  padding: 72px 0;
  background: var(--surface);
}

.section.alt {
  background: #eef2f7;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.section.soft {
  background: var(--surface-soft);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.section-head {
  max-width: 780px;
}

.section-head h2 {
  margin: 12px 0 14px;
  font-size: clamp(32px, 4vw, 48px);
  line-height: 1.08;
  letter-spacing: 0;
}

.section-head p {
  color: var(--muted);
  font-size: 17px;
  line-height: 1.65;
}

.split {
  display: grid;
  grid-template-columns: 0.95fr 1.05fr;
  align-items: center;
  gap: 44px;
}

.panel {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  box-shadow: 0 1px 3px rgba(15, 23, 42, 0.08);
}

.feature-cards {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
  margin-top: 28px;
}

.feature-card {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface-soft);
  padding: 18px;
}

.feature-card h3 {
  margin-bottom: 10px;
  color: var(--indigo);
  font-size: 15px;
}

.feature-card.warn h3 {
  color: var(--warn);
}

.feature-card p,
.workflow-card li,
.surface-card p,
.spec-card p,
.signal-card p,
.boundary li {
  color: var(--muted);
  font-size: 14px;
  line-height: 1.6;
}

.shadow-img {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 18px 50px rgba(15, 23, 42, 0.12);
}

.workflow {
  display: grid;
  gap: 24px;
  margin-top: 40px;
}

.workflow-card {
  display: grid;
  grid-template-columns: 0.88fr 1.12fr;
  overflow: hidden;
  border: 1px solid #d7dbe2;
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 1px 3px rgba(15, 23, 42, 0.08);
}

.workflow-card:nth-child(even) .workflow-copy {
  order: 2;
}

.workflow-copy {
  padding: 30px;
}

.step {
  color: var(--green);
  font-size: 13px;
  font-weight: 800;
}

.workflow-card h3 {
  margin: 8px 0 18px;
  font-size: 24px;
}

.workflow-card ul,
.boundary ul {
  padding: 0;
  margin: 0;
  list-style: none;
}

.workflow-card li,
.boundary li {
  position: relative;
  padding-left: 18px;
  margin: 10px 0;
}

.workflow-card li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.7em;
  width: 7px;
  height: 7px;
  border-radius: 999px;
  background: #16a34a;
}

.workflow-shot {
  padding: 12px;
  background: #f3f6f9;
}

.workflow-shot img {
  width: 100%;
  height: 100%;
  min-height: 320px;
  object-fit: cover;
  object-position: top;
  border-radius: 8px;
}

.spec-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-top: 40px;
}

.spec-card {
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface-soft);
}

.spec-card h3 {
  font-size: 18px;
}

code,
pre {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}

.contract {
  display: block;
  overflow-wrap: anywhere;
  margin: 14px 0;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  color: var(--indigo);
  font-size: 12px;
  line-height: 1.55;
}

.technical-row {
  display: grid;
  grid-template-columns: 1.08fr 0.92fr;
  gap: 24px;
  margin-top: 28px;
}

.matchers,
.pipeline,
.boundary,
.github-card {
  padding: 26px;
  border-radius: 8px;
}

.matchers {
  border: 1px solid var(--line);
  background: var(--surface-soft);
}

.matcher-row {
  display: grid;
  grid-template-columns: 180px 1fr;
  gap: 16px;
  padding: 16px 0;
  border-top: 1px solid var(--line);
}

.matcher-row:first-of-type {
  border-top: 0;
}

.matcher-row strong {
  font-size: 14px;
}

.matcher-row p {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.6;
}

.pipeline,
.github-card {
  background: var(--night);
  color: #fff;
}

.pipeline pre {
  overflow: auto;
  white-space: pre-wrap;
  margin: 18px 0;
  padding: 18px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 8px;
  background: rgba(0, 0, 0, 0.28);
  color: #dbe7ff;
  font-size: 13px;
  line-height: 1.7;
}

.pipeline p,
.github-card p {
  color: rgba(255, 255, 255, 0.74);
  font-size: 14px;
  line-height: 1.65;
}

.signal-grid,
.surface-grid {
  display: grid;
  gap: 18px;
}

.signal-grid {
  grid-template-columns: repeat(2, 1fr);
}

.signal-card {
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.surface-grid {
  grid-template-columns: repeat(2, 1fr);
  margin-top: 40px;
}

.surface-card {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface-soft);
}

.surface-card img {
  border-bottom: 1px solid var(--line);
}

.surface-card div {
  padding: 20px;
}

.bottom-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px;
}

.boundary {
  border: 1px solid var(--line);
  background: var(--surface-soft);
}

.boundary li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.7em;
  width: 7px;
  height: 7px;
  border-radius: 999px;
  background: var(--warn);
}

.github-card a {
  margin-top: 16px;
}

.dark-button {
  display: inline-flex;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 8px;
  padding: 10px 14px;
  color: #fff;
  font-size: 14px;
  font-weight: 700;
}

.docs-links {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 22px;
}

.docs-links a {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 10px 12px;
  background: #fff;
  color: var(--ink);
  font-size: 14px;
  font-weight: 700;
}

@media (max-width: 920px) {
  .metric-grid,
  .split,
  .workflow-card,
  .spec-grid,
  .technical-row,
  .signal-grid,
  .surface-grid,
  .bottom-grid {
    grid-template-columns: 1fr;
  }

  .workflow-card:nth-child(even) .workflow-copy {
    order: initial;
  }
}

@media (max-width: 560px) {
  .wrap {
    width: min(100% - 32px, 1180px);
  }

  .hero-copy {
    padding-top: 60px;
  }

  .section {
    padding: 56px 0;
  }

  .feature-cards,
  .matcher-row {
    grid-template-columns: 1fr;
  }

  .workflow-shot img {
    min-height: 240px;
  }
}
