:root {
  --font-geist-sans: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --font-geist-mono: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
  --font-display: "Palatino Linotype", Palatino, "Book Antiqua", Georgia, serif;
  --ink: #f5f7fb;
  --muted: #a7afc2;
  --muted-strong: #cbd1df;
  --night: #05070d;
  --night-soft: #090d17;
  --panel: #0c111d;
  --line: rgba(185, 198, 225, 0.16);
  --blue: #70a9ff;
  --blue-bright: #a5c8ff;
  --violet: #8d7dff;
  --warm: #ffb36b;
  --max-width: 1180px;
}

* {
  box-sizing: border-box;
}

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

body {
  margin: 0;
  background: var(--night);
  color: var(--ink);
  font-family: var(--font-geist-sans), Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
}

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

button,
a {
  -webkit-tap-highlight-color: transparent;
}

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

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

.site-header {
  position: fixed;
  z-index: 20;
  top: 0;
  left: 0;
  right: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 72px;
  padding: 0 4vw;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(5, 7, 13, 0.78);
  backdrop-filter: blur(18px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  font-size: 15px;
  font-weight: 680;
  letter-spacing: -0.02em;
}

.brand-mark {
  position: relative;
  display: inline-grid;
  width: 27px;
  height: 27px;
  place-items: center;
  border: 1px solid rgba(112, 169, 255, 0.7);
  border-radius: 50%;
  transform: rotate(-22deg);
}

.brand-mark::before {
  position: absolute;
  width: 35px;
  height: 11px;
  border: 1px solid rgba(141, 125, 255, 0.7);
  border-radius: 50%;
  content: "";
}

.brand-mark span {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--blue-bright);
  box-shadow: 0 0 12px rgba(112, 169, 255, 0.9);
}

nav {
  display: flex;
  gap: clamp(18px, 2.4vw, 34px);
  color: var(--muted-strong);
  font-size: 15px;
  font-weight: 650;
  letter-spacing: 0.01em;
}

nav a {
  transition: color 160ms ease;
}

nav a:hover {
  color: white;
}

