/* Import canonical design tokens (Geist via web/design-tokens.json) */
@import url("/_astro/design-tokens-Oj0jiOtM.css");

/* ─── Direction C · Live Operating System ─── */

:root {
  --bg-0:     #050a0c;
  --bg-1:     #0a1217;
  --bg-2:     #0f1a20;
  --bg-3:     #15242c;
  --line:     #1a2c34;
  --line-2:   #243a44;
  --line-3:   #2e4a55;
  --fg:       #eef4f1;
  --fg-2:     #a8b6b0;
  --fg-3:     #6c7c75;
  --fg-4:     #4a5a53;
  --accent:   #34e7a6;
  --accent-2: #1ca877;
  --accent-3: #0d6b4e;
  --warn:     #f4b942;
  --warn-2:   #c89020;
  --cool:     #4dc4ff;
  --pink:     #ff6b9d;
  --red:      #ff5a4a;

  --sans: var(--font-sans);
  --mono: var(--font-mono);
  --serif: "Newsreader", "Times New Roman", Georgia, serif;

  --gutter: clamp(20px, 4vw, 56px);
  --maxw: 1400px;

  --shadow-lg: 0 30px 70px -20px rgba(0,0,0,0.6), 0 8px 16px -8px rgba(0,0,0,0.4);
  --shadow-glow: 0 0 40px -10px rgba(52,231,166,0.4);
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
html { background: var(--bg-0); scroll-behavior: smooth; }
body {
  font-family: var(--sans);
  color: var(--fg);
  background: var(--bg-0);
  font-size: 15px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
::selection { background: var(--accent); color: #042618; }

.container { max-width: var(--maxw); margin: 0 auto; padding: 0 var(--gutter); position: relative; z-index: 1; }

.mono { font-family: var(--mono); }
.label {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--fg-3);
  font-weight: 500;
}

/* ─── AMBIENT BACKGROUND ─── */
.ambient {
  position: fixed; inset: 0;
  pointer-events: none; z-index: 0;
  overflow: hidden;
}
.ambient__blob {
  position: absolute;
  width: 720px; height: 720px;
  border-radius: 999px;
  filter: blur(120px);
  opacity: 0.32;
  mix-blend-mode: screen;
  will-change: transform;
}
.ambient__blob--a { background: radial-gradient(circle, var(--accent) 0%, transparent 60%); top: -200px; left: -200px; animation: drift 22s ease-in-out infinite; }
.ambient__blob--b { background: radial-gradient(circle, var(--cool) 0%, transparent 60%); top: 30%; right: -200px; animation: drift 26s ease-in-out infinite reverse; opacity: 0.22; }
.ambient__blob--c { background: radial-gradient(circle, var(--warn) 0%, transparent 60%); bottom: 10%; left: 30%; animation: drift 30s ease-in-out infinite; opacity: 0.16; }

@keyframes drift {
  0%,100% { transform: translate(0,0) scale(1); }
  33% { transform: translate(80px, -60px) scale(1.1); }
  66% { transform: translate(-60px, 60px) scale(0.95); }
}

.ambient__grid {
  position: absolute; inset: 0;
  background-image:
    linear-gradient(to right, rgba(255,255,255,0.02) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255,255,255,0.02) 1px, transparent 1px);
  background-size: 80px 80px;
  mask-image: radial-gradient(ellipse at center, black 0%, transparent 75%);
}

/* ─── NAV ─── */
.nav {
  position: sticky; top: 0; z-index: 50;
  background: rgba(5,10,12,0.7);
  backdrop-filter: saturate(140%) blur(14px);
  -webkit-backdrop-filter: saturate(140%) blur(14px);
  border-bottom: 1px solid var(--line);
}
.nav__row { display: flex; align-items: center; justify-content: space-between; height: 60px; }
.nav__brand { display: flex; align-items: center; gap: 12px; }
.nav__logo {
  width: 26px; height: 26px;
  display: grid; place-items: center;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  color: #042618;
  border-radius: 6px;
  font-family: var(--mono); font-weight: 700; font-size: 14px;
  box-shadow: 0 0 20px -4px var(--accent);
}
.nav__name { font-family: var(--mono); font-weight: 600; letter-spacing: -0.01em; font-size: 15px; }
.nav__tag { color: var(--fg-3); font-family: var(--mono); font-size: 11px; letter-spacing: 0.1em; text-transform: uppercase; }
.nav__links { display: flex; gap: 4px; }
.nav__links a {
  padding: 8px 14px;
  font-family: var(--mono); font-size: 12px;
  letter-spacing: 0.04em;
  color: var(--fg-2);
  border-radius: 4px;
  transition: all .2s ease;
}
.nav__links a:hover { color: var(--fg); background: rgba(255,255,255,0.04); }
.nav__cta {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 10px 16px;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  color: #042618;
  font-family: var(--mono); font-size: 12px; font-weight: 600;
  letter-spacing: 0.04em;
  border-radius: 6px;
  transition: all .15s ease;
  box-shadow: 0 6px 20px -6px var(--accent), inset 0 1px 0 rgba(255,255,255,0.25);
  position: relative;
}
.nav__cta:hover { transform: translateY(-1px); box-shadow: 0 10px 28px -6px var(--accent), inset 0 1px 0 rgba(255,255,255,0.3); }
.nav__cta::after { content: "→"; transition: transform .15s ease; }
.nav__cta:hover::after { transform: translateX(3px); }

.nav__actions { display: flex; align-items: center; gap: 12px; }
.nav__signin {
  padding: 9px 14px;
  font-family: var(--mono); font-size: 12px; font-weight: 500;
  letter-spacing: 0.04em;
  color: var(--fg-2);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 6px;
  transition: all .15s ease;
}
.nav__signin:hover { color: var(--fg); border-color: rgba(255,255,255,0.18); background: rgba(255,255,255,0.03); }

@media (max-width: 880px) { .nav__links, .nav__tag { display: none; } }

/* ─── HERO ─── */
.hero {
  padding-top: clamp(48px, 7vw, 88px);
  padding-bottom: clamp(48px, 6vw, 64px);
  position: relative;
}
.hero__grid {
  display: grid;
  grid-template-columns: 1fr 1.25fr;
  gap: clamp(32px, 5vw, 72px);
  align-items: center;
}
@media (max-width: 1080px) { .hero__grid { grid-template-columns: 1fr; } }

.chip {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 7px 14px 7px 12px;
  border: 1px solid var(--line-2);
  background: rgba(255,255,255,0.02);
  border-radius: 999px;
  font-family: var(--mono); font-size: 11px;
  letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--fg-2);
  margin-bottom: 28px;
}
.chip__pulse {
  width: 7px; height: 7px;
  background: var(--accent); border-radius: 999px;
  box-shadow: 0 0 0 0 var(--accent);
  animation: pulse 2s ease-out infinite;
}
@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(52,231,166,0.5); }
  70% { box-shadow: 0 0 0 10px rgba(52,231,166,0); }
  100% { box-shadow: 0 0 0 0 rgba(52,231,166,0); }
}

.hero h1 {
  margin: 0 0 24px;
  font-family: var(--sans);
  font-weight: 500;
  font-size: clamp(40px, 6.4vw, 86px);
  line-height: 0.98;
  letter-spacing: -0.035em;
  color: var(--fg);
}
.hero h1 em {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 400;
  background: linear-gradient(135deg, var(--accent), var(--cool));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  letter-spacing: -0.02em;
}
.hero h1 .word {
  display: inline-block;
}

