/* SignalForge -- design system */
:root {
  --bg: #08090a;
  --bg-elev: #0d0e10;
  --bg-card: #111316;
  --bg-card-hi: #16181c;
  --line: #1b1d21;
  --line-2: #25282d;
  --line-hi: #3a3e44;
  --ink: #f1efea;
  --ink-2: #adb0b4;
  --ink-3: #6c7077;
  --ink-4: #3f4248;
  --lime: #c4ff34;
  --lime-2: #d8ff5e;
  --lime-soft: rgba(196, 255, 52, 0.10);
  --lime-glow: rgba(196, 255, 52, 0.45);
  --plum: #b78cff;
  --plum-soft: rgba(183, 140, 255, 0.10);
  --cyan: #6bf0d4;
  --rose: #ff6a7e;
  --amber: #ffb84a;
  --display: 'Bricolage Grotesque', system-ui, sans-serif;
  --serif: 'Instrument Serif', serif;
  --mono: 'Geist Mono', ui-monospace, monospace;
  --body: 'Geist', system-ui, sans-serif;
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  background: var(--bg); color: var(--ink); font-family: var(--body);
  -webkit-font-smoothing: antialiased; overflow-x: hidden;
  letter-spacing: -0.005em;
}
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; border: none; background: none; color: inherit; }

.wrap { max-width: 1280px; margin: 0 auto; padding: 0 28px; }

/* GLOBAL GRAIN */
body::before {
  content: ''; position: fixed; inset: 0; z-index: 1; pointer-events: none;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='160' height='160'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 1  0 0 0 0 1  0 0 0 0 1  0 0 0 0.05 0'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
  opacity: 0.4; mix-blend-mode: overlay;
}

/* ============ NAV ============ */
nav.top {
  position: sticky; top: 0; z-index: 50;
  background: rgba(8, 9, 10, 0.6);
  backdrop-filter: blur(20px) saturate(160%);
  -webkit-backdrop-filter: blur(20px) saturate(160%);
  border-bottom: 1px solid rgba(255,255,255,0.06);
}
.nav-inner { display: flex; align-items: center; justify-content: space-between; height: 64px; gap: 20px; }
.brand {
  display: flex; align-items: center; gap: 10px;
  font-family: var(--display); font-weight: 600;
  font-size: 17px; letter-spacing: -0.02em;
}
.brand-mark {
  width: 28px; height: 28px; border-radius: 8px;
  background: linear-gradient(135deg, var(--lime), var(--lime-2));
  display: grid; place-items: center;
  box-shadow: 0 0 0 1px rgba(255,255,255,0.08), 0 4px 12px rgba(196, 255, 52, 0.3);
}
.brand-mark svg { width: 16px; height: 16px; color: #0a0b0c; }
.nav-links {
  display: flex; gap: 4px; font-size: 13px;
  background: rgba(255,255,255,0.025);
  border: 1px solid rgba(255,255,255,0.04);
  padding: 4px; border-radius: 999px;
}
.nav-links a {
  color: var(--ink-2); padding: 8px 14px;
  border-radius: 999px; transition: all .2s ease;
}
.nav-links a:hover { color: var(--ink); background: rgba(255,255,255,0.04); }
.nav-cta { display: flex; gap: 10px; align-items: center; }
.lang-toggle {
  display: flex; gap: 2px;
  font-family: var(--mono); font-size: 11px;
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 6px; padding: 3px;
}
.lang-toggle a {
  padding: 4px 8px; color: var(--ink-3); border-radius: 4px;
  transition: all .15s;
}
.lang-toggle a.active { color: var(--ink); background: rgba(255,255,255,0.06); }

.pill {
  display: inline-flex; align-items: center; gap: 8px;
  height: 36px; padding: 0 18px;
  border-radius: 999px;
  font-family: var(--body); font-weight: 500; font-size: 13px;
  border: 1px solid rgba(255,255,255,0.1); color: var(--ink);
  transition: all .2s cubic-bezier(.2,.7,.2,1); white-space: nowrap;
  background: rgba(255,255,255,0.02);
}
.pill:hover {
  background: rgba(255,255,255,0.05); border-color: rgba(255,255,255,0.15);
  transform: translateY(-1px);
}
.pill.primary {
  background: var(--lime); color: #08090a; border-color: var(--lime);
  font-weight: 600;
  box-shadow: 0 0 0 1px var(--lime), 0 4px 24px rgba(196, 255, 52, 0.22);
}
.pill.primary:hover {
  background: var(--lime-2); box-shadow: 0 0 0 1px var(--lime-2), 0 6px 32px rgba(196, 255, 52, 0.35);
}
.pill.lg { height: 48px; padding: 0 24px; font-size: 14px; }

/* ============ HERO ============ */
.hero {
  position: relative;
  padding: 96px 0 120px;
  overflow: hidden;
  border-bottom: 1px solid var(--line);
}
.hero-bg { position: absolute; inset: 0; pointer-events: none; z-index: 0; overflow: hidden; }
.hero-grid {
  position: absolute; inset: 0;
  background-image:
    linear-gradient(to right, rgba(255,255,255,0.04) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255,255,255,0.04) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: radial-gradient(ellipse 70% 60% at 50% 30%, #000 0%, transparent 80%);
  -webkit-mask-image: radial-gradient(ellipse 70% 60% at 50% 30%, #000 0%, transparent 80%);
}
.aurora { position: absolute; inset: 0; overflow: hidden; }
.aurora::before, .aurora::after {
  content: ''; position: absolute; border-radius: 50%; filter: blur(80px);
}
.aurora::before {
  width: 620px; height: 620px;
  background: radial-gradient(circle, var(--lime-soft) 0%, transparent 70%);
  top: -200px; left: 18%;
  animation: drift1 22s ease-in-out infinite;
}
.aurora::after {
  width: 520px; height: 520px;
  background: radial-gradient(circle, var(--plum-soft) 0%, transparent 70%);
  top: -120px; right: 8%;
  animation: drift2 26s ease-in-out infinite;
}
@keyframes drift1 {
  0%, 100% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(80px, 100px) scale(1.2); }
}
@keyframes drift2 {
  0%, 100% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(-100px, 80px) scale(0.9); }
}

.hero-inner {
  position: relative; z-index: 2;
  display: flex; flex-direction: column; align-items: center; text-align: center;
}
.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 6px 14px 6px 8px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,0.08);
  background: rgba(255,255,255,0.03);
  font-family: var(--mono); font-size: 11px;
  color: var(--ink-2); margin-bottom: 32px;
}
.eyebrow .badge {
  background: var(--lime); color: #08090a;
  padding: 2px 8px; border-radius: 999px;
  font-weight: 600; font-size: 10px; letter-spacing: 0.04em;
}
.eyebrow .arrow { color: var(--ink-3); }
.eyebrow a { color: var(--ink); transition: color .15s; }
.eyebrow a:hover { color: var(--lime); }

