:root {
  --bg: #07111f;
  --bg-soft: #0d1830;
  --panel: rgba(15, 27, 52, 0.78);
  --panel-strong: rgba(12, 24, 46, 0.92);
  --border: rgba(133, 166, 255, 0.18);
  --text: #ecf3ff;
  --muted: #9ab0d5;
  --accent: #59d0ff;
  --accent-2: #7d7cff;
  --success: #45e5ae;
  --warning: #ffb74d;
  --danger: #ff6f91;
  --shadow: 0 24px 80px rgba(0, 0, 0, 0.35);
  --radius: 24px;
  --container: 1180px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: "Inter", system-ui, sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at top left, rgba(89, 208, 255, 0.14), transparent 28%),
    radial-gradient(circle at top right, rgba(125, 124, 255, 0.16), transparent 24%),
    linear-gradient(180deg, #07111f 0%, #081324 40%, #09101d 100%);
  overflow-x: hidden;
}

a { color: inherit; }
img { max-width: 100%; }

.bg-grid {
  position: fixed;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.03) 1px, transparent 1px);
  background-size: 36px 36px;
  mask-image: radial-gradient(circle at center, black 40%, transparent 90%);
  pointer-events: none;
  z-index: 0;
}

.container {
  width: min(var(--container), calc(100% - 32px));
  margin: 0 auto;
  position: relative;
  z-index: 1;
}

.small-container { width: min(920px, calc(100% - 32px)); }

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(18px);
  background: rgba(7, 17, 31, 0.58);
  border-bottom: 1px solid rgba(255,255,255,0.06);
}

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

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-weight: 800;
  text-decoration: none;
}

.brand-logo {
  width: 38px;
  height: 38px;
  object-fit: contain;
  border-radius: 10px;
}

.nav-links {
  display: flex;
  gap: 24px;
  flex-wrap: wrap;
}

.nav-links a {
  text-decoration: none;
  color: var(--muted);
  font-size: 0.96rem;
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--text);
}

.hero {
  padding: 52px 0 48px;
}

