/* ============================================================
   CYGOX AI Design language stylesheet
   Source of truth: DESIGN.md
   ============================================================ */

/* ---------- 1 · Font: IBM Plex Sans (self-hosted, latin) ---------- */
@font-face {
  font-family: "IBM Plex Sans";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("../fonts/ibm-plex-sans-400.woff2") format("woff2");
}
@font-face {
  font-family: "IBM Plex Sans";
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("../fonts/ibm-plex-sans-500.woff2") format("woff2");
}
@font-face {
  font-family: "IBM Plex Sans";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("../fonts/ibm-plex-sans-600.woff2") format("woff2");
}
@font-face {
  font-family: "IBM Plex Sans";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("../fonts/ibm-plex-sans-700.woff2") format("woff2");
}

/* ---------- 2 · Tokens ---------- */
:root {
  /* Accent */
  --ignition: #FF4F00;
  --ignition-hover: #FF6B2E;
  --ignition-pressed: #E64500;
  --ignition-glow: rgba(255, 79, 0, 0.15);

  /* Neutrals (blue-black, hue ~222°) */
  --afterhours: #0A0E17;
  --console: #131926;
  --elevated: #1A2233;
  --grid: #222B3E;
  --muted: #5D6A83;
  --steel: #98A4BA;
  --phosphor: #E9EEF6;

  /* Market semantics data only */
  --long: #0ECB81;
  --short: #F23645;

  /* Type */
  --font-sans: "IBM Plex Sans", -apple-system, "Segoe UI", system-ui, sans-serif;
  --fs-display: clamp(2.75rem, 1.35rem + 4.6vw, 4.625rem);
  --fs-h2: clamp(1.875rem, 1.25rem + 2.1vw, 2.875rem);
  --fs-h3: 1.375rem;
  --fs-h4: 1.0625rem;
  --fs-lede: clamp(1.0625rem, 1rem + 0.35vw, 1.1875rem);
  --fs-body: 1rem;
  --fs-small: 0.875rem;
  --fs-fine: 0.8125rem;
  --fs-eyebrow: 0.75rem;
  --fs-stat: clamp(1.875rem, 1.45rem + 1.5vw, 2.625rem);

  /* Layout */
  --container: 1160px;
  --gutter: clamp(20px, 4vw, 40px);
  --section-pad: clamp(76px, 10vw, 136px);
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --nav-h: 68px;

  /* Motion */
  --ease: cubic-bezier(0.22, 0.9, 0.3, 1);
}

/* ---------- 3 · Base ---------- */
*,
*::before,
*::after { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  background: var(--afterhours);
  color: var(--phosphor);
  font-family: var(--font-sans);
  font-size: var(--fs-body);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

body.no-scroll { overflow: hidden; }

img, svg { display: block; max-width: 100%; }

a { color: inherit; text-decoration: none; }

button {
  font: inherit;
  color: inherit;
  background: none;
  border: 0;
  cursor: pointer;
}

:focus-visible {
  outline: 2px solid var(--ignition);
  outline-offset: 3px;
  border-radius: 2px;
}

::selection { background: var(--ignition); color: var(--afterhours); }

.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;
}

/* ---------- 4 · Type scale ---------- */
h1, .h1 {
  font-size: var(--fs-display);
  font-weight: 700;
  line-height: 1.04;
  letter-spacing: -0.03em;
}
h2, .h2 {
  font-size: var(--fs-h2);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.022em;
}
h3, .h3 {
  font-size: var(--fs-h3);
  font-weight: 600;
  line-height: 1.3;
  letter-spacing: -0.012em;
}
h4, .h4 {
  font-size: var(--fs-h4);
  font-weight: 600;
  line-height: 1.4;
}

.eyebrow {
  font-size: var(--fs-eyebrow);
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--ignition);
}

.lede {
  font-size: var(--fs-lede);
  line-height: 1.65;
  color: var(--steel);
}

.small { font-size: var(--fs-small); line-height: 1.55; }
.fine { font-size: var(--fs-fine); line-height: 1.5; color: var(--muted); }

.num { font-variant-numeric: tabular-nums; }

/* ---------- 5 · Utilities ---------- */
.container {
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.section { padding-block: var(--section-pad); }

.section-head { max-width: 620px; margin-bottom: clamp(40px, 5vw, 64px); }
.section-head .eyebrow { display: block; margin-bottom: 14px; }
.section-head .lede { margin-top: 16px; }
.section-head--center { margin-inline: auto; text-align: center; }

.link {
  color: var(--ignition);
  font-weight: 600;
  transition: color 0.2s;
}
.link:hover { color: var(--ignition-hover); }

/* Buttons labels on Ignition are always Afterhours-dark (AA), never white */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: var(--ignition);
  color: var(--afterhours);
  font-size: 0.9375rem;
  font-weight: 600;
  line-height: 1;
  padding: 15px 28px;
  border-radius: var(--radius-sm);
  transition: background 0.2s, transform 0.2s var(--ease), box-shadow 0.25s;
}
.btn:hover {
  background: var(--ignition-hover);
  transform: translateY(-1px);
  box-shadow: 0 10px 30px var(--ignition-glow);
}
.btn:active { background: var(--ignition-pressed); transform: translateY(0); }

.btn--ghost {
  background: transparent;
  color: var(--phosphor);
  border: 1px solid var(--grid);
}
.btn--ghost:hover {
  background: var(--elevated);
  border-color: var(--muted);
  box-shadow: none;
}
.btn--ghost:active { background: var(--console); }

.btn--sm { padding: 11px 20px; font-size: 0.875rem; }

/* Cards */
.card {
  background: var(--console);
  border: 1px solid var(--grid);
  border-radius: var(--radius-md);
  transition: border-color 0.25s, transform 0.25s var(--ease), box-shadow 0.25s;
}
.card--hover:hover {
  border-color: var(--muted);
  transform: translateY(-3px);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.35);
}

/* The cursor block CYGOX AI's terminal signature */
.cursor {
  display: inline-block;
  width: 0.42em;
  height: 0.82em;
  margin-left: 0.08em;
  background: var(--ignition);
  vertical-align: baseline;
  transform: translateY(0.08em);
}
.cursor--blink { animation: blink 1.3s steps(2, start) infinite; }
@keyframes blink { to { visibility: hidden; } }

/* ---------- 6 · Navbar ---------- */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  height: var(--nav-h);
  transition: background 0.3s, border-color 0.3s, backdrop-filter 0.3s;
  border-bottom: 1px solid transparent;
}
.nav.scrolled {
  background: rgba(10, 14, 23, 0.84);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  border-bottom-color: var(--grid);
}
.nav-inner {
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--gutter);
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.nav-logo {
  display: inline-flex;
  align-items: center;
  flex-shrink: 0;
  /* Image logo: kill the inline-box descender gap so the lockup sits
     optically centred in the 68px bar. */
  line-height: 0;
  border-radius: 4px;
  -webkit-tap-highlight-color: transparent;
}
.nav-logo img {
  display: block;
  /* Height drives the lockup; width follows the 17:4 intrinsic ratio.
     30px puts the CYGOX cap height at ~14px the same optical weight
     the old 1.25rem/700 text logo had. */
  height: 30px;
  width: auto;
  transition: opacity 0.2s var(--ease);
}
.nav-logo:hover img { opacity: 0.82; }
.nav-logo:focus-visible { outline-offset: 4px; }
.nav-links {
  display: flex;
  align-items: center;
  gap: 32px;
  list-style: none;
}
.nav-links a {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--steel);
  transition: color 0.2s;
}
.nav-links a:hover { color: var(--phosphor); }

