/* CSS styles for PolaRiS - Light Mode Premium Theme */
@import url('https://fonts.googleapis.com/css2?family=Space+Grotesk:wght@400;500;600;700&family=Inter:wght@300;400;500;600;700&family=Fira+Code:wght@400;500;600;700&family=JetBrains+Mono:wght@400;500;600;700;800&display=swap');

:root {
  /* User's palette - applied with restraint */
  --honey-bronze: #d4940a;
  --hyper-magenta: #9333ea;
  --neon-violet: #a855f7;
  --cool-horizon: #3b82f6;
  --blue-energy: #2563eb;

  /* Light mode backgrounds */
  --bg-deep: #fdf8f0;
  --bg-surface: #fffcf7;
  --bg-elevated: #f7f1e6;
  --bg-card: rgba(255, 252, 247, 0.95);

  /* Text hierarchy */
  --text-primary: #1a1a1a;
  --text-secondary: #4a4a4a;
  --text-muted: #7a7a7a;

  /* Refined borders */
  --border-subtle: rgba(0, 0, 0, 0.06);
  --border-light: rgba(0, 0, 0, 0.1);

  /* Elegant gradients */
  --gradient-warm: linear-gradient(135deg, var(--honey-bronze) 0%, var(--neon-violet) 100%);
  --gradient-cool: linear-gradient(135deg, var(--cool-horizon) 0%, var(--hyper-magenta) 100%);
  --gradient-full: linear-gradient(135deg, var(--honey-bronze) 0%, var(--neon-violet) 40%, var(--blue-energy) 100%);

  /* Light mode shadows */
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.06);
  --shadow-md: 0 8px 24px rgba(0, 0, 0, 0.08);
  --shadow-lg: 0 16px 48px rgba(0, 0, 0, 0.1);
  --shadow-glow: 0 8px 40px rgba(212, 148, 10, 0.12);
}

* {
  box-sizing: border-box;
}

body {
  background: var(--bg-deep);
  background-image:
    radial-gradient(ellipse 120% 60% at 50% -20%, rgba(212, 148, 10, 0.05) 0%, transparent 60%),
    radial-gradient(ellipse 80% 50% at 100% 50%, rgba(147, 51, 234, 0.03) 0%, transparent 50%);
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  color: var(--text-primary);
  padding: 48px 28px 48px 28px;
  position: relative;
  min-height: 100vh;
  line-height: 1.7;
  font-size: 15px;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
}

/* Clean modern headings */
h1, h2, h3, h4, h5, h6, .section-heading {
  font-family: 'Space Grotesk', -apple-system, sans-serif;
  font-weight: 600;
  letter-spacing: -0.02em;
}

.hero-text {
  font-family: 'Space Grotesk', -apple-system, sans-serif;
  font-weight: 700;
  letter-spacing: -0.03em;
}

/* Progress Sidebar */
.progress-sidebar {
  position: fixed;
  left: 32px;
  top: 50%;
  transform: translateY(-50%);
  z-index: 1000;
  display: none;
}

@media (min-width: 1400px) {
  .progress-sidebar {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0;
  }
}

.progress-track {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.progress-line {
  position: absolute;
  left: 7px;
  top: 22px;
  bottom: 22px;
  width: 2px;
  background: var(--border-light);
  z-index: 0;
}

.progress-line-fill {
  position: absolute;
  left: 7px;
  top: 22px;
  width: 2px;
  background: var(--honey-bronze);
  z-index: 1;
  transition: height 0.3s ease;
  height: 0;
}

.progress-item {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 0;
}

.progress-dot {
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--bg-surface);
  border: 2px solid var(--border-light);
  transition: all 0.3s ease;
  flex-shrink: 0;
}

.progress-item.active .progress-dot {
  background: var(--honey-bronze);
  border-color: var(--honey-bronze);
  box-shadow: 0 0 0 5px rgba(212, 148, 10, 0.2);
}

.progress-item.passed .progress-dot {
  background: var(--honey-bronze);
  border-color: var(--honey-bronze);
}

