/* ===============================================================
   GATESIG PERFORMANCE — Dedicated Styles
   Inherits design language from main site + docs
   =============================================================== */

:root {
  --bg-deep: #04070d;
  --bg-primary: #080c15;
  --bg-card: #0c111c;
  --bg-card-hover: #101828;
  --border: rgba(34, 211, 238, 0.08);
  --border-bright: rgba(34, 211, 238, 0.18);
  --text-primary: #e8edf5;
  --text-secondary: #94a3b8;
  --text-dim: #64748b;
  --cyan: #22d3ee;
  --cyan-glow: rgba(34, 211, 238, 0.15);
  --amber: #f59e0b;
  --amber-glow: rgba(245, 158, 11, 0.12);
  --green: #10b981;
  --green-bright: #00ff88;
  --red: #ef4444;
  --purple: #a78bfa;
  --gold: #d4a853;
  --gold-light: #f0d78c;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: auto; }

body {
  font-family: 'DM Sans', sans-serif;
  background: var(--bg-deep);
  color: var(--text-primary);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  line-height: 1.6;
}

/* Noise texture overlay */
body::after {
  content: '';
  position: fixed;
  inset: 0;
  background: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.03'/%3E%3C/svg%3E");
  pointer-events: none;
  z-index: 9999;
  opacity: 0.4;
}

/* ===============================================================
   NAVIGATION (shared with docs)
   =============================================================== */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  padding: 16px 32px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: rgba(4, 7, 13, 0.85);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
}
.nav-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: 'JetBrains Mono', monospace;
  font-weight: 700;
  font-size: 14px;
  letter-spacing: 3px;
  color: var(--amber);
  text-shadow: 0 0 30px rgba(245, 158, 11, 0.3);
  text-decoration: none;
}
.nav-brand img { height: 28px; width: auto; }
.nav-links {
  display: flex;
  gap: 32px;
  list-style: none;
}
.nav-links a {
  color: var(--text-dim);
  text-decoration: none;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.5px;
  transition: color 0.3s;
  position: relative;
  padding-bottom: 4px;
}
.nav-links a::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 1.5px;
  background: var(--cyan);
  transform: scaleX(0);
  transform-origin: center;
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  border-radius: 1px;
  box-shadow: 0 0 6px rgba(34, 211, 238, 0.4);
}
.nav-links a:hover { color: var(--cyan); }
.nav-links a:hover::after,
.nav-links a.active::after { transform: scaleX(1); }

/* Hamburger */
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
  z-index: 1001;
}
.nav-toggle span {
  display: block;
  width: 22px; height: 2px;
  background: var(--text-secondary);
  border-radius: 2px;
  transition: all 0.3s;
}
.nav-toggle.open span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }

@media (max-width: 768px) {
  .nav-toggle { display: flex; }
  .nav-links {
    display: none;
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(4, 7, 13, 0.98);
    backdrop-filter: blur(20px);
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 28px;
    z-index: 999;
  }
  .nav-links.open { display: flex; }
  .nav-links a { font-size: 18px; letter-spacing: 1px; }
  .nav { padding: 12px 20px; }
}

/* ===============================================================
   LAYOUT
   =============================================================== */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 32px;
}
.container-wide {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 32px;
}

@media (max-width: 768px) {
  .container, .container-wide { padding: 0 16px; }
}

section {
  padding: 100px 0;
  position: relative;
}

.divider {
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--border-bright), transparent);
  margin: 0 auto;
  max-width: 800px;
}

/* ===============================================================
   HERO SECTION — E10 Showcase
   =============================================================== */
