:root {
  --primary: #2563eb;
  --primary-hover: #1d4ed8;
  --primary-light: #eff6ff;
  --primary-dark: #1e40af;
  
  --secondary: #0284c7;
  --accent: #8b5cf6;
  --success: #10b981;
  --warning: #f59e0b;
  --danger: #ef4444;

  /* Method Colors matching Paper */
  --color-2dts: #0072b2;
  --color-ts: #d55e00;
  --color-ms: #009e73;
  --color-ds: #a45c9f;

  --bg: #fafafa;
  --surface: #ffffff;
  --surface-raised: #f8fafc;
  --surface-border: #e2e8f0;
  
  --text-main: #0f172a;
  --text-muted: #64748b;
  --text-sub: #475569;
  
  --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
  --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
  --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
  --shadow-xl: 0 20px 25px -5px rgb(0 0 0 / 0.1), 0 8px 10px -6px rgb(0 0 0 / 0.1);
  
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 16px;
  --radius-full: 9999px;
  
  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --font-mono: 'JetBrains Mono', ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
}

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

html {
  scroll-behavior: smooth;
  font-family: var(--font-sans);
  color: var(--text-main);
  background-color: var(--bg);
  line-height: 1.6;
}

body {
  overflow-x: hidden;
}

/* Container */
.container {
  width: 100%;
  max-width: 1160px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

.container-narrow {
  max-width: 900px;
}

/* 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(--surface-border);
  transition: all 0.2s ease;
}

.navbar .nav-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}

.nav-brand {
  font-weight: 700;
  font-size: 1.2rem;
  letter-spacing: -0.02em;
  color: var(--text-main);
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.nav-brand .badge {
  font-size: 0.75rem;
  padding: 2px 8px;
  border-radius: var(--radius-full);
  background: var(--primary-light);
  color: var(--primary);
  font-weight: 600;
}

.nav-links {
  display: flex;
  gap: 1.25rem;
  list-style: none;
}

.nav-links a {
  text-decoration: none;
  color: var(--text-muted);
  font-size: 0.9rem;
  font-weight: 500;
  transition: color 0.15s ease;
}

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

/* Header & Hero */
.hero {
  padding: 4rem 0 3rem;
  text-align: center;
  position: relative;
  background: radial-gradient(circle at 50% 0%, rgba(37, 99, 235, 0.05) 0%, transparent 60%);
}

.hero-venue-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.4rem 1.2rem;
  border-radius: var(--radius-full);
  background: white;
  border: 1px solid var(--surface-border);
  box-shadow: var(--shadow-sm);
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--primary);
  margin-bottom: 1.5rem;
}

.hero-title {
  font-size: clamp(2rem, 4vw, 3.25rem);
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.03em;
  color: var(--text-main);
  margin-bottom: 1.25rem;
}

.hero-title span.gradient-text {
  background: linear-gradient(135deg, #1e40af 0%, #0284c7 50%, #0d9488 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-subtitle {
  font-size: clamp(1.05rem, 2vw, 1.3rem);
  color: var(--text-muted);
  font-weight: 400;
  max-width: 820px;
  margin: 0 auto 2rem;
}

.hero-authors {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1.25rem 2rem;
  margin-bottom: 1.25rem;
}

.author-item {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--text-main);
}

.author-item a {
  color: inherit;
  text-decoration: none;
  border-bottom: 1px dashed var(--text-muted);
  transition: color 0.15s ease, border-color 0.15s ease;
}

.author-item a:hover {
  color: var(--primary);
  border-color: var(--primary);
}

.author-item sup {
  color: var(--primary);
  font-weight: 700;
  margin-left: 2px;
}

.hero-affiliations {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1.5rem;
  font-size: 0.95rem;
  color: var(--text-sub);
  margin-bottom: 2rem;
}

.hero-affiliations span sup {
  color: var(--primary);
  font-weight: 700;
  margin-right: 2px;
}

.hero-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.85rem;
  margin-bottom: 2.5rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.65rem 1.3rem;
  font-size: 0.95rem;
  font-weight: 600;
  border-radius: var(--radius-full);
  text-decoration: none;
  cursor: pointer;
  transition: all 0.2s ease;
  border: 1px solid transparent;
}

