/* ==========================================================================
   Project Page Stylesheet: Rethinking LLM-Guided Visual Question Answering
   Theme: Formal & Classic Academic (Oxford Navy, Slate, & Charcoal)
   Note: All purple/violet accents and browser visited-purple strictly eliminated
   ========================================================================== */

:root {
  /* Color Palette - Classic Academic (Light Theme) */
  --bg-primary: #ffffff;
  --bg-secondary: #f8fafc;
  --bg-tertiary: #f1f5f9;
  --bg-card: #ffffff;
  --border-color: #e2e8f0;
  --border-subtle: #cbd5e1;
  
  --text-primary: #0f172a;       /* Deep Obsidian Slate */
  --text-secondary: #334155;     /* Slate-700 */
  --text-muted: #64748b;         /* Slate-500 */
  --text-link: #1d4ed8;          /* Academic Navy Blue */
  --text-link-hover: #0f2b46;
  
  --brand-primary: #0f2b46;      /* Classic Deep Oxford Navy */
  --brand-secondary: #1e40af;    /* Crisp Academic Blue */
  --brand-border: #93c5fd;
  
  --success: #065f46;            /* Classic Forest Green */
  --success-bg: #ecfdf5;
  --success-border: #a7f3d0;
  
  --warning: #92400e;            /* Warm Amber */
  --warning-bg: #fffbeb;
  
  --danger: #991b1b;             /* Deep Crimson */
  --danger-bg: #fef2f2;
  
  --card-shadow: 0 1px 3px rgba(15, 23, 42, 0.05), 0 1px 2px rgba(15, 23, 42, 0.03);
  --card-shadow-hover: 0 4px 10px rgba(15, 23, 42, 0.08);
  
  --code-bg: #0f172a;
  --code-text: #f8fafc;
  
  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 12px;
  --radius-full: 9999px;
  
  --transition: all 0.2s ease-in-out;
}

[data-theme="dark"] {
  /* Color Palette - Classic Academic (Dark Mode) */
  --bg-primary: #0b0f17;
  --bg-secondary: #111827;
  --bg-tertiary: #1e293b;
  --bg-card: #131d2e;
  --border-color: #24344d;
  --border-subtle: #334155;
  
  --text-primary: #f8fafc;
  --text-secondary: #cbd5e1;
  --text-muted: #94a3b8;
  --text-link: #60a5fa;
  --text-link-hover: #93c5fd;
  
  --brand-primary: #60a5fa;
  --brand-secondary: #3b82f6;
  --brand-border: #1d4ed8;
  
  --success: #34d399;
  --success-bg: rgba(6, 78, 59, 0.25);
  --success-border: rgba(52, 211, 153, 0.3);
  
  --warning-bg: rgba(146, 64, 14, 0.2);
  --danger-bg: rgba(153, 27, 27, 0.2);
  
  --card-shadow: 0 1px 4px rgba(0, 0, 0, 0.4);
  --card-shadow-hover: 0 4px 14px rgba(0, 0, 0, 0.6);
  
  --code-bg: #050811;
  --code-text: #f1f5f9;
}

/* Base Reset & Typography */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  color: var(--text-primary);
  background-color: var(--bg-primary);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

body {
  transition: background-color 0.2s ease, color 0.2s ease;
  overflow-x: hidden;
}

/* Global Link Protection - Explicitly prevent browser default purple visited state */
a, a:visited {
  color: var(--text-link);
  text-decoration: none;
}

a:hover {
  color: var(--text-link-hover);
}

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

/* Navigation Bar */
.navbar {
  position: sticky;
  top: 0;
  z-index: 100;
  background-color: rgba(255, 255, 255, 0.98);
  border-bottom: 1px solid var(--border-color);
  transition: var(--transition);
}

[data-theme="dark"] .navbar {
  background-color: rgba(11, 15, 23, 0.98);
}

.nav-container {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0.85rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
  color: var(--text-primary);
}

.nav-brand:visited {
  color: var(--text-primary);
}

.brand-badge {
  background: var(--brand-primary);
  color: #ffffff !important;
  font-size: 0.75rem;
  font-weight: 700;
  padding: 0.25rem 0.65rem;
  border-radius: var(--radius-sm);
  letter-spacing: 0.5px;
}

[data-theme="dark"] .brand-badge {
  background: #1e3a8a;
}