.hero {
  position: relative;
  display: grid;
  min-height: 100svh;
  overflow: hidden;
  place-items: center;
  padding: 132px 4vw 108px;
  isolation: isolate;
  background:
    radial-gradient(circle at 50% 32%, rgba(56, 92, 165, 0.2), transparent 37%),
    radial-gradient(circle at 15% 78%, rgba(88, 63, 157, 0.13), transparent 28%),
    linear-gradient(180deg, #05070d 0%, #070a12 72%, #05070d 100%);
}

.hero::before {
  position: absolute;
  z-index: -1;
  width: min(72vw, 860px);
  aspect-ratio: 1;
  border: 1px solid rgba(128, 166, 236, 0.12);
  border-radius: 50%;
  box-shadow:
    0 0 0 92px rgba(128, 166, 236, 0.025),
    0 0 0 184px rgba(128, 166, 236, 0.018);
  content: "";
  transform: translate(30%, -27%);
}

.star-field,
.star-field::before,
.star-field::after {
  position: absolute;
  inset: 0;
  z-index: -2;
  content: "";
  opacity: 0.7;
  background-image:
    radial-gradient(circle, rgba(255, 255, 255, 0.7) 0 1px, transparent 1.3px),
    radial-gradient(circle, rgba(152, 187, 255, 0.58) 0 1px, transparent 1.4px);
  background-position: 0 0, 46px 71px;
  background-size: 139px 157px, 211px 193px;
  mask-image: linear-gradient(to bottom, black, transparent 88%);
}

.star-field::before {
  inset: 10% 4% 18% 36%;
  opacity: 0.45;
  background-position: 22px 12px, 71px 38px;
  background-size: 97px 113px, 183px 163px;
}

.hero-inner {
  display: grid;
  width: min(100%, 1480px);
  align-items: center;
  grid-template-columns: minmax(0, 1.12fr) minmax(390px, 0.78fr);
  gap: clamp(42px, 5vw, 82px);
  text-align: left;
}

.hero-copy {
  min-width: 0;
}

.eyebrow,
.section-index {
  margin: 0 0 22px;
  color: var(--blue);
  font-family: var(--font-geist-mono), monospace;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

h1 {
  max-width: 980px;
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(64px, 6.4vw, 104px);
  font-weight: 700;
  letter-spacing: -0.065em;
  line-height: 0.9;
  text-wrap: balance;
}

h1 > span {
  display: block;
  max-width: 880px;
  margin: 27px 0 0;
  color: var(--muted-strong);
  font-size: clamp(25px, 2.55vw, 40px);
  font-weight: 600;
  letter-spacing: -0.025em;
  line-height: 1.12;
}

.authors {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: flex-start;
  gap: 10px 24px;
  margin-top: 35px;
  color: var(--ink);
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 600;
  letter-spacing: 0.01em;
  line-height: 1;
}

.authors > span {
  display: inline-flex;
  align-items: baseline;
  white-space: nowrap;
}

.author-link {
  border-bottom: 1px solid rgba(255, 255, 255, 0.28);
  transition: border-color 160ms ease, color 160ms ease;
}

.author-link:hover {
  border-color: var(--blue-bright);
  color: var(--blue-bright);
}

.authors sup {
  position: relative;
  top: -0.55em;
  margin-left: 2px;
  color: var(--blue-bright);
  font-size: 0.52em;
  line-height: 0;
  vertical-align: baseline;
}

.affiliation {
  display: flex;
  max-width: 980px;
  flex-direction: column;
  align-items: flex-start;
  gap: 4px;
  margin: 13px 0 0;
  color: #8d98af;
  font-family: var(--font-display);
  font-size: 17px;
  font-weight: 600;
  letter-spacing: 0.015em;
  line-height: 1.4;
}

.affiliation-line {
  display: block;
}

.affiliation sup {
  margin-right: 6px;
  color: var(--blue-bright);
  font-family: var(--font-geist-mono), monospace;
  font-size: 0.62em;
  font-weight: 700;
  line-height: 0;
  vertical-align: super;
}

.hero-summary {
  max-width: 720px;
  margin: 28px 0 0;
  color: var(--muted);
  font-size: clamp(16px, 1.7vw, 19px);
  line-height: 1.65;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-start;
  gap: 10px;
  margin-top: 30px;
}

.button {
  display: inline-flex;
  min-width: 160px;
  height: 50px;
  align-items: center;
  justify-content: center;
  gap: 10px;
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.035);
  color: var(--muted-strong);
  font-size: 14px;
  font-weight: 620;
  transition:
    border-color 160ms ease,
    background 160ms ease,
    color 160ms ease,
    transform 160ms ease;
}

.button:hover {
  border-color: rgba(112, 169, 255, 0.6);
  background: rgba(112, 169, 255, 0.08);
  color: white;
  transform: translateY(-2px);
}

.button.primary {
  border-color: rgba(112, 169, 255, 0.72);
  background: var(--blue-bright);
  color: #07101e;
}

.button.primary:hover {
  background: white;
}

.button-icon {
  width: 20px;
  height: 20px;
  flex: 0 0 20px;
  object-fit: contain;
}

.hero-overview {
  margin: 0;
  overflow: hidden;
  padding: 10px;
  border: 1px solid rgba(196, 210, 238, 0.2);
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.97);
  box-shadow:
    0 34px 90px rgba(0, 0, 0, 0.42),
    0 0 0 1px rgba(112, 169, 255, 0.05);
}

.hero-overview img {
  width: 100%;
  height: auto;
  border-radius: 13px;
}

.scroll-cue {
  position: absolute;
  bottom: 28px;
  left: 50%;
  display: flex;
  align-items: center;
  gap: 8px;
  color: #70798c;
  font-family: var(--font-geist-mono), monospace;
  font-size: 10px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  transform: translateX(-50%);
}

.content-section {
  width: min(calc(100% - 48px), var(--max-width));
  margin: 0 auto;
  padding: 128px 0;
  border-top: 1px solid var(--line);
}

.section-heading {
  max-width: 730px;
  margin-bottom: 48px;
}

.demo-section .section-heading {
  max-width: 100%;
}

.demo-section .section-heading h2 {
  white-space: nowrap;
}

.section-heading h2 {
  margin: 0;
  font-size: clamp(38px, 5vw, 68px);
  font-weight: 510;
  letter-spacing: -0.06em;
  line-height: 1;
  text-wrap: balance;
}

