/* ============ Traders Agent — Design System (subpages) ============
   V1 components rethemed to the V2 blue/black system. The "gold" var
   names are kept so every V1 component rule below picks up the blue
   palette without rewriting selectors. */
:root {
  --bg: #000000;
  --bg-2: #060b16;
  --panel: #0a1120;
  --panel-2: #0d1526;
  --border: rgba(80, 160, 255, 0.14);
  --border-strong: rgba(80, 160, 255, 0.32);
  --gold: #3b9dff;
  --gold-2: #7cc4ff;
  --gold-deep: #2f7fe0;
  --gold-tint: 80, 160, 255;
  --gold-grad: linear-gradient(135deg, #5fb2ff, #2f7fe0);
  --accent: var(--gold);
  --accent-2: var(--gold-2);
  --text: #ffffff;
  --muted: #9fb3cc;
  --faint: #5d7089;
  --success: #58d6a0;
  --danger: #ff7b7b;
  --success-tint: 88, 214, 160;
  --danger-tint: 255, 123, 123;
  --muted-tint: 159, 179, 204;
  --radius: 14px;
  --font: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --mono: 'JetBrains Mono', 'SF Mono', Consolas, monospace;
  --grad-text: linear-gradient(90deg, #d8edff 0%, #7cc4ff 45%, #3b9dff 100%);
  --grad-icon: linear-gradient(135deg, #7cc4ff, #2f7fe0);
}

.grad-text {
  background: var(--grad-text);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  -webkit-text-fill-color: transparent;
}

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

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  line-height: 1.65;
  overflow-x: hidden;
  font-size: 16px;
}

/* prevent double-tap / focus zoom weirdness on touch devices */
a, button, input, select, textarea, .btn { touch-action: manipulation; }

.container { max-width: 1140px; margin: 0 auto; padding: 0 28px; }

/* ============ Accessibility utilities ============ */
.sr-only {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: absolute;
  top: -100%;
  left: 16px;
  z-index: 100;
  background: var(--gold-grad);
  color: #04121f;
  padding: 12px 20px;
  border-radius: 8px;
  font-weight: 600;
  font-size: 0.9rem;
  text-decoration: none;
  transition: top 0.2s;
}

.skip-link:focus {
  top: 16px;
}

/* visible keyboard focus everywhere; mouse/touch clicks stay clean via :focus-visible */
a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible,
.btn:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 3px;
  border-radius: 4px;
}

/* ============ Equity spine (scroll-drawn narrative curve) ============ */
#equitySpine {
  position: absolute;
  left: 32px;
  top: 0;
  width: 140px;
  pointer-events: none;
  z-index: 5;
}

#equitySpine svg { width: 100%; height: 100%; display: block; overflow: visible; }

#equityPath {
  fill: none;
  stroke: url(#equityGoldGrad);
  stroke-width: 3;
  stroke-linecap: round;
  filter: url(#equityGlow);
}

#equityMarker { fill: #f2efe9; opacity: 0; }

@media (max-width: 1480px) {
  #equitySpine { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  #equitySpine { display: none; }
}

/* ============ Navigation ============ */
.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(12px);
  background: rgba(4, 7, 14, 0.72);
  border-bottom: 1px solid var(--border);
}

/* Anchor targets (e.g. #algo-dev) sit under the sticky 68px nav, so
   jumping straight to them would tuck the section title behind it. */
[id] { scroll-margin-top: 84px; }

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 68px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 11px;
  text-decoration: none;
  color: var(--text);
  font-weight: 700;
  font-size: 1rem;
  letter-spacing: 0.01em;
}

.logo-mark {
  width: 34px;
  height: 34px;
  border-radius: 8px;
  background: var(--panel-2);
  border: 1px solid var(--border-strong);
  display: grid;
  place-items: center;
  font-weight: 800;
  font-size: 0.66rem;
  letter-spacing: 0.04em;
  color: var(--gold);
  font-family: var(--mono);
}

.logo span em { font-style: normal; color: var(--muted); font-weight: 500; }

