:root {
  --ink: #182231;
  --muted: #5e6875;
  --line: #d9e0e8;
  --paper: #ffffff;
  --wash: #f3f6f8;
  --blue: #2364aa;
  --green: #24886f;
  --gold: #b97924;
  --shadow: 0 12px 28px rgba(29, 42, 59, 0.08);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
  line-height: 1.58;
}
img, video { max-width: 100%; }
a { color: inherit; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 12px clamp(18px, 4vw, 48px);
  background: rgba(255, 255, 255, 0.92);
  border-bottom: 1px solid rgba(217, 224, 232, 0.84);
  backdrop-filter: blur(12px);
}

.brand {
  font-weight: 800;
  text-decoration: none;
}

.nav-links {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 700;
}

.nav-links a { text-decoration: none; }
.nav-links a:hover { color: var(--blue); }

.section, .section-band { padding: clamp(34px, 5vw, 58px) 0; }
.section-band { background: var(--wash); }
.container { width: min(1180px, calc(100% - 36px)); margin: 0 auto; }
.narrow { width: min(880px, calc(100% - 36px)); }

.hero {
  padding-top: clamp(32px, 5vw, 54px);
  padding-bottom: clamp(34px, 5vw, 56px);
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(420px, 1.05fr);
  gap: clamp(24px, 4vw, 46px);
  align-items: center;
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--blue);
  font-size: 13px;
  font-weight: 850;
  letter-spacing: 0;
  text-transform: uppercase;
}

h1, h2, h3, h4, p { overflow-wrap: normal; }
h1 {
  max-width: 820px;
  margin: 0;
  font-size: clamp(31px, 4.2vw, 50px);
  line-height: 1.08;
  letter-spacing: 0;
}
h2 { margin: 0 0 16px; font-size: clamp(28px, 3.4vw, 42px); line-height: 1.18; letter-spacing: 0; }
h3 { margin: 0 0 10px; font-size: 21px; line-height: 1.25; }
h4 { margin: 12px 14px 14px; font-size: 16px; line-height: 1.35; }

.venue { margin: 20px 0 0; color: var(--muted); font-size: 20px; }
.action-row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 20px; }

.button, .copy-button {
  display: inline-flex;
  min-height: 40px;
  align-items: center;
  justify-content: center;
  gap: 9px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--paper);
  color: var(--ink);
  font: inherit;
  font-size: 14px;
  font-weight: 800;
  line-height: 1;
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.18s ease, border-color 0.18s ease, background 0.18s ease;
}
.button { padding: 0 18px; }
.copy-button { min-height: 36px; padding: 0 13px; }
.button svg, .copy-button svg, .paper-card svg { width: 18px; height: 18px; stroke-width: 2.25; }
.button.primary { border-color: var(--blue); background: var(--blue); color: var(--paper); }
.button:hover, .copy-button:hover { transform: translateY(-1px); border-color: var(--blue); }

.hero-figure, .wide-figure, .image-grid figure { margin: 0; }
.hero-figure, .wide-figure {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--paper);
  box-shadow: var(--shadow);
}
.hero-figure img, .wide-figure img {
  display: block;
  width: 100%;
  background: var(--paper);
  object-fit: contain;
}
.hero-figure img { max-height: 500px; }
.hero-figure figcaption {
  padding: 10px 14px 12px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 14px;
}

.summary-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}
.quick-summary { padding: clamp(24px, 3vw, 38px) 0; }
.summary-item, .paper-card, .task-card, .result-panel, .result-column, .video-card {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--paper);
  box-shadow: var(--shadow);
}
.summary-item {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  min-height: 102px;
  gap: 14px;
  padding: 18px 20px;
}
.metric {
  display: block;
  color: var(--green);
  font-size: clamp(34px, 4vw, 48px);
  font-weight: 900;
  line-height: 0.95;
  white-space: nowrap;
}
.metric-caption {
  display: block;
  color: var(--muted);
  font-size: 15px;
  font-weight: 800;
  line-height: 1.35;
  overflow-wrap: normal;
}

