:root {
  --paper: #f8f7f3;
  --white: #ffffff;
  --ink: #18181b;
  --muted: #5f6068;
  --line: rgba(24, 24, 27, 0.12);
  --indigo: #4338ca;
  --indigo-soft: #eef2ff;
  --dark: #18181b;
  --max-width: 1120px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

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

::selection {
  background: #c7d2fe;
  color: #1e1b4b;
}

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

img {
  display: block;
  width: 100%;
  height: auto;
  max-width: 100%;
  object-fit: contain;
}

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

.nav {
  position: sticky;
  top: 0;
  z-index: 10;
  border-bottom: 1px solid var(--line);
  background: rgba(248, 247, 243, 0.9);
  backdrop-filter: blur(14px);
}

.nav-inner {
  display: flex;
  min-height: 64px;
  align-items: center;
  justify-content: space-between;
}

.brand {
  font-weight: 700;
  letter-spacing: -0.02em;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 28px;
  color: var(--muted);
  font-size: 14px;
}

.nav-links a:hover,
.nav-code {
  color: var(--ink);
}

.nav-code {
  font-weight: 600;
}

.hero {
  padding-block: 112px 96px;
}

.hero-copy {
  max-width: 930px;
  margin-inline: auto;
  text-align: center;
}

.badge {
  display: inline-flex;
  margin: 0 0 24px;
  padding: 6px 14px;
  border: 1px solid #c7d2fe;
  border-radius: 999px;
  background: var(--indigo-soft);
  color: #3730a3;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
}

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

h1 {
  margin-bottom: 0;
  font-size: clamp(42px, 6.4vw, 74px);
  line-height: 1.08;
  letter-spacing: -0.045em;
}

h1 span {
  color: var(--indigo);
}

h2 {
  margin-bottom: 0;
  font-size: clamp(34px, 4.5vw, 52px);
  line-height: 1.12;
  letter-spacing: -0.035em;
}

h3 {
  margin-bottom: 0;
  font-size: 20px;
  line-height: 1.3;
  letter-spacing: -0.015em;
}

.lead {
  max-width: 800px;
  margin: 28px auto 0;
  color: var(--muted);
  font-size: clamp(18px, 2vw, 21px);
  line-height: 1.55;
}

.authors {
  margin: 34px auto 0;
  font-size: 16px;
}

.authors i {
  padding-inline: 7px;
  color: #a1a1aa;
  font-style: normal;
}

.affiliations {
  max-width: 820px;
  margin: 12px auto 0;
  color: var(--muted);
  font-size: 14px;
}

.corresponding {
  margin: 6px auto 0;
  color: #71717a;
  font-size: 12px;
}

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

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 112px;
  padding: 10px 20px;
  border: 1px solid #d4d4d8;
  border-radius: 999px;
  background: var(--white);
  font-size: 14px;
  font-weight: 600;
  transition: 160ms ease;
}

.button:hover {
  border-color: #71717a;
  transform: translateY(-1px);
}

.button-primary {
  border-color: var(--ink);
  background: var(--ink);
  color: var(--white);
}

.button-primary:hover {
  background: #27272a;
}

.paper-figure {
  overflow: hidden;
  margin: 64px 0 0;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--white);
  box-shadow: 0 24px 70px rgba(24, 24, 27, 0.07);
}

.paper-figure figcaption {
  padding: 16px 8px 0;
  color: #71717a;
  text-align: center;
  font-size: 14px;
}

.overview {
  border-block: 1px solid var(--line);
  background: var(--white);
}

.split {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: 80px;
  padding-block: 96px;
}

.kicker {
  margin-bottom: 12px;
  color: var(--indigo);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.prose {
  color: var(--muted);
  font-size: 18px;
  line-height: 1.75;
}

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

.section {
  padding-block: 112px;
}

.section-intro {
  max-width: 760px;
}

.section-intro > p:last-child {
  margin: 20px 0 0;
  color: var(--muted);
  font-size: 18px;
}

.method-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1px;
  overflow: hidden;
  margin-top: 48px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: #d4d4d8;
}

.method-grid article {
  min-height: 240px;
  padding: 36px;
  background: var(--white);
}

.method-grid article > p:last-child {
  margin: 12px 0 0;
  color: var(--muted);
}

.step {
  margin-bottom: 54px;
  color: var(--indigo);
  font-family: ui-monospace, "SFMono-Regular", Consolas, monospace;
  font-size: 13px;
}

.method-figure {
  margin-top: 56px;
  box-shadow: none;
}

.results {
  border-block: 1px solid rgba(255, 255, 255, 0.12);
  background: var(--dark);
  color: var(--white);
}

.results .section {
  padding-block: 104px;
}

.results-intro {
  padding-block: 0;
}

.results .kicker {
  color: #a5b4fc;
}

.results .prose {
  color: #d4d4d8;
}

.result-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  overflow: hidden;
  margin-top: 56px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.16);
}

.result-grid article {
  padding: 34px;
  background: var(--dark);
}

.result-grid article > p:last-child {
  margin: 12px 0 0;
  color: #a1a1aa;
  font-size: 14px;
}

.result-number {
  margin-bottom: 8px;
  color: #a5b4fc;
  font-size: 52px;
  font-weight: 700;
  line-height: 1;
  letter-spacing: -0.04em;
}

.horizon-card {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  align-items: center;
  gap: 40px;
  margin: 56px 0 0;
  padding: 36px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.04);
}

.horizon-card h3 {
  margin-top: 8px;
  font-size: 28px;
}

.horizon-card figcaption > p:last-child {
  margin: 16px 0 0;
  color: #a1a1aa;
}

.horizon-image {
  padding: 16px;
  border-radius: 12px;
  background: var(--white);
}

.open-source {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 48px;
  padding: 48px;
  border: 1px solid #c7d2fe;
  border-radius: 24px;
  background: var(--indigo-soft);
}

.open-source h2 {
  font-size: clamp(30px, 4vw, 42px);
}

.open-source > div:first-child > p:last-child {
  max-width: 700px;
  margin: 14px 0 0;
  color: var(--muted);
  font-size: 17px;
}

.open-source .actions {
  justify-content: flex-end;
  margin-top: 0;
}

footer {
  border-top: 1px solid var(--line);
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  padding-block: 28px;
  color: #71717a;
  font-size: 13px;
}

.footer-inner p {
  margin: 0;
}

@media (max-width: 800px) {
  .hero {
    padding-block: 80px 64px;
  }

  .split,
  .horizon-card,
  .open-source {
    grid-template-columns: 1fr;
  }

  .split {
    gap: 28px;
    padding-block: 76px;
  }

  .section,
  .results .section {
    padding-block: 80px;
  }

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

  .method-grid article {
    min-height: 0;
  }

  .step {
    margin-bottom: 36px;
  }

  .paper-figure {
    margin-top: 44px;
    padding: 12px;
  }

  .horizon-card {
    gap: 28px;
    padding: 24px;
  }

  .open-source {
    padding: 32px 24px;
  }

  .open-source .actions {
    justify-content: flex-start;
  }

  .footer-inner {
    flex-direction: column;
  }
}

@media (max-width: 560px) {
  .nav-links a:not(.nav-code) {
    display: none;
  }

  h1 {
    font-size: 40px;
  }

  .authors {
    line-height: 1.9;
  }

  .method-grid article,
  .result-grid article {
    padding: 28px;
  }
}