.perf-hero {
  padding: 140px 0 80px;
  position: relative;
  overflow: hidden;
}
.perf-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 80% 60% at 50% 20%, rgba(245, 158, 11, 0.06) 0%, transparent 70%),
    radial-gradient(ellipse 60% 50% at 70% 60%, rgba(34, 211, 238, 0.03) 0%, transparent 70%),
    linear-gradient(rgba(34, 211, 238, 0.015) 1px, transparent 1px),
    linear-gradient(90deg, rgba(34, 211, 238, 0.015) 1px, transparent 1px);
  background-size: 100% 100%, 100% 100%, 60px 60px, 60px 60px;
}
.perf-hero-eyebrow {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 4px;
  color: var(--amber);
  text-transform: uppercase;
  margin-bottom: 16px;
}
.perf-hero-title {
  font-family: 'Playfair Display', serif;
  font-size: clamp(36px, 5vw, 60px);
  font-weight: 800;
  letter-spacing: -1.5px;
  line-height: 1.1;
  margin-bottom: 20px;
}
.perf-hero-title .accent {
  background: linear-gradient(135deg, var(--green-bright) 0%, var(--cyan) 50%, var(--amber) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.perf-hero-subtitle {
  font-size: 18px;
  color: var(--text-secondary);
  max-width: 640px;
  line-height: 1.7;
  margin-bottom: 48px;
}

/* Hero headline stats */
.hero-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  margin-bottom: 48px;
}
.hero-stat {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 24px;
  text-align: center;
  transition: border-color 0.3s, transform 0.3s;
}
.hero-stat:hover {
  border-color: var(--border-bright);
  transform: translateY(-2px);
}
.hero-stat-value {
  font-family: 'JetBrains Mono', monospace;
  font-size: clamp(28px, 3.5vw, 42px);
  font-weight: 700;
  line-height: 1;
  margin-bottom: 8px;
}
.hero-stat-value .unit {
  font-size: 0.5em;
  font-weight: 400;
  color: var(--text-dim);
}
.hero-stat-label {
  font-size: 13px;
  color: var(--text-dim);
  letter-spacing: 0.5px;
}
.stat-green { color: var(--green-bright); }
.stat-cyan { color: var(--cyan); }
.stat-amber { color: var(--amber); }
.stat-gold { color: var(--gold-light); }

@media (max-width: 768px) {
  .hero-stats { grid-template-columns: repeat(2, 1fr); gap: 12px; }
  .hero-stat { padding: 16px; }
}

/* Hero chart container */
.hero-chart-container {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 32px;
  position: relative;
  overflow: hidden;
}
.hero-chart-container::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--amber), var(--green-bright), var(--cyan));
  border-radius: 20px 20px 0 0;
}
.hero-chart-title {
  font-family: 'JetBrains Mono', monospace;
  font-size: 12px;
  letter-spacing: 2px;
  color: var(--text-dim);
  text-transform: uppercase;
  margin-bottom: 4px;
}
.hero-chart-subtitle {
  font-family: 'Playfair Display', serif;
  font-size: 22px;
  font-weight: 600;
  margin-bottom: 24px;
}
.hero-chart-subtitle .highlight {
  color: var(--green-bright);
}
.hero-chart-container canvas {
  max-height: 350px;
  width: 100% !important;
}
.chart-card-full canvas {
  max-height: 240px;
}

/* ===============================================================
   CROSS-ENGINE COMPARISON TABLE
   =============================================================== */
.comp-table-wrapper {
  overflow-x: auto;
  border-radius: 16px;
  border: 1px solid var(--border);
  background: var(--bg-card);
}
.comp-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
}
.comp-table thead {
  background: rgba(34, 211, 238, 0.05);
}
.comp-table th {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--text-dim);
  padding: 16px 20px;
  text-align: left;
  white-space: nowrap;
  border-bottom: 1px solid var(--border);
}
.comp-table td {
  padding: 14px 20px;
  border-bottom: 1px solid rgba(255,255,255,0.03);
  white-space: nowrap;
}
.comp-table tbody tr {
  transition: background 0.2s;
}
.comp-table tbody tr:hover {
  background: rgba(34, 211, 238, 0.03);
}
.comp-table .engine-name {
  font-weight: 600;
  color: var(--text-primary);
}
.comp-table .engine-tag {
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 1px;
  padding: 3px 8px;
  border-radius: 4px;
  display: inline-block;
  margin-right: 8px;
}
.comp-table .val-good { color: var(--green-bright); font-weight: 600; }
.comp-table .val-great { color: var(--amber); font-weight: 700; }
.comp-table .val-neutral { color: var(--text-secondary); }
.comp-table .val-dim { color: var(--text-dim); }
.comp-table .row-hero {
  background: rgba(245, 158, 11, 0.04);
}
.comp-table .row-hero td {
  border-bottom-color: rgba(245, 158, 11, 0.15);
}

