/* ============================================================
   ReProbe — Paper Project Page Styles
   ============================================================ */

:root {
  --brand:       #059669;
  --brand-dark:  #047857;
  --brand-light: #ECFDF5;
  --accent:      #FF6B6B;
  --text:        #1A1A2E;
  --muted:       #6B7280;
  --border:      #E5E7EB;
  --bg:          #FAFAFA;
  --white:       #FFFFFF;
  --mono:        'JetBrains Mono', monospace;
  --sans:        'Inter', sans-serif;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: var(--sans);
  color: var(--text);
  background: var(--bg);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

/* ============================================================
   HF LOGO
   ============================================================ */
.hf-logo {
  width: 18px;
  height: 18px;
  display: inline-block;
  vertical-align: middle;
}

/* ============================================================
   CHECKPOINT ROW (hero)
   ============================================================ */
.checkpoint-row {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  margin-bottom: 48px;
}
.checkpoint-label {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.4);
  display: flex;
  align-items: center;
  gap: 6px;
}
.checkpoint-pills {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
}
.checkpoint-pill {
  display: inline-flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 2px;
  padding: 8px 14px 8px 12px;
  border-radius: 10px;
  background: rgba(255,255,255,0.07);
  border: 1px solid rgba(255,255,255,0.15);
  color: rgba(255,255,255,0.75);
  font-size: 0.78rem;
  font-weight: 500;
  text-decoration: none;
  transition: background 0.2s, border-color 0.2s, color 0.2s;
}
.checkpoint-pill:hover {
  background: rgba(255,193,0,0.15);
  border-color: rgba(255,193,0,0.4);
  color: #fde68a;
}
.checkpoint-pill .hf-logo {
  width: 16px;
  height: 16px;
  margin-bottom: 4px;
}
.pill-name {
  font-size: 0.75rem;
  font-weight: 600;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  white-space: nowrap;
}
.pill-desc {
  font-size: 0.68rem;
  font-weight: 400;
  opacity: 0.7;
  white-space: nowrap;
}
.checkpoint-note {
  font-size: 0.74rem;
  color: rgba(255,255,255,0.55);
  margin: 4px 0 0;
  text-align: center;
  line-height: 1.5;
}
.checkpoint-note a {
  color: rgba(255,193,0,0.85);
  text-decoration: none;
}
.checkpoint-note a:hover {
  text-decoration: underline;
}
.checkpoint-note .fa-circle-info {
  margin-right: 4px;
  opacity: 0.7;
}

/* Card-level HF link (in result card headers) */
.card-hf-link {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  transition: opacity 0.2s;
  text-decoration: none;
}
.card-hf-link:hover { opacity: 0.7; }
.card-hf-link .hf-logo { width: 16px; height: 16px; }

/* ---- Layout helpers ---- */
.container {
  max-width: 960px;
  margin: 0 auto;
  padding: 0 24px;
}
.container-wide {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

section { padding: 80px 0; }
section:nth-child(even) { background: var(--white); }

/* ============================================================
   HERO
   ============================================================ */
.hero {
  background: linear-gradient(135deg, #022c22 0%, #064e3b 50%, #065f46 100%) !important;
  background-color: #064e3b !important; /* fallback */
  color: #ffffff !important;
  padding: 100px 0 80px;
  position: relative;
  overflow: hidden;
}

.hero * {
  color: inherit;
}

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 60% 50% at 30% 40%, rgba(5,150,105,0.35) 0%, transparent 70%),
    radial-gradient(ellipse 40% 40% at 70% 60%, rgba(255,107,107,0.2) 0%, transparent 70%);
  pointer-events: none;
}

.hero-inner {
  position: relative;
  z-index: 1;
  text-align: center;
}

.venue-badge {
  display: inline-block;
  background: rgba(5,150,105,0.35);
  border: 1px solid rgba(5,150,105,0.6);
  border-radius: 99px;
  padding: 5px 18px;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #6EE7B7;
  margin-bottom: 28px;
}
.venue-badge-accepted {
  background: linear-gradient(90deg, rgba(234,179,8,0.25), rgba(251,146,60,0.25));
  border-color: rgba(251,146,60,0.6);
  color: #FCD34D;
  box-shadow: 0 0 18px rgba(251,146,60,0.25);
  animation: pulse-glow 2.5s ease-in-out infinite;
}
@keyframes pulse-glow {
  0%, 100% { box-shadow: 0 0 14px rgba(251,146,60,0.2); }
  50%       { box-shadow: 0 0 28px rgba(251,146,60,0.45); }
}

