:root {
  color-scheme: light;
  --bg: #f7f9fc;
  --surface: #ffffff;
  --surface-2: #f1f5f9;
  --text: #071b49;
  --muted: #53637b;
  --border: #d8e1ec;
  --strong-border: #b7c7da;
  --accent: #073b8e;
  --teal: #087f6f;
  --teal-soft: #dff8f2;
  --red: #d32035;
  --red-soft: #fde8eb;
  --blue-soft: #e8f1ff;
  --shadow: 0 18px 60px rgba(7, 27, 73, 0.08);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

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

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

svg {
  display: block;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 72px;
  padding: 0 34px;
  background: rgba(255, 255, 255, 0.92);
  border-bottom: 1px solid var(--border);
  backdrop-filter: blur(16px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-size: 28px;
  font-weight: 800;
  letter-spacing: 0;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  color: var(--accent);
}

.brand-mark svg,
.proof-icon svg,
.cta-row svg {
  width: 100%;
  height: 100%;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.9;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.topbar nav {
  display: flex;
  align-items: center;
  gap: 28px;
  color: #061638;
  font-size: 16px;
  font-weight: 650;
}

.topbar nav a {
  padding: 24px 0 20px;
  border-bottom: 4px solid transparent;
}

.topbar nav a:hover,
.topbar nav a:first-child {
  color: var(--accent);
  border-bottom-color: var(--accent);
}

main {
  width: min(1480px, calc(100% - 48px));
  margin: 0 auto;
  padding: 28px 0 64px;
}

.hero {
  display: grid;
  grid-template-columns: minmax(340px, 430px) minmax(680px, 1fr);
  gap: 38px;
  align-items: start;
}

.hero-copy {
  padding: 42px 10px 0 12px;
}

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

h1 {
  max-width: 430px;
  margin-bottom: 28px;
  font-size: clamp(44px, 5vw, 70px);
  line-height: 0.98;
  letter-spacing: 0;
}

.hero-copy > p {
  max-width: 390px;
  margin-bottom: 22px;
  color: #17305d;
  font-size: 18px;
  line-height: 1.62;
}

.lifecycle-map {
  display: grid;
  gap: 8px;
  max-width: 392px;
  margin: 0 0 26px;
  padding: 16px 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.phase-label {
  color: var(--accent);
  font-size: 12px;
  font-weight: 850;
  letter-spacing: 0;
  text-transform: uppercase;
}

.lifecycle-line {
  display: grid;
  grid-template-columns: 126px 1fr;
  gap: 12px;
  align-items: start;
  padding: 7px 0;
  color: #1c2f57;
}

.lifecycle-line strong {
  color: #071b49;
  font-size: 14px;
}

.lifecycle-line span {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.38;
}

.lifecycle-line.active {
  padding: 9px 10px;
  margin-left: -10px;
  background: #eef6ff;
  border-left: 3px solid var(--accent);
  border-radius: 6px;
}

.proof-list {
  display: grid;
  gap: 18px;
  margin: 28px 0;
}

.proof-list div {
  display: grid;
  grid-template-columns: 34px 1fr;
  gap: 14px;
  align-items: center;
  color: #15284f;
  font-size: 16px;
  line-height: 1.35;
}

.proof-icon {
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  color: var(--accent);
}

.cta-row {
  display: grid;
  gap: 14px;
  max-width: 360px;
}

.primary-action,
.secondary-action {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 56px;
  padding: 0 18px;
  border-radius: 6px;
  font-size: 17px;
  font-weight: 750;
}

.primary-action {
  background: linear-gradient(180deg, #08439c, #062a72);
  color: white;
  box-shadow: 0 12px 28px rgba(6, 42, 114, 0.22);
}

.secondary-action {
  background: white;
  border: 1px solid var(--strong-border);
  color: #081c45;
}

.cta-row svg {
  width: 23px;
  height: 23px;
}

.dashboard {
  display: grid;
  grid-template-columns: 300px 260px minmax(330px, 1fr);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 8px;
  overflow: hidden;
  box-shadow: var(--shadow);
}

.summary-card,
.scenario-card,
.filmstrip-card,
.timeline-card,
.json-card {
  min-width: 0;
  padding: 22px 18px;
  border-color: var(--border);
}

.summary-card {
  min-height: 390px;
  border-right: 1px solid var(--border);
}

.scenario-card {
  grid-column: span 2;
  border-bottom: 1px solid var(--border);
}

.filmstrip-card {
  grid-column: 1;
  border-top: 1px solid var(--border);
  border-right: 1px solid var(--border);
}

.timeline-card {
  border-top: 1px solid var(--border);
  border-right: 1px solid var(--border);
}

.json-card {
  border-top: 1px solid var(--border);
}

.panel-title {
  margin-bottom: 18px;
  color: #061638;
  font-size: 14px;
  font-weight: 850;
  letter-spacing: 0;
  text-transform: uppercase;
}

.score {
  display: flex;
  align-items: baseline;
  gap: 14px;
  margin: 42px 0 12px;
}

.score strong {
  color: var(--red);
  font-size: 88px;
  line-height: 0.9;
}

.score span {
  font-size: 48px;
  font-weight: 800;
}

.summary-card p:not(.panel-title) {
  color: #142a58;
  font-size: 17px;
}

.bar {
  display: flex;
  height: 13px;
  margin: 28px 0 22px;
  overflow: hidden;
  border-radius: 3px;
  background: var(--surface-2);
}

.bar span {
  display: block;
}

.bar .failed {
  background: var(--red);
}

.bar .passed {
  background: var(--teal);
}

.legend {
  display: flex;
  gap: 28px;
  color: #293e64;
  font-size: 14px;
}

.dot {
  display: inline-block;
  width: 8px;
  height: 8px;
  margin-right: 8px;
  border-radius: 999px;
}

.fail-dot {
  background: var(--red);
}

.pass-dot {
  background: var(--teal);
}

.scenario-table {
  display: grid;
}

.scenario-head,
.scenario-row {
  display: grid;
  grid-template-columns: 44px 1fr 100px;
  align-items: center;
  gap: 12px;
}

.scenario-head {
  padding: 0 10px 12px;
  color: #3a4c68;
  border-bottom: 1px solid var(--border);
  font-size: 13px;
  font-weight: 750;
  text-transform: uppercase;
}

.scenario-row {
  width: 100%;
  padding: 12px 10px;
  text-align: left;
  background: transparent;
  border: 0;
  border-bottom: 1px solid #e5ebf3;
  cursor: pointer;
}

.scenario-row:hover,
.scenario-row.selected {
  background: #f7faff;
}

.scenario-row span:first-child {
  color: #1c2d4f;
  font-weight: 700;
}

.scenario-row strong {
  display: block;
  margin-bottom: 2px;
  color: #071b49;
  font-size: 14px;
}

.scenario-row small {
  display: block;
  color: var(--muted);
  font-size: 13px;
}

.status {
  justify-self: end;
  padding: 7px 11px;
  border-radius: 6px;
  font-size: 13px;
  font-style: normal;
  font-weight: 850;
  text-transform: uppercase;
}

.status.fail {
  background: var(--red-soft);
  color: var(--red);
}

.status.pass {
  background: var(--teal-soft);
  color: var(--teal);
}

.selected-copy {
  display: grid;
  gap: 6px;
  min-height: 64px;
  margin-bottom: 12px;
}

.selected-copy strong {
  font-size: 17px;
}

.selected-copy span {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.45;
}

.filmstrip {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.shot {
  margin: 0;
}

.shot a {
  display: block;
}

.shot img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  object-position: top;
  border: 1px solid var(--border);
  border-radius: 6px;
  background: #f8fafc;
}

.shot figcaption {
  margin-top: 5px;
  color: #40536f;
  font-size: 12px;
}

.timeline {
  display: grid;
  gap: 12px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.timeline li {
  display: grid;
  grid-template-columns: 26px 64px 1fr;
  align-items: center;
  gap: 10px;
  color: #1b315a;
  font-size: 13px;
}

.timeline .mark {
  display: grid;
  place-items: center;
  width: 24px;
  height: 24px;
  border: 1.5px solid currentColor;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 900;
}

.timeline .mark.pass {
  color: var(--teal);
}

.timeline .mark.fail {
  color: var(--red);
}

.timeline .mark.info {
  color: var(--accent);
}

.timeline time {
  color: #53637b;
  font-variant-numeric: tabular-nums;
}

.timeline em {
  grid-column: 3;
  justify-self: start;
  padding: 4px 7px;
  border-radius: 5px;
  background: var(--blue-soft);
  color: var(--accent);
  font-size: 11px;
  font-style: normal;
  font-weight: 850;
  text-transform: uppercase;
}

.timeline em.fail {
  background: var(--red-soft);
  color: var(--red);
}

.timeline em.pass {
  background: var(--teal-soft);
  color: var(--teal);
}

.json-card pre {
  height: 310px;
  margin: 0;
  padding: 18px;
  overflow: auto;
  border: 1px solid var(--border);
  border-radius: 7px;
  background: linear-gradient(180deg, #fbfdff, #f5f8fc);
  color: #08255d;
  font-size: 13px;
  line-height: 1.55;
}

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

.json-actions a {
  color: var(--accent);
  font-size: 13px;
  font-weight: 750;
}

.explain-band,
.real-agent {
  display: grid;
  grid-template-columns: minmax(320px, 1fr) minmax(280px, 420px);
  gap: 42px;
  align-items: center;
  margin-top: 52px;
  padding: 34px;
  background: white;
  border: 1px solid var(--border);
  border-radius: 8px;
}

.explain-band h2,
.real-agent h2 {
  margin-bottom: 12px;
  font-size: clamp(28px, 4vw, 44px);
  line-height: 1.05;
}

.explain-band p,
.real-agent p {
  max-width: 780px;
  color: var(--muted);
  font-size: 17px;
  line-height: 1.65;
}

.callout {
  display: grid;
  gap: 8px;
  padding: 20px;
  background: #f7faff;
  border: 1px solid var(--border);
  border-radius: 8px;
}

.callout strong {
  font-size: 18px;
}

.callout span {
  color: var(--muted);
  line-height: 1.5;
}

.real-agent {
  grid-template-columns: 1fr;
}

.section-heading {
  max-width: 840px;
}

.command-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.command-grid div {
  min-width: 0;
  padding: 18px;
  background: #071b49;
  border-radius: 8px;
  color: white;
}

.command-grid h3 {
  margin-bottom: 12px;
  font-size: 18px;
}

.command-grid pre {
  margin: 0;
  overflow: auto;
  color: #dbeafe;
  font-size: 13px;
  line-height: 1.55;
}

@media (max-width: 1180px) {
  .hero {
    grid-template-columns: 1fr;
  }

  .hero-copy {
    display: grid;
    grid-template-columns: 1fr minmax(280px, 360px);
    gap: 24px;
    align-items: end;
  }

  .hero-copy h1,
  .hero-copy > p,
  .lifecycle-map {
    grid-column: 1;
  }

  .proof-list,
  .cta-row {
    grid-column: 2;
  }

  .dashboard {
    grid-template-columns: 300px 1fr;
  }

  .scenario-card {
    grid-column: 2;
  }

  .json-card {
    grid-column: span 2;
  }
}

@media (max-width: 820px) {
  .topbar {
    position: static;
    align-items: flex-start;
    padding: 18px;
  }

  .topbar,
  .topbar nav,
  .hero-copy,
  .dashboard,
  .explain-band,
  .command-grid {
    grid-template-columns: 1fr;
  }

  .topbar nav {
    display: grid;
    gap: 8px;
    width: 100%;
  }

  .topbar nav a {
    padding: 6px 0;
    border-bottom: 0;
  }

  main {
    width: min(100% - 28px, 1480px);
    padding-top: 14px;
  }

  .hero-copy {
    padding: 18px 0 0;
  }

  .hero-copy h1,
  .hero-copy > p,
  .lifecycle-map,
  .proof-list,
  .cta-row,
  .scenario-card,
  .filmstrip-card,
  .timeline-card,
  .json-card {
    grid-column: 1;
  }

  .summary-card,
  .scenario-card,
  .filmstrip-card,
  .timeline-card,
  .json-card {
    border-right: 0;
  }

  .summary-card {
    min-height: auto;
    border-bottom: 1px solid var(--border);
  }

  .scenario-head,
  .scenario-row {
    grid-template-columns: 30px 1fr 84px;
  }

  .timeline li {
    grid-template-columns: 24px 62px 1fr;
  }

  .timeline em {
    grid-column: 3;
    justify-self: start;
  }

  h1 {
    font-size: 42px;
  }
}