.nav-links { display: flex; gap: 30px; align-items: center; list-style: none; }

.nav-links a {
  color: var(--muted);
  text-decoration: none;
  font-size: 0.88rem;
  font-weight: 500;
  transition: color 0.2s;
}

.nav-links a:hover, .nav-links a.active { color: var(--text); }

/* nav CTA: keep dark text on gold (must out-rank .nav-links a) */
.nav-links a.btn-primary,
.nav-links a.btn-primary:hover { color: #04121f; }

.btn {
  display: inline-block;
  padding: 12px 26px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 16px;
  text-decoration: none;
  transition: filter 0.2s, border-color 0.2s;
  cursor: pointer;
  border: none;
  font-family: var(--font);
}

.btn-primary {
  background: var(--gold-grad);
  color: #04121f;
}

.btn-primary:hover { filter: brightness(1.08); }

.btn-ghost {
  background: transparent;
  color: var(--text);
  border: 1px solid var(--border-strong);
}

.btn-ghost:hover { border-color: var(--gold); color: var(--gold-2); }

.btn-dark {
  background: #04121f;
  color: var(--gold-2);
}

.nav-toggle { display: none; background: none; border: none; cursor: pointer; padding: 8px; }
.nav-toggle span { display: block; width: 22px; height: 2px; background: var(--text); margin: 5px 0; border-radius: 2px; }

/* ============ Type helpers ============ */
.overline {
  display: block;
  font-family: var(--mono);
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--faint);
  margin-bottom: 18px;
}

/* ============ Hero (split with mockup) ============ */
.hero {
  padding: 84px 0 72px;
  position: relative;
  overflow: hidden;
}

.hero::after {
  content: '';
  position: absolute;
  top: -160px; right: -180px;
  width: 560px; height: 560px;
  background: radial-gradient(circle, rgba(var(--gold-tint), 0.07), transparent 65%);
  pointer-events: none;
}

.hero-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: center;
  position: relative;
  z-index: 1;
}

.hero h1 {
  font-family: var(--font);
  font-size: clamp(2.3rem, 5vw, 3.75rem);
  font-weight: 900;
  line-height: 1.08;
  letter-spacing: -0.035em;
  margin-bottom: 22px;
}

.hero h1 .gold {
  background: var(--grad-text);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  -webkit-text-fill-color: transparent;
}

.hero p.lead {
  color: var(--muted);
  font-size: 1.06rem;
  margin-bottom: 34px;
  max-width: 470px;
}

.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; align-items: center; }

.hero-note { font-size: 0.78rem; color: var(--faint); margin-top: 18px; }

/* hero visual stack */
.hero-visual { position: relative; }

.terminal {
  background: var(--panel);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: 0 30px 60px rgba(0, 0, 0, 0.45);
}

.terminal-head {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 16px;
  background: var(--panel-2);
  border-bottom: 1px solid var(--border);
  font-family: var(--mono);
  font-size: 0.7rem;
  color: var(--faint);
}

.terminal-head .dot { width: 9px; height: 9px; border-radius: 50%; background: var(--border-strong); }
.terminal-head .dot.g { background: var(--gold); opacity: 0.7; }
.terminal-head b { color: var(--muted); font-weight: 500; margin-left: 8px; }

.terminal-body { padding: 6px; }
.terminal-body svg { display: block; width: 100%; height: auto; }

.float-card {
  position: absolute;
  background: var(--panel-2);
  border: 1px solid var(--border-strong);
  border-radius: 12px;
  padding: 14px 18px;
  font-family: var(--mono);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.5);
  z-index: 2;
}

.float-card .fc-label { font-size: 0.62rem; color: var(--faint); letter-spacing: 0.1em; text-transform: uppercase; }
.float-card .fc-value { font-size: 1.05rem; font-weight: 700; color: var(--gold-2); }
.float-card .fc-sub { font-size: 0.66rem; color: var(--muted); }
.float-card.tl { top: -22px; left: -26px; }
.float-card.br { bottom: -24px; right: -18px; }

