:root {
  --ink: #17202a;
  --muted: #5f6c7b;
  --paper: #ffffff;
  --soft: #f4f7f8;
  --line: #d8e1e6;
  --blue: #2276d2;
  --teal: #25a2a0;
  --amber: #f2b84b;
  --charcoal: #101418;
  --radius: 8px;
  --shadow: 0 18px 45px rgba(16, 20, 24, 0.12);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

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

a {
  color: var(--blue);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

.hero {
  width: 100%;
  background: #0f1114;
}

.hero-video {
  min-height: 100vh;
  border-radius: 0;
}

.placeholder-video {
  position: relative;
  display: grid;
  place-items: center;
  overflow: hidden;
  min-height: 220px;
  color: #f8fbfd;
  background:
    linear-gradient(135deg, rgba(34, 118, 210, 0.16), transparent 42%),
    linear-gradient(315deg, rgba(37, 162, 160, 0.14), transparent 46%),
    #050608;
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.placeholder-video::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.045) 1px, transparent 1px);
  background-size: 34px 34px;
  opacity: 0.38;
}

.scanline {
  position: absolute;
  inset: 0;
  background: linear-gradient(transparent 50%, rgba(255, 255, 255, 0.035) 50%);
  background-size: 100% 6px;
  opacity: 0.24;
}

.placeholder-content {
  position: relative;
  z-index: 1;
  max-width: 880px;
  padding: 48px 24px;
  text-align: center;
}

.placeholder-content h1 {
  margin: 0;
  font-size: clamp(3.5rem, 11vw, 8rem);
  line-height: 0.94;
  letter-spacing: 0;
}

.placeholder-content h3 {
  margin: 10px 0 0;
  font-size: clamp(1.25rem, 2vw, 2rem);
}

.placeholder-content p {
  margin: 18px auto 0;
  color: rgba(255, 255, 255, 0.78);
  font-size: clamp(1rem, 1.6vw, 1.35rem);
}

.section {
  width: min(1120px, calc(100vw - 36px));
  margin: 0 auto;
  padding: 72px 0;
}

.section.narrow {
  width: min(820px, calc(100vw - 36px));
}

.paper-head {
  padding-top: 64px;
  text-align: center;
}

.paper-head h2 {
  max-width: 980px;
  margin: 0 auto 24px;
  font-size: clamp(2rem, 4.3vw, 3.6rem);
  line-height: 1.1;
  letter-spacing: 0;
}

.authors {
  max-width: 900px;
  margin: 0 auto 10px;
  color: var(--ink);
  font-size: 1.02rem;
  line-height: 1.35;
}

.authors p {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px 22px;
  margin: 0 0 4px;
}

.author-name {
  display: inline-flex;
  align-items: flex-start;
  gap: 2px;
}

.authors strong {
  font-weight: 750;
}

.authors sup {
  margin-left: 1px;
  font-size: 0.68em;
  line-height: 1;
}

.affiliations {
  margin: 0 auto 2px;
  color: var(--muted);
}

.author-notes {
  margin: 0 auto 24px;
  color: var(--muted);
  font-size: 0.88rem;
}

.button-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
}

.pill-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  padding: 0 18px;
  color: #fff;
  background: #2c3035;
  border-radius: 999px;
  font-weight: 650;
  box-shadow: 0 8px 22px rgba(44, 48, 53, 0.18);
}

.pill-button:hover {
  background: #111418;
  text-decoration: none;
}

.pill-button.disabled {
  opacity: 0.72;
  cursor: not-allowed;
}

.sticky-nav {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  gap: 6px;
  justify-content: center;
  overflow-x: auto;
  padding: 12px 16px;
  background: rgba(255, 255, 255, 0.92);
  border-block: 1px solid var(--line);
  backdrop-filter: blur(14px);
}

.sticky-nav a {
  flex: 0 0 auto;
  padding: 6px 10px;
  color: var(--ink);
  border-radius: 999px;
  font-size: 0.92rem;
}

.sticky-nav a:hover {
  color: var(--blue);
  background: var(--soft);
  text-decoration: none;
}

h2 {
  margin: 0 0 22px;
  font-size: clamp(1.8rem, 3vw, 2.65rem);
  line-height: 1.15;
  letter-spacing: 0;
}