.section-heading > p:last-child,
.split-heading > p {
  margin: 24px 0 0;
  color: var(--muted);
  font-size: 16px;
  line-height: 1.75;
}

.split-heading {
  display: grid;
  max-width: none;
  align-items: end;
  grid-template-columns: minmax(0, 1.1fr) minmax(320px, 0.72fr);
  gap: 60px;
}

.split-heading > p {
  margin: 0;
}

.media-frame {
  margin: 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: #090d15;
  box-shadow: 0 30px 90px rgba(0, 0, 0, 0.3);
}

.demo-frame {
  padding: clamp(8px, 1.4vw, 16px);
}

.demo-frame img {
  width: 100%;
  border-radius: 11px;
  image-rendering: auto;
}

figcaption {
  padding: 16px 7px 3px;
  color: #788297;
  font-size: 12px;
  line-height: 1.55;
}

.dataset-section {
  width: min(calc(100% - 48px), 1320px);
}

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

.dataset-card {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: linear-gradient(155deg, rgba(18, 25, 40, 0.88), rgba(10, 14, 24, 0.9));
}

.card-image {
  position: relative;
  overflow: hidden;
  aspect-ratio: 1;
  background: black;
}

.card-image::after {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(4, 6, 11, 0.62), transparent 35%);
  content: "";
  pointer-events: none;
}

.card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 600ms cubic-bezier(0.2, 0.7, 0.2, 1);
}

.dataset-card:hover .card-image img {
  transform: scale(1.025);
}

.card-number {
  position: absolute;
  z-index: 1;
  top: 14px;
  right: 14px;
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 50%;
  background: rgba(7, 9, 14, 0.65);
  color: #bcc5d5;
  font-family: var(--font-geist-mono), monospace;
  font-size: 10px;
  backdrop-filter: blur(8px);
}

.card-copy {
  padding: 23px 24px 27px;
}

.card-copy > div {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}

.card-copy h3 {
  margin: 0;
  font-size: 24px;
  font-weight: 540;
  letter-spacing: -0.04em;
}

.tag {
  padding: 6px 9px;
  border: 1px solid rgba(112, 169, 255, 0.2);
  border-radius: 999px;
  color: var(--blue-bright);
  font-family: var(--font-geist-mono), monospace;
  font-size: 9px;
  text-transform: uppercase;
}

.card-copy p {
  min-height: 66px;
  margin: 17px 0 0;
  color: #8d97aa;
  font-size: 13px;
  line-height: 1.65;
}

.figure-frame {
  padding: clamp(10px, 1.6vw, 20px);
  background: #f4f5f8;
}

.figure-frame img {
  width: 100%;
  border-radius: 8px;
}

.figure-frame figcaption {
  color: #596174;
}

.result-section {
  width: min(calc(100% - 48px), 1280px);
}

.result-highlight {
  display: grid;
  align-items: end;
  margin: 72px 0 50px;
  grid-template-columns: auto 1fr auto;
  gap: 30px;
}

.result-highlight > div:not(.comparison-line) {
  display: flex;
  flex-direction: column;
}

.result-highlight span {
  color: var(--muted);
  font-size: 12px;
}

.result-highlight strong {
  margin-top: 7px;
  font-size: clamp(46px, 7vw, 84px);
  font-weight: 510;
  letter-spacing: -0.07em;
  line-height: 0.9;
}

.result-highlight .baseline {
  align-items: flex-end;
}

.result-highlight .baseline strong {
  color: #7b8495;
}

.comparison-line {
  position: relative;
  height: 1px;
  margin-bottom: 8px;
  background: linear-gradient(90deg, var(--blue), rgba(119, 127, 144, 0.4));
}

.comparison-line span {
  position: absolute;
  top: -3px;
  right: 0;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #7b8495;
}

.result-figure {
  margin-top: 0;
}

.citation-section {
  padding: 128px 24px;
  border-top: 1px solid var(--line);
  background:
    radial-gradient(circle at 18% 18%, rgba(68, 96, 155, 0.15), transparent 34%),
    #080b13;
}

.citation-inner {
  display: grid;
  width: min(100%, var(--max-width));
  margin: 0 auto;
  grid-template-columns: 0.7fr 1.3fr;
  gap: 70px;
}

