:root {
  --bg-primary: #ffffff;
  --bg-secondary: #f8fafc;
  --bg-tertiary: #f1f5f9;
  --bg-dark: #0b1120;
  --bg-dark-card: #131c31;
  --text-primary: #0f172a;
  --text-secondary: #475569;
  --text-muted: #64748b;
  --text-on-dark: #f8fafc;
  --text-on-dark-muted: #94a3b8;
  --accent-primary: #0284c7;
  --accent-secondary: #0d9488;
  --accent-gradient: linear-gradient(135deg, #0284c7 0%, #0d9488 100%);
  --border-light: #e2e8f0;
  --border-dark: #1e293b;
  --shadow-sm: 0 1px 2px 0 rgba(15, 23, 42, 0.05);
  --shadow-md: 0 4px 6px -1px rgba(15, 23, 42, 0.07), 0 2px 4px -2px rgba(15, 23, 42, 0.05);
  --shadow-lg: 0 10px 25px -3px rgba(15, 23, 42, 0.08), 0 4px 10px -4px rgba(15, 23, 42, 0.04);
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-xl: 24px;
  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-mono: 'JetBrains Mono', 'Fira Code', monospace;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: var(--font-sans);
  color: var(--text-primary);
  background-color: var(--bg-primary);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

a {
  color: var(--accent-primary);
  text-decoration: none;
  transition: color 0.2s ease;
}

a:hover {
  color: var(--accent-secondary);
}

.container {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 24px;
}

/* Navigation */
.navbar {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border-light);
}

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

.nav-brand {
  display: flex;
  align-items: center;
  gap: 14px;
  font-weight: 800;
  font-size: 1.35rem;
  color: var(--text-primary);
  letter-spacing: -0.02em;
}

.nav-brand-logo {
  height: 62px;
  width: auto;
  border-radius: 10px;
  display: block;
  object-fit: contain;
  box-shadow: 0 2px 8px rgba(15, 23, 42, 0.2);
}

.nav-brand-badge {
  background: var(--accent-gradient);
  color: white;
  font-size: 0.75rem;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 999px;
  letter-spacing: 0.04em;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 28px;
  list-style: none;
}

.nav-links a {
  color: var(--text-secondary);
  font-size: 0.9rem;
  font-weight: 500;
}

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

/* Hero Section */
.hero {
  position: relative;
  padding: 80px 0 64px;
  background: radial-gradient(circle at 50% 0%, rgba(2, 132, 199, 0.07) 0%, rgba(13, 148, 136, 0.03) 45%, transparent 75%);
  border-bottom: 1px solid var(--border-light);
  text-align: center;
}

.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  background: #f0f9ff;
  border: 1px solid #bae6fd;
  color: #0369a1;
  border-radius: 999px;
  font-size: 0.82rem;
  font-weight: 600;
  margin-bottom: 24px;
  letter-spacing: 0.02em;
}

.hero-title {
  font-size: clamp(2.1rem, 4.5vw, 3.35rem);
  font-weight: 800;
  line-height: 1.14;
  letter-spacing: -0.03em;
  color: var(--text-primary);
  max-width: 920px;
  margin: 0 auto 24px;
}