.hero__lede {
  color: var(--fg-2);
  max-width: 52ch;
  font-size: 17px;
  line-height: 1.55;
  margin: 0 0 32px;
}
.hero__lede strong { color: var(--fg); font-weight: 600; }

.hero__ctas { display: flex; gap: 12px; flex-wrap: wrap; margin-bottom: 36px; }
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 14px 20px;
  border-radius: 6px;
  font-family: var(--mono); font-size: 13px; font-weight: 600;
  letter-spacing: 0.02em;
  transition: all .15s ease;
  border: 1px solid transparent;
  position: relative;
}
.btn--primary {
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  color: #042618;
  box-shadow: 0 8px 24px -6px var(--accent), inset 0 1px 0 rgba(255,255,255,0.25);
}
.btn--primary:hover { transform: translateY(-2px); box-shadow: 0 14px 32px -6px var(--accent), inset 0 1px 0 rgba(255,255,255,0.3); }
.btn--ghost { border-color: var(--line-2); color: var(--fg); background: rgba(255,255,255,0.02); }
.btn--ghost:hover { border-color: var(--accent); color: var(--accent); }
.btn::after { content: "→"; transition: transform .15s ease; }
.btn:hover::after { transform: translateX(3px); }

.hero__trust {
  display: flex; gap: 18px; align-items: center;
  font-family: var(--mono); font-size: 11px;
  letter-spacing: 0.06em; color: var(--fg-3);
}
.hero__trust strong { color: var(--fg-2); font-weight: 500; }

/* ─── HERO CHART (live divergence) ─── */
.hero__visual {
  position: relative;
  aspect-ratio: 1.15 / 1;
  min-height: 460px;
}
.live-chart {
  position: absolute; inset: 0;
  background: linear-gradient(180deg, var(--bg-1), var(--bg-2));
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 24px;
  box-shadow: var(--shadow-lg);
  overflow: hidden;
  display: flex; flex-direction: column;
}
.live-chart::before {
  content: ""; position: absolute; inset: 0;
  background: radial-gradient(ellipse at top right, rgba(52,231,166,0.12), transparent 60%);
  pointer-events: none;
}
.live-chart__hd {
  display: flex; justify-content: space-between; align-items: baseline;
  margin-bottom: 16px;
  position: relative; z-index: 1;
}
.live-chart__title {
  font-family: var(--mono); font-size: 13px; font-weight: 600;
  letter-spacing: 0.02em;
}
.live-chart__title span { color: var(--accent); }
.live-chart__sub { font-family: var(--mono); font-size: 11px; color: var(--fg-3); letter-spacing: 0.06em; text-transform: uppercase; }
.live-chart__live {
  display: inline-flex; align-items: center; gap: 7px;
  font-family: var(--mono); font-size: 11px; color: var(--accent);
  font-weight: 500; letter-spacing: 0.08em;
}
.live-chart__svg { flex: 1; width: 100%; height: 100%; position: relative; z-index: 1; }

.line--flat { stroke: var(--fg-4); stroke-width: 2; fill: none; stroke-dasharray: 5 4; }
.line--compound { stroke: var(--accent); stroke-width: 2.5; fill: none; filter: drop-shadow(0 0 8px rgba(52,231,166,0.6)); }
.area--compound { fill: url(#areaGrad); opacity: 0.6; }
.dot { fill: var(--accent); stroke: var(--bg-1); stroke-width: 2; }
.dot--end { fill: var(--accent); }
.grid-line { stroke: var(--line); stroke-width: 1; }
.axis-text { fill: var(--fg-3); font-family: var(--mono); font-size: 10px; letter-spacing: 0.08em; text-transform: uppercase; }

.live-chart__legend {
  display: flex; gap: 18px;
  padding-top: 12px;
  border-top: 1px solid var(--line);
  font-family: var(--mono); font-size: 11px;
  position: relative; z-index: 1;
}
.legend-key { display: inline-flex; align-items: center; gap: 7px; color: var(--fg-2); }
.legend-key__swatch { width: 14px; height: 2px; }
.legend-key__swatch--flat { background: var(--fg-4); }
.legend-key__swatch--compound { background: var(--accent); box-shadow: 0 0 6px var(--accent); }

/* Floating metric cards over chart */
.metric-float {
  position: absolute;
  background: rgba(15,26,32,0.85);
  backdrop-filter: blur(14px);
  border: 1px solid var(--line-2);
  border-radius: 10px;
  padding: 12px 16px;
  box-shadow: var(--shadow-lg);
  z-index: 5;
  will-change: transform;
  animation: float 6s ease-in-out infinite;
  min-width: 145px;
}
.metric-float--1 { top: 8%; right: -4%; animation-delay: 0s; }
.metric-float--2 { bottom: 22%; left: -5%; animation-delay: -2s; }
.metric-float--3 { bottom: -3%; right: 12%; animation-delay: -4s; }
@keyframes float {
  0%,100% { transform: translateY(0) translateX(0); }
  50% { transform: translateY(-8px) translateX(4px); }
}
.metric-float__label {
  font-family: var(--mono); font-size: 10px;
  letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--fg-3); margin-bottom: 4px;
}
.metric-float__value {
  font-family: var(--mono); font-weight: 600; font-size: 19px;
  letter-spacing: -0.015em; color: var(--fg);
  line-height: 1.15;
  display: flex; align-items: baseline; gap: 6px; flex-wrap: wrap;
}
.metric-float__delta {
  font-size: 11px; color: var(--accent);
  display: inline-flex; align-items: center; gap: 3px;
  font-family: var(--mono); letter-spacing: 0.04em; text-transform: uppercase;
}
.metric-float__delta--down { color: var(--red); }

@media (max-width: 1080px) { .metric-float { display: none; } }

/* ─── LIVE AI NEWS FEED ─── */
.news-section {
  padding: clamp(48px, 6vw, 72px) 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  position: relative;
  background: linear-gradient(180deg, rgba(13,107,78,0.05), transparent 55%);
}
.news-section__hd {
  display: flex; justify-content: space-between; align-items: flex-end;
  gap: 24px; margin-bottom: 28px;
  flex-wrap: wrap;
}
.news-section__brand {
  display: flex; align-items: flex-start; gap: 14px;
}
.news-section__pulseWrap {
  display: grid; place-items: center;
  width: 28px; height: 28px;
  border: 1px solid var(--line-2);
  border-radius: 999px;
  margin-top: 14px;
  flex-shrink: 0;
}
.news-section__kicker {
  font-family: var(--mono); font-size: 11px;
  letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 6px;
}
.news-section__title {
  margin: 0;
  font-family: var(--sans);
  font-weight: 500;
  font-size: clamp(24px, 3.2vw, 38px);
  line-height: 1.05;
  letter-spacing: -0.025em;
  color: var(--fg);
}
.news-section__title em {
  font-family: var(--serif); font-style: italic; font-weight: 400;
  background: linear-gradient(135deg, var(--accent), var(--cool));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.news-section__meta {
  display: flex; align-items: center; gap: 14px;
  flex-wrap: wrap;
}
.news-section__refresh {
  font-family: var(--mono); font-size: 10px;
  letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--fg-3);
  display: flex; align-items: center; gap: 8px;
}
.news-section__refresh-label { color: var(--fg-3); }
.news-section__refresh #newsAgo { color: var(--accent); }
.news-section__refreshBtn {
  display: inline-flex; align-items: center; gap: 7px;
  padding: 6px 12px 6px 10px;
  border: 1px solid var(--line-2);
  border-radius: 999px;
  font-family: var(--mono); font-size: 10px;
  letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--fg-2);
  background: rgba(255,255,255,0.02);
  transition: all .2s ease;
}
.news-section__refreshBtn:hover { border-color: var(--accent); color: var(--accent); }
.news-section__refreshBtn svg { width: 11px; height: 11px; transition: transform .8s ease; }
.news-section__refreshBtn.is-spinning svg { transform: rotate(720deg); transition: transform 1.2s ease; }
.news-section__all {
  font-family: var(--mono); font-size: 11px;
  letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--fg-2);
  padding-left: 14px;
  border-left: 1px solid var(--line-2);
  transition: color .2s ease;
}
.news-section__all:hover { color: var(--accent); }