.progress-label {
  font-family: 'Fira Code', monospace;
  font-size: 12px;
  font-weight: 500;
  color: var(--text-muted);
  white-space: nowrap;
  opacity: 0;
  transform: translateX(-8px);
  transition: all 0.2s ease;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.progress-item:hover .progress-label,
.progress-item.active .progress-label {
  opacity: 1;
  transform: translateX(0);
}

.progress-item.active .progress-label {
  color: var(--honey-bronze);
}

.progress-item a {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}

/* Main Content */
.main-content {
  max-width: 1280px;
  margin: 0 auto;
  position: relative;
  z-index: 1;
}

/* Hero Section - Elegant */
.hero-flow {
  position: relative;
  overflow: hidden;
  padding: 64px 48px 48px 48px;
  margin-bottom: 40px;
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  box-shadow: var(--shadow-lg);
  border-radius: 28px;
}

/* Soft flowing gradient orbs */
.hero-flow::before {
  content: "";
  position: absolute;
  width: 600px;
  height: 600px;
  top: -250px;
  left: -150px;
  background: radial-gradient(circle, rgba(212, 148, 10, 0.12) 0%, rgba(212, 148, 10, 0) 70%);
  animation: orbFlow1 25s ease-in-out infinite;
  z-index: 0;
  pointer-events: none;
}

.hero-flow::after {
  content: "";
  position: absolute;
  width: 500px;
  height: 500px;
  bottom: -200px;
  right: -100px;
  background: radial-gradient(circle, rgba(147, 51, 234, 0.08) 0%, rgba(147, 51, 234, 0) 70%);
  animation: orbFlow2 30s ease-in-out infinite;
  z-index: 0;
  pointer-events: none;
}

.hero-flow > * {
  position: relative;
  z-index: 1;
}

/* Third orb */
.hero-flow .hero-orb {
  position: absolute;
  width: 450px;
  height: 450px;
  top: 40%;
  right: 10%;
  transform: translateY(-50%);
  background: radial-gradient(circle, rgba(37, 99, 235, 0.06) 0%, rgba(37, 99, 235, 0) 70%);
  animation: orbFlow3 28s ease-in-out infinite;
  z-index: 0;
  pointer-events: none;
}

@keyframes orbFlow1 {
  0%, 100% { transform: translate(0, 0); }
  25% { transform: translate(80px, 40px); }
  50% { transform: translate(120px, -20px); }
  75% { transform: translate(40px, 60px); }
}

@keyframes orbFlow2 {
  0%, 100% { transform: translate(0, 0); }
  25% { transform: translate(-60px, -50px); }
  50% { transform: translate(-100px, 30px); }
  75% { transform: translate(-30px, -40px); }
}

@keyframes orbFlow3 {
  0%, 100% { transform: translateY(-50%) translate(0, 0); }
  33% { transform: translateY(-50%) translate(-50px, 70px); }
  66% { transform: translateY(-50%) translate(40px, -50px); }
}


.hero-pill-row {
  display: flex;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 36px;
}

.hero-pill {
  font-family: 'Fira Code', monospace;
  font-size: 13px;
  font-weight: 500;
  padding: 10px 18px;
  border-radius: 100px;
  background: rgba(212, 148, 10, 0.1);
  border: 1px solid rgba(212, 148, 10, 0.25);
  color: var(--honey-bronze);
  transition: all 0.25s ease;
  animation: pillPopIn 0.5s ease both;
}

.hero-pill:nth-child(1) { animation-delay: 0.1s; }
.hero-pill:nth-child(2) { animation-delay: 0.2s; }
.hero-pill:nth-child(3) { animation-delay: 0.3s; }

@keyframes pillPopIn {
  0% {
    opacity: 0;
    transform: scale(0.8) translateY(10px);
  }
  100% {
    opacity: 1;
    transform: scale(1) translateY(0);
  }
}

.hero-pill:hover {
  background: rgba(212, 148, 10, 0.18);
  border-color: rgba(212, 148, 10, 0.4);
  transform: translateY(-2px);
}


/* Hero Actions */
.hero-actions {
  display: flex;
  justify-content: center;
  gap: 14px;
  margin-bottom: 28px;
}

.cta {
  font-weight: 600;
  font-size: 13px;
  text-decoration: none;
  padding: 8px 18px;
  border-radius: 8px;
  border: 1.5px solid #1a1a1a;
  color: #1a1a1a;
  background: transparent;
  transition: all 0.25s ease;
}

.cta.primary {
  background: #1a1a1a;
  border-color: #1a1a1a;
  color: #fff;
  font-weight: 600;
}

.cta.ghost {
  border-color: rgba(255, 184, 74, 0.3);
  color: var(--honey-bronze);
}

.cta.dark {
  background: var(--text-primary);
  border-color: var(--text-primary);
  color: #fff;
}

.cta.dark:hover {
  background: #000;
  border-color: #000;
}

.cta:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-sm);
}

.cta.primary:hover {
  box-shadow: 0 12px 32px rgba(255, 184, 74, 0.35);
}

/* Hero Waves */
.hero-waves {
  position: relative;
  width: 100%;
  height: 70px;
  margin-top: 24px;
  overflow: hidden;
  opacity: 0.7;
}

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

.wave-parallax use {
  animation: waveShift 16s cubic-bezier(0.55, 0.5, 0.45, 0.5) infinite;
}

.wave-parallax use:nth-child(1) { animation-delay: -2s; animation-duration: 16s; }
.wave-parallax use:nth-child(2) { animation-delay: -4s; animation-duration: 14s; }
.wave-parallax use:nth-child(3) { animation-delay: -6s; animation-duration: 20s; }
.wave-parallax use:nth-child(4) { animation-delay: -8s; animation-duration: 18s; }

@keyframes waveShift {
  0% { transform: translate3d(-90px, 0, 0); }
  50% { transform: translate3d(20px, 0, 0); }
  100% { transform: translate3d(-90px, 0, 0); }
}

/* Video Demo Section */
.video-demo-section {
  max-width: 960px;
  margin: 48px auto 40px;
  text-align: center;
}

.video-demo-wrapper {
  width: 100%;
  border-radius: 12px;
  overflow: hidden;
  background: #000;
  box-shadow: var(--shadow-md);
}

.demo-video {
  width: 100%;
  display: block;
}

/* ===== Leaderboard Table ===== */

/* Result Tabs */
.result-tabs {
  display: flex;
  gap: 0;
  margin: 24px 0 0 0;
  border-bottom: 2px solid var(--border-light);
}