.brand-title {
  font-weight: 700;
  font-size: 1rem;
  color: var(--text-primary);
  letter-spacing: -0.01em;
}

.nav-links {
  display: flex;
  gap: 1.75rem;
}

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

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

.theme-btn {
  background: var(--bg-tertiary);
  border: 1px solid var(--border-color);
  color: var(--text-primary);
  width: 36px;
  height: 36px;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: var(--transition);
}

.theme-btn:hover {
  border-color: var(--text-secondary);
}

/* Hero Section */
.hero-section {
  padding: 4.25rem 0 3.25rem;
  text-align: center;
  border-bottom: 1px solid var(--border-color);
  background: var(--bg-primary);
}

.conference-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  padding: 0.35rem 0.95rem;
  border-radius: var(--radius-full);
  font-size: 0.84rem;
  font-weight: 600;
  color: var(--text-secondary);
  margin-bottom: 1.75rem;
}

.conference-pill a, .conference-pill a:visited {
  color: var(--text-link);
  text-decoration: none;
}

.conference-pill a:hover {
  text-decoration: underline;
}

.separator {
  opacity: 0.35;
}

.hero-title {
  font-size: clamp(1.9rem, 3.8vw, 2.75rem);
  font-weight: 800;
  line-height: 1.3;
  max-width: 960px;
  margin: 0 auto 1.5rem;
  letter-spacing: -0.025em;
  color: var(--text-primary);
}

.title-sub {
  color: var(--brand-secondary);
  font-weight: 700;
  display: inline-block;
  margin-top: 0.25rem;
}

[data-theme="dark"] .title-sub {
  color: #60a5fa;
}

.authors-list {
  font-size: 1.05rem;
  color: var(--text-secondary);
  max-width: 850px;
  margin: 0 auto 0.4rem;
  line-height: 1.8;
}

.author a, .author a:visited {
  color: var(--text-primary);
  text-decoration: none;
  font-weight: 600;
  border-bottom: 1px dotted var(--border-subtle);
  transition: var(--transition);
}

.author a:hover {
  color: var(--brand-secondary);
  border-bottom-style: solid;
}

.institution {
  font-size: 0.9rem;
  color: var(--text-muted);
  margin-bottom: 2rem;
}

/* Action Buttons */
.action-buttons {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.65rem;
  margin-bottom: 3.5rem;
}

.btn, .btn:visited {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.55rem 1.15rem;
  border-radius: var(--radius-sm);
  font-size: 0.88rem;
  font-weight: 600;
  text-decoration: none;
  transition: var(--transition);
}

.btn-primary, .btn-primary:visited {
  background: var(--brand-primary);
  color: #ffffff !important;
  border: 1px solid var(--brand-primary);
}

[data-theme="dark"] .btn-primary, [data-theme="dark"] .btn-primary:visited {
  background: #1e3a8a;
  border-color: #2563eb;
  color: #ffffff !important;
}

.btn-primary:hover {
  background: #091a2b;
  border-color: #091a2b;
  color: #ffffff !important;
  transform: translateY(-1px);
}

.btn-secondary, .btn-secondary:visited {
  background: var(--bg-card);
  color: var(--text-primary) !important;
  border: 1px solid var(--border-color);
}

.btn-secondary:hover {
  background: var(--bg-tertiary);
  border-color: var(--border-subtle);
  color: var(--brand-secondary) !important;
  transform: translateY(-1px);
}

.btn-emoji {
  font-size: 1rem;
}

/* Metrics Banner (3 Classic Cards) */
.metrics-banner {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
  max-width: 880px;
  margin: 0 auto;
}

.metric-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 1.4rem 1rem;
  box-shadow: var(--card-shadow);
  transition: var(--transition);
  text-align: center;
}

.metric-card:hover {
  border-color: var(--border-subtle);
  box-shadow: var(--card-shadow-hover);
}

.metric-card.highlight {
  border: 2px solid var(--brand-secondary);
  background: var(--bg-card);
}

.metric-value {
  font-size: 2.15rem;
  font-weight: 800;
  color: var(--brand-secondary);
  line-height: 1;
  margin-bottom: 0.4rem;
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.02em;
}

[data-theme="dark"] .metric-value {
  color: #60a5fa;
}

.metric-label {
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--text-primary);
}