/* Trader Studio dropdown */
.nav-dd { position: relative; }
.nav-dd > button {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--steel);
  transition: color 0.2s;
}
.nav-dd > button:hover, .nav-dd.open > button { color: var(--phosphor); }
.dd-caret { font-size: 0.625rem; transition: transform 0.25s var(--ease); }
.nav-dd.open .dd-caret { transform: rotate(180deg); }
.nav-dd-menu {
  position: absolute;
  top: calc(100% + 14px);
  left: 50%;
  transform: translate(-50%, 6px);
  min-width: 220px;
  background: var(--console);
  border: 1px solid var(--grid);
  border-radius: var(--radius-md);
  padding: 8px;
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.55);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.2s, transform 0.2s var(--ease), visibility 0.2s;
}
.nav-dd.open .nav-dd-menu {
  opacity: 1;
  visibility: visible;
  transform: translate(-50%, 0);
}
.nav-dd-menu a {
  display: block;
  padding: 9px 12px;
  border-radius: 8px;
  font-size: 0.875rem;
  color: var(--steel);
  transition: background 0.15s, color 0.15s;
}
.nav-dd-menu a:hover { background: var(--elevated); color: var(--phosphor); }
.nav-dd-menu a.dd-main {
  color: var(--phosphor);
  font-weight: 600;
  border-bottom: 1px solid var(--grid);
  border-radius: 8px 8px 0 0;
  margin-bottom: 6px;
  padding-bottom: 12px;
}

/* Mobile menu: studio tool sub-links */
.mobile-tools {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 18px;
  padding: 14px 0;
  border-bottom: 1px solid var(--grid);
}
.mobile-tools a { font-size: 0.9375rem; color: var(--steel); padding: 4px 0; }
.mobile-tools a:hover { color: var(--ignition); }

.nav-auth {
  display: flex;
  align-items: center;
  gap: 20px;
  flex-shrink: 0;
}
.nav-login {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--steel);
  transition: color 0.2s;
}
.nav-login:hover { color: var(--phosphor); }

/* Hamburger */
.nav-burger {
  display: none;
  width: 44px;
  height: 44px;
  position: relative;
  z-index: 130;
}
.nav-burger span {
  position: absolute;
  left: 11px;
  width: 22px;
  height: 2px;
  background: var(--phosphor);
  transition: transform 0.3s var(--ease), top 0.3s var(--ease), opacity 0.2s;
}
.nav-burger span:nth-child(1) { top: 18px; }
.nav-burger span:nth-child(2) { top: 25px; }
.nav-burger.open span:nth-child(1) { top: 21px; transform: rotate(45deg); }
.nav-burger.open span:nth-child(2) { top: 21px; transform: rotate(-45deg); }

/* Mobile menu overlay */
.mobile-menu {
  position: fixed;
  inset: 0;
  /* Below the navbar (z 100) so the burger stays visible and
     clickable as an X while the menu is open. */
  z-index: 96;
  padding-top: var(--nav-h);
  background: rgba(10, 14, 23, 0.97);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: var(--gutter);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s, visibility 0.3s;
}
.mobile-menu.open { opacity: 1; visibility: visible; }
.mobile-menu nav { display: flex; flex-direction: column; gap: 8px; }
.mobile-menu nav a {
  font-size: 1.75rem;
  font-weight: 600;
  letter-spacing: -0.015em;
  color: var(--phosphor);
  padding: 10px 0;
  border-bottom: 1px solid var(--grid);
  opacity: 0;
  transform: translateY(12px);
  transition: opacity 0.35s var(--ease), transform 0.35s var(--ease), color 0.2s;
}
.mobile-menu.open nav a { opacity: 1; transform: none; }
.mobile-menu nav a:hover { color: var(--ignition); }
.mobile-auth { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.mobile-menu .fine { margin-top: 20px; }

@media (max-width: 900px) {
  .nav-links, .nav-auth { display: none; }
  .nav-burger { display: block; }
  /* Only the logo and the burger remain, so the lockup keeps almost all of
     its size at 28px it still clears the 44px burger plus both gutters
     down to a 320px viewport. */
  .nav-logo img { height: 28px; }
}
@media (max-width: 360px) {
  .nav-logo img { height: 25px; }
}

/* ---------- 7 · Hero ---------- */
.hero {
  position: relative;
  padding-top: calc(var(--nav-h) + clamp(56px, 8vw, 104px));
  padding-bottom: clamp(56px, 7vw, 96px);
  overflow: hidden;
}
.hero-bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(34, 43, 62, 0.32) 1px, transparent 1px),
    linear-gradient(90deg, rgba(34, 43, 62, 0.32) 1px, transparent 1px);
  background-size: 46px 46px;
  -webkit-mask-image: radial-gradient(ellipse 90% 75% at 50% 8%, #000 35%, transparent 78%);
  mask-image: radial-gradient(ellipse 90% 75% at 50% 8%, #000 35%, transparent 78%);
}
.hero-glow {
  position: absolute;
  top: -180px;
  right: -80px;
  width: 720px;
  height: 620px;
  pointer-events: none;
  background: radial-gradient(closest-side, var(--ignition-glow), transparent 72%);
}
.hero-inner {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.02fr) minmax(0, 0.98fr);
  gap: clamp(40px, 5vw, 72px);
  align-items: center;
}
.hero-copy .eyebrow { display: block; margin-bottom: 18px; }
.hero-brand {
  font-size: clamp(3.5rem, 1.9rem + 6.4vw, 5.75rem);
  line-height: 1;
  letter-spacing: 0.005em;
}
.hero-tagline {
  font-size: clamp(1.5rem, 1.15rem + 1.5vw, 2.125rem);
  font-weight: 600;
  line-height: 1.15;
  letter-spacing: -0.018em;
  margin-top: 16px;
}
.hero-copy .lede { margin-top: 20px; max-width: 46ch; }
.hero-ctas {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 34px;
}
.hero-stats {
  display: flex;
  margin-top: clamp(36px, 4.5vw, 56px);
}
.hero-stat { padding-right: clamp(24px, 3vw, 44px); }
.hero-stat + .hero-stat {
  padding-left: clamp(24px, 3vw, 44px);
  border-left: 1px solid var(--grid);
}
.hero-stat-value {
  font-size: var(--fs-stat);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.02em;
  white-space: nowrap;
}
.hero-stat-label {
  font-size: var(--fs-small);
  color: var(--muted);
  margin-top: 4px;
  white-space: nowrap;
}

/* Hero terminal */
.terminal-wrap { position: relative; }
.terminal {
  background: var(--console);
  border: 1px solid var(--grid);
  border-radius: var(--radius-lg);
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.5);
  overflow: hidden;
}
.terminal-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 18px;
  border-bottom: 1px solid var(--grid);
}
.terminal-title {
  display: flex;
  align-items: center;
  gap: 9px;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  color: var(--steel);
}
.live-dot {
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--long);
  box-shadow: 0 0 0 0 rgba(14, 203, 129, 0.5);
  animation: pulse 2.2s infinite;
}
@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(14, 203, 129, 0.45); }
  70% { box-shadow: 0 0 0 8px rgba(14, 203, 129, 0); }
  100% { box-shadow: 0 0 0 0 rgba(14, 203, 129, 0); }
}
.terminal-chips { display: flex; gap: 8px; }
.chip {
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  color: var(--steel);
  border: 1px solid var(--grid);
  border-radius: 999px;
  padding: 4px 10px;
  white-space: nowrap;
}
.chip .tick { color: var(--long); }