.narrow p { margin: 0 0 16px; color: #303b48; font-size: 18px; }
.section-heading { max-width: none; margin-bottom: 20px; }
.section-heading p { margin: 0; color: var(--muted); font-size: 18px; }

.card-grid { display: grid; gap: 14px; }
.card-grid.four { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.card-grid.three { grid-template-columns: repeat(3, minmax(0, 1fr)); margin-top: 18px; }
.paper-card { padding: 18px; }
.paper-card svg { width: 28px; height: 28px; margin-bottom: 16px; color: var(--blue); }
.paper-card:nth-child(2n) svg { color: var(--green); }
.paper-card:nth-child(3n) svg { color: var(--gold); }
.paper-card p { margin: 0; color: var(--muted); font-size: 15px; }
.paper-card.compact p { font-size: 16px; }

.wide-figure { margin-bottom: 18px; }
.wide-figure img { padding: clamp(12px, 2vw, 22px); }

.pipeline {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 12px;
}
.pipeline article {
  min-height: 100%;
  padding: 15px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}
.pipeline span {
  display: grid;
  width: 34px;
  height: 34px;
  margin-bottom: 12px;
  place-items: center;
  border-radius: 50%;
  background: var(--ink);
  color: var(--paper);
  font-weight: 900;
}
.pipeline p { margin: 0; color: var(--muted); font-size: 14px; }

.memory-columns {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}
.memory-column { display: grid; gap: 16px; }
.task-card { overflow: hidden; }
.task-card img {
  display: block;
  width: 100%;
  height: 210px;
  background: #fff;
  object-fit: cover;
  object-position: center;
}
.task-card h3, .task-card p { margin-left: 15px; margin-right: 15px; }
.task-card h3 { margin-top: 8px; font-size: 19px; }
.task-card p { margin-bottom: 16px; color: var(--muted); font-size: 13px; line-height: 1.5; }
.task-card .task-domain {
  display: inline-block;
  margin-top: 13px;
  margin-bottom: 0;
  color: var(--blue);
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.results-columns {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  align-items: stretch;
  gap: 14px;
}
.result-column {
  display: flex;
  min-height: 100%;
  flex-direction: column;
  gap: 14px;
  padding: 16px;
}
.result-column h3 { min-height: 30px; }
.bar-chart { display: grid; gap: 9px; }
.bar-row {
  display: grid;
  grid-template-columns: minmax(92px, 122px) minmax(70px, 1fr) 40px;
  gap: 10px;
  align-items: center;
  color: var(--muted);
  font-size: 12px;
  font-weight: 750;
}
.bar-row div { height: 11px; overflow: hidden; border-radius: 999px; background: #e5eaf0; }
.bar-row b { display: block; height: 100%; border-radius: inherit; background: var(--blue); }
.bar-row.accent b { background: linear-gradient(90deg, var(--green), var(--gold)); }
.bar-row em { color: var(--ink); font-style: normal; text-align: right; }

table { width: 100%; border-collapse: collapse; font-size: 13px; }
th, td { padding: 8px 10px; border-top: 1px solid var(--line); text-align: right; }
th:first-child, td:first-child { text-align: left; }
thead th { color: var(--muted); font-size: 12px; text-transform: uppercase; }
.highlight-row { background: #edf7f3; font-weight: 850; }
.mini-result-table {
  min-width: 0;
  margin-top: 4px;
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: hidden;
  font-size: 12px;
}
.mini-result-table th, .mini-result-table td { padding: 7px 8px; }
.mini-result-table th { white-space: nowrap; }

.subsection-title { margin: 24px 0 12px; font-size: 24px; }
.video-grid { display: grid; gap: 18px; }
.video-grid.three { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.video-card { overflow: hidden; }
.video-card video {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #101820;
  object-fit: contain;
}

.code-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 12px 14px;
  border: 1px solid #26364c;
  border-bottom: 0;
  border-radius: 8px 8px 0 0;
  background: #111b29;
  color: #dce6ef;
  font-size: 14px;
  font-weight: 800;
}
pre {
  margin: 0;
  overflow-x: auto;
  padding: 20px;
  border-radius: 0 0 8px 8px;
  background: #142033;
  color: #edf4fa;
  font-size: 14px;
  line-height: 1.6;
}

.site-footer {
  padding: 24px 0;
  border-top: 1px solid var(--line);
  background: #fff;
  color: var(--muted);
  font-size: 14px;
}
.footer-grid { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; }
.site-footer p { margin: 0; }

@media (max-width: 1050px) {
  .hero-grid,
  .card-grid.four,
  .pipeline,
  .memory-columns,
  .results-columns,
  .video-grid.three {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .hero-grid { align-items: start; }
}

@media (max-width: 720px) {
  .site-header { position: static; align-items: flex-start; flex-direction: column; }
  .nav-links { gap: 12px 16px; }
  .hero-grid,
  .summary-grid,
  .card-grid.four,
  .card-grid.three,
  .pipeline,
  .memory-columns,
  .results-columns,
  .video-grid.three {
    grid-template-columns: 1fr;
  }
  .bar-row { grid-template-columns: minmax(78px, 116px) minmax(80px, 1fr) 40px; }
  .summary-item { gap: 14px; padding: 16px 18px; }
  .metric-caption { font-size: 15px; }
  .button { width: calc(50% - 6px); padding-left: 12px; padding-right: 12px; }
  .footer-grid { display: block; }
}