.hero-top {
  padding: 34px 34px 28px;
  margin-bottom: 22px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.hero-top::after {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 40%;
  height: 100%;
  background: linear-gradient(120deg, transparent, rgba(89, 208, 255, 0.13), transparent);
  animation: scan 5s infinite;
}

@keyframes scan {
  0% { left: -100%; }
  100% { left: 180%; }
}

.eyebrow {
  display: inline-flex;
  padding: 8px 14px;
  border-radius: 999px;
  background: rgba(89, 208, 255, 0.09);
  border: 1px solid rgba(89, 208, 255, 0.18);
  color: var(--accent);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

h1 {
  margin: 18px auto 16px;
  font-size: clamp(2.3rem, 5vw, 4.75rem);
  line-height: 0.96;
  letter-spacing: -0.04em;
  max-width: 15ch;
}

.hero-subtitle,
.section-heading p,
.feature-card p,
.timeline-card p,
.demo-card p,
.panel-card li,
.stat-meta,
.resource-card span,
.resource-card strong,
.watchdog-panel,
.affiliation-line,
.recovery-note,
.contact-card {
  color: var(--muted);
}

.hero-subtitle {
  font-size: 1.08rem;
  line-height: 1.75;
  max-width: 68ch;
  margin: 0 auto;
}

.hero-subtitle span { color: var(--text); font-weight: 800; }

.author-line,
.affiliation-line,
.logo-row {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 14px;
}

.author-line {
  font-size: clamp(1.05rem, 2vw, 1.25rem);
  font-weight: 800;
}

.author-line a {
  text-decoration: none;
  font-weight: 800;
  transition: transform 0.16s ease, filter 0.16s ease;
}

.author-line a:hover { transform: translateY(-1px); filter: brightness(1.08); }

.author-one {
  color: #7df9ff;
  text-shadow: 0 0 18px rgba(125, 249, 255, 0.22);
}

.author-two {
  color: #ffd166;
  text-shadow: 0 0 18px rgba(255, 209, 102, 0.18);
}

.author-three {
  color: #ff8bd2;
  text-shadow: 0 0 18px rgba(255, 139, 210, 0.18);
}

.logo-row { margin-top: 18px; }

.aff-logo {
  height: 40px;
  width: auto;
  object-fit: contain;
  opacity: 0.95;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 14px;
  margin: 28px 0 26px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 14px 18px;
  border-radius: 20px;
  text-decoration: none;
  font-weight: 700;
  border: 1px solid rgba(255,255,255,0.1);
  transition: transform 0.18s ease, border-color 0.18s ease, background 0.18s ease;
}

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

.btn-primary {
  background: linear-gradient(135deg, var(--accent), #77e0ff 60%, var(--accent-2));
  color: #07111f;
  border-color: transparent;
}

.btn-secondary {
  background: rgba(255,255,255,0.02);
  color: var(--text);
}

.btn-icon,
.resource-icon {
  width: 24px;
  height: 24px;
  object-fit: contain;
  flex: 0 0 auto;
}

.icon-wrap {
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.icon-wrap svg {
  width: 100%;
  height: 100%;
  display: block;
}

.arxiv-official {
  width: 28px;
  height: 28px;
}

.hero-media-grid {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: 22px;
  align-items: stretch;
}

.glass-card {
  background: linear-gradient(180deg, rgba(15, 27, 52, 0.84), rgba(8, 18, 35, 0.88));
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.teaser-card,
.video-card,
.image-card,
.feature-card,
.timeline-card,
.stat-card,
.demo-card,
.panel-card,
.resource-card,
.bib-card,
.watchdog-panel,
.hero-image-card,
.contact-card {
  padding: 22px;
}

.card-label {
  font-size: 0.82rem;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: 800;
  margin-bottom: 12px;
}

.feature-image,
.large-figure,
.demo-media,
.video-thumb {
  display: block;
  width: 100%;
  border-radius: 18px;
  border: 1px solid rgba(255,255,255,0.08);
}

.hero-image {
  max-height: 620px;
  object-fit: cover;
  object-position: center top;
}

.video-preview {
  position: relative;
  display: block;
  text-decoration: none;
}

.video-thumb {
  aspect-ratio: 16 / 9;
  object-fit: cover;
}

.video-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 18px;
  padding: 20px;
  background: linear-gradient(180deg, rgba(6,12,24,0.15), rgba(6,12,24,0.62));
  border-radius: 18px;
  text-align: left;
}

.video-overlay strong {
  display: block;
  font-size: 1.2rem;
  color: var(--text);
}

.video-overlay span {
  color: var(--muted);
}

.play-badge {
  display: grid;
  place-items: center;
  width: 66px;
  height: 66px;
  border-radius: 50%;
  background: rgba(255,255,255,0.12);
  border: 1px solid rgba(255,255,255,0.2);
  color: white;
  font-size: 1.55rem;
  flex: 0 0 auto;
}

.demo-media {
  margin-bottom: 14px;
}

.demo-media:hover,
.feature-image:hover,
.large-figure:hover,
.video-thumb:hover {
  box-shadow: 0 0 26px rgba(89,208,255,0.18);
}

.section {
  padding: 48px 0 68px;
}

.alt-section {
  background: linear-gradient(180deg, rgba(255,255,255,0.012), rgba(255,255,255,0.02));
  border-top: 1px solid rgba(255,255,255,0.04);
  border-bottom: 1px solid rgba(255,255,255,0.04);
}

.section-heading {
  max-width: 900px;
  margin: 0 auto 28px;
}

.section-heading.center { text-align: center; }

.section-heading h2 {
  margin: 16px 0 10px;
  font-size: clamp(2rem, 3vw, 3.1rem);
  line-height: 1.02;
  letter-spacing: -0.03em;
}

.feature-grid,
.timeline-grid,
.stats-grid,
.demo-grid,
.dual-panel,
.resource-grid {
  display: grid;
  gap: 18px;
}

.feature-grid { grid-template-columns: repeat(3, 1fr); }
.timeline-grid { grid-template-columns: repeat(4, 1fr); }
.stats-grid { grid-template-columns: repeat(4, 1fr); }
.demo-grid { grid-template-columns: repeat(2, 1fr); }
.dual-panel { grid-template-columns: repeat(2, 1fr); margin-top: 18px; }
.resource-grid { grid-template-columns: repeat(3, 1fr); }
.resource-grid-4 { grid-template-columns: repeat(4, 1fr); }

.feature-icon,
.timeline-index {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border-radius: 14px;
  background: linear-gradient(135deg, rgba(89,208,255,0.18), rgba(125,124,255,0.16));
  color: var(--text);
  font-weight: 800;
}

.feature-card h3,
.timeline-card h3,
.demo-card h3,
.panel-card h3,
.stat-title {
  margin: 18px 0 10px;
  font-size: 1.16rem;
  letter-spacing: -0.02em;
}

.watchdog-panel {
  margin-top: 18px;
  text-align: center;
}

.watchdog-title {
  font-size: 1rem;
  font-weight: 800;
  margin-bottom: 14px;
  letter-spacing: -0.02em;
  color: var(--text);
}

.outcome-cluster {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: center;
}

.outcome-badge {
  display: inline-flex;
  align-items: center;
  padding: 10px 12px;
  border-radius: 999px;
  font-size: 0.88rem;
  font-weight: 700;
  border: 1px solid transparent;
}

.success {
  background: rgba(69,229,174,0.11);
  color: #7bf0c4;
  border-color: rgba(69,229,174,0.24);
  box-shadow: 0 0 12px rgba(69,229,174,0.18);
}

.empty {
  background: rgba(255,111,145,0.11);
  color: #ff8ca9;
  border-color: rgba(255,111,145,0.22);
  animation: blink 1.8s infinite;
}

.weak {
  background: rgba(255,183,77,0.11);
  color: #ffc978;
  border-color: rgba(255,183,77,0.25);
}

.slip {
  background: rgba(125,124,255,0.13);
  color: #a9a8ff;
  border-color: rgba(125,124,255,0.22);
}

.timeout,
.stall {
  background: rgba(89,208,255,0.11);
  color: #81e1ff;
  border-color: rgba(89,208,255,0.22);
}

@keyframes blink {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.48; }
}

.decision-box {
  margin-top: 18px;
  padding: 18px;
  border-radius: 18px;
  background: linear-gradient(135deg, rgba(89,208,255,0.08), rgba(125,124,255,0.08));
  border: 1px solid rgba(89,208,255,0.2);
  font-weight: 700;
  color: var(--text);
}

.clean-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.clean-list li {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 14px 0;
  border-bottom: 1px solid rgba(255,255,255,0.06);
}

.clean-list li:last-child { border-bottom: 0; }
.clean-list strong { color: var(--text); }

.resource-card {
  text-decoration: none;
  transition: transform 0.18s ease, border-color 0.18s ease;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 10px;
}

.resource-card:hover { transform: translateY(-2px); border-color: rgba(89,208,255,0.32); }
.resource-label {
  display: block;
  font-size: 0.8rem;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: 800;
}

.resource-card strong {
  display: block;
  color: var(--text);
  font-size: 1.05rem;
}

.contact-card {
  display: block;
  text-decoration: none;
  text-align: center;
  padding: 28px 24px;
}

.contact-label {
  display: block;
  font-size: 0.82rem;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: 800;
  margin-bottom: 10px;
}

.contact-card strong {
  color: var(--text);
  font-size: 1.2rem;
}

.footer-section { padding-bottom: 86px; }
pre {
  margin: 0;
  overflow-x: auto;
  white-space: pre-wrap;
}
code { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; }

.reveal {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity 0.72s ease, transform 0.72s ease;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

@media (max-width: 1080px) {
  .hero-media-grid,
  .feature-grid,
  .timeline-grid,
  .stats-grid,
  .demo-grid,
  .dual-panel,
  .resource-grid,
  .resource-grid-4 {
    grid-template-columns: 1fr;
  }

  .aff-logo { height: 34px; }
  h1 { max-width: 100%; }
  .hero-image { max-height: none; }
}

@media (max-width: 760px) {
  .nav {
    flex-direction: column;
    gap: 12px;
    padding: 16px 0;
  }

  .nav-links {
    gap: 16px;
    justify-content: center;
  }

  .hero {
    padding-top: 28px;
  }

  .hero-actions {
    flex-direction: column;
  }

  .btn {
    width: 100%;
  }

  .section {
    padding: 38px 0 52px;
  }

  .teaser-card,
  .video-card,
  .image-card,
  .feature-card,
  .timeline-card,
  .stat-card,
  .demo-card,
  .panel-card,
  .resource-card,
  .bib-card,
  .watchdog-panel,
  .hero-top,
  .hero-image-card,
  .contact-card {
    padding: 18px;
  }

  .video-overlay {
    flex-direction: column;
    text-align: center;
  }
}


/* Force all authors to same highlighted color */
.author-line a {
  color: #ffd166 !important;
}
