:root {
  --ink: #172332;
  --ink-soft: #536579;
  --paper: #ffffff;
  --paper-blue: #f4f8fc;
  --line: #dbe5ee;
  --blue: #214f7b;
  --blue-bright: #2c72a8;
  --violet: #7358b8;
  --green: #6e9f4a;
  --warm: #e56b43;
  --shadow-sm: 0 8px 24px rgb(27 56 83 / 8%);
  --shadow-md: 0 18px 55px rgb(24 57 88 / 14%);
  --radius: 18px;
  --radius-small: 12px;
  --max-width: 1180px;
  --reading-width: 850px;
}

* {
  box-sizing: border-box;
}

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

body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

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

a {
  color: inherit;
}

button {
  font: inherit;
}

.skip-link {
  position: fixed;
  z-index: 1000;
  top: 12px;
  left: 12px;
  padding: 10px 16px;
  border-radius: 8px;
  color: #fff;
  background: var(--blue);
  transform: translateY(-160%);
}

.skip-link:focus {
  transform: translateY(0);
}

.container {
  width: min(calc(100% - 40px), var(--max-width));
  margin: 0 auto;
}

.reading-width {
  width: min(calc(100% - 40px), var(--reading-width));
}

.site-header {
  position: sticky;
  z-index: 50;
  top: 0;
  border-bottom: 1px solid rgb(219 229 238 / 85%);
  background: rgb(255 255 255 / 88%);
  backdrop-filter: blur(18px);
}

.nav-shell {
  display: flex;
  width: min(calc(100% - 40px), var(--max-width));
  min-height: 66px;
  margin: 0 auto;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--ink);
  font-weight: 850;
  letter-spacing: -0.02em;
  text-decoration: none;
}

.brand-mark {
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  border-radius: 10px;
  color: #fff;
  background: linear-gradient(135deg, var(--blue-bright), var(--violet));
  box-shadow: 0 6px 16px rgb(44 114 168 / 22%);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 26px;
}

.nav-links a {
  color: var(--ink-soft);
  font-size: 0.93rem;
  font-weight: 650;
  text-decoration: none;
  transition: color 160ms ease;
}

.nav-links a:hover,
.nav-links a:focus-visible {
  color: var(--blue-bright);
}

.hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  padding: 92px 0 104px;
  background:
    linear-gradient(180deg, rgb(244 248 252 / 96%), rgb(255 255 255 / 100%)),
    radial-gradient(circle at 20% 20%, rgb(44 114 168 / 15%), transparent 38%);
}

.hero::after {
  position: absolute;
  z-index: -1;
  right: -10%;
  bottom: -95px;
  left: -10%;
  height: 180px;
  border-radius: 50%;
  background: #fff;
  content: "";
}

.hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
}

.hero-glow {
  position: absolute;
  z-index: -2;
  border-radius: 999px;
  filter: blur(2px);
  opacity: 0.36;
}

.hero-glow-one {
  top: 58px;
  left: -130px;
  width: 360px;
  height: 360px;
  background: radial-gradient(circle, rgb(44 114 168 / 32%), transparent 68%);
}

.hero-glow-two {
  top: 20px;
  right: -110px;
  width: 420px;
  height: 420px;
  background: radial-gradient(circle, rgb(115 88 184 / 24%), transparent 68%);
}

.eyebrow,
.section-kicker {
  margin: 0 0 12px;
  color: var(--blue-bright);
  font-size: 0.77rem;
  font-weight: 820;
  letter-spacing: 0.15em;
  text-transform: uppercase;
}

.hero h1 {
  max-width: 1080px;
  margin: 0 auto 26px;
  font-size: clamp(2.15rem, 5vw, 4.35rem);
  font-weight: 840;
  letter-spacing: -0.052em;
  line-height: 1.04;
  text-wrap: balance;
}

.title-acronym {
  color: var(--blue-bright);
}

.authors {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 5px 18px;
  margin: 0 auto 8px;
  font-size: clamp(1rem, 2vw, 1.18rem);
  font-weight: 700;
}

.authors sup,
.affiliations sup {
  color: var(--blue-bright);
  font-size: 0.68em;
}

.affiliations {
  display: flex;
  flex-wrap: wrap;
  max-width: 920px;
  margin: 0 auto 22px;
  justify-content: center;
  gap: 2px 17px;
  color: var(--ink-soft);
  font-size: 0.93rem;
}

.status-pill {
  display: inline-flex;
  margin: 0 auto 22px;
  padding: 8px 15px;
  align-items: center;
  gap: 9px;
  border: 1px solid #bfdbc4;
  border-radius: 999px;
  color: #35642f;
  background: #f3faf2;
  font-size: 0.9rem;
  font-weight: 750;
}

.status-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 0 4px rgb(110 159 74 / 14%);
}

.resource-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
}