.terminal-body { padding: 20px 18px 8px; }
.curve-meta {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 6px;
}
.curve-label {
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  color: var(--muted);
  text-transform: uppercase;
}
.curve-value {
  font-size: 1.375rem;
  font-weight: 700;
  letter-spacing: -0.01em;
}
.curve-value .up { color: var(--long); }
.curve-svg { width: 100%; height: auto; }

/* Fixed-height blotter: 3 rows of 42px + breathing room for the
   floating badge. Entering/exiting rows animate inside this box,
   so the page never shifts when a trade lands. */
.fills {
  border-top: 1px solid var(--grid);
  height: calc(42px * 3 + 30px);
  padding-bottom: 30px;
  overflow: hidden;
}
.fill-row {
  display: flex;
  align-items: center;
  gap: 12px;
  height: 42px;
  padding: 0 18px;
  font-size: 0.75rem;
  border-bottom: 1px solid rgba(34, 43, 62, 0.55);
}
.fill-row:last-child { border-bottom: 0; }
.fill-time { color: var(--muted); font-variant-numeric: tabular-nums; }
.fill-sys { font-weight: 600; letter-spacing: 0.08em; color: var(--steel); }
.fill-action { color: var(--phosphor); font-weight: 500; }
.fill-result {
  margin-left: auto;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}
.fill-result.gain { color: var(--long); }
.fill-result.loss { color: var(--short); }
/* New-trade choreography: roll in with a gain/loss flash and left
   accent bar; the result chip pops in a beat later. */
.fill-row.fill-enter { opacity: 0; transform: translateY(-12px); }
.fill-row.fill-enter.in {
  opacity: 1;
  transform: none;
  transition: opacity 0.4s var(--ease), transform 0.4s var(--ease);
}
.fill-row.flash.in { animation: fill-flash 1.3s ease-out; }
@keyframes fill-flash {
  0% { background: rgba(255, 79, 0, 0.15); box-shadow: inset 3px 0 0 var(--ignition); }
  100% { background: transparent; box-shadow: inset 0 0 0 rgba(0, 0, 0, 0); }
}
.fill-row.fill-enter.in .fill-result {
  animation: result-pop 0.45s var(--ease) 0.18s backwards;
}
@keyframes result-pop {
  from { opacity: 0; transform: scale(0.85); }
  to { opacity: 1; transform: none; }
}

.terminal-badge {
  position: absolute;
  left: -18px;
  bottom: -26px;
  display: flex;
  align-items: center;
  gap: 12px;
  background: var(--elevated);
  border: 1px solid var(--grid);
  border-radius: var(--radius-md);
  padding: 14px 18px;
  box-shadow: 0 18px 44px rgba(0, 0, 0, 0.45);
}
.terminal-badge-value {
  font-size: 1.375rem;
  font-weight: 700;
  line-height: 1;
}
.terminal-badge-label {
  font-size: 0.75rem;
  color: var(--steel);
  line-height: 1.35;
}

/* Hero entrance */
.rise {
  opacity: 0;
  transform: translateY(18px);
  animation: rise 0.8s var(--ease) forwards;
  animation-delay: var(--d, 0s);
}
@keyframes rise { to { opacity: 1; transform: none; } }

.curve-path {
  stroke-dasharray: 1;
  stroke-dashoffset: 1;
  animation: draw 1.7s var(--ease) 0.5s forwards;
}
@keyframes draw { to { stroke-dashoffset: 0; } }
.curve-area {
  opacity: 0;
  animation: fadein 0.9s ease 1.7s forwards;
}
.curve-dot {
  opacity: 0;
  animation: fadein 0.4s ease 2s forwards;
}
@keyframes fadein { to { opacity: 1; } }

/* ---------- 8 · Ticker tape ---------- */
.tape {
  border-top: 1px solid var(--grid);
  border-bottom: 1px solid var(--grid);
  background: rgba(19, 25, 38, 0.5);
  display: flex;
  align-items: stretch;
  overflow: hidden;
}
.tape-label {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 18px;
  border-right: 1px solid var(--grid);
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  color: var(--muted);
  white-space: nowrap;
}
.tape-viewport {
  overflow: hidden;
  flex: 1;
  display: flex;
  align-items: center;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 36px, #000 calc(100% - 36px), transparent);
  mask-image: linear-gradient(90deg, transparent, #000 36px, #000 calc(100% - 36px), transparent);
}
.tape-track {
  display: flex;
  gap: 40px;
  padding-left: 40px;
  white-space: nowrap;
  will-change: transform;
  backface-visibility: hidden;
  animation: tape 46s linear infinite;
}
.tape:hover .tape-track { animation-play-state: paused; }
@keyframes tape {
  from { transform: translate3d(0, 0, 0); }
  to { transform: translate3d(-50%, 0, 0); }
}
.tape-item {
  display: inline-flex;
  align-items: baseline;
  gap: 8px;
  font-size: 0.8125rem;
  font-variant-numeric: tabular-nums;
}
.tape-sym { font-weight: 600; color: var(--steel); letter-spacing: 0.04em; }
.tape-price { color: var(--phosphor); }
.tape-delta.gain { color: var(--long); }
.tape-delta.loss { color: var(--short); }

/* ---------- 10 · Features (text left · monitor visual right) ---------- */
.feature-split {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 0.9fr);
  gap: clamp(40px, 5vw, 76px);
  align-items: start;
}
.feature-list { margin-top: 18px; }
.feature-item { padding: 22px 0; }
.feature-item + .feature-item { border-top: 1px solid var(--grid); }
.feature-item-head {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 10px;
}
.feature-icon {
  width: 38px;
  height: 38px;
  flex-shrink: 0;
  border: 1px solid var(--grid);
  border-radius: 9px;
  display: grid;
  place-items: center;
  background: var(--elevated);
}
.feature-icon svg { width: 19px; height: 19px; stroke: var(--steel); }
.feature-item p { color: var(--steel); font-size: 0.9375rem; }
.feature-item .fine { margin-top: 10px; }