/* ============ Ticker cards ============ */
.ticker-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 22px;
}

.tick {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 10px 14px;
}

.tick + .tick { border-left: 1px solid var(--border); }

.tick-icon {
  width: 42px; height: 42px;
  border-radius: 50%;
  background: rgba(var(--gold-tint), 0.1);
  border: 1px solid rgba(var(--gold-tint), 0.3);
  display: grid;
  place-items: center;
  font-family: var(--mono);
  font-size: 0.62rem;
  font-weight: 700;
  color: var(--gold-2);
  flex-shrink: 0;
}

.tick-info { flex: 1; min-width: 0; }
.tick-info .t-sym { font-size: 0.72rem; color: var(--faint); font-family: var(--mono); letter-spacing: 0.06em; }
.tick-info .t-val { font-size: 1.05rem; font-weight: 700; font-family: var(--mono); }
.tick-info .t-chg { font-size: 0.7rem; font-family: var(--mono); }
.t-chg.pos { color: var(--success); }
.t-chg.neg { color: var(--danger); }

.tick svg.spark { flex-shrink: 0; }

/* ============ Ticker strip ============ */
.ticker-strip {
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  background: var(--bg-2);
  overflow: hidden;
  padding: 13px 0;
  font-family: var(--mono);
  font-size: 0.78rem;
  white-space: nowrap;
  position: relative;
}

.ticker-track {
  display: inline-block;
  animation: ticker 45s linear infinite;
}

.ticker-strip:hover .ticker-track { animation-play-state: paused; }

.ticker-track span.item { margin: 0 30px; color: var(--muted); }
.ticker-track .sym { color: var(--text); font-weight: 500; }
.ticker-track .up { color: var(--success); }
.ticker-track .down { color: var(--danger); }

.ticker-note {
  position: absolute;
  right: 10px; top: 50%;
  transform: translateY(-50%);
  background: var(--bg-2);
  padding: 2px 10px;
  font-size: 0.6rem;
  color: var(--faint);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  border-left: 1px solid var(--border);
}

@keyframes ticker { from { transform: translateX(0); } to { transform: translateX(-50%); } }

/* ============ Sections ============ */
section { padding: 88px 0; }

.section-head { max-width: 660px; margin-bottom: 52px; }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }

.section-head h2 {
  font-size: clamp(1.7rem, 3.4vw, 2.5rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  margin-bottom: 14px;
}

.section-head p { color: var(--muted); font-size: 1rem; }

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

/* ============ Market table ============ */
.market-panel {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 10px 6px;
  overflow-x: auto;
}

table.data-table { width: 100%; border-collapse: collapse; font-size: 0.88rem; }

table.data-table th {
  text-align: left;
  color: var(--faint);
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 12px 16px;
  border-bottom: 1px solid var(--border-strong);
  font-family: var(--mono);
  font-weight: 500;
}

table.data-table td { padding: 14px 16px; border-bottom: 1px solid var(--border); font-family: var(--font); font-size: 0.9rem; }
table.data-table tr:last-child td { border-bottom: none; }

.pair-cell { display: flex; align-items: center; gap: 10px; font-weight: 600; }

.pair-dot {
  width: 30px; height: 30px;
  border-radius: 50%;
  background: rgba(var(--gold-tint), 0.1);
  border: 1px solid rgba(var(--gold-tint), 0.25);
  display: grid;
  place-items: center;
  font-size: 0.5rem;
  color: var(--gold-2);
  font-weight: 700;
  flex-shrink: 0;
}

/* ============ Capability cards ============ */
.cap-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }

.cap-card {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
  transition: border-color 0.2s ease;
}

.cap-card:hover { border-color: rgba(var(--gold-tint), 0.35); }

.cap-top { display: flex; justify-content: space-between; align-items: flex-start; margin-bottom: 24px; }

