/* =========================================================
   TraderMetrics · Orbital Schematic Landing
   Design system + section styles
   ========================================================= */

/* ---------- Tokens ---------- */
:root {
  --bg:          #0A0C10;
  --bg-2:        #0C0F14;
  --bg-3:        #11161D;

  --accent:      #1B9AAA;
  --accent-hi:   #2BD4E5;
  --accent-soft: rgba(27, 154, 170, 0.10);

  --fg:          #E6EAF0;
  --fg-2:        #B6BECC;
  --fg-dim:      #6E7886;
  --fg-faint:    #3C4452;

  --warm:        #C68A6A;     /* low-chroma signal for "negative" / warnings */
  --warm-dim:    rgba(198, 138, 106, 0.5);

  --hairline:    rgba(110, 120, 134, 0.22);
  --hairline-2:  rgba(110, 120, 134, 0.10);
  --hairline-t:  rgba(27, 154, 170, 0.22);

  --gutter:      56px;
  --section-py:  140px;
  --section-py-s: 96px;
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html, body {
  background: var(--bg);
  color: var(--fg);
  font-family: 'Inter', sans-serif;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  scroll-behavior: smooth;
}
body {
  overflow-x: hidden;
}
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: none; cursor: pointer; }
svg  { display: block; }

/* ---------- Typography utilities ---------- */
.mono   { font-family: 'JetBrains Mono', monospace; }
.caps   { text-transform: uppercase; letter-spacing: 0.22em; }
.caps-s { text-transform: uppercase; letter-spacing: 0.16em; }
.caps-l { text-transform: uppercase; letter-spacing: 0.28em; }

.t-faint { color: var(--fg-faint); }
.t-dim   { color: var(--fg-dim); }
.t-2     { color: var(--fg-2); }
.t-fg    { color: var(--fg); }
.t-accent{ color: var(--accent-hi); }
.t-warm  { color: var(--warm); }

/* ---------- Page background grain (very subtle) ---------- */
.grain {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 1;
  opacity: 0.32;
  mix-blend-mode: overlay;
  background-image:
    radial-gradient(rgba(255,255,255,0.018) 1px, transparent 1px);
  background-size: 3px 3px;
}

/* ============================================================
   GLOBAL CHROME — top header (sticky)
   ============================================================ */
.top-bar {
  position: fixed;
  top: 0; left: 0; right: 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 22px var(--gutter);
  z-index: 50;
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  letter-spacing: 0.08em;
  color: var(--fg-dim);
  background: linear-gradient(to bottom, rgba(10,12,16,0.85), rgba(10,12,16,0.55) 70%, rgba(10,12,16,0));
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}
.logo { display: flex; align-items: center; gap: 14px; color: var(--fg); }
.logo .mark {
  width: 12px; height: 12px;
  border: 1px solid var(--accent);
  transform: rotate(45deg);
  position: relative;
}
.logo .mark::after {
  content: '';
  position: absolute;
  inset: 2px;
  background: var(--accent);
  opacity: 0.55;
}
.logo .name { font-weight: 500; letter-spacing: 0.22em; color: var(--fg); }
.logo .sep  { color: var(--fg-faint); }
.logo .ver  { color: var(--fg-dim); }

.nav-top { display: flex; gap: 36px; }
.nav-top a {
  color: var(--fg-dim);
  transition: color 0.15s ease;
  position: relative;
}
.nav-top a:hover { color: var(--fg); }
.nav-top a.active { color: var(--fg); }
.nav-top a.active::after {
  content: '';
  position: absolute;
  left: 0; right: 0; bottom: -8px;
  height: 1px;
  background: var(--accent);
}

.status { display: flex; align-items: center; gap: 22px; color: var(--fg-dim); }
.status .item { display: flex; align-items: center; gap: 8px; }
.status .item .lbl { color: var(--fg-faint); }
.status .dot {
  width: 6px; height: 6px;
  background: var(--accent-hi);
  border-radius: 50%;
  box-shadow: 0 0 8px var(--accent-hi);
  animation: pulseDot 2.4s ease-in-out infinite;
}
@keyframes pulseDot {
  0%, 100% { opacity: 1; transform: scale(1); }
  50%      { opacity: 0.45; transform: scale(0.85); }
}

/* corner registration marks (page-fixed) */
.scaffold { position: fixed; inset: 0; pointer-events: none; z-index: 49; }
.reg { position: absolute; width: 14px; height: 14px; opacity: 0.55; }
.reg::before, .reg::after { content: ''; position: absolute; background: var(--fg-faint); }
.reg::before { width: 14px; height: 1px; }
.reg::after  { width: 1px; height: 14px; }
.reg.tl { top: 22px; left: 22px; }
.reg.tl::before, .reg.tl::after { top: 0; left: 0; }
.reg.tr { top: 22px; right: 22px; }
.reg.tr::before, .reg.tr::after { top: 0; right: 0; }
.reg.bl { bottom: 22px; left: 22px; }
.reg.bl::before, .reg.bl::after { bottom: 0; left: 0; }
.reg.br { bottom: 22px; right: 22px; }
.reg.br::before, .reg.br::after { bottom: 0; right: 0; }

/* ============================================================
   HERO SECTION (ported from Orbital Schematic prototype)
   ============================================================ */
.hero {
  position: relative;
  height: 100vh;
  min-height: 760px;
  overflow: hidden;
}
.hero canvas#hero-bg {
  position: absolute;
  inset: 0;
  width: 100%; height: 100%;
  z-index: 1;
}
.hero .hero-main {
  position: relative;
  z-index: 3;
  height: 100%;
  padding: 0 var(--gutter);
  display: grid;
  grid-template-columns: minmax(0, 42%) minmax(0, 58%);
  align-items: center;
}
.hero .text-block {
  padding-left: 14px;
  padding-top: 24px;
  max-width: 620px;
}
.ident {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  letter-spacing: 0.28em;
  color: var(--accent-hi);
  margin-bottom: 34px;
  display: flex; align-items: center; gap: 14px;
}
.ident::before {
  content: '';
  width: 28px; height: 1px;
  background: var(--accent);
}
.ident .dim { color: var(--fg-dim); }

.hero h1 {
  font-family: 'JetBrains Mono', monospace;
  font-size: clamp(40px, 4.1vw, 60px);
  line-height: 1.05;
  letter-spacing: -0.012em;
  color: var(--fg);
  margin-bottom: 32px;
}
.hero h1 .w-thin {
  font-weight: 200;
  color: var(--fg-2);
  display: block;
  font-size: 0.82em;
  letter-spacing: 0.02em;
}
.hero h1 .w-bold {
  font-weight: 700;
  display: block;
  color: var(--fg);
  margin-top: 4px;
}
.hero h1 .w-reg {
  font-weight: 400;
  display: block;
  font-size: 0.5em;
  color: var(--fg-dim);
  letter-spacing: 0.05em;
  margin-top: 18px;
  line-height: 1.3;
}
.hero h1 .accent-dot { color: var(--accent-hi); }

.hero .sub {
  font-size: 15.5px;
  line-height: 1.62;
  color: var(--fg-2);
  max-width: 460px;
  font-weight: 400;
  margin-bottom: 40px;
}
.hero .sub .em { color: var(--fg); font-weight: 500; }

.cta-row { display: flex; align-items: center; gap: 8px; }
.cta {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11.5px;
  letter-spacing: 0.18em;
  color: var(--fg);
  padding: 14px 22px;
  border: 1px solid var(--accent);
  background: rgba(27, 154, 170, 0.06);
  display: inline-flex; align-items: center; gap: 14px;
  transition: background 0.18s ease, border-color 0.18s ease;
  position: relative;
}
.cta::before {
  content: '';
  position: absolute;
  inset: 3px;
  border: 1px solid transparent;
  transition: border-color 0.18s ease;
  pointer-events: none;
}
.cta:hover { background: rgba(27, 154, 170, 0.14); border-color: var(--accent-hi); }
.cta:hover::before { border-color: rgba(43, 212, 229, 0.18); }
.cta .arrow { color: var(--accent-hi); }
.cta-ghost {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11.5px;
  letter-spacing: 0.18em;
  color: var(--fg-dim);
  padding: 14px 16px;
  display: inline-flex; gap: 10px; align-items: center;
  transition: color 0.18s ease;
}
.cta-ghost:hover { color: var(--fg); }
.cta-ghost .arrow { color: var(--fg-faint); }

.hero .stage { position: relative; width: 100%; height: 100%; pointer-events: none; }
.fig-cap {
  position: absolute;
  top: 18%;
  right: 8%;
  font-family: 'JetBrains Mono', monospace;
  font-size: 10.5px;
  letter-spacing: 0.14em;
  color: var(--fg-dim);
  text-align: right;
  line-height: 1.7;
}
.fig-cap .fig { color: var(--fg); font-weight: 500; letter-spacing: 0.2em; }
.fig-cap .muted { color: var(--fg-faint); }
.periphery { position: absolute; inset: 0; pointer-events: none; }
.periphery .label {
  position: absolute;
  transform: translate(-50%, -50%);
  font-family: 'JetBrains Mono', monospace;
  font-size: 10.5px;
  letter-spacing: 0.06em;
  color: var(--fg-2);
  opacity: 0.34;
  white-space: nowrap;
  display: flex; align-items: center; gap: 8px;
}
.periphery .label.accent { color: var(--accent-hi); opacity: 0.55; }
.periphery .label .tick {
  display: inline-block;
  width: 8px; height: 1px;
  background: currentColor;
  opacity: 0.6;
  order: 2;
}