.hero h1 {
  font-size: clamp(2rem, 5vw, 3.4rem);
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.02em;
  max-width: 820px;
  margin: 0 auto 20px;
  color: #ffffff !important;
}

.hero h1 span.highlight {
  background: linear-gradient(90deg, #6EE7B7, #34D399, #059669);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-tagline {
  font-size: 1.15rem;
  color: rgba(255,255,255,0.8) !important;
  max-width: 640px;
  margin: 0 auto 36px;
  font-weight: 400;
}

/* Authors */
.authors {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 6px 20px;
  margin-bottom: 12px;
  font-size: 0.95rem;
}
.author {
  color: rgba(255,255,255,0.92) !important;
  font-weight: 500;
}
.author sup { color: #6EE7B7 !important; font-size: 0.7em; }

.affiliations {
  color: rgba(255,255,255,0.6) !important;
  font-size: 0.8rem;
  margin-bottom: 40px;
  line-height: 1.8;
}
.affiliations sup { color: #6EE7B7 !important; }
.author-note {
  font-size: 0.75rem;
  color: rgba(255,255,255,0.5);
}
.author-note sup { color: #6EE7B7 !important; font-size: 0.75em; }

/* Buttons */
.btn-group {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  margin-bottom: 60px;
}
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 11px 24px;
  border-radius: 10px;
  font-weight: 600;
  font-size: 0.9rem;
  text-decoration: none;
  transition: all 0.2s;
  cursor: pointer;
  border: none;
}
.btn-primary {
  background: var(--brand);
  color: #ffffff !important;
  box-shadow: 0 4px 20px rgba(5,150,105,0.45);
}
.btn-primary:hover { background: var(--brand-dark); transform: translateY(-1px); }
.btn-outline {
  background: rgba(255,255,255,0.07);
  color: #ffffff !important;
  border: 1px solid rgba(255,255,255,0.2);
  backdrop-filter: blur(8px);
}
.btn-outline:hover { background: rgba(255,255,255,0.15); transform: translateY(-1px); }

/* Teaser image */
.teaser {
  max-width: 820px;
  margin: 0 auto;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 30px 80px rgba(0,0,0,0.5);
  border: 1px solid rgba(255,255,255,0.1);
}
.teaser img { width: 100%; display: block; }
.teaser .placeholder {
  background: rgba(255,255,255,0.05);
  border: 2px dashed rgba(255,255,255,0.2);
  border-radius: 16px;
  padding: 60px 40px;
  color: rgba(255,255,255,0.4);
  font-size: 0.88rem;
  text-align: center;
  min-height: 360px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
}
.teaser .placeholder i { font-size: 2.5rem; opacity: 0.4; }
.teaser .placeholder strong { color: rgba(255,255,255,0.6); font-size: 0.95rem; }

/* ============================================================
   TLDR / ABSTRACT
   ============================================================ */
.tldr-section { padding: 70px 0; background: var(--white); }

.tldr-card {
  background: var(--brand-light);
  border-left: 4px solid var(--brand);
  border-radius: 12px;
  padding: 32px 36px;
  margin-bottom: 40px;
}
.tldr-card .label {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--brand);
  margin-bottom: 8px;
}
.tldr-card p {
  font-size: 1.05rem;
  color: var(--text);
  line-height: 1.7;
  font-weight: 400;
}

.abstract-text {
  color: var(--muted);
  font-size: 0.97rem;
  line-height: 1.85;
}

/* ============================================================
   KEY STATS
   ============================================================ */
.stats-section {
  background: linear-gradient(135deg, #022c22 0%, #064e3b 100%) !important;
  background-color: #064e3b !important;
  padding: 70px 0;
}
.stats-section .section-label {
  color: rgba(255,255,255,0.6) !important;
}
.stats-section .section-title {
  color: #ffffff !important;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 20px;
  margin-top: 40px;
}
.stat-card {
  background: rgba(255,255,255,0.12) !important;
  border: 1px solid rgba(255,255,255,0.2) !important;
  border-radius: 16px;
  padding: 32px 24px;
  text-align: center;
  backdrop-filter: blur(12px);
  transition: transform 0.2s, background 0.2s;
}
.stat-card:hover {
  transform: translateY(-4px);
  background: rgba(255,255,255,0.18) !important;
}
.stat-number {
  font-size: 2.8rem;
  font-weight: 800;
  color: #6EE7B7 !important;           /* solid fallback */
  background: linear-gradient(135deg, #6EE7B7, #34D399);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1;
  margin-bottom: 8px;
}
/* If gradient clip is unsupported, fall back to solid colour */
@supports not (-webkit-background-clip: text) {
  .stat-number {
    color: #6EE7B7 !important;
    -webkit-text-fill-color: #6EE7B7 !important;
    background: none;
  }
}
.stat-unit {
  font-size: 1.2rem;
  font-weight: 600;
}
.stat-label {
  font-size: 0.82rem;
  color: rgba(255,255,255,0.7) !important;
  line-height: 1.4;
  margin-top: 6px;
}

/* ============================================================
   SECTION HEADINGS
   ============================================================ */
.section-label {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--brand);
  margin-bottom: 8px;
}
.section-title {
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  margin-bottom: 16px;
}
.section-subtitle {
  font-size: 1rem;
  color: var(--muted);
  max-width: 600px;
}

/* ============================================================
   METHOD
   ============================================================ */
.method-section { background: var(--bg); }

.method-overview {
  margin-top: 48px;
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid var(--border);
  box-shadow: 0 8px 40px rgba(0,0,0,0.06);
}
.method-overview img { width: 100%; display: block; }
.method-overview .placeholder {
  background: var(--brand-light);
  border: 2px dashed rgba(5,150,105,0.3);
  border-radius: 16px;
  padding: 60px 40px;
  color: var(--muted);
  font-size: 0.88rem;
  text-align: center;
  min-height: 320px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
}
.method-overview .placeholder i { font-size: 2.5rem; color: var(--brand); opacity: 0.5; }
.method-overview .placeholder strong { color: var(--text); font-size: 0.95rem; }

/* Pipeline steps */
.pipeline {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 0;
  margin-top: 40px;
}
.pipeline-step {
  padding: 32px 24px;
  text-align: center;
  position: relative;
  border: 1px solid var(--border);
  background: var(--white);
}
.pipeline-step:not(:last-child)::after {
  content: '\f054';
  font-family: 'Font Awesome 6 Free';
  font-weight: 900;
  position: absolute;
  right: -14px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--brand);
  font-size: 0.9rem;
  z-index: 2;
  background: var(--white);
  padding: 4px;
}
.pipeline-step .step-icon {
  width: 52px;
  height: 52px;
  background: var(--brand-light);
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 14px;
  font-size: 1.4rem;
  color: var(--brand);
}
.pipeline-step .step-num {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--brand);
  margin-bottom: 6px;
}
.pipeline-step h4 {
  font-size: 0.9rem;
  font-weight: 700;
  margin-bottom: 6px;
  color: var(--text);
}
.pipeline-step p {
  font-size: 0.78rem;
  color: var(--muted);
  line-height: 1.5;
}

/* Component cards */
.components-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 16px;
  margin-top: 32px;
}
.component-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 24px;
  transition: box-shadow 0.2s, transform 0.2s;
}
.component-card:hover {
  box-shadow: 0 8px 30px rgba(5,150,105,0.12);
  transform: translateY(-2px);
}
.component-card .comp-icon {
  width: 44px;
  height: 44px;
  background: var(--brand-light);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  color: var(--brand);
  margin-bottom: 14px;
}
.component-card h4 {
  font-size: 0.9rem;
  font-weight: 700;
  margin-bottom: 6px;
}
.component-card p {
  font-size: 0.8rem;
  color: var(--muted);
  line-height: 1.6;
}