.hero-title span.gradient-text {
  background: var(--accent-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.authors-list {
  max-width: 940px;
  margin: 0 auto 14px;
  font-size: 1.22rem;
  color: var(--text-secondary);
  line-height: 1.7;
}

.authors-list .author {
  display: inline-block;
  margin: 0 6px;
  font-weight: 500;
  color: var(--text-primary);
}

.authors-list .author a {
  color: inherit;
  text-decoration: none;
  transition: color 0.15s ease;
}

.authors-list .author a:hover {
  color: var(--accent-primary);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.authors-list .author sup {
  color: var(--accent-primary);
  font-weight: 600;
}

.affiliations {
  font-size: 0.88rem;
  color: var(--text-muted);
  margin-bottom: 20px;
}

.institution-logos {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 18px 26px;
  max-width: 960px;
  margin: 0 auto 32px;
}

.institution-logos img {
  height: 34px;
  max-width: 120px;
  width: auto;
  object-fit: contain;
  mix-blend-mode: multiply;
  opacity: 0.9;
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.institution-logos img:hover {
  opacity: 1;
  transform: translateY(-1px);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  margin-bottom: 48px;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 11px 22px;
  border-radius: 999px;
  font-size: 0.94rem;
  font-weight: 600;
  transition: all 0.2s ease;
  cursor: pointer;
  border: none;
}

.btn-primary {
  background: var(--bg-dark);
  color: #ffffff;
  box-shadow: var(--shadow-md);
}

.btn-primary:hover {
  background: #1e293b;
  color: #ffffff;
  transform: translateY(-1px);
  box-shadow: var(--shadow-lg);
}

.btn-secondary {
  background: #ffffff;
  color: var(--text-primary);
  border: 1px solid var(--border-light);
  box-shadow: var(--shadow-sm);
}

.btn-secondary:hover {
  background: var(--bg-secondary);
  border-color: #cbd5e1;
  color: var(--text-primary);
  transform: translateY(-1px);
}

/* Metrics Strip */
.metrics-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  max-width: 920px;
  margin: 0 auto;
  background: #ffffff;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  padding: 24px;
  box-shadow: var(--shadow-md);
}

.metric-item {
  text-align: center;
  padding: 4px 12px;
  border-right: 1px solid var(--border-light);
}

.metric-item:last-child {
  border-right: none;
}

.metric-value {
  font-size: 1.85rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  background: var(--accent-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  line-height: 1.2;
}

.metric-label {
  font-size: 0.82rem;
  font-weight: 500;
  color: var(--text-muted);
  margin-top: 4px;
}

/* Sections */
.section {
  padding: 72px 0;
}

.section-alt {
  background-color: var(--bg-secondary);
  border-top: 1px solid var(--border-light);
  border-bottom: 1px solid var(--border-light);
}

.section-dark {
  background-color: var(--bg-dark);
  color: var(--text-on-dark);
}

.section-header {
  max-width: 880px;
  margin: 0 auto 48px;
  text-align: center;
}

.section-tag {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--accent-primary);
  margin-bottom: 10px;
}

.section-dark .section-tag {
  color: #38bdf8;
}

.section-title {
  font-size: clamp(1.65rem, 3vw, 2.2rem);
  font-weight: 800;
  letter-spacing: -0.025em;
  margin-bottom: 14px;
  line-height: 1.2;
}

.section-subtitle {
  font-size: 1.02rem;
  color: var(--text-secondary);
}

.section-dark .section-subtitle {
  color: var(--text-on-dark-muted);
}

/* Teaser Figure */
.teaser-card {
  max-width: 980px;
  margin: 0 auto 48px;
  background: #ffffff;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-xl);
  padding: 24px;
  box-shadow: var(--shadow-lg);
}

.teaser-card img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: var(--radius-md);
}

.teaser-caption {
  margin-top: 16px;
  padding-top: 14px;
  border-top: 1px solid var(--border-light);
  font-size: 0.9rem;
  color: var(--text-secondary);
  line-height: 1.6;
}

.teaser-caption strong {
  color: var(--text-primary);
}

/* Abstract Card */
.abstract-card {
  max-width: 880px;
  margin: 0 auto;
  background: #ffffff;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  padding: 36px 40px;
  box-shadow: var(--shadow-sm);
  font-size: 1.04rem;
  color: var(--text-secondary);
  line-height: 1.8;
}

.abstract-card p + p {
  margin-top: 16px;
}

.abstract-highlight {
  color: var(--text-primary);
  font-weight: 600;
}

/* Key Findings Grid */
.cards-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.feature-card {
  background: #ffffff;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  padding: 28px;
  box-shadow: var(--shadow-sm);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

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

.feature-icon {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-sm);
  background: #f0f9ff;
  color: var(--accent-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 18px;
}

.feature-card h3 {
  font-size: 1.15rem;
  font-weight: 700;
  margin-bottom: 10px;
  color: var(--text-primary);
}

.feature-card p {
  font-size: 0.94rem;
  color: var(--text-secondary);
  line-height: 1.65;
}

/* Interactive Scaling Visualization */
.scaling-panel {
  background: var(--bg-dark-card);
  border: 1px solid var(--border-dark);
  border-radius: var(--radius-xl);
  padding: 36px;
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 36px;
  align-items: center;
}

.scaling-chart-box {
  background: rgba(15, 23, 42, 0.6);
  border: 1px solid var(--border-dark);
  border-radius: var(--radius-md);
  padding: 24px;
}

.scaling-chart-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px 16px;
  margin-bottom: 16px;
  font-size: 0.85rem;
  color: var(--text-on-dark-muted);
}

.scaling-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 16px;
  font-size: 0.8rem;
}

.legend-item {
  display: flex;
  align-items: center;
  gap: 6px;
  white-space: nowrap;
}

.legend-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
}

.scaling-controls {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.task-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 16px;
}

.task-tab {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-dark);
  color: var(--text-on-dark-muted);
  padding: 8px 14px;
  border-radius: 999px;
  font-size: 0.82rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
}