.hero .kpi-bar-wrap {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  padding: 24px var(--gutter) 28px;
  z-index: 4;
}
.kpi-bar {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-top: 1px solid var(--hairline);
  padding-top: 22px;
}
.kpi-cell {
  border-left: 1px solid var(--hairline);
  padding: 0 28px;
  display: flex; flex-direction: column; gap: 8px;
}
.kpi-cell:first-child { border-left: none; padding-left: 0; }
.kpi-label {
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px;
  letter-spacing: 0.24em;
  color: var(--fg-faint);
  text-transform: uppercase;
  display: flex; align-items: center; gap: 8px;
}
.kpi-label::before {
  content: '';
  width: 4px; height: 4px;
  background: var(--accent);
  opacity: 0.7;
}
.kpi-value {
  font-family: 'JetBrains Mono', monospace;
  font-size: 26px;
  font-weight: 300;
  color: var(--fg);
  letter-spacing: -0.012em;
  display: flex; align-items: baseline; gap: 6px;
  line-height: 1;
}
.kpi-unit {
  font-size: 11px;
  color: var(--fg-dim);
  font-weight: 400;
  letter-spacing: 0.1em;
}
.kpi-meta {
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px;
  color: var(--fg-dim);
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
.kpi-meta .up { color: var(--accent-hi); }

/* ============================================================
   SECTION SCAFFOLDING
   ============================================================ */
.section {
  position: relative;
  padding: var(--section-py) var(--gutter);
  border-top: 1px solid var(--hairline);
}
.section.alt { background: var(--bg-2); }
.section-head {
  display: grid;
  grid-template-columns: minmax(220px, 280px) 1fr minmax(280px, 360px);
  gap: 64px;
  align-items: end;
  padding-bottom: 64px;
  margin-bottom: 64px;
  border-bottom: 1px solid var(--hairline-2);
}
.fig-label {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  letter-spacing: 0.28em;
  color: var(--accent-hi);
  display: flex; flex-direction: column; gap: 6px;
}
.fig-label .num {
  color: var(--fg);
  font-weight: 500;
  letter-spacing: 0.22em;
}
.fig-label .sub-num {
  color: var(--fg-faint);
  font-size: 10px;
  letter-spacing: 0.18em;
  margin-top: 4px;
}

.section-title {
  font-family: 'JetBrains Mono', monospace;
  font-weight: 300;
  font-size: clamp(34px, 3.2vw, 50px);
  line-height: 1.1;
  letter-spacing: -0.01em;
  color: var(--fg);
}
.section-title strong { font-weight: 700; }
.section-title em {
  font-style: normal;
  color: var(--fg-dim);
}

.section-meta {
  font-size: 14.5px;
  line-height: 1.6;
  color: var(--fg-2);
  max-width: 340px;
}
.section-meta a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 16px;
  color: var(--accent-hi);
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  letter-spacing: 0.18em;
  border-bottom: 1px solid var(--accent);
  padding-bottom: 6px;
  text-transform: uppercase;
}
.section-meta a:hover { color: var(--fg); border-color: var(--fg); }

.divider-thru {
  border-top: 1px solid var(--hairline);
  height: 1px;
}

/* ---------- Frame & panel primitives ---------- */
.panel {
  position: relative;
  border: 1px solid var(--hairline);
  background: rgba(12, 15, 20, 0.5);
}
.panel.tealed { border-color: var(--hairline-t); }
.panel-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 14px 18px;
  border-bottom: 1px solid var(--hairline);
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px;
  letter-spacing: 0.22em;
  color: var(--fg-dim);
  text-transform: uppercase;
}
.panel-head .tag-l { color: var(--fg); }
.panel-body { padding: 22px 22px 24px; }
/* corner brackets on panels */
.panel.bracketed::before,
.panel.bracketed::after {
  content: '';
  position: absolute;
  width: 10px; height: 10px;
  border: 1px solid var(--accent);
  opacity: 0.7;
}
.panel.bracketed::before { top: -1px; left: -1px; border-right: none; border-bottom: none; }
.panel.bracketed::after  { bottom: -1px; right: -1px; border-left: none; border-top: none; }

/* tags */
.tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 5px 10px;
  border: 1px solid var(--hairline);
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px;
  letter-spacing: 0.18em;
  color: var(--fg-dim);
  text-transform: uppercase;
}
.tag.teal { border-color: var(--accent); color: var(--accent-hi); }
.tag.live::before {
  content: '';
  width: 6px; height: 6px; background: var(--accent-hi);
  box-shadow: 0 0 6px var(--accent-hi);
  border-radius: 50%;
  animation: pulseDot 2s ease-in-out infinite;
}

/* metric primitives */
.metric-lg {
  font-family: 'JetBrains Mono', monospace;
  font-size: clamp(36px, 3.8vw, 56px);
  font-weight: 300;
  color: var(--fg);
  letter-spacing: -0.015em;
  line-height: 1;
  display: flex; align-items: baseline; gap: 8px;
}
.metric-lg .unit, .metric-lg .meta {
  font-size: 14px;
  color: var(--fg-dim);
  letter-spacing: 0.08em;
  font-weight: 400;
}
.metric-md {
  font-family: 'JetBrains Mono', monospace;
  font-size: 26px;
  font-weight: 400;
  color: var(--fg);
  letter-spacing: -0.01em;
  line-height: 1;
}
.metric-label {
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px;
  letter-spacing: 0.24em;
  color: var(--fg-faint);
  text-transform: uppercase;
  margin-bottom: 12px;
  display: flex; align-items: center; gap: 8px;
}
.metric-label::before {
  content: '';
  width: 4px; height: 4px;
  background: var(--accent);
  opacity: 0.7;
}
.metric-stat-row {
  margin-top: 12px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  color: var(--fg-dim);
  letter-spacing: 0.06em;
}
.metric-stat-row .sep { color: var(--fg-faint); margin: 0 8px; }

/* arrow link */
.arrow-link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  letter-spacing: 0.2em;
  color: var(--accent-hi);
  text-transform: uppercase;
  border-bottom: 1px solid var(--accent);
  padding-bottom: 5px;
}
.arrow-link:hover { color: var(--fg); border-color: var(--fg); }
.arrow-link .arrow { color: var(--accent-hi); }
.arrow-link:hover .arrow { color: var(--fg); }

/* row-of-stats line */
.row-stats {
  display: flex;
  gap: 0;
  font-family: 'JetBrains Mono', monospace;
  font-size: 12px;
  color: var(--fg-dim);
  letter-spacing: 0.06em;
}
.row-stats > * {
  padding: 0 14px;
  border-left: 1px solid var(--hairline);
}
.row-stats > *:first-child { border-left: none; padding-left: 0; }

/* ============================================================
   SECTION: OPERATIONAL FLOW (3 STEPS)
   ============================================================ */
.flow-grid {
  display: grid;
  grid-template-columns: 1fr 60px 1fr 60px 1fr;
  gap: 0;
  align-items: stretch;
}
.flow-step {
  border: 1px solid var(--hairline);
  padding: 36px 32px 32px;
  display: flex; flex-direction: column; gap: 22px;
  background: rgba(12, 15, 20, 0.4);
  position: relative;
}
.flow-step .step-num {
  font-family: 'JetBrains Mono', monospace;
  font-size: 72px;
  font-weight: 200;
  color: var(--fg-faint);
  line-height: 1;
  letter-spacing: -0.02em;
}
.flow-step .step-kind {
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px;
  letter-spacing: 0.32em;
  color: var(--accent-hi);
  text-transform: uppercase;
}
.flow-step h3 {
  font-family: 'JetBrains Mono', monospace;
  font-size: 22px;
  font-weight: 500;
  color: var(--fg);
  letter-spacing: -0.005em;
}
.flow-step p {
  font-size: 14px;
  line-height: 1.65;
  color: var(--fg-2);
  margin-top: -8px;
}
.flow-step .step-frame {
  position: absolute;
  top: 14px; right: 14px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 9px;
  letter-spacing: 0.2em;
  color: var(--fg-faint);
}
.flow-arrow {
  align-self: center;
  height: 1px;
  width: 100%;
  background: var(--hairline);
  position: relative;
}
.flow-arrow::after {
  content: '▸';
  position: absolute;
  right: -2px;
  top: -8px;
  font-size: 12px;
  color: var(--accent);
}
.flow-arrow::before {
  content: '';
  position: absolute;
  left: 0; top: -3px;
  width: 6px; height: 6px;
  border: 1px solid var(--accent);
  background: var(--bg);
}

/* ============================================================
   SECTION: DASHBOARD VIDEO
   ============================================================ */
.dashboard-grid {
  display: grid;
  grid-template-columns: minmax(0, 38%) minmax(0, 62%);
  gap: 64px;
  align-items: start;
}
.dashboard-info { padding-top: 12px; }
.dashboard-info h3 {
  font-family: 'JetBrains Mono', monospace;
  font-size: 26px;
  font-weight: 400;
  color: var(--fg);
  margin-bottom: 22px;
  line-height: 1.25;
}
.dashboard-info p {
  font-size: 15px;
  line-height: 1.7;
  color: var(--fg-2);
  margin-bottom: 28px;
  max-width: 420px;
}
.dashboard-info .stat-block {
  margin-top: 36px;
  border-top: 1px solid var(--hairline);
  padding-top: 24px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}
.dashboard-info .stat-block .stat {
  display: flex; flex-direction: column; gap: 6px;
}