.feature-visual {
  position: sticky;
  top: calc(var(--nav-h) + 32px);
}
.monitor {
  background: var(--console);
  border: 1px solid var(--grid);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.4);
}
.monitor-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 18px;
  border-bottom: 1px solid var(--grid);
}
.monitor-radar {
  display: grid;
  place-items: center;
  padding: 30px 20px;
  border-bottom: 1px solid var(--grid);
}
.radar-rings {
  position: relative;
  width: min(240px, 62%);
  aspect-ratio: 1;
  border-radius: 50%;
  border: 1px solid var(--grid);
  overflow: hidden;
  background-image:
    linear-gradient(to bottom, transparent calc(50% - 0.5px), var(--grid) calc(50% - 0.5px), var(--grid) calc(50% + 0.5px), transparent calc(50% + 0.5px)),
    linear-gradient(to right, transparent calc(50% - 0.5px), var(--grid) calc(50% - 0.5px), var(--grid) calc(50% + 0.5px), transparent calc(50% + 0.5px));
}
.radar-rings::before,
.radar-rings::after {
  content: "";
  position: absolute;
  border-radius: 50%;
  border: 1px solid var(--grid);
}
.radar-rings::before { inset: 20%; }
.radar-rings::after { inset: 40%; }
.radar-sweep {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: conic-gradient(from 0deg, rgba(14, 203, 129, 0.25), transparent 80deg);
  animation: sweep 5.5s linear infinite;
}
@keyframes sweep { to { transform: rotate(360deg); } }
.radar-blip {
  position: absolute;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--long);
  box-shadow: 0 0 8px rgba(14, 203, 129, 0.6);
  opacity: 0.25;
  animation: blip 5.5s ease-in-out infinite;
}
.radar-blip.b1 { top: 30%; left: 63%; animation-delay: 0.6s; }
.radar-blip.b2 { top: 58%; left: 36%; animation-delay: 2.4s; }
.radar-blip.b3 { top: 44%; left: 20%; animation-delay: 3.8s; }
@keyframes blip {
  0%, 100% { opacity: 0.2; }
  8% { opacity: 1; }
  30% { opacity: 0.35; }
}
.monitor-rows { padding: 6px 0; }
.monitor-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 11px 18px;
  font-size: 0.8125rem;
}
.monitor-row + .monitor-row { border-top: 1px solid rgba(34, 43, 62, 0.55); }
.monitor-row-label { color: var(--steel); }
.monitor-row-value { font-weight: 600; }
.monitor-row-value.on { color: var(--long); }
.monitor-row-value.standby { color: var(--muted); }
.monitor-row-value.num { color: var(--phosphor); font-variant-numeric: tabular-nums; }
.feature-visual-note { margin-top: 14px; padding-inline: 6px; }

/* ---------- 11 · Systems ---------- */
.systems-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
}
.system {
  padding: clamp(26px, 3vw, 38px);
  display: flex;
  flex-direction: column;
}
.system-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 18px;
}
.system-tag {
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--steel);
  border: 1px solid var(--grid);
  border-radius: 999px;
  padding: 5px 12px;
}
.system h3 { font-size: 1.625rem; letter-spacing: -0.02em; }
.system h3 .sys-prefix { color: var(--muted); font-weight: 500; }
.system-stat {
  display: flex;
  align-items: baseline;
  gap: 10px;
  margin: 18px 0 14px;
  padding: 14px 18px;
  background: var(--elevated);
  border-radius: var(--radius-sm);
}
.system-stat-value {
  font-size: 1.75rem;
  font-weight: 700;
  letter-spacing: -0.02em;
}
.system-stat-label { font-size: 0.8125rem; color: var(--muted); }
.system p { color: var(--steel); font-size: 0.9375rem; flex: 1; }
.system .link { display: inline-block; margin-top: 20px; font-size: 0.9375rem; }
.systems-note { margin-top: 22px; }

/* ---------- 12 · Monthly returns heatmap ---------- */
.heat-card { padding: clamp(22px, 3vw, 34px); }
.heat-head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px 18px;
  margin-bottom: 20px;
}
.heat-title {
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
.heat-unit { color: var(--muted); font-weight: 500; }
.heat-key {
  display: inline-flex;
  gap: 16px;
  font-size: 0.75rem;
  color: var(--muted);
}
.heat-key .k { display: inline-flex; align-items: center; gap: 6px; }
.heat-key .sw {
  width: 10px;
  height: 10px;
  border-radius: 3px;
  display: inline-block;
}
.heat-key .sw.gain { background: rgba(14, 203, 129, 0.5); }
.heat-key .sw.loss { background: rgba(242, 54, 69, 0.5); }

.heat-grid {
  display: grid;
  grid-template-columns: 108px repeat(12, minmax(0, 1fr)) 88px;
  gap: 4px;
  align-items: stretch;
}
/* Transposed variant for small screens: months as rows */
.heat-tall { display: none; }
.heat-grid-tall {
  display: grid;
  grid-template-columns: 46px repeat(3, minmax(0, 1fr));
  gap: 4px;
  align-items: stretch;
}
.heat-col {
  font-size: 0.625rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--steel);
  text-align: center;
  align-self: end;
  padding-bottom: 4px;
}
.heat-col.benchmark { color: var(--muted); }
.heat-month-row {
  font-size: 0.625rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  color: var(--muted);
  align-self: center;
  text-align: right;
  padding-right: 6px;
}
.heat-cell-avg { font-weight: 700; }
@media (max-width: 720px) {
  .heat-wide { display: none; }
  .heat-tall { display: block; }
}
.heat-corner { }
.heat-month {
  font-size: 0.625rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  color: var(--muted);
  text-align: center;
  align-self: end;
  padding-bottom: 4px;
}
.heat-avg-head { color: var(--steel); }
.heat-row-label {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  align-self: center;
  padding-right: 8px;
}
.heat-row-label.benchmark { color: var(--muted); }
.heat-cell {
  border-radius: 6px;
  text-align: center;
  padding: 11px 2px;
  font-size: 0.75rem;
  font-weight: 500;
  font-variant-numeric: tabular-nums;
  color: var(--phosphor);
  opacity: 0;
  transition: opacity 0.5s var(--ease);
  transition-delay: calc(var(--i, 0) * 14ms);
}
.animated .heat-cell { opacity: 1; }
.heat-avg {
  align-self: center;
  text-align: right;
  font-size: 0.9375rem;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.01em;
}
.heat-avg.benchmark { color: var(--steel); font-weight: 600; }
.heat-summary {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px 18px;
  margin-top: 24px;
  padding-top: 20px;
  border-top: 1px solid var(--grid);
}
.heat-summary-label { color: var(--steel); font-size: 0.9375rem; }
.heat-summary-label strong { color: var(--phosphor); font-weight: 600; }
.heat-summary-value {
  font-size: 1.375rem;
  font-weight: 700;
  letter-spacing: -0.015em;
  color: var(--ignition);
}
.perf-fine { margin-top: 18px; }

/* ---------- 13 · Verification ---------- */
.verify {
  position: relative;
  overflow: hidden;
}
.verify-inner {
  position: relative;
  text-align: center;
  max-width: 680px;
  margin-inline: auto;
}
.verify-glow {
  position: absolute;
  left: 50%;
  top: -120px;
  transform: translateX(-50%);
  width: 900px;
  height: 500px;
  pointer-events: none;
  background: radial-gradient(closest-side, var(--ignition-glow), transparent 74%);
}
.verify-stats {
  display: flex;
  justify-content: center;
  gap: clamp(40px, 6vw, 80px);
  margin-top: 40px;
}
.verify-stat-value {
  font-size: var(--fs-stat);
  font-weight: 700;
  letter-spacing: -0.02em;
}
.verify-stat-label { color: var(--muted); font-size: var(--fs-small); margin-top: 4px; }
.verify-auditors {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 14px;
  margin-top: 40px;
}
.verify-auditors .audit-label {
  font-size: var(--fs-eyebrow);
  font-weight: 600;
  letter-spacing: 0.18em;
  color: var(--muted);
  margin-right: 6px;
}
.auditor {
  border: 1px solid var(--grid);
  background: var(--console);
  border-radius: var(--radius-sm);
  padding: 12px 24px;
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  color: var(--steel);
}
.verify .link { display: inline-block; margin-top: 34px; }

