:root {
  --ink: #202b3d;
  --muted: #5f6b7a;
  --line: #e3e8ef;
  --paper: #ffffff;
  --soft: #f8fafc;
  --accent: #405d86;
  --accent-dark: #304969;
  --signal: #edf2f8;
  --max: 1120px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 88px;
}

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

a {
  color: inherit;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 64px;
  padding: 0 max(24px, calc((100vw - var(--max)) / 2));
  border-bottom: 1px solid rgba(220, 226, 232, .9);
  background: rgba(255, 255, 255, .94);
  backdrop-filter: blur(12px);
}

.brand {
  font-size: 15px;
  font-weight: 750;
  text-decoration: none;
}

.site-header nav {
  display: flex;
  gap: 28px;
}

.site-header nav a {
  color: var(--muted);
  font-size: 13px;
  font-weight: 650;
  text-decoration: none;
}

.site-header nav a:hover {
  color: var(--accent);
}

.hero {
  min-height: auto;
  text-align: center;
  display: flex;
  align-items: center;
  color: var(--ink);
  background: var(--paper);
  border-bottom: 1px solid var(--line);
}

.hero-inner {
  width: min(var(--max), calc(100% - 48px));
  margin: 0 auto;
  padding: 80px 0 68px;
}

.venue,
.eyebrow {
  margin: 0 0 14px;
  color: var(--accent);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .12em;
  text-transform: uppercase;
}

.hero .venue {
  color: var(--accent);
  display: inline-block;
  padding: 6px 14px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--soft);
  margin-bottom: 24px;
  font-size: 10px;
}

h1,
h2,
h3,
p {
  letter-spacing: 0;
}

h1 {
  max-width: 100%;
  margin: 0;
  font-size: clamp(28px, 6.4vw, 72px);
  letter-spacing: -.045em;
  white-space: nowrap;
  line-height: 1.12;
  font-weight: 750;
}

.subtitle {
  max-width: 100%;
  margin: 18px 0 0;
  color: #374151;
  font-size: clamp(20px, 2.6vw, 32px);
  line-height: 1.16;
  font-weight: 500;
}

.authors {
  max-width: 100%;
  margin: 26px 0 0;
  line-height: 1.9;
  color: var(--muted);
  font-size: 14px;
}

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

.button {
  display: inline-flex;
  align-items: center;
  min-height: 46px;
  justify-content: center;
  transition: background .18s, border-color .18s, transform .18s;
  padding: 0 22px;
  border: 1px solid var(--line);
  border-radius: 9px;
  color: #374151;
  background: var(--paper);
  font-size: 13px;
  font-weight: 750;
  text-decoration: none;
}

.button:hover {
  border-color: var(--accent);
  background: var(--soft);
}

.button.primary {
  border-color: var(--accent);
  color: #fff;
  background: var(--accent);
}

.lead {
  max-width: 100%;
  margin: 36px 0 0;
  padding: 24px 28px;
  background: var(--soft);
  border: 1px solid var(--line);
  border-radius: 14px;
  color: var(--muted);
  font-size: 18px;
  line-height: 1.65;
}

.section {
  width: min(var(--max), calc(100% - 48px));
  margin: 0 auto;
  padding: 80px 0;
}

.section.band {
  width: 100%;
  padding-right: max(24px, calc((100vw - var(--max)) / 2));
  padding-left: max(24px, calc((100vw - var(--max)) / 2));
  background: var(--soft);
}

.section-heading {
  max-width: 760px;
  margin-bottom: 32px;
}

h2 {
  margin: 0;
  font-size: clamp(28px, 3.2vw, 40px);
  letter-spacing: -.03em;
  line-height: 1.18;
  font-weight: 750;
}

.overview-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(320px, .75fr);
  gap: 56px;
}

.prose {
  color: #354153;
  font-size: 18px;
}

.prose p:first-child {
  margin-top: 0;
}

.facts {
  margin: 0;
  border-top: 1px solid var(--line);
}

.facts div {
  display: grid;
  grid-template-columns: 130px 1fr;
  gap: 20px;
  padding: 18px 0;
  border-bottom: 1px solid var(--line);
}

.facts dt {
  color: var(--muted);
  font-size: 12px;
  font-weight: 750;
  text-transform: uppercase;
}

.facts dd {
  margin: 0;
  font-weight: 650;
}

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

.task-grid article {
  min-height: 224px;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--paper);
  box-shadow: 0 4px 16px rgba(32, 43, 61, .025);
}

.task-grid article:last-child {
  border-right: 1px solid var(--line);
}

.task-index {
  color: var(--accent);
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 12px;
  font-weight: 750;
}