.button {
  display: inline-flex;
  min-height: 46px;
  padding: 0 18px;
  align-items: center;
  justify-content: center;
  gap: 9px;
  border: 1px solid var(--line);
  border-radius: 12px;
  color: var(--ink);
  background: #fff;
  box-shadow: var(--shadow-sm);
  font-weight: 750;
  text-decoration: none;
  transition: transform 160ms ease, border-color 160ms ease, box-shadow 160ms ease;
}

.button svg,
.copy-button svg {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentcolor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.8;
}

.button[href*="github"] svg {
  fill: currentcolor;
  stroke: none;
}

.button:hover,
.button:focus-visible {
  border-color: #b8cce0;
  box-shadow: 0 13px 34px rgb(24 57 88 / 15%);
  transform: translateY(-2px);
}

.button-primary {
  border-color: transparent;
  color: #fff;
  background: linear-gradient(135deg, var(--blue), var(--blue-bright));
}

.section {
  padding: 92px 0;
}

.section-tight {
  padding: 0 0 78px;
}

.section-tint {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: var(--paper-blue);
}

.section-dark {
  color: #eef5fb;
  background:
    radial-gradient(circle at 12% 0, rgb(44 114 168 / 35%), transparent 32%),
    radial-gradient(circle at 100% 100%, rgb(115 88 184 / 26%), transparent 36%),
    #142434;
}

.teaser {
  position: relative;
  z-index: 4;
  margin-top: -46px;
}

.figure-card {
  margin: 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  box-shadow: var(--shadow-md);
}

.figure-card img {
  width: 100%;
  height: auto;
}

.figure-card figcaption,
.video-frame figcaption {
  padding: 15px 20px 17px;
  color: var(--ink-soft);
  border-top: 1px solid var(--line);
  background: #fff;
  font-size: 0.92rem;
  line-height: 1.55;
}

.overview-figure {
  max-width: 1120px;
  margin: 0 auto;
}

.section-heading {
  max-width: 900px;
  margin: 0 auto 42px;
  text-align: center;
}

.section-heading h2 {
  margin: 0;
  font-size: clamp(1.85rem, 4vw, 3rem);
  font-weight: 820;
  letter-spacing: -0.038em;
  line-height: 1.12;
  text-wrap: balance;
}

.section-lead {
  max-width: 780px;
  margin: 17px auto 0;
  color: var(--ink-soft);
  font-size: 1.08rem;
  line-height: 1.72;
}

.section-heading-light h2 {
  color: #fff;
}

.section-heading-light .section-lead {
  color: #bdcad6;
}

.section-heading-light .section-kicker {
  color: #86c9ee;
}

.abstract-copy {
  color: #40546a;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.13rem;
  line-height: 1.82;
}

.abstract-copy p {
  margin: 0 0 1.25em;
}

.abstract-copy p:last-child {
  margin-bottom: 0;
}

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

.feature-card,
.result-card {
  position: relative;
  overflow: hidden;
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  box-shadow: var(--shadow-sm);
}

.feature-card::before {
  position: absolute;
  top: 0;
  right: 0;
  left: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--blue-bright), var(--violet), var(--green));
  content: "";
}

.feature-index {
  display: block;
  margin-bottom: 32px;
  color: var(--blue-bright);
  font-size: 0.78rem;
  font-weight: 850;
  letter-spacing: 0.12em;
}

.feature-card h3,
.video-feature-copy h3 {
  margin: 0 0 11px;
  font-size: 1.27rem;
  letter-spacing: -0.02em;
  line-height: 1.25;
}

.feature-card p,
.result-card p,
.video-feature-copy p {
  margin: 0;
  color: var(--ink-soft);
}

.pipeline-figure {
  max-width: 1100px;
  margin: 34px auto 0;
}

.result-grid {
  margin-bottom: 68px;
}

.result-card {
  min-height: 235px;
}

.result-card strong {
  display: block;
  margin-bottom: 2px;
  color: var(--blue);
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 850;
  letter-spacing: -0.05em;
  line-height: 1.05;
}