.metric-sub {
  font-size: 0.78rem;
  color: var(--text-muted);
  margin-top: 0.25rem;
}

/* Sections */
.section {
  padding: 4rem 0;
  border-bottom: 1px solid var(--border-color);
}

.section-alt {
  background-color: var(--bg-secondary);
}

.section-title {
  font-size: 1.85rem;
  font-weight: 800;
  text-align: center;
  margin-bottom: 0.4rem;
  letter-spacing: -0.02em;
  color: var(--text-primary);
}

.section-subtitle {
  text-align: center;
  color: var(--text-muted);
  font-size: 1rem;
  max-width: 650px;
  margin: 0 auto 2.75rem;
}

/* Abstract Box */
.abstract-box {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 2.25rem;
  box-shadow: var(--card-shadow);
  max-width: 860px;
  margin: 0 auto;
}

.abstract-box p {
  margin-bottom: 1.15rem;
  color: var(--text-secondary);
  font-size: 1.02rem;
  line-height: 1.75;
}

.abstract-highlight {
  background: var(--bg-tertiary);
  padding: 1.15rem 1.35rem;
  border-left: 3px solid var(--brand-secondary);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  color: var(--text-primary) !important;
}

/* Teaser Card (Problem Motivation) */
.teaser-card {
  display: grid;
  grid-template-columns: 240px 1fr;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--card-shadow);
  max-width: 900px;
  margin: 0 auto;
}

.teaser-visual {
  background: var(--bg-tertiary);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem;
  border-right: 1px solid var(--border-color);
}

.teaser-placeholder {
  text-align: center;
}

.emoji-large {
  font-size: 4.5rem;
  display: block;
  margin-bottom: 0.5rem;
}

.teaser-badge {
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--text-muted);
  letter-spacing: 0.5px;
}

.teaser-content {
  padding: 2rem;
}

.qa-item {
  margin-bottom: 0.75rem;
  font-size: 0.98rem;
}

.qa-label {
  font-weight: 700;
  color: var(--text-muted);
  display: inline-block;
  min-width: 140px;
}

.qa-value {
  color: var(--text-primary);
}

.qa-item.target {
  background: var(--success-bg);
  border: 1px solid var(--success-border);
  padding: 0.6rem 0.9rem;
  border-radius: var(--radius-sm);
  margin-top: 1rem;
  margin-bottom: 1.5rem;
}

.comparison-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  margin-top: 1.25rem;
}

.model-res {
  padding: 1rem;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-color);
  background: var(--bg-tertiary);
}

.baseline-res {
  border-left: 3px solid var(--danger);
}

.guided-res {
  border-left: 3px solid var(--success);
}

.res-title {
  display: block;
  font-size: 0.82rem;
  font-weight: 700;
  margin-bottom: 0.35rem;
}

.res-out {
  display: block;
  font-size: 1.2rem;
  font-weight: 800;
  font-family: 'JetBrains Mono', monospace;
  margin-bottom: 0.35rem;
  color: var(--text-primary);
}

.res-desc {
  font-size: 0.8rem;
  color: var(--text-muted);
  line-height: 1.4;
}

/* Architecture Diagrams */
.diagram-wrapper {
  max-width: 880px;
  margin: 0 auto 3rem;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 1.5rem;
  box-shadow: var(--card-shadow);
  text-align: center;
}

.diagram-img {
  width: 100%;
  height: auto;
  border-radius: var(--radius-sm);
  display: block;
  margin: 0 auto;
}

.caption {
  font-size: 0.88rem;
  color: var(--text-muted);
  margin-top: 1rem;
  text-align: center;
  line-height: 1.5;
}

/* Architecture Tabs */
.arch-tabs-container {
  max-width: 940px;
  margin: 0 auto;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  box-shadow: var(--card-shadow);
  overflow: hidden;
}

.tab-buttons {
  display: flex;
  background: var(--bg-tertiary);
  border-bottom: 1px solid var(--border-color);
  overflow-x: auto;
}

.tab-btn {
  flex: 1;
  padding: 0.9rem 1.25rem;
  background: none;
  border: none;
  color: var(--text-secondary);
  font-weight: 600;
  font-size: 0.92rem;
  cursor: pointer;
  transition: var(--transition);
  white-space: nowrap;
}

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