/* ---------- 14 · Reviews ---------- */
.reviews-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}
.review {
  padding: clamp(24px, 3vw, 32px);
  display: flex;
  flex-direction: column;
}
.review-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
}
.stars { display: flex; gap: 3px; }
.stars span {
  width: 20px; height: 20px;
  background: var(--long);
  border-radius: 3px;
  display: grid;
  place-items: center;
}
.stars svg { width: 12px; height: 12px; fill: var(--afterhours); }
.verified {
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  color: var(--long);
}
.review p { color: var(--steel); font-size: 0.9375rem; flex: 1; }
.review-who {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 20px;
  padding-top: 18px;
  border-top: 1px solid var(--grid);
}
.avatar {
  width: 38px; height: 38px;
  border-radius: 50%;
  background: var(--elevated);
  border: 1px solid var(--grid);
  display: grid;
  place-items: center;
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--steel);
}
.review-name { font-size: 0.875rem; font-weight: 600; }
.review-src { font-size: 0.75rem; color: var(--muted); }

/* ---------- 15 · Process ---------- */
/* Stepper: horizontal three-across on desktop, with a connecting
   line running from each node; vertical rail on small screens. */
.process-flow {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(28px, 4vw, 56px);
}
.pstep-node {
  width: 44px;
  height: 44px;
  flex-shrink: 0;
  border-radius: 50%;
  background: var(--console);
  border: 1px solid var(--grid);
  display: grid;
  place-items: center;
  font-weight: 700;
  color: var(--steel);
  position: relative;
  z-index: 1;
  transition: border-color 0.25s, color 0.25s, box-shadow 0.25s;
}
.pstep-rail {
  display: flex;
  align-items: center;
  margin-bottom: 20px;
}
.pstep-rail::after {
  content: "";
  flex: 1;
  height: 1px;
  margin-left: 18px;
  background: var(--grid);
}
.pstep:last-child .pstep-rail::after {
  background: linear-gradient(90deg, var(--grid), transparent);
}
.pstep:hover .pstep-node {
  border-color: var(--ignition);
  color: var(--phosphor);
  box-shadow: 0 0 0 4px var(--ignition-glow);
}
.pstep-head {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 10px;
  margin-bottom: 10px;
}
.pstep-head h3 { margin: 0; }
.pstep-tag {
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  border: 1px solid var(--grid);
  border-radius: 999px;
  padding: 4px 11px;
  white-space: nowrap;
}
.pstep p { color: var(--steel); font-size: 0.9375rem; max-width: 54ch; }

@media (max-width: 760px) {
  .process-flow {
    grid-template-columns: 1fr;
    gap: 0;
    max-width: 560px;
  }
  .pstep {
    display: grid;
    grid-template-columns: 44px minmax(0, 1fr);
    column-gap: 20px;
  }
  .pstep-rail {
    display: block;
    position: relative;
    margin-bottom: 0;
  }
  .pstep-rail::after {
    position: absolute;
    left: 50%;
    top: 48px;
    bottom: 4px;
    width: 1px;
    height: auto;
    margin: 0;
    background: var(--grid);
  }
  .pstep:last-child .pstep-rail::after { display: none; }
  .pstep-body { padding: 9px 0 36px; }
  .pstep:last-child .pstep-body { padding-bottom: 0; }
}

/* ---------- 16 · CTA band ---------- */
.cta-band {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--grid);
  border-radius: var(--radius-lg);
  background: var(--console);
  padding: clamp(48px, 6vw, 88px) clamp(24px, 5vw, 80px);
  text-align: center;
}
.cta-band::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(560px 260px at 50% 0%, var(--ignition-glow), transparent 75%),
    linear-gradient(rgba(34, 43, 62, 0.3) 1px, transparent 1px),
    linear-gradient(90deg, rgba(34, 43, 62, 0.3) 1px, transparent 1px);
  background-size: auto, 46px 46px, 46px 46px;
  -webkit-mask-image: radial-gradient(ellipse 80% 100% at 50% 0%, #000 30%, transparent 85%);
  mask-image: radial-gradient(ellipse 80% 100% at 50% 0%, #000 30%, transparent 85%);
}
.cta-band > * { position: relative; }
.cta-band h2 { max-width: 18ch; margin-inline: auto; }
.cta-band .lede { max-width: 44ch; margin: 18px auto 0; }
.cta-band .hero-ctas { justify-content: center; margin-top: 32px; }
.cta-band .fine { margin-top: 22px; }

/* ---------- 17 · Footer ---------- */
.footer {
  border-top: 1px solid var(--grid);
  margin-top: var(--section-pad);
  padding-top: clamp(48px, 6vw, 72px);
  background: linear-gradient(rgba(19, 25, 38, 0.4), transparent 240px);
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 0.9fr 1.1fr;
  gap: clamp(24px, 3.5vw, 48px);
}
.footer-brand .nav-logo img { height: 34px; }
.footer-brand p {
  color: var(--steel);
  font-size: 0.875rem;
  margin-top: 14px;
  max-width: 30ch;
}
.footer-audit {
  margin-top: 18px;
  font-size: 0.75rem;
  color: var(--muted);
  letter-spacing: 0.06em;
}
.footer-col h4 {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 16px;
}
.footer-col ul { list-style: none; display: flex; flex-direction: column; gap: 10px; }
.footer-col a {
  font-size: 0.875rem;
  color: var(--steel);
  transition: color 0.2s;
}
.footer-col a:hover { color: var(--phosphor); }
.footer-disclaimer {
  margin-top: clamp(40px, 5vw, 56px);
  padding-top: 24px;
  border-top: 1px solid var(--grid);
}
.footer-disclaimer p { margin-bottom: 10px; }
.footer-disc-block { margin-bottom: 16px; }
.footer-disc-title {
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--steel);
  margin-bottom: 4px;
}
.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding-block: 22px;
  margin-top: 14px;
  font-size: 0.8125rem;
  color: var(--muted);
}
.footer-bottom nav { display: flex; gap: 20px; }
.footer-bottom a { color: var(--muted); transition: color 0.2s; }
.footer-bottom a:hover { color: var(--steel); }

/* ---------- 17b · Legal pages ---------- */
.legal-page {
  padding-top: calc(var(--nav-h) + clamp(48px, 7vw, 88px));
  padding-bottom: clamp(64px, 8vw, 112px);
}
.legal-container { max-width: 780px; }
.legal-page .eyebrow { display: block; margin-bottom: 14px; }
.legal-page h1 {
  font-size: var(--fs-h2);
  letter-spacing: -0.022em;
  line-height: 1.1;
}
.legal-updated {
  margin-top: 12px;
  font-size: var(--fs-small);
  color: var(--muted);
}
.legal-intro {
  margin-top: 22px;
  padding: 18px 22px;
  background: var(--console);
  border: 1px solid var(--grid);
  border-left: 2px solid var(--ignition);
  border-radius: var(--radius-sm);
  color: var(--steel);
  font-size: 0.9375rem;
}
.legal-body { margin-top: 34px; }
.legal-body h2 {
  font-size: 1.375rem;
  letter-spacing: -0.012em;
  line-height: 1.3;
  margin-top: 44px;
  padding-top: 28px;
  border-top: 1px solid var(--grid);
}
.legal-body h2:first-child { margin-top: 0; padding-top: 0; border-top: 0; }
.legal-body h3 {
  font-size: 1.0625rem;
  margin-top: 26px;
}
.legal-body p {
  color: var(--steel);
  font-size: 0.9375rem;
  margin-top: 12px;
}
.legal-body ul, .legal-body ol {
  color: var(--steel);
  font-size: 0.9375rem;
  margin: 12px 0 0 20px;
  display: grid;
  gap: 7px;
}
.legal-body strong { color: var(--phosphor); font-weight: 600; }
.legal-body a { color: var(--ignition); font-weight: 500; }
.legal-body a:hover { color: var(--ignition-hover); }