.btn-primary {
  background: var(--text-main);
  color: white;
  box-shadow: var(--shadow-sm);
}

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

.btn-secondary {
  background: white;
  color: var(--text-main);
  border-color: var(--surface-border);
  box-shadow: var(--shadow-sm);
}

.btn-secondary:hover {
  background: var(--surface-raised);
  border-color: #cbd5e1;
  transform: translateY(-1px);
  box-shadow: var(--shadow-md);
}

.btn-accent {
  background: var(--primary-light);
  color: var(--primary-dark);
  border-color: rgba(37, 99, 235, 0.2);
}

.btn-accent:hover {
  background: #dbeafe;
  transform: translateY(-1px);
}

/* Teaser / Hero Banner */
.teaser-section {
  margin-bottom: 4rem;
}

.teaser-card {
  background: white;
  border-radius: var(--radius-lg);
  border: 1px solid var(--surface-border);
  padding: 1.5rem;
  box-shadow: var(--shadow-lg);
  text-align: center;
}

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

.teaser-caption {
  margin-top: 1.25rem;
  font-size: 0.95rem;
  color: var(--text-sub);
  text-align: left;
  line-height: 1.6;
}

/* Key Findings / Callouts Grid */
.highlights-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1.25rem;
  margin: 2.5rem 0 4rem;
}

.highlight-card {
  background: white;
  border: 1px solid var(--surface-border);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  box-shadow: var(--shadow-sm);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  position: relative;
  overflow: hidden;
}

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

.highlight-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
}

.highlight-card.card-blue::before { background: var(--color-2dts); }
.highlight-card.card-orange::before { background: var(--color-ts); }
.highlight-card.card-green::before { background: var(--color-ms); }
.highlight-card.card-purple::before { background: var(--color-ds); }

.highlight-icon {
  font-size: 1.75rem;
  margin-bottom: 0.75rem;
}

.highlight-title {
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
  color: var(--text-main);
}

.highlight-desc {
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.55;
}

/* Section Common */
.section {
  padding: 3.5rem 0;
  border-top: 1px solid var(--surface-border);
}

.section-header {
  text-align: center;
  max-width: 800px;
  margin: 0 auto 2.5rem;
}

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

.section-title {
  font-size: clamp(1.6rem, 3vw, 2.25rem);
  font-weight: 800;
  letter-spacing: -0.025em;
  color: var(--text-main);
  margin-bottom: 0.75rem;
}

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

/* Abstract */
.abstract-box {
  background: white;
  border-radius: var(--radius-lg);
  border: 1px solid var(--surface-border);
  padding: 2.25rem;
  box-shadow: var(--shadow-sm);
  font-size: 1.05rem;
  line-height: 1.75;
  color: var(--text-sub);
}

.abstract-box p {
  margin-bottom: 1rem;
}

.abstract-box p:last-child {
  margin-bottom: 0;
}

/* Interactive Comparison Section */
.comparison-container {
  background: white;
  border: 1px solid var(--surface-border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
  margin-bottom: 2rem;
}

.comparison-controls {
  padding: 1.25rem 1.5rem;
  background: var(--surface-raised);
  border-bottom: 1px solid var(--surface-border);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.scene-tabs {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.scene-tab {
  padding: 0.45rem 1rem;
  border-radius: var(--radius-full);
  border: 1px solid var(--surface-border);
  background: white;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--text-muted);
  cursor: pointer;
  transition: all 0.15s ease;
}

.scene-tab:hover {
  background: var(--surface-raised);
  color: var(--text-main);
}

.scene-tab.active {
  background: var(--primary);
  color: white;
  border-color: var(--primary);
  box-shadow: var(--shadow-sm);
}

.view-mode-toggle {
  display: flex;
  background: white;
  border: 1px solid var(--surface-border);
  border-radius: var(--radius-full);
  padding: 2px;
}

.view-mode-btn {
  padding: 0.35rem 0.85rem;
  border-radius: var(--radius-full);
  border: none;
  background: transparent;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-muted);
  cursor: pointer;
  transition: all 0.15s ease;
}

.view-mode-btn.active {
  background: var(--text-main);
  color: white;
}

/* Slider View */
.slider-view-wrapper {
  position: relative;
  width: 100%;
  max-width: 900px;
  margin: 0 auto;
  overflow: hidden;
  user-select: none;
  background: #000;
}

.slider-image-container {
  position: relative;
  width: 100%;
  aspect-ratio: 485 / 569;
  max-height: 600px;
  overflow: hidden;
}

.slider-img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: #0b0f19;
}

