/* ========================================
   FMIP Theme - Cool & Light Blue Theme
   ======================================== */

:root {
  /* Cool Color Palette */
  --fmip-blue: #0ea5e9;
  --fmip-blue-light: #38bdf8;
  --fmip-blue-dark: #0284c7;
  --fmip-cyan: #06b6d4;
  --fmip-cyan-light: #22d3ee;
  --fmip-teal: #14b8a6;
  --fmip-teal-light: #2dd4bf;
  --fmip-indigo: #6366f1;
  --fmip-indigo-light: #818cf8;
  --fmip-violet: #8b5cf6;
  
  /* Cool Neutrals */
  --fmip-bg: #f0f9ff;
  --fmip-bg-cool: #e0f2fe;
  --fmip-card: #ffffff;
  --fmip-text: #0f172a;
  --fmip-text-secondary: #334155;
  --fmip-text-muted: #64748b;
  --fmip-border: #bae6fd;
  --fmip-border-light: #e0f2fe;
  
  /* Gradients */
  --gradient-hero: linear-gradient(135deg, #f0f9ff 0%, #e0f2fe 50%, #cffafe 100%);
  --gradient-blue: linear-gradient(135deg, #0ea5e9 0%, #38bdf8 100%);
  --gradient-cyan: linear-gradient(135deg, #06b6d4 0%, #22d3ee 100%);
  --gradient-teal: linear-gradient(135deg, #14b8a6 0%, #2dd4bf 100%);
  --gradient-indigo: linear-gradient(135deg, #6366f1 0%, #818cf8 100%);
  --gradient-text: linear-gradient(135deg, #0284c7 0%, #0ea5e9 50%, #6366f1 100%);
}

/* Base */
.fmip-theme {
  font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, sans-serif;
  background: var(--fmip-bg);
  color: var(--fmip-text);
  line-height: 1.6;
  overflow-x: hidden;
}

/* Background Pattern */
.fmip-bg-pattern {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -2;
  background-image: 
    radial-gradient(circle at 15% 50%, rgba(14, 165, 233, 0.06) 0%, transparent 50%),
    radial-gradient(circle at 85% 30%, rgba(99, 102, 241, 0.05) 0%, transparent 50%),
    radial-gradient(circle at 50% 80%, rgba(6, 182, 212, 0.05) 0%, transparent 50%);
}

/* Decorative Blobs */
.fmip-blob {
  position: fixed;
  border-radius: 50%;
  filter: blur(100px);
  z-index: -1;
  opacity: 0.35;
}

.blob-orange {
  width: 500px;
  height: 500px;
  background: linear-gradient(135deg, #38bdf8, #0ea5e9);
  top: -100px;
  right: -100px;
  animation: float-blob 15s infinite ease-in-out;
}

.blob-coral {
  width: 400px;
  height: 400px;
  background: linear-gradient(135deg, #818cf8, #6366f1);
  bottom: 20%;
  left: -150px;
  animation: float-blob 18s infinite ease-in-out reverse;
}

.blob-amber {
  width: 300px;
  height: 300px;
  background: linear-gradient(135deg, #22d3ee, #06b6d4);
  top: 40%;
  right: 10%;
  animation: float-blob 12s infinite ease-in-out;
  animation-delay: -5s;
}

@keyframes float-blob {
  0%, 100% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(30px, -30px) scale(1.1); }
}

/* Navigation */
.fmip-nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: rgba(240, 249, 255, 0.9);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--fmip-border);
}

.nav-wrapper {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 0;
}

.fmip-logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
}

.logo-icon {
  width: 40px;
  height: 40px;
  background: var(--gradient-blue);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-family: 'Outfit', sans-serif;
  font-size: 1.5rem;
  font-weight: 800;
}

.logo-text {
  font-family: 'Outfit', sans-serif;
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--fmip-text);
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: 2rem;
}

.nav-item {
  color: var(--fmip-text-secondary);
  text-decoration: none;
  font-weight: 500;
  font-size: 0.95rem;
  transition: color 0.3s;
}

.nav-item:hover {
  color: var(--fmip-blue);
}

.nav-cta {
  padding: 0.5rem 1.25rem;
  background: var(--fmip-text);
  color: white !important;
  border-radius: 50px;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

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

/* Hero Section */
.fmip-hero {
  padding: 10rem 0 6rem;
  min-height: 100vh;
  background: var(--gradient-hero);
}

.hero-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

.hero-content {
  max-width: 600px;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 1rem;
  background: white;
  border: 2px solid var(--fmip-border);
  border-radius: 50px;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--fmip-blue);
  margin-bottom: 1.5rem;
}

.badge-dot {
  width: 8px;
  height: 8px;
  background: var(--fmip-blue);
  border-radius: 50%;
  animation: pulse-dot 2s infinite;
}

@keyframes pulse-dot {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.5; }
}

.hero-title {
  font-family: 'Outfit', sans-serif;
  font-size: 3.5rem;
  font-weight: 800;
  line-height: 1.1;
  margin-bottom: 1.5rem;
  color: var(--fmip-text);
}

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

.hero-subtitle {
  font-size: 1.25rem;
  color: var(--fmip-text-secondary);
  margin-bottom: 2rem;
  line-height: 1.7;
}

.hero-subtitle strong {
  color: var(--fmip-text);
  font-weight: 600;
}

/* Hero Metrics */
.hero-metrics {
  display: flex;
  gap: 2.5rem;
  margin-bottom: 2.5rem;
}

.metric {
  display: flex;
  flex-direction: column;
}

.metric-value {
  font-family: 'Outfit', sans-serif;
  font-size: 2rem;
  font-weight: 700;
  color: var(--fmip-blue);
}

.metric-label {
  font-size: 0.875rem;
  color: var(--fmip-text-muted);
}

/* Buttons */
.hero-actions {
  display: flex;
  gap: 1rem;
  margin-bottom: 3rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.875rem 1.5rem;
  border-radius: 12px;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.3s;
  border: none;
  cursor: pointer;
  font-size: 0.95rem;
}

.btn-primary {
  background: var(--gradient-blue);
  color: white;
  box-shadow: 0 10px 30px -10px rgba(14, 165, 233, 0.5);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 15px 40px -10px rgba(14, 165, 233, 0.6);
}

.btn-secondary {
  background: white;
  color: var(--fmip-text);
  border: 2px solid var(--fmip-border);
}

.btn-secondary:hover {
  border-color: var(--fmip-blue);
  color: var(--fmip-blue);
}

.btn-tertiary {
  background: transparent;
  color: var(--fmip-text-secondary);
}

.btn-tertiary:hover {
  color: var(--fmip-blue);
}

/* Hero Authors */
.hero-authors {
  padding-top: 2rem;
  border-top: 1px solid var(--fmip-border);
}

.author-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1rem;
  margin-bottom: 0.75rem;
}

.author {
  font-weight: 500;
  color: var(--fmip-text-secondary);
}

.author sup {
  color: var(--fmip-blue);
  font-weight: 600;
}

.affiliations {
  font-size: 0.85rem;
  color: var(--fmip-text-muted);
}

.affiliations sup {
  color: var(--fmip-blue);
}

/* Hero Visual */
.hero-visual {
  position: relative;
}

.hero-image-wrapper {
  position: relative;
  border-radius: 24px;
  overflow: hidden;
  box-shadow: 
    0 25px 50px -12px rgba(14, 165, 233, 0.2),
    0 0 0 1px rgba(14, 165, 233, 0.1);
}

.hero-image {
  width: 100%;
  display: block;
}

.image-glow {
  position: absolute;
  inset: -20px;
  background: var(--gradient-blue);
  opacity: 0.15;
  filter: blur(40px);
  z-index: -1;
}

/* Sections */
.fmip-section {
  padding: 6rem 0;
}

.section-header {
  margin-bottom: 3rem;
}

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

.section-tag {
  display: inline-block;
  padding: 0.375rem 1rem;
  background: rgba(14, 165, 233, 0.1);
  color: var(--fmip-blue);
  border-radius: 50px;
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 1rem;
}

.section-tag.blue { background: rgba(14, 165, 233, 0.1); color: var(--fmip-blue); }
.section-tag.cyan { background: rgba(6, 182, 212, 0.1); color: var(--fmip-cyan); }
.section-tag.indigo { background: rgba(99, 102, 241, 0.1); color: var(--fmip-indigo); }

.section-title {
  font-family: 'Outfit', sans-serif;
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--fmip-text);
  margin-bottom: 0.5rem;
}

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

/* Abstract Section */
.section-abstract {
  background: white;
}

.abstract-grid {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 2rem;
}

.abstract-card {
  background: var(--fmip-bg);
  border-radius: 20px;
  padding: 2.5rem;
  border: 1px solid var(--fmip-border);
}

.main-card p {
  color: var(--fmip-text-secondary);
  font-size: 1.1rem;
  line-height: 1.8;
  margin-bottom: 1.25rem;
}

.main-card p:last-child {
  margin-bottom: 0;
}

.lead-text {
  font-size: 1.25rem;
  color: var(--fmip-text) !important;
  font-weight: 500;
}

.fmip-highlight {
  color: var(--fmip-blue);
  font-weight: 700;
}

.main-card strong {
  color: var(--fmip-text);
  font-weight: 600;
}

.highlight-card {
  background: var(--gradient-blue);
  color: white;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.card-icon {
  width: 60px;
  height: 60px;
  background: rgba(255, 255, 255, 0.2);
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  margin-bottom: 1rem;
}

.highlight-card h3 {
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
  opacity: 0.9;
}

.big-number {
  font-family: 'Outfit', sans-serif;
  font-size: 4rem;
  font-weight: 800;
  margin-bottom: 0.5rem;
}

.card-desc {
  font-size: 0.95rem;
  opacity: 0.9;
  line-height: 1.5;
}

/* Innovation Section */
.section-innovation {
  background: var(--fmip-bg);
}

.comparison-showcase {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 2rem;
  align-items: center;
  margin-bottom: 4rem;
}

.compare-card {
  background: white;
  border-radius: 20px;
  padding: 2rem;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
}

.compare-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1.5rem;
}

.compare-label {
  font-weight: 600;
  color: var(--fmip-text);
}

.compare-header i {
  font-size: 1.5rem;
}

.old-way .compare-header i { color: #94a3b8; }
.fmip-way .compare-header i { color: #10b981; }

.compare-visual {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1.5rem;
  padding: 1rem;
  background: var(--fmip-bg);
  border-radius: 12px;
}

.var-box, .result-box {
  padding: 0.75rem 1rem;
  border-radius: 8px;
  font-size: 0.85rem;
  font-weight: 600;
}

.int-only {
  background: #fee2e2;
  color: #dc2626;
}

.joint {
  background: #dcfce7;
  color: #16a34a;
}

.partial {
  background: #f1f5f9;
  color: #64748b;
}

.complete {
  background: #dbeafe;
  color: #2563eb;
}

.arrow {
  color: var(--fmip-text-muted);
  font-weight: 700;
}

.compare-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.compare-list li {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.5rem 0;
  color: var(--fmip-text-secondary);
  font-size: 0.95rem;
}

.compare-list i {
  font-size: 0.875rem;
}

.old-way .compare-list i { color: #ef4444; }
.fmip-way .compare-list i { color: #10b981; }

.vs-divider {
  display: flex;
  align-items: center;
  justify-content: center;
}

.vs-divider span {
  width: 50px;
  height: 50px;
  background: var(--gradient-cyan);
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.875rem;
}

.method-image {
  background: white;
  border-radius: 20px;
  padding: 2rem;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
  text-align: center;
}

.method-image img {
  width: 100%;
  max-width: 800px;
  border-radius: 12px;
  margin-bottom: 1rem;
}

.image-caption {
  color: var(--fmip-text-muted);
  font-size: 0.95rem;
}

/* Features Grid */
.section-features {
  background: white;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
}

.feature-tile {
  background: white;
  border-radius: 20px;
  padding: 2rem;
  position: relative;
  overflow: hidden;
  border: 2px solid transparent;
  transition: all 0.3s;
}

.tile-blue { border-color: rgba(14, 165, 233, 0.2); }
.tile-cyan { border-color: rgba(6, 182, 212, 0.2); }
.tile-teal { border-color: rgba(20, 184, 166, 0.2); }
.tile-indigo { border-color: rgba(99, 102, 241, 0.2); }

.feature-tile:hover {
  transform: translateY(-5px);
  box-shadow: 0 20px 40px -20px rgba(0, 0, 0, 0.15);
}

.tile-icon {
  width: 56px;
  height: 56px;
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  color: white;
  margin-bottom: 1.5rem;
}

.tile-blue .tile-icon { background: var(--gradient-blue); }
.tile-cyan .tile-icon { background: var(--gradient-cyan); }
.tile-teal .tile-icon { background: var(--gradient-teal); }
.tile-indigo .tile-icon { background: var(--gradient-indigo); }

.feature-tile h3 {
  font-family: 'Outfit', sans-serif;
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--fmip-text);
  margin-bottom: 0.75rem;
}

.feature-tile p {
  color: var(--fmip-text-secondary);
  font-size: 0.95rem;
  line-height: 1.6;
}

.tile-number {
  position: absolute;
  top: 1.5rem;
  right: 1.5rem;
  font-family: 'Outfit', sans-serif;
  font-size: 3rem;
  font-weight: 800;
  opacity: 0.1;
  color: var(--fmip-blue);
}

/* Results Section */
.section-results {
  background: var(--fmip-bg);
}

.stats-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
  margin-bottom: 3rem;
}

.stat-card {
  background: white;
  border-radius: 16px;
  padding: 1.5rem;
  display: flex;
  align-items: center;
  gap: 1rem;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
}

.stat-card.highlight {
  background: var(--gradient-blue);
  color: white;
}

.stat-card.highlight .stat-number,
.stat-card.highlight .stat-desc {
  color: white;
}

.stat-icon {
  width: 48px;
  height: 48px;
  background: var(--fmip-bg);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  color: var(--fmip-blue);
}

.stat-card.highlight .stat-icon {
  background: rgba(255, 255, 255, 0.2);
  color: white;
}

.stat-number {
  font-family: 'Outfit', sans-serif;
  font-size: 2rem;
  font-weight: 700;
  color: var(--fmip-text);
  display: block;
}

.stat-desc {
  color: var(--fmip-text-muted);
  font-size: 0.875rem;
}

/* Gallery */
.gallery-grid {
  display: grid;
  grid-template-columns: 2fr 1fr;
  grid-template-rows: repeat(2, 200px);
  gap: 1.5rem;
  margin-bottom: 3rem;
}

.gallery-item {
  position: relative;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.gallery-item.large {
  grid-row: span 2;
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.gallery-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 1rem;
  background: linear-gradient(transparent, rgba(15, 23, 42, 0.8));
  color: white;
  font-weight: 500;
}

/* Benchmark Section */
.benchmark-section {
  background: white;
  border-radius: 20px;
  padding: 2rem;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
}

.benchmark-title {
  font-family: 'Outfit', sans-serif;
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--fmip-text);
  margin-bottom: 1.5rem;
  text-align: center;
}

.benchmark-tags {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.75rem;
}

.b-tag {
  padding: 0.625rem 1.25rem;
  background: var(--fmip-bg);
  border: 1px solid var(--fmip-border);
  border-radius: 50px;
  color: var(--fmip-text-secondary);
  font-size: 0.9rem;
  font-weight: 500;
  transition: all 0.3s;
}

.b-tag:hover {
  background: var(--fmip-blue);
  border-color: var(--fmip-blue);
  color: white;
}

/* CTA Section */
.section-cta {
  background: white;
  padding-bottom: 3rem;
}

.cta-box {
  background: var(--gradient-indigo);
  border-radius: 24px;
  padding: 4rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: white;
  position: relative;
  overflow: hidden;
}

.cta-box::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -20%;
  width: 400px;
  height: 400px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 50%;
}

.cta-content {
  position: relative;
  z-index: 1;
}

.cta-content h2 {
  font-family: 'Outfit', sans-serif;
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.cta-content p {
  opacity: 0.9;
  margin-bottom: 1.5rem;
}

.btn-cta {
  background: white;
  color: var(--fmip-indigo);
  padding: 1rem 2rem;
  font-size: 1rem;
}

.btn-cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 30px -10px rgba(0, 0, 0, 0.3);
}

.cta-decoration {
  font-size: 8rem;
  opacity: 0.2;
  position: relative;
  z-index: 1;
}

/* BibTeX */
.section-bibtex {
  background: var(--fmip-bg);
}

.bibtex-box {
  background: #1e293b;
  border-radius: 16px;
  padding: 2rem;
  position: relative;
  max-width: 800px;
  margin: 0 auto;
}

.bibtex-box pre {
  margin: 0;
  overflow-x: auto;
}

.bibtex-box code {
  font-family: 'SF Mono', Monaco, monospace;
  font-size: 0.95rem;
  color: #e2e8f0;
  line-height: 1.7;
}

.copy-btn {
  position: absolute;
  top: 1.5rem;
  right: 1.5rem;
  padding: 0.5rem 1rem;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 8px;
  color: white;
  font-size: 0.875rem;
  cursor: pointer;
  transition: all 0.3s;
}

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

/* Footer */
.fmip-footer {
  background: var(--fmip-text);
  color: white;
  padding: 3rem 0 1.5rem;
}

.footer-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 2rem;
}

.footer-logo {
  font-family: 'Outfit', sans-serif;
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--fmip-blue-light);
}