/* ===============================================================
   PER-ENGINE DEEP DIVE CARDS
   =============================================================== */
.engine-section {
  padding: 80px 0;
}
.engine-header {
  display: flex;
  align-items: flex-start;
  gap: 24px;
  margin-bottom: 32px;
}
.engine-badge {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 2px;
  padding: 6px 14px;
  border-radius: 8px;
  white-space: nowrap;
  flex-shrink: 0;
}
.engine-header-text h2 {
  font-family: 'Playfair Display', serif;
  font-size: 28px;
  font-weight: 700;
  letter-spacing: -0.5px;
  margin-bottom: 8px;
}
.engine-header-text p {
  font-size: 16px;
  color: var(--text-secondary);
  line-height: 1.7;
  max-width: 700px;
}

/* Metrics row */
.metrics-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 12px;
  margin-bottom: 32px;
}
.metric-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 16px 20px;
  text-align: center;
}
.metric-card-value {
  font-family: 'JetBrains Mono', monospace;
  font-size: 22px;
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 4px;
}
.metric-card-label {
  font-size: 11px;
  color: var(--text-dim);
  text-transform: uppercase;
  letter-spacing: 1px;
}
.metric-card-delta {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  margin-top: 4px;
}
.delta-pos { color: var(--green); }
.delta-neg { color: var(--red); }
.delta-neutral { color: var(--text-dim); }

/* Chart grid */
.chart-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin-top: 24px;
}
.chart-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 24px;
}
.chart-card canvas {
  max-height: 280px;
  width: 100% !important;
}
.chart-card-full {
  grid-column: 1 / -1;
}
.chart-card-title {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  letter-spacing: 1.5px;
  color: var(--text-dim);
  text-transform: uppercase;
  margin-bottom: 16px;
}

@media (max-width: 768px) {
  .chart-grid { grid-template-columns: 1fr; }
  .engine-header { flex-direction: column; gap: 12px; }
  .metrics-row { grid-template-columns: repeat(2, 1fr); }
}

/* ===============================================================
   GK IMPACT SECTION
   =============================================================== */
.gk-impact {
  background: linear-gradient(180deg, var(--bg-deep) 0%, rgba(34, 211, 238, 0.02) 50%, var(--bg-deep) 100%);
}
.gk-before-after {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 32px;
  align-items: center;
  margin-top: 48px;
}
.gk-column {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 32px;
}
.gk-column h3 {
  font-family: 'JetBrains Mono', monospace;
  font-size: 12px;
  letter-spacing: 2px;
  text-transform: uppercase;
  margin-bottom: 20px;
}
.gk-arrow {
  font-size: 32px;
  color: var(--cyan);
  text-align: center;
}
.gk-metric-row {
  display: flex;
  justify-content: space-between;
  padding: 10px 0;
  border-bottom: 1px solid rgba(255,255,255,0.03);
}
.gk-metric-label { color: var(--text-secondary); font-size: 14px; }
.gk-metric-value {
  font-family: 'JetBrains Mono', monospace;
  font-weight: 600;
  font-size: 14px;
}

@media (max-width: 768px) {
  .gk-before-after {
    grid-template-columns: 1fr;
    gap: 16px;
  }
  .gk-arrow { transform: rotate(90deg); }
}