.result-tab {
  font-family: 'Space Grotesk', -apple-system, sans-serif;
  font-size: 15px;
  font-weight: 500;
  padding: 12px 28px;
  border: none;
  background: none;
  color: var(--text-muted);
  cursor: pointer;
  position: relative;
  transition: color 0.2s ease;
}

.result-tab:hover {
  color: var(--text-primary);
}

.result-tab.active {
  color: var(--honey-bronze);
  font-weight: 600;
}

.result-tab.active::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--honey-bronze);
}

.tab-sub {
  font-size: 13px;
  font-weight: 400;
  color: #9ca3af;
}

.result-tab.active .tab-sub {
  color: var(--honey-bronze);
  opacity: 0.75;
}

.result-tab-content {
  display: none;
}

.result-tab-content.active {
  display: block;
}

.leaderboard-section {
  width: 100%;
  max-width: none;
  margin: 56px auto 48px;
  text-align: left;
  padding: 0;
}

.leaderboard-table-wrapper {
  overflow: hidden;
  border: 1.5px solid #d0d0d0;
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.07), 0 1.5px 6px rgba(0, 0, 0, 0.04);
}

.leaderboard-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 16px;
  font-family: 'Inter', -apple-system, sans-serif;
  white-space: nowrap;
}

/* thead styles */
.leaderboard-table thead {
  position: sticky;
  top: 0;
  z-index: 10;
  background: #fff;
}

.leaderboard-table th,
.leaderboard-table td {
  padding: 7px 12px;
  text-align: center;
  border-bottom: 1px solid #e0e0e0;
  vertical-align: middle;
  font-family: 'JetBrains Mono', 'Fira Code', monospace;
}

.leaderboard-table th:last-child,
.leaderboard-table td:last-child {
  padding-right: 20px;
}

/* Group header row */
.group-header {
  background: #fff;
  font-weight: 600;
  font-size: 12.5px;
  letter-spacing: 0.04em;
  color: #333;
  padding: 8px 12px;
  border-bottom: 2px solid #333;
  border-right: 1px solid #e0e0e0;
}

/* Benchmark header */
.benchmark-header {
  background: #fff;
  font-weight: 600;
  font-size: 14px;
  color: #333;
  text-align: left !important;
  min-width: 130px;
  border-bottom: 2px solid #333;
  vertical-align: bottom;
  padding-bottom: 10px !important;
}

/* Model name cells in header */
.model-name {
  background: #fff;
  padding: 8px 8px !important;
  vertical-align: bottom;
  border-bottom: 2px solid #333;
  min-width: 80px;
}

.m-name {
  display: block;
  font-family: 'JetBrains Mono', 'Fira Code', monospace;
  font-weight: 700;
  font-size: 13px;
  color: #1a1a1a;
  line-height: 1.3;
}

.m-inst {
  display: block;
  font-weight: 400;
  font-size: 10.5px;
  color: #aaa;
  margin-top: 1px;
}

/* Ours column highlight */
.model-name.ours {
  background: rgba(37, 99, 235, 0.06);
  border-bottom: 2px solid var(--blue-energy);
}

.model-name.ours .m-name {
  color: var(--blue-energy);
}

.ours-col {
  background: rgba(100, 140, 200, 0.07);
}

/* Average column highlight */
.avg-col {
  background: rgba(37, 99, 235, 0.06) !important;
  font-weight: 700 !important;
}

/* VLA table: ours row highlight */
.ours-row {
  background: rgba(100, 140, 200, 0.06);
}

.ours-row .sticky-col {
  background: rgba(100, 140, 200, 0.08) !important;
}

.ours-model {
  font-weight: 700 !important;
  color: var(--blue-energy) !important;
}

/* VLA table: model names bold */
.vla-table .bench-name {
  font-family: 'JetBrains Mono', 'Fira Code', monospace;
  font-weight: 700;
  padding-left: 14px !important;
}

/* VLA table: task header smaller */
.vla-table thead th {
  font-size: 12px;
}

/* Icon in table header */
.col-icon {
  width: 32px;
  height: 32px;
  object-fit: contain;
  display: block;
  margin: 0 auto 4px;
}

.icon-table thead th {
  font-size: 11px;
  padding: 8px 6px;
  white-space: nowrap;
}

.icon-table thead th.benchmark-header {
  font-size: 14px;
  vertical-align: bottom;
  padding: 8px 12px 10px !important;
}

/* Sticky first column */
.sticky-col {
  position: sticky;
  left: 0;
  z-index: 5;
  background: #fff;
  text-align: left !important;
  width: 160px;
  max-width: 160px;
}

/* Category separator rows */
.category-row {
  background: #fff;
}

.category-label {
  font-weight: 700;
  font-style: italic;
  font-size: 13px;
  letter-spacing: 0;
  text-transform: none;
  color: #1a1a1a;
  padding: 10px 14px 4px !important;
  background: #fff !important;
  border-bottom: none !important;
}

/* Benchmark split annotation */
.bench-split {
  display: block;
  font-size: 10.5px;
  font-weight: 400;
  color: #999;
  line-height: 1.2;
  margin-top: 1px;
}

/* Benchmark name in first column */
.bench-name {
  font-weight: 400;
  font-size: 14px;
  color: #333;
  padding-left: 24px !important;
  background: #fff;
}