.citation-inner .section-heading {
  margin: 0;
}

.code-card {
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(152, 169, 202, 0.17);
  border-radius: 17px;
  background: rgba(4, 7, 13, 0.7);
}

.code-card button {
  position: absolute;
  z-index: 1;
  top: 14px;
  right: 14px;
  padding: 9px 12px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 8px;
  background: #121827;
  color: var(--muted-strong);
  cursor: pointer;
  font: 600 10px var(--font-geist-mono), monospace;
}

.code-card button:hover {
  border-color: rgba(112, 169, 255, 0.5);
  color: white;
}

pre {
  margin: 0;
  overflow-x: auto;
  padding: 66px 28px 28px;
  color: #d5dfef;
  font: 600 14px/1.75 "Courier New", Courier, monospace;
  letter-spacing: 0.01em;
  white-space: pre-wrap;
}

footer {
  display: grid;
  width: min(calc(100% - 48px), var(--max-width));
  min-height: 160px;
  align-items: center;
  margin: 0 auto;
  grid-template-columns: 1fr auto 1fr;
  gap: 30px;
  color: #697286;
  font-size: 11px;
}

footer p:last-child {
  justify-self: end;
}

.footer-brand {
  color: var(--muted-strong);
}

@media (max-width: 1150px) {
  .hero-inner {
    max-width: 880px;
    grid-template-columns: 1fr;
    gap: 58px;
    text-align: center;
  }

  h1 {
    margin-right: auto;
    margin-left: auto;
  }

  h1 > span {
    margin-right: auto;
    margin-left: auto;
  }

  .authors,
  .hero-actions {
    justify-content: center;
  }

  .affiliation {
    align-items: center;
    margin-right: auto;
    margin-left: auto;
  }

  .hero-summary {
    margin-right: auto;
    margin-left: auto;
  }

  .hero-overview {
    width: min(100%, 720px);
    margin: 0 auto;
  }

  .scroll-cue {
    display: none;
  }
}

@media (max-width: 900px) {
  nav {
    display: none;
  }

  .split-heading,
  .citation-inner {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .dataset-grid {
    gap: 12px;
  }

  .card-copy > div {
    align-items: flex-start;
    flex-direction: column;
  }

  .tag {
    order: -1;
  }

  footer {
    grid-template-columns: 1fr 1fr;
  }

  footer > p:first-of-type {
    display: none;
  }
}

@media (max-width: 680px) {
  .site-header {
    min-height: 64px;
    padding: 0 20px;
  }

  .hero {
    min-height: auto;
    padding: 130px 20px 100px;
  }

  h1 {
    font-size: clamp(54px, 17vw, 78px);
  }

  h1 > span {
    margin-top: 23px;
    font-size: clamp(23px, 7.5vw, 34px);
  }

  .authors {
    gap: 8px 15px;
    font-size: 17px;
  }

  .affiliation {
    max-width: 320px;
    font-size: 14px;
    line-height: 1.45;
  }

  .hero-actions {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
  }

  .button {
    min-width: 0;
  }

  .content-section {
    width: min(calc(100% - 32px), var(--max-width));
    padding: 90px 0;
  }

  .dataset-section,
  .result-section {
    width: min(calc(100% - 32px), 1320px);
  }

  .section-heading {
    margin-bottom: 34px;
  }

  .section-heading h2 {
    font-size: clamp(38px, 12vw, 54px);
  }

  .demo-section .section-heading h2 {
    white-space: normal;
  }

  .section-heading > p:last-child,
  .split-heading > p {
    font-size: 14px;
  }

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

  .card-copy p {
    min-height: 0;
  }

  .card-copy > div {
    align-items: center;
    flex-direction: row;
  }

  .tag {
    order: initial;
  }

  .result-highlight {
    margin: 50px 0 35px;
    gap: 12px;
  }

  .result-highlight strong {
    font-size: 38px;
  }

  .result-highlight span {
    font-size: 9px;
  }

  .citation-section {
    padding: 90px 16px;
  }

  pre {
    padding: 66px 18px 24px;
    font-size: 12px;
  }

  footer {
    min-height: 130px;
    grid-template-columns: 1fr;
  }

  footer p:last-child {
    justify-self: start;
    margin-top: -20px;
  }
}

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

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