/* ═══════════════════════════════════════════════════════════════════════════
   UENR-600K Project Page — Dark Theme Stylesheet
   ═══════════════════════════════════════════════════════════════════════════ */

/* ─── CSS Custom Properties ───────────────────────────────────────────────── */
:root {
  /* Colors */
  --bg-primary: #1a1a1a;
  --bg-secondary: #212121;
  --bg-card: #282828;
  --bg-card-hover: #303030;
  --border-subtle: #383838;
  --border-accent: #484848;

  --text-primary: #ececec;
  --text-secondary: #9a9a9a;
  --text-muted: #707070;

  --accent-blue: #4a9eff;
  --accent-purple: #a78bfa;
  --accent-cyan: #22d3ee;
  --accent-warm: #f59e0b;

  /* Typography */
  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-mono: 'JetBrains Mono', 'SF Mono', 'Fira Code', monospace;

  /* Spacing */
  --section-padding: 120px;
  --container-max: 1200px;
  --container-wide: 1400px;

  /* Transitions */
  --transition-fast: 0.15s ease;
  --transition-normal: 0.3s ease;
  --transition-slow: 0.6s ease;
}

/* ─── Reset & Base ────────────────────────────────────────────────────────── */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: var(--font-sans);
  background: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.6;
  overflow-x: hidden;
}

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

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

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

/* ─── Layout ──────────────────────────────────────────────────────────────── */
.container {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 24px;
}

.container-wide {
  max-width: var(--container-wide);
  margin: 0 auto;
  padding: 0 24px;
}

section {
  padding: var(--section-padding) 0;
}

/* ─── Typography ──────────────────────────────────────────────────────────── */
h1, h2, h3, h4, h5, h6 {
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.02em;
}

h1 { font-size: 4rem; }
h2 { font-size: 2.5rem; }
h3 { font-size: 1.5rem; }

.section-label {
  font-size: 0.875rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--accent-blue);
  margin-bottom: 16px;
}

.section-title {
  font-size: 2.5rem;
  margin-bottom: 16px;
}

.section-subtitle {
  font-size: 1.125rem;
  color: var(--text-secondary);
  max-width: 640px;
  line-height: 1.7;
}

/* ─── Scroll Animations ──────────────────────────────────────────────────── */
.fade-in {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity var(--transition-slow), transform var(--transition-slow);
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ─── Hero Section ────────────────────────────────────────────────────────── */
.hero {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding: 80px 24px 60px;
  position: relative;
}

.hero-title {
  font-size: 5rem;
  font-weight: 800;
  letter-spacing: -0.04em;
  background: linear-gradient(135deg, #ffffff 0%, #a0a0a0 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 16px;
}

.hero-title.hero-title-sm {
  font-size: 3.5rem;
  margin-bottom: 10px;
}

.hero-subtitle {
  font-size: 1.5rem;
  color: var(--text-secondary);
  font-weight: 400;
  max-width: 700px;
  margin-bottom: 12px;
}

.hero-subtitle.hero-subtitle-sm {
  font-size: 1.125rem;
  margin-bottom: 28px;
}

.hero-venue {
  font-size: 1rem;
  color: var(--text-muted);
  margin-bottom: 40px;
}

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

/* Pill-shaped buttons */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 28px;
  border-radius: 999px;
  font-size: 0.9375rem;
  font-weight: 600;
  transition: all var(--transition-fast);
  border: none;
  cursor: pointer;
  position: relative;
}

.btn-primary {
  background: var(--text-primary);
  color: var(--bg-primary);
}

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

.btn-outline {
  background: transparent;
  color: var(--text-primary);
  border: 1px solid var(--border-accent);
}

.btn-outline:hover {
  border-color: var(--text-secondary);
  background: rgba(255, 255, 255, 0.05);
  color: var(--text-primary);
}

.btn .btn-icon {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
}

.btn .coming-soon {
  font-size: 0.625rem;
  color: #888;
  font-weight: 400;
  margin-left: 2px;
}

/* Hero dual-showcase grid */
.hero-showcase {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  width: 100%;
  max-width: 1200px;
}

.hero-showcase-card {
  text-align: left;
}

.hero-showcase-card .showcase-label {
  font-size: 1.25rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--accent-blue);
  margin-bottom: 10px;
}

.hero-showcase-card .showcase-desc {
  font-size: 0.875rem;
  color: var(--text-muted);
  margin-top: 10px;
  line-height: 1.5;
}

/* ─── Property Cards (text on top, video below) ──────────────────────────── */
.properties-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
  margin-top: 48px;
}