/* Data cell base */
.leaderboard-table tbody td:not(.sticky-col):not(.category-label) {
  font-size: 14px;
  font-weight: 400;
  color: #444;
  font-variant-numeric: tabular-nums;
}

/* Best score: bold + blue + larger */
.leaderboard-table tbody td.score-best {
  font-weight: 800;
  color: var(--blue-energy) !important;
  font-size: 1.15em;
  -webkit-text-stroke: 0.4px var(--blue-energy);
}

/* Best score in overall row: blue + larger (already bold) */
.leaderboard-table tbody td.score-best-overall {
  color: var(--blue-energy) !important;
  font-size: 1.15em;
  font-weight: 800;
  -webkit-text-stroke: 0.4px var(--blue-energy);
}

/* Zebra striping */
.leaderboard-table tbody tr:not(.category-row):nth-child(even) {
  background: #fafafa;
}

.leaderboard-table tbody tr:not(.category-row):nth-child(even) .sticky-col {
  background: #fafafa;
}

/* Ours column stripe */
.leaderboard-table tbody tr:not(.category-row):nth-child(even) .ours-col {
  background: rgba(37, 99, 235, 0.07);
}

/* Overall row styling */
.overall-row {
  border-top: 1.5px solid #999;
}

.overall-name {
  font-weight: 700;
  font-style: italic;
  color: #1a1a1a;
}

.overall-val {
  font-weight: 700 !important;
  color: #1a1a1a !important;
}

/* Ours group header */
.ours-group {
  background: rgba(37, 99, 235, 0.06) !important;
  color: var(--blue-energy) !important;
  border-bottom-color: var(--blue-energy) !important;
}

/* Tagline - Section Headers */
.tagline {
  font-family: 'Space Grotesk', -apple-system, sans-serif;
  font-size: 28px;
  font-weight: 500;
  letter-spacing: -0.02em;
  background: transparent;
  color: var(--text-primary);
  display: block;
  padding: 48px 0 0 0;
  margin: 24px 0 20px 0;
  border: none;
  position: relative;
}

.tagline::before {
  display: none;
}

.tagline::after {
  content: '';
  display: block;
  width: 100%;
  height: 3px;
  background: linear-gradient(90deg, var(--honey-bronze) 0%, rgba(212, 148, 10, 0.15) 40%, transparent 100%);
  border-radius: 2px;
  margin-bottom: 12px;
  margin-top: 24px;
}

/* Images */
img {
  width: 100%;
  border: 1px solid var(--border-subtle);
  border-radius: 20px;
  margin: 0;
  box-sizing: border-box;
  box-shadow: var(--shadow-md);
}

.main-content > img {
  margin-left: 0;
  margin-right: 0;
}

.teaser-image {
  border: 3px solid var(--border-light) !important;
}

/* Card Surface - Refined */
.card-surface {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: 24px;
  padding: 32px;
  box-shadow: var(--shadow-md);
  transition: all 0.3s ease;
}

.card-surface:hover {
  box-shadow: var(--shadow-lg);
}

/* Benchmark carousel */
.carousel-wrapper {
  position: relative;
  display: flex;
  align-items: center;
  gap: 8px;
}

.carousel-viewport {
  overflow: hidden;
  flex: 1;
  min-width: 0;
}

.carousel-track {
  display: flex;
  transition: transform 0.4s ease;
}

.carousel-track .carousel-page {
  flex: 0 0 100%;
  min-width: 0;
}

.carousel-arrow {
  flex-shrink: 0;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1px solid var(--border-light);
  background: var(--bg-surface);
  color: var(--text-secondary);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
  z-index: 2;
}

.carousel-arrow:hover {
  background: var(--bg-elevated);
  box-shadow: var(--shadow-sm);
}

.carousel-arrow:disabled {
  opacity: 0.3;
  cursor: default;
}

.carousel-dots {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 12px;
}

.carousel-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--border-light);
  border: none;
  cursor: pointer;
  padding: 0;
  transition: all 0.2s ease;
}

.carousel-dot.active {
  background: var(--honey-bronze);
  transform: scale(1.3);
}

/* Section styles */
.section {
  font-size: 16px;
  line-height: 1.8;
  margin-bottom: 48px;
  color: var(--text-secondary);
}

.section-heading {
  font-size: 22px;
  margin: 0 0 16px 0;
  color: var(--text-primary);
  padding-left: 18px;
  position: relative;
  letter-spacing: -0.01em;
}

.section-heading::before {
  content: '';
  position: absolute;
  left: 0;
  top: 2px;
  bottom: 2px;
  width: 4px;
  border-radius: 2px;
  background: var(--gradient-warm);
}

.section-lead {
  color: var(--text-muted);
  margin: 0 0 24px 0;
  font-size: 16px;
  font-style: italic;
  line-height: 1.6;
}


@keyframes barGrowUp {
  0% {
    transform: scaleY(0);
  }
  100% {
    transform: scaleY(1);
  }
}



.bar-animated {
  transform-origin: bottom center;
  transform-box: fill-box;
  transform: scaleY(0);
}

.bar-animated.animate {
  animation: barGrowUp 0.6s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
}