.tab-btn.active {
  color: var(--brand-secondary);
  background: var(--bg-card);
  border-bottom: 2px solid var(--brand-secondary);
}

[data-theme="dark"] .tab-btn.active {
  color: #60a5fa;
  border-bottom-color: #60a5fa;
}

.tab-content {
  display: none;
  padding: 2rem;
}

.tab-content.active {
  display: block;
  animation: fadeIn 0.2s ease;
}

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

.arch-layout {
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  gap: 2rem;
  align-items: center;
}

.arch-image img {
  width: 100%;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-color);
}

.arch-text h3 {
  font-size: 1.35rem;
  margin-bottom: 0.4rem;
  color: var(--text-primary);
}

.status-badge {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 700;
  padding: 0.2rem 0.55rem;
  border-radius: var(--radius-sm);
  margin-bottom: 1rem;
}

.status-badge.success {
  background: var(--success-bg);
  color: var(--success);
  border: 1px solid var(--success-border);
}

.status-badge.warning {
  background: var(--warning-bg);
  color: var(--warning);
  border: 1px solid rgba(146, 64, 14, 0.3);
}

.status-badge.neutral {
  background: var(--bg-tertiary);
  color: var(--text-muted);
  border: 1px solid var(--border-color);
}

.math-block {
  background: var(--bg-tertiary);
  padding: 0.75rem 1rem;
  border-radius: var(--radius-sm);
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.88rem;
  margin: 1rem 0;
  overflow-x: auto;
}

.feature-bullets {
  list-style: none;
  margin-top: 1rem;
}

.feature-bullets li {
  position: relative;
  padding-left: 1.3rem;
  margin-bottom: 0.5rem;
  font-size: 0.9rem;
  color: var(--text-secondary);
}

.feature-bullets li::before {
  content: "•";
  position: absolute;
  left: 0.25rem;
  color: var(--brand-secondary);
  font-weight: bold;
}

/* Results Grid */
.results-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 1.5rem;
  margin-bottom: 2rem;
}

.table-card, .chart-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 1.75rem;
  box-shadow: var(--card-shadow);
}

.table-card h3, .chart-card h3, .card h3 {
  font-size: 1.2rem;
  margin-bottom: 1rem;
  color: var(--text-primary);
}

.table-responsive {
  overflow-x: auto;
}

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

.styled-table th, .styled-table td {
  padding: 0.75rem 0.65rem;
  text-align: left;
  border-bottom: 1px solid var(--border-color);
}

.styled-table th {
  background: var(--bg-tertiary);
  color: var(--text-secondary);
  font-weight: 700;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  border-top: 1px solid var(--border-subtle);
  border-bottom: 2px solid var(--border-subtle);
}

.styled-table tr:hover {
  background: var(--bg-secondary);
}

.highlight-row {
  background: var(--success-bg) !important;
  font-weight: 600;
}

.delta-positive {
  color: var(--success);
  font-weight: 700;
}

.delta-neutral {
  color: var(--text-muted);
}

.table-note {
  font-size: 0.75rem;
  color: var(--text-muted);
  margin-top: 0.75rem;
}

.chart-image-wrap {
  text-align: center;
}

.chart-image-wrap img {
  max-width: 100%;
  height: auto;
  border-radius: var(--radius-sm);
}

.analysis-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
  margin-bottom: 1.5rem;
}

.card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 1.5rem;
  box-shadow: var(--card-shadow);
  text-align: center;
}

.card img {
  width: 100%;
  height: auto;
  border-radius: var(--radius-sm);
}

.full-width-card {
  grid-column: span 2;
}

/* Insights Cards */
.insights-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
}

.insight-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 1.75rem;
  box-shadow: var(--card-shadow);
  transition: var(--transition);
}

.insight-card:hover {
  border-color: var(--brand-secondary);
  box-shadow: var(--card-shadow-hover);
}

.insight-icon {
  font-size: 1.8rem;
  margin-bottom: 0.75rem;
}

.insight-card h3 {
  font-size: 1.15rem;
  margin-bottom: 0.65rem;
  color: var(--text-primary);
}

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

/* Code Cards & Quickstart */
.code-cards-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.25rem;
  margin-bottom: 1.25rem;
}

.code-card {
  background: var(--code-bg);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--card-shadow);
  border: 1px solid var(--border-color);
}

