/* EDGE from RPM */

:root {
  --cream: #f5f3ea;
  --paper: #fbfaf5;
  --ink: #0a2412;
  --ink-soft: #3d5544;
  --line: rgba(10, 36, 18, 0.12);

  --g-950: #03150a;
  --g-900: #06230f;
  --g-850: #082c14;
  --g-800: #0b3519;
  --g-700: #0c4a1c;
  --g-600: #15612b;
  --g-400: #3f9d58;
  --turf: #8fd19e;
  --turf-soft: rgba(143, 209, 158, 0.14);

  --on-dark: #f2efe4;
  --on-dark-soft: rgba(242, 239, 228, 0.72);
  --on-dark-faint: rgba(242, 239, 228, 0.45);
  --dark-line: rgba(242, 239, 228, 0.1);

  --ball: #c8282e;
  --ball-deep: #a51d23;
  --amber: #e7b04f;

  --radius-xl: 28px;
  --radius-lg: 18px;
  --radius-md: 12px;
  --gutter: clamp(16px, 3vw, 28px);
  --header-h: 68px;
  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 8px); }

body {
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  font-family: Poppins, system-ui, sans-serif;
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img, svg { display: block; max-width: 100%; }
h1, h2, h3, h4, p { margin: 0; }
h2 {
  font-size: clamp(32px, 4.4vw, 58px);
  line-height: 1.08;
  font-weight: 800;
  letter-spacing: -0.025em;
}
h3 { font-size: 19px; line-height: 1.3; font-weight: 700; letter-spacing: -0.01em; }
a { color: inherit; }
button { font: inherit; color: inherit; }

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

.wrap { width: min(1240px, 100% - 2 * var(--gutter)); margin-inline: auto; }
.lede { font-size: clamp(17px, 1.5vw, 20px); color: var(--ink-soft); max-width: 62ch; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  gap: 8px; min-height: 50px; padding: 0 26px;
  border-radius: 10px; border: 1.5px solid transparent;
  font-size: 15px; font-weight: 600; letter-spacing: 0.01em;
  text-decoration: none; cursor: pointer;
  transition: background 0.2s, color 0.2s, border-color 0.2s, transform 0.2s var(--ease);
}
.btn:active { transform: translateY(1px); }
.btn-ball { background: var(--ball); color: #fff; }
.btn-ball:hover { background: var(--ball-deep); }
.btn-ghost { border-color: var(--ball); color: var(--ball); background: transparent; }
.btn-ghost:hover { background: var(--ball); color: #fff; }
.btn-sm { min-height: 40px; padding: 0 18px; font-size: 14px; }
.btn-line { border-color: rgba(12, 74, 28, 0.3); color: var(--g-700); background: transparent; }
.btn-line:hover { border-color: var(--g-700); background: var(--g-700); color: var(--on-dark); }
:focus-visible { outline: 2px solid var(--g-400); outline-offset: 3px; }

/* Header */
.site-header {
  position: fixed; inset: 0 0 auto 0; z-index: 50;
  height: var(--header-h);
  display: flex; align-items: center; gap: 32px;
  padding: 0 clamp(16px, 3vw, 40px);
  background: rgba(251, 250, 245, 0.82);
  backdrop-filter: saturate(1.4) blur(14px);
  -webkit-backdrop-filter: saturate(1.4) blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s, box-shadow 0.3s;
}
.site-header.is-scrolled { border-bottom-color: var(--line); box-shadow: 0 6px 24px -18px rgba(6, 35, 15, 0.5); }
.brand img { height: 38px; width: auto; transition: opacity 0.35s var(--ease), transform 0.35s var(--ease); }
.js .site-header:not(.show-brand) .brand img { opacity: 0; transform: translateY(-6px); }
.nav { display: flex; gap: 28px; margin-left: auto; }
.nav a {
  font-size: 14.5px; font-weight: 500; text-decoration: none; color: var(--ink-soft);
  transition: color 0.2s;
}
.nav a:hover { color: var(--g-700); }
.header-end { display: flex; align-items: center; gap: 20px; }
.nav + .header-end { margin-left: 8px; }

/* Hero */
.hero {
  position: relative;
  min-height: 100svh;
  display: grid; place-items: center;
  padding: calc(var(--header-h) + 24px) var(--gutter) 96px;
  overflow: hidden;
  background:
    radial-gradient(ellipse 70% 60% at 50% 46%, rgba(251, 250, 245, 0) 0%, rgba(245, 243, 234, 0.85) 100%),
    repeating-linear-gradient(90deg, rgba(12, 74, 28, 0.028) 0 90px, rgba(12, 74, 28, 0) 90px 180px),
    var(--cream);
}
.hero-canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
.hero-inner {
  position: relative; z-index: 1;
  display: flex; flex-direction: column; align-items: center; text-align: center;
  width: 100%;
}
.hero-logo {
  width: min(860px, 90vw); height: auto;
  filter: drop-shadow(0 22px 30px rgba(6, 35, 15, 0.16));
}
.hero-tag {
  position: relative; isolation: isolate;
  margin-top: clamp(28px, 4vh, 48px);
  font-size: clamp(25px, 3.5vw, 50px);
  line-height: 1.04; font-weight: 900; text-transform: uppercase;
  letter-spacing: -0.01em;
  color: var(--g-800);
}
.hero-tag::before {
  content: ""; position: absolute; inset: -40px -70px -90px; z-index: -1;
  background: radial-gradient(closest-side, rgba(245, 243, 234, 0.94) 55%, rgba(245, 243, 234, 0));
}

.hero-scroll {
  position: absolute; left: 50%; bottom: 26px; z-index: 1;
  translate: -50% 0;
  color: var(--g-700);
  animation: nudge 2.2s var(--ease) infinite;
}
@keyframes nudge { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(7px); } }

/* Intro */
.intro { padding: clamp(80px, 11vw, 150px) 0 clamp(70px, 9vw, 120px); text-align: center; }
.intro h2 { color: var(--g-800); max-width: 15ch; margin-inline: auto; }
.intro h2 em { font-style: normal; color: var(--g-600); }
.intro .lede { margin: 24px auto 0; }
.cta-row { display: flex; flex-wrap: wrap; justify-content: center; gap: 14px; margin-top: 36px; }

/* Dark panels */
.panel {
  position: relative;
  width: min(1320px, 100% - 2 * var(--gutter));
  margin-inline: auto;
  border-radius: var(--radius-xl);
  overflow: hidden;
  isolation: isolate;
}
.panel-dark {
  background: linear-gradient(165deg, var(--g-800) 0%, var(--g-900) 48%, var(--g-950) 100%);
  color: var(--on-dark);
  padding: clamp(64px, 8vw, 110px) clamp(20px, 5vw, 72px);
}
.panel-field {
  position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background:
    radial-gradient(circle at 50% 22%, transparent 0 239px, rgba(242, 239, 228, 0.05) 240px 241px, transparent 242px),
    radial-gradient(circle at 50% 22%, transparent 0 539px, rgba(242, 239, 228, 0.045) 540px 541px, transparent 542px),
    radial-gradient(circle at 50% 22%, transparent 0 899px, rgba(242, 239, 228, 0.04) 900px 901px, transparent 902px),
    repeating-linear-gradient(90deg, rgba(242, 239, 228, 0.012) 0 110px, transparent 110px 220px);
}
.block + .block { margin-top: clamp(80px, 10vw, 130px); }
.block-center { text-align: center; }
.block-center > p { margin: 18px auto 0; max-width: 64ch; color: var(--on-dark-soft); font-size: clamp(16px, 1.4vw, 18.5px); }

.stats {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(14px, 2vw, 24px);
  margin: 48px auto 0; max-width: 1020px;
}
.stat {
  padding: 34px 22px 30px;
  border-radius: var(--radius-lg);
  background: rgba(3, 21, 10, 0.55);
  border: 1px solid var(--dark-line);
  text-align: center;
}
.stat strong {
  display: block;
  font-size: clamp(34px, 4vw, 52px); line-height: 1.05; font-weight: 800; letter-spacing: -0.03em;
  color: var(--on-dark);
}
.stat span { display: block; margin-top: 10px; color: var(--on-dark-soft); font-size: 15.5px; line-height: 1.45; }

/* Why cards */
.why-grid {
  display: grid; grid-template-columns: repeat(2, 1fr);
  gap: clamp(28px, 4vw, 56px) clamp(20px, 3.5vw, 48px);
  margin: 56px auto 0; max-width: 1080px;
}
.why-card { text-align: center; }
.why-card h3 { margin-top: 26px; color: var(--turf); font-size: clamp(19px, 1.7vw, 23px); }
.why-card p { margin: 8px auto 0; color: var(--on-dark-soft); max-width: 40ch; font-size: 15.5px; }
.viz {
  position: relative;
  aspect-ratio: 16 / 10;
  border-radius: var(--radius-lg);
  background:
    radial-gradient(ellipse at 50% 120%, rgba(63, 157, 88, 0.22), transparent 60%),
    linear-gradient(180deg, rgba(11, 53, 25, 0.9), rgba(3, 21, 10, 0.95));
  border: 1px solid var(--dark-line);
  overflow: hidden;
  display: flex; align-items: center; justify-content: center;
}

/* viz: over */
.viz-over { flex-direction: column; gap: 26px; padding: 26px; }
.over-head { width: min(100%, 400px); display: flex; justify-content: space-between; font-size: 14px; color: var(--on-dark-faint); font-weight: 500; }
.over-prob b { color: var(--on-dark); font-variant-numeric: tabular-nums; }
.balls { display: flex; gap: clamp(8px, 1.6vw, 16px); }
.balls span {
  width: clamp(38px, 5vw, 56px); aspect-ratio: 1; border-radius: 50%;
  display: grid; place-items: center;
  font-weight: 700; font-size: clamp(15px, 1.6vw, 20px);
  border: 1.5px solid rgba(242, 239, 228, 0.18);
  color: var(--on-dark-faint);
  transition: background 0.35s, color 0.35s, border-color 0.35s, transform 0.35s var(--ease);
}
.balls span.on { color: var(--on-dark); border-color: rgba(242, 239, 228, 0.5); transform: scale(1.04); }
.balls span.on[data-r="4"] { background: var(--g-400); border-color: var(--g-400); color: #fff; }
.balls span.on[data-r="6"] { background: var(--turf); border-color: var(--turf); color: var(--g-900); }
.balls span.on[data-r="W"] { background: var(--ball); border-color: var(--ball); color: #fff; }
.over-track { width: min(100%, 400px); height: 3px; border-radius: 3px; background: rgba(242, 239, 228, 0.1); overflow: hidden; }
.over-track i { display: block; height: 100%; width: 0; background: var(--turf); transition: width 0.6s var(--ease); }

/* viz: zones */
.viz-zones { gap: clamp(18px, 3vw, 36px); padding: 22px clamp(18px, 3vw, 36px); }
.zone-wheel { width: 46%; max-width: 210px; flex: none; }
.zone-bars { flex: 1; display: grid; gap: 16px; max-width: 220px; text-align: left; }
.zone-bars div { display: grid; grid-template-columns: 1fr auto; row-gap: 6px; font-size: 13.5px; color: var(--on-dark-soft); }
.zone-bars i { grid-column: 1 / -1; grid-row: 2; height: 5px; border-radius: 5px; background: rgba(242, 239, 228, 0.1); position: relative; overflow: hidden; }
.zone-bars i::after { content: ""; position: absolute; inset: 0 auto 0 0; width: var(--w); background: var(--turf); border-radius: inherit; }
.zone-bars b { color: var(--on-dark); font-weight: 600; font-variant-numeric: tabular-nums; }

/* viz: worm */
.viz-worm { flex-direction: column; padding: 18px 22px 16px; align-items: stretch; }
.viz-worm svg { flex: 1; width: 100%; min-height: 0; overflow: visible; }
.worm-read { display: flex; justify-content: space-between; font-size: 12.5px; color: var(--on-dark-faint); margin-top: 6px; }
.worm-read .now { color: var(--on-dark-soft); }
.worm-read b { color: var(--turf); }
.mini-line { fill: none; stroke: var(--turf); stroke-width: 2.5; stroke-linecap: round; stroke-linejoin: round; }
.mini-area { fill: url(#mini-grad); }
.js .viz-worm .mini-line { stroke-dasharray: var(--len); stroke-dashoffset: var(--len); }
.viz-worm.in .mini-line { animation: draw 2.4s var(--ease) forwards; }
@keyframes draw { to { stroke-dashoffset: 0; } }

/* viz: chips */
.viz-chips { flex-wrap: wrap; align-content: center; gap: 10px; padding: 22px; }
.chip {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 8px 12px 8px 14px; border-radius: 999px;
  background: rgba(242, 239, 228, 0.06); border: 1px solid var(--dark-line);
  font-size: 13.5px; font-weight: 500; color: var(--on-dark-soft); white-space: nowrap;
}
.chip b { color: var(--g-900); background: var(--turf); padding: 1px 8px; border-radius: 6px; font-weight: 700; font-variant-numeric: tabular-nums; }

/* Dashboard section */
.dash-section { padding: clamp(90px, 11vw, 150px) 0 clamp(70px, 9vw, 110px); }
.dash-head { text-align: center; }
.dash-head h2 { color: var(--g-800); }
.dash-head .lede { margin: 20px auto 0; }
.dash-layout {
  display: grid; grid-template-columns: 300px minmax(0, 1fr); gap: clamp(20px, 3vw, 40px);
  margin-top: clamp(40px, 5vw, 64px); align-items: start;
}
.dash-features { display: grid; gap: 4px; position: sticky; top: calc(var(--header-h) + 24px); }
.feat {
  display: block; text-align: left; cursor: pointer;
  padding: 16px 18px; border-radius: var(--radius-md);
  background: transparent; border: 0;
  transition: background 0.25s, box-shadow 0.25s;
}
.feat strong { display: block; font-size: 16.5px; font-weight: 700; color: var(--ink); line-height: 1.35; }
.feat span { display: block; margin-top: 4px; font-size: 14.5px; line-height: 1.5; color: var(--ink-soft); }
.feat:hover { background: rgba(12, 74, 28, 0.05); }
.feat.is-active { background: var(--paper); box-shadow: 0 10px 30px -22px rgba(6, 35, 15, 0.5); }
.feat.is-active strong { color: var(--g-700); }
.feat-more { padding: 14px 20px 0; font-size: 14.5px; color: var(--ink-soft); }
.dash-note { margin-top: 18px; text-align: right; font-size: 13px; color: var(--ink-soft); opacity: 0.8; }

/* Console */
.console {
  --c-bg: #041a0c;
  --c-panel: #072511;
  --c-line: rgba(242, 239, 228, 0.09);
  background: var(--c-bg);
  color: var(--on-dark);
  border-radius: var(--radius-lg);
  border: 1px solid rgba(3, 21, 10, 0.8);
  box-shadow: 0 50px 80px -50px rgba(3, 21, 10, 0.75), 0 20px 40px -30px rgba(3, 21, 10, 0.5);
  overflow: hidden;
  font-size: 14px; line-height: 1.45;
  font-variant-numeric: tabular-nums;
}
.c-top {
  display: flex; align-items: center; gap: 18px;
  padding: 14px 18px; border-bottom: 1px solid var(--c-line);
  background: linear-gradient(180deg, rgba(12, 74, 28, 0.35), rgba(12, 74, 28, 0));
}
.c-brand { font-size: 13px; color: var(--on-dark-faint); letter-spacing: 0.02em; }
.c-brand b { color: var(--on-dark); font-weight: 800; letter-spacing: 0.04em; }
.c-fixture { display: flex; flex-direction: column; line-height: 1.25; padding-left: 18px; border-left: 1px solid var(--c-line); }
.c-fixture b { font-size: 14.5px; font-weight: 600; }
.c-fixture span { font-size: 12px; color: var(--on-dark-faint); }
.c-state { margin-left: auto; display: flex; align-items: center; gap: 12px; }
.pill-live {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 3px 10px 3px 8px; border-radius: 999px;
  background: rgba(200, 40, 46, 0.16); color: #ff8f8a;
  font-size: 11.5px; font-weight: 600; letter-spacing: 0.04em; text-transform: uppercase;
}
.pill-live::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: #ff5a55; animation: blink 1.4s infinite; }
@keyframes blink { 50% { opacity: 0.3; } }
.c-score { font-weight: 700; font-size: 15px; }
.c-score small { font-weight: 500; color: var(--on-dark-faint); font-size: 12px; margin-left: 4px; }

.c-body { display: grid; grid-template-columns: minmax(0, 1.45fr) minmax(0, 1fr); }
.c-main { padding: 14px 16px 16px; border-right: 1px solid var(--c-line); min-width: 0; }
.c-side { display: flex; flex-direction: column; min-width: 0; }

.c-tabs { display: flex; gap: 4px; padding: 3px; border-radius: 10px; background: rgba(242, 239, 228, 0.05); width: max-content; max-width: 100%; }
.c-tabs button {
  border: 0; background: transparent; cursor: pointer;
  padding: 7px 12px; border-radius: 8px;
  font-size: 13px; font-weight: 500; color: var(--on-dark-soft); white-space: nowrap;
  transition: background 0.2s, color 0.2s;
}
.c-tabs button:hover { color: var(--on-dark); }
.c-tabs button[aria-selected="true"] { background: var(--g-700); color: var(--on-dark); }

.c-table-wrap { margin-top: 10px; }
.c-table { width: 100%; border-collapse: collapse; }
.c-table th {
  font-size: 11.5px; font-weight: 500; color: var(--on-dark-faint); text-align: left;
  padding: 8px 8px; border-bottom: 1px solid var(--c-line); white-space: nowrap;
}
.c-table td { padding: 0 8px; height: 40px; border-bottom: 1px solid var(--c-line); white-space: nowrap; transition: background 0.25s; }
.c-table .num { text-align: right; }
.c-table tbody tr { cursor: pointer; transition: background 0.2s; }
.c-table tbody tr:hover td { background: rgba(242, 239, 228, 0.035); }
.c-table tbody tr.is-sel td { background: rgba(143, 209, 158, 0.08); }
.c-table tbody tr.is-sel td:first-child { box-shadow: inset 3px 0 0 var(--turf); }
.c-table td:first-child { font-weight: 600; }
.c-table .p-edge { color: var(--turf); font-weight: 600; }
.c-table .p-fair, .c-table .p-mkt { color: var(--on-dark-soft); }
.c-table .p-yours b {
  display: inline-block; min-width: 58px; text-align: center;
  padding: 3px 8px; border-radius: 7px;
  background: rgba(242, 239, 228, 0.08); font-weight: 700; color: var(--on-dark);
  transition: background 0.3s, color 0.3s;
}
.c-table .p-yours b.bump { animation: bump 0.4s var(--ease); }
@keyframes bump { 40% { background: rgba(143, 209, 158, 0.35); } }
.st { display: inline-flex; align-items: center; gap: 6px; font-size: 12.5px; font-weight: 500; }
.st::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: currentColor; flex: none; }
.st small { color: var(--on-dark-faint); font-size: 11.5px; }
.st-best { color: var(--turf); }
.st-match { color: #b7e4c0; }
.st-short { color: var(--on-dark-faint); }
.st-floor { color: var(--amber); }

.c-controls {
  display: grid; grid-template-columns: 1fr 1fr; gap: 12px 18px; align-items: center;
  margin-top: 12px; padding: 14px; border-radius: 12px;
  background: var(--c-panel); border: 1px solid var(--c-line);
}
.ctl { display: grid; gap: 6px; padding: 4px 6px; font-size: 12.5px; color: var(--on-dark-soft); border-radius: 8px; transition: box-shadow 0.3s; }
.ctl-row { display: flex; justify-content: space-between; gap: 8px; white-space: nowrap; }
.ctl output { color: var(--on-dark); font-weight: 700; }
.ctl input[type="range"] {
  -webkit-appearance: none; appearance: none; width: 100%; height: 22px; background: transparent; cursor: pointer; margin: 0;
}
.ctl input[type="range"]::-webkit-slider-runnable-track {
  height: 4px; border-radius: 4px;
  background: linear-gradient(90deg, var(--turf) var(--fill, 30%), rgba(242, 239, 228, 0.14) var(--fill, 30%));
}
.ctl input[type="range"]::-moz-range-track { height: 4px; border-radius: 4px; background: rgba(242, 239, 228, 0.14); }
.ctl input[type="range"]::-moz-range-progress { height: 4px; border-radius: 4px; background: var(--turf); }
.ctl input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none; width: 16px; height: 16px; margin-top: -6px; border-radius: 50%;
  background: var(--on-dark); border: 3px solid var(--g-600); box-shadow: 0 2px 6px rgba(0, 0, 0, 0.4);
}
.ctl input[type="range"]::-moz-range-thumb {
  width: 12px; height: 12px; border-radius: 50%; background: var(--on-dark); border: 3px solid var(--g-600);
}
.ctl-toggle { display: flex; align-items: center; gap: 10px; line-height: 1.25; }
.ctl-toggle span { white-space: nowrap; color: var(--on-dark); font-weight: 500; }
.ctl-toggle small { display: block; color: var(--on-dark-faint); font-weight: 400; font-size: 11.5px; }
.switch {
  position: relative; flex: none; width: 38px; height: 22px; border-radius: 999px; cursor: pointer;
  border: 0; background: rgba(242, 239, 228, 0.18); transition: background 0.25s;
}
.switch i { position: absolute; top: 3px; left: 3px; width: 16px; height: 16px; border-radius: 50%; background: var(--on-dark); transition: transform 0.25s var(--ease); }
.switch[aria-checked="true"] { background: var(--g-400); }
.switch[aria-checked="true"] i { transform: translateX(16px); }
.ctl-book { display: flex; align-items: baseline; justify-content: flex-end; gap: 10px; padding: 4px 6px; font-size: 12.5px; color: var(--on-dark-soft); white-space: nowrap; }
.ctl-book b { font-size: 18px; font-weight: 700; color: var(--on-dark); }

.c-chart { padding: 14px 16px 10px; border-bottom: 1px solid var(--c-line); transition: box-shadow 0.3s; }
.c-h { display: flex; justify-content: space-between; align-items: center; gap: 10px; font-size: 12.5px; color: var(--on-dark-soft); font-weight: 500; }
.legend { display: inline-flex; align-items: center; gap: 6px; color: var(--on-dark-faint); font-size: 11.5px; }
.legend i { width: 14px; height: 0; border-top: 2.5px solid var(--turf); margin-left: 6px; }
.legend i.lg-mkt { border-top: 2px dashed var(--on-dark-soft); }
.worm-wrap { position: relative; margin-top: 8px; }
#worm { width: 100%; height: auto; overflow: visible; }
.w-grid { stroke: var(--c-line); stroke-width: 1; }
.w-label { fill: var(--on-dark-faint); font-size: 10px; font-family: Poppins, sans-serif; }
.w-edge { fill: none; stroke: var(--turf); stroke-width: 2.5; stroke-linejoin: round; stroke-linecap: round; }
.w-mkt { fill: none; stroke: var(--on-dark-soft); stroke-width: 1.6; stroke-dasharray: 4 4; stroke-linejoin: round; }
.w-area { fill: url(#w-grad); }
.w-wkt { fill: var(--ball); }
.w-now { fill: var(--turf); }
.w-cross { stroke: rgba(242, 239, 228, 0.35); stroke-width: 1; }
.worm-tip {
  position: absolute; top: 0; transform: translateX(-50%);
  padding: 6px 9px; border-radius: 8px; pointer-events: none;
  background: rgba(3, 21, 10, 0.95); border: 1px solid var(--c-line);
  font-size: 11.5px; line-height: 1.4; white-space: nowrap; color: var(--on-dark-soft);
}
.worm-tip b { color: var(--on-dark); }

.c-why { padding: 14px 16px 16px; flex: 1; transition: box-shadow 0.3s; }
.why-top { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; }
.why-k { font-size: 12.5px; color: var(--on-dark-soft); font-weight: 500; }
.why-top h4 { font-size: 16px; font-weight: 700; }
.why-nums { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; margin-top: 10px; }
.why-nums div { padding: 8px 8px 7px; border-radius: 9px; background: var(--c-panel); border: 1px solid var(--c-line); }
.why-nums small { display: block; font-size: 10.5px; color: var(--on-dark-faint); }
.why-nums b { font-size: 15px; font-weight: 700; white-space: nowrap; }
.why-nums b .u { display: inline; margin-left: 3px; font-size: 10.5px; font-weight: 500; color: inherit; opacity: 0.8; }
.why-nums b.pos { color: var(--turf); }
.why-nums b.neg { color: #ff8f8a; }
.why-sub { margin-top: 14px; font-size: 11.5px; color: var(--on-dark-faint); }
.drivers { display: grid; gap: 7px; margin-top: 8px; }
.drv { display: grid; grid-template-columns: minmax(0, 1fr) 76px 62px; align-items: center; gap: 10px; font-size: 12.5px; color: var(--on-dark-soft); }
.drv span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.drv-bar { position: relative; height: 6px; border-radius: 6px; background: rgba(242, 239, 228, 0.07); }
.drv-bar::before { content: ""; position: absolute; left: 50%; top: -3px; bottom: -3px; width: 1px; background: rgba(242, 239, 228, 0.25); }
.drv-bar i { position: absolute; top: 0; bottom: 0; border-radius: 6px; background: var(--turf); transition: left 0.4s var(--ease), width 0.4s var(--ease); }
.drv-bar i.neg { background: #ff8f8a; }
.drv b { text-align: right; color: var(--on-dark); font-weight: 600; font-size: 12px; white-space: nowrap; }
.hist { display: flex; align-items: flex-end; gap: 2px; height: 74px; margin-top: 8px; }
.hist i { flex: 1; border-radius: 2px 2px 0 0; background: rgba(242, 239, 228, 0.14); transition: background 0.3s; }
.hist i.hot { background: var(--turf); }
.hist-x { display: flex; justify-content: space-between; font-size: 10.5px; color: var(--on-dark-faint); margin-top: 4px; }

/* Focus highlighting driven by the feature list */
.console [data-zone] { transition: box-shadow 0.35s var(--ease), background 0.35s; }
.console[data-focus="why"] .c-why,
.console[data-focus="margin"] .ctl[data-zone="margin"],
.console[data-focus="longshot"] .ctl[data-zone="longshot"],
.console[data-focus="match"] .ctl[data-zone="match"],
.console[data-focus="market"] .c-chart {
  box-shadow: inset 0 0 0 2px var(--turf);
  background-color: rgba(143, 209, 158, 0.06);
}
.console[data-focus="margin"] .ctl[data-zone="margin"],
.console[data-focus="longshot"] .ctl[data-zone="longshot"],
.console[data-focus="match"] .ctl[data-zone="match"] {
  box-shadow: 0 0 0 2px var(--turf), 0 0 0 8px rgba(143, 209, 158, 0.12);
}
.console[data-focus="market"] [data-zone="market"],
.console[data-focus="match"] [data-zone="match"] { background-color: rgba(143, 209, 158, 0.1); }
.console[data-focus="longshot"] tr.is-long td { background-color: rgba(231, 176, 79, 0.08); }

/* API */
.api { padding: clamp(30px, 5vw, 60px) 0 clamp(90px, 10vw, 140px); }
.api-layout {
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.08fr);
  gap: clamp(36px, 5vw, 80px); align-items: center;
}
.api-copy h2 { color: var(--g-800); }
.api-copy .lede { margin-top: 22px; }
.api-points { list-style: none; padding: 0; margin: 32px 0 0; display: grid; gap: 18px; }
.api-points li { position: relative; padding-left: 36px; }
.api-points li::before {
  content: ""; position: absolute; left: 0; top: 2px; width: 22px; height: 22px; border-radius: 50%;
  background: var(--g-700);
}
.api-points li::after {
  content: ""; position: absolute; left: 8px; top: 7px; width: 5px; height: 9px;
  border: solid var(--on-dark); border-width: 0 2px 2px 0; transform: rotate(45deg);
}
.api-points strong { display: block; font-size: 17px; font-weight: 700; color: var(--ink); line-height: 1.4; }
.api-points span { display: block; margin-top: 2px; font-size: 15.5px; color: var(--ink-soft); }
.api-sub { margin-top: 28px; font-size: 15px; font-weight: 500; color: var(--ink-soft); }
.cta-left { justify-content: flex-start; margin-top: 16px; }

.api-visual {
  position: relative; overflow: hidden;
  padding: clamp(22px, 3vw, 36px);
  border-radius: var(--radius-xl);
  background: linear-gradient(165deg, var(--g-800) 0%, var(--g-900) 55%, var(--g-950) 100%);
  color: var(--on-dark);
  box-shadow: 0 50px 80px -50px rgba(3, 21, 10, 0.75);
}
.api-chain {
  display: grid; align-items: center;
  grid-template-columns: minmax(0, 1fr) minmax(22px, 0.42fr) minmax(0, 1fr) minmax(22px, 0.42fr) minmax(0, 1fr);
}
.api-node {
  padding: 16px 8px 14px; border-radius: 16px; text-align: center;
  background: rgba(3, 21, 10, 0.55); border: 1px solid var(--dark-line);
}
.api-node svg { width: 30px; height: 30px; margin: 0 auto; color: var(--turf); }
.api-node b { display: block; margin-top: 10px; font-size: 14px; font-weight: 700; line-height: 1.3; }
.api-node span { display: block; margin-top: 3px; font-size: 11.5px; line-height: 1.35; color: var(--on-dark-faint); }
.api-hub { background: var(--g-700); border-color: rgba(143, 209, 158, 0.5); }
.api-hub svg { color: var(--on-dark); }
.api-hub span { color: var(--on-dark-soft); }
.api-pipe {
  position: relative; height: 2px;
  background: repeating-linear-gradient(90deg, rgba(143, 209, 158, 0.45) 0 4px, transparent 4px 8px);
}
.api-pipe i {
  position: absolute; top: 50%; left: 0; width: 7px; height: 7px; margin-top: -3.5px; border-radius: 50%;
  background: var(--turf); opacity: 0; animation: packet 1.8s linear infinite;
}
.api-pipe i:nth-child(2) { animation-delay: 0.6s; }
.api-pipe i:nth-child(3) { animation-delay: 1.2s; }
@keyframes packet {
  0% { left: 0; opacity: 0; }
  15%, 85% { opacity: 1; }
  100% { left: calc(100% - 7px); opacity: 0; }
}
.api-feed-head { display: flex; align-items: center; gap: 8px; margin-top: 28px; font-size: 13px; font-weight: 600; }
.api-feed-head small { margin-left: auto; font-weight: 400; color: var(--on-dark-faint); }
.api-live { width: 7px; height: 7px; border-radius: 50%; background: #ff5a55; animation: blink 1.4s infinite; }
.api-feed {
  display: grid; align-content: start; gap: 8px; margin-top: 12px; height: 236px; overflow: hidden;
  -webkit-mask-image: linear-gradient(180deg, #000 72%, transparent);
  mask-image: linear-gradient(180deg, #000 72%, transparent);
}
.api-msg {
  display: flex; align-items: center; gap: 12px;
  padding: 10px 12px; border-radius: 12px;
  background: rgba(242, 239, 228, 0.05); border: 1px solid var(--dark-line);
  font-size: 13px; font-variant-numeric: tabular-nums;
}
.api-msg.is-new { animation: msg-in 0.5s var(--ease); }
@keyframes msg-in { from { opacity: 0; transform: translateY(-12px); } }
.m-over { flex: none; width: 38px; font-weight: 700; color: var(--turf); }
.m-market { flex: 1; min-width: 0; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.m-prices { display: flex; gap: 10px; flex: none; }
.m-prices span { font-size: 12px; color: var(--on-dark-faint); white-space: nowrap; }
.m-prices b {
  margin-left: 5px; padding: 1px 7px; border-radius: 6px;
  background: var(--turf); color: var(--g-900); font-weight: 700;
}

/* Markets */
.markets { padding: clamp(40px, 6vw, 70px) 0 clamp(90px, 11vw, 150px); }
.markets-head { text-align: center; }
.markets-head h2 { color: var(--g-800); }
.markets-head .lede { margin: 20px auto 0; }
.market-groups {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px;
  margin-top: clamp(40px, 5vw, 60px);
}
.mg {
  padding: 26px 24px 28px; border-radius: var(--radius-lg);
  background: var(--paper); border: 1px solid var(--line);
}
.mg h3 { color: var(--g-700); font-size: 20px; }
.mg ul { list-style: none; padding: 0; margin: 16px 0 0; display: grid; gap: 2px; }
.mg li { padding: 8px 0; border-bottom: 1px solid var(--line); font-size: 15.5px; font-weight: 500; color: var(--ink); }
.mg li:last-child { border-bottom: 0; }
.coverage { margin-top: 28px; text-align: center; font-size: 15.5px; color: var(--ink-soft); }

/* How it works */
.flow {
  position: relative;
  display: grid; grid-template-columns: repeat(4, 1fr); gap: clamp(16px, 2.5vw, 32px);
  margin: 56px auto 0; max-width: 1120px;
}
.flow::before {
  content: ""; position: absolute; top: 40px; left: 12.5%; right: 12.5%; height: 1px;
  background: repeating-linear-gradient(90deg, rgba(143, 209, 158, 0.5) 0 6px, transparent 6px 12px);
}
.flow-step { position: relative; text-align: center; }
.flow-icon {
  width: 80px; height: 80px; margin: 0 auto; border-radius: 50%;
  display: grid; place-items: center;
  background: var(--g-850); border: 1px solid rgba(143, 209, 158, 0.35); color: var(--turf);
}
.flow-icon svg { width: 38px; height: 38px; }
.flow-step h3 { margin-top: 20px; color: var(--on-dark); }
.flow-step p { margin-top: 8px; color: var(--on-dark-soft); font-size: 15px; line-height: 1.6; }

/* Contact */
.contact { padding: clamp(70px, 9vw, 120px) 0; }
.contact-card {
  width: min(1320px, 100% - 2 * var(--gutter)); margin-inline: auto;
  display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr);
  border-radius: var(--radius-xl); overflow: hidden;
  background: linear-gradient(140deg, var(--g-700) 0%, var(--g-900) 70%);
  color: var(--on-dark);
}
.contact-copy {
  padding: clamp(40px, 6vw, 80px) clamp(22px, 5vw, 72px);
  display: flex; flex-direction: column; align-items: flex-start; justify-content: center;
}
.contact-copy h2 { color: var(--on-dark); }
.contact-copy p { margin-top: 24px; max-width: 36ch; color: var(--on-dark-soft); }
.contact-copy .btn { margin-top: 28px; max-width: 100%; padding-inline: 18px; overflow-wrap: anywhere; }

.contact-aside {
  position: relative;
  padding: clamp(40px, 6vw, 80px) clamp(22px, 5vw, 64px);
  background:
    radial-gradient(circle at 70% 75%, transparent 0 119px, rgba(242, 239, 228, 0.08) 120px 121px, transparent 122px),
    radial-gradient(circle at 70% 75%, transparent 0 239px, rgba(242, 239, 228, 0.06) 240px 241px, transparent 242px),
    rgba(3, 21, 10, 0.35);
  border-left: 1px solid var(--dark-line);
  display: flex; flex-direction: column;
}
.contact-aside h3 { font-size: clamp(22px, 2.2vw, 28px); font-weight: 800; letter-spacing: -0.02em; }
.contact-aside ul { list-style: none; padding: 0; margin: 22px 0 0; display: grid; gap: 14px; }
.contact-aside li { position: relative; padding-left: 30px; color: var(--on-dark-soft); }
.contact-aside li::before {
  content: ""; position: absolute; left: 0; top: 0.42em; width: 16px; height: 16px; border-radius: 50%;
  background: var(--ball); box-shadow: inset 0 0 0 4px var(--ball), inset 0 0 0 5px rgba(255, 255, 255, 0.55);
}
.aside-ticket {
  margin-top: 44px; align-self: flex-start;
  width: min(100%, 300px); padding: 16px 18px 14px; border-radius: 14px;
  background: var(--paper); color: var(--ink);
  box-shadow: 0 30px 50px -30px rgba(0, 0, 0, 0.6);
  transform: rotate(-2.5deg);
  font-variant-numeric: tabular-nums;
}
.aside-ticket div { display: flex; justify-content: space-between; align-items: center; padding: 8px 0; border-bottom: 1px solid var(--line); font-weight: 600; }
.aside-ticket b { background: var(--g-700); color: var(--on-dark); padding: 3px 12px; border-radius: 7px; }
.aside-ticket small { display: block; margin-top: 10px; font-size: 12px; color: var(--ink-soft); font-weight: 500; }

/* Footer */
.site-footer {
  display: flex; flex-direction: column; align-items: center; gap: 14px;
  padding: 64px var(--gutter) 40px; text-align: center;
  border-top: 1px solid var(--line); background: var(--paper);
  font-size: 14px; color: var(--ink-soft);
}
.footer-logo { width: 220px; height: auto; }
.footer-rpm { display: block; width: 120px; height: auto; margin-top: 4px; }
.site-footer a { color: var(--g-700); font-weight: 600; text-decoration: none; }
.site-footer a:hover { text-decoration: underline; }
.site-footer p { margin-top: 14px; font-size: 13px; }

/* Reveal */
.js .reveal { opacity: 0; transform: translateY(26px); transition: opacity 0.9s var(--ease), transform 0.9s var(--ease); }
.js .reveal.in { opacity: 1; transform: none; }

/* Responsive */
@media (max-width: 1120px) {
  .dash-layout { grid-template-columns: 1fr; }
  .dash-features { position: static; grid-template-columns: repeat(2, 1fr); order: 2; }
  .feat-more { grid-column: 1 / -1; }
  .market-groups { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 960px) {
  .nav { display: none; }
  .header-end, .nav + .header-end { margin-left: auto; }
  .c-body { grid-template-columns: 1fr; }
  .c-main { border-right: 0; border-bottom: 1px solid var(--c-line); }
  .contact-card { grid-template-columns: 1fr; }
  .api-layout { grid-template-columns: 1fr; }
  .contact-aside { border-left: 0; border-top: 1px solid var(--dark-line); }
}
@media (max-width: 760px) {
  body { font-size: 16px; }
  .stats { grid-template-columns: 1fr; max-width: 420px; }
  .why-grid { grid-template-columns: 1fr; }
  .flow { grid-template-columns: 1fr; max-width: 480px; gap: 30px; }
  .flow::before { top: 32px; bottom: 32px; left: 32px; right: auto; width: 1px; height: auto;
    background: repeating-linear-gradient(180deg, rgba(143, 209, 158, 0.5) 0 6px, transparent 6px 12px); }
  .flow-step { display: grid; grid-template-columns: 64px 1fr; column-gap: 18px; text-align: left; }
  .flow-icon { grid-row: span 2; width: 64px; height: 64px; margin: 0; }
  .flow-icon svg { width: 30px; height: 30px; }
  .flow-step h3 { margin-top: 4px; }
  .flow-step p { margin-top: 4px; }
  .dash-features { grid-template-columns: 1fr; }
  .c-controls { grid-template-columns: 1fr 1fr; }
  .c-top { flex-wrap: wrap; gap: 10px 14px; }
  .c-fixture { padding-left: 14px; }
  .c-state { margin-left: 0; width: 100%; justify-content: space-between; }
  .col-fair, .c-table td.p-fair { display: none; }
  .dash-note { text-align: center; }
}
@media (max-width: 560px) {
  .brand img { height: 30px; }
  .header-end { gap: 8px; }
  .header-end .btn-sm { padding: 0 14px; }
  .market-groups { grid-template-columns: 1fr; }
  .viz { aspect-ratio: 4 / 3; }
  .why-card:has(.viz-zones, .viz-chips) { container-type: inline-size; }
  .viz-zones, .viz-chips { aspect-ratio: auto; min-height: 75cqi; }
  .viz-zones { flex-direction: column; gap: 14px; }
  .zone-wheel { width: 46%; }
  .zone-bars { width: 100%; max-width: 260px; gap: 10px; }
  .col-status, .c-table td.p-status { display: none; }
  .c-table th, .c-table td { padding-inline: 6px; }
  .why-nums { grid-template-columns: repeat(2, 1fr); }
  .c-tabs { display: grid; grid-template-columns: repeat(3, 1fr); width: 100%; }
  .c-tabs button { padding: 7px 6px; font-size: 12px; line-height: 1.25; white-space: normal; }
  .api-node span { display: none; }
  .api-node b { font-size: 12.5px; }
  .api-msg { flex-wrap: wrap; row-gap: 6px; }
  .m-prices { width: 100%; padding-left: 50px; }
  .api-feed { height: 300px; }
  .c-controls { grid-template-columns: 1fr 1fr; gap: 12px; }
  .ctl[data-zone="margin"], .ctl[data-zone="longshot"] { grid-column: 1 / -1; }
  .hero { min-height: min(100svh, 720px); }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.001s !important; animation-iteration-count: 1 !important; transition-duration: 0.001s !important; }
  .js .reveal { opacity: 1; transform: none; }
}