/* ===============================================================
   NEGATIVE RESULT / TRUST SECTION
   =============================================================== */
.trust-section {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 48px;
  max-width: 900px;
  margin: 0 auto;
  position: relative;
  overflow: hidden;
}
.trust-section::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--red), var(--amber));
}
.trust-title {
  font-family: 'Playfair Display', serif;
  font-size: 24px;
  font-weight: 700;
  margin-bottom: 16px;
}
.trust-body {
  color: var(--text-secondary);
  font-size: 16px;
  line-height: 1.8;
}
.trust-body strong { color: var(--text-primary); }
.trust-phases {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  margin: 24px 0;
}
.trust-phase {
  background: rgba(239, 68, 68, 0.06);
  border: 1px solid rgba(239, 68, 68, 0.15);
  border-radius: 10px;
  padding: 16px;
  text-align: center;
}
.trust-phase-name {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  letter-spacing: 1px;
  color: var(--red);
  margin-bottom: 8px;
}
.trust-phase-result {
  font-size: 13px;
  color: var(--text-secondary);
}
.trust-phase-pf {
  font-family: 'JetBrains Mono', monospace;
  font-weight: 700;
  color: var(--red);
  font-size: 16px;
}

@media (max-width: 768px) {
  .trust-phases { grid-template-columns: repeat(2, 1fr); }
  .trust-section { padding: 24px; }
}

/* ===============================================================
   METHODOLOGY SECTION
   =============================================================== */
.method-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-top: 48px;
}
.method-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 32px;
  transition: border-color 0.3s, transform 0.3s;
}
.method-card:hover {
  border-color: var(--border-bright);
  transform: translateY(-4px);
}
.method-num {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  font-weight: 700;
  color: var(--bg-deep);
  background: var(--cyan);
  width: 28px; height: 28px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
}
.method-card h3 {
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 8px;
}
.method-card p {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.7;
}

@media (max-width: 768px) {
  .method-grid { grid-template-columns: 1fr; }
}

/* ===============================================================
   SECTION TITLES
   =============================================================== */