.video-frame {
  position: relative;
  border: 1px solid var(--hairline-t);
  background: var(--bg-3);
  padding: 14px 14px 14px;
}
.video-frame::before,
.video-frame::after {
  content: ''; position: absolute;
  width: 14px; height: 14px;
  border: 1px solid var(--accent);
}
.video-frame::before { top: -1px; left: -1px; border-right: none; border-bottom: none; }
.video-frame::after  { bottom: -1px; right: -1px; border-left: none; border-top: none; }
.video-frame .vf-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 4px 12px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px;
  letter-spacing: 0.2em;
  color: var(--fg-dim);
  text-transform: uppercase;
}
.video-frame .vf-head .left { display: flex; gap: 16px; align-items: center; }
.video-frame .vf-head .right { display: flex; gap: 16px; align-items: center; }
.video-frame video {
  width: 100%;
  display: block;
  background: var(--bg);
  border: 1px solid var(--hairline);
}
.video-frame .vf-foot {
  display: flex; justify-content: space-between;
  padding: 12px 4px 2px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px;
  letter-spacing: 0.18em;
  color: var(--fg-faint);
  text-transform: uppercase;
}

/* ============================================================
   SECTION: AI FACTS (3 cells)
   ============================================================ */
.facts-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border: 1px solid var(--hairline);
}
.fact {
  padding: 32px 30px 30px;
  border-left: 1px solid var(--hairline);
  display: flex; flex-direction: column; gap: 18px;
  background: rgba(12, 15, 20, 0.35);
}
.fact:first-child { border-left: none; }
.fact .fact-head {
  display: flex; justify-content: space-between; align-items: center;
}
.fact .kind {
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px;
  letter-spacing: 0.28em;
  color: var(--accent-hi);
  text-transform: uppercase;
}
.fact .fact-idx {
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px;
  letter-spacing: 0.2em;
  color: var(--fg-faint);
}
.fact .headline {
  font-family: 'JetBrains Mono', monospace;
  font-size: 13px;
  color: var(--fg-dim);
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.fact .big-num {
  font-family: 'JetBrains Mono', monospace;
  font-size: 36px;
  font-weight: 300;
  color: var(--fg);
  letter-spacing: -0.02em;
  line-height: 1;
}
.fact .big-num .sign-neg { color: var(--warm); }
.fact .big-num .sign-pos { color: var(--accent-hi); }
.fact .stats-line {
  display: flex; gap: 0;
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  color: var(--fg-dim);
  letter-spacing: 0.06em;
}
.fact .stats-line > * {
  padding: 0 12px;
  border-left: 1px solid var(--hairline);
}
.fact .stats-line > *:first-child { border-left: none; padding-left: 0; }
.fact .note {
  font-size: 14px;
  line-height: 1.6;
  color: var(--fg-2);
  border-top: 1px solid var(--hairline);
  padding-top: 18px;
}
.fact .fact-cta { margin-top: auto; }

/* ============================================================
   SECTION: ANALYTICS (4 charts + AI)
   ============================================================ */
.analytics-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  border: 1px solid var(--hairline);
}
.chart-cell {
  border-left: 1px solid var(--hairline);
  border-top: 1px solid var(--hairline);
  padding: 22px 24px 26px;
  display: flex; flex-direction: column; gap: 14px;
  min-height: 240px;
}
.chart-cell:nth-child(odd)  { border-left: none; }
.chart-cell:nth-child(-n+2) { border-top: none; }
.chart-cell .ch-head {
  display: flex; justify-content: space-between; align-items: center;
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px;
  letter-spacing: 0.2em;
  color: var(--fg-dim);
  text-transform: uppercase;
}
.chart-cell .ch-title { color: var(--fg); }
.chart-cell svg { width: 100%; flex: 1; }

.analytics-secondary {
  margin-top: 32px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
}
.ai-researcher {
  border: 1px solid var(--hairline);
  padding: 24px 26px;
  display: flex; flex-direction: column; gap: 18px;
}
.ai-researcher .ar-head {
  display: flex; justify-content: space-between; align-items: center;
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px;
  letter-spacing: 0.22em;
  color: var(--fg-dim);
  text-transform: uppercase;
}
.ai-researcher .prompt-row {
  border: 1px solid var(--accent);
  background: rgba(27, 154, 170, 0.04);
  padding: 14px 16px;
  display: flex; align-items: center; gap: 12px;
  font-family: 'JetBrains Mono', monospace;
}
.ai-researcher .prompt-row .caret {
  color: var(--accent-hi);
  font-size: 14px;
}
.ai-researcher .prompt-row input {
  flex: 1;
  background: transparent;
  border: none;
  outline: none;
  font: inherit;
  color: var(--fg);
  font-size: 13px;
  letter-spacing: 0.04em;
}
.ai-researcher .examples {
  display: flex; gap: 8px; flex-wrap: wrap;
}
.example-pill {
  font-family: 'JetBrains Mono', monospace;
  font-size: 10.5px;
  letter-spacing: 0.06em;
  padding: 6px 12px;
  border: 1px solid var(--hairline);
  color: var(--fg-dim);
  transition: all 0.15s ease;
}
.example-pill:hover { border-color: var(--accent); color: var(--accent-hi); }

.key-finding {
  border: 1px solid var(--hairline-t);
  padding: 24px 26px;
  background: rgba(27, 154, 170, 0.03);
  display: flex; flex-direction: column; gap: 16px;
  position: relative;
}
.key-finding::before {
  content: 'KEY · FINDING';
  position: absolute;
  top: -7px; left: 18px;
  background: var(--bg);
  padding: 0 8px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 9.5px;
  letter-spacing: 0.32em;
  color: var(--accent-hi);
}
.key-finding p { font-size: 14px; line-height: 1.65; color: var(--fg-2); }
.key-finding .delta-line {
  display: flex; gap: 28px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  color: var(--fg-dim);
}
.key-finding .delta-line strong {
  color: var(--accent-hi);
  font-weight: 500;
}

/* ============================================================
   SECTION: AI CO-PILOT (3 cards similar to facts but with severity)
   ============================================================ */
.copilot-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border: 1px solid var(--hairline);
}
.brief {
  padding: 32px 28px;
  border-left: 1px solid var(--hairline);
  display: flex; flex-direction: column; gap: 16px;
  position: relative;
}
.brief:first-child { border-left: none; }
.brief .brief-head {
  display: flex; justify-content: space-between; align-items: flex-start;
}
.brief .brief-kind {
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px;
  letter-spacing: 0.28em;
  color: var(--accent-hi);
}
.brief .severity {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 9.5px;
  letter-spacing: 0.2em;
  color: var(--fg-dim);
  text-transform: uppercase;
}
.brief .severity::before {
  content: '';
  width: 7px; height: 7px;
  background: var(--accent-hi);
  box-shadow: 0 0 6px var(--accent-hi);
  border-radius: 50%;
}
.brief.warn .severity::before { background: var(--warm); box-shadow: 0 0 6px var(--warm); }
.brief.warn .severity { color: var(--warm); }
.brief.focus .severity::before { background: var(--accent-hi); }
.brief.disc  .severity::before { background: var(--fg-dim); box-shadow: none; }
.brief.disc  .severity        { color: var(--fg-dim); }
.brief h4 {
  font-family: 'JetBrains Mono', monospace;
  font-size: 18px;
  font-weight: 500;
  color: var(--fg);
  letter-spacing: -0.005em;
  line-height: 1.3;
}
.brief p {
  font-size: 13.5px;
  line-height: 1.65;
  color: var(--fg-2);
}
.brief .brief-foot {
  margin-top: auto;
  border-top: 1px solid var(--hairline);
  padding-top: 14px;
}

/* ============================================================
   SECTION: WHAT-IF SIMULATOR
   ============================================================ */
.whatif-shell {
  border: 1px solid var(--hairline);
  background: rgba(12, 15, 20, 0.4);
}
.whatif-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 24px;
  border-bottom: 1px solid var(--hairline);
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px;
  letter-spacing: 0.22em;
  color: var(--fg-dim);
  text-transform: uppercase;
}
.whatif-head .left { display: flex; gap: 18px; align-items: center; }
.whatif-head .right { display: flex; gap: 12px; align-items: center; }

.whatif-body {
  display: grid;
  grid-template-columns: minmax(0, 36%) 1fr;
}
.whatif-controls {
  border-right: 1px solid var(--hairline);
  padding: 24px 26px 32px;
  display: flex; flex-direction: column; gap: 26px;
}
.ctrl-block .ctrl-label {
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px;
  letter-spacing: 0.22em;
  color: var(--fg-faint);
  text-transform: uppercase;
  margin-bottom: 12px;
  display: flex; align-items: center; gap: 8px;
}
.ctrl-block .ctrl-label::before {
  content: '';
  width: 3px; height: 3px;
  background: var(--accent);
}
.pill-row { display: flex; flex-wrap: wrap; gap: 6px; }
.pill {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  letter-spacing: 0.06em;
  padding: 7px 12px;
  border: 1px solid var(--hairline);
  color: var(--fg-2);
  cursor: pointer;
  transition: all 0.15s ease;
  background: transparent;
}
.pill:hover  { border-color: var(--fg-dim); color: var(--fg); }
.pill.active { border-color: var(--accent); background: rgba(27,154,170,0.10); color: var(--accent-hi); }
.pill.reset { color: var(--fg-faint); }
.pill.reset:hover { color: var(--warm); border-color: var(--warm-dim); }