@keyframes labelFadeIn {
  0% {
    opacity: 0;
    transform: translateY(5px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

.bar-label-animated {
  opacity: 0;
}

.bar-label-animated.animate {
  animation: labelFadeIn 0.4s ease-out forwards;
}

/* BibTeX */
.bibtex-card {
  background: var(--bg-elevated);
  border: 1px solid var(--border-subtle);
  color: var(--text-secondary);
  padding: 24px 32px;
  border-radius: 16px;
  max-width: 1200px;
  margin: 16px auto;
  box-sizing: border-box;
  font-size: 14px;
  box-shadow: var(--shadow-sm);
}

.bibtex-card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 14px;
}

.bibtex-card-title {
  font-family: 'Space Grotesk', -apple-system, sans-serif;
  font-size: 15px;
  font-weight: 600;
  color: var(--text-primary);
}

.bibtex-venue {
  font-size: 11px;
  font-weight: 500;
  color: var(--honey-bronze);
  background: rgba(212, 148, 10, 0.1);
  padding: 2px 8px;
  border-radius: 4px;
  margin-left: 8px;
  vertical-align: middle;
}

.bibtex-card pre {
  white-space: pre;
  overflow-x: auto;
  margin: 0;
}

.bibtex-card code {
  font-family: 'Fira Code', monospace;
  font-size: 12px;
  line-height: 1.7;
}

.bibtex-copy-btn {
  font-family: 'Space Grotesk', -apple-system, sans-serif;
  font-size: 12px;
  font-weight: 500;
  padding: 5px 14px;
  border: 1px solid var(--border-light);
  border-radius: 6px;
  background: var(--bg-surface);
  color: var(--text-secondary);
  cursor: pointer;
  transition: all 0.2s ease;
}

.bibtex-copy-btn:hover {
  background: var(--bg-elevated);
  color: var(--text-primary);
}

/* EmbodiedEvalKit */
.evalkit-section {
  padding: 36px 40px;
}

.evalkit-logo {
  max-height: 52px;
  width: auto;
  display: block;
  margin: 0 auto 12px;
}

.evalkit-features {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin: 28px 0;
}

.evalkit-feature-item {
  display: flex;
  gap: 14px;
  align-items: flex-start;
}

.evalkit-feature-icon {
  font-size: 22px;
  flex-shrink: 0;
  margin-top: 2px;
}

.evalkit-feature-item h4 {
  font-family: 'Space Grotesk', -apple-system, sans-serif;
  font-size: 14px;
  font-weight: 600;
  margin: 0 0 4px;
  color: var(--text-primary);
}

.evalkit-feature-item p {
  font-size: 13px;
  color: var(--text-secondary);
  line-height: 1.5;
  margin: 0;
}

.evalkit-sub-heading {
  font-family: 'Space Grotesk', -apple-system, sans-serif;
  font-size: 14px;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 12px;
}

.evalkit-benchmarks {
  margin-top: 28px;
  padding-top: 24px;
  border-top: 1px solid var(--border-subtle);
}

.evalkit-bench-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.evalkit-tag {
  font-family: 'Fira Code', monospace;
  font-size: 11px;
  padding: 4px 10px;
  border-radius: 6px;
  background: var(--bg-elevated);
  border: 1px solid var(--border-subtle);
  color: var(--text-secondary);
}

.evalkit-tag.ellipsis,
.evalkit-model-tag.ellipsis {
  background: transparent;
  border: 1px dashed var(--border-subtle);
  color: var(--text-muted);
  letter-spacing: 2px;
}

.evalkit-models {
  margin-top: 24px;
  padding-top: 24px;
  border-top: 1px solid var(--border-subtle);
}

.evalkit-model-grid {
  display: flex;
  gap: 32px;
}

.evalkit-model-group {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}

.evalkit-model-group-label {
  font-size: 11px;
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-right: 4px;
}

.evalkit-model-tag {
  font-size: 12px;
  padding: 4px 10px;
  border-radius: 6px;
  background: var(--bg-elevated);
  border: 1px solid var(--border-subtle);
  color: var(--text-secondary);
}

.evalkit-model-tag.ours {
  background: rgba(212, 148, 10, 0.08);
  border-color: rgba(212, 148, 10, 0.25);
  color: var(--honey-bronze);
  font-weight: 600;
}

.evalkit-note {
  margin-top: 28px;
  padding-top: 20px;
  border-top: 1px solid var(--border-subtle);
  font-size: 14px;
  font-weight: 500;
  color: var(--honey-bronze);
  text-align: center;
}

@media (max-width: 700px) {
  .evalkit-features {
    grid-template-columns: 1fr;
  }
  .evalkit-model-grid {
    flex-direction: column;
    gap: 16px;
  }
}

/* Affordance Video Wall */
.afford-video-wall {
  display: grid;
  grid-template-columns: repeat(8, 1fr);
  gap: 12px;
  margin-top: 24px;
}

.afford-video-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  background: var(--bg-elevated);
  border: 1px solid var(--border-subtle);
  border-radius: 14px;
  overflow: hidden;
  transition: all 0.3s ease;
  box-shadow: var(--shadow-sm);
}

.afford-video-item:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
}

.afford-video-item video {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  display: block;
  border-radius: 0;
  border: none;
  box-shadow: none;
}