/* ---------- 17c · Bots page ---------- */
.bots-hero {
  position: relative;
  overflow: hidden;
  text-align: center;
  padding-top: calc(var(--nav-h) + clamp(56px, 8vw, 104px));
  padding-bottom: clamp(44px, 6vw, 76px);
}
.bots-hero .eyebrow { display: block; margin-bottom: 16px; }
.bots-hero h1 {
  font-size: clamp(2.5rem, 1.5rem + 3.6vw, 4rem);
  letter-spacing: -0.03em;
  max-width: 16ch;
  margin-inline: auto;
}
.bots-hero .lede { max-width: 54ch; margin: 20px auto 0; }
.bot-jump {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  margin-top: 36px;
}
.bot-jump a {
  border: 1px solid var(--grid);
  border-radius: 999px;
  padding: 10px 22px;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--steel);
  transition: border-color 0.2s, color 0.2s, background 0.2s;
}
.bot-jump a:hover {
  border-color: var(--ignition);
  color: var(--phosphor);
  background: var(--ignition-glow);
}

.bot-block {
  padding-block: clamp(56px, 7vw, 96px);
  border-top: 1px solid var(--grid);
}
.bot-head { max-width: 760px; }
.bot-head h2 { margin-top: 18px; }
.bot-tagline {
  font-size: clamp(1.125rem, 1rem + 0.7vw, 1.5rem);
  font-weight: 600;
  color: var(--steel);
  letter-spacing: -0.01em;
  margin-top: 6px;
}
.bot-split {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(0, 0.92fr);
  gap: clamp(32px, 4.5vw, 72px);
  align-items: start;
  margin-top: 34px;
}
.bot-desc { color: var(--steel); font-size: 0.9375rem; }
.bot-chars-label {
  font-size: var(--fs-eyebrow);
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
  margin-top: 28px;
}
.bot-chars { list-style: none; margin-top: 14px; }
.bot-chars li {
  position: relative;
  padding-left: 22px;
  color: var(--steel);
  font-size: 0.9375rem;
  margin-top: 10px;
}
.bot-chars li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.48em;
  width: 8px;
  height: 8px;
  border-radius: 2px;
  background: var(--elevated);
  border: 1px solid var(--muted);
}
.bot-perf {
  position: sticky;
  top: calc(var(--nav-h) + 28px);
  padding: clamp(22px, 2.6vw, 30px);
}
.bot-perf-label {
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 16px;
}
.bot-chart svg { width: 100%; height: auto; }
.bot-chart-caption {
  font-size: 0.6875rem;
  color: var(--muted);
  margin-top: 6px;
  text-align: right;
}
.bot-perf-rows { margin-top: 14px; }
.bot-perf-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  padding: 13px 0;
  border-top: 1px solid var(--grid);
}
.bot-perf-row .label { color: var(--steel); font-size: 0.875rem; }
.bot-perf-row .value {
  font-size: 1.25rem;
  font-weight: 700;
  letter-spacing: -0.01em;
}
.bot-perf .fine { margin-top: 12px; }

.fx-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
  margin-top: 40px;
}
.fx-card { padding: clamp(22px, 2.6vw, 28px); }
.fx-name { font-size: 1.0625rem; font-weight: 600; }
.fx-meta { font-size: 0.8125rem; color: var(--muted); margin-top: 3px; }
.fx-rows { margin-top: 14px; }
.fx-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  padding: 8px 0;
  border-bottom: 1px solid rgba(34, 43, 62, 0.55);
  font-size: 0.875rem;
}
.fx-row:last-of-type { border-bottom: 0; }
.fx-row .label { color: var(--steel); }
.fx-row .value {
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}
.fx-row .value.pos { color: var(--long); }
.fx-row .value.neg { color: var(--short); }
.fx-card .link { display: inline-block; margin-top: 14px; font-size: 0.875rem; }

@media (max-width: 900px) {
  .bot-split { grid-template-columns: 1fr; }
  .bot-perf { position: static; }
  .fx-grid { grid-template-columns: 1fr; }
}

/* ---------- 17c2 · Bots page fleet manifest ---------- */
.fleet-hero {
  position: relative;
  overflow: hidden;
  padding-top: calc(var(--nav-h) + clamp(48px, 7vw, 92px));
  padding-bottom: clamp(44px, 6vw, 80px);
}
.fleet-hero-inner {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(36px, 5vw, 72px);
  align-items: center;
}
.fleet-hero-copy .eyebrow { display: block; margin-bottom: 16px; }
.fleet-hero-copy h1 {
  font-size: clamp(2.5rem, 1.5rem + 3.6vw, 4rem);
  letter-spacing: -0.03em;
  max-width: 12ch;
}
.fleet-hero-copy .lede { margin-top: 18px; max-width: 44ch; }
.fleet-board {
  background: var(--console);
  border: 1px solid var(--grid);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.5);
}
.fleet-row {
  display: grid;
  grid-template-columns: 14px minmax(0, 1fr) auto 20px;
  align-items: center;
  gap: 14px;
  padding: 15px 18px;
  border-top: 1px solid rgba(34, 43, 62, 0.55);
  transition: background 0.2s;
}
.fleet-row:hover { background: var(--elevated); }
.fleet-name { font-weight: 700; font-size: 0.9375rem; letter-spacing: 0.02em; }
.fleet-name .sub {
  display: block;
  font-size: 0.6875rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
  margin-top: 2px;
}
.fleet-avg {
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  font-size: 0.9375rem;
}
.fleet-avg .sub {
  display: block;
  font-weight: 500;
  font-size: 0.625rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  text-align: right;
  margin-top: 2px;
}
.fleet-go { color: var(--muted); font-weight: 600; transition: color 0.2s, transform 0.2s var(--ease); }
.fleet-row:hover .fleet-go { color: var(--ignition); transform: translateX(3px); }

.bot-tabs {
  position: sticky;
  top: var(--nav-h);
  z-index: 40;
  background: rgba(10, 14, 23, 0.86);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  border-block: 1px solid var(--grid);
}
.bot-tabs-inner {
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--gutter);
  display: flex;
  gap: 2px;
  overflow-x: auto;
  scrollbar-width: none;
}
.bot-tabs-inner::-webkit-scrollbar { display: none; }
.bot-tabs a {
  padding: 13px 18px;
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--steel);
  border-bottom: 2px solid transparent;
  white-space: nowrap;
  transition: color 0.2s, border-color 0.2s;
}
.bot-tabs a:hover { color: var(--phosphor); }
.bot-tabs a.active { color: var(--phosphor); border-bottom-color: var(--ignition); }