.cap-icon {
  width: 46px;
  height: 46px;
  border-radius: 12px;
  background: var(--grad-icon);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.cap-card h3 { font-size: 1.18rem; font-weight: 700; letter-spacing: -0.015em; margin-bottom: 10px; line-height: 1.3; }
.cap-card p { color: var(--muted); font-size: 0.92rem; margin-bottom: 16px; }

/* ============ Capability blocks (services.html) ============ */
.capability {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 40px;
  padding: 44px 0;
  border-top: 1px solid var(--border);
}

.capability:last-of-type { border-bottom: 1px solid var(--border); }

.capability .service-index {
  font-family: var(--mono);
  font-size: 0.78rem;
  color: var(--faint);
  letter-spacing: 0.1em;
}

.capability .service-index b {
  display: block;
  color: var(--text);
  font-size: 1.05rem;
  font-weight: 600;
  font-family: var(--font);
  letter-spacing: -0.01em;
  margin-top: 6px;
}

.capability .cap-body p { color: var(--muted); max-width: 620px; margin-bottom: 12px; font-size: 0.95rem; }
.capability .cap-body p:last-of-type { margin-bottom: 0; }

.capability a.text-link, a.text-link { color: var(--gold); text-decoration: none; font-size: 0.88rem; font-weight: 600; }
.capability a.text-link:hover, a.text-link:hover { color: var(--gold-2); }

/* ============ Cards ============ */
.card {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 30px 28px;
  transition: border-color 0.2s;
}

.card:hover { border-color: rgba(var(--gold-tint), 0.35); }

a.card { text-decoration: none; color: var(--text); display: block; }

.card h3 { font-size: 1.05rem; font-weight: 600; margin-bottom: 10px; letter-spacing: -0.01em; }
.card p { color: var(--muted); font-size: 0.9rem; }

.card .service-index {
  display: block;
  font-family: var(--mono);
  font-size: 0.72rem;
  color: var(--faint);
  letter-spacing: 0.12em;
  margin-bottom: 14px;
}

.card .card-link { display: inline-block; margin-top: 16px; color: var(--gold); font-size: 0.85rem; font-weight: 600; }

/* how-it-works steps */
.steps-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; text-align: center; }

.step-item { padding: 10px 18px; }

.step-badge {
  width: 58px; height: 58px;
  margin: 0 auto 18px;
  border-radius: 50%;
  border: 1px solid rgba(var(--gold-tint), 0.4);
  background: rgba(var(--gold-tint), 0.06);
  display: grid;
  place-items: center;
  font-family: var(--mono);
  font-weight: 700;
  color: var(--gold-2);
}

.step-item h3 { font-size: 1rem; font-weight: 600; margin-bottom: 8px; }
.step-item p { color: var(--muted); font-size: 0.88rem; }

/* ============ Feature band (subtle gold tint) ============ */
.gold-band {
  background: linear-gradient(160deg, rgba(var(--gold-tint), 0.07), rgba(var(--gold-tint), 0.02));
  border: 1px solid rgba(var(--gold-tint), 0.22);
  color: var(--text);
  border-radius: var(--radius);
  padding: 52px 48px;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 32px;
  align-items: center;
}

.gold-band h2 { font-size: clamp(1.6rem, 3.2vw, 2.3rem); font-weight: 800; letter-spacing: -0.03em; margin-bottom: 10px; }
.gold-band p { color: var(--muted); max-width: 560px; font-size: 0.98rem; }

.gold-band .price-tag {
  font-family: var(--mono);
  font-size: 3rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  text-align: center;
  color: var(--gold-2);
}

.gold-band .price-tag small { display: block; font-size: 0.72rem; font-family: var(--font); font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--faint); }

/* stat band (dark text on gold, or bordered dark) */
.stat-band {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--panel);
  overflow: hidden;
}

.stat-band .sb {
  padding: 30px 24px;
  text-align: center;
  border-right: 1px solid var(--border);
}

.stat-band .sb:last-child { border-right: none; }
.stat-band .sb .n { font-family: var(--mono); font-size: 1.7rem; font-weight: 700; color: var(--gold-2); display: block; }
.stat-band .sb .l { font-size: 0.76rem; color: var(--faint); text-transform: uppercase; letter-spacing: 0.08em; }