.property-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: 16px;
  padding: 0;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: all var(--transition-normal);
}

.property-card:hover {
  background: var(--bg-card-hover);
  border-color: var(--border-accent);
}

.property-card-text {
  padding: 24px 24px 16px;
  display: flex;
  flex-direction: column;
}

.property-card h3 {
  margin-bottom: 8px;
  color: var(--text-primary);
  font-size: 1.125rem;
}

.property-card p {
  color: var(--text-secondary);
  font-size: 0.8125rem;
  line-height: 1.55;
}

.property-icon {
  font-size: 1.5rem;
  margin-bottom: 10px;
  display: block;
}

.property-card-video {
  border-top: 1px solid var(--border-subtle);
  margin-top: auto;
}

/* ─── Dataset Display Grid (3-column, lazy load rows) ────────────────────── */
.dataset-display-grid {
  margin-top: 48px;
}

.dataset-display-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-bottom: 16px;
}

.dataset-display-item {
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid var(--border-subtle);
}

.dataset-load-more-wrapper {
  text-align: center;
  margin-top: 8px;
}

.dataset-load-more-btn {
  padding: 10px 28px;
  font-size: 0.875rem;
}

/* ─── Dataset Section ─────────────────────────────────────────────────────── */
.stats-row {
  display: flex;
  gap: 48px;
  margin: 48px 0;
  flex-wrap: wrap;
}

.stat-block {
  text-align: center;
}

.stat-number {
  font-size: 3rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  background: linear-gradient(135deg, var(--accent-blue), var(--accent-cyan));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.stat-label {
  font-size: 0.875rem;
  color: var(--text-muted);
  margin-top: 4px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.dataset-slider-wrapper {
  margin-top: 48px;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid var(--border-subtle);
}

/* ─── Baseline Section ────────────────────────────────────────────────────── */
.architecture-figure {
  margin: 48px 0;
  text-align: center;
}

.architecture-figure img {
  max-width: 100%;
}

.callout {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: 12px;
  padding: 32px;
  text-align: center;
  margin-top: 32px;
}

.callout-number {
  font-size: 3.5rem;
  font-weight: 800;
  background: linear-gradient(135deg, var(--accent-warm), #ef4444);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.callout-text {
  color: var(--text-secondary);
  font-size: 1.125rem;
  margin-top: 8px;
}

.cta-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 1.125rem;
  font-weight: 600;
  color: var(--accent-blue);
  margin-top: 32px;
  transition: gap var(--transition-fast);
}

.cta-link:hover {
  gap: 12px;
  color: var(--accent-cyan);
}

/* ─── Citation Section ────────────────────────────────────────────────────── */
.citation-section {
  background: var(--bg-secondary);
  border-top: 1px solid var(--border-subtle);
}

.bibtex-block {
  position: relative;
  background: var(--bg-primary);
  border: 1px solid var(--border-subtle);
  border-radius: 12px;
  padding: 24px;
  margin-top: 24px;
  font-family: var(--font-mono);
  font-size: 0.8125rem;
  line-height: 1.7;
  color: var(--text-secondary);
  overflow-x: auto;
}

.bibtex-block pre {
  white-space: pre-wrap;
  word-break: break-all;
}

.copy-btn {
  position: absolute;
  top: 12px;
  right: 12px;
  background: var(--bg-card);
  border: 1px solid var(--border-accent);
  color: var(--text-secondary);
  padding: 6px 14px;
  border-radius: 10px;
  font-size: 0.75rem;
  cursor: pointer;
  transition: all var(--transition-fast);
}

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

/* ─── Attribution Text (small, muted) ─────────────────────────────────────── */
.attribution-text {
  font-size: 0.6875rem;
  color: var(--text-muted);
  margin-top: 12px;
  line-height: 1.5;
}

.attribution-text a {
  color: var(--text-muted);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.attribution-text a:hover {
  color: var(--text-secondary);
}

/* ─── Dataset Claim (prominent) ──────────────────────────────────────────── */
.dataset-claim {
  font-size: 1.125rem;
  font-weight: 600;
  color: var(--text-secondary);
  margin-top: 20px;
  margin-bottom: 8px;
  line-height: 1.5;
}

/* ─── Footer ──────────────────────────────────────────────────────────────── */
.footer {
  padding: 32px 0;
  text-align: left;
  color: var(--text-muted);
  font-size: 0.625rem;
  border-top: 1px solid var(--border-subtle);
  line-height: 1.8;
}

.footer a {
  color: var(--text-muted);
  text-decoration: underline;
  text-decoration-color: #444;
  text-underline-offset: 2px;
}

.footer a:hover {
  color: var(--text-secondary);
}

/* ─── Video Slider Component ──────────────────────────────────────────────── */
.video-slider {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border-radius: 8px;
  background: #000;
  user-select: none;
  -webkit-user-select: none;
}

.video-slider video {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.video-slider .video-right {
  clip-path: inset(0 0 0 50%);
  background: #000;
}

.video-slider .slider-handle {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 50%;
  width: 3px;
  background: rgba(255, 255, 255, 0.8);
  cursor: ew-resize;
  z-index: 10;
  transform: translateX(-50%);
}

.video-slider .slider-handle::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.9);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.4);
}

.video-slider .slider-handle::before {
  content: '\2039\00a0\00a0\203a';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-size: 18px;
  font-weight: 700;
  color: #333;
  z-index: 11;
  pointer-events: none;
  white-space: nowrap;
}

.video-slider .slider-label {
  position: absolute;
  bottom: 12px;
  padding: 4px 12px;
  background: rgba(0, 0, 0, 0.7);
  color: #fff;
  font-size: 0.75rem;
  font-weight: 600;
  border-radius: 10px;
  pointer-events: none;
  z-index: 5;
}

.video-slider .label-left {
  left: 12px;
}

.video-slider .label-right {
  right: 12px;
}

/* ─── Video Slider Loading Overlay ─────────────────────────────────────────── */
.video-slider .slider-loading {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: var(--bg-card, #1a1a1a);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 15;
  opacity: 1;
  transition: opacity 0.4s ease;
}

.video-slider .slider-loading.ready {
  opacity: 0;
  pointer-events: none;
}

.slider-spinner {
  width: 32px;
  height: 32px;
  border: 3px solid rgba(255, 255, 255, 0.12);
  border-top-color: var(--accent-blue, #4a9eff);
  border-radius: 50%;
  animation: slider-spin 0.8s linear infinite;
}

@keyframes slider-spin {
  to { transform: rotate(360deg); }
}

/* ─── Comparison Page ─────────────────────────────────────────────────────── */
.comparison-nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: rgba(10, 10, 10, 0.9);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border-subtle);
  padding: 16px 24px;
  display: flex;
  align-items: center;
  gap: 24px;
}

.comparison-nav .back-link {
  font-size: 0.875rem;
  color: var(--text-secondary);
  white-space: nowrap;
}

.comparison-nav .page-title {
  font-size: 1rem;
  font-weight: 600;
}

.comparison-body {
  padding-top: 72px;
}

/* Scene Group Selector */
.scene-selector {
  position: sticky;
  top: 57px;
  z-index: 90;
  background: rgba(10, 10, 10, 0.95);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border-subtle);
  padding: 12px 0;
}