h1.display {
  font-family: var(--display); font-weight: 600;
  font-size: clamp(54px, 8vw, 124px);
  line-height: 1.25; letter-spacing: -0.045em;
  max-width: 20ch; margin-bottom: 64px;
  font-optical-sizing: auto;
}
h1.display .serif, .section-title .serif, .cta-band h2 .serif, .founder-quote .serif {
  font-family: var(--serif); font-style: italic;
  font-weight: 400; letter-spacing: -0.015em;
  background: linear-gradient(180deg, var(--lime-2) 0%, var(--lime) 100%);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent;
  padding-right: 0.08em;
  padding-bottom: 0.1em;
  display: inline-block;
}
h1.display .arrow-glyph {
  display: inline-block; font-weight: 400;
  color: var(--ink-3); margin: 0 0.05em; transform: translateY(-0.05em);
}
.sub {
  font-family: var(--display); font-size: clamp(17px, 1.8vw, 22px);
  color: var(--ink-2); font-weight: 400;
  max-width: 56ch; line-height: 1.45; margin-bottom: 40px;
}
.sub strong { color: var(--ink); font-weight: 500; }
.hero-ctas { display: flex; gap: 12px; flex-wrap: wrap; justify-content: center; margin-bottom: 12px; }
.hero-meta {
  display: flex; gap: 24px; flex-wrap: wrap; justify-content: center;
  font-family: var(--mono); font-size: 11px;
  color: var(--ink-3); margin-top: 18px;
}
.hero-meta span { display: inline-flex; align-items: center; gap: 6px; }
.hero-meta span::before { content: ''; width: 4px; height: 4px; background: var(--lime); border-radius: 50%; }

/* HERO PRODUCT TILE */
.hero-product { margin-top: 80px; position: relative; z-index: 2; }
.product-frame {
  background: linear-gradient(180deg, var(--bg-card) 0%, var(--bg-elev) 100%);
  border: 1px solid var(--line-2); border-radius: 16px; padding: 28px;
  box-shadow:
    0 1px 0 rgba(255,255,255,0.04) inset,
    0 24px 80px -20px rgba(0,0,0,0.7),
    0 0 0 1px rgba(196, 255, 52, 0.04),
    0 0 60px -20px var(--lime-glow);
  position: relative; overflow: hidden;
}
.product-frame::before {
  content: ''; position: absolute; inset: 0;
  background: radial-gradient(circle 400px at var(--mx, 50%) var(--my, 50%), rgba(196,255,52,0.06), transparent 60%);
  pointer-events: none; opacity: 0; transition: opacity .3s ease;
}
.product-frame:hover::before { opacity: 1; }
.product-grid { display: grid; grid-template-columns: 1.4fr 1fr; gap: 16px; }