.advanced-toggle {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  letter-spacing: 0.18em;
  color: var(--fg-dim);
  text-transform: uppercase;
  border-top: 1px solid var(--hairline);
  padding-top: 16px;
}
.advanced-toggle::before {
  content: '+';
  width: 12px;
  color: var(--accent-hi);
}

.whatif-results {
  padding: 24px 26px 30px;
  display: flex; flex-direction: column; gap: 24px;
}
.result-metrics {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border: 1px solid var(--hairline);
}
.result-metrics .rm-cell {
  padding: 18px 22px;
  border-left: 1px solid var(--hairline);
  display: flex; flex-direction: column; gap: 6px;
}
.result-metrics .rm-cell:first-child { border-left: none; }
.result-metrics .rm-label {
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px;
  letter-spacing: 0.22em;
  color: var(--fg-faint);
  text-transform: uppercase;
}
.result-metrics .rm-value {
  font-family: 'JetBrains Mono', monospace;
  font-size: 28px;
  font-weight: 300;
  color: var(--fg);
  letter-spacing: -0.012em;
  line-height: 1;
}
.result-metrics .rm-value.pos { color: var(--accent-hi); }
.result-metrics .rm-value.neg { color: var(--warm); }
.result-metrics .rm-delta {
  font-family: 'JetBrains Mono', monospace;
  font-size: 10.5px;
  color: var(--fg-dim);
  letter-spacing: 0.06em;
}
.result-metrics .rm-delta.pos { color: var(--accent-hi); }
.result-metrics .rm-delta.neg { color: var(--warm); }

.equity-frame {
  border: 1px solid var(--hairline);
  padding: 20px 22px;
}
.equity-frame .ef-head {
  display: flex; justify-content: space-between; align-items: center;
  margin-bottom: 16px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px;
  letter-spacing: 0.2em;
  color: var(--fg-dim);
  text-transform: uppercase;
}
.equity-frame .ef-head .legend { display: flex; gap: 16px; }
.equity-frame .ef-head .legend span { display: inline-flex; align-items: center; gap: 6px; }
.equity-frame .ef-head .legend span::before {
  content: ''; width: 14px; height: 1px;
  background: currentColor;
}
.equity-frame .ef-head .legend .base { color: var(--fg-faint); }
.equity-frame .ef-head .legend .after { color: var(--accent-hi); }
.equity-frame svg { width: 100%; height: 200px; }

/* ============================================================
   SECTION: PRE-TRADE JOURNAL (CHECKLIST)
   ============================================================ */
.journal-stepper {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  border: 1px solid var(--hairline);
}
.journal-step {
  padding: 18px 20px;
  border-left: 1px solid var(--hairline);
  display: flex; flex-direction: column; gap: 6px;
  position: relative;
}
.journal-step:first-child { border-left: none; }
.journal-step.current { background: rgba(27,154,170,0.05); }
.journal-step.current::after {
  content: '';
  position: absolute;
  left: 0; right: 0; top: -1px;
  height: 2px;
  background: var(--accent-hi);
}
.journal-step .js-num {
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px;
  letter-spacing: 0.22em;
  color: var(--fg-faint);
}
.journal-step.current .js-num { color: var(--accent-hi); }
.journal-step .js-title {
  font-family: 'JetBrains Mono', monospace;
  font-size: 12.5px;
  color: var(--fg);
  letter-spacing: 0.04em;
}
.journal-step .js-meta {
  font-size: 11px;
  color: var(--fg-dim);
  letter-spacing: 0.04em;
}

.journal-body {
  margin-top: 32px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 32px;
}
.checklist {
  border: 1px solid var(--hairline);
  padding: 22px 24px;
}
.checklist .cl-head {
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px;
  letter-spacing: 0.22em;
  color: var(--fg-dim);
  text-transform: uppercase;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--hairline);
  margin-bottom: 14px;
  display: flex; justify-content: space-between; align-items: center;
}
.checklist-item {
  display: grid;
  grid-template-columns: 22px 1fr auto;
  align-items: center;
  gap: 14px;
  padding: 12px 0;
  border-bottom: 1px solid var(--hairline-2);
  font-family: 'JetBrains Mono', monospace;
  font-size: 13px;
  color: var(--fg);
  letter-spacing: 0.02em;
}
.checklist-item:last-child { border-bottom: none; }
.checklist-item .cb {
  width: 14px; height: 14px;
  border: 1px solid var(--hairline);
  position: relative;
}
.checklist-item.checked .cb { border-color: var(--accent); }
.checklist-item.checked .cb::after {
  content: '×';
  position: absolute;
  inset: -2px 0 0 1px;
  color: var(--accent-hi);
  font-size: 16px;
  text-align: center;
}
.checklist-item .auto-tag {
  font-size: 9.5px;
  letter-spacing: 0.22em;
  color: var(--accent-hi);
  text-transform: uppercase;
  padding: 3px 8px;
  border: 1px solid var(--accent);
  background: rgba(27,154,170,0.06);
}
.checklist-item .empty-tag {
  font-size: 9.5px;
  letter-spacing: 0.22em;
  color: var(--fg-faint);
  text-transform: uppercase;
}

.plan-fact {
  border: 1px solid var(--hairline);
  padding: 22px 24px;
  display: flex; flex-direction: column; gap: 16px;
}
.plan-fact .pf-head {
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px;
  letter-spacing: 0.22em;
  color: var(--fg-dim);
  text-transform: uppercase;
}
.plan-fact .pf-row {
  display: grid; grid-template-columns: 80px 1fr; gap: 10px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 12.5px;
  padding: 12px 0;
  border-top: 1px solid var(--hairline-2);
}
.plan-fact .pf-row .lbl { color: var(--fg-faint); letter-spacing: 0.18em; }
.plan-fact .pf-row .val { color: var(--fg); }
.plan-fact .pf-row.delta { color: var(--warm); border-top-color: var(--hairline); }
.plan-fact .pf-row.delta .val { color: var(--warm); }

/* ============================================================
   SECTION: CONNECT ANYWHERE (TICKER)
   ============================================================ */
.ticker-frame {
  border-top: 1px solid var(--hairline);
  border-bottom: 1px solid var(--hairline);
  position: relative;
  overflow: hidden;
  padding: 28px 0;
}
.ticker-frame::before,
.ticker-frame::after {
  content: '';
  position: absolute;
  top: 0; bottom: 0;
  width: 120px;
  z-index: 2;
  pointer-events: none;
}
.ticker-frame::before { left: 0; background: linear-gradient(to right, var(--bg), transparent); }
.ticker-frame::after  { right: 0; background: linear-gradient(to left,  var(--bg), transparent); }
.ticker-track {
  display: flex;
  gap: 14px;
  animation: tickerScroll 90s linear infinite;
  width: max-content;
}
@keyframes tickerScroll {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}
.ticker-tag {
  font-family: 'JetBrains Mono', monospace;
  font-size: 12px;
  letter-spacing: 0.18em;
  color: var(--fg-2);
  padding: 10px 16px;
  border: 1px solid var(--hairline);
  white-space: nowrap;
  display: inline-flex;
  align-items: center;
  gap: 12px;
}
.ticker-tag .dot {
  width: 5px; height: 5px;
  background: var(--accent);
  opacity: 0.7;
}
.ticker-tag.live .dot { background: var(--accent-hi); opacity: 1; }

/* ============================================================
   SECTION: CONSTITUTION & SCORE
   ============================================================ */
.score-grid {
  display: grid;
  grid-template-columns: minmax(0, 44%) 1fr;
  gap: 48px;
  align-items: stretch;
}
.score-card {
  border: 1px solid var(--hairline-t);
  padding: 36px 36px 32px;
  display: flex; flex-direction: column; gap: 24px;
  position: relative;
  background: rgba(27, 154, 170, 0.02);
}
.score-card::before,
.score-card::after {
  content: ''; position: absolute;
  width: 14px; height: 14px;
  border: 1px solid var(--accent);
}
.score-card::before { top: -1px; left: -1px; border-right: none; border-bottom: none; }
.score-card::after  { bottom: -1px; right: -1px; border-left: none; border-top: none; }
.score-card .sc-head {
  display: flex; justify-content: space-between; align-items: center;
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px;
  letter-spacing: 0.22em;
  color: var(--fg-dim);
  text-transform: uppercase;
}
.score-big {
  font-family: 'JetBrains Mono', monospace;
  font-size: 180px;
  font-weight: 200;
  line-height: 1;
  color: var(--fg);
  letter-spacing: -0.04em;
  display: flex; align-items: flex-end; gap: 12px;
}
.score-big .lbl {
  font-size: 11px;
  letter-spacing: 0.22em;
  color: var(--fg-dim);
  text-transform: uppercase;
  font-weight: 400;
  padding-bottom: 28px;
}
.score-gauge {
  display: flex; flex-direction: column; gap: 8px;
}
.score-gauge .gauge-bar {
  height: 4px;
  background: var(--hairline);
  position: relative;
}
.score-gauge .gauge-fill {
  position: absolute;
  left: 0; top: 0; bottom: 0;
  width: 84%;
  background: var(--accent);
  box-shadow: 0 0 8px var(--accent);
}
.score-gauge .gauge-tip {
  position: absolute;
  left: 84%;
  top: -3px;
  width: 10px; height: 10px;
  border: 1px solid var(--accent-hi);
  background: var(--bg);
  transform: translateX(-50%) rotate(45deg);
}
.score-gauge .gauge-labels {
  display: flex; justify-content: space-between;
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px;
  letter-spacing: 0.18em;
  color: var(--fg-faint);
  text-transform: uppercase;
}
.score-card .note {
  font-size: 13.5px;
  color: var(--fg-2);
  line-height: 1.65;
}