/* ============================================================
   RESULTS
   ============================================================ */
.results-section { background: var(--white); }

.results-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
  margin-top: 40px;
}
.result-card {
  border: 1px solid var(--border);
  border-radius: 16px;
  overflow: hidden;
  transition: box-shadow 0.2s;
}
.result-card:hover { box-shadow: 0 12px 40px rgba(0,0,0,0.08); }
.result-card-header {
  background: var(--brand);
  color: var(--white);
  padding: 16px 20px;
  font-weight: 700;
  font-size: 0.85rem;
  display: flex;
  align-items: center;
  gap: 8px;
}
.result-card-body {
  padding: 20px;
  background: var(--white);
}
.result-card .placeholder {
  background: var(--bg);
  border: 2px dashed var(--border);
  border-radius: 10px;
  padding: 40px 20px;
  color: var(--muted);
  font-size: 0.8rem;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}
.result-card .placeholder i { font-size: 1.8rem; opacity: 0.4; }

/* Comparison badges */
.comparison {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.comparison-row {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 0.85rem;
}
.comparison-row .method-name {
  width: 90px;
  font-weight: 600;
  flex-shrink: 0;
  font-size: 0.8rem;
}
.bar-wrap {
  flex: 1;
  background: var(--bg);
  border-radius: 99px;
  height: 10px;
  overflow: hidden;
}
.bar {
  height: 100%;
  border-radius: 99px;
  background: var(--brand);
}
.bar.accent { background: var(--accent); }
.bar.muted  { background: var(--border); }
.comparison-row .val {
  font-weight: 700;
  width: 50px;
  text-align: right;
  font-size: 0.82rem;
  color: var(--text);
}

/* ============================================================
   MODEL RESULTS GRID
   ============================================================ */
.model-results-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}