.news-grid {
  display: grid;
  grid-template-columns: 1.25fr 1fr;
  gap: 16px;
  align-items: stretch;
}
@media (max-width: 980px) { .news-grid { grid-template-columns: 1fr; } }

.news-feature {
  background: linear-gradient(135deg, rgba(52,231,166,0.07), rgba(77,196,255,0.04) 60%, transparent),
              linear-gradient(180deg, var(--bg-1), var(--bg-2));
  border: 1px solid var(--line-2);
  border-radius: 14px;
  padding: 28px;
  position: relative;
  overflow: hidden;
  display: flex; flex-direction: column;
  gap: 14px;
  min-height: 260px;
  transition: border-color .25s ease, transform .25s ease, box-shadow .25s ease;
  cursor: pointer;
}
.news-feature::before {
  content: ""; position: absolute; top: 0; left: 0; right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--accent), transparent);
  opacity: 0.6;
}
.news-feature:hover {
  border-color: var(--accent);
  box-shadow: 0 20px 40px -12px rgba(0,0,0,0.6), 0 0 24px -6px rgba(52,231,166,0.16);
  transform: translateY(-2px);
}
.news-feature__head {
  display: flex; justify-content: space-between; align-items: center;
}
.news-feature__cat {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 6px 12px 6px 10px;
  background: rgba(0,0,0,0.3);
  border: 1px solid var(--line-2);
  border-radius: 999px;
  font-family: var(--mono); font-size: 10px;
  letter-spacing: 0.12em; text-transform: uppercase;
  font-weight: 500;
  color: var(--fg-2);
}
.news-cat-dot {
  width: 7px; height: 7px; border-radius: 999px;
  display: block;
}
.news-feature__time {
  font-family: var(--mono); font-size: 10px;
  letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--fg-3);
}
.news-feature__title {
  margin: 6px 0 0;
  font-family: var(--sans);
  font-weight: 500;
  font-size: clamp(20px, 2.4vw, 28px);
  line-height: 1.15;
  letter-spacing: -0.018em;
  color: var(--fg);
}
.news-feature__lede {
  margin: 0;
  font-family: var(--serif);
  font-size: 15px;
  line-height: 1.55;
  color: var(--fg-2);
  font-style: italic;
}
.news-feature__lede strong { color: var(--fg); font-style: normal; font-weight: 600; }
.news-feature__foot {
  margin-top: auto;
  display: flex; justify-content: space-between; align-items: center;
  gap: 12px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
}
.news-feature__src {
  display: flex; align-items: center; gap: 10px;
  font-family: var(--mono); font-size: 11px;
  letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--fg);
  font-weight: 500;
}
.news-feature__avatar {
  width: 26px; height: 26px;
  border-radius: 999px;
  display: grid; place-items: center;
  font-family: var(--mono); font-weight: 700; font-size: 11px;
  letter-spacing: 0;
  border: 1px solid;
}
.news-feature__cta {
  font-family: var(--mono); font-size: 10px;
  letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--fg-3);
  display: inline-flex; align-items: center; gap: 6px;
  transition: color .2s ease;
}
.news-feature:hover .news-feature__cta { color: var(--accent); }
.news-feature__cta::after { content: "→"; transition: transform .2s ease; }
.news-feature:hover .news-feature__cta::after { transform: translateX(3px); }

.news-list {
  display: grid;
  gap: 10px;
  grid-template-rows: repeat(4, 1fr);
}
.news-card {
  background: var(--bg-1);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 12px 14px;
  display: grid;
  grid-template-rows: auto 1fr;
  gap: 6px;
  transition: border-color .2s ease, transform .2s ease, background .2s ease;
  cursor: pointer;
  min-height: 0;
}
.news-card:hover {
  border-color: var(--line-3);
  background: var(--bg-2);
  transform: translateX(2px);
}
.news-card__hd {
  display: grid;
  grid-template-columns: 22px 1fr auto;
  align-items: center;
  gap: 9px;
}
.news-card__avatar {
  width: 22px; height: 22px;
  border-radius: 999px;
  display: grid; place-items: center;
  font-family: var(--mono); font-weight: 700; font-size: 9.5px;
  letter-spacing: 0;
  border: 1px solid;
}
.news-card__src {
  font-family: var(--mono); font-size: 10.5px;
  letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--fg); font-weight: 500;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
  display: flex; align-items: center; gap: 7px;
}
.news-card__cat-dot {
  width: 6px; height: 6px; border-radius: 999px;
  display: inline-block;
  flex-shrink: 0;
}
.news-card__time {
  font-family: var(--mono); font-size: 10px;
  color: var(--fg-3); letter-spacing: 0.06em; text-transform: uppercase;
  white-space: nowrap;
}
.news-card__head {
  font-family: var(--sans); font-size: 13.5px;
  line-height: 1.4; color: var(--fg-2);
  font-weight: 500; letter-spacing: -0.005em;
  margin: 0;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.news-card:hover .news-card__head { color: var(--fg); }

.news-card--placeholder .news-card__head,
.news-card--placeholder .news-card__src,
.news-feature.news-card--placeholder .news-feature__title { color: var(--fg-3); }
.news-card--placeholder .news-card__avatar,
.news-card--placeholder .news-feature__avatar { animation: blink 1.4s ease-in-out infinite; border-color: var(--line-2); }
@keyframes blink { 50% { opacity: 0.3; } }

@media (max-width: 540px) {
  .news-feature { padding: 22px; }
  .news-feature__title { font-size: 20px; }
  .news-list { gap: 8px; }
  .news-card { padding: 11px 13px; }
}

/* ─── SECTION ─── */
.section {
  padding: clamp(80px, 11vw, 144px) 0;
  position: relative;
  z-index: 1;
}
.section__head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr);
  gap: clamp(24px, 5vw, 72px);
  align-items: end;
  margin-bottom: clamp(48px, 7vw, 80px);
}
@media (max-width: 880px) { .section__head { grid-template-columns: 1fr; } }