.afford-video-label {
  font-family: 'JetBrains Mono', 'Fira Code', monospace;
  font-size: 11px;
  font-weight: 600;
  color: var(--text-secondary);
  padding: 6px 0;
}

@media (max-width: 900px) {
  .afford-video-wall {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 520px) {
  .afford-video-wall {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* Footer */
.footer {
  font-size: 11px;
  color: #aaa;
  margin-top: 120px;
  border-top: 1px solid var(--border-subtle);
  padding-top: 40px;
  text-align: center;
  line-height: 1.8;
}

.footer a {
  color: var(--honey-bronze);
  text-decoration: none;
  transition: opacity 0.2s ease;
}

.footer a:hover {
  opacity: 0.8;
}

/* Responsive — see comprehensive mobile rules at end of file */

/* Smooth scrolling */
html {
  scroll-behavior: smooth;
}

/* Selection */
::selection {
  background: rgba(255, 184, 74, 0.25);
  color: var(--text-primary);
}

/* Focus */
:focus-visible {
  outline: 2px solid var(--honey-bronze);
  outline-offset: 3px;
}

/* Scrollbar */
::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}

::-webkit-scrollbar-track {
  background: var(--bg-elevated);
}

::-webkit-scrollbar-thumb {
  background: var(--border-light);
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: var(--text-muted);
}

/* ═══════════════════════════════════════════ */
/* Hero Compact Overrides                      */
/* ═══════════════════════════════════════════ */
.hero-compact {
  padding-top: 48px;
  padding-bottom: 36px;
}

/* Unified title line */
.hero-title-line {
  text-align: center;
  line-height: 1.3;
  margin-bottom: 28px;
  white-space: nowrap;
}

.hero-title-art {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 46px;
  font-weight: 700;
  font-style: italic;
  letter-spacing: -0.02em;
  background: linear-gradient(135deg, var(--text-primary) 0%, var(--honey-bronze) 60%, var(--neon-violet) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-title-sep {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 46px;
  font-weight: 700;
  font-style: italic;
  color: var(--text-muted);
  margin-right: 8px;
}

.hero-title-rest {
  font-family: 'Space Grotesk', -apple-system, sans-serif;
  font-size: 26px;
  font-weight: 400;
  color: var(--text-secondary);
  vertical-align: baseline;
  position: relative;
  top: -2px;
}

.hero-title-rest .hero-keyword {
  font-weight: 600;
  color: var(--honey-bronze);
}


/* Hero team block with expand */
.hero-team-block {
  text-align: center;
  margin-top: 12px;
  margin-bottom: 24px;
}

.hero-team-header {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  cursor: pointer;
  user-select: none;
  transition: opacity 0.2s ease;
}

.hero-team-header:hover {
  opacity: 0.75;
}

.hero-team-logo {
  height: 72px;
  width: auto;
  object-fit: contain;
}

.hero-team-name {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 28px;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: var(--text-primary);
}
}

.hero-team-arrow {
  transition: transform 0.3s ease;
  opacity: 0.35;
  color: var(--text-muted);
}

.hero-team-block.expanded .hero-team-arrow {
  transform: rotate(180deg);
}

/* Expandable content */
.hero-team-expand {
  max-height: 0;
  overflow: hidden;
  opacity: 0;
  transition: max-height 0.4s ease, opacity 0.3s ease;
}

.hero-team-block.expanded .hero-team-expand {
  max-height: 300px;
  opacity: 1;
}

.hero-team-institutions {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 16px;
  margin-top: 14px;
  margin-bottom: 10px;
}

.hero-team-authors {
  font-family: 'Space Grotesk', -apple-system, sans-serif;
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.8;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
  margin-top: 6px;
}

/* Hero keyword highlights */
.hero-keyword {
  font-weight: 600;
  color: var(--honey-bronze);
}

/* Dark CTA buttons */
.cta.gray {
  background: #1a1a1a;
  border-color: #1a1a1a;
  color: #fff;
}

.cta.gray:hover {
  background: #000;
  border-color: #000;
  color: #fff;
}

/* ═══════════════════════════════════════════ */
/* Bar Chart Grid                              */
/* ═══════════════════════════════════════════ */
.charts-section {
  margin-bottom: 48px;
}


.charts-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-top: 24px;
}

.chart-card {
  background: var(--bg-elevated);
  border: 1px solid var(--border-subtle);
  border-radius: 20px;
  padding: 24px;
  box-shadow: var(--shadow-sm);
  transition: all 0.3s ease;
}

.chart-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
}

.chart-card-title {
  font-family: 'Space Grotesk', -apple-system, sans-serif;
  font-size: 15px;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 16px;
}

.chart-card svg {
  width: 100%;
  display: block;
}

.chart-category {
  margin-bottom: 32px;
}

.category-title {
  font-family: 'Fira Code', monospace;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.05em;
  color: var(--honey-bronze);
  margin-bottom: 16px;
  text-transform: uppercase;
}

@media (max-width: 900px) {
  .charts-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 520px) {
  .charts-grid {
    grid-template-columns: 1fr;
  }
}

/* ═══════════════════════════════════════════ */
/* Chart Legend                                 */
/* ═══════════════════════════════════════════ */
.chart-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  justify-content: center;
  margin-top: 20px;
  padding-top: 16px;
  border-top: 1px solid var(--border-subtle);
}