h3 {
  margin: 18px 0 8px;
  font-size: 1.1rem;
  line-height: 1.2;
}

p {
  margin: 0 0 16px;
}

.section-title {
  max-width: 980px;
  margin-bottom: 28px;
}

.section-title p:last-child {
  color: var(--muted);
  font-size: 1.05rem;
}

.eyebrow {
  display: inline-block;
  margin-bottom: 10px;
  color: var(--teal);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

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

.feature-stack,
.video-grid {
  display: grid;
  gap: 20px;
}

.feature-stack {
  gap: 28px;
}

.video-grid.three {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.video-grid.two {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.downstream-card {
  grid-column: 1 / -1;
}

.paired-panel {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.feature-card,
.media-card {
  min-width: 0;
}

.media-card {
  padding: 14px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: 0 10px 28px rgba(23, 32, 42, 0.06);
}

.media-card p,
.caption {
  color: var(--muted);
  font-size: 0.96rem;
}

.video-wide {
  aspect-ratio: 16 / 9;
  min-height: auto;
  border-radius: var(--radius);
}

.teaser-video {
  aspect-ratio: 16 / 7;
  min-height: 440px;
  border-radius: var(--radius);
}

.video-card {
  aspect-ratio: 4 / 3;
  min-height: auto;
  border-radius: var(--radius);
}

.placeholder-video span {
  position: relative;
  z-index: 1;
  padding: 8px 12px;
  color: rgba(255, 255, 255, 0.84);
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 999px;
  font-weight: 750;
}

.figure-frame {
  display: grid;
  place-items: center;
  overflow: hidden;
  background: #eaf5fb;
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

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

.coming-soon {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(320px, 1.1fr);
  gap: 32px;
  align-items: center;
  padding: 34px;
  background: #eef9f8;
  border: 1px solid #c7ebe9;
  border-radius: var(--radius);
}

.demo-panel {
  min-height: 300px;
  padding: 16px;
  color: #c7d1db;
  background: var(--charcoal);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.demo-dot {
  display: inline-block;
  width: 11px;
  height: 11px;
  margin-right: 7px;
  background: var(--amber);
  border-radius: 50%;
}

.demo-dot:nth-child(2) {
  background: var(--teal);
}

.demo-dot:nth-child(3) {
  background: var(--blue);
}

.demo-screen {
  display: grid;
  place-items: center;
  min-height: 230px;
  margin-top: 14px;
  border: 1px dashed rgba(255, 255, 255, 0.24);
  border-radius: var(--radius);
}

.split {
  display: grid;
  grid-template-columns: minmax(0, 0.72fr) minmax(320px, 1fr);
  gap: 28px;
  align-items: center;
}

.copy-block {
  max-width: 520px;
}

.bibtex-box {
  position: relative;
}

.bibtex-box pre {
  margin: 0;
  overflow-x: auto;
  padding: 22px;
  color: #e9f0f5;
  background: #111418;
  border-radius: var(--radius);
  font-size: 0.9rem;
}

.copy-button {
  position: absolute;
  top: 10px;
  right: 10px;
  padding: 6px 10px;
  color: #fff;
  background: rgba(255, 255, 255, 0.14);
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 6px;
  cursor: pointer;
}

.copy-button:hover {
  background: rgba(255, 255, 255, 0.22);
}

.footer {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: space-between;
  align-items: center;
  padding: 28px max(18px, calc((100vw - 1120px) / 2));
  color: var(--muted);
  background: var(--soft);
  border-top: 1px solid var(--line);
}

.footer p {
  margin: 0;
}

@media (max-width: 820px) {
  .section {
    padding: 52px 0;
  }

  .feature-stack,
  .video-grid.three,
  .video-grid.two,
  .coming-soon,
  .split {
    grid-template-columns: 1fr;
  }

  .teaser-video {
    min-height: 280px;
    aspect-ratio: 16 / 10;
  }

  .downstream-card {
    grid-column: auto;
  }

  .paired-panel {
    grid-template-columns: 1fr;
  }

  .paper-head h2 {
    font-size: clamp(2rem, 9vw, 3rem);
  }
}