.scene-tabs {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding: 0 24px;
  scrollbar-width: none;
}

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

.scene-tab {
  flex-shrink: 0;
  padding: 8px 18px;
  border-radius: 12px;
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--text-muted);
  background: transparent;
  border: 1px solid var(--border-subtle);
  cursor: pointer;
  transition: all var(--transition-fast);
  white-space: nowrap;
}

.scene-tab:hover {
  color: var(--text-secondary);
  border-color: var(--border-accent);
}

.scene-tab.active {
  color: var(--text-primary);
  background: var(--bg-card);
  border-color: var(--accent-blue);
}

/* Comparison Grid */
.comparison-section {
  padding: 60px 0;
}

.comparison-grid {
  display: grid;
  gap: 20px;
  margin-top: 32px;
}

.comparison-grid.grid-2x4 {
  grid-template-columns: repeat(4, 1fr);
}

.comparison-widget {
  position: relative;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: 12px;
  overflow: hidden;
  transition: border-color var(--transition-fast);
}

.comparison-widget:hover {
  border-color: var(--border-accent);
}

.comparison-widget.highlighted {
  border-color: var(--accent-blue);
  box-shadow: 0 0 0 1px var(--accent-blue);
}

.widget-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 14px;
  border-bottom: 1px solid var(--border-subtle);
}

.widget-model-name {
  font-size: 0.8125rem;
  font-weight: 600;
}

.widget-model-name sup {
  font-size: 0.5rem;
  color: var(--text-muted);
  vertical-align: super;
  margin-left: 2px;
}

.widget-badge {
  font-size: 0.6875rem;
  padding: 2px 8px;
  border-radius: 10px;
  background: var(--accent-blue);
  color: #fff;
  font-weight: 600;
}

.fullscreen-btn {
  background: none;
  border: none;
  color: var(--text-muted);
  cursor: pointer;
  padding: 4px;
  font-size: 1rem;
  transition: color var(--transition-fast);
  line-height: 1;
}