.slider-img-foreground {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  width: 50%;
}

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

.slider-handle-circle {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: white;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-main);
  font-size: 0.9rem;
}

.slider-label {
  position: absolute;
  bottom: 16px;
  padding: 5px 12px;
  border-radius: var(--radius-sm);
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(4px);
  color: white;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  z-index: 5;
  pointer-events: none;
}

.slider-label.left { left: 16px; }
.slider-label.right { right: 16px; }

/* Grid View (4 conditions side by side) */
.comparison-grid-view {
  display: none;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--surface-border);
  padding: 1px;
}

.grid-column {
  background: white;
  display: flex;
  flex-direction: column;
}

.grid-column-header {
  padding: 0.75rem 1rem;
  font-size: 0.85rem;
  font-weight: 700;
  text-align: center;
  background: var(--surface-raised);
  border-bottom: 1px solid var(--surface-border);
}

.grid-column img {
  width: 100%;
  height: auto;
  display: block;
}

.scene-explanation {
  padding: 1.25rem 1.5rem;
  background: white;
  border-top: 1px solid var(--surface-border);
  font-size: 0.95rem;
  color: var(--text-sub);
  display: flex;
  align-items: center;
  gap: 1rem;
}

.scene-explanation .badge {
  flex-shrink: 0;
  padding: 4px 10px;
  border-radius: var(--radius-full);
  font-size: 0.8rem;
  font-weight: 700;
}

/* Three Paradigms Section */
.paradigms-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  margin-bottom: 3rem;
}

.paradigm-card {
  background: white;
  border-radius: var(--radius-lg);
  border: 1px solid var(--surface-border);
  padding: 1.75rem;
  box-shadow: var(--shadow-sm);
  position: relative;
  display: flex;
  flex-direction: column;
}

.paradigm-badge {
  display: inline-block;
  padding: 3px 10px;
  border-radius: var(--radius-full);
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  margin-bottom: 1rem;
  align-self: flex-start;
}

