:root {
  --bg: #070b12;
  --bg-2: #09111b;
  --panel: rgba(14, 25, 38, 0.84);
  --panel-strong: rgba(17, 31, 47, 0.96);
  --line: rgba(142, 174, 203, 0.22);
  --text: #f6f1e7;
  --muted: #a9b6c8;
  --yellow: #ffd338;
  --green: #28e081;
  --blue: #4ea3ff;
  --red: #ff4d5e;
  --shadow: 0 24px 80px rgba(0, 0, 0, 0.38);
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    "Noto Sans SC", Arial, sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

section {
  scroll-margin-top: 86px;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  min-width: 320px;
}

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

button {
  font: inherit;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 64px;
  padding: 0 32px;
  background: rgba(7, 11, 18, 0.88);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(16px);
}

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

.brand-mark {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 8px;
  background: var(--yellow);
  color: #10110d;
  font-size: 13px;
  letter-spacing: 0;
}

nav {
  display: flex;
  gap: 28px;
  color: var(--muted);
  font-size: 14px;
}

nav a:hover {
  color: var(--yellow);
}

.section-band {
  position: relative;
  overflow: hidden;
  border-bottom: 1px solid rgba(142, 174, 203, 0.14);
}

.section-inner {
  position: relative;
  z-index: 1;
  width: min(1180px, calc(100% - 48px));
  margin: 0 auto;
}

.hero {
  min-height: 82vh;
  display: flex;
  align-items: center;
  background:
    radial-gradient(circle at 78% 28%, rgba(78, 163, 255, 0.16), transparent 34%),
    linear-gradient(180deg, #080c13 0%, #07101a 54%, #071018 100%);
}

.hero-map {
  position: absolute;
  inset: 0 0 auto auto;
  width: min(68vw, 1100px);
  height: 100%;
  object-fit: cover;
  object-position: center right;
  opacity: 0.74;
  mask-image: linear-gradient(90deg, transparent 0%, #000 24%, #000 78%, transparent 100%);
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(7, 11, 18, 0.98) 0%, rgba(7, 11, 18, 0.74) 36%, rgba(7, 11, 18, 0.26) 100%),
    linear-gradient(180deg, transparent 0%, rgba(7, 11, 18, 0.88) 100%);
  pointer-events: none;
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(420px, 0.72fr);
  gap: 64px;
  align-items: center;
  padding: 84px 0 54px;
}

.hero-copy h1 {
  margin: 0;
  font-size: clamp(54px, 8vw, 108px);
  line-height: 0.96;
  letter-spacing: 0;
}

.hero-copy h1::first-letter {
  color: var(--yellow);
}

.hero-copy p {
  max-width: 680px;
  margin: 24px 0 0;
  color: var(--muted);
  font-size: 19px;
  line-height: 1.75;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 34px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 18px;
  border-radius: 8px;
  border: 1px solid var(--line);
  cursor: pointer;
  font-weight: 760;
  font-size: 14px;
  color: var(--text);
  background: rgba(16, 28, 42, 0.82);
}

.button.primary {
  background: var(--yellow);
  border-color: var(--yellow);
  color: #11120d;
}

.button.secondary:hover,
.button.compact:hover {
  border-color: rgba(255, 211, 56, 0.76);
  color: var(--yellow);
}

.button.compact {
  min-height: 38px;
  padding: 0 14px;
}

.button.full {
  width: 100%;
}

.hero-console,
.agent-card,
.metric,
.filter-panel,
.table-panel,
.score-panel,
.verify-panel {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.hero-console {
  min-height: 408px;
  padding: 20px;
  backdrop-filter: blur(14px);
}

.console-head,
.table-head,
.agent-card-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
}

.console-head {
  color: var(--muted);
  font-size: 13px;
  text-transform: uppercase;
}

.live-dot {
  color: var(--green);
}

.route-canvas {
  position: relative;
  height: 220px;
  margin: 22px 0;
  border-radius: 6px;
  background:
    linear-gradient(rgba(78, 163, 255, 0.12) 1px, transparent 1px),
    linear-gradient(90deg, rgba(78, 163, 255, 0.12) 1px, transparent 1px),
    rgba(4, 11, 18, 0.8);
  background-size: 32px 32px;
  overflow: hidden;
}

.route-node {
  position: absolute;
  width: 16px;
  height: 16px;
  border: 3px solid var(--blue);
  border-radius: 50%;
  background: var(--bg);
  box-shadow: 0 0 24px rgba(78, 163, 255, 0.76);
}

.node-a {
  left: 17%;
  top: 58%;
}

.node-b {
  left: 40%;
  top: 30%;
  border-color: var(--green);
  box-shadow: 0 0 24px rgba(40, 224, 129, 0.7);
}

.node-c {
  right: 24%;
  top: 50%;
  border-color: var(--yellow);
  box-shadow: 0 0 24px rgba(255, 211, 56, 0.75);
}

.node-d {
  right: 12%;
  bottom: 22%;
}

.route-line {
  position: absolute;
  height: 2px;
  transform-origin: left center;
  background: currentColor;
  box-shadow: 0 0 18px currentColor;
}

.route-one {
  left: 19%;
  top: 61%;
  width: 220px;
  transform: rotate(-30deg);
  color: var(--green);
}

.route-two {
  left: 42%;
  top: 34%;
  width: 210px;
  transform: rotate(28deg);
  color: var(--yellow);
}

.route-three {
  left: 63%;
  top: 56%;
  width: 120px;
  transform: rotate(24deg);
  color: var(--blue);
}

.hero-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin: 0;
}

.hero-stats div {
  padding: 14px;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.035);
  border: 1px solid rgba(142, 174, 203, 0.14);
}