/* ============ Deliverables ============ */
.deliverables {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--panel);
  overflow: hidden;
}

.deliverable {
  display: grid;
  grid-template-columns: 56px 1fr;
  gap: 18px;
  padding: 22px 26px;
  border-bottom: 1px solid var(--border);
  align-items: baseline;
}

.deliverable:last-child { border-bottom: none; }

.deliverable .d-num { font-family: var(--mono); font-size: 0.75rem; color: var(--faint); }
.deliverable h3 { font-size: 0.97rem; font-weight: 600; margin-bottom: 4px; }
.deliverable p { color: var(--muted); font-size: 0.88rem; }

/* ============ Timeline ============ */
.timeline {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 0;
  border-top: 1px solid var(--border-strong);
}

.timeline-step { padding: 26px 24px 0 0; position: relative; }

.timeline-step::before {
  content: '';
  position: absolute;
  top: -1px; left: 0;
  width: 32px; height: 2px;
  background: var(--gold);
}

.timeline-step .t-num { font-family: var(--mono); font-size: 0.72rem; color: var(--faint); letter-spacing: 0.12em; }
.timeline-step h3 { font-size: 0.98rem; font-weight: 600; margin: 8px 0 6px; }
.timeline-step p { color: var(--muted); font-size: 0.86rem; }

/* ============ Pricing block ============ */
.pricing-block {
  border: 1px solid rgba(var(--gold-tint), 0.3);
  border-radius: var(--radius);
  background: var(--panel);
  display: grid;
  grid-template-columns: 300px 1fr;
  overflow: hidden;
}

.pricing-left {
  padding: 38px 32px;
  border-right: 1px solid var(--border);
  background: linear-gradient(160deg, rgba(var(--gold-tint), 0.08), rgba(var(--gold-tint), 0.02));
}

.pricing-left .price { font-size: 2.6rem; font-weight: 700; letter-spacing: -0.02em; font-family: var(--mono); color: var(--gold-2); }
.pricing-left .price-sub { color: var(--muted); font-size: 0.88rem; margin-top: 6px; }

.pricing-right { padding: 38px 32px; }

.pricing-right ul { list-style: none; }

.pricing-right li {
  padding: 9px 0 9px 24px;
  position: relative;
  color: var(--muted);
  font-size: 0.92rem;
  border-bottom: 1px solid var(--border);
}

.pricing-right li:last-child { border-bottom: none; }

.pricing-right li::before {
  content: '—';
  position: absolute;
  left: 0;
  color: var(--gold);
}

/* ============ Forms ============ */
.field { margin-bottom: 18px; }

.field label {
  display: block;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--muted);
  margin-bottom: 7px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.field input, .field select, .field textarea {
  width: 100%;
  padding: 12px 14px;
  background: var(--bg-2);
  border: 1px solid var(--border);
  border-radius: 10px;
  color: var(--text);
  font-family: var(--mono);
  font-size: 16px; /* >=16px prevents iOS focus zoom */
  transition: border-color 0.2s;
}

.field textarea { font-family: var(--font); resize: vertical; }

.field input:focus, .field select:focus, .field textarea:focus {
  border-color: var(--gold);
}

.field input:focus-visible, .field select:focus-visible, .field textarea:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 2px;
}

/* ============ Tool panels ============ */
.tool-panel {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 34px;
}

.tool-layout { display: grid; grid-template-columns: 320px 1fr; gap: 30px; }

.results-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 12px; margin-top: 18px; }

.result-box {
  background: var(--bg-2);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 14px;
  text-align: center;
}

.result-box .val { font-family: var(--mono); font-size: 1.2rem; font-weight: 700; color: var(--gold-2); display: block; }
.result-box .val.good { color: var(--success); }
.result-box .val.bad { color: var(--danger); }
.result-box .lbl { font-size: 0.68rem; color: var(--faint); text-transform: uppercase; letter-spacing: 0.07em; }