.score-right {
  display: grid;
  grid-template-rows: auto auto 1fr;
  gap: 24px;
}
.components {
  border: 1px solid var(--hairline);
}
.components .cmp-head {
  padding: 14px 22px;
  border-bottom: 1px solid var(--hairline);
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px;
  letter-spacing: 0.22em;
  color: var(--fg-dim);
  text-transform: uppercase;
  display: flex; justify-content: space-between;
}
.cmp-list {
  padding: 14px 22px;
  display: flex; flex-direction: column; gap: 12px;
}
.cmp-row {
  display: grid;
  grid-template-columns: 1fr 80px 40px;
  align-items: center;
  gap: 14px;
}
.cmp-row .cmp-name {
  font-family: 'JetBrains Mono', monospace;
  font-size: 13px;
  color: var(--fg);
  letter-spacing: 0.04em;
}
.cmp-row .cmp-bar {
  height: 3px;
  background: var(--hairline);
  position: relative;
}
.cmp-row .cmp-bar i {
  display: block;
  position: absolute;
  left: 0; top: 0; bottom: 0;
  background: var(--accent);
}
.cmp-row .cmp-pct {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  color: var(--fg-dim);
  letter-spacing: 0.08em;
  text-align: right;
}
.cmp-row .bonus { color: var(--accent-hi); }

.violation {
  border: 1px solid var(--hairline);
  padding: 18px 22px;
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 18px;
  align-items: center;
}
.violation .vio-num {
  font-family: 'JetBrains Mono', monospace;
  font-size: 40px;
  font-weight: 300;
  color: var(--warm);
  line-height: 1;
  letter-spacing: -0.02em;
}
.violation .vio-text {
  font-family: 'JetBrains Mono', monospace;
  font-size: 12.5px;
  color: var(--fg-2);
  letter-spacing: 0.04em;
  line-height: 1.5;
}
.violation .vio-text .lbl {
  display: block;
  font-size: 10px;
  color: var(--fg-faint);
  letter-spacing: 0.22em;
  text-transform: uppercase;
  margin-bottom: 6px;
}

.hash-ledger {
  border: 1px solid var(--hairline);
  padding: 14px 22px;
  display: flex; justify-content: space-between; align-items: center;
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  color: var(--fg-dim);
  letter-spacing: 0.06em;
}
.hash-ledger .hash {
  color: var(--accent-hi);
  letter-spacing: 0.04em;
}
.hash-ledger .verified {
  font-size: 10px;
  color: var(--accent-hi);
  letter-spacing: 0.22em;
  text-transform: uppercase;
  display: inline-flex; align-items: center; gap: 8px;
}
.hash-ledger .verified::before {
  content: '';
  width: 6px; height: 6px;
  background: var(--accent-hi);
  box-shadow: 0 0 6px var(--accent-hi);
  border-radius: 50%;
}

/* ============================================================
   SECTION: VERIFICATION CHAIN
   ============================================================ */
.verify-chain {
  display: grid;
  grid-template-columns: 1fr 60px 1fr 60px 1fr;
  align-items: stretch;
}
.verify-node {
  border: 1px solid var(--hairline);
  padding: 28px 26px 26px;
  display: flex; flex-direction: column; gap: 14px;
  background: rgba(12, 15, 20, 0.4);
  position: relative;
}
.verify-node .vn-num {
  position: absolute;
  top: 14px; right: 18px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 42px;
  font-weight: 200;
  color: var(--fg-faint);
  line-height: 1;
  letter-spacing: -0.02em;
}
.verify-node .vn-kind {
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px;
  letter-spacing: 0.28em;
  color: var(--accent-hi);
  text-transform: uppercase;
}
.verify-node h4 {
  font-family: 'JetBrains Mono', monospace;
  font-size: 20px;
  font-weight: 500;
  color: var(--fg);
  letter-spacing: -0.005em;
  margin-top: 24px;
}
.verify-node p {
  font-size: 13.5px;
  line-height: 1.6;
  color: var(--fg-2);
}
.verify-link {
  align-self: center;
  width: 100%;
  display: flex; flex-direction: column; align-items: center;
  gap: 4px;
}
.verify-link .ll {
  width: 100%;
  height: 1px;
  background: var(--hairline);
  position: relative;
}
.verify-link .ll::after {
  content: '▸';
  position: absolute;
  right: -2px; top: -8px;
  color: var(--accent);
  font-size: 12px;
}
.verify-link .lbl {
  font-family: 'JetBrains Mono', monospace;
  font-size: 9px;
  letter-spacing: 0.24em;
  color: var(--fg-faint);
  text-transform: uppercase;
}

.propfirms-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 56px;
  padding: 20px 26px;
  border: 1px solid var(--hairline);
}
.propfirms-row .pf-label {
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px;
  letter-spacing: 0.22em;
  color: var(--fg-dim);
  text-transform: uppercase;
}
.propfirms-row .pf-list {
  display: flex; gap: 32px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 12.5px;
  letter-spacing: 0.18em;
  color: var(--fg);
}

/* ============================================================
   SECTION: MULTI-HUB
   ============================================================ */
.hub-grid {
  display: grid;
  grid-template-columns: minmax(0, 40%) 1fr;
  gap: 0;
  border: 1px solid var(--hairline);
}
.equity-total {
  padding: 36px 36px;
  border-right: 1px solid var(--hairline);
  display: flex; flex-direction: column; gap: 22px;
  position: relative;
}
.equity-total .et-label {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  letter-spacing: 0.28em;
  color: var(--fg-dim);
  text-transform: uppercase;
}
.equity-total .et-val {
  font-family: 'JetBrains Mono', monospace;
  font-size: 56px;
  font-weight: 300;
  color: var(--fg);
  letter-spacing: -0.02em;
  line-height: 1;
}
.equity-total .et-val .currency {
  color: var(--accent-hi);
  margin-right: 6px;
}
.equity-total .et-meta {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  letter-spacing: 0.06em;
  color: var(--fg-dim);
}
.equity-total .et-meta .live-tag { color: var(--accent-hi); }
.equity-total p {
  font-size: 14px;
  line-height: 1.65;
  color: var(--fg-2);
  margin-top: 12px;
  border-top: 1px solid var(--hairline);
  padding-top: 24px;
}

.venue-list { display: flex; flex-direction: column; }
.venue-row {
  display: grid;
  grid-template-columns: 220px 1fr auto;
  gap: 24px;
  align-items: center;
  padding: 18px 26px;
  border-bottom: 1px solid var(--hairline);
}
.venue-row:last-child { border-bottom: none; }
.venue-row .v-name {
  font-family: 'JetBrains Mono', monospace;
  font-size: 15px;
  color: var(--fg);
  letter-spacing: 0.04em;
}
.venue-row .v-meta {
  display: block;
  font-size: 10.5px;
  color: var(--fg-faint);
  letter-spacing: 0.18em;
  text-transform: uppercase;
  margin-top: 4px;
}
.venue-row .v-amount {
  font-family: 'JetBrains Mono', monospace;
  font-size: 20px;
  font-weight: 400;
  color: var(--fg);
  letter-spacing: -0.005em;
  text-align: right;
}
.venue-row .v-mtd {
  display: block;
  font-size: 10.5px;
  color: var(--fg-dim);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-top: 4px;
}
.venue-row .v-mtd .up { color: var(--accent-hi); }
.venue-row .v-mtd .down { color: var(--warm); }
.venue-row .v-spark { width: 90px; height: 32px; opacity: 0.7; }
.venue-row .v-spark path { stroke: var(--accent); stroke-width: 1; fill: none; }
.venue-row .v-spark .area { fill: rgba(27, 154, 170, 0.06); stroke: none; }

/* ============================================================
   SECTION: WHY TRADERMETRICS (capabilities grid)
   ============================================================ */
.caps-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border: 1px solid var(--hairline);
}
.cap {
  padding: 28px 26px 26px;
  border-left: 1px solid var(--hairline);
  border-top: 1px solid var(--hairline);
  display: flex; flex-direction: column; gap: 14px;
  background: rgba(12,15,20,0.3);
}
.cap:nth-child(4n+1) { border-left: none; }
.cap:nth-child(-n+4) { border-top: none; }
.cap .cap-id {
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px;
  letter-spacing: 0.22em;
  color: var(--accent);
}
.cap .cap-glyph {
  width: 40px; height: 40px;
  border: 1px solid var(--hairline-t);
  display: flex; align-items: center; justify-content: center;
  font-family: 'JetBrains Mono', monospace;
  color: var(--accent-hi);
  font-size: 14px;
  letter-spacing: 0.1em;
  position: relative;
}
.cap .cap-glyph::before {
  content: '';
  position: absolute;
  inset: 3px;
  border: 1px solid var(--hairline);
}
.cap h4 {
  font-family: 'JetBrains Mono', monospace;
  font-size: 14.5px;
  font-weight: 500;
  color: var(--fg);
  letter-spacing: 0.04em;
}
.cap p {
  font-size: 13px;
  line-height: 1.6;
  color: var(--fg-2);
}

/* ============================================================
   SECTION: TESTIMONIALS
   ============================================================ */