.badge-gray { background: #f1f5f9; color: #475569; }
.badge-red { background: #fee2e2; color: #b91c1c; }
.badge-emerald { background: #d1fae5; color: #047857; }

.paradigm-title {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--text-main);
  margin-bottom: 0.5rem;
}

.paradigm-desc {
  font-size: 0.925rem;
  color: var(--text-muted);
  line-height: 1.6;
  margin-bottom: 1.25rem;
  flex-grow: 1;
}

.paradigm-features {
  list-style: none;
  font-size: 0.875rem;
  color: var(--text-sub);
  border-top: 1px solid var(--surface-border);
  padding-top: 1rem;
}

.paradigm-features li {
  margin-bottom: 0.5rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

/* Benchmark Tables & Explorer */
.table-card {
  background: white;
  border-radius: var(--radius-lg);
  border: 1px solid var(--surface-border);
  box-shadow: var(--shadow-md);
  overflow: hidden;
  margin-bottom: 2.5rem;
}

.table-header {
  padding: 1.25rem 1.5rem;
  background: var(--surface-raised);
  border-bottom: 1px solid var(--surface-border);
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
}

.table-tabs {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.table-tab {
  padding: 0.4rem 1rem;
  border-radius: var(--radius-full);
  border: 1px solid var(--surface-border);
  background: white;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--text-muted);
  cursor: pointer;
  transition: all 0.15s ease;
}

.table-tab.active {
  background: var(--primary);
  color: white;
  border-color: var(--primary);
}

.table-responsive {
  width: 100%;
  overflow-x: auto;
}

.benchmark-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
  font-size: 0.9rem;
}

.benchmark-table th {
  background: #f8fafc;
  padding: 0.85rem 1rem;
  font-weight: 700;
  color: var(--text-main);
  border-bottom: 2px solid var(--surface-border);
  white-space: nowrap;
}

.benchmark-table td {
  padding: 0.85rem 1rem;
  border-bottom: 1px solid var(--surface-border);
  color: var(--text-sub);
  white-space: nowrap;
}

.benchmark-table tr:hover td {
  background: #f8fafc;
}

.benchmark-table .best-val {
  font-weight: 700;
  color: #1e3a8a;
  background: #eff6ff;
  border-radius: 4px;
  padding: 2px 6px;
}

.benchmark-table .badge-method {
  display: inline-block;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: var(--radius-full);
  font-size: 0.8rem;
}

.badge-2dts { background: rgba(0, 114, 178, 0.12); color: #0072b2; }
.badge-ts { background: rgba(213, 94, 0, 0.12); color: #d55e00; }
.badge-ms { background: rgba(0, 158, 115, 0.12); color: #009e73; }
.badge-ds { background: rgba(164, 92, 159, 0.12); color: #a45c9f; }
.badge-baseline { background: rgba(100, 116, 139, 0.12); color: #475569; }

/* Graphics & Charts Showcase */
.chart-showcase-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
  margin-bottom: 3rem;
}

.chart-card {
  background: white;
  border-radius: var(--radius-lg);
  border: 1px solid var(--surface-border);
  padding: 1.5rem;
  box-shadow: var(--shadow-sm);
}

.chart-card img {
  width: 100%;
  height: auto;
  border-radius: var(--radius-md);
  margin-bottom: 1rem;
  display: block;
}

.chart-card h4 {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text-main);
  margin-bottom: 0.5rem;
}

.chart-card p {
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.55;
}

/* Video Showcase Section */
.video-card {
  background: white;
  border-radius: var(--radius-lg);
  border: 1px solid var(--surface-border);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
  padding: 1.5rem;
  margin-bottom: 2rem;
}

.video-frame-container {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #0f172a;
  border-radius: var(--radius-md);
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.video-frame-container video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.video-placeholder-content {
  text-align: center;
  color: white;
  padding: 2rem;
  max-width: 600px;
}

.video-placeholder-icon {
  font-size: 3rem;
  color: #38bdf8;
  margin-bottom: 1rem;
  animation: pulse 2s infinite ease-in-out;
}

@keyframes pulse {
  0%, 100% { opacity: 0.8; transform: scale(1); }
  50% { opacity: 1; transform: scale(1.08); }
}

.video-script-box {
  margin-top: 1.25rem;
  background: rgba(0, 0, 0, 0.4);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: var(--radius-sm);
  padding: 0.75rem 1rem;
  font-family: var(--font-mono);
  font-size: 0.85rem;
  color: #a5f3fc;
  text-align: left;
  user-select: all;
}

/* Unity Integration & Shaders */
.unity-features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.25rem;
  margin-bottom: 2rem;
}

.unity-feature-item {
  background: white;
  border: 1px solid var(--surface-border);
  border-radius: var(--radius-md);
  padding: 1.25rem;
}

.unity-feature-item code {
  font-family: var(--font-mono);
  font-size: 0.85rem;
  color: var(--primary);
  background: var(--primary-light);
  padding: 2px 6px;
  border-radius: var(--radius-sm);
  display: inline-block;
  margin-bottom: 0.5rem;
}

.unity-feature-item h5 {
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 0.35rem;
}

.unity-feature-item p {
  font-size: 0.875rem;
  color: var(--text-muted);
}

/* Code Snippets Section */
.code-container {
  background: #0f172a;
  border-radius: var(--radius-lg);
  border: 1px solid #1e293b;
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  margin-bottom: 2.5rem;
}

.code-header {
  padding: 0.75rem 1.25rem;
  background: #1e293b;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid #334155;
}

.code-tabs {
  display: flex;
  gap: 0.5rem;
}

.code-tab-btn {
  background: transparent;
  border: none;
  color: #94a3b8;
  font-size: 0.85rem;
  font-weight: 600;
  padding: 0.35rem 0.75rem;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: all 0.15s ease;
}

.code-tab-btn.active {
  background: #334155;
  color: #f8fafc;
}

.code-tab-btn:hover {
  color: #f8fafc;
}

.copy-btn {
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: #cbd5e1;
  font-size: 0.8rem;
  font-weight: 600;
  padding: 0.35rem 0.85rem;
  border-radius: var(--radius-sm);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  transition: all 0.15s ease;
}

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

.code-block {
  padding: 1.25rem 1.5rem;
  overflow-x: auto;
  font-family: var(--font-mono);
  font-size: 0.9rem;
  line-height: 1.6;
  color: #e2e8f0;
}

.code-block code {
  display: block;
  white-space: pre;
}

/* BibTeX block */
.bibtex-box {
  background: #0f172a;
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  position: relative;
  color: #cbd5e1;
  font-family: var(--font-mono);
  font-size: 0.85rem;
  line-height: 1.6;
  overflow-x: auto;
  box-shadow: var(--shadow-md);
}

.bibtex-box pre {
  margin: 0;
  white-space: pre;
}

.bibtex-copy-btn {
  position: absolute;
  top: 1rem;
  right: 1rem;
}

/* Footer */
.footer {
  padding: 3rem 0;
  background: white;
  border-top: 1px solid var(--surface-border);
  text-align: center;
  font-size: 0.9rem;
  color: var(--text-muted);
}

.footer a {
  color: var(--primary);
  text-decoration: none;
}

.footer a:hover {
  text-decoration: underline;
}

/* Toast */
.toast {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  background: #0f172a;
  color: white;
  padding: 0.75rem 1.25rem;
  border-radius: var(--radius-full);
  font-size: 0.875rem;
  font-weight: 600;
  box-shadow: var(--shadow-xl);
  display: flex;
  align-items: center;
  gap: 0.5rem;
  opacity: 0;
  transform: translateY(20px);
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  z-index: 1000;
  pointer-events: none;
}

.toast.show {
  opacity: 1;
  transform: translateY(0);
}

/* -------------------------------------------------------------
 * 3-Way Video Split Slider (Standard -> Dedicated -> Non-Engine)
 * ------------------------------------------------------------- */
.tri-video-container {
  background: white;
  border-radius: var(--radius-lg);
  border: 1px solid var(--surface-border);
  box-shadow: var(--shadow-xl);
  overflow: hidden;
  margin-bottom: 2rem;
}

.tri-video-header {
  padding: 1.25rem 1.5rem;
  background: var(--surface-raised);
  border-bottom: 1px solid var(--surface-border);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.tri-video-canvas {
  position: relative;
  width: 100%;
  aspect-ratio: 1.5 / 1;
  max-height: 620px;
  background: #000;
  overflow: hidden;
  -webkit-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
  user-select: none;
  -webkit-user-drag: none;
  -webkit-touch-callout: none;
  -webkit-tap-highlight-color: transparent;
  touch-action: none;
  --x1: 33.33%;
  --x2: 66.66%;
}

.tri-video-canvas *::selection {
  background: transparent;
}

.tri-video-layer {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  -webkit-user-select: none;
  user-select: none;
}

.tri-video-layer video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  pointer-events: none;
  -webkit-user-drag: none;
  -webkit-user-select: none;
  user-select: none;
}

/* Layer 1: Standard Deployment (Left: 0% -> var(--x1)) */
.tri-video-layer-std {
  z-index: 3;
  clip-path: polygon(0% 0%, var(--x1) 0%, var(--x1) 100%, 0% 100%);
  -webkit-clip-path: polygon(0% 0%, var(--x1) 0%, var(--x1) 100%, 0% 100%);
}

/* Layer 2: Dedicated Deployment (Middle: var(--x1) -> var(--x2)) */
.tri-video-layer-ded {
  z-index: 2;
  clip-path: polygon(var(--x1) 0%, var(--x2) 0%, var(--x2) 100%, var(--x1) 100%);
  -webkit-clip-path: polygon(var(--x1) 0%, var(--x2) 0%, var(--x2) 100%, var(--x1) 100%);
}

/* Layer 3: Non-Engine Render (Right: var(--x2) -> 100%) */
.tri-video-layer-ne {
  z-index: 1;
  clip-path: polygon(var(--x2) 0%, 100% 0%, 100% 100%, var(--x2) 100%);
  -webkit-clip-path: polygon(var(--x2) 0%, 100% 0%, 100% 100%, var(--x2) 100%);
}

/* Dividers */
.tri-divider {
  position: absolute;
  top: 0;
  bottom: 0;
  width: 3px;
  background: rgba(255, 255, 255, 0.95);
  transform: translateX(-50%);
  z-index: 10;
  cursor: ew-resize;
  box-shadow: 0 0 12px rgba(0, 0, 0, 0.7);
  transition: width 0.15s ease, background 0.15s ease;
}

.tri-divider:hover, .tri-divider.active {
  background: #38bdf8;
  width: 5px;
}

.tri-divider-handle {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background: rgba(15, 23, 42, 0.88);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.25);
  color: white;
  padding: 6px 12px;
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  gap: 6px;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.5);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  white-space: nowrap;
  pointer-events: none;
}

.tri-divider-handle i {
  font-size: 0.8rem;
  color: #38bdf8;
}

/* Region Badges */
.tri-region-badge {
  position: absolute;
  top: 16px;
  transform: translateX(-50%);
  padding: 6px 14px;
  border-radius: var(--radius-full);
  background: rgba(15, 23, 42, 0.8);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.18);
  color: white;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  z-index: 5;
  pointer-events: none;
  display: flex;
  align-items: center;
  gap: 6px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.4);
  transition: opacity 0.2s ease;
}

.tri-region-badge .badge-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
}