.code-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.65rem 1rem;
  background: rgba(255, 255, 255, 0.04);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  color: #94a3b8;
  font-size: 0.8rem;
  font-weight: 600;
}

.copy-btn {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: #f1f5f9;
  padding: 0.2rem 0.55rem;
  border-radius: var(--radius-sm);
  font-size: 0.72rem;
  cursor: pointer;
  transition: var(--transition);
}

.copy-btn:hover {
  background: var(--brand-secondary);
}

.copy-btn.copied {
  background: var(--success);
}

.code-card pre {
  padding: 1.15rem;
  overflow-x: auto;
  color: var(--code-text);
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.84rem;
  line-height: 1.55;
}

.dataset-meta-box {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 1.25rem 1.5rem;
  box-shadow: var(--card-shadow);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
}

.meta-row {
  font-size: 0.88rem;
  color: var(--text-secondary);
}

.meta-row code {
  background: var(--bg-tertiary);
  padding: 0.15rem 0.35rem;
  border-radius: var(--radius-sm);
  font-size: 0.8rem;
}

.meta-links {
  display: flex;
  gap: 0.75rem;
}

.link-btn, .link-btn:visited {
  text-decoration: none;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text-primary);
  padding: 0.4rem 0.8rem;
  background: var(--bg-tertiary);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  transition: var(--transition);
}

.link-btn:hover {
  border-color: var(--border-subtle);
  color: var(--brand-secondary);
}

/* BibTeX */
.bibtex-container {
  max-width: 800px;
  margin: 0 auto;
  background: var(--code-bg);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--card-shadow);
  border: 1px solid var(--border-color);
}

.bibtex-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.65rem 1rem;
  background: rgba(255, 255, 255, 0.04);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  color: #94a3b8;
  font-size: 0.8rem;
  font-weight: 600;
}

.bibtex-container pre {
  padding: 1.15rem;
  overflow-x: auto;
  color: var(--code-text);
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.84rem;
  line-height: 1.55;
}

/* Lightbox Modal */
.lightbox {
  display: none;
  position: fixed;
  z-index: 1000;
  padding-top: 60px;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  overflow: auto;
  background-color: rgba(15, 23, 42, 0.88);
  backdrop-filter: blur(4px);
}

.lightbox-content {
  margin: auto;
  display: block;
  max-width: 88%;
  max-height: 82vh;
  border-radius: var(--radius-sm);
  animation: zoomIn 0.2s ease;
}

@keyframes zoomIn {
  from { transform: scale(0.95); opacity: 0; }
  to { transform: scale(1); opacity: 1; }
}

.lightbox-close {
  position: absolute;
  top: 20px;
  right: 30px;
  color: #ffffff;
  font-size: 36px;
  font-weight: 300;
  cursor: pointer;
  transition: var(--transition);
}

.lightbox-close:hover {
  color: var(--brand-secondary);
}

.lightbox-caption {
  margin: auto;
  display: block;
  width: 80%;
  max-width: 700px;
  text-align: center;
  color: #cbd5e1;
  padding: 15px 0;
  font-size: 0.9rem;
}

.zoomable {
  cursor: zoom-in;
  transition: opacity 0.2s ease;
}

.zoomable:hover {
  opacity: 0.92;
}

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

.footer-links {
  margin-top: 0.5rem;
}

.footer-links a, .footer-links a:visited {
  color: var(--text-secondary);
  text-decoration: none;
  transition: var(--transition);
}

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

/* Responsive Media Queries */
@media (max-width: 992px) {
  .results-grid, .arch-layout, .teaser-card, .code-cards-grid, .insights-grid {
    grid-template-columns: 1fr;
  }
  
  .metrics-banner {
    grid-template-columns: 1fr;
  }
  
  .teaser-visual {
    border-right: none;
    border-bottom: 1px solid var(--border-color);
  }
  
  .analysis-grid {
    grid-template-columns: 1fr;
  }
  
  .full-width-card {
    grid-column: span 1;
  }
}

@media (max-width: 768px) {
  .hero-section {
    padding: 3rem 0 2rem;
  }
  
  .nav-links {
    display: none;
  }
  
  .comparison-grid {
    grid-template-columns: 1fr;
  }
  
  .tab-buttons {
    flex-direction: column;
  }
  
  .tab-btn.active {
    border-bottom: none;
    border-left: 3px solid var(--brand-secondary);
  }
}