.fullscreen-btn:hover {
  color: var(--text-primary);
}

/* Fullscreen overlay */
.fullscreen-overlay {
  position: fixed;
  inset: 0;
  z-index: 200;
  background: rgba(0, 0, 0, 0.95);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 40px;
}

.fullscreen-overlay.active {
  display: flex;
}

.fullscreen-content {
  width: 100%;
  max-width: 1400px;
  position: relative;
}

.fullscreen-close {
  position: absolute;
  top: -32px;
  right: 0;
  background: none;
  border: none;
  color: var(--text-secondary);
  font-size: 1.5rem;
  cursor: pointer;
  padding: 4px 8px;
}

.fullscreen-close:hover {
  color: var(--text-primary);
}

.fullscreen-model-name {
  position: absolute;
  top: -32px;
  left: 0;
  font-size: 1rem;
  font-weight: 600;
  color: var(--text-primary);
}

/* ─── Comparison Page: References/Footnotes ────────────────────────────────── */
.references-section {
  padding: 40px 0 60px;
  border-top: 1px solid var(--border-subtle);
}

.references-section h3 {
  font-size: 1rem;
  color: var(--text-secondary);
  margin-bottom: 16px;
}

.references-list {
  list-style: none;
  padding: 0;
}

.references-list li {
  font-size: 0.625rem;
  color: var(--text-muted);
  line-height: 1.7;
  margin-bottom: 6px;
  padding-left: 20px;
  position: relative;
  text-align: left;
}

.references-list li .ref-symbol {
  position: absolute;
  left: 0;
  color: var(--text-muted);
  font-size: 0.5625rem;
}

.references-list li em {
  color: var(--text-secondary);
  font-style: normal;
}

/* ─── Dataset comparison: single large slider ─────────────────────────────── */
.dataset-single-slider {
  max-width: 900px;
  margin: 0 auto;
}

.dataset-video-tabs {
  display: flex;
  gap: 8px;
  margin-bottom: 16px;
  flex-wrap: wrap;
  justify-content: center;
}

.dataset-video-tab {
  padding: 6px 16px;
  border-radius: 12px;
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--text-muted);
  background: transparent;
  border: 1px solid var(--border-subtle);
  cursor: pointer;
  transition: all var(--transition-fast);
}

.dataset-video-tab:hover {
  color: var(--text-secondary);
  border-color: var(--border-accent);
}

.dataset-video-tab.active {
  color: var(--text-primary);
  background: var(--bg-card);
  border-color: var(--accent-blue);
}

/* ─── Hero Author Block ──────────────────────────────────────────────────── */
.hero-authors {
  display: flex;
  gap: 24px;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 6px;
}

.hero-authors span {
  font-size: 1.0625rem;
  font-weight: 500;
  color: var(--text-primary);
}

.hero-authors sup {
  font-size: 0.625rem;
  color: var(--text-muted);
  vertical-align: super;
  margin-left: 1px;
}

.hero-affiliations {
  font-size: 0.875rem;
  color: var(--text-secondary);
  margin-bottom: 24px;
}

.hero-affiliations sup {
  font-size: 0.5625rem;
  color: var(--text-muted);
  vertical-align: super;
  margin-right: 1px;
}

/* ─── Pie Chart Component ────────────────────────────────────────────────── */
.pie-chart-row {
  display: flex;
  gap: 32px;
  justify-content: center;
  align-items: flex-start;
  flex-wrap: wrap;
  margin-top: 32px;
}

.pie-chart-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  min-width: 200px;
}

.pie-chart-title {
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--text-secondary);
  text-align: center;
  line-height: 1.4;
}

.pie-chart {
  position: relative;
  width: 160px;
  height: 160px;
}

.pie-chart svg {
  width: 100%;
  height: 100%;
  overflow: visible;
}

.pie-chart-arc {
  cursor: pointer;
  transition: transform 0.25s ease, opacity 0.25s ease;
  transform-origin: 80px 80px;
}

.pie-chart-arc:hover {
  filter: brightness(1.2);
}

.pie-chart-arc.dimmed {
  opacity: 0.35;
  transition: opacity 0.25s ease;
}

/* Sub-segment arcs (expanded from "Others") */
.pie-chart-arc.sub-segment {
  transition: transform 0.35s ease, opacity 0.35s ease;
}

.pie-chart-center {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 90px;
  height: 90px;
  border-radius: 50%;
  background: var(--bg-card);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  pointer-events: none;
  z-index: 2;
}