.log-card {
  background: var(--bg); border: 1px solid var(--line);
  border-radius: 10px; overflow: hidden;
  font-family: var(--mono); font-size: 11.5px;
  position: relative;
}
.log-head {
  display: flex; justify-content: space-between; align-items: center;
  padding: 10px 14px; border-bottom: 1px solid var(--line);
  background: rgba(255,255,255,0.02);
}
.log-head .filename { display: flex; align-items: center; gap: 10px; font-size: 11px; color: var(--ink); }
.log-head .dot-r {
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--cyan); box-shadow: 0 0 8px var(--cyan);
}
.log-card.rejected .dot-r { background: var(--rose); box-shadow: 0 0 8px var(--rose); }
.log-head .ts { font-size: 10px; color: var(--ink-3); font-variant-numeric: tabular-nums; }
.log-body { padding: 12px 0; min-height: 230px; line-height: 1.8; color: var(--ink-2); }
.log-line {
  padding: 0 14px; display: grid; grid-template-columns: 26px 1fr;
  opacity: 0; transform: translateY(2px);
  transition: opacity .2s ease, transform .2s ease;
}
.log-line.show { opacity: 1; transform: translateY(0); }
.log-line .ln { color: var(--ink-4); font-size: 10px; text-align: right; padding-right: 10px; user-select: none; }
.log-line.comment { color: var(--ink-3); }
.log-line .k { color: #ffb86c; }
.log-line .s { color: #87b8ff; }
.log-line .n { color: var(--lime-2); }
.log-line .ok { color: var(--cyan); }
.log-line .x { color: var(--rose); }
.log-line.verdict { padding-top: 6px; }
.verdict .v-approved {
  font-weight: 600;
  background: linear-gradient(90deg, var(--cyan), var(--lime-2));
  -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
}
.verdict .v-rejected { color: var(--rose); font-weight: 600; }
.cursor {
  display: inline-block; width: 6px; height: 11px;
  background: var(--lime); margin-left: 2px; vertical-align: -1px;
  animation: blink 1s steps(2, end) infinite;
}
.log-card.rejected .cursor { background: var(--rose); }
@keyframes blink { 0%, 50% { opacity: 1; } 51%, 100% { opacity: 0; } }

.product-side { display: grid; grid-template-rows: auto 1fr auto; gap: 16px; }
.stat-card { background: var(--bg); border: 1px solid var(--line); border-radius: 10px; padding: 18px 20px; }
.stat-card-label {
  font-family: var(--mono); font-size: 10px; color: var(--ink-3);
  letter-spacing: 0.05em; text-transform: uppercase;
  margin-bottom: 14px; display: flex; align-items: center; gap: 8px;
}
.stat-card-label .ind {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--lime); box-shadow: 0 0 8px var(--lime);
  animation: pulse 2s ease-in-out infinite;
}
@keyframes pulse { 0%, 100% { opacity: 1; } 50% { opacity: 0.3; } }
.stat-card-big {
  font-family: var(--display); font-size: 42px; font-weight: 600;
  letter-spacing: -0.03em; line-height: 1;
  font-variant-numeric: tabular-nums; margin-bottom: 6px;
}
.stat-card-big .unit { font-size: 18px; color: var(--ink-2); margin-left: 4px; font-weight: 400; }
.stat-card-sub {
  font-family: var(--mono); font-size: 10px; color: var(--ink-3);
  display: flex; justify-content: space-between;
}
.stat-card-sub .delta { color: var(--cyan); }
.spark { display: flex; align-items: flex-end; gap: 3px; height: 56px; margin-top: 12px; }
.spark-bar {
  flex: 1; background: var(--lime); opacity: 0.35;
  border-radius: 2px 2px 0 0; min-height: 3px;
  transition: height .5s cubic-bezier(.2,.7,.2,1), opacity .3s ease;
}
.spark-bar.live { opacity: 1; box-shadow: 0 0 10px var(--lime); }

/* ============ MARQUEE ============ */
.marquee-section { padding: 32px 0; border-bottom: 1px solid var(--line); position: relative; }
.marquee-head {
  text-align: center; font-family: var(--mono); font-size: 11px;
  color: var(--ink-3); margin-bottom: 24px; letter-spacing: 0.05em;
}
.marquee {
  overflow: hidden;
  mask-image: linear-gradient(to right, transparent 0, #000 8%, #000 92%, transparent 100%);
  -webkit-mask-image: linear-gradient(to right, transparent 0, #000 8%, #000 92%, transparent 100%);
}
.marquee-track {
  display: flex; gap: 56px; animation: scroll 45s linear infinite;
  width: max-content;
}
.marquee-track > span {
  font-family: var(--display); font-weight: 500; font-size: 22px;
  color: var(--ink-2); letter-spacing: -0.015em;
  white-space: nowrap; opacity: 0.6; transition: opacity .2s;
}
.marquee-track > span:hover { opacity: 1; }
.marquee-track > span.prop { color: var(--lime); opacity: 0.85; }
@keyframes scroll {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

/* ============ SECTIONS ============ */
section.section { padding: 140px 0; border-bottom: 1px solid var(--line); position: relative; }
.section-head {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 80px; margin-bottom: 80px; align-items: end;
}
.section-tag {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--mono); font-size: 11px;
  color: var(--lime); background: var(--lime-soft);
  border: 1px solid rgba(196,255,52,0.2);
  padding: 4px 10px; border-radius: 999px;
  margin-bottom: 24px; letter-spacing: 0.04em;
}
.section-tag.plum { color: var(--plum); background: var(--plum-soft); border-color: rgba(183,140,255,0.2); }
.section-title {
  font-family: var(--display); font-weight: 600;
  font-size: clamp(40px, 5vw, 68px);
  letter-spacing: -0.04em; line-height: 1.25;
  max-width: 18ch;
}
.section-kicker { font-size: 16px; color: var(--ink-2); line-height: 1.6; max-width: 38ch; }

/* ============ SETUP ============ */
.setup-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.step-card {
  background: var(--bg-card); border: 1px solid var(--line);
  border-radius: 14px; padding: 36px 32px;
  position: relative; overflow: hidden;
  transition: border-color .2s ease, transform .2s ease, background .2s ease;
}
.step-card::after {
  content: ''; position: absolute; inset: 0;
  background: radial-gradient(circle 260px at var(--mx, 50%) var(--my, 50%), rgba(196,255,52,0.07), transparent 60%);
  opacity: 0; transition: opacity .3s ease; pointer-events: none;
}
.step-card:hover {
  border-color: var(--line-hi); background: var(--bg-card-hi);
  transform: translateY(-2px);
}
.step-card:hover::after { opacity: 1; }
.step-num {
  font-family: var(--display); font-size: 56px;
  font-weight: 600; letter-spacing: -0.04em; line-height: 1;
  background: linear-gradient(180deg, var(--lime-2), var(--lime));
  -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
  margin-bottom: 18px;
}
.step-card h3 {
  font-family: var(--display); font-size: 22px; font-weight: 600;
  letter-spacing: -0.02em; line-height: 1.15; margin-bottom: 10px;
}
.step-card p { font-size: 14px; color: var(--ink-2); line-height: 1.55; margin-bottom: 24px; }
.step-time {
  display: inline-flex; align-items: center; gap: 6px;
  font-family: var(--mono); font-size: 11px; color: var(--ink-3);
  padding: 5px 10px; border-radius: 999px;
  border: 1px solid var(--line-2);
}

/* ============ BENTO ============ */
.bento {
  display: grid; grid-template-columns: repeat(12, 1fr);
  grid-auto-rows: 200px; gap: 14px;
}
.tile {
  background: var(--bg-card); border: 1px solid var(--line);
  border-radius: 14px; padding: 28px;
  position: relative; overflow: hidden;
  display: flex; flex-direction: column;
  transition: border-color .2s ease, transform .2s ease, background .2s ease;
}
.tile:hover {
  border-color: var(--line-hi); background: var(--bg-card-hi);
  transform: translateY(-2px);
}
.tile::after {
  content: ''; position: absolute; inset: 0;
  background: radial-gradient(circle 260px at var(--mx, 50%) var(--my, 50%), rgba(196,255,52,0.07), transparent 60%);
  opacity: 0; transition: opacity .3s ease; pointer-events: none;
}
.tile:hover::after { opacity: 1; }

.tile.t-shield { grid-column: span 5; grid-row: span 2; }
.tile.t-latency { grid-column: span 4; grid-row: span 1; }
.tile.t-news { grid-column: span 3; grid-row: span 1; }
.tile.t-brokers { grid-column: span 4; grid-row: span 1; }
.tile.t-ai { grid-column: span 3; grid-row: span 2; }
.tile.t-trailing { grid-column: span 4; grid-row: span 2; }
.tile.t-firms { grid-column: span 5; grid-row: span 1; }

.tile.featured {
  background: radial-gradient(ellipse at top right, rgba(196,255,52,0.10), transparent 60%), var(--bg-card);
  border-color: rgba(196,255,52,0.25);
}
.tile-eyebrow {
  font-family: var(--mono); font-size: 10px; color: var(--ink-3);
  letter-spacing: 0.08em; text-transform: uppercase; margin-bottom: 16px;
  display: flex; justify-content: space-between; align-items: center;
}
.tile-eyebrow .ico {
  width: 32px; height: 32px; border-radius: 8px;
  background: rgba(255,255,255,0.04); border: 1px solid var(--line-2);
  display: grid; place-items: center;
}
.tile-eyebrow .ico svg { width: 16px; height: 16px; stroke: var(--lime); fill: none; stroke-width: 1.6; }
.tile-eyebrow .tag {
  color: var(--lime); background: var(--lime-soft);
  border: 1px solid rgba(196,255,52,0.2);
  padding: 3px 8px; border-radius: 999px; font-size: 9px;
}
.tile-eyebrow .tag.soon { color: var(--plum); background: var(--plum-soft); border-color: rgba(183,140,255,0.2); }
.tile h3 {
  font-family: var(--display); font-size: 24px; font-weight: 600;
  letter-spacing: -0.02em; line-height: 1.1; margin-bottom: 10px;
}
.tile.t-shield h3 { font-size: 36px; max-width: 12ch; }
.tile p { color: var(--ink-2); font-size: 14px; line-height: 1.55; max-width: 40ch; }
.tile h3 .serif-mini { font-family: var(--serif); font-style: italic; font-weight: 400; color: var(--lime-2); }

.shield-graphic { margin-top: auto; padding-top: 24px; display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.gauge { background: var(--bg); border: 1px solid var(--line); border-radius: 10px; padding: 14px; }
.gauge-label { font-family: var(--mono); font-size: 10px; color: var(--ink-3); margin-bottom: 8px; letter-spacing: 0.06em; }
.gauge-bar { height: 6px; border-radius: 3px; background: var(--line); overflow: hidden; position: relative; }
.gauge-fill { height: 100%; border-radius: 3px; background: linear-gradient(90deg, var(--cyan), var(--lime)); }
.gauge-fill.warn { background: linear-gradient(90deg, var(--lime), var(--amber)); }
.gauge-val { margin-top: 8px; font-family: var(--mono); font-size: 11px; color: var(--ink); display: flex; justify-content: space-between; }
.gauge-val b { color: var(--lime); font-weight: 600; }

.tile.t-latency h3 {
  font-family: var(--display); font-size: 64px; font-weight: 600;
  letter-spacing: -0.04em; line-height: 1; margin-bottom: 8px;
  font-variant-numeric: tabular-nums;
}
.tile.t-latency .unit { font-size: 22px; color: var(--ink-2); font-weight: 400; margin-left: 4px; }
.latency-bar { margin-top: auto; padding-top: 16px; display: flex; gap: 4px; align-items: end; height: 28px; }
.latency-bar > div { flex: 1; background: var(--lime); opacity: 0.4; border-radius: 2px 2px 0 0; }

.tile.t-ai { background: linear-gradient(180deg, var(--bg-card-hi) 0%, var(--bg-card) 100%); }
.ai-presets { margin-top: auto; display: flex; flex-direction: column; gap: 8px; }
.ai-preset {
  display: flex; align-items: center; gap: 10px;
  padding: 8px 10px; border: 1px solid var(--line-2);
  border-radius: 8px; font-family: var(--mono); font-size: 11px;
  color: var(--ink-2);
}
.ai-preset .sig { width: 8px; height: 8px; border-radius: 50%; }
.ai-preset.consv .sig { background: var(--cyan); }
.ai-preset.bal .sig { background: var(--lime); }
.ai-preset.aggr .sig { background: var(--rose); }
.ai-preset .rate { margin-left: auto; color: var(--ink-3); }

.news-events { margin-top: auto; display: flex; flex-direction: column; gap: 6px; }
.news-event {
  display: grid; grid-template-columns: auto 1fr auto;
  gap: 10px; font-family: var(--mono); font-size: 11px; align-items: center;
}
.news-event .time { color: var(--ink-3); }
.news-event .name { color: var(--ink); }
.news-event .imp { width: 8px; height: 8px; border-radius: 50%; background: var(--rose); }
.news-event.med .imp { background: var(--amber); }
.news-event.low .imp { background: var(--ink-4); }

.trail-chart { margin-top: auto; height: 120px; position: relative; }
.trail-chart svg { width: 100%; height: 100%; overflow: visible; }

.brokers-grid { margin-top: auto; display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.broker-cell {
  background: var(--bg); border: 1px solid var(--line);
  border-radius: 6px; padding: 8px;
  font-family: var(--mono); font-size: 10px;
  color: var(--ink-2); text-align: center;
}
.firms-row { margin-top: auto; display: flex; gap: 10px; flex-wrap: wrap; }
.firms-row > span {
  font-family: var(--mono); font-size: 11px;
  padding: 6px 12px; border-radius: 999px;
  border: 1px solid var(--line-2); color: var(--ink-2);
}
.firms-row > span.hi { color: var(--lime); border-color: rgba(196,255,52,0.3); }

/* ============ COMPARISON LEDGER ============ */
.cmp-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.cmp-col {
  background: var(--bg-card); border: 1px solid var(--line);
  border-radius: 14px; padding: 36px 32px;
}
.cmp-col.good {
  background: radial-gradient(ellipse at top, rgba(196,255,52,0.06), transparent 60%), var(--bg-card);
  border-color: rgba(196,255,52,0.25);
}
.cmp-col h3 {
  font-family: var(--display); font-size: 26px; font-weight: 600;
  letter-spacing: -0.02em; margin-bottom: 8px; line-height: 1.15;
}
.cmp-col .cmp-tag {
  font-family: var(--mono); font-size: 11px; letter-spacing: 0.08em;
  margin-bottom: 24px; text-transform: uppercase;
}
.cmp-col.bad .cmp-tag { color: var(--rose); }
.cmp-col.good .cmp-tag { color: var(--lime); }
.cmp-list { list-style: none; display: flex; flex-direction: column; gap: 16px; margin-top: 24px; }
.cmp-list li {
  display: flex; gap: 14px; align-items: start;
  padding: 16px; border: 1px solid var(--line);
  border-radius: 10px; background: var(--bg);
}
.cmp-list li .icn {
  flex-shrink: 0; width: 24px; height: 24px;
  border-radius: 6px; display: grid; place-items: center;
  font-family: var(--mono); font-size: 14px; font-weight: 600;
}
.cmp-col.bad .icn { background: rgba(255,106,126,0.1); color: var(--rose); }
.cmp-col.good .icn { background: rgba(196,255,52,0.1); color: var(--lime); }
.cmp-list b { display: block; font-size: 14px; font-weight: 600; color: var(--ink); margin-bottom: 4px; line-height: 1.4; }
.cmp-list .cmp-sub { font-size: 13px; color: var(--ink-3); line-height: 1.5; }

/* ============ AI MODES ============ */
.ai-modes { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.ai-mode {
  background: var(--bg-card); border: 1px solid var(--line);
  border-radius: 14px; padding: 32px 28px;
  position: relative; transition: border-color .2s ease, transform .2s ease;
}
.ai-mode:hover { border-color: var(--line-hi); transform: translateY(-2px); }
.ai-mode.hl {
  background: radial-gradient(ellipse at top, rgba(255,184,74,0.08), transparent 60%), var(--bg-card);
  border-color: rgba(255,184,74,0.25);
}
.ai-mode-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 18px; }
.ai-mode-name { display: flex; align-items: center; gap: 12px; font-family: var(--display); font-size: 22px; font-weight: 600; letter-spacing: -0.015em; }
.ai-mode-name .sig { width: 12px; height: 12px; border-radius: 50%; }
.ai-mode.consv .sig { background: var(--cyan); box-shadow: 0 0 10px var(--cyan); }
.ai-mode.bal .sig { background: var(--amber); box-shadow: 0 0 10px var(--amber); }
.ai-mode.aggr .sig { background: var(--rose); box-shadow: 0 0 10px var(--rose); }
.ai-mode-rate {
  font-family: var(--mono); font-size: 10px;
  padding: 4px 8px; border-radius: 999px;
  letter-spacing: 0.04em;
}
.ai-mode.consv .ai-mode-rate { color: var(--cyan); background: rgba(107,240,212,0.1); }
.ai-mode.bal .ai-mode-rate { color: var(--amber); background: rgba(255,184,74,0.1); }
.ai-mode.aggr .ai-mode-rate { color: var(--rose); background: rgba(255,106,126,0.1); }
.ai-mode-motto {
  font-family: var(--serif); font-style: italic; font-size: 17px;
  color: var(--ink); line-height: 1.45;
  padding: 14px 0; margin-bottom: 18px;
  border-top: 1px dashed var(--line); border-bottom: 1px dashed var(--line);
}
.ai-mode-rules { list-style: none; display: flex; flex-direction: column; gap: 10px; }
.ai-mode-rules li { font-size: 13px; color: var(--ink-2); padding-left: 18px; position: relative; line-height: 1.5; }
.ai-mode-rules li::before {
  content: ''; position: absolute; left: 0; top: 8px;
  width: 8px; height: 1px; background: currentColor; opacity: 0.5;
}
.ai-mode-rules li code {
  font-family: var(--mono); font-size: 11px; color: var(--lime);
  background: var(--bg); padding: 1px 5px; border-radius: 3px;
}
.ai-mode-fit {
  margin-top: 18px; padding-top: 18px;
  border-top: 1px solid var(--line);
  font-family: var(--mono); font-size: 11px;
  color: var(--ink-3);
}
.ai-mode-fit b { color: var(--ink); }

/* ============ PRICING ============ */
.pricing-head { text-align: center; max-width: 720px; margin: 0 auto 64px; }
.pricing-head .section-tag { margin: 0 auto 24px; }
.pricing-head .section-title { margin: 0 auto; max-width: none; }
.pricing-head .section-kicker { margin: 24px auto 0; }

.tiers { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.tier {
  background: var(--bg-card); border: 1px solid var(--line);
  border-radius: 14px; padding: 32px 28px;
  display: flex; flex-direction: column;
  position: relative; overflow: hidden;
}
.tier::after {
  content: ''; position: absolute; inset: 0;
  background: radial-gradient(circle 260px at var(--mx, 50%) var(--my, 50%), rgba(196,255,52,0.05), transparent 60%);
  opacity: 0; transition: opacity .3s ease; pointer-events: none;
}
.tier:hover::after { opacity: 1; }
.tier.featured {
  background: radial-gradient(ellipse at top, rgba(196,255,52,0.10), transparent 60%), var(--bg-card);
  border-color: rgba(196,255,52,0.3);
  box-shadow: 0 0 60px -20px var(--lime-glow);
}
.tier-name {
  font-family: var(--mono); font-size: 11px; color: var(--ink-3);
  letter-spacing: 0.1em; text-transform: uppercase; margin-bottom: 6px;
}
.tier-tagline { font-size: 14px; color: var(--ink-2); margin-bottom: 24px; line-height: 1.45; min-height: 40px; }
.tier-price { display: flex; align-items: baseline; gap: 6px; margin-bottom: 6px; }
.tier-price .currency { font-family: var(--display); font-size: 24px; color: var(--ink-2); font-weight: 500; }
.tier-price .amount {
  font-family: var(--display); font-size: 64px; font-weight: 600;
  letter-spacing: -0.04em; line-height: 1; font-variant-numeric: tabular-nums;
}
.tier-price .per { font-family: var(--mono); font-size: 12px; color: var(--ink-3); }
.tier-vs {
  font-family: var(--mono); font-size: 11px; color: var(--ink-3);
  margin-bottom: 24px; padding-bottom: 24px;
  border-bottom: 1px dashed var(--line);
}
.tier-vs b { color: var(--lime); }
.tier-vs s { color: var(--rose); }
.tier .pill { width: 100%; justify-content: center; height: 44px; font-size: 14px; margin-bottom: 28px; }
.tier-tag {
  position: absolute; top: 18px; right: 18px;
  background: var(--lime); color: #08090a;
  font-family: var(--mono); font-size: 10px;
  padding: 4px 10px; border-radius: 999px;
  font-weight: 600; letter-spacing: 0.05em;
}
.tier-tag.soon { background: var(--plum); color: #fff; }
.tier-feats { list-style: none; display: flex; flex-direction: column; gap: 12px; }
.tier-feats li { display: flex; gap: 10px; align-items: start; font-size: 14px; color: var(--ink-2); line-height: 1.45; }
.tier-feats li svg { flex-shrink: 0; width: 14px; height: 14px; stroke: var(--lime); stroke-width: 2.5; margin-top: 3px; }
.tier-feats li b { color: var(--ink); font-weight: 500; }

.payment-strip {
  margin-top: 56px; padding: 24px 32px;
  background: var(--bg-card); border: 1px solid var(--line);
  border-radius: 14px;
  display: grid; grid-template-columns: 1fr auto; gap: 32px;
  align-items: center;
}
.payment-strip .ptitle {
  font-family: var(--mono); font-size: 11px; letter-spacing: 0.08em;
  color: var(--ink-3); text-transform: uppercase; margin-bottom: 6px;
}
.payment-strip h3 { font-family: var(--display); font-size: 18px; font-weight: 500; letter-spacing: -0.01em; }
.payment-strip .pms { display: flex; gap: 24px; flex-wrap: wrap; font-family: var(--display); font-weight: 500; color: var(--ink-2); font-size: 15px; }
.payment-strip .pms small { display: block; color: var(--ink-4); font-size: 10px; font-family: var(--mono); letter-spacing: 0.08em; margin-top: 8px; }

/* ============ MARKET COMPARISON TABLE ============ */
.cmp-table-wrap { border: 1px solid var(--line); border-radius: 14px; overflow: hidden; background: var(--bg-card); }
.cmp-table { width: 100%; border-collapse: collapse; font-size: 14px; }
.cmp-table thead th {
  text-align: left; padding: 20px 24px;
  font-family: var(--mono); font-size: 11px; letter-spacing: 0.08em;
  color: var(--ink-3); text-transform: uppercase; font-weight: 500;
  border-bottom: 1px solid var(--line);
  background: rgba(255,255,255,0.015);
}
.cmp-table thead th.us {
  color: var(--lime); position: relative;
}
.cmp-table thead th.us::after {
  content: 'YOU'; position: absolute; top: -6px; right: 24px;
  background: var(--lime); color: #08090a;
  font-size: 9px; padding: 2px 6px; border-radius: 4px;
}
.cmp-table td {
  padding: 18px 24px;
  border-bottom: 1px solid var(--line);
  color: var(--ink-2); vertical-align: middle;
}
.cmp-table tbody tr:last-child td { border-bottom: none; }
.cmp-table td:first-child { color: var(--ink); font-weight: 500; }
.cmp-table td.us { background: rgba(196,255,52,0.04); color: var(--lime); font-weight: 500; font-family: var(--mono); font-size: 13px; }
.cmp-table td .yes { color: var(--lime); }
.cmp-table td .no { color: var(--ink-4); }
.cmp-table td .partial { color: var(--amber); }
.cmp-table .row-price td { font-family: var(--mono); font-weight: 600; font-size: 15px; }
.cmp-table .row-price td:first-child { font-family: var(--body); }
.cmp-table .row-price td.us { color: var(--lime); font-size: 16px; }
.cmp-table .row-price td.bad { color: var(--rose); }

/* ============ FAQ ============ */
.faq-list { display: flex; flex-direction: column; gap: 10px; max-width: 880px; margin: 0 auto; }
.faq-item { border: 1px solid var(--line); border-radius: 12px; background: var(--bg-card); overflow: hidden; transition: border-color .2s ease; }
.faq-item:hover { border-color: var(--line-hi); }
.faq-item.open { border-color: rgba(196,255,52,0.2); }
.faq-q {
  width: 100%; text-align: left;
  padding: 22px 28px;
  display: flex; justify-content: space-between; align-items: center;
  font-family: var(--display); font-size: 17px; font-weight: 500;
  letter-spacing: -0.015em;
  color: var(--ink);
}
.faq-q .icn {
  width: 28px; height: 28px; border-radius: 50%;
  border: 1px solid var(--line-2);
  display: grid; place-items: center;
  font-family: var(--mono); font-size: 16px;
  color: var(--ink-2);
  transition: all .2s ease;
  flex-shrink: 0; margin-left: 24px;
}
.faq-item.open .faq-q .icn {
  background: var(--lime); color: #08090a;
  border-color: var(--lime); transform: rotate(45deg);
}
.faq-a {
  max-height: 0; overflow: hidden;
  transition: max-height .35s ease;
}
.faq-item.open .faq-a { max-height: 400px; }
.faq-a-inner { padding: 0 28px 22px; font-size: 14px; color: var(--ink-2); line-height: 1.6; max-width: 70ch; }

/* ============ FOUNDER ============ */
.founder-section { padding: 120px 0; border-bottom: 1px solid var(--line); text-align: center; }
.founder-quote {
  max-width: 820px; margin: 0 auto;
  font-family: var(--display); font-size: clamp(24px, 3vw, 38px);
  line-height: 1.3; letter-spacing: -0.02em; color: var(--ink); font-weight: 400;
}
.founder-quote .serif { color: var(--lime-2); }
.founder-sig { margin-top: 32px; display: flex; align-items: center; justify-content: center; gap: 14px; }
.founder-avatar {
  width: 48px; height: 48px; border-radius: 50%;
  background: linear-gradient(135deg, var(--lime), var(--amber));
  display: grid; place-items: center;
  font-family: var(--display); font-weight: 600;
  color: #08090a; font-size: 18px;
}
.founder-name { text-align: left; font-size: 14px; color: var(--ink); }
.founder-name span {
  display: block; font-family: var(--mono); font-size: 11px;
  color: var(--ink-3); letter-spacing: 0.04em; margin-top: 2px;
}

/* ============ CTA ============ */
.cta-band { padding: 160px 0; text-align: center; position: relative; border-bottom: 1px solid var(--line); overflow: hidden; }
.cta-band::before {
  content: ''; position: absolute; inset: 0;
  background:
    radial-gradient(ellipse 50% 70% at 50% 50%, var(--lime-soft), transparent 70%),
    radial-gradient(ellipse 30% 50% at 30% 30%, var(--plum-soft), transparent 60%);
  pointer-events: none;
}
.cta-band h2 {
  position: relative; font-family: var(--display); font-weight: 600;
  font-size: clamp(56px, 8vw, 110px);
  letter-spacing: -0.045em; line-height: 1.25;
  margin-bottom: 40px; max-width: 18ch;
  margin-left: auto; margin-right: auto;
}
.cta-band p {
  position: relative; color: var(--ink-2); font-size: 18px;
  max-width: 50ch; margin: 0 auto 40px; line-height: 1.55;
}
.cta-fineprint {
  margin-top: 28px; font-family: var(--mono); font-size: 11px;
  color: var(--ink-3); letter-spacing: 0.06em; position: relative;
}

/* ============ FOOTER ============ */
footer { padding: 80px 0 32px; position: relative; z-index: 2; }
.foot-top {
  display: grid; grid-template-columns: 2fr 1fr 1fr 1fr 1fr;
  gap: 48px; padding-bottom: 56px; border-bottom: 1px solid var(--line);
}
.foot-brand-text { font-size: 14px; color: var(--ink-2); line-height: 1.6; max-width: 36ch; margin-top: 18px; }
.foot-socials { margin-top: 20px; display: flex; gap: 10px; }
.foot-socials a {
  width: 36px; height: 36px; border-radius: 50%;
  border: 1px solid var(--line-2);
  display: grid; place-items: center;
  color: var(--ink-2); transition: all .2s ease;
}
.foot-socials a:hover { border-color: var(--lime); color: var(--lime); }
.foot-socials svg { width: 14px; height: 14px; fill: currentColor; }
.foot-col h5 {
  font-family: var(--mono); font-size: 11px; color: var(--ink-3);
  letter-spacing: 0.1em; text-transform: uppercase;
  margin-bottom: 16px; font-weight: 500;
}
.foot-col ul { list-style: none; display: flex; flex-direction: column; gap: 10px; }
.foot-col a { font-size: 14px; color: var(--ink-2); transition: color .2s ease; }
.foot-col a:hover { color: var(--ink); }
.foot-bottom {
  padding-top: 32px;
  display: flex; justify-content: space-between; align-items: center;
  font-family: var(--mono); font-size: 11px; color: var(--ink-3);
  flex-wrap: wrap; gap: 12px;
}
.foot-risk {
  margin-top: 24px; padding-top: 24px;
  border-top: 1px dashed var(--line); text-align: center;
  font-family: var(--mono); font-size: 10px; color: var(--ink-4);
  letter-spacing: 0.04em; line-height: 1.6;
  max-width: 900px; margin-left: auto; margin-right: auto;
}

/* ============ STICKY CTA ============ */
.sticky-cta {
  position: fixed; left: 16px; right: 16px; bottom: 16px;
  z-index: 60; opacity: 0; pointer-events: none;
  transform: translateY(80px);
  transition: opacity .3s ease, transform .3s ease;
}
.sticky-cta.show { opacity: 1; pointer-events: auto; transform: translateY(0); }
.sticky-cta-inner {
  max-width: 720px; margin: 0 auto;
  background: rgba(17, 19, 22, 0.92);
  backdrop-filter: blur(20px) saturate(160%);
  -webkit-backdrop-filter: blur(20px) saturate(160%);
  border: 1px solid var(--line-hi); border-radius: 999px;
  padding: 8px 8px 8px 24px;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  box-shadow: 0 12px 40px -10px rgba(0,0,0,0.6);
}
.sticky-cta-text { font-size: 14px; color: var(--ink); }
.sticky-cta-text strong { color: var(--lime); }

/* ============ REVEAL ============ */
.reveal { opacity: 0; transform: translateY(20px); transition: opacity .8s cubic-bezier(.2,.7,.2,1), transform .8s cubic-bezier(.2,.7,.2,1); }
.reveal.in { opacity: 1; transform: none; }

/* ============ REDUCED MOTION ============ */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .reveal { opacity: 1; transform: none; }
}

/* ============ RESPONSIVE ============ */
@media (max-width: 1100px) {
  .section-head { grid-template-columns: 1fr; gap: 24px; }
  .bento { grid-template-columns: repeat(6, 1fr); }
  .tile.t-shield { grid-column: span 6; grid-row: span 2; }
  .tile.t-latency { grid-column: span 3; }
  .tile.t-news { grid-column: span 3; }
  .tile.t-brokers { grid-column: span 3; }
  .tile.t-ai { grid-column: span 3; grid-row: span 2; }
  .tile.t-trailing { grid-column: span 3; grid-row: span 2; }
  .tile.t-firms { grid-column: span 6; }
  .product-grid { grid-template-columns: 1fr; }
  .setup-grid, .ai-modes, .tiers { grid-template-columns: 1fr 1fr; }
  .tier.featured { grid-column: span 2; }
  .ai-mode.bal { grid-column: span 2; }
  .cmp-grid { grid-template-columns: 1fr; }
  .payment-strip { grid-template-columns: 1fr; gap: 16px; }
}
@media (max-width: 720px) {
  .nav-links, .lang-toggle { display: none; }
  .bento, .setup-grid, .ai-modes, .tiers, .foot-top { grid-template-columns: 1fr; }
  .tile { grid-column: 1 / -1 !important; grid-row: span 1 !important; min-height: 240px; }
  .tier.featured, .ai-mode.bal { grid-column: span 1; }
  section.section, .cta-band, .founder-section { padding: 80px 0; }
  .hero { padding: 56px 0 80px; }
  .hero-product { margin-top: 48px; }
  .product-frame { padding: 16px; }
  .marquee-track > span { font-size: 17px; }
  .cmp-table { font-size: 13px; }
  .cmp-table thead th, .cmp-table td { padding: 14px 12px; }
}