.section__index {
  font-family: var(--mono); font-size: 12px;
  letter-spacing: 0.14em; color: var(--accent);
  margin-bottom: 20px;
  display: flex; align-items: center; gap: 12px;
}
.section__index::before {
  content: ""; display: block;
  width: 28px; height: 1px; background: var(--accent);
}
.section h2 {
  margin: 0;
  font-family: var(--sans);
  font-weight: 500;
  font-size: clamp(32px, 5vw, 60px);
  line-height: 1.02;
  letter-spacing: -0.028em;
  color: var(--fg);
}
.section h2 em {
  font-family: var(--serif); font-style: italic; font-weight: 400;
  background: linear-gradient(135deg, var(--accent), var(--cool));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.section__lede { color: var(--fg-2); font-size: 17px; line-height: 1.6; max-width: 56ch; }
.section__lede strong { color: var(--fg); font-weight: 600; }

/* ─── DIVERGENCE (proof) ─── */
.divergence {
  background: linear-gradient(180deg, var(--bg-1), var(--bg-2));
  border: 1px solid var(--line);
  border-radius: 16px;
  overflow: hidden;
  padding: 32px;
  box-shadow: var(--shadow-lg);
}
.divergence__inner {
  display: grid;
  grid-template-columns: 1fr 1.5fr;
  gap: 40px;
  align-items: center;
}
@media (max-width: 1080px) { .divergence__inner { grid-template-columns: 1fr; } }
.divergence__chart {
  position: relative;
  aspect-ratio: 16 / 10;
  background: rgba(0,0,0,0.2);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 24px;
}
.divergence__chart svg { width: 100%; height: 100%; }
.divergence__stats {
  display: grid; gap: 18px;
}
.dgs__example-tag {
  display: inline-flex; align-items: center; gap: 8px;
  align-self: start;
  padding: 6px 12px 6px 10px;
  margin-bottom: 4px;
  border: 1px dashed var(--line-3);
  border-radius: 999px;
  font-family: var(--mono); font-size: 10px;
  letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--fg-3);
}
.dgs__example-tag::before {
  content: ""; display: block;
  width: 6px; height: 6px; border-radius: 999px;
  background: var(--warn);
  box-shadow: 0 0 6px var(--warn);
}
.dgs {
  display: grid; grid-template-columns: 1fr auto; gap: 16px;
  align-items: baseline;
  padding-bottom: 16px; border-bottom: 1px solid var(--line);
}
.dgs:last-child { border-bottom: none; }
.dgs__label { font-family: var(--mono); font-size: 11px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--fg-3); }
.dgs__value { font-family: var(--mono); font-weight: 600; font-size: 32px; letter-spacing: -0.02em; color: var(--accent); }
.dgs__value--flat { color: var(--fg-3); }

/* ─── STICKY SCROLLY ─── */
.sticky-story {
  position: relative;
}
.sticky-story__grid {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: clamp(40px, 6vw, 96px);
  align-items: start;
}
@media (max-width: 980px) { .sticky-story__grid { grid-template-columns: 1fr; } }
.sticky-story__panel {
  position: sticky;
  top: 100px;
  background: linear-gradient(180deg, var(--bg-1), var(--bg-2));
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 32px;
  box-shadow: var(--shadow-lg);
  aspect-ratio: 4/5;
  display: flex; flex-direction: column;
  overflow: hidden;
}
@media (max-width: 980px) {
  .sticky-story__panel { position: relative; top: 0; aspect-ratio: 16/10; margin-bottom: 32px; }
}
.story-step {
  padding: clamp(60px, 10vw, 120px) 0;
  border-top: 1px solid var(--line);
}
.story-step:first-child { border-top: none; padding-top: 0; }
.story-step__num {
  font-family: var(--mono); font-size: 14px;
  color: var(--fg-3); letter-spacing: 0.1em;
  margin-bottom: 18px;
  display: flex; align-items: center; gap: 12px;
}
.story-step__num strong { color: var(--accent); font-weight: 500; }
.story-step h3 {
  margin: 0 0 16px;
  font-family: var(--sans); font-weight: 500;
  font-size: clamp(26px, 3.5vw, 42px);
  letter-spacing: -0.022em;
  line-height: 1.05;
}
.story-step h3 em { font-family: var(--serif); font-style: italic; font-weight: 400; color: var(--accent); }
.story-step p { color: var(--fg-2); font-size: 16px; line-height: 1.6; max-width: 48ch; margin: 0 0 18px; }
.story-step__players {
  font-family: var(--mono); font-size: 11px;
  letter-spacing: 0.08em; color: var(--fg-3);
  padding-top: 14px; border-top: 1px solid var(--line);
}
.story-step__players strong { color: var(--fg); font-weight: 500; }

/* Stacked layers viz inside sticky */
.layer-stack {
  flex: 1;
  position: relative;
  display: flex; flex-direction: column; gap: 14px;
  justify-content: center;
}
.lstack {
  border: 1px solid var(--line-2);
  border-radius: 10px;
  padding: 18px 22px;
  background: rgba(0,0,0,0.25);
  transition: all .5s cubic-bezier(.2,.7,.2,1);
  position: relative;
  overflow: hidden;
}
.lstack__label { font-family: var(--mono); font-size: 10px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--fg-3); margin-bottom: 6px; }
.lstack__title { font-family: var(--sans); font-weight: 600; font-size: 18px; letter-spacing: -0.012em; margin-bottom: 4px; }
.lstack__players { font-family: var(--mono); font-size: 11px; color: var(--fg-3); }
.lstack--active {
  border-color: var(--accent);
  background: linear-gradient(135deg, rgba(52,231,166,0.12), rgba(52,231,166,0.04));
  box-shadow: 0 0 30px -5px rgba(52,231,166,0.3), inset 0 0 0 1px rgba(52,231,166,0.2);
  transform: scale(1.02);
}
.lstack--active .lstack__label { color: var(--accent); }
.lstack--dim { opacity: 0.4; transform: scale(0.97); }
.lstack__bar {
  position: absolute; bottom: 0; left: 0; height: 2px;
  background: var(--accent);
  width: 0;
  transition: width .8s ease;
}
.lstack--active .lstack__bar { width: 100%; }

/* ─── BAR RACE / 27 METRICS ─── */
.bar-race {
  background: linear-gradient(180deg, var(--bg-1), var(--bg-2));
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 32px;
  box-shadow: var(--shadow-lg);
}
.bar-race__hd {
  display: flex; justify-content: space-between; align-items: baseline;
  margin-bottom: 24px;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--line);
}
.bar-race__title {
  font-family: var(--mono); font-weight: 600; font-size: 15px;
}
.bar-race__title em { color: var(--accent); font-style: normal; }
.bar-race__meta { display: flex; gap: 24px; font-family: var(--mono); font-size: 11px; color: var(--fg-3); letter-spacing: 0.08em; text-transform: uppercase; }
.bar-race__meta strong { color: var(--accent); font-weight: 600; }
.bar-race__body {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--line);
}
@media (max-width: 880px) { .bar-race__body { grid-template-columns: 1fr; } }
.bar-pillar {
  background: var(--bg-1);
  padding: 22px;
}
.bar-pillar__hd {
  display: flex; justify-content: space-between;
  font-family: var(--mono); font-size: 11px;
  letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--fg-3); margin-bottom: 8px;
}
.bar-pillar__hd em { color: var(--accent); font-style: normal; }
.bar-pillar__title {
  font-family: var(--sans); font-weight: 600; font-size: 20px;
  letter-spacing: -0.015em; margin-bottom: 16px;
}
.bar-pillar__list { display: grid; gap: 10px; }
.bar-row { display: grid; grid-template-columns: 1fr; gap: 5px; }
.bar-row__top { display: flex; justify-content: space-between; font-size: 12.5px; }
.bar-row__name { color: var(--fg-2); }
.bar-row__value { font-family: var(--mono); color: var(--fg); font-weight: 500; }
.bar-row__bar { height: 5px; background: var(--bg-3); border-radius: 999px; overflow: hidden; position: relative; }
.bar-row__fill { position: absolute; top: 0; left: 0; bottom: 0; width: 0; border-radius: 999px; transition: width 1.4s cubic-bezier(.2,.7,.2,1); }
.bar-row__fill--ok { background: linear-gradient(90deg, var(--accent-2), var(--accent)); box-shadow: 0 0 8px rgba(52,231,166,0.5); }
.bar-row__fill--warn { background: linear-gradient(90deg, var(--warn-2), var(--warn)); }
.bar-row__fill--lo { background: linear-gradient(90deg, var(--line-3), var(--fg-4)); }
.bar-row__peer {
  position: absolute; top: -3px; bottom: -3px; width: 2px; background: var(--cool);
  box-shadow: 0 0 6px var(--cool);
}