.result-card > span {
  display: block;
  margin-bottom: 22px;
  color: var(--blue-bright);
  font-size: 0.78rem;
  font-weight: 850;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.result-card-accent {
  color: #fff;
  border-color: transparent;
  background: linear-gradient(145deg, var(--blue), #2e6d9c);
}

.result-card-accent strong,
.result-card-accent > span,
.result-card-accent p {
  color: #fff;
}

.result-card-accent p {
  opacity: 0.83;
}

.video-feature {
  display: grid;
  grid-template-columns: minmax(230px, 0.7fr) minmax(0, 1.5fr);
  align-items: center;
  gap: 44px;
}

.video-feature-copy .section-kicker {
  margin-bottom: 10px;
}

.video-feature-copy h3 {
  font-size: clamp(1.55rem, 3vw, 2.25rem);
}

.video-frame {
  margin: 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #0d151e;
  box-shadow: var(--shadow-md);
}

.video-frame video {
  width: 100%;
  aspect-ratio: 8 / 3;
  background: #0d151e;
}

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

.video-card {
  margin: 0;
  overflow: hidden;
  border: 1px solid rgb(255 255 255 / 12%);
  border-radius: var(--radius);
  background: rgb(255 255 255 / 6%);
  box-shadow: 0 18px 50px rgb(0 0 0 / 18%);
}

.video-card video {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: contain;
  background: #080d12;
}

.video-card figcaption {
  display: flex;
  padding: 15px 18px 17px;
  align-items: center;
  justify-content: space-between;
  gap: 15px;
  font-size: 0.94rem;
}

.video-card figcaption strong {
  color: #fff;
  font-size: 1rem;
}

.video-card figcaption span {
  color: #aebdca;
  font-size: 0.83rem;
}

.video-card-light {
  border-color: var(--line);
  background: #fff;
  box-shadow: var(--shadow-sm);
}

.video-card-light figcaption strong {
  color: var(--ink);
}

.video-card-light figcaption span {
  color: var(--ink-soft);
}

.robot-grid .video-card video {
  aspect-ratio: 8 / 3;
}

.citation-box {
  position: relative;
  overflow: hidden;
  border: 1px solid #cbd9e6;
  border-radius: var(--radius);
  background: #17283a;
  box-shadow: var(--shadow-md);
}

.citation-box pre {
  margin: 0;
  padding: 34px 30px;
  overflow-x: auto;
  color: #dbe9f4;
  font-family: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
  font-size: 0.87rem;
  line-height: 1.65;
  white-space: pre;
}

.copy-button {
  position: absolute;
  z-index: 2;
  top: 14px;
  right: 14px;
  display: inline-flex;
  padding: 8px 11px;
  align-items: center;
  gap: 7px;
  border: 1px solid rgb(255 255 255 / 14%);
  border-radius: 9px;
  color: #dce9f3;
  background: rgb(255 255 255 / 9%);
  cursor: pointer;
}

.copy-button:hover,
.copy-button:focus-visible {
  background: rgb(255 255 255 / 15%);
}

.copy-button svg {
  width: 17px;
  height: 17px;
}

.footer {
  padding: 38px 0;
  border-top: 1px solid var(--line);
  color: var(--ink-soft);
  background: #fff;
  font-size: 0.88rem;
}

.footer-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
}

.footer p {
  margin: 2px 0 0;
}

.footer a {
  color: var(--blue-bright);
}

.scroll-top {
  position: fixed;
  z-index: 45;
  right: 22px;
  bottom: 22px;
  display: grid;
  width: 44px;
  height: 44px;
  place-items: center;
  border: 1px solid #c9d7e4;
  border-radius: 50%;
  color: var(--blue);
  background: rgb(255 255 255 / 92%);
  box-shadow: var(--shadow-md);
  cursor: pointer;
  opacity: 0;
  pointer-events: none;
  transform: translateY(12px);
  transition: opacity 180ms ease, transform 180ms ease;
}

.scroll-top.visible {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

.scroll-top svg {
  width: 21px;
  height: 21px;
  fill: none;
  stroke: currentcolor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2;
}

:focus-visible {
  outline: 3px solid rgb(44 114 168 / 45%);
  outline-offset: 3px;
}

@media (max-width: 900px) {
  .nav-links {
    gap: 17px;
  }

  .nav-links a:nth-child(2),
  .nav-links a:nth-child(3) {
    display: none;
  }

  .hero {
    padding: 72px 0 90px;
  }

  .feature-grid,
  .result-grid {
    grid-template-columns: 1fr;
  }

  .feature-card,
  .result-card {
    min-height: 0;
  }

  .feature-index {
    margin-bottom: 18px;
  }

  .video-feature {
    grid-template-columns: 1fr;
    gap: 24px;
  }
}

@media (max-width: 680px) {
  .container,
  .reading-width,
  .nav-shell {
    width: min(calc(100% - 28px), var(--max-width));
  }

  .nav-shell {
    min-height: 60px;
  }

  .nav-links {
    gap: 13px;
  }

  .nav-links a {
    font-size: 0.84rem;
  }

  .nav-links a:nth-child(4) {
    display: none;
  }

  .hero {
    padding-top: 56px;
  }

  .hero h1 {
    font-size: clamp(2rem, 10.5vw, 3.05rem);
  }

  .affiliations {
    display: block;
  }

  .affiliations span {
    display: block;
  }

  .section {
    padding: 70px 0;
  }

  .section-tight {
    padding-bottom: 60px;
  }

  .teaser {
    margin-top: -34px;
  }

  .figure-card,
  .video-card,
  .citation-box,
  .feature-card,
  .result-card {
    border-radius: 14px;
  }

  .abstract-copy {
    font-size: 1.04rem;
  }

  .baseline-grid,
  .robot-grid {
    grid-template-columns: 1fr;
  }

  .video-card figcaption {
    align-items: flex-start;
    flex-direction: column;
    gap: 2px;
  }

  .citation-box pre {
    padding: 70px 20px 26px;
    font-size: 0.77rem;
  }

  .footer-content {
    align-items: flex-start;
    flex-direction: column;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }
}