.testimonials {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}
.testimonial {
  border: 1px solid var(--hairline);
  padding: 32px 30px 26px;
  display: flex; flex-direction: column; gap: 22px;
  position: relative;
}
.testimonial::before {
  content: '"';
  position: absolute;
  top: 16px; right: 20px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 48px;
  color: var(--accent);
  opacity: 0.4;
  line-height: 1;
}
.testimonial blockquote {
  font-size: 16px;
  line-height: 1.6;
  color: var(--fg);
  font-weight: 400;
}
.testimonial .attr {
  display: flex; gap: 14px; align-items: center;
  border-top: 1px solid var(--hairline);
  padding-top: 18px;
}
.testimonial .avatar {
  width: 36px; height: 36px;
  border: 1px solid var(--accent);
  display: flex; align-items: center; justify-content: center;
  font-family: 'JetBrains Mono', monospace;
  font-size: 14px;
  color: var(--accent-hi);
  font-weight: 500;
}
.testimonial .who {
  font-family: 'JetBrains Mono', monospace;
  font-size: 12.5px;
  color: var(--fg);
  letter-spacing: 0.04em;
}
.testimonial .who .meta {
  display: block;
  font-size: 10px;
  color: var(--fg-faint);
  letter-spacing: 0.2em;
  text-transform: uppercase;
  margin-top: 4px;
}

/* ============================================================
   SECTION: CHARTING (TradingView preview)
   ============================================================ */
.chart-shell {
  border: 1px solid var(--hairline);
  background: rgba(12,15,20,0.4);
}
.chart-shell .cs-head {
  display: flex; justify-content: space-between; align-items: center;
  padding: 14px 22px;
  border-bottom: 1px solid var(--hairline);
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px;
  letter-spacing: 0.2em;
  color: var(--fg-dim);
  text-transform: uppercase;
}
.chart-shell .cs-head .left { display: flex; gap: 16px; align-items: center; }
.chart-shell .cs-head .symbol { color: var(--fg); font-size: 13px; letter-spacing: 0.16em; }
.chart-shell .cs-head .pct { color: var(--accent-hi); }
.chart-shell .chart-body {
  position: relative;
  height: 380px;
  padding: 16px 22px 24px;
}
.chart-shell .chart-body svg { width: 100%; height: 100%; }
.chart-shell .cs-foot {
  padding: 12px 22px;
  border-top: 1px solid var(--hairline);
  display: flex; justify-content: space-between; align-items: center;
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px;
  letter-spacing: 0.2em;
  color: var(--fg-faint);
  text-transform: uppercase;
}
.chart-shell .cs-foot a { color: var(--accent-hi); }

/* ============================================================
   SECTION: FAQ
   ============================================================ */