.footer-brand p {
  color: #94a3b8;
  font-size: 0.9rem;
  margin-top: 0.25rem;
}

.footer-links {
  display: flex;
  gap: 1rem;
}

.footer-links a {
  width: 40px;
  height: 40px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 1.25rem;
  transition: all 0.3s;
}

.footer-links a:hover {
  background: var(--fmip-blue);
  transform: translateY(-3px);
}

.footer-bottom {
  text-align: center;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  color: #94a3b8;
  font-size: 0.85rem;
}

.footer-bottom a {
  color: var(--fmip-blue-light);
  text-decoration: none;
}

/* Results Table - Compact Improvement Table */
.results-table-container {
  background: white;
  border-radius: 20px;
  padding: 2.5rem;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
  margin-bottom: 3rem;
}

.table-title {
  font-family: 'Outfit', sans-serif;
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--fmip-text);
  text-align: center;
  margin-bottom: 0.5rem;
}

.table-subtitle {
  color: var(--fmip-text-muted);
  text-align: center;
  margin-bottom: 2rem;
  font-size: 0.95rem;
}

.table-scroll {
  overflow-x: auto;
  border-radius: 12px;
  border: 1px solid var(--fmip-border);
}

.results-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9rem;
}

.results-table.compact {
  font-size: 0.875rem;
}

