:root {
  color-scheme: light;
  --bg: #f6f8fb;
  --paper: #ffffff;
  --paper-soft: #f1f5fb;
  --ink: #102033;
  --muted: #607086;
  --line: #dfe7f2;
  --blue: #2f7de1;
  --blue-dark: #1557a8;
  --purple: #b43fb9;
  --green: #2f8f46;
  --cyan: #48b9d8;
  --orange: #f47b45;
  --shadow: 0 24px 70px rgba(24, 48, 84, 0.12);
  --radius: 24px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--ink);
  background:
    radial-gradient(circle at 8% 4%, rgba(47, 125, 225, 0.13), transparent 25rem),
    radial-gradient(circle at 88% 10%, rgba(180, 63, 185, 0.12), transparent 24rem),
    linear-gradient(180deg, #fbfdff 0%, var(--bg) 35%, #eef3f9 100%);
}

.progress {
  position: fixed;
  top: 0;
  left: 0;
  height: 3px;
  width: 0%;
  background: linear-gradient(90deg, var(--blue), var(--purple), var(--green));
  z-index: 100;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1.5rem;
  padding: 0.9rem clamp(1rem, 4vw, 3rem);
  background: rgba(255, 255, 255, 0.82);
  backdrop-filter: blur(18px);
  border-bottom: 1px solid rgba(223, 231, 242, 0.9);
}

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

.brand-mark {
  display: grid;
  place-items: center;
  width: 2.25rem;
  height: 2.25rem;
  border-radius: 0.8rem;
  color: white;
  background: linear-gradient(135deg, var(--blue), var(--purple));
  box-shadow: 0 10px 25px rgba(47, 125, 225, 0.25);
}

nav {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  justify-content: flex-end;
}

nav a {
  color: var(--muted);
  text-decoration: none;
  font-size: 0.94rem;
  font-weight: 650;
}

nav a:hover {
  color: var(--blue-dark);
}

.section-pad,
.section {
  width: min(1180px, calc(100% - 2rem));
  margin: 0 auto;
}

.section-pad {
  padding: 5.5rem 0 2.5rem;
}

.section {
  padding: 5rem 0;
}

.section-narrow {
  width: min(880px, calc(100% - 2rem));
}

.hero {
  position: relative;
  text-align: center;
}

.hero-bg {
  position: absolute;
  inset: 2rem auto auto 50%;
  transform: translateX(-50%);
  width: min(760px, 90%);
  height: 320px;
  background: linear-gradient(135deg, rgba(47, 125, 225, 0.12), rgba(180, 63, 185, 0.1), rgba(47, 143, 70, 0.08));
  filter: blur(40px);
  border-radius: 999px;
  pointer-events: none;
}

.eyebrow {
  margin: 0 0 0.85rem;
  color: var(--blue-dark);
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  position: relative;
}

h1 {
  margin: 0 auto;
  max-width: 1080px;
  font-size: clamp(1.75rem, 3.35vw, 3.35rem);
  line-height: 1.08;
  letter-spacing: -0.04em;
}

h2 {
  margin: 0 0 1rem;
  font-size: clamp(2rem, 3.6vw, 3.35rem);
  line-height: 1.05;
  letter-spacing: -0.045em;
}

h3 {
  margin: 0 0 0.75rem;
  font-size: 1.24rem;
  letter-spacing: -0.02em;
}

p {
  color: var(--muted);
  line-height: 1.72;
  font-size: 1.02rem;
}

.hero-subtitle {
  max-width: 840px;
  margin: 1.5rem auto 1.75rem;
  font-size: clamp(1.05rem, 1.8vw, 1.26rem);
}

.authors,
.affiliations {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.45rem 0.9rem;
  max-width: 980px;
  margin: 0.75rem auto;
}

.authors span {
  color: #1a3b62;
  font-weight: 700;
}

.authors .author-break {
  flex-basis: 100%;
  height: 0;
}

.affiliations span,
.notes {
  color: var(--muted);
  font-size: 0.92rem;
}

.notes {
  margin-top: 0.35rem;
}

.cta-row {
  display: flex;
  justify-content: center;
  gap: 0.8rem;
  flex-wrap: wrap;
  margin: 2rem 0 2.25rem;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.85rem;
  padding: 0 1.2rem;
  border-radius: 999px;
  border: 1px solid var(--line);
  color: var(--ink);
  background: rgba(255, 255, 255, 0.85);
  text-decoration: none;
  font-weight: 800;
  box-shadow: 0 8px 24px rgba(24, 48, 84, 0.08);
  transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease;
}

.button:hover {
  transform: translateY(-2px);
  border-color: rgba(47, 125, 225, 0.45);
  box-shadow: 0 14px 30px rgba(24, 48, 84, 0.14);
}

.button.primary {
  color: white;
  border: 0;
  background: linear-gradient(135deg, var(--blue), var(--purple));
}

.button.muted {
  color: var(--muted);
}

.hero-panel,
.figure-card,
.result-card,
.card,
.video-shell,
.release-cards > a,
.metrics-strip article {
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid rgba(223, 231, 242, 0.9);
  box-shadow: var(--shadow);
}

.hero-panel {
  padding: 0.85rem;
  border-radius: calc(var(--radius) + 10px);
}

.hero-video {
  margin: 0 auto 2rem;
  max-width: 980px;
  text-align: center;
}