.faq-list {
  border-top: 1px solid var(--hairline);
}
.faq-item {
  border-bottom: 1px solid var(--hairline);
}
.faq-item summary {
  list-style: none;
  cursor: pointer;
  padding: 28px 0;
  display: grid;
  grid-template-columns: 60px 1fr 28px;
  gap: 24px;
  align-items: center;
  font-family: 'JetBrains Mono', monospace;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary .faq-idx {
  font-size: 11px;
  letter-spacing: 0.22em;
  color: var(--fg-faint);
}
.faq-item summary .faq-q {
  font-size: 18px;
  color: var(--fg);
  letter-spacing: -0.005em;
  font-weight: 400;
}
.faq-item summary .faq-icon {
  font-size: 18px;
  color: var(--accent-hi);
  text-align: right;
  font-weight: 200;
  transition: transform 0.2s ease;
}
.faq-item[open] summary .faq-icon { transform: rotate(45deg); }
.faq-item[open] summary .faq-idx { color: var(--accent-hi); }
.faq-answer {
  padding: 0 24px 28px 84px;
  font-size: 14.5px;
  line-height: 1.7;
  color: var(--fg-2);
  max-width: 820px;
}

/* ============================================================
   SECTION: FINAL CTA
   ============================================================ */
.final-cta {
  text-align: center;
  padding: var(--section-py) var(--gutter);
  position: relative;
  border-top: 1px solid var(--hairline);
}
.final-cta::before,
.final-cta::after {
  content: '';
  position: absolute;
  width: 20%;
  height: 1px;
  background: var(--hairline);
  top: var(--section-py);
}
.final-cta .pre-tag {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  letter-spacing: 0.32em;
  color: var(--accent-hi);
  text-transform: uppercase;
  margin-bottom: 28px;
}
.final-cta h2 {
  font-family: 'JetBrains Mono', monospace;
  font-size: clamp(40px, 4.5vw, 64px);
  font-weight: 300;
  line-height: 1.1;
  letter-spacing: -0.02em;
  color: var(--fg);
  margin-bottom: 24px;
}
.final-cta h2 strong { font-weight: 700; }
.final-cta p {
  font-size: 16px;
  color: var(--fg-2);
  margin-bottom: 40px;
}
.final-cta .cta-row { justify-content: center; }

/* ============================================================
   FOOTER
   ============================================================ */
.site-foot {
  border-top: 1px solid var(--hairline);
  padding: 40px var(--gutter) 32px;
  display: grid;
  grid-template-columns: 1fr auto auto;
  gap: 48px;
  align-items: center;
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  letter-spacing: 0.16em;
  color: var(--fg-dim);
}
.site-foot .foot-logo { display: flex; gap: 12px; align-items: center; color: var(--fg); }
.site-foot .foot-logo .mark {
  width: 10px; height: 10px;
  border: 1px solid var(--accent);
  transform: rotate(45deg);
}
.site-foot nav { display: flex; gap: 26px; }
.site-foot nav a { color: var(--fg-dim); }
.site-foot nav a:hover { color: var(--fg); }
.site-foot .meta { color: var(--fg-faint); }


/* ============================================================================
   POST-LAUNCH OVERRIDES (May 2026): readability + glass cards + neon accents
   These rules sit at the end of the stylesheet so they cleanly override the
   earlier terminal-style baseline without touching its source.
   ============================================================================ */

/* ---------- 1. Brighter, larger base typography ---------- */
:root {
  --fg:          #FFFFFF;        /* headings — pure white */
  --fg-2:        #D1D4DC;        /* body text — high-contrast neutral */
  --fg-dim:      #9CA3AF;        /* secondary text — still legible */
  --fg-faint:    #6B7280;        /* faint labels — readable, not buried */
}

html, body {
  font-size: 17px;               /* default <p> roughly +21% over browser 14-15px */
  line-height: 1.55;
  color: var(--fg-2);
}

/* Section headings — bigger and pure white */
.section-title {
  font-size: clamp(40px, 3.8vw, 60px) !important;
  color: #FFFFFF !important;
  line-height: 1.08;
}
.section-title strong { color: var(--accent-hi) !important; }
.section-title em     { color: var(--fg-2); font-style: normal; font-weight: 500; }

/* Section description / meta — readable lead paragraph */
.section-meta {
  font-size: 17px !important;
  line-height: 1.65;
  color: var(--fg-2);
}

/* Default paragraphs anywhere on the page — bump from terminal-tiny */
section p {
  font-size: 15.5px;
  line-height: 1.65;
  color: var(--fg-2);
}
section p strong { color: #FFFFFF; }

/* Card titles (h3, h4) — readable, white */
section h3 { font-size: 22px; color: #FFFFFF; line-height: 1.25; }
section h4 { font-size: 18px; color: #FFFFFF; line-height: 1.3; }

/* Small mono-labels stay small but get a touch more contrast */
.kpi-label, .metric-label, .ctrl-label, .cmp-name, .ch-title,
.fig-label, .sub-num, .step-frame, .js-num, .js-meta, .vn-kind,
.brief-kind, .severity, .et-label, .pf-label, .cl-head, .vf-head,
.cs-head, .cs-foot, .ticker-tag, .et-meta {
  color: var(--fg-dim);
}

/* Hero copy — keep terminal look but a bit more readable */
.hero .sub { font-size: 18px !important; line-height: 1.6; color: var(--fg-2); }
.hero .sub .em { color: #FFFFFF; }

/* ---------- 2. Glass cards: depth where it matters ---------- */
/* Helper that any feature card can opt into. Existing cards in fig-06..fig-19
   already have terminal flat surfaces — we soften the most-content-heavy ones
   into glass panels. */

.fact, .brief, .cap, .testimonial, .verify-node, .flow-step, .score-card,
.score-right .components, .key-finding, .ai-researcher, .chart-cell,
.plan-fact, .equity-total, .venue-row, .checklist {
  background: rgba(15, 17, 25, 0.55) !important;
  border: 1px solid rgba(110, 120, 134, 0.18) !important;
  border-radius: 14px;
  backdrop-filter: blur(14px) saturate(120%);
  -webkit-backdrop-filter: blur(14px) saturate(120%);
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.04) inset,
    0 24px 60px rgba(0, 0, 0, 0.35),
    0 0 0 1px rgba(27, 154, 170, 0.04);
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.fact:hover, .brief:hover, .cap:hover, .verify-node:hover, .flow-step:hover,
.chart-cell:hover, .testimonial:hover {
  transform: translateY(-2px);
  border-color: rgba(27, 154, 170, 0.35) !important;
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.06) inset,
    0 28px 70px rgba(0, 0, 0, 0.45),
    0 0 24px rgba(27, 154, 170, 0.10);
}

/* The KPI strip in hero — glass band */
.kpi-bar {
  background: rgba(15, 17, 25, 0.65);
  backdrop-filter: blur(18px) saturate(120%);
  -webkit-backdrop-filter: blur(18px) saturate(120%);
  border: 1px solid rgba(110, 120, 134, 0.22);
  border-radius: 14px;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.35);
}
.kpi-value { color: #FFFFFF; }

/* ---------- 3. Neon teal accents on important interactive elements ---------- */
.cta {
  box-shadow: 0 0 22px rgba(27, 154, 170, 0.35),
              0 1px 0 rgba(255, 255, 255, 0.06) inset !important;
  transition: box-shadow 0.25s ease, transform 0.18s ease;
}
.cta:hover {
  box-shadow: 0 0 36px rgba(27, 154, 170, 0.55),
              0 1px 0 rgba(255, 255, 255, 0.10) inset !important;
  transform: translateY(-1px);
}

.tag.teal, .tag.live, .live-tag, .severity, .accent-dot {
  text-shadow: 0 0 12px rgba(27, 154, 170, 0.55);
}

.section-head .num,
.fig-label .num,
.cap-id,
.fact-idx,
.vn-num {
  color: var(--accent) !important;
  text-shadow: 0 0 10px rgba(27, 154, 170, 0.35);
}

/* SCORE big number glows */
.score-big {
  color: #FFFFFF;
  text-shadow: 0 0 24px rgba(27, 154, 170, 0.45);
}
.gauge-fill {
  background: linear-gradient(90deg, rgba(27,154,170,0.4), #1B9AAA, #2BD4E5) !important;
  box-shadow: 0 0 18px rgba(27, 154, 170, 0.55);
}
.gauge-tip {
  background: #2BD4E5;
  box-shadow: 0 0 14px #2BD4E5;
}

/* What-If sandbox — keep its existing dark glass look but lift it */
.wi-sandbox-wrap .wi-sandbox {
  box-shadow:
    0 32px 72px rgba(0, 0, 0, 0.5),
    0 0 0 1px rgba(27, 154, 170, 0.10),
    0 0 60px rgba(27, 154, 170, 0.06) !important;
}

/* Sub-strip beneath the global nav (terminal statusline) */
.terminal-substrip {
  position: sticky; top: 60px; z-index: 900;
  background: rgba(10, 12, 16, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--hairline);
  padding: 6px 24px;
  display: flex; align-items: center; justify-content: flex-end;
  min-height: 32px;
}
.terminal-substrip .status { gap: 18px; }
.terminal-substrip .item   { font-size: 10.5px; }

/* Push hero down so it doesn't tuck under sticky bars */
.hero { padding-top: 24px; }

/* ---------- 4. Subtle depth on plain text-only sections ---------- */
.testimonial blockquote {
  color: #FFFFFF;
  font-size: 17px;
  line-height: 1.55;
}
.faq-q { color: #FFFFFF !important; }
.faq-answer { color: var(--fg-2); font-size: 15px; line-height: 1.65; }

/* Tickers strip — a touch brighter */
.ticker-tag { color: var(--fg-2); }
.ticker-tag.live .dot { background: var(--accent); box-shadow: 0 0 8px var(--accent); }

/* Footer — better contrast */
.site-foot { color: var(--fg-dim); }
.site-foot a { color: var(--fg-2); }
.site-foot a:hover { color: var(--accent-hi); }


/* ============================================================================
   MICRO-INTERACTIONS LAYER (May 2026)
   Tooltips · ripples · magnetic CTAs · pulses · expand-on-hover · video glow
   Driven by the IIFE in tm-landing.js — these are the visual primitives.
   ============================================================================ */

/* ---------- TOOLTIP ---------- */
/* A single floating tooltip element is appended to body by JS; positioned with
   left/top via inline style. CSS owns appearance + fade. */
#tm-tooltip {
  position: fixed;
  pointer-events: none;
  z-index: 9999;
  max-width: 340px;
  padding: 10px 14px;
  background: rgba(13, 15, 21, 0.96);
  border: 1px solid rgba(27, 154, 170, 0.45);
  border-radius: 9px;
  box-shadow: 0 18px 36px rgba(0, 0, 0, 0.45),
              0 0 24px rgba(27, 154, 170, 0.18);
  color: #ffffff;
  font-family: 'Inter', sans-serif;
  font-size: 13px;
  line-height: 1.55;
  letter-spacing: 0.01em;
  opacity: 0;
  transform: translateY(4px);
  transition: opacity 0.18s ease, transform 0.18s ease;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}
#tm-tooltip.show { opacity: 1; transform: translateY(0); }
#tm-tooltip::before {
  content: '';
  position: absolute;
  top: -5px; left: 14px;
  width: 8px; height: 8px;
  background: rgba(13, 15, 21, 0.96);
  border-left: 1px solid rgba(27, 154, 170, 0.45);
  border-top:  1px solid rgba(27, 154, 170, 0.45);
  transform: rotate(45deg);
}

[data-tooltip-en],
[data-tooltip-ru] { cursor: help; }

/* ---------- MAGNETIC CTA (motion driven by JS, glow by CSS) ---------- */
.magnetic {
  position: relative;
  transition: transform 0.25s cubic-bezier(0.2, 0.7, 0.2, 1),
              box-shadow 0.25s ease;
  will-change: transform;
}
.magnetic:hover { z-index: 2; }
a.cta.magnetic:hover,
a.cta-ghost.magnetic:hover { box-shadow: 0 0 36px rgba(27, 154, 170, 0.6),
                                          0 1px 0 rgba(255, 255, 255, 0.12) inset; }
a.arrow-link.magnetic:hover { color: var(--accent-hi); }

/* ---------- RIPPLE ---------- */
.magnetic, .cta, .cta-ghost { overflow: hidden; }
.tm-ripple {
  position: absolute;
  border-radius: 50%;
  background: rgba(27, 154, 170, 0.45);
  transform: scale(0);
  pointer-events: none;
  animation: tm-ripple-grow 0.6s ease-out forwards;
}
@keyframes tm-ripple-grow {
  to { transform: scale(4); opacity: 0; }
}

/* ---------- PULSE (KPI digits + section CTAs) ---------- */
@keyframes tm-pulse-soft {
  0%, 100% { opacity: 1;   text-shadow: 0 0 0 rgba(27, 154, 170, 0); }
  50%      { opacity: .85; text-shadow: 0 0 14px rgba(27, 154, 170, 0.45); }
}
.kpi-value { animation: tm-pulse-soft 4.5s ease-in-out infinite; }
.kpi-cell:nth-child(2) .kpi-value { animation-delay: 1.0s; }
.kpi-cell:nth-child(3) .kpi-value { animation-delay: 2.0s; }
.kpi-cell:nth-child(4) .kpi-value { animation-delay: 3.0s; }

@keyframes tm-pulse-attn {
  0%, 100% { box-shadow: 0 0 0 0 rgba(27, 154, 170, 0.45); }
  60%      { box-shadow: 0 0 0 8px rgba(27, 154, 170, 0); }
}
.fact-cta .arrow-link {
  display: inline-block;
  padding: 6px 12px;
  border-radius: 8px;
  animation: tm-pulse-attn 3.2s ease-out infinite;
}
.fact-cta .arrow-link:hover { animation-play-state: paused; }

/* ---------- AI CO-PILOT severity glow (already exists on hover via glass-card lift) ---------- */
.brief:hover .severity {
  color: var(--accent-hi);
  text-shadow: 0 0 14px rgba(43, 212, 229, 0.65);
}
.brief.warn:hover .severity { color: var(--warm); text-shadow: 0 0 14px rgba(198, 138, 106, 0.65); }

/* ---------- AI FACT — expand-on-hover (lifts then reveals details) ---------- */
.fact { position: relative; }
.fact .note {
  max-height: 4.5em;
  overflow: hidden;
  transition: max-height 0.45s cubic-bezier(0.2, 0.7, 0.2, 1);
}
.fact:hover .note { max-height: 12em; }
.fact .stats-line { transition: opacity 0.25s ease; }
.fact:hover .stats-line { opacity: 1; }

/* ---------- DASHBOARD VIDEO frame glow on hover ---------- */
.video-frame {
  transition: box-shadow 0.35s ease, transform 0.35s ease;
  border-radius: 14px;
  overflow: hidden;
}
.video-frame:hover {
  transform: translateY(-2px);
  box-shadow:
    0 0 0 1px rgba(27, 154, 170, 0.55),
    0 0 32px rgba(27, 154, 170, 0.30),
    0 32px 60px rgba(0, 0, 0, 0.45);
}

/* ---------- TICKER pause + reveal mini-chart on hover ---------- */
.ticker-frame:hover .ticker-track { animation-play-state: paused !important; }
.ticker-tag {
  transition: color 0.2s ease, transform 0.2s ease;
  cursor: pointer;
}
.ticker-tag:hover {
  color: var(--accent-hi);
  transform: translateY(-1px);
}
.ticker-tag:hover .dot {
  box-shadow: 0 0 10px var(--accent);
}

/* ---------- PROP-FIRM names highlight on hover ---------- */
.pf-list span {
  transition: color 0.2s ease, transform 0.2s ease;
  cursor: help;
}
.pf-list span:hover {
  color: var(--accent-hi);
  transform: translateY(-2px);
  text-shadow: 0 0 14px rgba(43, 212, 229, 0.4);
}

/* ---------- TESTIMONIAL — quote mark pulses, card lifts ---------- */
.testimonial { position: relative; }
.testimonial::before {
  content: '"';
  position: absolute;
  top: -8px; left: 14px;
  font-family: Georgia, serif;
  font-size: 60px;
  color: var(--accent);
  opacity: 0.18;
  line-height: 1;
  pointer-events: none;
  animation: tm-pulse-soft 3.5s ease-in-out infinite;
}
.testimonial:hover::before { opacity: 0.35; }

/* ---------- TRADINGVIEW chart hover lift ---------- */
.chart-shell { transition: box-shadow 0.3s ease; }
.chart-shell:hover {
  box-shadow:
    0 0 0 1px rgba(35, 108, 255, 0.55),
    0 0 32px rgba(35, 108, 255, 0.18),
    0 32px 60px rgba(0, 0, 0, 0.45);
}

/* ---------- FINAL CTA pre-tag pulses subtly ---------- */
.final-cta .pre-tag {
  animation: tm-pulse-soft 4s ease-in-out infinite;
}

/* ---------- ANALYTICS chart cells — reveal value tooltip on hover ---------- */
.chart-cell { position: relative; cursor: crosshair; }
.chart-cell::after {
  content: attr(data-hover-tip);
  position: absolute;
  bottom: 12px; right: 12px;
  padding: 4px 8px;
  background: rgba(27, 154, 170, 0.18);
  border: 1px solid rgba(27, 154, 170, 0.35);
  border-radius: 6px;
  font-family: var(--mono, 'JetBrains Mono', monospace);
  font-size: 10.5px;
  color: var(--accent-hi);
  opacity: 0;
  transform: translateY(4px);
  pointer-events: none;
  transition: opacity 0.25s ease, transform 0.25s ease;
}
.chart-cell:hover::after { opacity: 1; transform: translateY(0); }

/* ---------- JOURNAL Plan vs Fact — color shifts on hover ---------- */
.pf-row .val { transition: color 0.25s ease; }
.pf-row:hover .val { color: var(--accent-hi); }

/* ---------- CHECKLIST — animate ticks when becoming .checked at scroll ---------- */
.checklist-item .cb {
  transition: background 0.4s ease, box-shadow 0.4s ease, transform 0.4s ease;
}
.checklist-item.checked .cb {
  background: var(--accent);
  box-shadow: 0 0 12px var(--accent);
}
.checklist-item.tm-just-checked .cb {
  animation: tm-tick-pop 0.55s cubic-bezier(0.34, 1.56, 0.64, 1);
}
@keyframes tm-tick-pop {
  0%   { transform: scale(0.7); }
  60%  { transform: scale(1.18); }
  100% { transform: scale(1); }
}

/* ---------- VENUE balance — clickable, hover reveals spark detail ---------- */
.venue-row {
  cursor: pointer;
  transition: transform 0.25s ease, border-color 0.25s ease, background 0.25s ease;
}
.venue-row:hover {
  transform: translateX(4px);
  border-color: rgba(27, 154, 170, 0.45) !important;
}
.venue-row .v-spark { transition: filter 0.25s ease; }
.venue-row:hover .v-spark { filter: drop-shadow(0 0 8px rgba(27, 154, 170, 0.55)); }

/* equity-total: clickable to "expand accounts" — extra emphasis */
.equity-total {
  cursor: pointer;
  transition: transform 0.3s ease;
}
.equity-total:hover { transform: scale(1.01); }
.equity-total.tm-expanded { background: rgba(27, 154, 170, 0.05) !important; }

/* ---------- FAQ already works (native details) — small lift on hover ---------- */
.faq-item summary { transition: background 0.2s ease; }
.faq-item summary:hover { background: rgba(27, 154, 170, 0.04); }

/* ---------- Reduced motion — disable infinite pulses ---------- */
@media (prefers-reduced-motion: reduce) {
  .kpi-value,
  .fact-cta .arrow-link,
  .testimonial::before,
  .final-cta .pre-tag {
    animation: none !important;
  }
  .magnetic { transition: none !important; }
}


/* ============================================================================
   FINAL PASS (May 2026)
   1. Mobile responsiveness (<768px)
   2. Section breathing room + hairlines
   3. Performance: content-visibility:auto on below-the-fold sections
   ============================================================================ */

/* ---------- 2. Section breathing room ---------- */
.section { padding-top: 120px; padding-bottom: 120px; }
.section + .section {
  border-top: 1px solid var(--hairline-2);
}

/* ---------- 3. content-visibility — DISABLED ----------
   Was: .section[data-screen-label] { content-visibility: auto; contain-intrinsic-size: 1px 1200px; }
   Why disabled: contain-intrinsic-size reserved 1200px for every off-screen
   section. Since actual sections vary 500–1400px tall, the engine over-
   reserved space below short sections (notably FIG.14 → FIG.15), creating
   a visible empty gap. A safe re-enable would require per-section
   contain-intrinsic-size tuned to each section's measured height.
   Removed entirely so layout flows naturally. */

/* ---------- 1. Mobile (<= 768px) ---------- */
@media (max-width: 768px) {
  html, body { font-size: 15px; line-height: 1.6; }

  /* Hide terminal-only decoration */
  .scaffold,
  .reg,
  .fig-label,
  .sheet,
  .grain { display: none !important; }
  .terminal-substrip { display: none !important; }

  /* Section padding compressed but still airy */
  .section {
    padding: 56px 16px !important;
  }
  .gutter, .container, .content, .section-inner {
    padding-left: 0 !important;
    padding-right: 0 !important;
  }

  /* Headings */
  .section-title {
    font-size: clamp(28px, 7vw, 36px) !important;
    line-height: 1.15 !important;
  }
  .section-meta {
    font-size: 15px !important;
    line-height: 1.55 !important;
  }
  section h3 { font-size: 19px !important; }
  section h4 { font-size: 16px !important; }
  section p  { font-size: 14.5px !important; line-height: 1.55 !important; }

  /* HERO */
  .hero {
    min-height: auto !important;
    padding-top: 84px !important;
    padding-bottom: 56px !important;
  }
  /* Reduce hero canvas presence — keep a dim background, not a 3D scene */
  #hero-bg {
    opacity: 0.25 !important;
    filter: blur(0.5px);
  }
  #periphery { display: none !important; }
  .hero .lead-row,
  .hero .heroline,
  .hero .stack {
    width: 100% !important;
    max-width: 100% !important;
  }
  .hero .sub  { font-size: 16px !important; }
  .cta-row    { flex-wrap: wrap; gap: 10px; }
  .cta, .cta-ghost { width: 100% !important; justify-content: center; }
  .kpi-bar    {
    display: grid !important;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
  }
  .kpi-cell  { padding: 10px !important; }
  .kpi-value { font-size: 22px !important; }
  .kpi-label { font-size: 10px !important; }
  .kpi-meta  { font-size: 9.5px !important; }

  /* Generic multi-col rows → single col */
  .row, .cols, .grid, .columns, .three-up, .two-up, .four-up,
  .flow-grid, .cap-grid, .briefs, .facts, .checklist-wrap,
  .verify-row, .venue-list, .testimonial-grid, .chart-grid,
  .ai-row, .deep-row, .equity-row {
    grid-template-columns: 1fr !important;
    flex-direction: column !important;
    gap: 16px !important;
  }

  /* WHAT-IF sandbox: pills in 2 columns, smaller chart */
  .wi-sandbox-wrap {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }
  .wi-sandbox {
    min-width: 0 !important;
    transform: none !important;
  }
  .wi-pills,
  .wi-rules,
  .wi-pill-row {
    display: grid !important;
    grid-template-columns: 1fr 1fr !important;
    gap: 8px !important;
  }
  .wi-pill {
    font-size: 11px !important;
    padding: 8px 10px !important;
    width: 100% !important;
    justify-content: center;
  }
  .wi-chart, #wiChart {
    height: 200px !important;
    max-height: 200px !important;
  }
  .wi-kpis { grid-template-columns: repeat(3, 1fr) !important; gap: 8px !important; }
  .wi-kpi  { padding: 8px !important; }
  .wi-kpi-val { font-size: 18px !important; }

  /* MULTI-HUB: hide sparklines, keep balance + name */
  .v-spark, .venue-row .v-spark { display: none !important; }
  .venue-row {
    grid-template-columns: 1fr auto !important;
    gap: 8px !important;
    padding: 12px !important;
  }

  /* Glass cards — soften shadows on mobile (better perf) */
  .fact, .brief, .cap, .testimonial, .verify-node, .flow-step,
  .score-card, .components, .key-finding, .ai-researcher,
  .chart-cell, .plan-fact, .equity-total, .venue-row, .checklist {
    backdrop-filter: blur(8px) !important;
    -webkit-backdrop-filter: blur(8px) !important;
    box-shadow: 0 8px 24px rgba(0,0,0,.35) !important;
  }

  /* Video frame */
  .video-frame .vf-head,
  .video-frame .vf-foot {
    font-size: 9.5px !important;
    flex-wrap: wrap;
    gap: 6px;
  }
  .video-frame video { max-height: 60vw; }

  /* Tickers */
  .ticker-tag { font-size: 11px !important; }

  /* Footer */
  .site-foot { padding: 24px 16px !important; }

  /* Disable expensive micro-interactions on mobile */
  .magnetic { transition: none !important; }
  .magnetic:hover { transform: none !important; }
  .flow-step:hover, .cap:hover { transform: translateY(-2px) !important; }
}

/* ---------- Tablet trim (769–1180px) ---------- */
@media (min-width: 769px) and (max-width: 1180px) {
  .section { padding: 80px 32px !important; }
  .section-title { font-size: clamp(34px, 4.4vw, 50px) !important; }
  .kpi-bar { flex-wrap: wrap; gap: 12px; }
}