.hero-stats dt,
.metric span,
.score-panel span {
  color: var(--muted);
  font-size: 12px;
}

.hero-stats dd {
  margin: 8px 0 0;
  color: var(--green);
  font-size: 22px;
  font-weight: 820;
}

.agents-section,
.benchmark-section,
.evidence-section {
  padding: 72px 0;
  background:
    linear-gradient(180deg, rgba(10, 19, 29, 0.88), rgba(7, 11, 18, 0.98)),
    var(--bg-2);
}

.agents-section {
  padding-top: 42px;
}

.section-heading {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 18px;
  align-items: end;
  margin-bottom: 26px;
}

.section-heading > span {
  color: var(--yellow);
  font-size: 26px;
  font-weight: 900;
}

.section-heading h2 {
  margin: 0;
  font-size: clamp(28px, 4vw, 42px);
  letter-spacing: 0;
}

.section-heading p {
  margin: 8px 0 0;
  color: var(--muted);
  line-height: 1.7;
}

.agent-flow {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}

.agent-card {
  position: relative;
  min-height: 230px;
  padding: 20px;
}

.agent-card:not(:last-child)::after {
  content: "";
  position: absolute;
  top: 50%;
  right: -16px;
  width: 14px;
  height: 2px;
  background: var(--blue);
  box-shadow: 0 0 14px var(--blue);
}

.agent-card h3 {
  margin: 0;
  font-size: 18px;
}

.agent-state {
  color: var(--muted);
  font-size: 12px;
}

.agent-card p {
  min-height: 72px;
  color: var(--muted);
  line-height: 1.65;
}

.agent-card code {
  display: block;
  padding: 12px;
  border-radius: 6px;
  color: #cce7ff;
  background: rgba(3, 9, 15, 0.72);
  border: 1px solid rgba(78, 163, 255, 0.22);
  white-space: normal;
}

.agent-card.is-active {
  border-color: rgba(255, 211, 56, 0.82);
}

.agent-card.is-active .agent-state {
  color: var(--yellow);
}

.agent-card.is-complete {
  border-color: rgba(40, 224, 129, 0.58);
}

.agent-card.is-complete .agent-state {
  color: var(--green);
}

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

.metric,
.score-panel {
  padding: 18px;
}

.metric strong,
.score-panel strong {
  display: block;
  margin-top: 12px;
  color: var(--green);
  font-size: clamp(30px, 4vw, 44px);
  line-height: 1;
}