.pie-chart-center-value {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--text-primary);
  line-height: 1;
}

.pie-chart-center-label {
  font-size: 0.5625rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-top: 2px;
}

.pie-chart-legend {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.pie-chart-legend-item {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.6875rem;
  color: var(--text-muted);
  transition: color 0.2s ease, font-weight 0.2s ease;
  cursor: default;
}

.pie-chart-legend-item.active {
  color: var(--text-primary);
  font-weight: 600;
}

.pie-chart-legend-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  flex-shrink: 0;
  transition: transform 0.2s ease;
}

.pie-chart-legend-item.active .pie-chart-legend-dot {
  transform: scale(1.3);
}

/* Sub-legend items (appear on Others expansion) */
.pie-chart-legend-sub {
  overflow: hidden;
  max-height: 0;
  opacity: 0;
  transition: max-height 0.35s ease, opacity 0.3s ease, margin 0.35s ease;
  margin-left: 14px;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.pie-chart-legend-sub.expanded {
  max-height: 200px;
  opacity: 1;
  margin-top: 2px;
  margin-bottom: 2px;
}

.pie-chart-legend-sub-item {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 0.625rem;
  color: var(--text-muted);
  transition: color 0.2s ease;
}

.pie-chart-legend-sub-item.active {
  color: var(--text-primary);
}

.pie-chart-legend-sub-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  flex-shrink: 0;
}

/* ─── Inline Comparison (Main Page) ──────────────────────────────────────── */
.inline-comparison {
  margin-top: 48px;
}

.inline-comparison h3 {
  font-size: 1.25rem;
  margin-bottom: 8px;
}

.inline-comparison .section-subtitle {
  margin-bottom: 24px;
}

.comparison-grid.grid-1x2 {
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.comparison-grid.grid-1x2-dataset {
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.comparison-grid .dataset-label {
  text-align: center;
  padding: 10px 14px;
  border-bottom: 1px solid var(--border-subtle);
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--text-secondary);
  line-height: 1.4;
}

.comparison-grid .dataset-label small {
  display: block;
  font-size: 0.6875rem;
  font-weight: 400;
  color: var(--text-muted);
}

/* Model comparison grid on main page (4x2 grid) */
.comparison-grid.grid-main-models {
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
}

.comparison-grid.grid-main-models .comparison-widget {
  border-radius: 10px;
}

.comparison-grid.grid-main-models .widget-header {
  padding: 8px 10px;
}

.comparison-grid.grid-main-models .widget-model-name {
  font-size: 0.75rem;
}

/* ─── Inline Scene Selector (non-sticky, within section) ─────────────────── */
.inline-scene-selector {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 20px;
  margin-top: 16px;
}

/* ─── Responsive ──────────────────────────────────────────────────────────── */
@media (max-width: 768px) {
  :root {
    --section-padding: 80px;
  }

  h1, .hero-title { font-size: 3rem; }
  .hero-title.hero-title-sm { font-size: 2.5rem; }
  h2, .section-title { font-size: 1.75rem; }
  .hero-subtitle { font-size: 1.125rem; }
  .hero-subtitle.hero-subtitle-sm { font-size: 1rem; }

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

  .stats-row {
    gap: 24px;
  }

  .stat-number {
    font-size: 2rem;
  }

  .hero-showcase {
    grid-template-columns: 1fr;
  }

  .comparison-grid.grid-2x4 {
    grid-template-columns: repeat(2, 1fr);
  }

  .comparison-grid.grid-1x2,
  .comparison-grid.grid-1x2-dataset {
    grid-template-columns: 1fr;
  }

  .comparison-grid.grid-main-models {
    grid-template-columns: repeat(2, 1fr);
  }

  .dataset-display-row {
    grid-template-columns: 1fr;
  }

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

  .hero-authors {
    gap: 12px;
  }

  .pie-chart-row {
    gap: 24px;
  }
}

@media (max-width: 480px) {
  :root {
    --section-padding: 60px;
  }

  h1, .hero-title { font-size: 2.25rem; }
  h2, .section-title { font-size: 1.5rem; }

  .comparison-grid.grid-2x4,
  .comparison-grid.grid-main-models {
    grid-template-columns: 1fr;
  }

  .comparison-nav {
    padding: 12px 16px;
  }

  .scene-tab {
    padding: 6px 12px;
    font-size: 0.75rem;
  }

  .pie-chart {
    width: 130px;
    height: 130px;
  }

  .pie-chart-center {
    width: 74px;
    height: 74px;
  }

  .pie-chart-center-value {
    font-size: 1.25rem;
  }
}