canvas.chart {
  width: 100%;
  background: var(--bg-2);
  border: 1px solid var(--border);
  border-radius: 10px;
}

.risk-meter {
  height: 8px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--success), var(--gold), var(--danger));
  position: relative;
  margin: 22px 0 8px;
  opacity: 0.9;
}

.risk-needle {
  position: absolute;
  top: -5px;
  width: 3px; height: 18px;
  background: var(--text);
  border-radius: 2px;
  transform: translateX(-50%);
  transition: left 0.5s ease;
}

/* ============ Bias tags ============ */
.bias-card { margin-bottom: 24px; }

.bias-tag {
  display: inline-block;
  padding: 3px 12px;
  border-radius: 999px;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-family: var(--mono);
}

.bias-bull { background: rgba(var(--success-tint), 0.1); color: var(--success); border: 1px solid rgba(var(--success-tint), 0.3); }
.bias-bear { background: rgba(var(--danger-tint), 0.1); color: var(--danger); border: 1px solid rgba(var(--danger-tint), 0.3); }
.bias-neutral { background: rgba(var(--muted-tint), 0.08); color: var(--muted); border: 1px solid rgba(var(--muted-tint), 0.25); }

/* ============ Chip row (icon pills) ============ */
.chip-row { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }

.chip {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 5px 16px 5px 5px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--panel);
  font-family: var(--font);
  font-size: 0.86rem;
  font-weight: 600;
  color: var(--muted);
  transition: border-color 0.2s ease, color 0.2s ease, background 0.2s ease;
}

.chip-icon {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.06);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.chip-icon svg { width: 14px; height: 14px; stroke: var(--faint); }

.chip.active {
  border-color: rgba(var(--gold-tint), 0.5);
  color: var(--text);
  background: rgba(var(--gold-tint), 0.07);
  box-shadow: 0 0 0 3px rgba(var(--gold-tint), 0.1);
}

.chip.active .chip-icon { background: var(--grad-icon); }
.chip.active .chip-icon svg { stroke: #04121f; }

/* ============ CTA band (dark) ============ */
.cta-band {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--panel);
  padding: 52px 44px;
}

.cta-band h2 { font-size: 1.75rem; font-weight: 800; letter-spacing: -0.03em; margin-bottom: 10px; }
.cta-band p { color: var(--muted); margin-bottom: 26px; max-width: 560px; }

/* ============ Footer ============ */
footer {
  border-top: 1px solid var(--border);
  background: var(--bg-2);
  padding: 56px 0 30px;
  margin-top: 40px;
}

.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1.4fr; gap: 36px; margin-bottom: 40px; }

.footer-grid h3 {
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--faint);
  margin-bottom: 16px;
  font-family: var(--mono);
  font-weight: 500;
}

.footer-grid ul { list-style: none; }
.footer-grid li { margin-bottom: 10px; }
.footer-grid a { color: var(--muted); text-decoration: none; font-size: 0.87rem; }
.footer-grid a:hover { color: var(--text); }
.footer-grid p { color: var(--muted); font-size: 0.87rem; }

.newsletter { display: flex; gap: 8px; margin-top: 8px; }

.newsletter input {
  flex: 1;
  padding: 11px 14px;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 999px;
  color: var(--text);
  font-size: 16px;
  font-family: var(--font);
  min-width: 0;
}

.newsletter input:focus { outline: none; border-color: var(--gold); }

.newsletter button {
  padding: 11px 20px;
  border-radius: 999px;
  border: none;
  background: var(--gold-grad);
  color: #04121f;
  font-weight: 600;
  font-size: 16px;
  cursor: pointer;
  font-family: var(--font);
  touch-action: manipulation;
}

.disclaimer {
  border-top: 1px solid var(--border);
  padding-top: 24px;
  color: var(--faint);
  font-size: 0.74rem;
  line-height: 1.75;
}

.disclaimer strong { color: var(--muted); }