.chart-legend-item {
  display: flex;
  align-items: center;
  gap: 8px;
}

.chart-legend-logo {
  width: 20px;
  height: 20px;
  border-radius: 4px;
  object-fit: contain;
}

.chart-legend-dot {
  width: 12px;
  height: 12px;
  border-radius: 3px;
  flex-shrink: 0;
}

.chart-legend-name {
  font-size: 13px;
  color: var(--text-secondary);
  font-family: 'Space Grotesk', -apple-system, sans-serif;
  white-space: nowrap;
}

@media (max-width: 520px) {
  .chart-legend {
    gap: 12px;
  }
  .chart-legend-name {
    font-size: 11px;
  }
}

/* ═══════════════════════════════════════════ */
/* Real-World Video Grid                       */
/* ═══════════════════════════════════════════ */
.rw-video-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}

.rw-video-item {
  border-radius: 10px;
  overflow: hidden;
}

.rw-video-item video {
  width: 100%;
  display: block;
  border-radius: 10px;
}

.rw-video-caption {
  font-size: 14px;
  color: var(--text-secondary);
  text-align: center;
  margin: 8px 0 0 0;
  line-height: 1.5;
  font-family: -apple-system, BlinkMacSystemFont, 'Helvetica Neue', Arial, sans-serif;
}