.section-eyebrow {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 4px;
  color: var(--cyan);
  text-transform: uppercase;
  margin-bottom: 16px;
}
.section-title {
  font-family: 'Playfair Display', serif;
  font-size: clamp(28px, 4vw, 44px);
  font-weight: 700;
  letter-spacing: -1px;
  line-height: 1.15;
  margin-bottom: 16px;
}
.section-title .accent {
  background: linear-gradient(135deg, var(--cyan) 0%, var(--amber) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.section-subtitle {
  font-size: 17px;
  color: var(--text-secondary);
  max-width: 640px;
  line-height: 1.7;
}

/* ===============================================================
   FOOTER
   =============================================================== */
.site-footer {
  padding: 64px 0;
  border-top: 1px solid var(--border);
  text-align: center;
}
.footer-brand {
  font-family: 'JetBrains Mono', monospace;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 3px;
  color: var(--amber);
  margin-bottom: 8px;
}
.footer-text {
  font-size: 14px;
  color: var(--text-secondary);
  margin-bottom: 4px;
}
.footer-text a {
  color: var(--text-dim);
  text-decoration: none;
  border-bottom: 1px solid var(--border);
}
.footer-text a:hover { color: var(--cyan); }
.footer-brand .accent {
  background: linear-gradient(135deg, var(--cyan) 0%, var(--amber) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.footer-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px 20px;
  margin-top: 12px;
}
.footer-links a {
  color: var(--text-dim);
  text-decoration: none;
  font-size: 13px;
  border-bottom: 1px solid var(--border);
  transition: color 0.3s;
}
.footer-links a:hover { color: var(--cyan); }
.footer-legal {
  font-size: 12px;
  color: var(--text-dim);
  margin-top: 24px;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
  line-height: 1.6;
}

/* ===============================================================
   SCROLL ANIMATIONS
   =============================================================== */
/* Reveal: instant visibility, subtle fade-in only (no layout shift) */
.reveal {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.4s ease-out, transform 0.4s ease-out;
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}
.reveal-delay-1 { transition-delay: 0.05s; }
.reveal-delay-2 { transition-delay: 0.1s; }
.reveal-delay-3 { transition-delay: 0.15s; }
.reveal-delay-4 { transition-delay: 0.2s; }
.reveal-delay-5 { transition-delay: 0.25s; }

/* ===============================================================
   ENGINE COLOUR ACCENTS
   =============================================================== */
.accent-e10 { color: #ff9800; }
.accent-e6gc { color: #e91e63; }
.accent-e3a { color: #4caf50; }
.accent-e6cl { color: #e91e63; }
.accent-e2 { color: #2196f3; }
.accent-e9 { color: #00bcd4; }
.accent-e5 { color: #ff5722; }
.accent-e4 { color: #795548; }
.accent-e3b { color: #00796b; }

.badge-e10 { background: rgba(255,152,0,0.12); color: #ff9800; border: 1px solid rgba(255,152,0,0.25); }
.badge-e6gc { background: rgba(233,30,99,0.12); color: #e91e63; border: 1px solid rgba(233,30,99,0.25); }
.badge-e3a { background: rgba(76,175,80,0.12); color: #4caf50; border: 1px solid rgba(76,175,80,0.25); }
.badge-e6cl { background: rgba(233,30,99,0.12); color: #e91e63; border: 1px solid rgba(233,30,99,0.25); }
.badge-e2 { background: rgba(33,150,243,0.12); color: #2196f3; border: 1px solid rgba(33,150,243,0.25); }
.badge-e9 { background: rgba(0,188,212,0.12); color: #00bcd4; border: 1px solid rgba(0,188,212,0.25); }
.badge-e5 { background: rgba(255,87,34,0.12); color: #ff5722; border: 1px solid rgba(255,87,34,0.25); }
.badge-e4 { background: rgba(121,85,72,0.12); color: #a1887f; border: 1px solid rgba(121,85,72,0.25); }
.badge-e3b { background: rgba(0,121,107,0.12); color: #4db6ac; border: 1px solid rgba(0,121,107,0.25); }
.badge-e8 { background: rgba(158,158,158,0.12); color: #9e9e9e; border: 1px solid rgba(158,158,158,0.25); }
.badge-e7 { background: rgba(167,139,250,0.12); color: #a78bfa; border: 1px solid rgba(167,139,250,0.25); }
.badge-e1 { background: rgba(239,68,68,0.12); color: #ef4444; border: 1px solid rgba(239,68,68,0.25); }

/* ===============================================================
   BENCHMARK CONTEXT
   =============================================================== */
.benchmark-bar {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 20px 28px;
  margin-top: 24px;
  display: flex;
  gap: 32px;
  flex-wrap: wrap;
  align-items: center;
}
.benchmark-bar-title {
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px;
  letter-spacing: 2px;
  color: var(--text-dim);
  text-transform: uppercase;
  white-space: nowrap;
}
.benchmark-item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: var(--text-secondary);
}
.benchmark-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  flex-shrink: 0;
}
.benchmark-dot.dot-dim { background: var(--text-dim); }
.benchmark-dot.dot-good { background: var(--green); }
.benchmark-dot.dot-great { background: var(--amber); }
.benchmark-dot.dot-elite { background: var(--green-bright); }
.benchmark-value {
  font-family: 'JetBrains Mono', monospace;
  font-weight: 600;
  color: var(--text-primary);
}

/* Capital & Leverage disclosure note */
.capital-note {
  background: rgba(245, 158, 11, 0.04);
  border: 1px solid rgba(245, 158, 11, 0.15);
  border-radius: 12px;
  padding: 20px 24px;
  margin-top: 24px;
  display: flex;
  gap: 20px;
  align-items: flex-start;
}
.capital-note-icon {
  font-family: 'JetBrains Mono', monospace;
  font-size: 16px;
  font-weight: 700;
  color: var(--amber);
  background: rgba(245, 158, 11, 0.1);
  border: 1px solid rgba(245, 158, 11, 0.2);
  border-radius: 8px;
  padding: 8px 14px;
  white-space: nowrap;
  flex-shrink: 0;
}
.capital-note-text {
  font-size: 13px;
  color: var(--text-secondary);
  line-height: 1.7;
}
.capital-note-text strong {
  color: var(--text-primary);
}

@media (max-width: 768px) {
  .capital-note { flex-direction: column; gap: 12px; }
}

/* Metric card benchmark annotation */
.metric-card-benchmark {
  font-size: 10px;
  color: var(--text-dim);
  margin-top: 4px;
  font-style: italic;
}

/* ===============================================================
   ACADEMIC CITATIONS
   =============================================================== */
.citation-bar {
  background: rgba(34, 211, 238, 0.03);
  border: 1px solid var(--border);
  border-left: 3px solid var(--cyan);
  border-radius: 0 12px 12px 0;
  padding: 20px 24px;
  margin-top: 24px;
}
.citation-bar-title {
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px;
  letter-spacing: 2px;
  color: var(--cyan);
  text-transform: uppercase;
  margin-bottom: 10px;
}
.citation-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.citation-list li {
  font-size: 13px;
  color: var(--text-secondary);
  line-height: 1.5;
  padding-left: 16px;
  position: relative;
}
.citation-list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 8px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: rgba(34, 211, 238, 0.4);
}
.citation-list a {
  color: var(--cyan);
  text-decoration: none;
  border-bottom: 1px solid rgba(34, 211, 238, 0.2);
  transition: border-color 0.3s;
}
.citation-list a:hover {
  border-bottom-color: var(--cyan);
}
.citation-list .cite-authors {
  color: var(--text-primary);
  font-weight: 500;
}

/* ===============================================================
   REFERENCES SECTION
   =============================================================== */
.ref-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-top: 40px;
}
.ref-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 20px 24px;
  transition: border-color 0.3s;
}
.ref-card:hover {
  border-color: var(--border-bright);
}
.ref-engine-tag {
  font-family: 'JetBrains Mono', monospace;
  font-size: 9px;
  font-weight: 600;
  letter-spacing: 1px;
  padding: 2px 6px;
  border-radius: 3px;
  margin-right: 6px;
  vertical-align: middle;
}
.ref-title {
  font-size: 14px;
  font-weight: 500;
  color: var(--text-primary);
  margin-bottom: 4px;
  line-height: 1.4;
}
.ref-meta {
  font-size: 12px;
  color: var(--text-dim);
  line-height: 1.4;
}
.ref-meta a {
  color: var(--cyan);
  text-decoration: none;
  border-bottom: 1px solid rgba(34, 211, 238, 0.2);
}
.ref-meta a:hover { border-bottom-color: var(--cyan); }
.ref-finding {
  font-size: 12px;
  color: var(--text-secondary);
  margin-top: 6px;
  font-style: italic;
}

@media (max-width: 768px) {
  .ref-grid { grid-template-columns: 1fr; }
  .benchmark-bar { flex-direction: column; gap: 12px; align-items: flex-start; }
}

/* Info-only and narrative tags */
.tag-info {
  display: inline-block;
  font-family: 'JetBrains Mono', monospace;
  font-size: 9px;
  letter-spacing: 1px;
  padding: 2px 8px;
  border-radius: 4px;
  background: rgba(100,116,139,0.15);
  color: var(--text-dim);
  border: 1px solid rgba(100,116,139,0.2);
  text-transform: uppercase;
  margin-left: 8px;
  vertical-align: middle;
}