.task-tab:hover {
  background: rgba(255, 255, 255, 0.1);
  color: var(--text-on-dark);
}

.task-tab.active {
  background: rgba(2, 132, 199, 0.2);
  border-color: #38bdf8;
  color: #38bdf8;
}

.dataset-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 16px;
}

.dataset-pill {
  background: rgba(15, 23, 42, 0.6);
  border: 1px solid var(--border-dark);
  color: var(--text-on-dark-muted);
  padding: 5px 12px;
  border-radius: 6px;
  font-size: 0.78rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s ease;
}

.dataset-pill.active {
  background: #0d9488;
  border-color: #14b8a6;
  color: #ffffff;
}

.scaling-insight-box {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-dark);
  border-radius: var(--radius-md);
  padding: 20px;
}

.scaling-insight-box h4 {
  font-size: 1rem;
  font-weight: 700;
  color: var(--text-on-dark);
  margin-bottom: 8px;
}

.scaling-insight-box p {
  font-size: 0.88rem;
  color: var(--text-on-dark-muted);
  line-height: 1.6;
}

/* Benchmark Table */
.benchmark-tabs {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  margin-bottom: 24px;
}

.benchmark-tab {
  background: #ffffff;
  border: 1px solid var(--border-light);
  color: var(--text-secondary);
  padding: 8px 18px;
  border-radius: 999px;
  font-size: 0.86rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
}

.benchmark-tab:hover {
  border-color: #cbd5e1;
  color: var(--text-primary);
}

.benchmark-tab.active {
  background: var(--bg-dark);
  border-color: var(--bg-dark);
  color: #ffffff;
}

.bar-chart-card {
  background: #ffffff;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  padding: 28px 32px;
  box-shadow: var(--shadow-md);
  max-width: 920px;
  margin: 0 auto;
}

.bar-chart-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 18px;
}

#benchmark-dataset-pills .dataset-pill {
  background: #ffffff;
  border: 1px solid var(--border-light);
  color: var(--text-secondary);
}

#benchmark-dataset-pills .dataset-pill.active {
  background: var(--accent-secondary);
  border-color: var(--accent-secondary);
  color: #ffffff;
}
.retention-summary-card {
  background: var(--bg-dark-card);
  border: 1px solid var(--border-dark);
  border-radius: var(--radius-xl);
  padding: 28px 32px;
  margin-bottom: 28px;
}

.retention-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 20px;
}

.retention-header h3 {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text-on-dark);
}

.retention-header p {
  font-size: 0.85rem;
  color: var(--text-on-dark-muted);
  margin-top: 2px;
}

.retention-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}

.retention-group {
  background: rgba(15, 23, 42, 0.55);
  border: 1px solid var(--border-dark);
  border-radius: var(--radius-md);
  padding: 18px 20px;
}

.retention-group-title {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 14px;
  font-size: 0.92rem;
  font-weight: 700;
}

.retention-row {
  margin-bottom: 12px;
}

.retention-row:last-child {
  margin-bottom: 0;
}

.retention-row-label {
  display: flex;
  justify-content: space-between;
  font-size: 0.8rem;
  color: var(--text-on-dark-muted);
  margin-bottom: 5px;
}

.retention-bar-track {
  height: 10px;
  background: rgba(255, 255, 255, 0.07);
  border-radius: 999px;
  overflow: hidden;
  position: relative;
}

.retention-bar-3vid {
  position: absolute;
  top: 0;
  left: 0;
  height: 100%;
  border-radius: 999px;
  opacity: 0.38;
  transition: width 0.5s ease;
}

.retention-bar-1vid {
  position: absolute;
  top: 0;
  left: 0;
  height: 100%;
  border-radius: 999px;
  transition: width 0.5s ease;
}

.delta-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 18px;
}

.delta-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  border-radius: 999px;
  font-size: 0.8rem;
  font-weight: 700;
}

.delta-badge-low {
  background: #f0f9ff;
  color: #0369a1;
  border: 1px solid #bae6fd;
}

.delta-badge-full {
  background: #f0fdfa;
  color: #0f766e;
  border: 1px solid #99f6e4;
}

.scaling-chart-box .delta-badge-low {
  background: rgba(56, 189, 248, 0.14);
  color: #7dd3fc;
  border: 1px solid rgba(56, 189, 248, 0.35);
}

.scaling-chart-box .delta-badge-full {
  background: rgba(45, 212, 191, 0.14);
  color: #5eead4;
  border: 1px solid rgba(45, 212, 191, 0.35);
}