/* page hero (subpages) */
.page-hero { padding: 72px 0 36px; border-bottom: 1px solid var(--border); }
.page-hero h1 { font-size: clamp(1.9rem, 4vw, 2.9rem); font-weight: 800; letter-spacing: -0.03em; margin-bottom: 12px; }
.page-hero p { color: var(--muted); max-width: 620px; font-size: 1rem; }

/* ============ Algo detail page ============ */
.algo-head { margin-bottom: 14px; }
.algo-head h1 { font-size: clamp(1.9rem, 3.8vw, 2.8rem); font-weight: 800; letter-spacing: -0.03em; margin-bottom: 12px; }
.algo-tags { display: flex; gap: 8px; flex-wrap: wrap; }

.algo-layout { display: grid; grid-template-columns: 1fr 320px; gap: 44px; align-items: start; }
.algo-main > * + * { margin-top: 48px; }
.algo-sidebar { position: sticky; top: 92px; }

.stat-groups { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }

.stat-group { background: var(--panel); border: 1px solid var(--border); border-radius: var(--radius); padding: 22px; }

.stat-group .sg-title {
  display: block;
  font-family: var(--mono);
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gold-2);
  margin-bottom: 16px;
}

.stat-group .results-grid { grid-template-columns: repeat(2, 1fr); margin-top: 0; }

/* monthly performance tape */
.month-tape { display: flex; gap: 8px; flex-wrap: wrap; }

.month-tile {
  flex: 1 1 76px;
  min-width: 76px;
  background: var(--bg-2);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 12px 10px;
  text-align: center;
}

.month-tile .m-label { display: block; font-family: var(--mono); font-size: 0.64rem; color: var(--faint); text-transform: uppercase; letter-spacing: 0.05em; margin-bottom: 8px; }
.month-tile .m-val { font-family: var(--mono); font-weight: 700; font-size: 0.92rem; color: var(--muted); }
.month-tile.pos { border-color: rgba(var(--success-tint), 0.3); background: rgba(var(--success-tint), 0.06); }
.month-tile.pos .m-val { color: var(--success); }
.month-tile.neg { border-color: rgba(var(--danger-tint), 0.3); background: rgba(var(--danger-tint), 0.06); }
.month-tile.neg .m-val { color: var(--danger); }

/* execution spec list */
.spec-list { background: var(--panel); border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; }

.spec-row { display: flex; justify-content: space-between; gap: 16px; padding: 14px 22px; border-bottom: 1px solid var(--border); font-size: 0.9rem; }
.spec-row:last-child { border-bottom: none; }
.spec-row .sr-k { color: var(--muted); }
.spec-row .sr-v { font-family: var(--mono); font-weight: 600; text-align: right; }

/* sticky buy box */
.buybox { background: var(--panel); border: 1px solid rgba(var(--gold-tint), 0.3); border-radius: var(--radius); padding: 26px; }
.buybox + .buybox { margin-top: 16px; }
.buybox .bb-price { font-family: var(--mono); font-size: 1.8rem; font-weight: 700; color: var(--gold-2); }
.buybox .bb-price small { font-size: 0.74rem; color: var(--faint); font-weight: 400; }
.buybox p { color: var(--muted); font-size: 0.85rem; margin: 10px 0 18px; }