.badge-dot-std { background: #ef4444; }
.badge-dot-ded { background: #10b981; }
.badge-dot-ne  { background: #3b82f6; }

/* Control Bar */
.tri-video-controls {
  padding: 1rem 1.5rem;
  background: #0f172a;
  border-top: 1px solid #1e293b;
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  color: white;
}

.tri-progress-row {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.tri-seek-bar {
  flex-grow: 1;
  accent-color: #38bdf8;
  height: 6px;
  cursor: pointer;
  border-radius: var(--radius-full);
}

.tri-time-display {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: #94a3b8;
  min-width: 95px;
  text-align: right;
}

.tri-buttons-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
}

.tri-ctrl-group {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.tri-ctrl-btn {
  background: #1e293b;
  border: 1px solid #334155;
  color: #e2e8f0;
  padding: 0.45rem 0.9rem;
  border-radius: var(--radius-sm);
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  transition: all 0.15s ease;
}

.tri-ctrl-btn:hover {
  background: #334155;
  color: white;
}

.tri-preset-label {
  font-size: 0.78rem;
  font-weight: 600;
  color: #94a3b8;
  margin-right: 0.25rem;
}

.tri-preset-btn {
  background: transparent;
  border: 1px solid #334155;
  color: #94a3b8;
  padding: 0.35rem 0.7rem;
  border-radius: var(--radius-sm);
  font-size: 0.75rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.15s ease;
}

.tri-preset-btn:hover, .tri-preset-btn.active {
  background: #38bdf8;
  border-color: #38bdf8;
  color: #0f172a;
}

/* -------------------------------------------------------------
 * 4-Way Image Split Slider (Standard -> Dedicated -> Non-Engine -> GT)
 * ------------------------------------------------------------- */
.quad-img-canvas {
  position: relative;
  width: 100%;
  aspect-ratio: 1.5 / 1;
  max-height: 620px;
  background: #000;
  overflow: hidden;
  -webkit-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
  user-select: none;
  -webkit-user-drag: none;
  -webkit-touch-callout: none;
  -webkit-tap-highlight-color: transparent;
  touch-action: none;
  --img-x1: 25%;
  --img-x2: 50%;
  --img-x3: 75%;
}

.quad-img-canvas *::selection {
  background: transparent;
}

.quad-img-layer {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  -webkit-user-select: none;
  user-select: none;
}

.quad-img-layer img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  pointer-events: none;
  -webkit-user-drag: none;
  -webkit-user-select: none;
  user-select: none;
}

/* Layer 1: Standard Deployment (0% -> var(--img-x1)) */
.quad-img-layer-std {
  z-index: 4;
  clip-path: polygon(0% 0%, var(--img-x1) 0%, var(--img-x1) 100%, 0% 100%);
  -webkit-clip-path: polygon(0% 0%, var(--img-x1) 0%, var(--img-x1) 100%, 0% 100%);
}

/* Layer 2: Dedicated Deployment (var(--img-x1) -> var(--img-x2)) */
.quad-img-layer-ded {
  z-index: 3;
  clip-path: polygon(var(--img-x1) 0%, var(--img-x2) 0%, var(--img-x2) 100%, var(--img-x1) 100%);
  -webkit-clip-path: polygon(var(--img-x1) 0%, var(--img-x2) 0%, var(--img-x2) 100%, var(--img-x1) 100%);
}

/* Layer 3: Non-Engine Render (var(--img-x2) -> var(--img-x3)) */
.quad-img-layer-ne {
  z-index: 2;
  clip-path: polygon(var(--img-x2) 0%, var(--img-x3) 0%, var(--img-x3) 100%, var(--img-x2) 100%);
  -webkit-clip-path: polygon(var(--img-x2) 0%, var(--img-x3) 0%, var(--img-x3) 100%, var(--img-x2) 100%);
}

/* Layer 4: Ground Truth (var(--img-x3) -> 100%) */
.quad-img-layer-gt {
  z-index: 1;
  clip-path: polygon(var(--img-x3) 0%, 100% 0%, 100% 100%, var(--img-x3) 100%);
  -webkit-clip-path: polygon(var(--img-x3) 0%, 100% 0%, 100% 100%, var(--img-x3) 100%);
}

/* Dividers */
.quad-img-divider {
  position: absolute;
  top: 0;
  bottom: 0;
  width: 3px;
  background: rgba(255, 255, 255, 0.95);
  transform: translateX(-50%);
  cursor: ew-resize;
  box-shadow: 0 0 12px rgba(0, 0, 0, 0.7);
  transition: width 0.15s ease, background 0.15s ease;
}

.quad-img-divider-1 { z-index: 13; }
.quad-img-divider-2 { z-index: 12; }
.quad-img-divider-3 { z-index: 11; }

.quad-img-divider:hover, .quad-img-divider.active {
  background: #38bdf8;
  width: 5px;
}

.quad-img-divider-handle {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background: rgba(15, 23, 42, 0.88);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.25);
  color: white;
  padding: 5px 10px;
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  gap: 5px;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.5);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  white-space: nowrap;
  pointer-events: none;
}

.quad-img-divider-handle i {
  font-size: 0.75rem;
  color: #38bdf8;
}

/* Region Badges */
.quad-region-badge {
  position: absolute;
  top: 16px;
  transform: translateX(-50%);
  padding: 6px 12px;
  border-radius: var(--radius-full);
  background: rgba(15, 23, 42, 0.82);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.18);
  color: white;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  z-index: 6;
  pointer-events: none;
  display: flex;
  align-items: center;
  gap: 6px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.4);
  transition: opacity 0.2s ease;
}

.badge-dot-gt { background: #a855f7; }

/* Responsive adjustments */
@media (max-width: 900px) {
  .paradigms-grid {
    grid-template-columns: 1fr;
  }
  .chart-showcase-grid {
    grid-template-columns: 1fr;
  }
  .comparison-grid-view {
    grid-template-columns: repeat(2, 1fr);
  }
  .nav-links {
    display: none;
  }
}

@media (max-width: 640px) {
  .hero-title {
    font-size: 2rem;
  }
  .highlights-grid {
    grid-template-columns: 1fr;
  }
  .comparison-grid-view {
    grid-template-columns: 1fr;
  }
}