.model-result-card {
  border: 1px solid var(--border);
  border-radius: 16px;
  overflow: hidden;
  background: var(--white);
  box-shadow: 0 2px 12px rgba(0,0,0,0.04);
  transition: box-shadow 0.2s, transform 0.2s;
}
.model-result-card:hover {
  box-shadow: 0 10px 32px rgba(5,150,105,0.12);
  transform: translateY(-2px);
}

.model-result-header {
  background: linear-gradient(135deg, #022c22 0%, #064e3b 100%);
  padding: 16px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}
.model-name {
  font-weight: 800;
  font-size: 1rem;
  color: var(--white);
  letter-spacing: -0.01em;
}
.model-meta {
  font-size: 0.72rem;
  color: rgba(255,255,255,0.5);
  margin-top: 2px;
}
.avg-badge {
  background: rgba(5,150,105,0.4);
  border: 1px solid rgba(52,211,153,0.4);
  border-radius: 99px;
  padding: 4px 12px;
  font-size: 0.75rem;
  font-weight: 700;
  color: #6EE7B7;
  white-space: nowrap;
  flex-shrink: 0;
}

.model-result-body {
  padding: 16px 18px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.domain-group { display: flex; flex-direction: column; gap: 6px; }

.domain-label {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 2px;
}
.domain-icon-sm { font-size: 0.85rem; }
.domain-tag {
  display: inline-block;
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  border-radius: 99px;
  padding: 1px 7px;
}

/* Tighter comparison rows inside model cards */
.model-result-body .comparison-row {
  font-size: 0.78rem;
}
.model-result-body .method-name {
  width: 72px;
  font-size: 0.74rem;
}
.model-result-body .bar-wrap { height: 8px; }
.model-result-body .val {
  font-size: 0.75rem;
  width: 38px;
}

.tts-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}

.analysis-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}
.analysis-grid .result-card:first-child {
  grid-column: 1 / -1;
}

@media (max-width: 700px) {
  .model-results-grid { grid-template-columns: 1fr; }
  .tts-grid { grid-template-columns: 1fr; }
  .analysis-grid { grid-template-columns: 1fr; }
}

/* ============================================================
   COMPARISON TABLE
   ============================================================ */
.table-section { background: var(--bg); }

.comparison-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid var(--border);
  margin-top: 32px;
  font-size: 0.88rem;
}
.comparison-table thead tr {
  background: var(--brand);
  color: var(--white);
}
.comparison-table th {
  padding: 14px 18px;
  font-weight: 600;
  text-align: left;
  letter-spacing: 0.02em;
}
.comparison-table tbody tr {
  border-bottom: 1px solid var(--border);
  transition: background 0.15s;
}
.comparison-table tbody tr:hover { background: var(--brand-light); }
.comparison-table tbody tr.highlight-row {
  background: #F0FDF4;
  font-weight: 600;
}
.comparison-table td {
  padding: 13px 18px;
  vertical-align: middle;
}
.badge-best {
  display: inline-block;
  background: #D1FAE5;
  color: #065F46;
  border-radius: 99px;
  padding: 2px 10px;
  font-size: 0.72rem;
  font-weight: 700;
}
.badge-ours {
  display: inline-block;
  background: var(--brand);
  color: var(--white);
  border-radius: 99px;
  padding: 2px 10px;
  font-size: 0.72rem;
  font-weight: 700;
  margin-left: 6px;
}

/* ============================================================
   GENERALIZATION
   ============================================================ */
