:root {
  --apple-black: #1d1d1f;
  --apple-gray: #86868b;
  --apple-light-gray: #f5f5f7;
  --apple-blue: #0071e3;
  --apple-blue-hover: #0077ed;
  --tah-gradient: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  --gradient-start: #fbfbfd;
  --gradient-end: #f5f5f7;
  --section-padding: 100px 0;
  --max-width: 980px;
  --max-width-wide: 1200px;
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, 'SF Pro Text', 'SF Pro Display', 'Helvetica Neue', Arial, sans-serif;
  font-size: 17px;
  line-height: 1.47059;
  font-weight: 400;
  letter-spacing: -0.022em;
  color: var(--apple-black);
  background: #fff;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Global Navigation */
.nav-global {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 44px;
  background: rgba(251, 251, 253, 0.92);
  backdrop-filter: saturate(180%) blur(20px);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  z-index: 10000;
  border-bottom: 1px solid rgba(0, 0, 0, 0.06);
  transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.nav-global.hidden {
  transform: translateY(-100%);
  pointer-events: none;
}

.nav-global-content {
  max-width: var(--max-width-wide);
  margin: 0 auto;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  padding: 0 22px;
  position: relative;
}

.nav-global-logo {
  height: 20px;
  width: auto;
  opacity: 0.9;
  transition: opacity 0.3s ease;
  flex-shrink: 0;
}

.nav-global-logo:hover {
  opacity: 1;
}

.nav-global-links {
  display: flex;
  gap: 32px;
  align-items: center;
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
}

.nav-global-links a {
  font-size: 12px;
  font-weight: 400;
  color: var(--apple-black);
  text-decoration: none;
  opacity: 0.8;
  transition: opacity 0.3s ease;
  white-space: nowrap;
}

.nav-global-links a:hover {
  opacity: 1;
}

.nav-global-links a.active {
  opacity: 1;
  font-weight: 500;
}

/* Local Navigation */
.nav {
  position: fixed;
  top: 44px;
  left: 0;
  right: 0;
  height: 52px;
  background: rgba(251, 251, 253, 0.95);
  backdrop-filter: saturate(180%) blur(20px);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  z-index: 9999;
  border-bottom: 1px solid rgba(0, 0, 0, 0.08);
  transition: top 0.4s cubic-bezier(0.4, 0, 0.2, 1), background 0.3s ease, box-shadow 0.3s ease, transform 0.4s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.4s ease;
  transform: translateY(-100%);
  opacity: 0;
  pointer-events: none;
}

.nav.nav-visible {
  transform: translateY(0);
  opacity: 1;
  pointer-events: auto;
}

.nav.nav-sticky {
  top: 0;
  background: rgba(251, 251, 253, 0.98);
  box-shadow: 0 1px 0 rgba(0, 0, 0, 0.08);
}

.nav-content {
  max-width: var(--max-width);
  margin: 0 auto;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 22px;
}

/* Project switcher dropdown */
.nav-logo-wrapper {
  position: relative;
}

.nav-logo {
  font-size: 21px;
  font-weight: 600;
  color: var(--apple-black);
  text-decoration: none;
  letter-spacing: -0.02em;
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 8px 0;
  cursor: pointer;
}

.nav-logo-chevron {
  font-size: 10px;
  opacity: 0.5;
  transition: transform 0.3s ease, opacity 0.3s ease;
}

.nav-logo-wrapper:hover .nav-logo-chevron {
  opacity: 0.8;
}

.nav-logo-wrapper.open .nav-logo-chevron {
  transform: rotate(180deg);
  opacity: 1;
}

/* Dropdown menu */
.nav-dropdown {
  position: absolute;
  top: 100%;
  left: -20px;
  width: 580px;
  background: #fff;
  border-radius: 18px;
  box-shadow: 0 10px 50px rgba(0, 0, 0, 0.15), 0 0 0 1px rgba(0, 0, 0, 0.05);
  padding: 20px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-10px);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  z-index: 10001;
}

.nav-logo-wrapper:hover .nav-dropdown,
.nav-logo-wrapper.open .nav-dropdown {
  opacity: 1;
  visibility: visible;
  transform: translateY(8px);
}

.nav-dropdown-title {
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--apple-gray);
  padding: 4px 12px 12px;
}