.results-table th {
  background: linear-gradient(135deg, #0ea5e9, #0284c7);
  color: white;
  padding: 1rem;
  font-weight: 600;
  text-align: center;
}

.results-table th:first-child {
  text-align: left;
  background: linear-gradient(135deg, #0284c7, #0369a1);
}

.results-table th small {
  font-weight: 400;
  opacity: 0.85;
  display: block;
  margin-top: 0.25rem;
}

.results-table td {
  padding: 0.75rem 1rem;
  text-align: center;
  border-bottom: 1px solid var(--fmip-border-light);
  color: var(--fmip-text-secondary);
  font-weight: 500;
}

.results-table td:first-child {
  text-align: left;
  background: #f8fafc;
}

.dataset-cell {
  min-width: 160px;
}

.dataset-cell strong {
  color: var(--fmip-text);
  font-weight: 700;
}

.dataset-tag {
  display: block;
  font-size: 0.75rem;
  color: var(--fmip-text-muted);
  font-weight: 400;
  margin-top: 0.125rem;
}

/* Improvement Level Colors */
.improvement-high {
  background: #dcfce7;
  color: #15803d;
  font-weight: 700;
}

.improvement-med {
  background: #dbeafe;
  color: #1d4ed8;
  font-weight: 600;
}

.improvement-low {
  background: #e0f2fe;
  color: #0369a1;
  font-weight: 600;
}

.improvement-neutral {
  background: #f1f5f9;
  color: #64748b;
}

.average-row {
  background: linear-gradient(90deg, #fef3c7, #fde68a);
  border-top: 2px solid #f59e0b;
}

.average-row td {
  color: #92400e;
  font-weight: 700;
}

.average-row .avg-cell {
  color: #b45309;
  font-weight: 800;
}

.table-legend {
  display: flex;
  justify-content: center;
  gap: 2rem;
  margin-top: 1.5rem;
}

.table-legend.compact {
  gap: 1.5rem;
  flex-wrap: wrap;
}

.legend-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.875rem;
  color: var(--fmip-text-secondary);
}

.legend-box {
  width: 20px;
  height: 20px;
  border-radius: 4px;
}

.legend-box.high {
  background: #dcfce7;
  border: 1px solid #22c55e;
}

.legend-box.med {
  background: #dbeafe;
  border: 1px solid #3b82f6;
}

.legend-box.low {
  background: #e0f2fe;
  border: 1px solid #0ea5e9;
}

.legend-box.neutral {
  background: #f1f5f9;
  border: 1px solid #cbd5e1;
}

/* Scroll to Top */
.scroll-top {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: var(--gradient-blue);
  border: none;
  color: white;
  font-size: 1.25rem;
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s;
  z-index: 999;
  box-shadow: 0 10px 30px -10px rgba(14, 165, 233, 0.5);
}

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

.scroll-top:hover {
  transform: translateY(-5px);
}

/* Responsive */
@media (max-width: 1024px) {
  .hero-grid {
    grid-template-columns: 1fr;
    text-align: center;
  }
  
  .hero-content {
    max-width: 100%;
  }
  
  .hero-actions {
    justify-content: center;
  }
  
  .hero-metrics {
    justify-content: center;
  }
  
  .abstract-grid {
    grid-template-columns: 1fr;
  }
  
  .comparison-showcase {
    grid-template-columns: 1fr;
  }
  
  .vs-divider {
    transform: rotate(90deg);
    margin: 1rem 0;
  }
  
  .features-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .stats-row {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .hero-title {
    font-size: 2.5rem;
  }
  
  .nav-menu {
    display: none;
  }
  
  .features-grid {
    grid-template-columns: 1fr;
  }
  
  .stats-row {
    grid-template-columns: 1fr;
  }
  
  .gallery-grid {
    grid-template-columns: 1fr;
    grid-template-rows: auto;
  }
  
  .gallery-item.large {
    grid-row: span 1;
  }
  
  .cta-box {
    flex-direction: column;
    text-align: center;
    padding: 2rem;
  }
  
  .cta-decoration {
    display: none;
  }
  
  .footer-content {
    flex-direction: column;
    gap: 1.5rem;
    text-align: center;
  }
}