/* Model Checkpoints & Quick Start */
.models-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
  max-width: 920px;
  margin: 0 auto;
}

.model-card {
  background: #ffffff;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  padding: 28px;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 16px;
}

.model-card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}

.model-card-header h3 {
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--text-primary);
}

.model-tag {
  font-size: 0.76rem;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 999px;
  background: #f0f9ff;
  color: #0369a1;
  border: 1px solid #bae6fd;
}

.model-card p {
  font-size: 0.92rem;
  color: var(--text-secondary);
  line-height: 1.6;
}

.model-specs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.model-spec-pill {
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--text-secondary);
  background: var(--bg-secondary);
  border: 1px solid var(--border-light);
  padding: 4px 10px;
  border-radius: 6px;
}

.eval-callout {
  max-width: 920px;
  margin: 24px auto 0;
  padding: 18px 24px;
  background: linear-gradient(135deg, #f0f9ff 0%, #f0fdfa 100%);
  border: 1px solid #bae6fd;
  border-left: 4px solid var(--accent-primary);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
  box-shadow: var(--shadow-sm);
}

.eval-callout-text {
  font-size: 0.96rem;
  color: var(--text-primary);
  line-height: 1.5;
}

.eval-callout-text strong {
  color: #0369a1;
}

@media (max-width: 768px) {
  .retention-grid,
  .models-grid {
    grid-template-columns: 1fr;
  }
}

.regime-btn {
  text-align: left;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-dark);
  border-radius: var(--radius-md);
  padding: 18px 20px;
  color: var(--text-on-dark);
  cursor: pointer;
  transition: all 0.2s ease;
}

.regime-btn:hover {
  background: rgba(255, 255, 255, 0.06);
}

.regime-btn.active {
  background: rgba(2, 132, 199, 0.14);
  border-color: #38bdf8;
}

.regime-btn h4 {
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 6px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.regime-btn p {
  font-size: 0.88rem;
  color: var(--text-on-dark-muted);
  line-height: 1.55;
}

/* Benchmarks Grid */
.benchmarks-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 16px;
}

.benchmark-col {
  background: #ffffff;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  padding: 20px;
  box-shadow: var(--shadow-sm);
}

.benchmark-col-header {
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--text-primary);
  padding-bottom: 12px;
  margin-bottom: 12px;
  border-bottom: 2px solid var(--accent-primary);
}

.benchmark-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.benchmark-list li {
  font-size: 0.85rem;
  color: var(--text-secondary);
  padding: 6px 10px;
  background: var(--bg-secondary);
  border-radius: 6px;
  font-weight: 500;
}

/* BibTeX */
.bibtex-wrapper {
  max-width: 820px;
  margin: 0 auto;
  position: relative;
}

.bibtex-box {
  background: var(--bg-dark);
  color: #e2e8f0;
  font-family: var(--font-mono);
  font-size: 0.85rem;
  line-height: 1.65;
  padding: 28px;
  border-radius: var(--radius-lg);
  overflow-x: auto;
  border: 1px solid var(--border-dark);
}

.copy-btn {
  position: absolute;
  top: 16px;
  right: 16px;
  background: rgba(255, 255, 255, 0.1);
  color: #f8fafc;
  border: 1px solid rgba(255, 255, 255, 0.15);
  padding: 6px 14px;
  border-radius: 8px;
  font-size: 0.8rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s ease;
}

.copy-btn:hover {
  background: rgba(255, 255, 255, 0.2);
}

/* Footer */
.footer {
  padding: 40px 0;
  border-top: 1px solid var(--border-light);
  text-align: center;
  font-size: 0.88rem;
  color: var(--text-muted);
}

.footer-links {
  display: flex;
  justify-content: center;
  gap: 24px;
  margin-bottom: 12px;
}

/* Responsive */
@media (max-width: 960px) {
  .metrics-strip {
    grid-template-columns: repeat(2, 1fr);
  }
  .metric-item:nth-child(2) {
    border-right: none;
  }
  .cards-grid {
    grid-template-columns: 1fr;
  }
  .scaling-panel {
    grid-template-columns: 1fr;
  }
  .benchmarks-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 600px) {
  .nav-links {
    display: none;
  }
  .metrics-strip {
    grid-template-columns: 1fr;
  }
  .metric-item {
    border-right: none;
    border-bottom: 1px solid var(--border-light);
    padding-bottom: 12px;
  }
  .metric-item:last-child {
    border-bottom: none;
    padding-bottom: 0;
  }
  .abstract-card {
    padding: 24px;
  }
  .benchmarks-grid {
    grid-template-columns: 1fr;
  }
}