.rw-video-placeholder {
  position: relative;
  width: 100%;
  padding-bottom: 56.25%;
  background: linear-gradient(135deg, #f1f3f5 0%, #e5e7eb 100%);
  border-radius: 10px;
}

.rw-video-num {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-size: 24px;
  font-weight: 700;
  color: #d1d5db;
  font-family: -apple-system, BlinkMacSystemFont, 'Helvetica Neue', Arial, sans-serif;
}

/* ═══════════════════════════════════════════ */
/* Key Contributions — vertical list           */
/* ═══════════════════════════════════════════ */
.kc-list {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.kc-item {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  padding: 16px 0;
  border-bottom: 1px solid var(--border-subtle);
  transition: background 0.2s ease;
}

.kc-item:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.kc-item:first-child {
  padding-top: 0;
}

.kc-num {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: linear-gradient(135deg, #2563eb, #7c3aed);
  color: #fff;
  font-size: 13px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  margin-top: 2px;
}

.kc-body {
  flex: 1;
  min-width: 0;
}

.kc-title {
  font-size: 16px;
  font-weight: 700;
  color: var(--text-primary);
  margin: 0 0 4px 0;
  line-height: 1.4;
  font-family: -apple-system, BlinkMacSystemFont, 'Helvetica Neue', Arial, sans-serif;
}

.kc-desc {
  font-size: 14.5px;
  line-height: 1.7;
  color: var(--text-secondary);
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, 'Helvetica Neue', Arial, sans-serif;
}

.kc-desc strong {
  color: var(--text-primary);
  font-weight: 600;
}

/* ═══════════════════════════════════════════ */
/* Mobile Responsive — max-width: 768px       */
/* ═══════════════════════════════════════════ */
@media (max-width: 768px) {

  /* ── Global ── */
  body {
    padding: 12px 10px;
    font-size: 14px;
  }

  .main-content {
    max-width: 100%;
  }

  /* ── Progress sidebar: hide on mobile ── */
  .progress-sidebar {
    display: none !important;
  }

  /* ── Hero section ── */
  .hero-flow,
  .hero-compact {
    padding: 28px 16px 24px 16px !important;
    border-radius: 18px;
    margin-bottom: 24px;
  }

  .hero-title-line {
    white-space: normal;
    line-height: 1.4;
    margin-bottom: 18px;
  }

  .hero-title-art {
    font-size: 28px !important;
    display: block;
  }

  .hero-title-sep {
    font-size: 28px !important;
  }

  .hero-title-rest {
    font-size: 15px !important;
    display: block;
    margin-top: 6px;
    top: 0;
  }

  .hero-team-logo {
    height: 48px;
  }

  .hero-team-name {
    font-size: 20px;
  }

  .hero-pill-row {
    gap: 8px;
    margin-bottom: 20px;
  }

  .hero-pill {
    font-size: 11px;
    padding: 7px 12px;
  }

  .hero-actions {
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 18px;
  }

  .cta {
    font-size: 12px;
    padding: 7px 14px;
  }

  .hero-waves {
    height: 40px;
  }

  /* Hero team expand */
  .hero-team-institutions,
  .hero-team-authors {
    font-size: 12px !important;
  }

  /* ── Tagline / Section headers ── */
  .tagline {
    font-size: 22px;
    padding-top: 32px;
    margin: 16px 0 14px 0;
  }

  .section-heading {
    font-size: 20px;
  }

  /* ── Card surface ── */
  .card-surface {
    padding: 18px 14px;
    border-radius: 16px;
  }

  /* ── Key Contributions cards (inline styles override) ── */
  .main-content > div > div[style*="grid-template-columns: 1fr 1.4fr 1fr"],
  .main-content > div > div[style*="grid-template-columns: repeat(3"],
  .main-content div[style*="grid-template-columns: 1fr 1.4fr 1fr"] {
    grid-template-columns: 1fr !important;
    gap: 10px !important;
  }

  .main-content div[style*="grid-template-columns: repeat(2, 1fr)"] {
    grid-template-columns: 1fr !important;
    gap: 10px !important;
  }

  /* ── Leaderboard tables ── */
  .leaderboard-table-wrapper {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }

  .leaderboard-table {
    font-size: 12px;
    min-width: 600px;
  }

  .leaderboard-table th,
  .leaderboard-table td {
    padding: 5px 6px;
    font-size: 11px;
  }

  .sticky-col {
    width: 100px;
    max-width: 100px;
  }

  .result-tabs {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }

  .result-tabs::-webkit-scrollbar {
    display: none;
  }

  .result-tab {
    font-size: 13px;
    padding: 10px 16px;
    white-space: nowrap;
  }

  /* ── Video wall (6-col inline → 2-col) ── */
  .video-wall,
  div[style*="grid-template-columns: repeat(6"] {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 4px !important;
  }

  /* ── Affordance video wall ── */
  .afford-video-wall {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 8px;
  }

  .afford-video-label {
    font-size: 9px;
    padding: 4px 0;
  }

  /* ── TL;DR grid ── */

  .tldr-video {
    height: 160px;
    max-height: 160px;
  }

  /* ── Pipeline grid ── */

  /* ── Side by side ── */

  /* ── Co-training split ── */

  /* ── Correlation split ── */
  .correlation-split {
    grid-template-columns: 1fr;
  }

  #comparison-bar,
  #corr-scatter {
    height: 240px;
  }

  /* ── Reconstruction split ── */

  .gsplat-half,
  .mesh-half {
    min-height: 300px;
  }



  /* ── Mesh viewer ── */

  /* ── Stats grid ── */
  .stats-grid {
    grid-template-columns: 1fr;
    gap: 12px;
    margin: 20px 0 32px 0;
  }

  .stats-grid-inline {
    flex-direction: column;
  }

  .stat-card {
    padding: 20px;
  }

  /* ── Metric grid ── */

  .metric-value {
    font-size: 26px;
  }

  /* ── Gallery grid ── */



  .gallery-item video {
    height: 110px;
  }

  /* ── Video gallery (horizontal scroll) ── */
  .gallery-video {
    height: 150px;
  }


  .gallery-caption-container {
    padding: 0 16px;
  }

  /* ── Charts grid ── */
  .charts-grid {
    grid-template-columns: 1fr;
  }

  .chart-card {
    padding: 16px;
  }

  /* ── EvalKit ── */
  .evalkit-section {
    padding: 24px 16px;
  }

  .evalkit-features {
    grid-template-columns: 1fr;
    gap: 14px;
  }

  .evalkit-model-grid {
    flex-direction: column;
    gap: 16px;
  }

  /* ── Capabilities grid ── */


  /* ── Policy video grid ── */

  .policy-list {
    grid-template-columns: 1fr;
  }

  /* ── Slider section ── */

  /* ── R2S layout ── */

  /* ── Figure caption ── */

  /* ── Bar plot ── */
  .bar-plot-wrap {
    padding: 14px;
    overflow-x: auto;
  }

  /* ── Scatter legend ── */

  /* ── Rank lists ── */

  /* ── Co-gallery grid ── */

  /* ── Abstract card: always show full on mobile ── */
  .abstract-teaser {
    opacity: 1 !important;
  }

  .abstract-full {
    max-height: none !important;
    opacity: 1 !important;
    margin-top: 16px !important;
  }

  .abstract-hint {
    display: none;
  }

  /* ── Images ── */
  img {
    border-radius: 12px;
  }

  /* ── Footer ── */
  .footer {
    margin-top: 60px;
    padding-top: 24px;
  }

  /* ── Roadmap ── */

  /* ── SVG charts responsive ── */
  svg {
    max-width: 100%;
    height: auto;
  }

  /* ── Leaderboard section ── */
  .leaderboard-section {
    margin: 32px auto 28px;
  }

  /* ── Video demo ── */
  .video-demo-section {
    margin: 28px auto 24px;
  }

  /* ── Inline flex containers with min-width ── */

}

/* ═══════════════════════════════════════════ */
/* Extra small screens — max-width: 420px     */
/* ═══════════════════════════════════════════ */
@media (max-width: 420px) {

  .kc-item { gap: 10px; padding: 10px 0; }
  .kc-num { width: 22px; height: 22px; font-size: 11px; }
  .kc-title { font-size: 14px; }
  .kc-desc { font-size: 13px; }
  .rw-video-grid { grid-template-columns: repeat(2, 1fr); gap: 8px; }

  body {
    padding: 8px 6px;
  }

  .hero-flow,
  .hero-compact {
    padding: 20px 12px 18px 12px !important;
    border-radius: 14px;
  }

  .hero-title-art {
    font-size: 24px !important;
  }

  .hero-title-sep {
    font-size: 24px !important;
  }

  .hero-title-rest {
    font-size: 13px !important;
  }

  .hero-team-logo {
    height: 36px;
  }

  .hero-team-name {
    font-size: 16px;
  }

  .hero-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .cta {
    text-align: center;
  }

  .tagline {
    font-size: 20px;
  }

  .card-surface {
    padding: 14px 10px;
    border-radius: 14px;
  }





  .gallery-video {
    height: 120px;
  }

  .afford-video-wall {
    grid-template-columns: repeat(2, 1fr) !important;
  }
}