/* ─── 27-METRIC FRAMEWORK ─── */
.metric-framework {
  background: linear-gradient(180deg, var(--bg-1), var(--bg-2));
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 32px;
  box-shadow: var(--shadow-lg);
}
.metric-framework__hd {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 32px;
  align-items: center;
  margin-bottom: 28px;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--line);
}
@media (max-width: 720px) {
  .metric-framework__hd { grid-template-columns: 1fr; }
}
.metric-framework__title {
  margin: 0 0 8px;
  font-family: var(--sans); font-weight: 500;
  font-size: clamp(22px, 2.6vw, 30px);
  letter-spacing: -0.018em; line-height: 1.1;
}
.metric-framework__title em {
  font-family: var(--serif); font-style: italic; font-weight: 400;
  color: var(--accent);
}
.metric-framework__lede {
  margin: 0;
  color: var(--fg-2); font-size: 14px;
  max-width: 60ch; line-height: 1.55;
}
.metric-framework__count {
  display: flex; align-items: baseline; gap: 10px;
  white-space: nowrap;
  padding-left: 24px;
  border-left: 1px solid var(--line);
}
@media (max-width: 720px) {
  .metric-framework__count { border-left: none; padding-left: 0; }
}
.metric-framework__num {
  font-family: var(--mono); font-weight: 600;
  font-size: 56px; line-height: 1;
  letter-spacing: -0.04em;
  background: linear-gradient(135deg, var(--accent), var(--cool));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.metric-framework__sub {
  font-family: var(--mono); font-size: 11px;
  letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--fg-3);
}

.metric-framework__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--line);
  border-radius: 8px;
  overflow: hidden;
}
@media (max-width: 980px) { .metric-framework__grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .metric-framework__grid { grid-template-columns: 1fr; } }

.mf-col {
  background: var(--bg-1);
  padding: 20px;
  transition: background .2s ease;
}
.mf-col:hover { background: var(--bg-2); }
.mf-col__head {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 10px;
  align-items: baseline;
  padding-bottom: 12px;
  margin-bottom: 14px;
  border-bottom: 1px dashed var(--line-2);
}
.mf-col__idx {
  font-family: var(--mono); font-size: 11px;
  color: var(--accent); font-weight: 600;
  letter-spacing: 0.06em;
}
.mf-col__name {
  font-family: var(--sans); font-weight: 600;
  font-size: 14.5px; letter-spacing: -0.01em;
  color: var(--fg);
}
.mf-col__count {
  font-family: var(--mono); font-size: 10px;
  letter-spacing: 0.1em;
  color: var(--fg-3);
  padding: 2px 7px;
  border: 1px solid var(--line-2);
  border-radius: 999px;
}
.mf-col__list {
  margin: 0; padding: 0; list-style: none;
  display: grid; gap: 8px;
}
.mf-col__list li {
  font-family: var(--mono); font-size: 12px;
  color: var(--fg-2); letter-spacing: 0.01em;
  padding-left: 14px;
  position: relative;
  line-height: 1.4;
}
.mf-col__list li::before {
  content: ""; position: absolute;
  left: 0; top: 7px;
  width: 5px; height: 5px;
  border-radius: 999px;
  background: var(--accent-3);
  transition: background .2s ease;
}
.mf-col:hover .mf-col__list li::before { background: var(--accent); }

