:root {
  color-scheme: dark;
  --ink: #f6f1e8;
  --muted: #c8c1b3;
  --soft: #9fa8a3;
  --bg: #111313;
  --panel: #1b1e1d;
  --line: rgba(246, 241, 232, 0.14);
  --accent: #e25d41;
  --accent-2: #62c6b7;
  --accent-3: #e8c45d;
  --shadow: rgba(0, 0, 0, 0.35);
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.6;
}

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

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

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 10;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 18px clamp(20px, 4vw, 56px);
  background: linear-gradient(rgba(17, 19, 19, 0.88), rgba(17, 19, 19, 0.48));
  border-bottom: 1px solid rgba(246, 241, 232, 0.08);
  backdrop-filter: blur(14px);
}

.brand {
  font-size: 1.05rem;
  font-weight: 800;
  letter-spacing: 0;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: clamp(14px, 2.5vw, 30px);
  color: var(--muted);
  font-size: 0.95rem;
}

.nav-links a {
  transition: color 160ms ease;
}

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

.hero {
  position: relative;
  min-height: 94vh;
  display: grid;
  align-items: end;
  overflow: hidden;
  padding: 128px clamp(20px, 5vw, 72px) 0;
  background: #111313;
}

.hero-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(1.08) contrast(1.06);
}

.hero-scrim {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(17, 19, 19, 0.92), rgba(17, 19, 19, 0.58) 50%, rgba(17, 19, 19, 0.24)),
    linear-gradient(0deg, rgba(17, 19, 19, 0.92), rgba(17, 19, 19, 0.16) 52%, rgba(17, 19, 19, 0.74)),
    linear-gradient(135deg, rgba(98, 198, 183, 0.16), transparent 42%),
    linear-gradient(315deg, rgba(232, 196, 93, 0.14), transparent 36%);
}

.hero-copy {
  position: relative;
  z-index: 1;
  width: min(860px, 100%);
  padding-bottom: clamp(46px, 10vh, 92px);
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--accent-2);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

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

h1 {
  margin-bottom: 18px;
  font-size: clamp(4.6rem, 13vw, 11rem);
  line-height: 0.86;
  letter-spacing: 0;
}

h2 {
  max-width: 900px;
  margin-bottom: 18px;
  font-size: clamp(2rem, 4vw, 4.6rem);
  line-height: 1.03;
  letter-spacing: 0;
}

h3 {
  margin-bottom: 8px;
  font-size: 1.06rem;
  line-height: 1.25;
}

.subtitle {
  width: min(700px, 100%);
  margin-bottom: 30px;
  color: var(--muted);
  font-size: clamp(1.12rem, 2vw, 1.48rem);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: flex-start;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 20px;
  border: 1px solid var(--line);
  border-radius: 8px;
  font-weight: 750;
  gap: 9px;
  transition:
    transform 160ms ease,
    background 160ms ease,
    border-color 160ms ease;
}

.button svg {
  width: 19px;
  height: 19px;
  fill: currentColor;
  flex: 0 0 auto;
}

.button:hover {
  transform: translateY(-2px);
}

.button-primary {
  color: #191413;
  background: var(--accent-3);
  border-color: var(--accent-3);
}

.button-secondary {
  color: var(--ink);
  background: rgba(246, 241, 232, 0.08);
}

.arxiv-logo {
  width: 72px;
  height: auto;
  flex: 0 0 auto;
  display: block;
}

.hero-action-group {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}

.bibtex-block {
  width: min(640px, 100%);
  margin: 0 auto;
  border: 1px solid rgba(246, 241, 232, 0.14);
  border-radius: 8px;
  background: rgba(17, 19, 19, 0.58);
  backdrop-filter: blur(12px);
  overflow: hidden;
}

.bibtex-block p {
  margin: 0;
  padding: 12px 16px;
  border-bottom: 1px solid rgba(246, 241, 232, 0.12);
  color: var(--accent-2);
  font-size: 0.78rem;
  font-weight: 800;
  text-transform: uppercase;
}

.bibtex-block pre {
  margin: 0;
  padding: 16px;
  overflow-x: auto;
  color: var(--muted);
  font-size: 0.88rem;
  line-height: 1.5;
}

.bibtex-block code {
  font-family: "SFMono-Regular", Consolas, "Liberation Mono", Menlo, monospace;
}

.citation-section {
  background: #111313;
  padding-top: clamp(56px, 8vw, 96px);
}

.section {
  padding: clamp(72px, 10vw, 132px) clamp(20px, 5vw, 72px);
}

.section-heading {
  width: min(1120px, 100%);
  margin: 0 auto 34px;
}

.section-heading p:not(.eyebrow) {
  width: min(880px, 100%);
  color: var(--muted);
  font-size: 1.08rem;
}

.pipeline-section {
  background: #f5efe4;
  color: #171918;
}

.pipeline-section .eyebrow {
  color: #b9412b;
}

.pipeline-section .section-heading p:not(.eyebrow) {
  color: #58544d;
}

.pipeline-figure {
  width: min(1280px, 100%);
  margin: 0 auto;
}

.pipeline-figure img {
  width: 100%;
  border: 1px solid rgba(23, 25, 24, 0.16);
  border-radius: 8px;
  background: white;
  box-shadow: 0 28px 80px rgba(27, 25, 21, 0.16);
}

.pipeline-figure figcaption {
  margin-top: 16px;
  color: #686158;
  font-size: 0.98rem;
}

.demos-section {
  background: #111313;
}

.video-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  grid-auto-rows: 1fr;
  gap: 20px;
  width: min(1280px, 100%);
  margin: 0 auto;
}

.video-card {
  overflow: hidden;
  display: flex;
  flex-direction: column;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  box-shadow: 0 22px 60px var(--shadow);
}

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

.video-copy {
  flex: 1;
  padding: 20px;
}

.video-copy p {
  margin-bottom: 0;
  color: var(--muted);
}

.footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 28px clamp(20px, 5vw, 72px);
  border-top: 1px solid var(--line);
  color: var(--muted);
  background: #0d0f0f;
}

.footer p {
  margin-bottom: 0;
}

.footer a {
  color: var(--accent-2);
  font-weight: 750;
}

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

  .nav-links {
    width: 100%;
    justify-content: space-between;
    gap: 10px;
    font-size: 0.88rem;
  }

  .hero {
    min-height: 92vh;
    padding-top: 140px;
  }

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

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

@media (max-width: 560px) {
  .button {
    width: 100%;
  }

  .hero-actions {
    width: 100%;
  }

  h1 {
    font-size: clamp(4rem, 23vw, 6.8rem);
  }
}