.task-grid h3 {
  margin: 30px 0 12px;
  font-size: 19px;
  line-height: 1.2;
}

.task-grid p {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
}

.demo-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  max-width: none;
  gap: 32px;
}

.demo-copy {
  max-width: 790px;
  margin: -18px 0 34px;
  color: var(--muted);
  font-size: 17px;
}

.text-link {
  flex: none;
  color: var(--accent);
  font-size: 14px;
  font-weight: 750;
  text-decoration: none;
}

.demo-preview {
  position: relative;
  display: block;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 16px;
  box-shadow: 0 16px 40px rgba(32, 43, 61, .08);
  background: #0a0d13;
}

.demo-preview img {
  display: block;
  width: 100%;
  height: auto;
  opacity: 1;
  transition: opacity .2s, transform .25s;
}

.demo-preview:hover img {
  opacity: 1;
  transform: scale(1.008);
}

.launch {
  position: absolute;
  right: 20px;
  bottom: 20px;
  padding: 12px 16px;
  color: var(--ink);
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 9px;
  font-size: 13px;
  font-weight: 800;
}

.finding-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
}

.finding-grid p {
  margin: 0;
  padding-top: 22px;
  border-top: 2px solid #c5d2e4;
  color: #354153;
  font-size: 18px;
  line-height: 1.7;
}

.citation-box {
  position: relative;
  overflow-x: auto;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: var(--soft);
}

.citation-box pre {
  margin: 0;
  padding: 28px 84px 28px 28px;
  color: #374151;
  font: 13px/1.7 ui-monospace, SFMono-Regular, Menlo, monospace;
}

.citation-box button {
  position: absolute;
  top: 16px;
  right: 16px;
  padding: 7px 12px;
  border: 1px solid var(--line);
  color: #374151;
  background: transparent;
  font: inherit;
  cursor: pointer;
}

.citation-box button:hover {
  border-color: var(--accent);
}

footer {
  display: flex;
  justify-content: space-between;
  gap: 30px;
  padding: 34px max(24px, calc((100vw - var(--max)) / 2));
  color: var(--muted);
  background: var(--soft);
  border-top: 1px solid var(--line);
  font-size: 12px;
}

footer p {
  margin: 0;
}

footer div {
  display: flex;
  gap: 20px;
}

footer a {
  color: var(--accent);
  font-weight: 700;
  text-decoration: none;
}

@media (max-width: 820px) {
  .site-header nav {
    display: none;
  }

  .hero {
    min-height: auto;
  }

  .hero-inner {
    padding: 64px 0 72px;
  }

  .overview-grid,
  .finding-grid {
    grid-template-columns: 1fr;
    gap: 42px;
  }

  .task-grid {
    grid-template-columns: 1fr 1fr;
  }

  .task-grid article:nth-child(2) {
    border-right: 1px solid var(--line);
  }

  .task-grid article:nth-child(-n+2) {
    border-bottom: 1px solid var(--line);
  }

  .demo-heading {
    display: block;
  }

  .demo-heading .text-link {
    display: inline-block;
    margin-top: 22px;
  }
}

@media (max-width: 540px) {
  .hero-inner,
  .section {
    width: min(100% - 32px, var(--max));
  }

  .section,
  .section.band {
    padding-top: 76px;
    padding-bottom: 76px;
  }

  h1 {
    font-size: clamp(24px, 6.4vw, 35px);
  }

  .subtitle {
    font-size: 24px;
  }

  .lead {
    font-size: 16px;
  }

  .task-grid {
    grid-template-columns: 1fr;
  }

  .task-grid article {
    min-height: 190px;
    border-right: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
  }

  .task-grid article:last-child {
    border-bottom: 1px solid var(--line);
  }

  .task-grid h3 {
    margin-top: 34px;
  }

  .launch {
    position: static;
    display: block;
  }

  footer {
    flex-direction: column;
  }
}

.button.primary:hover {
  background: var(--accent-dark);
  border-color: var(--accent-dark);
}

a:focus-visible, button:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 4px;
}

@media (max-width: 540px) {
  .hero-inner { padding: 48px 0; }
  .subtitle { font-size: 20px; line-height: 1.4; }
  .lead { padding: 20px; text-align: left; }
  .actions { display: grid; grid-template-columns: 1fr 1fr; }
  .overview-grid { gap: 28px; }
  .facts div { grid-template-columns: 100px 1fr; gap: 12px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
}

.findings .section-heading {
  max-width: none;
}

@media (min-width: 1100px) {
  .findings h2 {
    font-size: 38px;
    white-space: nowrap;
  }
}