/* ============ Responsive ============ */
@media (max-width: 900px) {
  .grid-3, .footer-grid, .steps-row, .stat-groups, .cap-grid { grid-template-columns: repeat(2, 1fr); }
  .tool-layout, .hero-split, .pricing-block, .algo-layout { grid-template-columns: 1fr; }
  .algo-sidebar { position: static; }
  .pricing-left { border-right: none; border-bottom: 1px solid var(--border); }
  .timeline { grid-template-columns: repeat(2, 1fr); row-gap: 34px; }
  .capability { grid-template-columns: 1fr; gap: 16px; }
  .ticker-cards { grid-template-columns: 1fr; }
  .tick + .tick { border-left: none; border-top: 1px solid var(--border); }
  .gold-band { grid-template-columns: 1fr; text-align: left; }
  .float-card.tl { top: -14px; left: 0; }
  .float-card.br { bottom: -14px; right: 0; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .ticker-track { animation: none; }
  .risk-needle { transition: none; }
  * { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; }
}

@media (max-width: 640px) {
  .grid-2, .grid-3, .timeline, .steps-row, .stat-band, .stat-groups, .cap-grid { grid-template-columns: 1fr; }
  .stat-group .results-grid { grid-template-columns: repeat(2, 1fr); }
  .spec-row { flex-direction: column; gap: 4px; }
  .spec-row .sr-v { text-align: left; }
  .stat-band .sb { border-right: none; border-bottom: 1px solid var(--border); }
  .stat-band .sb:last-child { border-bottom: none; }
  .nav-links {
    display: none;
    position: fixed;
    top: 68px; left: 0; right: 0;
    z-index: 50;
    flex-direction: column;
    background: rgba(12, 12, 14, 0.98);
    border-bottom: 1px solid var(--border);
    padding: 18px 28px;
    gap: 16px;
  }
  .nav-links.open { display: flex; }
  .nav-toggle { display: block; }
  .footer-grid { grid-template-columns: 1fr; }
  section { padding: 60px 0; }
  .hero { padding: 56px 0 48px; }
}

/* ============ V2 shell: grid-dots background + ring cursor ============ */
#gridDotsCanvas {
  position: fixed;
  inset: 0;
  z-index: 0;
  display: block;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

main, footer, header { position: relative; z-index: 1; }

@media (pointer: fine) {
  *, *::before, *::after { cursor: none !important; }

  #cursorRing {
    position: fixed;
    top: 0; left: 0;
    width: 44px; height: 44px;
    margin: -22px 0 0 -22px;
    border: 1px solid rgba(140, 200, 255, 0.6);
    border-radius: 50%;
    box-shadow: 0 0 12px rgba(90, 180, 255, 0.25), inset 0 0 8px rgba(90, 180, 255, 0.15);
    pointer-events: none;
    z-index: 99999;
    opacity: 0;
    transition: opacity 0.25s ease, width 0.2s ease, height 0.2s ease, margin 0.2s ease, border-color 0.2s ease;
    will-change: transform;
  }

  #cursorRing::before,
  #cursorRing::after {
    content: '';
    position: absolute;
    top: 50%;
    width: 3px; height: 3px;
    border-radius: 50%;
    background: rgba(200, 230, 255, 0.95);
    transform: translateY(-50%);
  }

  #cursorRing::before { left: 32%; }
  #cursorRing::after { right: 32%; }

  #cursorRing.grow {
    width: 64px; height: 64px;
    margin: -32px 0 0 -32px;
    border-color: rgba(170, 220, 255, 0.9);
  }

  #cursorHand {
    position: fixed;
    top: 0; left: 0;
    width: 15px; height: 17px;
    margin: -1px 0 0 -5px;
    background-image: url("data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 448 512'><path fill='%23070a10' stroke='%23ffffff' stroke-width='14' d='M448 240v96c0 3.084-.356 6.159-1.063 9.162l-32 136C410.686 499.23 394.562 512 376 512H168a40.004 40.004 0 0 1-32.35-16.473l-127.997-176c-12.993-17.866-9.043-42.883 8.822-55.876 17.867-12.994 42.884-9.043 55.877 8.823L104 315.992V40c0-22.091 17.909-40 40-40s40 17.909 40 40v200h8v-40c0-22.091 17.909-40 40-40s40 17.909 40 40v40h8v-24c0-22.091 17.909-40 40-40s40 17.909 40 40v24h8c0-22.091 17.909-40 40-40s40 17.909 40 40z'/></svg>");
    background-size: contain;
    background-repeat: no-repeat;
    pointer-events: none;
    z-index: 100000;
    opacity: 0;
    transition: opacity 0.25s ease;
    will-change: transform;
  }
}

@media (pointer: coarse) {
  #cursorRing, #cursorHand { display: none; }
}