.gen-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-top: 40px;
}
.gen-card {
  border-radius: 14px;
  border: 1px solid var(--border);
  background: var(--white);
  padding: 24px 20px;
  text-align: center;
  transition: transform 0.2s, box-shadow 0.2s;
}
.gen-card:hover { transform: translateY(-3px); box-shadow: 0 10px 30px rgba(0,0,0,0.07); }
.gen-card .domain-icon {
  width: 56px;
  height: 56px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.6rem;
  margin: 0 auto 14px;
}
.gen-card h4 { font-size: 0.9rem; font-weight: 700; margin-bottom: 4px; }
.gen-card .tag {
  display: inline-block;
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  border-radius: 99px;
  padding: 2px 10px;
  margin-bottom: 12px;
}
.gen-card p { font-size: 0.8rem; color: var(--muted); line-height: 1.5; }
.tag-id { background: #D1FAE5; color: #065F46; }
.tag-ood { background: #FEF3C7; color: #92400E; }
.icon-math { background: #D1FAE5; color: #047857; }
.icon-plan { background: #FEF3C7; color: #D97706; }
.icon-qa   { background: #DCFCE7; color: #16A34A; }

/* ============================================================
   BIBTEX / CITATION
   ============================================================ */
.bibtex-section {
  background: #021a12 !important;
  background-color: #021a12 !important;
  padding: 80px 0;
}

/* Paper card */
.cite-paper-card {
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(5,150,105,0.3);
  border-radius: 16px;
  padding: 28px 32px;
  margin-bottom: 28px;
  text-align: center;
}
.cite-paper-badge {
  display: inline-block;
  background: linear-gradient(90deg, rgba(234,179,8,0.2), rgba(251,146,60,0.2));
  border: 1px solid rgba(251,146,60,0.4);
  border-radius: 99px;
  padding: 4px 14px;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #FCD34D !important;
  margin-bottom: 16px;
}
.cite-paper-title {
  font-size: 1.1rem;
  font-weight: 700;
  color: #ffffff !important;
  line-height: 1.5;
  margin-bottom: 12px;
}
.cite-paper-authors {
  font-size: 0.8rem;
  color: rgba(255,255,255,0.5) !important;
  line-height: 1.7;
  margin-bottom: 18px;
}
.cite-paper-links {
  display: flex;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
}
.cite-paper-links a {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: #6EE7B7 !important;
  font-size: 0.82rem;
  font-weight: 600;
  text-decoration: none;
  transition: color 0.2s;
}
.cite-paper-links a:hover { color: #A7F3D0 !important; }

/* BibTeX label row */
.bibtex-label {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.4) !important;
  margin-bottom: 10px;
}
.bibtex-label .copy-btn {
  margin-left: auto;
}

/* BibTeX code block */
.bibtex-block {
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 12px;
  padding: 24px 28px;
  position: relative;
}
.bibtex-block pre {
  font-family: var(--mono);
  font-size: 0.82rem;
  color: #6EE7B7 !important;
  line-height: 1.85;
  overflow-x: auto;
  white-space: pre;
  margin: 0;
}

.copy-btn {
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.15);
  border-radius: 7px;
  color: rgba(255,255,255,0.6) !important;
  padding: 5px 13px;
  font-size: 0.75rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s, color 0.2s;
  font-family: var(--sans);
}
.copy-btn:hover {
  background: rgba(5,150,105,0.3);
  border-color: rgba(5,150,105,0.5);
  color: #ffffff !important;
}

/* ============================================================
   FOOTER
   ============================================================ */
footer {
  background: #060f0a;
  color: rgba(255,255,255,0.4);
  text-align: center;
  padding: 32px 24px;
  font-size: 0.82rem;
}
footer a { color: rgba(255,255,255,0.6); text-decoration: none; }
footer a:hover { color: var(--white); }

/* ============================================================
   FIGURE CAPTIONS
   ============================================================ */
.fig-caption {
  font-size: 0.82rem;
  color: var(--muted);
  text-align: center;
  margin-top: 14px;
  max-width: 760px;
  margin-left: auto;
  margin-right: auto;
  line-height: 1.6;
}
/* Hero variant — on dark background */
.hero .fig-caption {
  color: rgba(255,255,255,0.5);
}

/* ============================================================
   UTILITIES
   ============================================================ */
.mt-4 { margin-top: 16px; }
.mt-6 { margin-top: 24px; }
.mt-8 { margin-top: 32px; }
.text-center { text-align: center; }
.text-muted { color: var(--muted); }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 768px) {
  section { padding: 56px 0; }
  .hero { padding: 70px 0 60px; }
  .gen-grid { grid-template-columns: 1fr; }
  .pipeline { grid-template-columns: 1fr; }
  .pipeline-step:not(:last-child)::after {
    content: '\f078';
    right: auto;
    bottom: -14px;
    top: auto;
    left: 50%;
    transform: translateX(-50%);
  }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .bibtex-block pre { font-size: 0.72rem; }
  /* Analysis grid collapses to single column */
  section [style*="grid-template-columns: 1fr 1fr"] {
    grid-template-columns: 1fr !important;
  }
}