.nav-dropdown-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 6px;
}

.nav-dropdown-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px;
  border-radius: 12px;
  text-decoration: none;
  transition: background 0.2s ease;
}

.nav-dropdown-item:hover {
  background: var(--apple-light-gray);
}

.nav-dropdown-item.active {
  background: linear-gradient(135deg, rgba(102, 126, 234, 0.1) 0%, rgba(118, 75, 162, 0.1) 100%);
}

.nav-dropdown-icon {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  background: var(--apple-light-gray);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  flex-shrink: 0;
}

.nav-dropdown-icon img {
  width: 36px;
  height: 36px;
  object-fit: contain;
  transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.nav-dropdown-item:hover .nav-dropdown-icon img {
  transform: scale(1.15);
}

.nav-dropdown-text {
  flex: 1;
  min-width: 0;
}

.nav-dropdown-name {
  font-size: 14px;
  font-weight: 600;
  color: var(--apple-black);
  margin-bottom: 3px;
}

.nav-dropdown-desc {
  font-size: 11px;
  color: var(--apple-gray);
  line-height: 1.35;
}

.nav-links {
  display: flex;
  gap: 32px;
  align-items: center;
}

.nav-links a {
  font-size: 12px;
  font-weight: 400;
  color: var(--apple-black);
  text-decoration: none;
  opacity: 0.8;
  transition: opacity 0.3s ease;
}

.nav-links a:hover {
  opacity: 1;
}

.nav-cta {
  background: var(--apple-blue);
  color: #fff !important;
  padding: 8px 16px;
  border-radius: 980px;
  font-weight: 400;
  opacity: 1 !important;
}

.nav-cta:hover {
  background: var(--apple-blue-hover);
}

/* Mobile Menu Toggle */
.mobile-menu-toggle {
  display: none;
  width: 40px;
  height: 40px;
  border: none;
  background: transparent;
  cursor: pointer;
  align-items: center;
  justify-content: center;
  padding: 0;
  margin-left: 8px;
}

.mobile-menu-toggle i {
  font-size: 18px;
  color: var(--apple-black);
  transition: transform 0.3s ease;
}

.mobile-menu-toggle.active i {
  transform: rotate(90deg);
}

/* Animation keyframes */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

/* Scroll reveal animations */
.reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: all 0.8s ease;
}

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