.dossier { padding-block: clamp(56px, 7vw, 96px); }
.dossier + .dossier { border-top: 1px solid var(--grid); }
.dossier--alt { background: rgba(19, 25, 38, 0.35); }
.spec-strip {
  display: flex;
  flex-wrap: wrap;
  align-items: stretch;
  width: fit-content;
  max-width: 100%;
  background: var(--console);
  border: 1px solid var(--grid);
  border-radius: 999px;
  overflow: hidden;
  margin-bottom: clamp(30px, 4vw, 46px);
}
.spec-strip span {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 18px;
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--steel);
  border-left: 1px solid var(--grid);
  white-space: nowrap;
}
.spec-strip span:first-child { border-left: 0; color: var(--phosphor); }
.spec-strip .cube {
  width: 8px;
  height: 8px;
  border-radius: 2px;
  background: var(--ignition);
  flex-shrink: 0;
}
.spec-strip .ok { color: var(--long); }
.dossier-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  gap: clamp(32px, 4.5vw, 68px);
  align-items: start;
}
.dossier-main h2 { letter-spacing: -0.022em; }
.spec-table { margin-top: 28px; border-top: 1px solid var(--grid); }
.spec-row {
  display: grid;
  grid-template-columns: 128px minmax(0, 1fr);
  gap: 16px;
  padding: 13px 0;
  border-bottom: 1px solid rgba(34, 43, 62, 0.55);
  font-size: 0.875rem;
}
.spec-row dt {
  color: var(--muted);
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding-top: 3px;
}
.spec-row dd { color: var(--steel); }
.spec-row dd strong { color: var(--phosphor); font-weight: 600; }
.dossier-side {
  display: grid;
  gap: 20px;
  position: sticky;
  top: calc(var(--nav-h) + 72px);
}
.dossier-side .bot-perf { position: static; top: auto; }

@media (max-width: 980px) {
  .fleet-hero-inner { grid-template-columns: 1fr; }
  .fleet-hero-copy h1 { max-width: none; }
}
@media (max-width: 900px) {
  .dossier-grid { grid-template-columns: 1fr; }
  .dossier-side { position: static; }
  .spec-strip { border-radius: var(--radius-md); }
  .spec-strip span { flex: 1 1 auto; justify-content: center; }
}
@media (max-width: 560px) {
  .spec-row { grid-template-columns: 1fr; gap: 4px; }
}

/* ---------- 17d · FAQ page ---------- */
.faq-container { max-width: 820px; }
.faq-group { margin-top: clamp(40px, 5vw, 56px); }
.faq-cat {
  font-size: var(--fs-eyebrow);
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--ignition);
  padding-bottom: 12px;
  border-bottom: 1px solid var(--grid);
}
details.faq {
  background: var(--console);
  border: 1px solid var(--grid);
  border-radius: var(--radius-md);
  margin-top: 12px;
  transition: border-color 0.25s;
}
details.faq[open] { border-color: var(--muted); }
details.faq summary {
  padding: 18px 22px;
  cursor: pointer;
  font-weight: 600;
  font-size: 1rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  list-style: none;
}
details.faq summary::-webkit-details-marker { display: none; }
details.faq summary::after {
  content: "+";
  flex-shrink: 0;
  font-size: 1.375rem;
  font-weight: 400;
  line-height: 1;
  color: var(--muted);
  transition: transform 0.25s var(--ease), color 0.25s;
}
details.faq[open] summary::after {
  transform: rotate(45deg);
  color: var(--ignition);
}
.faq-body {
  padding: 0 22px 22px;
  color: var(--steel);
  font-size: 0.9375rem;
}
.faq-body p + p { margin-top: 10px; }
.faq-body ul {
  list-style: none;
  margin-top: 10px;
}
.faq-body li {
  position: relative;
  padding-left: 20px;
  margin-top: 8px;
}
.faq-body li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.52em;
  width: 7px;
  height: 7px;
  border-radius: 2px;
  background: var(--elevated);
  border: 1px solid var(--muted);
}
.faq-body strong { color: var(--phosphor); font-weight: 600; }
.faq-note {
  margin-top: 14px;
  padding: 12px 16px;
  background: var(--afterhours);
  border: 1px solid var(--grid);
  border-left: 2px solid var(--ignition);
  border-radius: var(--radius-sm);
  font-size: 0.8125rem;
  color: var(--muted);
}
.faq-table { width: 100%; border-collapse: collapse; margin-top: 12px; }
.faq-table th, .faq-table td {
  text-align: left;
  padding: 10px 12px;
  border-bottom: 1px solid rgba(34, 43, 62, 0.55);
  font-size: 0.875rem;
}
.faq-table th {
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
}
.faq-table td:last-child { font-weight: 600; color: var(--phosphor); font-variant-numeric: tabular-nums; }
.faq-tiers { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin-top: 14px; }
.faq-tier {
  background: var(--afterhours);
  border: 1px solid var(--grid);
  border-radius: var(--radius-sm);
  padding: 14px 16px;
}
.faq-tier .amt { font-weight: 700; color: var(--phosphor); font-size: 1rem; }
.faq-tier .what { font-size: 0.8125rem; color: var(--muted); margin-top: 4px; }
@media (max-width: 640px) {
  .faq-tiers { grid-template-columns: 1fr; }
}

/* ---------- 17e · Contact page ---------- */
.office-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
}
.office-card { overflow: hidden; padding: 0; }
.office-head { padding: 20px 22px; }
.office-city { font-size: 1.0625rem; font-weight: 600; }
.office-country {
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
  margin-top: 2px;
}
.office-addr { color: var(--steel); font-size: 0.875rem; margin-top: 8px; }
.office-map {
  display: block;
  width: 100%;
  height: 260px;
  border: 0;
  border-top: 1px solid var(--grid);
  /* pull the light Google canvas into our dark theme */
  filter: invert(0.9) hue-rotate(180deg) saturate(0.55) brightness(0.92);
}
.contact-email-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px;
  margin-top: 30px;
}
.contact-email {
  font-size: 1.0625rem;
  font-weight: 600;
  color: var(--phosphor);
}
@media (max-width: 720px) {
  .office-grid { grid-template-columns: 1fr; }
}

/* ---------- 17f · Performance page ---------- */
.principles-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
}
.principle { padding: clamp(22px, 2.6vw, 30px); }
.principle h3 { font-size: 1.0625rem; margin-bottom: 8px; }
.principle p { color: var(--steel); font-size: 0.9375rem; }
.growth-card { padding: clamp(24px, 3vw, 36px); }
.growth-top {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 14px 20px;
  margin-bottom: 22px;
}
.growth-title {
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
.growth-title .heat-unit { letter-spacing: 0.06em; }
.balance-pills { display: inline-flex; flex-wrap: wrap; gap: 8px; }
.balance-pill {
  border: 1px solid var(--grid);
  border-radius: 999px;
  padding: 8px 18px;
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--steel);
  transition: border-color 0.2s, color 0.2s, background 0.2s;
}
.balance-pill:hover { border-color: var(--muted); color: var(--phosphor); }
.balance-pill.active {
  background: var(--ignition);
  border-color: var(--ignition);
  color: var(--afterhours);
}
.growth-chart svg { width: 100%; height: auto; }
.growth-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin-top: 24px;
}
.growth-stat {
  background: var(--elevated);
  border: 1px solid var(--grid);
  border-radius: var(--radius-md);
  padding: 16px 14px;
  text-align: center;
}
.growth-stat .v {
  display: block;
  font-size: 1.5rem;
  font-weight: 700;
  letter-spacing: -0.015em;
}
.growth-stat .l {
  display: block;
  font-size: 0.75rem;
  color: var(--muted);
  margin-top: 4px;
  line-height: 1.4;
}
.growth-card .fine { margin-top: 18px; }
@media (max-width: 720px) {
  .principles-grid { grid-template-columns: 1fr; }
  .growth-stats { grid-template-columns: 1fr; }
}