.hero-video h2 {
  margin-bottom: 0.5rem;
}

.hero-video p:not(.eyebrow) {
  margin: 0 auto 1rem;
  max-width: 720px;
}

.hero-panel img,
.figure-card img {
  display: block;
  width: 100%;
  border-radius: 18px;
  height: auto;
}

.metrics-strip {
  width: min(1120px, calc(100% - 2rem));
  margin: 0 auto 1rem;
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 1rem;
}

.metrics-strip article {
  padding: 1.35rem;
  border-radius: 20px;
}

.metrics-strip strong {
  display: block;
  font-size: clamp(1.8rem, 4vw, 2.65rem);
  letter-spacing: -0.045em;
  color: var(--blue-dark);
}

.metrics-strip span {
  color: var(--muted);
  font-weight: 650;
}

.section-head {
  max-width: 860px;
  margin: 0 auto 2.25rem;
  text-align: center;
}

.section-narrow p {
  font-size: 1.08rem;
}

.method-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  margin: 2rem 0;
}

.card {
  position: relative;
  overflow: hidden;
  padding: 1.5rem;
  border-radius: var(--radius);
}

.card::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 5px;
  background: var(--accent, var(--blue));
}

.card-kicker {
  display: grid;
  place-items: center;
  width: 2.25rem;
  height: 2.25rem;
  margin-bottom: 1.2rem;
  border-radius: 50%;
  color: white;
  background: var(--accent, var(--blue));
  font-weight: 900;
}

.accent-blue { --accent: var(--blue); }
.accent-purple { --accent: var(--purple); }
.accent-green { --accent: var(--green); }

.figure-card {
  margin: 1.4rem auto;
  padding: 0.85rem;
  border-radius: var(--radius);
}

.figure-card.wide {
  width: min(980px, 100%);
}

figcaption,
.table-note {
  margin: 0.85rem 0.35rem 0.2rem;
  color: var(--muted);
  line-height: 1.55;
  font-size: 0.94rem;
}

.architecture-notes,
.analysis-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
  margin-top: 1.2rem;
}

.architecture-notes > div {
  padding: 1.5rem;
  border-radius: var(--radius);
  background: linear-gradient(180deg, #ffffff, #f3f7fd);
  border: 1px solid var(--line);
}

.table-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}

.result-card {
  overflow: hidden;
  padding: 1.2rem;
  border-radius: var(--radius);
}

.result-card h3 {
  color: #17385f;
}

table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.92rem;
}

th,
td {
  padding: 0.72rem 0.55rem;
  border-bottom: 1px solid var(--line);
  text-align: right;
  vertical-align: middle;
}

th:first-child,
td:first-child {
  text-align: left;
}

th {
  color: #315070;
  background: #f4f8fd;
  font-weight: 850;
}

tr.ours td {
  background: #edf7ef;
  color: #183c24;
  font-weight: 850;
}

.demo-section .section-head {
  margin-bottom: 1.5rem;
}

.featured-video {
  padding-top: 2rem;
  padding-bottom: 3rem;
}

.video-shell {
  padding: 0.85rem;
  border-radius: calc(var(--radius) + 8px);
}

video {
  display: block;
  width: 100%;
  border-radius: 18px;
  background: #0a1624;
}

.release-cards {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.9rem;
  margin-top: 1.5rem;
}

.release-cards > a {
  padding: 1.15rem;
  border-radius: 18px;
  color: var(--ink);
  text-decoration: none;
  transition: transform 180ms ease, border-color 180ms ease, box-shadow 180ms ease;
}

.release-cards > a:hover {
  transform: translateY(-2px);
  border-color: rgba(47, 125, 225, 0.45);
  box-shadow: 0 14px 30px rgba(24, 48, 84, 0.14);
}

.release-cards strong,
.release-cards span {
  display: block;
}

.release-cards strong {
  margin-bottom: 0.35rem;
}

.release-cards span {
  color: var(--muted);
  line-height: 1.45;
}

pre {
  overflow-x: auto;
  padding: 1.35rem;
  border-radius: 18px;
  color: #dff4ff;
  background: #102033;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.08);
}

code {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, "Liberation Mono", monospace;
  font-size: 0.92rem;
}

footer {
  width: min(1180px, calc(100% - 2rem));
  margin: 0 auto;
  padding: 2.5rem 0 3.5rem;
  text-align: center;
  border-top: 1px solid var(--line);
}

footer p {
  margin: 0;
  font-size: 0.95rem;
}

@media (max-width: 900px) {
  .site-header {
    align-items: flex-start;
    flex-direction: column;
  }

  nav {
    justify-content: flex-start;
  }

  .metrics-strip,
  .method-grid,
  .table-grid,
  .architecture-notes,
  .analysis-grid,
  .release-cards {
    grid-template-columns: 1fr;
  }

  th,
  td {
    padding: 0.62rem 0.42rem;
    font-size: 0.84rem;
  }
}

@media (max-width: 560px) {
  .section-pad {
    padding-top: 3.5rem;
  }

  h1 {
    font-size: 1.65rem;
  }

  .hero-panel,
  .figure-card,
  .video-shell {
    padding: 0.45rem;
    border-radius: 18px;
  }

  .hero-panel img,
  .figure-card img,
  video {
    border-radius: 14px;
  }
}