/* Hero Section */
.hero {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 100px 24px 80px;
  background: linear-gradient(180deg, #fff 0%, var(--apple-light-gray) 100%);
  position: relative;
  overflow-x: hidden;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: transparent;
  color: var(--apple-blue);
  border: 1px solid var(--apple-blue);
  padding: 16px 32px;
  border-radius: 980px;
  font-size: 17px;
  font-weight: 400;
  text-decoration: none;
  transition: all 0.3s ease;
}

.hero-badge:hover {
  background: var(--apple-blue);
  color: #fff;
}

.hero-title {
  font-size: clamp(48px, 8vw, 96px);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.045em;
  margin-bottom: 16px;
  padding: 0 10px;
  animation: fadeInUp 0.8s ease-out 0.1s backwards;
}

.hero-title span {
  background: var(--tah-gradient);
  padding-right: 0.05em;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-subtitle {
  font-size: clamp(21px, 3vw, 28px);
  font-weight: 400;
  color: var(--apple-gray);
  max-width: 680px;
  margin: 0 auto 40px;
  line-height: 1.38;
  animation: fadeInUp 0.8s ease-out 0.2s backwards;
}

.hero-stats {
  display: flex;
  gap: 60px;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 48px;
  animation: fadeInUp 0.8s ease-out 0.3s backwards;
}

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

.stat-value {
  font-size: 56px;
  font-weight: 600;
  letter-spacing: -0.03em;
  background: var(--tah-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.stat-label {
  font-size: 14px;
  color: var(--apple-gray);
  margin-top: 4px;
}

.hero-cta {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  justify-content: center;
  animation: fadeInUp 0.8s ease-out 0.4s backwards;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 16px 32px;
  border-radius: 980px;
  font-size: 17px;
  font-weight: 400;
  text-decoration: none;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  cursor: pointer;
  border: none;
}

.btn-primary {
  background: var(--apple-blue);
  color: #fff;
}

.btn-primary:hover {
  background: var(--apple-blue-hover);
  transform: scale(1.02);
}

.btn-secondary {
  background: transparent;
  color: var(--apple-blue);
  border: 1px solid var(--apple-blue);
}

.btn-secondary:hover {
  background: var(--apple-blue);
  color: #fff;
}

/* Section Styles */
.section {
  padding: var(--section-padding);
}

.section-dark {
  background: var(--apple-black);
  color: #fff;
}

.section-gray {
  background: var(--apple-light-gray);
}

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

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

.section-eyebrow {
  font-size: 14px;
  font-weight: 600;
  color: var(--apple-blue);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-bottom: 8px;
}

.section-title {
  font-size: clamp(32px, 5vw, 56px);
  font-weight: 600;
  line-height: 1.1;
  letter-spacing: -0.03em;
  margin-bottom: 16px;
}

.section-subtitle {
  font-size: 21px;
  color: var(--apple-gray);
  max-width: 600px;
  line-height: 1.38;
}

/* Centered section header */
.section-header-centered {
  text-align: center;
}

.section-header-centered .section-subtitle {
  margin: 0 auto;
}

.section-dark .section-subtitle {
  color: rgba(255, 255, 255, 0.7);
}

.text-highlight-gradient {
  background: var(--tah-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.section-dark .text-highlight-gradient {
  background: linear-gradient(135deg, #a78bfa 0%, #c084fc 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* Authors Section */
.authors-section {
  text-align: center;
  padding: 80px 0;
}

.authors-list {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  margin-top: 32px;
}

.author-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 10px 18px;
  background: var(--apple-light-gray);
  border-radius: 980px;
  font-size: 14px;
  font-weight: 500;
  color: var(--apple-black);
  text-decoration: none;
  transition: all 0.2s ease;
}

.author-tag:hover {
  background: var(--apple-blue);
  color: #fff;
}

.author-tag sup {
  font-size: 10px;
  opacity: 0.6;
}

.affiliations {
  margin-top: 24px;
  font-size: 14px;
  color: var(--apple-gray);
  line-height: 1.8;
}

/* Problem Section */
.problem-visual {
  margin: 60px 0;
  text-align: center;
}

/* Overview Section */
.overview-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 64px;
  align-items: center;
  margin-top: 48px;
}

.overview-content {
  display: flex;
  flex-direction: column;
  gap: 32px;
}

.overview-lead {
  font-size: 19px;
  line-height: 1.6;
  color: #444;
}

.overview-points {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.overview-point {
  display: flex;
  align-items: flex-start;
  gap: 16px;
}

.overview-point-icon {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.overview-point-icon.problem {
  background: rgba(239, 68, 68, 0.1);
  color: #ef4444;
}

.overview-point-icon.solution {
  background: rgba(34, 197, 94, 0.1);
  color: #22c55e;
}

.overview-point-text {
  font-size: 16px;
  line-height: 1.5;
  color: #444;
}

.overview-point-text strong {
  color: var(--apple-black);
}

.overview-figure {
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 8px 40px rgba(0, 0, 0, 0.08);
}

.overview-figure img {
  width: 100%;
  height: auto;
  display: block;
}

/* Motivation Section */
.motivation-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 48px;
}

.motivation-card {
  background: #fff;
  border-radius: 16px;
  padding: 32px;
  text-align: center;
  box-shadow: 0 2px 20px rgba(0, 0, 0, 0.04);
  transition: all 0.3s ease;
}

.motivation-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 40px rgba(0, 0, 0, 0.08);
}

.motivation-icon {
  width: 56px;
  height: 56px;
  border-radius: 14px;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
}

.motivation-icon i {
  font-size: 24px;
  color: #fff;
}

.motivation-card h4 {
  font-size: 17px;
  font-weight: 600;
  margin-bottom: 12px;
}

.motivation-card p {
  font-size: 14px;
  line-height: 1.5;
  color: var(--apple-gray);
}

.example-comparison {
  background: #fff;
  border-radius: 16px;
  padding: 32px;
  box-shadow: 0 2px 20px rgba(0, 0, 0, 0.04);
  text-align: center;
}

.example-comparison img {
  max-width: 100%;
  height: auto;
  border-radius: 8px;
}

.example-caption {
  margin-top: 20px;
  font-size: 14px;
  color: var(--apple-gray);
  line-height: 1.5;
}

.problem-diagram {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 40px;
  flex-wrap: wrap;
  margin: 40px 0;
}

.problem-box {
  background: #fff;
  border-radius: 20px;
  padding: 32px;
  text-align: center;
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.08);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  min-width: 200px;
  flex: 1;
  max-width: 280px;
}

.problem-box:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 40px rgba(0, 0, 0, 0.12);
}

.problem-box-icon {
  font-size: 40px;
  margin-bottom: 16px;
}

.problem-box h4 {
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 8px;
}

.problem-box p {
  font-size: 14px;
  color: var(--apple-gray);
}

/* Insight Cards */
.insight-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 60px;
}

.insight-card {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 20px;
  padding: 32px;
  transition: all 0.3s ease;
}

.insight-card:hover {
  background: rgba(255, 255, 255, 0.08);
  transform: translateY(-4px);
}

.insight-percentage {
  font-size: 32px;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 8px;
}

.insight-percentage.green { color: #30d158; }
.insight-percentage.blue { color: #0a84ff; }
.insight-percentage.orange { color: #ff9f0a; }

.insight-label {
  font-size: 17px;
  font-weight: 600;
  color: #fff;
  margin-bottom: 12px;
}

.insight-desc {
  font-size: 14px;
  color: rgba(255, 255, 255, 0.6);
  line-height: 1.5;
}

/* Method Figure */
.method-figure {
  width: 100%;
  max-width: 900px;
  margin: 40px auto;
  border-radius: 16px;
  box-shadow: 0 4px 40px rgba(0, 0, 0, 0.08);
}

.figure-caption {
  text-align: center;
  font-size: 15px;
  color: var(--apple-gray);
  margin-top: 16px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
  line-height: 1.5;
}

/* Oracle Section */
.oracle-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 32px;
  margin-top: 48px;
}

.oracle-card {
  background: #fff;
  padding: 32px;
  border-radius: 20px;
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.08);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.oracle-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 40px rgba(0, 0, 0, 0.12);
}

.oracle-title {
  font-size: 20px;
  font-weight: 600;
  margin-bottom: 8px;
  color: var(--apple-black);
}

.oracle-question {
  font-size: 15px;
  color: var(--apple-gray);
  font-style: italic;
  margin-bottom: 24px;
}

.oracle-table {
  width: 100%;
  border-collapse: collapse;
  margin: 16px 0;
  font-size: 14px;
}

.oracle-table th {
  background: var(--apple-light-gray);
  padding: 12px 16px;
  text-align: center;
  font-weight: 600;
}

.oracle-table td {
  padding: 12px 16px;
  text-align: center;
  border-bottom: 1px solid #eee;
}

.oracle-table tr.highlight {
  background: linear-gradient(135deg, rgba(102, 126, 234, 0.1) 0%, rgba(118, 75, 162, 0.1) 100%);
}

.oracle-table tr.highlight td {
  font-weight: 600;
}

.oracle-image {
  width: 100%;
  border-radius: 12px;
  margin: 16px 0;
}

.oracle-result {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid #eee;
  color: #30d158;
  font-weight: 600;
  font-size: 15px;
}

/* Architecture Section */
.arch-features {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 48px;
}

.arch-feature {
  background: #fff;
  padding: 28px;
  border-radius: 16px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
  text-align: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.arch-feature:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.1);
}

.arch-feature-icon {
  width: 56px;
  height: 56px;
  border-radius: 14px;
  background: var(--tah-gradient);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 16px;
  color: #fff;
  font-size: 24px;
}

.arch-feature h4 {
  font-size: 17px;
  font-weight: 600;
  margin-bottom: 8px;
}

.arch-feature p {
  font-size: 14px;
  color: var(--apple-gray);
  line-height: 1.5;
}

.training-note {
  background: var(--apple-light-gray);
  padding: 20px 28px;
  border-radius: 12px;
  margin-top: 32px;
  text-align: center;
}

.training-note p {
  margin: 0;
  font-size: 15px;
}

/* Results Section */
.results-header {
  margin-bottom: 48px;
}

.results-header.centered {
  text-align: center;
}

/* Results Controls */
.results-controls {
  margin-top: 32px;
}

.model-selector {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 24px;
  flex-wrap: wrap;
}

.model-selector-item {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.model-selector-label {
  font-size: 13px;
  font-weight: 600;
  color: var(--apple-gray);
  display: flex;
  align-items: center;
  gap: 6px;
}

.model-selector-label i {
  font-size: 12px;
}

.model-select {
  padding: 12px 40px 12px 16px;
  font-size: 15px;
  border: 1px solid rgba(0, 0, 0, 0.1);
  border-radius: 12px;
  background: #fff;
  color: var(--apple-black);
  cursor: pointer;
  min-width: 180px;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%2386868b' d='M6 8L2 4h8z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  transition: all 0.2s ease;
}

.model-select:hover {
  border-color: var(--apple-blue);
}

.model-select:focus {
  outline: none;
  border-color: var(--apple-blue);
  box-shadow: 0 0 0 3px rgba(0, 113, 227, 0.1);
}

.model-selector-arrow {
  color: var(--apple-gray);
  font-size: 14px;
  margin-top: 24px;
}

/* Results Summary Card */
.results-summary-card {
  background: #fff;
  border-radius: 16px;
  padding: 32px;
  margin-top: 32px;
  box-shadow: 0 2px 20px rgba(0, 0, 0, 0.04);
}

.summary-stat-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}

.summary-stat-item {
  text-align: center;
}

.summary-stat-value {
  font-size: 36px;
  font-weight: 700;
  background: var(--tah-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.summary-stat-label {
  font-size: 13px;
  color: var(--apple-gray);
  margin-top: 8px;
}

.table-scroll {
  overflow-x: auto;
  margin-top: 16px;
}

.filter-section {
  background: linear-gradient(135deg, #f5f7fa 0%, #e4e8f0 100%);
  padding: 28px;
  border-radius: 20px;
  margin-bottom: 32px;
}

.filter-row {
  display: flex;
  gap: 24px;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
}

.filter-card {
  background: #fff;
  padding: 20px 24px;
  border-radius: 16px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.06);
  min-width: 260px;
  flex: 1;
  max-width: 320px;
}

.filter-card-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
}

.filter-icon {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  color: #fff;
}

.filter-icon.sharer {
  background: linear-gradient(135deg, #30d158, #34c759);
}

.filter-icon.receiver {
  background: linear-gradient(135deg, #0a84ff, #007aff);
}

.filter-label {
  font-size: 14px;
  font-weight: 600;
  color: var(--apple-black);
}

.filter-select {
  width: 100%;
  padding: 10px 14px;
  border: 2px solid #e0e0e0;
  border-radius: 10px;
  font-size: 14px;
  background: #fff;
  cursor: pointer;
  transition: border-color 0.2s ease;
}

.filter-select:focus {
  outline: none;
  border-color: var(--apple-blue);
}

.filter-arrow {
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  color: var(--apple-blue);
}

.results-summary {
  background: var(--tah-gradient);
  padding: 32px;
  border-radius: 20px;
  color: #fff;
  margin-bottom: 32px;
}

.summary-title {
  font-size: 18px;
  font-weight: 600;
  text-align: center;
  margin-bottom: 24px;
}

.summary-stats {
  display: flex;
  justify-content: center;
  gap: 48px;
  flex-wrap: wrap;
}

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

.summary-value {
  font-size: 40px;
  font-weight: 700;
}

.summary-label {
  font-size: 14px;
  opacity: 0.9;
  margin-top: 4px;
}

.results-table-wrapper {
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
  overflow: hidden;
}

.results-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
}

.results-table th {
  background: var(--apple-light-gray);
  padding: 16px 12px;
  text-align: center;
  font-weight: 600;
  color: var(--apple-black);
  border-bottom: 2px solid #e0e0e0;
}

.results-table td {
  padding: 14px 12px;
  text-align: center;
  border-bottom: 1px solid #f0f0f0;
}

.results-table tbody tr:hover {
  background: #f8faff;
}

.results-table .tah-col {
  background: linear-gradient(135deg, rgba(102, 126, 234, 0.1) 0%, rgba(118, 75, 162, 0.1) 100%);
}

.results-table .best {
  font-weight: 700;
  color: #30d158;
}

.time-info {
  font-size: 12px;
  color: var(--apple-gray);
  margin-top: 4px;
}

.results-count {
  text-align: center;
  padding: 16px;
  font-size: 14px;
  color: var(--apple-gray);
  background: var(--apple-light-gray);
}

/* Contributions Section */
.contributions-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 48px;
}

.contribution-card {
  background: #fff;
  padding: 32px;
  border-radius: 20px;
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.08);
  text-align: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.contribution-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 40px rgba(0, 0, 0, 0.12);
}

.contribution-icon {
  width: 64px;
  height: 64px;
  border-radius: 16px;
  background: var(--tah-gradient);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
  color: #fff;
  font-size: 28px;
}

.contribution-card h4 {
  font-size: 20px;
  font-weight: 600;
  margin-bottom: 12px;
}

.contribution-card p {
  font-size: 15px;
  color: var(--apple-gray);
  line-height: 1.5;
}

/* BibTeX Section */
.bibtex-container {
  background: #fff;
  border-radius: 12px;
  padding: 20px;
  margin-top: 0;
  border: 1px solid rgba(0, 0, 0, 0.08);
}

.bibtex-container pre {
  font-family: 'SF Mono', Monaco, 'Courier New', monospace;
  font-size: 13px;
  line-height: 1.6;
  overflow-x: auto;
  margin: 0;
  color: var(--apple-black);
}

.copy-btn {
  padding: 8px 16px;
  border-radius: 8px;
  border: none;
  background: var(--apple-light-gray);
  color: var(--apple-black);
  font-size: 12px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s ease;
}

.copy-btn:hover {
  background: var(--apple-blue);
  color: #fff;
}

/* Expandable Sections */
.expandable-section {
  margin: 24px 0;
  border-radius: 16px;
  overflow: hidden;
  background: #fff;
  box-shadow: 0 2px 20px rgba(0, 0, 0, 0.04);
  transition: box-shadow 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.expandable-section:hover {
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.08);
}

.expandable-section.open {
  box-shadow: 0 8px 40px rgba(0, 0, 0, 0.1);
}

.expandable-header {
  padding: 24px 32px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
}

.expandable-header::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 0;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  transition: width 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  opacity: 0.1;
}

.expandable-section.open .expandable-header::before {
  width: 4px;
  opacity: 1;
}

.expandable-header:hover {
  background: var(--apple-light-gray);
}

/* Dark section expandable hover fix */
.section-dark .expandable-section .expandable-header:hover {
  background: rgba(255, 255, 255, 0.1);
}

.expandable-title {
  font-size: 17px;
  font-weight: 600;
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.expandable-section.open .expandable-title {
  transform: translateX(8px);
}

.expandable-icon {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--apple-light-gray);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.expandable-section.open .expandable-icon {
  transform: rotate(45deg);
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.expandable-section.open .expandable-icon i {
  color: #fff !important;
}

.expandable-content {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.expandable-section.open .expandable-content {
  grid-template-rows: 1fr;
}

.expandable-content-inner {
  overflow: hidden;
}

.expandable-inner {
  padding: 0 32px 32px;
  opacity: 0;
  transform: translateY(-10px);
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1) 0.1s;
}

.expandable-section.open .expandable-inner {
  opacity: 1;
  transform: translateY(0);
}

/* Footer */
.footer {
  padding: 60px 0;
  background: var(--apple-black);
  color: #fff;
}

.footer-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 24px;
}

.footer-text {
  font-size: 14px;
  color: rgba(255, 255, 255, 0.6);
}

.footer-text a {
  color: rgba(255, 255, 255, 0.8);
  text-decoration: none;
  transition: color 0.2s ease;
}

.footer-text a:hover {
  color: #fff;
}

.footer-links {
  display: flex;
  gap: 32px;
}

.footer-links a {
  color: rgba(255, 255, 255, 0.8);
  text-decoration: none;
  font-size: 14px;
  transition: color 0.2s ease;
}

.footer-links a:hover {
  color: #fff;
}

.footer-social {
  display: flex;
  gap: 16px;
}

.footer-social a {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  text-decoration: none;
  transition: all 0.2s ease;
}

.footer-social a:hover {
  background: var(--apple-blue);
  transform: translateY(-2px);
}

/* Scroll to top button */
.scroll-top {
  position: fixed;
  bottom: 32px;
  right: 32px;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--apple-blue);
  color: #fff;
  border: none;
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
  z-index: 999;
  box-shadow: 0 4px 20px rgba(0, 113, 227, 0.4);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
}

.scroll-top.visible {
  opacity: 1;
  visibility: visible;
}

.scroll-top:hover {
  transform: translateY(-4px);
  box-shadow: 0 6px 30px rgba(0, 113, 227, 0.5);
}

/* Responsive */
@media (max-width: 900px) {
  .nav-global-links {
    gap: 20px;
  }

  .nav-global-links a {
    font-size: 11px;
  }

  .nav-dropdown {
    width: 420px;
    left: -10px;
  }

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

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

@media (max-width: 768px) {
  .hero-stats {
    gap: 32px;
  }

  .stat-value {
    font-size: 40px;
  }

  .filter-row {
    flex-direction: column;
  }

  .filter-card {
    max-width: 100%;
  }

  .filter-arrow {
    transform: rotate(90deg);
  }

  .insight-grid,
  .arch-features,
  .contributions-grid,
  .motivation-grid {
    grid-template-columns: 1fr;
  }

  .overview-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .overview-figure {
    order: -1;
  }

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

  .model-selector-arrow {
    transform: rotate(90deg);
    margin-top: 0;
  }

  .summary-stat-grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .summary-stat-value {
    font-size: 28px;
  }

  /* Mobile navigation */
  .nav-links {
    display: none;
    position: fixed;
    top: 52px;
    right: 0;
    left: 0;
    background: rgba(251, 251, 253, 0.98);
    flex-direction: column;
    padding: 16px 24px;
    gap: 0;
    border-bottom: 1px solid rgba(0, 0, 0, 0.08);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    z-index: 9998;
  }

  .nav.nav-sticky .nav-links {
    top: 52px;
  }

  .nav-links.mobile-open {
    display: flex;
  }

  .nav-links a {
    padding: 12px 0;
    font-size: 15px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.06);
  }

  .nav-links a:last-child {
    border-bottom: none;
  }

  .nav-links .nav-cta {
    margin-top: 8px;
    text-align: center;
    justify-content: center;
  }

  .mobile-menu-toggle {
    display: flex;
  }

  /* Global nav font size increase for mobile */
  .nav-global-links a {
    font-size: 13px;
  }
}

@media (max-width: 700px) {
  .nav-global-content {
    justify-content: center;
  }

  .nav-global-logo {
    display: none;
  }

  .nav-global-links {
    position: static;
    transform: none;
  }

  .nav-dropdown {
    position: fixed;
    width: calc(100vw - 32px);
    left: 16px;
    top: 60px;
    transform: translateY(-10px);
  }

  /* Disable hover on mobile - only use click (.open class) */
  .nav-logo-wrapper:hover .nav-dropdown {
    opacity: 0;
    visibility: hidden;
  }

  .nav-logo-wrapper.open .nav-dropdown {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
  }

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

@media (max-width: 480px) {
  .nav-global-links {
    gap: 12px;
  }

  .nav-global-links a {
    font-size: 12px;
  }

  .nav-dropdown-grid {
    grid-template-columns: 1fr;
  }
}

/* ============================================ */
/* TaH-Specific Additions                       */
/* ============================================ */

/* Hero Token Animation */
.hero-animation {
  max-width: 700px;
  margin: 48px auto 0;
  animation: fadeInUp 0.8s ease-out 0.5s backwards;
}

.token-stream {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  font-family: 'SF Mono', Monaco, 'Courier New', monospace;
  font-size: 14px;
  line-height: 2;
  padding: 16px;
  background: rgba(0, 0, 0, 0.03);
  border-radius: 12px;
}

.token {
  padding: 4px 12px;
  border-radius: 8px;
  display: inline-block;
  transition: all 0.3s ease;
}

.token-easy {
  background: #e8f5e9;
  color: #2e7d32;
}

.token-hard {
  background: #fff3e0;
  color: #e65100;
  animation: pulseBorder 2s ease-in-out infinite;
}

@keyframes pulseBorder {
  0%, 100% { box-shadow: 0 0 0 0 rgba(230, 81, 0, 0.2); }
  50% { box-shadow: 0 0 0 4px rgba(230, 81, 0, 0.15); }
}

/* Pipeline Interactive Visualization */
.pipeline-container {
  background: var(--apple-light-gray);
  border-radius: 20px;
  padding: 32px;
}

.pipeline-steps {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding-bottom: 8px;
}

.pipeline-step {
  flex: 1;
  min-width: 120px;
  padding: 16px;
  background: #fff;
  border-radius: 12px;
  text-align: center;
  transition: all 0.3s ease;
  cursor: pointer;
  border: 2px solid transparent;
}

.pipeline-step:hover {
  border-color: rgba(102, 126, 234, 0.3);
}

.pipeline-step.active {
  background: var(--tah-gradient);
  color: #fff;
}

.pipeline-step-number {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--apple-light-gray);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 8px;
  font-size: 13px;
  font-weight: 600;
}

.pipeline-step.active .pipeline-step-number {
  background: rgba(255, 255, 255, 0.2);
  color: #fff;
}

.pipeline-step-name {
  font-size: 13px;
  font-weight: 500;
}

.pipeline-visualization {
  min-height: 200px;
  border-radius: 16px;
  background: #fff;
  padding: 32px;
  margin-top: 16px;
}

.pipeline-content {
  display: none;
  animation: fadeIn 0.5s ease;
}

.pipeline-content.active {
  display: block;
}

/* Model Size Tabs */
.model-tabs {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-bottom: 24px;
}

.model-tab {
  padding: 10px 24px;
  border-radius: 980px;
  border: 1px solid rgba(0, 0, 0, 0.12);
  background: #fff;
  font-size: 15px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.3s ease;
  color: var(--apple-black);
}

.model-tab:hover {
  border-color: var(--apple-blue);
  color: var(--apple-blue);
}

.model-tab.active {
  background: var(--tah-gradient);
  color: #fff;
  border-color: transparent;
}

.model-results {
  display: none;
}

.model-results.active {
  display: block;
}

/* TaH-highlighted table column */
.tah-col {
  background: linear-gradient(135deg, rgba(102, 126, 234, 0.1) 0%, rgba(118, 75, 162, 0.1) 100%);
}

/* Responsive additions for TaH-specific elements */
@media (max-width: 768px) {
  .pipeline-steps {
    flex-wrap: wrap;
  }

  .pipeline-step {
    min-width: calc(50% - 4px);
  }

  .model-tabs {
    flex-wrap: wrap;
  }

  .token-stream {
    font-size: 12px;
  }
}

@media (max-width: 480px) {
  .pipeline-step {
    min-width: 100%;
  }
}