/* ─── RADAR ─── */
.radar-section {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(40px, 6vw, 80px);
  align-items: center;
}
@media (max-width: 980px) { .radar-section { grid-template-columns: 1fr; } }
.radar-box {
  position: relative;
  aspect-ratio: 1/1;
  max-width: 540px;
  margin: 0 auto;
}
.radar-box svg { width: 100%; height: 100%; }
.radar-grid { stroke: var(--line-2); fill: none; stroke-width: 1; }
.radar-axis { stroke: var(--line); stroke-width: 1; }
.radar-shape--peer { fill: rgba(77,196,255,0.08); stroke: var(--cool); stroke-width: 1.5; stroke-dasharray: 4 3; }
.radar-shape--you { fill: url(#radarYou); stroke: var(--accent); stroke-width: 2; filter: drop-shadow(0 0 8px rgba(52,231,166,0.4)); }
.radar-label { fill: var(--fg-2); font-family: var(--mono); font-size: 10px; letter-spacing: 0.06em; text-transform: uppercase; }
.radar-dot { fill: var(--accent); }

.radar-legend { display: flex; gap: 18px; margin-top: 24px; font-family: var(--mono); font-size: 11px; color: var(--fg-2); justify-content: center; }
.radar-legend__key { display: inline-flex; align-items: center; gap: 7px; }
.radar-legend__sw { width: 14px; height: 14px; border-radius: 3px; }
.radar-legend__sw--peer { background: rgba(77,196,255,0.15); border: 1px dashed var(--cool); }
.radar-legend__sw--you { background: rgba(52,231,166,0.2); border: 1px solid var(--accent); }

.radar-stats { display: grid; gap: 14px; }
.rstat {
  display: grid; grid-template-columns: 1fr auto; gap: 16px;
  padding: 14px 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(0,0,0,0.15);
  align-items: center;
  transition: border-color .2s ease;
}
.rstat:hover { border-color: var(--line-2); }
.rstat__name { font-family: var(--sans); font-weight: 500; font-size: 14px; }
.rstat__name span { display: block; font-family: var(--mono); font-size: 10px; color: var(--fg-3); letter-spacing: 0.08em; text-transform: uppercase; margin-top: 2px; font-weight: 400; }
.rstat__score { display: flex; flex-direction: column; align-items: flex-end; gap: 4px; }
.rstat__score-val { font-family: var(--mono); font-weight: 600; font-size: 18px; color: var(--accent); letter-spacing: -0.02em; }
.rstat__score-delta { font-family: var(--mono); font-size: 10px; color: var(--fg-3); letter-spacing: 0.04em; }
.rstat__score-delta em { color: var(--accent); font-style: normal; }

/* ─── COMPOUNDS ─── */
.compounds {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}
@media (max-width: 1080px) { .compounds { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 540px) { .compounds { grid-template-columns: 1fr; } }

.compound-card {
  background: linear-gradient(180deg, var(--bg-1), var(--bg-2));
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 22px;
  position: relative;
  overflow: hidden;
  transition: all .3s ease;
  cursor: pointer;
}
.compound-card::before {
  content: ""; position: absolute; inset: 0;
  background: radial-gradient(circle at var(--mx,50%) var(--my,50%), rgba(52,231,166,0.18), transparent 50%);
  opacity: 0; transition: opacity .3s ease;
  pointer-events: none;
}
.compound-card:hover { transform: translateY(-4px); border-color: var(--accent); box-shadow: 0 20px 40px -10px rgba(0,0,0,0.5), 0 0 30px -5px rgba(52,231,166,0.2); }
.compound-card:hover::before { opacity: 1; }
.compound-card__hd { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 14px; }
.compound-card__letter {
  font-family: var(--serif); font-style: italic; font-weight: 500;
  font-size: 32px; line-height: 1;
  background: linear-gradient(135deg, var(--accent), var(--cool));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.compound-card__status {
  font-family: var(--mono); font-size: 9px;
  letter-spacing: 0.14em; text-transform: uppercase;
  padding: 3px 8px;
  border-radius: 999px;
  border: 1px solid var(--line-2);
  color: var(--fg-3);
}
.compound-card__status--ga { background: rgba(52,231,166,0.12); border-color: var(--accent); color: var(--accent); }
.compound-card__name {
  font-family: var(--sans); font-weight: 600;
  font-size: 22px; letter-spacing: -0.015em;
  margin-bottom: 4px;
}
.compound-card__domain {
  font-family: var(--mono); font-size: 11px;
  letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--fg-3); margin-bottom: 16px;
}
.compound-card__sparkline {
  position: relative; z-index: 1;
  height: 60px; margin: 10px 0 16px;
}
.compound-card__sparkline svg { width: 100%; height: 100%; }
.compound-card__desc {
  font-size: 13px;
  color: var(--fg-2);
  line-height: 1.5;
  margin: 6px 0 0;
  position: relative; z-index: 1;
}
.compound-card__preview {
  position: relative; z-index: 1;
  margin: 14px 0 16px;
  background: rgba(0,0,0,0.28);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 10px 12px;
  font-family: var(--mono);
  font-size: 11px;
  display: grid;
  gap: 7px;
  min-height: 158px;
  overflow: hidden;
}

/* ── MarCo · AI search visibility ── */
.marco-preview__bar {
  display: grid;
  grid-template-columns: 14px 1fr auto;
  align-items: center; gap: 7px;
  padding-bottom: 7px;
  border-bottom: 1px dashed var(--line-2);
  color: var(--fg-3);
}
.marco-preview__sicon { color: var(--fg-3); width: 13px; height: 13px; }
.marco-preview__q { color: var(--fg-2); font-size: 10.5px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.marco-preview__chip {
  font-size: 8.5px; letter-spacing: 0.12em; text-transform: uppercase;
  padding: 2px 6px; border-radius: 3px;
  background: rgba(77,196,255,0.14); color: var(--cool);
  font-weight: 600;
}
.marco-preview__row {
  display: grid;
  grid-template-columns: 16px 1fr auto;
  gap: 8px; align-items: center;
  font-size: 11px;
  color: var(--fg-2);
}
.marco-preview__rank {
  font-family: var(--mono); font-weight: 600;
  color: var(--fg-3);
  text-align: center; font-size: 10px;
}
.marco-preview__name { color: var(--fg); }
.marco-preview__pct {
  font-family: var(--mono);
  font-variant-numeric: tabular-nums;
  color: var(--fg-3); font-size: 10.5px;
}
.marco-preview__row--you {
  background: linear-gradient(90deg, rgba(52,231,166,0.14), rgba(52,231,166,0.02));
  border-radius: 4px;
  padding: 5px 8px;
  margin: 0 -8px;
}
.marco-preview__row--you .marco-preview__rank { color: var(--accent); }
.marco-preview__row--you .marco-preview__name { color: var(--accent); font-weight: 600; }
.marco-preview__row--you .marco-preview__pct { color: var(--accent); font-weight: 500; }

/* ── QuantSage · variance table ── */
.quant-preview {
  font-family: var(--mono);
}
.quant-preview__hd {
  display: flex; justify-content: space-between;
  padding-bottom: 7px;
  border-bottom: 1px dashed var(--line-2);
  font-size: 10px; letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--fg-3);
}
.quant-preview__date { color: var(--cool); font-weight: 600; }
.quant-preview__row {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 8px;
  align-items: baseline;
  font-size: 11.5px;
  padding: 1px 0;
}
.quant-preview__name { color: var(--fg-2); }
.quant-preview__delta {
  font-variant-numeric: tabular-nums;
  font-weight: 600;
}
.quant-preview__delta--up { color: var(--accent); }
.quant-preview__delta--down { color: var(--red); }

/* ── Lumina · knowledge query ── */
.lumina-preview__q {
  display: grid;
  grid-template-columns: 16px 1fr;
  gap: 7px;
  align-items: baseline;
  font-size: 11.5px;
  color: var(--fg);
  font-family: var(--mono);
  padding-bottom: 7px;
  border-bottom: 1px dashed var(--line-2);
}
.lumina-preview__qmark {
  width: 16px; height: 16px;
  display: grid; place-items: center;
  background: var(--cool); color: var(--bg-1);
  border-radius: 999px;
  font-weight: 700; font-size: 10px;
}
.lumina-preview__meta {
  display: flex; justify-content: space-between;
  font-size: 10px; letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--fg-3);
}
.lumina-preview__time { color: var(--accent); font-weight: 600; }
.lumina-preview__list {
  display: grid; gap: 4px;
  padding-top: 4px;
}
.lumina-preview__src {
  display: grid;
  grid-template-columns: 10px 1fr auto;
  gap: 7px;
  align-items: baseline;
  font-size: 10.5px;
  color: var(--fg-2);
}
.lumina-preview__doticon {
  width: 8px; height: 9px;
  background: var(--accent);
  -webkit-mask: linear-gradient(180deg, currentColor 0 100%);
  border-radius: 1px;
  align-self: center;
  opacity: 0.7;
}
.lumina-preview__label { color: var(--fg); }
.lumina-preview__date { color: var(--fg-3); font-size: 9.5px; letter-spacing: 0.06em; text-transform: uppercase; }

/* ── Commerza · conversion funnel ── */
.commerza-preview__hd {
  display: flex; justify-content: space-between;
  padding-bottom: 7px;
  border-bottom: 1px dashed var(--line-2);
  font-size: 10px; letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--fg-3);
}
.commerza-preview__overall { color: var(--accent); font-weight: 700; font-size: 12px; letter-spacing: -0.01em; }
.commerza-preview__step {
  display: grid;
  grid-template-columns: 1fr 64px 42px;
  gap: 8px;
  align-items: center;
  font-size: 10.5px;
}
.commerza-preview__label { color: var(--fg-2); font-size: 10.5px; }
.commerza-preview__bar {
  display: block;
  height: 4px;
  background: var(--bg-3);
  border-radius: 999px;
  overflow: hidden;
}
.commerza-preview__fill {
  display: block; height: 100%;
  width: 0;
  background: linear-gradient(90deg, var(--accent-2), var(--accent));
  box-shadow: 0 0 6px rgba(52,231,166,0.5);
  border-radius: 999px;
  transition: width 1.4s cubic-bezier(.2,.7,.2,1);
}
.commerza-preview__pct {
  font-family: var(--mono); font-weight: 600;
  color: var(--fg); text-align: right;
  font-variant-numeric: tabular-nums;
  font-size: 11px;
}
.spark-line { stroke: var(--accent); stroke-width: 2; fill: none; filter: drop-shadow(0 0 4px var(--accent)); }
.spark-area { fill: url(#sparkGrad); opacity: 0.4; }
.compound-card__stats {
  display: flex; justify-content: space-between;
  font-family: var(--mono); font-size: 11px;
  letter-spacing: 0.06em; color: var(--fg-3);
  padding-top: 12px; border-top: 1px solid var(--line);
}
.compound-card__stats strong { color: var(--fg); font-weight: 500; display: block; font-size: 14px; }
.compound-card__stats--stack {
  display: block;
  text-transform: none;
  letter-spacing: 0;
}
.compound-card__stats--stack span {
  display: block;
  font-size: 10px; letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--fg-3); margin-bottom: 4px;
}
.compound-card__stats--stack strong {
  display: block;
  font-size: 11.5px;
  font-family: var(--mono);
  color: var(--fg-2);
  font-weight: 500;
  letter-spacing: 0.04em;
  line-height: 1.5;
}

/* ─── OPERATING LOOP ─── */
.loop-section {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(40px, 6vw, 80px);
  align-items: center;
}
@media (max-width: 980px) { .loop-section { grid-template-columns: 1fr; } }
.loop-box {
  position: relative;
  aspect-ratio: 1/1;
  max-width: 480px;
  margin: 0 auto;
}
.loop-box svg { width: 100%; height: 100%; }
.loop-orbit { stroke: var(--line-2); stroke-width: 1; fill: none; stroke-dasharray: 3 4; }
.loop-node {
  fill: var(--bg-1); stroke: var(--accent); stroke-width: 2;
  filter: drop-shadow(0 0 6px rgba(52,231,166,0.4));
}
.loop-flow { stroke: var(--accent); stroke-width: 2; fill: none; }
.loop-text {
  fill: var(--fg); font-family: var(--mono); font-size: 13px; font-weight: 600;
  letter-spacing: 0.04em; text-transform: uppercase;
}
.loop-sub {
  fill: var(--fg-3); font-family: var(--mono); font-size: 9px;
  letter-spacing: 0.1em; text-transform: uppercase;
}
.loop-dot { fill: var(--accent); filter: drop-shadow(0 0 6px var(--accent)); }

.loop-steps { display: grid; gap: 14px; }
.lstep {
  display: grid; grid-template-columns: 40px 1fr auto; gap: 16px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: rgba(0,0,0,0.15);
  align-items: start;
  transition: all .25s ease;
}
.lstep:hover { border-color: var(--accent); transform: translateX(4px); }
.lstep__num {
  font-family: var(--mono); font-size: 14px; font-weight: 600;
  color: var(--accent); letter-spacing: 0.06em;
}
.lstep__title { font-family: var(--sans); font-weight: 600; font-size: 16px; margin-bottom: 4px; letter-spacing: -0.01em; }
.lstep__desc { font-size: 13.5px; color: var(--fg-2); line-height: 1.55; max-width: 44ch; }
.lstep__tag {
  font-family: var(--mono); font-size: 10px;
  letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--fg-3);
  padding: 4px 10px;
  border: 1px solid var(--line-2);
  border-radius: 999px;
  white-space: nowrap;
  align-self: center;
}

/* ─── PRICING ─── */
.pricing { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
@media (max-width: 880px) { .pricing { grid-template-columns: 1fr; } }
.price-card {
  background: linear-gradient(180deg, var(--bg-1), var(--bg-2));
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 28px;
  position: relative;
  transition: all .25s ease;
  overflow: hidden;
}
.price-card:hover { transform: translateY(-4px); border-color: var(--line-2); box-shadow: 0 20px 40px -10px rgba(0,0,0,0.5); }
.price-card--feature {
  border-color: var(--accent);
  background: linear-gradient(180deg, rgba(52,231,166,0.06), var(--bg-2));
}
.price-card--feature::before {
  content: ""; position: absolute; inset: 0;
  background: radial-gradient(ellipse at top, rgba(52,231,166,0.15), transparent 50%);
  pointer-events: none;
}
.price-card__phase { font-family: var(--mono); font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--fg-3); margin-bottom: 12px; position: relative; }
.price-card--feature .price-card__phase { color: var(--accent); }
.price-card__title { margin: 0 0 16px; font-family: var(--sans); font-weight: 600; font-size: 24px; letter-spacing: -0.015em; position: relative; }
.price-card__range { font-family: var(--mono); font-size: 32px; color: var(--fg); margin-bottom: 6px; font-weight: 600; letter-spacing: -0.025em; position: relative; }
.price-card__range em { color: var(--fg-3); font-style: normal; }
.price-card__period { font-family: var(--mono); font-size: 12px; color: var(--fg-3); letter-spacing: 0.06em; text-transform: uppercase; margin-bottom: 24px; position: relative; }
.price-card__list { margin: 0; padding: 0; list-style: none; position: relative; }
.price-card__list li {
  padding: 10px 0; border-bottom: 1px dashed var(--line);
  font-size: 13.5px; color: var(--fg-2);
  display: flex; gap: 10px; align-items: baseline;
}
.price-card__list li:last-child { border-bottom: none; }
.price-card__list li::before { content: "→"; color: var(--accent); font-family: var(--mono); font-size: 11px; }

/* ─── CTA ─── */
.cta {
  padding: clamp(80px, 11vw, 144px) 0;
  position: relative;
  z-index: 1;
}
.cta__inner {
  background: linear-gradient(135deg, var(--bg-1), var(--bg-3));
  border: 1px solid var(--accent);
  border-radius: 20px;
  padding: clamp(40px, 6vw, 80px);
  position: relative;
  overflow: hidden;
  box-shadow: 0 30px 60px -20px rgba(0,0,0,0.7), 0 0 60px -10px rgba(52,231,166,0.3);
}
.cta__inner::before {
  content: ""; position: absolute; inset: 0;
  background:
    radial-gradient(circle at 0% 0%, rgba(52,231,166,0.18), transparent 50%),
    radial-gradient(circle at 100% 100%, rgba(77,196,255,0.12), transparent 50%);
  pointer-events: none;
}
.cta__grid {
  display: grid; grid-template-columns: 1.3fr 1fr; gap: 40px;
  align-items: end; position: relative; z-index: 1;
}
@media (max-width: 880px) { .cta__grid { grid-template-columns: 1fr; } }
.cta h2 {
  margin: 0 0 20px;
  font-family: var(--sans); font-weight: 500;
  font-size: clamp(34px, 5vw, 64px);
  line-height: 1.02;
  letter-spacing: -0.028em;
}
.cta h2 em { font-family: var(--serif); font-style: italic; font-weight: 400; background: linear-gradient(135deg, var(--accent), var(--cool)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.cta__lede { color: var(--fg-2); font-size: 16px; line-height: 1.6; max-width: 50ch; }
.cta__lede strong { color: var(--fg); }

/* ─── FOOTER ─── */
.footer {
  padding: 56px 0 32px;
  border-top: 1px solid var(--line);
  color: var(--fg-3);
  font-family: var(--mono);
  font-size: 12px;
}
.footer__row { display: grid; grid-template-columns: 1.4fr repeat(4, 1fr); gap: 32px; padding-bottom: 40px; border-bottom: 1px solid var(--line); }
@media (max-width: 880px) { .footer__row { grid-template-columns: 1fr 1fr; } }
.footer h6 {
  margin: 0 0 14px; color: var(--fg-2);
  font-family: var(--mono); font-size: 11px;
  letter-spacing: 0.12em; text-transform: uppercase; font-weight: 500;
}
.footer ul { margin: 0; padding: 0; list-style: none; display: grid; gap: 8px; }
.footer a:hover { color: var(--fg); }
.footer__brand p { max-width: 36ch; line-height: 1.6; }
.footer__bottom {
  display: flex; justify-content: space-between; align-items: center;
  margin-top: 24px; letter-spacing: 0.06em; text-transform: uppercase; font-size: 11px;
}

/* ─── Reveal ─── */
.reveal { opacity: 0; transform: translateY(20px); transition: opacity .9s ease, transform .9s ease; }
.reveal.is-in { opacity: 1; transform: none; }


/* ════════════════════════════════════════════════════════════
   LIGHT THEME · activate with <body class="theme-light">
   Overrides every token. Components stay identical.
   ════════════════════════════════════════════════════════════ */
.theme-light {
  --bg-0:     #fafaf7;     /* page bg · warm off-white */
  --bg-1:     #ffffff;     /* card bg · pure white */
  --bg-2:     #f5f4ef;     /* subtle bg · cream */
  --bg-3:     #ebe9e1;     /* pressed / nested */
  --line:     #e8e5dc;     /* subtle border */
  --line-2:   #d4d0c2;     /* default border */
  --line-3:   #b8b3a0;     /* strong border, hover */
  --fg:       #0a0e0d;     /* primary text · deep ink */
  --fg-2:     #4a524d;     /* body text */
  --fg-3:     #7a8079;     /* muted, captions */
  --fg-4:     #a3a89e;     /* disabled, chart grid */
  --accent:   #0d6b4e;     /* deep emerald (was bright green) */
  --accent-2: #1ca877;     /* gradient pair */
  --accent-3: #2dd497;     /* tint / highlight */
  --warn:     #b88600;     /* darker amber */
  --warn-2:   #8a6500;
  --cool:     #1a6fd9;     /* darker blue */
  --pink:     #c63a72;     /* darker pink */
  --red:      #cc3a2a;     /* darker red */
}

/* Body & background */
.theme-light { background: var(--bg-0); color: var(--fg); }
.theme-light body { background: var(--bg-0); color: var(--fg); }

/* Ambient blobs become very subtle on light */
.theme-light .ambient__blob { opacity: 0.10; mix-blend-mode: multiply; filter: blur(140px); }
.theme-light .ambient__grid {
  background-image:
    linear-gradient(to right, rgba(10,14,13,0.025) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(10,14,13,0.025) 1px, transparent 1px);
}

/* Nav · invert backdrop */
.theme-light .nav {
  background: rgba(255,255,255,0.7);
  border-bottom: 1px solid var(--line);
}
.theme-light .nav__logo {
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  color: #ffffff;
  box-shadow: 0 0 16px -4px rgba(13,107,78,0.4);
}

/* Buttons · primary gradient stays, ghost flips */
.theme-light .btn--primary {
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  color: #ffffff;
  box-shadow: 0 6px 18px -6px rgba(13,107,78,0.45), inset 0 1px 0 rgba(255,255,255,0.25);
}
.theme-light .btn--ghost {
  background: rgba(255,255,255,0.5);
  border-color: var(--line-2);
  color: var(--fg);
}
.theme-light .btn--ghost:hover { background: var(--bg-2); border-color: var(--accent); color: var(--accent); }
.theme-light .nav__cta {
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  color: #ffffff;
  box-shadow: 0 6px 18px -6px rgba(13,107,78,0.45);
}

/* Hero gradient text — keep but use --accent → --cool */
.theme-light .hero h1 em,
.theme-light .section h2 em,
.theme-light h2 em,
.theme-light .news-section__title em,
.theme-light .cta h2 em {
  background: linear-gradient(135deg, var(--accent), var(--cool));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}

/* Cards · subtle elevation via shadow, not deep bg */
.theme-light .compound-card,
.theme-light .price-card,
.theme-light .news-card,
.theme-light .news-feature,
.theme-light .lstep,
.theme-light .rstat,
.theme-light .bar-race,
.theme-light .divergence,
.theme-light .live-chart,
.theme-light .metric-float,
.theme-light .sticky-story__panel {
  background: var(--bg-1);
  border-color: var(--line);
  box-shadow: 0 1px 0 rgba(10,14,13,0.02), 0 8px 16px -10px rgba(10,14,13,0.08);
}
.theme-light .compound-card:hover,
.theme-light .price-card:hover {
  box-shadow: 0 1px 0 rgba(10,14,13,0.02), 0 16px 32px -12px rgba(10,14,13,0.18), 0 0 24px -8px rgba(13,107,78,0.18);
  border-color: var(--accent);
}
.theme-light .price-card--feature {
  background: linear-gradient(180deg, #f0f9f4, var(--bg-1));
  border-color: var(--accent);
}

/* Subtle nested panels (preview blocks inside cards) */
.theme-light .compound-card__preview {
  background: var(--bg-2);
  border-color: var(--line);
}
.theme-light .live-chart {
  background: linear-gradient(180deg, var(--bg-1), var(--bg-2));
}
.theme-light .live-chart::before { display: none; }

/* Chart fills · darken bright accents for white bg */
.theme-light .line--flat { stroke: var(--fg-4); }
.theme-light .line--compound { stroke: var(--accent); filter: drop-shadow(0 0 4px rgba(13,107,78,0.35)); }
.theme-light .bar-row__fill--ok { background: linear-gradient(90deg, var(--accent-2), var(--accent)); box-shadow: 0 0 6px rgba(13,107,78,0.3); }
.theme-light .grid-line { stroke: var(--line); }
.theme-light .axis-text { fill: var(--fg-3); }
.theme-light .radar-grid { stroke: var(--line-2); }
.theme-light .radar-axis { stroke: var(--line); }
.theme-light .radar-shape--peer { fill: rgba(26,111,217,0.12); stroke: var(--cool); }
.theme-light .radar-shape--you { fill: rgba(13,107,78,0.18); stroke: var(--accent); }

/* News category accents · darker variants for light */
.theme-light .news-feature {
  background:
    linear-gradient(135deg, rgba(13,107,78,0.06), rgba(26,111,217,0.04) 60%, transparent),
    var(--bg-1);
}
.theme-light .news-feature::before {
  background: linear-gradient(90deg, transparent, var(--accent), transparent);
}

/* Chip · flips to light pill */
.theme-light .chip {
  background: var(--bg-1);
  border-color: var(--line-2);
  color: var(--fg-2);
  box-shadow: 0 1px 2px rgba(10,14,13,0.04);
}

/* Section index accent · still uses --accent which is now deep emerald */
.theme-light .section__index { color: var(--accent); }
.theme-light .section__index::before { background: var(--accent); }

/* CTA banner · invert */
.theme-light .cta__inner {
  background: linear-gradient(135deg, var(--bg-1), var(--bg-2));
  border-color: var(--accent);
  box-shadow: 0 30px 60px -20px rgba(10,14,13,0.12), 0 0 40px -10px rgba(13,107,78,0.15);
}
.theme-light .cta__inner::before {
  background:
    radial-gradient(circle at 0% 0%, rgba(13,107,78,0.1), transparent 50%),
    radial-gradient(circle at 100% 100%, rgba(26,111,217,0.08), transparent 50%);
}

/* Footer · light */
.theme-light .footer {
  background: var(--bg-2);
  color: var(--fg-3);
  border-top: 1px solid var(--line);
}
.theme-light .footer__row { border-bottom-color: var(--line); }
.theme-light .footer h6 { color: var(--fg); }
.theme-light .footer a:hover { color: var(--accent); }

/* Selection */
.theme-light ::selection { background: var(--accent); color: #ffffff; }