.benchmark-layout {
  display: grid;
  grid-template-columns: 250px minmax(0, 1fr);
  gap: 18px;
}

.filter-panel,
.table-panel,
.verify-panel {
  padding: 18px;
}

.filter-panel h3,
.table-panel h3,
.verify-panel h3 {
  margin: 0;
  font-size: 18px;
}

.filter-list {
  display: grid;
  gap: 10px;
  margin-top: 18px;
}

.filter-button {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  padding: 11px 12px;
  border-radius: 6px;
  border: 1px solid rgba(142, 174, 203, 0.18);
  background: rgba(255, 255, 255, 0.025);
  color: var(--muted);
  cursor: pointer;
  text-align: left;
}

.filter-button.is-selected {
  color: var(--yellow);
  border-color: rgba(255, 211, 56, 0.58);
  background: rgba(255, 211, 56, 0.08);
}

.table-head {
  margin-bottom: 14px;
}

.table-head span {
  color: var(--muted);
  font-size: 13px;
}

.case-table-wrap {
  overflow-x: auto;
}

.case-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 780px;
}

.case-table th,
.case-table td {
  padding: 12px 10px;
  border-bottom: 1px solid rgba(142, 174, 203, 0.14);
  text-align: left;
  font-size: 13px;
  vertical-align: middle;
}

.case-table th {
  color: var(--muted);
  font-weight: 680;
}

.case-table td {
  color: #dce7f2;
}

.case-table td.numeric {
  color: var(--green);
  font-variant-numeric: tabular-nums;
}

.category {
  color: var(--blue);
  font-weight: 760;
}

.evidence-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-bottom: 18px;
}

.score-panel small {
  display: block;
  margin-top: 10px;
  color: var(--muted);
  line-height: 1.55;
}

.evidence-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 380px;
  gap: 18px;
}

.verify-panel pre {
  overflow-x: auto;
  margin: 18px 0;
  padding: 16px;
  border-radius: 6px;
  color: #d7e8f8;
  background: rgba(3, 9, 15, 0.82);
  border: 1px solid rgba(78, 163, 255, 0.2);
  line-height: 1.65;
}

.footer {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  padding: 28px 32px;
  color: var(--muted);
  border-top: 1px solid var(--line);
  background: #05080d;
}

@media (max-width: 980px) {
  .topbar {
    align-items: flex-start;
    flex-direction: column;
    gap: 12px;
    padding: 16px 20px;
  }

  nav {
    width: 100%;
    justify-content: space-between;
    gap: 12px;
    font-size: 13px;
  }

  .section-inner {
    width: min(100% - 32px, 720px);
  }

  .hero {
    min-height: auto;
  }

  .hero-map {
    width: 100%;
    opacity: 0.44;
  }

  .hero-grid,
  .benchmark-layout,
  .evidence-layout {
    grid-template-columns: 1fr;
  }

  .hero-grid {
    padding: 64px 0 40px;
    gap: 32px;
  }

  .hero-console {
    min-height: auto;
  }

  .agent-flow,
  .metric-grid,
  .evidence-grid {
    grid-template-columns: 1fr 1fr;
  }

  .agent-card:not(:last-child)::after {
    display: none;
  }
}

@media (max-width: 640px) {
  .section-heading {
    grid-template-columns: 1fr;
    align-items: start;
  }

  .hero-copy h1 {
    font-size: 52px;
  }

  .hero-copy p {
    margin-top: 16px;
    font-size: 15px;
  }

  .hero-actions {
    margin-top: 22px;
  }

  .hero-console {
    padding: 14px;
  }

  .hero-stats,
  .agent-flow,
  .metric-grid,
  .evidence-grid {
    grid-template-columns: 1fr;
  }

  .hero-stats {
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
  }

  .hero-stats div {
    padding: 10px;
  }

  .hero-stats dt {
    font-size: 10px;
  }

  .hero-stats dd {
    font-size: 17px;
  }

  .route-canvas {
    height: 128px;
  }

  .footer {
    flex-direction: column;
  }
}