/* ---------- 17g · Trader Studio ---------- */
.studio-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
}
.studio-grid .span2 { grid-column: 1 / -1; }
.tool {
  overflow: hidden;
  padding: 0;
  display: flex;
  flex-direction: column;
}
.tool-body { padding-bottom: 6px; }
/* Bottom-pinned, button-like link so every card's CTA sits at the
   same height and clearly reads as clickable. */
.tool-open {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  align-self: flex-start;
  margin: auto 18px 18px;
  padding: 10px 18px;
  border: 1px solid var(--grid);
  border-radius: var(--radius-sm);
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--ignition);
  transition: border-color 0.2s, background 0.2s, transform 0.2s var(--ease);
}
.tool-open:hover {
  border-color: var(--ignition);
  background: var(--ignition-glow);
  transform: translateY(-1px);
}
.chip--live { color: var(--long); border-color: rgba(14, 203, 129, 0.35); }
.chip--sample { color: var(--ignition); border-color: rgba(255, 79, 0, 0.4); }
.trow {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 18px;
  font-size: 0.8125rem;
  border-top: 1px solid rgba(34, 43, 62, 0.55);
}
.trow:first-child { border-top: 0; }
.trow .sym { font-weight: 600; letter-spacing: 0.02em; }
.trow .sub { color: var(--muted); font-weight: 400; margin-left: 6px; font-size: 0.75rem; }
.trow .px { font-variant-numeric: tabular-nums; color: var(--phosphor); }
.trow .chg { font-weight: 600; font-variant-numeric: tabular-nums; white-space: nowrap; }
.trow .chg.gain { color: var(--long); }
.trow .chg.loss { color: var(--short); }
.trow .right { display: flex; align-items: baseline; gap: 14px; }
.sector-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 6px;
  padding: 14px 18px 18px;
}
.sector-tile {
  border-radius: 8px;
  padding: 11px 6px;
  text-align: center;
}
.sector-tile .s { display: block; font-size: 0.6875rem; font-weight: 600; letter-spacing: 0.04em; }
.sector-tile .p { display: block; font-size: 0.75rem; font-variant-numeric: tabular-nums; margin-top: 3px; color: var(--phosphor); }
.meter {
  flex: 1;
  max-width: 200px;
  height: 6px;
  border-radius: 999px;
  background: rgba(242, 54, 69, 0.32);
  overflow: hidden;
}
.meter i { display: block; height: 100%; background: var(--long); }
.signal-chip {
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  border-radius: 999px;
  padding: 4px 12px;
  white-space: nowrap;
}
.signal-chip.buy { color: var(--long); background: rgba(14, 203, 129, 0.12); }
.signal-chip.sell { color: var(--short); background: rgba(242, 54, 69, 0.12); }
.signal-chip.neutral { color: var(--steel); background: var(--elevated); }
.news-item { padding: 12px 18px; border-top: 1px solid rgba(34, 43, 62, 0.55); }
.news-item:first-child { border-top: 0; }
.news-item a {
  display: block;
  font-size: 0.875rem;
  font-weight: 500;
  line-height: 1.45;
  transition: color 0.2s;
}
.news-item a:hover { color: var(--ignition); }
.news-meta { font-size: 0.75rem; color: var(--muted); margin-top: 4px; }
.tool-note { padding: 12px 18px 16px; font-size: 0.75rem; color: var(--muted); }

/* News category filter (tool page) */
.news-filter {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 16px 18px 0;
}

/* News as an image-card grid (tool page) */
.news-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  padding: 18px;
}
.news-card {
  display: flex;
  flex-direction: column;
  background: var(--afterhours);
  border: 1px solid var(--grid);
  border-radius: var(--radius-md);
  overflow: hidden;
  transition: border-color 0.2s, transform 0.2s var(--ease);
}
.news-card:hover { border-color: var(--muted); transform: translateY(-2px); }
.news-card .thumb {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  background: var(--elevated);
  display: block;
}
.news-card-body {
  padding: 12px 14px 14px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  flex: 1;
}
.news-card-title {
  font-size: 0.875rem;
  font-weight: 600;
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  transition: color 0.2s;
}
.news-card:hover .news-card-title { color: var(--ignition); }
.news-card-meta { font-size: 0.75rem; color: var(--muted); margin-top: auto; }

/* Earnings as date-grouped tiles (tool page) */
.earn-day {
  padding: 18px 18px 4px;
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ignition);
}
.earn-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  padding: 10px 18px 14px;
}
.earn-card {
  background: var(--afterhours);
  border: 1px solid var(--grid);
  border-radius: var(--radius-sm);
  padding: 13px 15px;
  transition: border-color 0.2s;
}
.earn-card:hover { border-color: var(--muted); }
.earn-sym { display: block; font-weight: 700; letter-spacing: 0.02em; }
.earn-est {
  display: block;
  font-size: 0.75rem;
  color: var(--steel);
  margin-top: 4px;
  font-variant-numeric: tabular-nums;
}
@media (max-width: 720px) {
  .news-grid { grid-template-columns: 1fr; }
  .earn-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
.ecal-impact {
  font-size: 0.625rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  border-radius: 4px;
  padding: 3px 8px;
}
.ecal-impact.high { color: var(--short); background: rgba(242, 54, 69, 0.12); }
.ecal-impact.med { color: #F5B50B; background: rgba(245, 181, 11, 0.1); }
.ecal-impact.low { color: var(--steel); background: var(--elevated); }
@media (max-width: 900px) {
  .studio-grid { grid-template-columns: 1fr; }
  .sector-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

/* ---------- 18 · Scroll reveal ---------- */
.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
  transition-delay: var(--d, 0s);
}
.reveal.in { opacity: 1; transform: none; }

/* ---------- 19 · Responsive ---------- */
section[id] { scroll-margin-top: calc(var(--nav-h) + 12px); }

@media (max-width: 980px) {
  .hero-inner { grid-template-columns: 1fr; }
  .hero-copy h1 { max-width: 14ch; }
  .terminal-wrap { max-width: 620px; }
  .terminal-badge { left: 12px; }
  .reviews-grid { grid-template-columns: 1fr; }
  .feature-split { grid-template-columns: 1fr; }
  .feature-visual { position: static; max-width: 560px; }
}
@media (max-width: 720px) {
  .systems-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .hero-stats { flex-wrap: wrap; gap: 16px 0; }
  .tape-label { display: none; }
}
@media (max-width: 480px) {
  .footer-grid { grid-template-columns: 1fr; }
  .hero-stat { padding-right: 18px; }
  .hero-stat + .hero-stat { padding-left: 18px; }
}

/* ---------- 20 · Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .rise, .curve-path, .curve-area, .curve-dot {
    animation: none;
    opacity: 1;
    transform: none;
    stroke-dashoffset: 0;
  }
  .cursor--blink, .live-dot { animation: none; }
  .tape-track { animation: none; }
  .fill-row.fill-enter { opacity: 1; transform: none; }
  .fill-row.flash.in,
  .fill-row.fill-enter.in .fill-result { animation: none; }
  .heat-cell { opacity: 1 !important; transition: none !important; }
  .radar-sweep, .radar-blip { animation: none; }
  .radar-blip { opacity: 0.7; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .btn, .card--hover { transition: none; }
  .comparison-chart .chart-line { transition: none; }
  .comparison-chart .point { transition: none; }
}
