@property --x { syntax: '<percentage>'; inherits: true; initial-value: 50%; }
@property --y { syntax: '<percentage>'; inherits: true; initial-value: 50%; }
@property --rx { syntax: '<percentage>'; inherits: true; initial-value: 12%; }
@property --ry { syntax: '<percentage>'; inherits: true; initial-value: 12%; }

:root {
  --bg: #16181a;
  --bg-2: #171718;
  --surface: #1e1e21;
  --surface-2: #222224;
  --surface-teal: #0f2026;
  --line: #2a2a2c;
  --line-2: #3a3a3d;
  --text: #eeeeee;
  --text-2: #a4a8b3;
  --text-3: #848895;
  --light: #00cfbe;
  --light-hover: #2be3d4;
  --light-soft: rgba(0, 207, 190, 0.14);
  --bull: #26a69a;
  --bear: #ef5350;
  --surge: #e8b64c;
  --ease: cubic-bezier(0.23, 1, 0.32, 1);
  --sans: 'Manrope', system-ui, -apple-system, sans-serif;
  --mono: 'IBM Plex Mono', ui-monospace, monospace;
  --radius: 12px;
  --gutter: 16px;
  --max: 1200px;
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-padding-top: 80px; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 400 16px/1.6 var(--sans);
  font-variant-numeric: tabular-nums;
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-underline-offset: 4px; }
h1, h2, h3, h4, p, figure, dl, dd { margin: 0; }
h1, h2, h3, h4, strong, b, th { font-weight: 600; }
h1, h2, h3 { line-height: 1.12; text-wrap: balance; }
h1 { font-size: clamp(34px, 5.4vw, 64px); letter-spacing: -0.03em; }
h2 { font-size: clamp(28px, 3.8vw, 44px); letter-spacing: -0.025em; }
h3 { font-size: 20px; letter-spacing: -0.015em; }
button { font: inherit; color: inherit; cursor: pointer; }
a, button, summary { transition: color 200ms var(--ease), background-color 200ms var(--ease), border-color 200ms var(--ease), box-shadow 200ms var(--ease); }
:focus-visible { outline: 2px solid var(--light); outline-offset: 2px; }

.fine, .small, .muted, figcaption { color: var(--text-2); }
.fine, .small, figcaption { font-size: 14px; }
.fine, .kicker, .mono { font-family: var(--mono); }
.lit, .todo { color: var(--light); }
.lamp {
  display: inline-block;
  flex: none;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--light);
  box-shadow: 0 0 10px rgba(0, 207, 190, 0.55);
}
.kicker {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--light);
  font-size: 13px;
  font-weight: 500;
}

.btn, .menu-toggle, .icon-btn {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  padding: 10px 20px;
  border: 1px solid transparent;
  border-radius: 8px;
  font-weight: 600;
  font-size: 15px;
  text-decoration: none;
}
.btn { background: var(--light); color: #0c1415; }
.btn:hover { background: var(--light-hover); }
.btn-ghost, .menu-toggle, .icon-btn {
  background: var(--surface);
  border-color: var(--line-2);
  color: var(--text);
}
.btn-ghost:hover, .menu-toggle:hover, .icon-btn:hover {
  background: var(--surface-2);
  border-color: var(--text-3);
}
.btn-small, .menu-toggle { min-height: 38px; padding: 7px 14px; font-size: 14px; }
.icon-btn { min-width: 44px; padding-inline: 10px; }
.link-quiet, .link-arrow { display: inline-flex; align-items: center; min-height: 44px; }
.link-quiet { color: var(--text-2); text-decoration: none; font-size: 14px; font-weight: 500; }
.link-arrow { width: fit-content; gap: 8px; color: var(--text); font-weight: 500; text-decoration: none; }
.link-arrow::after { content: '→'; color: var(--light); }
.link-quiet:hover, .link-arrow:hover { color: var(--light); }
.cta-row { display: flex; align-items: center; justify-content: center; flex-wrap: wrap; gap: 12px 16px; }

/* Navigation */
.nav {
  position: sticky;
  top: 0;
  z-index: 30;
  background: rgba(22, 24, 26, 0.88);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}
.nav-inner {
  display: flex;
  min-height: 64px;
  max-width: var(--max);
  margin-inline: auto;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 8px var(--gutter);
  flex-wrap: wrap;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  font: 600 18px/1 var(--sans);
  letter-spacing: -0.02em;
  text-decoration: none;
  color: var(--text);
}
.nav-menu { display: grid; width: 100%; gap: 12px; padding-bottom: 8px; }
.nav-links, .nav-actions { display: flex; gap: 8px 20px; align-items: center; flex-wrap: wrap; }
.nav-links a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  color: var(--text-2);
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
}
.nav-links a:hover, .nav-links a[aria-current='page'] { color: var(--light); }
.menu-toggle svg { width: 16px; height: 16px; }
@media (max-width: 899px) {
  .menu-toggle[aria-expanded='false']:not([hidden]) + .nav-menu { display: none; }
  .menu-toggle:not([hidden]) + .nav-menu {
    position: absolute;
    inset: 100% 0 auto;
    padding: 16px var(--gutter) 24px;
    max-height: calc(100dvh - 64px);
    overflow: auto;
    background: var(--surface);
    border-bottom: 1px solid var(--line-2);
    box-shadow: 0 24px 48px rgba(0, 0, 0, 0.45);
  }
  .nav-menu .nav-links { display: grid; gap: 0; }
  .nav-menu .nav-links a { border-bottom: 1px solid var(--line); }
  .nav-actions { padding-top: 8px; }
}

/* Containers & Sections */
.wrap, .section-head-page, .feature-block, .guide-block, .contact-grid, .footer {
  width: min(100% - 2 * var(--gutter), var(--max));
  margin-inline: auto;
}
.narrow { max-width: 880px; }
.mast {
  padding-block: 64px 72px;
  background: radial-gradient(ellipse 75% 50% at 50% 0%, rgba(0, 207, 190, 0.06), transparent 70%);
}
.band, .feature-block, .guide-block {
  padding-block: 72px;
  border-top: 1px solid var(--line);
}
.band-alt { background: var(--bg-2); }

.section-head {
  display: grid;
  gap: 14px;
  max-width: 720px;
  margin-inline: auto;
  text-align: center;
  justify-items: center;
  margin-bottom: 40px;
}
.section-head p:not(.kicker), .lede, .feature-block > p, .guide-block > p {
  max-width: 62ch;
  color: var(--text-2);
  font-size: 17px;
  line-height: 1.65;
}

/* Hero */
.hero { display: grid; gap: 40px; }
.hero-copy {
  display: grid;
  gap: 20px;
  max-width: 820px;
  margin-inline: auto;
  text-align: center;
  justify-items: center;
}
.badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 6px 14px;
  border-radius: 999px;
  background: var(--surface);
  border: 1px solid var(--line-2);
  color: var(--text-2);
  font-size: 13px;
  font-weight: 500;
}
.hero h1 span { color: var(--light); }

/* Instrument Frame */
.instrument {
  border: 1px solid var(--line-2);
  border-radius: var(--radius);
  background: var(--surface);
  overflow: hidden;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.36);
}
.hero-frame {
  position: relative;
  border-color: rgba(0, 207, 190, 0.28);
  animation: hero-glow 5.5s ease-in-out infinite;
}
.hero-frame img { width: 100%; height: auto; }
@keyframes hero-glow {
  0%, 100% { box-shadow: 0 24px 60px rgba(0, 0, 0, 0.36), 0 0 0 1px rgba(0, 207, 190, 0.14); }
  50% { box-shadow: 0 28px 68px rgba(0, 0, 0, 0.44), 0 0 28px rgba(0, 207, 190, 0.14); }
}
.instrument-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  padding: 10px 16px;
  background: var(--surface-2);
  border-bottom: 1px solid var(--line);
  font: 400 13px/1.4 var(--mono);
  color: var(--text-2);
}
.instrument-bar.bottom {
  border-bottom: 0;
  border-top: 1px solid var(--line);
  font-size: 12px;
  color: var(--text-3);
}
.instrument-bar span { display: inline-flex; align-items: center; gap: 8px; }
.instrument-bar b { color: var(--text-3); font-weight: 400; }
.scope-icon {
  position: relative;
  display: inline-block;
  width: 12px;
  height: 12px;
  border: 1.5px solid var(--light);
  border-radius: 50%;
}
.scope-icon::after {
  content: '';
  position: absolute;
  inset: 3px;
  border-radius: 50%;
  background: var(--light);
}

/* Highlights Carousel */
.highlight-deck { display: grid; gap: 20px; }
.highlight-track {
  display: flex;
  gap: 20px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  border-radius: var(--radius);
}
.highlight-track::-webkit-scrollbar { display: none; }
.highlight-track figure {
  flex: 0 0 100%;
  scroll-snap-align: start;
  display: grid;
  align-content: start;
  gap: 16px;
  padding: 24px 28px;
  background: var(--surface);
  border: 1px solid var(--line-2);
  border-radius: var(--radius);
}
.highlight-track figcaption {
  display: grid;
  gap: 8px;
  align-content: start;
}
.highlight-track small {
  font: 500 12px/1.4 var(--mono);
  color: var(--light);
}
.highlight-track h3 { color: var(--text); font-size: 22px; }
.highlight-track p { color: var(--text-2); font-size: 15px; max-width: 56ch; }
.highlight-track img {
  width: 100%;
  border-radius: 8px;
  border: 1px solid var(--line);
}
.deck-controls {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
}
.deck-dots { display: flex; align-items: center; gap: 8px; }
.deck-dots button {
  position: relative;
  width: 10px;
  height: 10px;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: var(--line-2);
  overflow: hidden;
  transition: width 240ms var(--ease), background-color 240ms var(--ease);
}
.deck-dots button[aria-current='true'] {
  width: 44px;
  background: var(--surface-2);
  box-shadow: inset 0 0 0 1px var(--line-2);
}
.deck-dots button[aria-current='true']::after {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--light);
  transform-origin: left center;
  transform: scaleX(var(--progress, 0));
}
.deck-play { min-height: 36px; min-width: 36px; padding: 6px 10px; font-size: 13px; }

/* Market Pulse / MoneyFlow */
.flow-board { margin-bottom: 56px; }
.ticker {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  border-bottom: 1px solid var(--line);
  font: 400 13px/1.5 var(--mono);
}
.ticker > div {
  min-width: 0;
  padding: 12px 14px;
  border-bottom: 1px solid var(--line);
  border-right: 1px solid var(--line);
}
.ticker dt { color: var(--text-3); font-size: 11px; }
.ticker dd { color: var(--text); margin-top: 2px; font-weight: 500; }
.ticker em { font-style: normal; color: var(--bear); font-weight: 400; }
.flow-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  padding: 12px 16px;
  border-bottom: 1px solid var(--line);
  background: var(--bg-2);
}
.flow-status { font: 400 13px/1.4 var(--mono); color: var(--text-2); }
.window-pills { display: inline-flex; gap: 4px; padding: 3px; border-radius: 8px; background: var(--surface-2); border: 1px solid var(--line); }
.window-pills button {
  min-height: 32px;
  padding: 4px 12px;
  border: 0;
  border-radius: 6px;
  background: transparent;
  color: var(--text-2);
  font: 500 12px/1 var(--mono);
}
.window-pills button:hover { color: var(--text); }
.window-pills button[aria-pressed='true'] { background: var(--light-soft); color: var(--light); }

.flow-stage {
  position: relative;
  display: grid;
  grid-template-columns: minmax(128px, 1fr) 48px minmax(128px, 1fr);
  align-items: start;
  padding: 16px 10px;
  min-height: 440px;
  background: var(--bg);
}
.flow-stage canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: auto;
}
.sector-col { grid-column: 1; }
.stock-col { grid-column: 3; }
.flow-col {
  position: relative;
  z-index: 2;
  display: grid;
  gap: 5px;
  min-width: 0;
  width: 100%;
}
.flow-col h4 {
  font: 500 11px/1.3 var(--mono);
  color: var(--text-3);
  padding: 4px 6px 2px;
}
.flow-col h4.outflow { margin-top: 8px; }
.flow-node {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
  width: 100%;
  min-height: 30px;
  padding: 4px 8px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: rgba(30, 30, 33, 0.92);
  font: 400 11px/1.3 var(--mono);
  text-align: left;
  color: var(--text);
}
.flow-node span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.flow-node b { flex: none; font-weight: 500; }
.flow-node:hover, .flow-node:focus-visible {
  border-color: var(--light);
  background: var(--surface-2);
}
.inflow { color: var(--bull); }
.outflow { color: var(--bear); }

.flow-tip {
  position: absolute;
  z-index: 10;
  min-width: 190px;
  padding: 10px 12px;
  border-radius: 8px;
  background: var(--surface-2);
  border: 1px solid var(--line-2);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.55);
  pointer-events: none;
  font: 400 12px/1.45 var(--mono);
}
.flow-tip strong { display: block; margin-bottom: 6px; color: var(--text); font-size: 13px; }
.flow-tip dl { display: grid; grid-template-columns: auto 1fr; gap: 3px 12px; }
.flow-tip dt { color: var(--text-3); }
.flow-tip dd { color: var(--text); text-align: right; }

/* Study Split (Market Pulse overview + MTF / Swing) */
.study {
  display: grid;
  gap: 28px;
  align-items: center;
}
.study + .study { margin-top: 64px; }
.study > div:first-child { display: grid; gap: 12px; }
.study h3 { font-size: clamp(22px, 2.6vw, 30px); }
.study p { color: var(--text-2); font-size: 16px; }
.study .note {
  padding-top: 12px;
  border-top: 1px solid var(--line);
  font: 400 13px/1.55 var(--mono);
  color: var(--text-3);
}
.study img {
  width: 100%;
  border: 1px solid var(--line-2);
  border-radius: var(--radius);
  background: var(--surface);
}

/* TCM Lab Diagrams */
.lab-plates {
  display: grid;
  gap: 20px;
}
.lab-plate {
  display: grid;
  gap: 16px;
  padding: 24px;
  background: var(--surface);
  border: 1px solid var(--line-2);
  border-radius: var(--radius);
}
.lab-plate figcaption { display: grid; gap: 4px; }
.lab-plate small { font: 500 12px/1.4 var(--mono); color: var(--light); }
.lab-plate h3 { color: var(--text); font-size: 20px; }
.lab-plate svg { width: 100%; height: auto; display: block; }
.lab-plate text { font: 400 11px/1 var(--mono); fill: var(--text-2); }
.cube-shell { fill: none; stroke: var(--line-2); stroke-width: 1.25; stroke-linejoin: round; }
.cube-core { fill: rgba(0, 207, 190, 0.08); stroke: var(--light); stroke-width: 1.5; stroke-linejoin: round; }
.leader { fill: none; stroke: var(--text-3); stroke-width: 1; }
.packet {
  fill: none;
  stroke: var(--light);
  stroke-width: 2.2;
  stroke-linecap: round;
  stroke-dasharray: 12 88;
  animation: lab-packet 4.2s linear infinite;
}
.topology .routes { fill: none; stroke: var(--line-2); stroke-width: 1.5; }
.topology .packets {
  fill: none;
  stroke: var(--light);
  stroke-width: 2;
  stroke-linecap: round;
  stroke-dasharray: 10 90;
  animation: lab-packet 3.6s linear infinite;
}
.topology circle { fill: var(--light); }
.topology rect { fill: var(--surface-teal); stroke: var(--light); stroke-width: 1.4; }
.topology rect + text { fill: var(--text); font-weight: 500; }
.lab-readout {
  font: 400 12px/1.4 var(--mono);
  color: var(--text-3);
  text-align: right;
}
@keyframes lab-packet {
  from { stroke-dashoffset: 100; }
  to { stroke-dashoffset: 0; }
}

.grid { display: grid; gap: 16px; }
.lab-notes { margin-top: 24px; align-items: stretch; }
.lab-notes article, .card, .plan, .contact-card {
  display: grid;
  align-content: start;
  gap: 10px;
  padding: 24px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}
.lab-notes small { font: 500 12px/1.4 var(--mono); color: var(--light); }
.lab-notes p, .card p, .plan p:not(.price), .contact-card p, .access-note { color: var(--text-2); font-size: 15px; }

/* Annotated Charts & Tabs */
.panel {
  border: 1px solid var(--line-2);
  border-radius: var(--radius);
  background: var(--surface);
  overflow: hidden;
}
.panel img, .wide-shot img, .feature-block img, .paired img, .views img, .strip img {
  border-radius: var(--radius);
}
.panel img { border-radius: 0; width: 100%; }
.panel figcaption { padding: 14px 18px; border-top: 1px solid var(--line); }
.tabs {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 4px;
  padding: 6px;
  background: var(--surface-2);
  border-bottom: 1px solid var(--line);
}
.tabs button {
  min-height: 40px;
  padding: 6px 10px;
  border: 1px solid transparent;
  border-radius: 7px;
  background: transparent;
  color: var(--text-2);
  font: 500 13px/1.3 var(--mono);
}
.tabs button:hover { color: var(--text); background: var(--surface); }
.tabs button[aria-selected='true'] {
  color: var(--light);
  background: var(--surface-teal);
  border-color: rgba(0, 207, 190, 0.3);
}

.annotated { position: relative; }
.pin {
  position: absolute;
  left: var(--x);
  top: var(--y);
  transform: translate(-50%, -50%);
  display: grid;
  place-items: center;
  min-width: 26px;
  height: 26px;
  padding: 0 6px;
  border-radius: 999px;
  background: var(--light);
  color: #0c1415;
  font: 600 11px/1 var(--mono);
  font-style: normal;
  box-shadow: 0 0 0 3px rgba(22, 24, 26, 0.85), 0 6px 16px rgba(0, 0, 0, 0.45);
  pointer-events: none;
}

/* Option Flow Views */
.views, .paired, .plans, .contact-grid { display: grid; gap: 20px; }
.views figure {
  display: grid;
  gap: 12px;
  padding: 16px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}
.views img { width: 100%; border: 1px solid var(--line); border-radius: 8px; }
.views figcaption { display: grid; gap: 4px; }
.views small { font: 500 12px/1.4 var(--mono); color: var(--light); }
.wide-shot { margin-top: 32px; }
.wide-shot img { width: 100%; border: 1px solid var(--line-2); }
.wide-shot figcaption { margin-top: 12px; }

/* Free & Pro Plans */
.plans { margin-top: 24px; align-items: stretch; }
.plan { padding: 28px; gap: 18px; }
.plan:nth-child(2) {
  background: linear-gradient(180deg, var(--surface-teal) 0%, var(--surface) 100%);
  border-color: rgba(0, 207, 190, 0.32);
}
.plan h3 { font-size: 22px; }
.price { font: 600 44px/1.05 var(--mono); color: var(--text); }
.price span { display: block; margin-top: 8px; font: 400 14px/1.4 var(--sans); color: var(--text-2); }
.plan ul { margin: 0; padding-left: 18px; display: grid; gap: 8px; color: var(--text-2); }
.plan .btn { width: fit-content; align-self: end; }
.access-note { margin-block: 20px 12px; text-align: center; }
.section-foot { display: flex; justify-content: center; margin-top: 16px; }

/* FAQ */
.faq-list { border-top: 1px solid var(--line-2); }
.faq-list details { border-bottom: 1px solid var(--line-2); }
.faq-list summary {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  cursor: pointer;
  min-height: 52px;
  padding-block: 14px;
  font-weight: 500;
  list-style: none;
}
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary::after { content: '+'; color: var(--light); font: 400 20px/1 var(--mono); }
.faq-list details[open] summary::after { content: '−'; }
.faq-list details p { max-width: 70ch; padding: 0 24px 18px 0; color: var(--text-2); }
.faq-list + .link-arrow { margin-top: 16px; }

/* Final CTA */
.final .wrap {
  display: grid;
  gap: 20px;
  justify-items: center;
  text-align: center;
}

/* Footer */
.footer {
  border-top: 1px solid var(--line);
  padding-block: 48px 36px;
  display: grid;
  gap: 28px;
}
.footer-top {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
}
.footer-top p { max-width: 34ch; font-size: 14px; color: var(--text-2); margin-top: 8px; }
.footer-top nav { display: grid; align-content: start; justify-items: start; }
.footer-top h4 { margin-bottom: 6px; font-size: 14px; color: var(--text); }
.footer nav a {
  display: inline-flex;
  align-items: center;
  min-height: 36px;
  color: var(--text-2);
  text-decoration: none;
  font-size: 14px;
}
.footer nav a:hover { color: var(--light); }
.disclaimer {
  display: grid;
  gap: 8px;
  max-width: none;
  width: 100%;
  color: var(--text-3);
  font-size: 13px;
  line-height: 1.55;
}

/* Subpages */
.section-head-page { padding-block: 64px 40px; }
.section-head-page .section-head { margin-bottom: 0; }
.feature-block, .guide-block { display: grid; gap: 16px; }
.feature-block img { width: 100%; border: 1px solid var(--line-2); }
.guide-block { max-width: 820px; }
.contact-grid { margin-bottom: 64px; }
.table { width: 100%; table-layout: fixed; border-collapse: collapse; text-align: left; font-size: 14px; }
.table th, .table td { padding: 14px 12px; border-bottom: 1px solid var(--line); vertical-align: top; overflow-wrap: anywhere; }
.table thead { background: var(--surface-2); color: var(--text-2); }
.reveal { opacity: .96; transition: opacity 240ms var(--ease); }
.reveal.is-in, .no-js .reveal { opacity: 1; }

@media (min-width: 640px) {
  @property --x { syntax: '<percentage>'; inherits: true; initial-value: 50%; }
@property --y { syntax: '<percentage>'; inherits: true; initial-value: 50%; }
@property --rx { syntax: '<percentage>'; inherits: true; initial-value: 12%; }
@property --ry { syntax: '<percentage>'; inherits: true; initial-value: 12%; }

:root { --gutter: 32px; }
  .ticker { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .flow-stage {
    grid-template-columns: minmax(190px, 240px) 1fr minmax(190px, 240px);
    padding: 20px;
  }
  .flow-node { font-size: 12px; padding: 5px 10px; }
  .paired, .plans { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .plan { grid-template-rows: auto auto 1fr auto; }
  .strip figure { flex-basis: 72%; }
  .footer-top { grid-template-columns: 2fr 1fr 1fr 1fr; }
}

@media (min-width: 900px) {
  .nav-inner { display: grid; grid-template-columns: 1fr auto 1fr; flex-wrap: nowrap; gap: 24px; }
  .brand { justify-self: start; }
  .nav-menu { display: contents; padding: 0; }
  .nav-links { justify-self: center; flex-wrap: nowrap; }
  .nav-actions { justify-self: end; flex-wrap: nowrap; }
  .menu-toggle { display: none; }
  .mast { padding-block: 96px 112px; }
  .band, .feature-block { padding-block: 120px; }
  .ticker { grid-template-columns: repeat(6, minmax(0, 1fr)); }
  .ticker > div { border-bottom: 0; }
  .ticker > div:last-child { border-right: 0; }
  .study { grid-template-columns: minmax(0, 1fr) minmax(0, 1.35fr); gap: 48px; }
  .study.reverse > div:first-child { order: 2; }
  .lab-plates { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .grid, .views, .contact-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

@media (max-width: 760px) {
  .flow-stage {
    grid-template-columns: 1fr;
    gap: 24px;
    min-height: auto;
    padding: 16px;
  }
  .flow-stage canvas { display: none; }
  .sector-col, .stock-col { grid-column: 1; width: 100%; min-width: 0; }
}

/* Vector Diagrams & Live-Styled Stages */
.hero-stage {
  display: grid;
  grid-template-columns: 1fr;
  background: var(--bg);
}
.hero-chart-pane { min-width: 0; padding: 12px; }
.vector-chart { width: 100%; height: auto; display: block; }
.chart-grid line { stroke: var(--line); stroke-width: 1; stroke-dasharray: 3 4; }
.zone-demand { fill: rgba(38, 166, 154, 0.14); stroke: rgba(38, 166, 154, 0.45); stroke-width: 1; }
.zone-supply { fill: rgba(239, 83, 80, 0.14); stroke: rgba(239, 83, 80, 0.45); stroke-width: 1; }
.zone-supply-soft { fill: rgba(239, 83, 80, 0.08); stroke: rgba(239, 83, 80, 0.3); stroke-width: 1; }
.zone-lbl { font: 500 11px/1 var(--mono); }
.zone-lbl.bull { fill: var(--bull); }
.zone-lbl.bear { fill: var(--bear); }
.chart-sub { font: 400 11px/1 var(--mono); fill: var(--text-3); }
.price-line { fill: none; stroke: var(--text); stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.price-pulse {
  fill: none;
  stroke: var(--light);
  stroke-width: 2.6;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-dasharray: 16 84;
  animation: lab-packet 4.8s linear infinite;
}
.arrow-bull { fill: var(--bull); }
.arrow-bear { fill: var(--bear); }
.big-bubble { fill-opacity: 0.28; stroke-width: 1.5; animation: bubble-pulse 3.2s ease-in-out infinite; }
.big-bubble.bull { fill: var(--bull); stroke: var(--bull); }
.big-bubble.bear { fill: var(--bear); stroke: var(--bear); }
.big-bubble.surge { fill: var(--surge); stroke: var(--surge); }
.focus-ring { fill: none; stroke-width: 1.5; stroke-dasharray: 4 3; }
.focus-ring.bull { stroke: var(--bull); }
.focus-ring.bear { stroke: var(--bear); }
.vp-bars rect { fill: var(--line-2); }
.vp-bars .vp-hot { fill: var(--light); fill-opacity: 0.55; }
.tide-axis { stroke: var(--line-2); stroke-width: 1; }
.tide-bull { fill: var(--bull); fill-opacity: 0.82; }
.tide-bear { fill: var(--bear); fill-opacity: 0.82; }
.active-strike { stroke: var(--light); stroke-width: 1.5; }
@keyframes bubble-pulse {
  0%, 100% { fill-opacity: 0.24; }
  50% { fill-opacity: 0.52; }
}

.strike-ladder {
  display: grid;
  gap: 10px;
  align-content: start;
  padding: 14px 16px;
  background: var(--surface);
  border-top: 1px solid var(--line);
  font: 400 12px/1.3 var(--mono);
}
.ladder-head, .ladder-foot { display: flex; justify-content: space-between; color: var(--text-3); font-size: 11px; }
.ladder-rows { display: grid; gap: 8px; }
.ladder-row {
  display: grid;
  grid-template-columns: 52px 1fr;
  align-items: center;
  gap: 8px;
  padding: 4px 6px;
  border-radius: 6px;
  color: var(--text-2);
}
.ladder-row.active { background: var(--surface-teal); color: var(--light); }
.ladder-bars { display: grid; gap: 3px; }
.ladder-bars i { display: block; height: 5px; width: var(--w); border-radius: 99px; transition: width 600ms var(--ease); }
.bar-ce { background: var(--bear); }
.bar-pe { background: var(--bull); }

/* Highlights Slide Visuals */
.slide-visual {
  padding: 16px;
  border-radius: 8px;
  background: var(--bg);
  border: 1px solid var(--line);
}
.mini-flow-svg { width: 100%; height: auto; display: block; }
.mini-nodes rect { fill: var(--surface); stroke: var(--line-2); }
.mini-nodes text { font: 400 11px/1 var(--mono); fill: var(--text); }
.mini-wires { fill: none; stroke-width: 2; stroke-opacity: 0.42; }
.mini-flow-svg .packets { fill: none; stroke: var(--light); stroke-width: 2; stroke-linecap: round; stroke-dasharray: 12 88; animation: lab-packet 3.4s linear infinite; }
.mtf-cascade { display: grid; grid-template-columns: 1fr; gap: 12px; align-items: center; padding: 20px; }
.cascade-card {
  display: grid;
  gap: 4px;
  padding: 14px 16px;
  border-radius: 8px;
  background: var(--surface);
  border: 1px solid var(--line-2);
}
.cascade-card span { font: 500 11px/1.3 var(--mono); color: var(--text-3); }
.cascade-card strong { font-size: 16px; }
.cascade-card small { font: 400 12px/1.3 var(--mono); color: var(--text-2); }
.cascade-card.bull strong { color: var(--bull); }
.cascade-card.surge strong { color: var(--surge); }
.cascade-arrow { text-align: center; color: var(--light); font: 600 18px/1 var(--mono); }
.swing-preview { display: grid; gap: 14px; padding: 20px; }
.stance-strip { display: flex; justify-content: space-between; gap: 8px; flex-wrap: wrap; font: 500 12px/1.3 var(--mono); color: var(--text-2); }
.stance-track { height: 8px; border-radius: 99px; background: var(--surface-2); overflow: hidden; }
.stance-track i { display: block; height: 100%; background: var(--bear); border-radius: 99px; }
.chip-group { display: flex; flex-wrap: wrap; gap: 8px; }
.chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 10px;
  border-radius: 999px;
  background: var(--surface);
  border: 1px solid var(--line-2);
  font: 500 12px/1 var(--mono);
  color: var(--text);
}
.chip.bull { border-color: rgba(38, 166, 154, 0.45); color: var(--bull); }
.chip.surge { border-color: rgba(232, 182, 76, 0.45); color: var(--surge); }
.chip.teal { border-color: rgba(0, 207, 190, 0.45); color: var(--light); }
.chip .sdot { width: 7px; height: 7px; border-radius: 50%; background: currentColor; }

/* Market Pulse Telemetry Cards */
/* Hero Terminal Topbar & Chart Canvas */
.terminal-topbar { justify-content: space-between; }
.tb-strip { display: flex; flex-wrap: wrap; gap: 6px 14px; font-size: 11px; color: var(--text-2); }
.tb-strip b { color: var(--text); font-weight: 500; }
.tb-strip em { font-style: normal; }
.tb-strip .bear { color: var(--bear); }
.tb-strip .bull { color: var(--bull); }
.tcm-chart { display: block; width: 100%; }

.sf-mini-pills { display: inline-flex; gap: 3px; }
.sf-mini-pills i {
  font-style: normal;
  padding: 2px 6px;
  border-radius: 4px;
  background: var(--surface-2);
  color: var(--text-3);
  font-size: 10px;
}
.sf-mini-pills i.is-on { background: var(--surface-teal); color: var(--light); }
.ladder-cols {
  display: grid;
  grid-template-columns: 1fr 56px 1fr;
  text-align: center;
  font-size: 10px;
  color: var(--text-3);
}
.ladder-row {
  grid-template-columns: 1fr 56px 1fr;
  gap: 6px;
  padding: 3px 4px;
}
.ladder-row .st { text-align: center; font-size: 11px; }
.cell-heat {
  padding: 4px 6px;
  border-radius: 4px;
  text-align: center;
  font-size: 11px;
  color: var(--text);
}
.cell-heat.ce { background: rgba(239, 83, 80, calc(0.12 + var(--v) * 0.42)); }
.cell-heat.pe { background: rgba(38, 166, 154, calc(0.12 + var(--v) * 0.42)); }

/* Strike Flow 1-Minute Matrix */
.sf-matrix {
  display: grid;
  gap: 6px;
  padding: 16px;
  background: var(--bg);
  font: 400 12px/1.3 var(--mono);
  overflow-x: auto;
}
.sf-m-head, .sf-m-row {
  display: grid;
  grid-template-columns: 64px repeat(3, minmax(46px, 1fr)) 54px 54px;
  align-items: center;
  gap: 6px;
  text-align: right;
}
.sf-m-head { color: var(--text-3); font-size: 11px; padding-bottom: 4px; border-bottom: 1px solid var(--line); }
.sf-m-head span:first-child, .sf-m-row span:first-child { text-align: left; }
.sf-m-row { padding: 3px 4px; border-radius: 6px; color: var(--text-2); }
.sf-m-row.active { background: rgba(0, 207, 190, 0.08); outline: 1px solid rgba(0, 207, 190, 0.25); }
.sf-m-row i {
  font-style: normal;
  padding: 5px 6px;
  border-radius: 4px;
  text-align: center;
  color: var(--text);
}
.sf-m-row i.ce { background: rgba(239, 83, 80, calc(0.14 + var(--v) * 0.4)); }
.sf-m-row i.pe { background: rgba(38, 166, 154, calc(0.14 + var(--v) * 0.4)); }
.sf-m-row .bear { color: var(--bear); }
.sf-m-row .bull { color: var(--bull); }

/* MTF Summary & Swing Sectors */
.mtf-summary {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px 16px;
  padding: 10px 14px;
  background: var(--surface-2);
  border-top: 1px solid var(--line);
  font: 500 12px/1.3 var(--mono);
  color: var(--text-2);
}
.mtf-summary .bull { color: var(--bull); }
.mtf-summary .bear { color: var(--bear); }
.aligned-badge {
  padding: 4px 10px;
  border-radius: 999px;
  background: var(--surface-teal);
  color: var(--light);
  border: 1px solid rgba(0, 207, 190, 0.35);
}
.swing-sectors {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 6px 12px;
  font: 400 12px/1.4 var(--mono);
  color: var(--text-3);
}
.swing-sectors b { color: var(--bull); font-weight: 500; }

.pulse-telemetry { display: grid; gap: 20px; align-items: stretch; }
.telemetry-card {
  display: grid;
  align-content: start;
  gap: 14px;
  padding: 22px;
  background: var(--surface);
  border: 1px solid var(--line-2);
  border-radius: var(--radius);
}
.tel-head { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; }
.tel-head small { font: 500 12px/1.3 var(--mono); color: var(--light); }
.tel-head strong { font: 600 18px/1.2 var(--mono); color: var(--text); }
.tel-sub, .tel-foot { font-size: 13px; color: var(--text-2); }
.mood-gauge { width: 100%; max-width: 240px; margin-inline: auto; display: block; }
.gauge-track { fill: none; stroke: var(--line-2); stroke-width: 10; stroke-linecap: round; }
.gauge-fill { fill: none; stroke: var(--light); stroke-width: 10; stroke-linecap: round; stroke-dasharray: 42 100; }
.gauge-val { font: 600 28px/1 var(--mono); fill: var(--text); }
.gauge-sub { font: 400 10px/1 var(--mono); fill: var(--text-3); }
.driver-bars { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.driver-bars li { display: grid; grid-template-columns: 1fr auto; gap: 4px 8px; align-items: center; font: 400 12px/1.3 var(--mono); color: var(--text-2); }
.driver-bars b { color: var(--text-3); font-weight: 400; }
.driver-bars i {
  grid-column: 1 / -1;
  position: relative;
  display: block;
  height: 4px;
  border-radius: 99px;
  background: var(--surface-2);
  overflow: hidden;
}
.driver-bars i::after { content: ''; position: absolute; inset: 0 auto 0 0; width: var(--p); background: var(--light); border-radius: 99px; }

.breadth-split { display: grid; gap: 16px; }
.breadth-bar {
  display: flex;
  height: 28px;
  border-radius: 6px;
  overflow: hidden;
  font: 500 11px/28px var(--mono);
}
.b-adv { background: rgba(38, 166, 154, 0.25); color: var(--bull); padding-inline: 8px; white-space: nowrap; overflow: hidden; }
.b-dec { background: rgba(239, 83, 80, 0.25); color: var(--bear); padding-inline: 8px; text-align: right; white-space: nowrap; overflow: hidden; }
.breadth-dist {
  display: grid;
  grid-template-columns: repeat(8, 1fr);
  align-items: end;
  gap: 6px;
  height: 76px;
  padding-top: 8px;
  border-bottom: 1px solid var(--line);
}
.breadth-dist i { display: block; border-radius: 3px 3px 0 0; }
.breadth-dist i.bull { background: var(--bull); opacity: 0.78; }
.breadth-dist i.bear { background: var(--bear); opacity: 0.78; }

.pos-range { padding-block: 28px 18px; }
.range-track { position: relative; height: 6px; border-radius: 99px; background: var(--surface-2); }
.range-sigma { position: absolute; left: 32%; right: 30%; top: 0; bottom: 0; background: rgba(0, 207, 190, 0.25); border-radius: 99px; }
.mk {
  position: absolute;
  top: 50%;
  transform: translate(-50%, -50%);
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--light);
  font-style: normal;
}
.mk.bull { background: var(--bull); }
.mk.bear { background: var(--bear); }
.mk.surge { background: var(--surge); }
.mk.teal { background: var(--light); }
.mk b {
  position: absolute;
  left: 50%;
  bottom: 16px;
  transform: translateX(-50%);
  white-space: nowrap;
  font: 500 10px/1 var(--mono);
  color: var(--text-2);
}
.mk:nth-child(even) b { bottom: auto; top: 16px; }

.packet-2 { animation-delay: -2.1s; stroke: var(--bull); }

/* MTF & Swing Desks */
.mtf-desk { display: grid; grid-template-columns: 1fr; gap: 1px; background: var(--line); }
.mtf-pane { display: grid; gap: 8px; padding: 14px; background: var(--surface); }
.mtf-pane header { display: flex; justify-content: space-between; font: 500 12px/1.3 var(--mono); }
.mtf-pane b.bull { color: var(--bull); }
.mtf-pane b.surge { color: var(--surge); }
.mtf-pane small { font: 400 11px/1.3 var(--mono); color: var(--text-3); }
.swing-body { display: grid; gap: 18px; padding: 20px; background: var(--bg); }
.regime-bars { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.regime-bars li { display: grid; grid-template-columns: 78px 1fr 36px; align-items: center; gap: 10px; font: 400 12px/1.3 var(--mono); color: var(--text-2); }
.regime-bars i { display: block; height: 8px; width: var(--w); border-radius: 99px; }
.regime-bars i.bull { background: var(--bull); }
.regime-bars i.teal { background: var(--light); }
.regime-bars i.surge { background: var(--surge); }
.regime-bars i.bear { background: var(--bear); }
.regime-bars b { text-align: right; color: var(--text); font-weight: 500; }

@media (min-width: 640px) {
  .mtf-cascade { grid-template-columns: 1fr auto 1fr auto 1fr; }
  .mtf-desk { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (min-width: 900px) {
  .hero-stage { grid-template-columns: 1fr 240px; }
  .strike-ladder { border-top: 0; border-left: 1px solid var(--line); }
  .pulse-telemetry { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

/* Highlights Slide 1-4 Cutouts & Stages */
.hero-frame img, .zones-stage img, .option-flow-stage img, .swing-collage img {
  width: auto;
  max-width: 100%;
  height: auto;
  display: block;
}
.annotated-zones { position: relative; padding: 10px; overflow: hidden; }
.annotated-zones img { border-radius: 6px; margin-inline: auto; }
.zone-pill {
  position: absolute;
  left: var(--x);
  top: var(--y);
  transform: translate(-50%, -50%);
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 11px;
  border-radius: 999px;
  font: 500 11px/1.2 var(--mono);
  white-space: nowrap;
  pointer-events: none;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.55);
  animation: bubble-pulse 3.4s ease-in-out infinite;
}
.pill-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: currentColor;
  box-shadow: 0 0 8px currentColor;
}
.zone-pill.bear { background: rgba(239, 83, 80, 0.22); border: 1px solid rgba(239, 83, 80, 0.7); color: #ffb3b1; }
.zone-pill.bull { background: rgba(0, 207, 190, 0.2); border: 1px solid rgba(0, 207, 190, 0.7); color: #9cf5ec; }
.zone-pill.inline-pill { position: static; transform: none; justify-self: start; pointer-events: auto; }

.hl-option-stage { display: grid; grid-template-columns: 1fr; gap: 16px; align-items: center; }
.hl-sf-crop {
  position: relative;
  justify-self: center;
  max-height: 360px;
  overflow: hidden;
  border-radius: 8px;
  border: 1px solid var(--line-2);
  background: var(--surface);
}
.hl-sf-crop img { width: auto; max-width: 100%; max-height: 360px; object-fit: cover; object-position: top; }
.hl-mt-side { display: grid; gap: 14px; justify-items: stretch; }
.hl-cutout-frame {
  border-radius: 8px;
  border: 1px solid var(--line-2);
  background: var(--surface);
  overflow: hidden;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.32);
}
.hl-contrast-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 8px;
}
.hl-contrast-list li {
  padding: 10px 14px;
  border-radius: 8px;
  background: var(--surface);
  border: 1px solid var(--line);
  font: 400 13px/1.45 var(--mono);
  color: var(--text-2);
}
.hl-contrast-list b { color: var(--light); font-weight: 500; }

.hl-mtf-full { padding: 0; border: 0; background: transparent; }

.hl-swing-stage { display: grid; gap: 12px; }
.hl-sw-leaders { max-width: 483px; width: 100%; margin-inline: auto; }
.hl-swing-grid { display: grid; grid-template-columns: 1fr; gap: 12px; align-items: start; }
.hl-sw-right { display: grid; gap: 12px; }

@media (min-width: 640px) {
  .hl-option-stage { grid-template-columns: minmax(0, 320px) minmax(0, 1fr); gap: 24px; align-items: center; }
}
@media (min-width: 900px) {
  .hl-swing-grid { grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.3fr) minmax(0, 1fr); }
}

/* Dedicated Quant Lab Stats & Architecture Diagram */
.lab-stats {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1px;
  margin-bottom: 24px;
  background: var(--line);
  border: 1px solid var(--line-2);
  border-radius: var(--radius);
  overflow: hidden;
  font-variant-numeric: tabular-nums;
}
.lab-stats > div {
  padding: 16px 18px;
  background: var(--surface);
  text-align: center;
}
.lab-stats dt { font: 600 clamp(22px, 3vw, 30px)/1.1 var(--mono); color: var(--light); }
.lab-stats dd { margin-top: 4px; font-size: 13px; color: var(--text-2); }

.lab-arch {
  position: relative;
  padding: 24px 16px 18px;
  border-radius: 16px;
  border: 1px solid var(--line-2);
  background-color: #111315;
  background-image:
    linear-gradient(to right, rgba(255, 255, 255, 0.025) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255, 255, 255, 0.025) 1px, transparent 1px);
  background-size: 24px 24px;
  overflow: hidden;
}
.lab-canvas {
  display: none;
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 1;
}
.lab-arch-grid {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
}
.lab-group {
  position: relative;
  display: grid;
  gap: 10px;
  padding: 18px 12px 12px;
  border: 1px dashed #323741;
  border-radius: 10px;
  background: rgba(17, 19, 21, 0.72);
}
.lab-group::before {
  content: attr(data-group);
  position: absolute;
  top: -8px;
  left: 12px;
  padding: 0 6px;
  background: #111315;
  font: 500 11px/1.2 var(--mono);
  color: var(--text-3);
}
.arch-node {
  position: relative;
  display: grid;
  gap: 3px;
  padding: 12px 14px;
  border-radius: 8px;
  background: #1b1d22;
  border: 1px solid #2e323b;
  text-align: center;
  cursor: pointer;
  transition: border-color 180ms var(--ease), box-shadow 180ms var(--ease), opacity 180ms var(--ease);
}
.arch-node strong { font: 600 13px/1.3 var(--sans); color: var(--text); }
.arch-node span { font: 400 11px/1.35 var(--mono); color: var(--text-3); }
.arch-node.is-core {
  background: var(--surface-teal);
  border-color: rgba(0, 207, 190, 0.45);
  box-shadow: inset 0 0 18px rgba(0, 207, 190, 0.08), 0 0 20px rgba(0, 207, 190, 0.06);
}
.arch-node.is-core strong { color: var(--light); }
.arch-node.is-core span { color: var(--text-2); }
.arch-node.is-hero {
  padding: 16px 20px;
  border-color: rgba(0, 207, 190, 0.75);
  box-shadow: inset 0 0 28px rgba(0, 207, 190, 0.14), 0 0 32px rgba(0, 207, 190, 0.12);
}
.arch-node.is-hero strong { font-size: 15px; }
.arch-node:hover, .arch-node:focus-visible, .arch-node.is-lit {
  border-color: var(--light);
  box-shadow: 0 0 24px rgba(0, 207, 190, 0.24);
}
.arch-node.is-dim { opacity: 0.45; }
.lab-legend {
  position: relative;
  z-index: 2;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px 24px;
  margin-top: 20px;
  padding-top: 14px;
  border-top: 1px solid #23262b;
  font: 400 12px/1.3 var(--mono);
  color: var(--text-3);
}
.lab-legend span { display: inline-flex; align-items: center; gap: 8px; }
.dot-flow {
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--light);
  box-shadow: 0 0 8px var(--light);
}
.box-core {
  display: inline-block;
  width: 12px;
  height: 10px;
  border-radius: 3px;
  background: var(--surface-teal);
  border: 1px solid rgba(0, 207, 190, 0.65);
}

@media (min-width: 640px) {
  .lab-stats { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .lab-arch { padding: 32px 28px 20px; }
}
@media (min-width: 900px) {
  .lab-canvas { display: block; }
  .lab-arch-grid {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.25fr) minmax(0, 1fr);
    gap: 38px 44px;
    align-items: center;
  }
  .lab-col-1 { grid-column: 1; }
  .lab-col-2 { grid-column: 2; }
  .lab-col-3 { grid-column: 3; }
  .lab-row-1 { grid-row: 1; }
  .lab-row-2 { grid-row: 2; }
  .lab-row-3 { grid-row: 3; }
  .lab-row-4 { grid-row: 4; }
  .lab-row-5 { grid-row: 5; }
  .lab-row-6 { grid-row: 6; }
  .lab-spine { grid-column: 1 / -1; max-width: 680px; width: 100%; justify-self: center; }
  .lab-spine-sm { grid-column: 1 / -1; max-width: 360px; width: 100%; justify-self: center; }
}

/* Order Flow Sticky-Spotlight 3-Beat Breakdown */
#orderflow .wrap { max-width: 1440px; }
.orderflow-head-sticky { position: static; }
.beats-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(20px, 3vw, 40px);
  align-items: start;
  margin-top: 12px;
}
.beats-stage { position: static; }
.spot {
  position: relative;
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid rgba(0, 207, 190, 0.24);
  background: #111315;
}
.spot img {
  width: 100%;
  height: auto;
  display: block;
  filter: brightness(1.1) contrast(1.06);
}
.spot-dim {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: radial-gradient(ellipse var(--rx) var(--ry) at var(--x) var(--y), transparent 0 65%, rgba(9, 11, 14, 0.48) 100%);
  transition: --x .65s var(--ease), --y .65s var(--ease), --rx .65s var(--ease), --ry .65s var(--ease);
}
.spot-ring {
  position: absolute;
  left: var(--x);
  top: var(--y);
  width: calc(var(--rx) * 2);
  height: calc(var(--ry) * 2);
  transform: translate(-50%, -50%);
  border-radius: 14px;
  border: 1.5px solid rgba(0, 207, 190, 0.88);
  box-shadow: 0 0 0 1px rgba(0, 207, 190, 0.25), 0 0 24px rgba(0, 207, 190, 0.22);
  pointer-events: none;
  transition: left .65s var(--ease), top .65s var(--ease), width .65s var(--ease), height .65s var(--ease);
}
.spot figcaption {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin: 12px 14px;
  padding: 7px 14px;
  border-radius: 999px;
  background: rgba(11, 13, 17, 0.9);
  border: 1px solid rgba(0, 207, 190, 0.35);
  font: 500 12px/1.35 var(--mono);
  color: var(--text);
}
@media (min-width: 560px) {
  .spot figcaption {
    position: absolute;
    left: 16px;
    bottom: 14px;
    margin: 0;
  }
}
.beats-steps {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.beat {
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: auto;
  gap: 6px;
  padding: 18px 20px;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: rgba(27, 29, 34, 0.55);
  cursor: pointer;
  opacity: 0.55;
  transition: opacity .25s var(--ease), border-color .25s var(--ease), background-color .25s var(--ease);
}
.beat:hover { opacity: 0.85; border-color: var(--line-2); }
.beat.is-active {
  opacity: 1;
  background: var(--surface-teal);
  border-color: rgba(0, 207, 190, 0.45);
}
.beat small { font: 500 12px/1.2 var(--mono); color: var(--light); }
.beat h3 { font-size: 18px; color: var(--text); }
.beat p { font-size: 14px; line-height: 1.5; color: var(--text-2); }
.beats-progress {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  max-width: 240px;
  margin: 18px auto 0;
}
.beats-progress i {
  display: block;
  height: 3px;
  border-radius: 99px;
  background: var(--line-2);
  transition: background-color .25s var(--ease);
}
.beats-progress i.is-on { background: var(--light); }

/* Option Flow HD Showcase */
.sf-showcase {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
  align-items: center;
  padding: 20px;
  background: var(--bg);
}
.sf-media {
  justify-self: center;
  border-radius: 10px;
  border: 1px solid var(--line-2);
  background: var(--surface);
  overflow: hidden;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.36);
}
.sf-media img {
  width: auto;
  max-width: 100%;
  max-height: 540px;
  height: auto;
  display: block;
}
.sf-explain { display: grid; gap: 14px; align-content: center; }
.sf-explain small { font: 500 12px/1.3 var(--mono); color: var(--light); }
.sf-explain h3 { font-size: clamp(22px, 2.5vw, 28px); color: var(--text); }
.sf-explain p { color: var(--text-2); font-size: 16px; line-height: 1.6; max-width: 56ch; }
.sf-bullets {
  list-style: none;
  margin: 4px 0 0;
  padding: 0;
  display: grid;
  gap: 10px;
}
.sf-bullets li {
  display: grid;
  gap: 3px;
  padding: 12px 14px;
  border-radius: 8px;
  background: var(--surface);
  border: 1px solid var(--line);
}
.sf-bullets b { font: 500 12px/1.3 var(--mono); color: var(--light); }
.sf-bullets span { font-size: 14px; color: var(--text-2); }
.wide-shot.instrument img { width: 100%; height: auto; display: block; }

@media (min-width: 760px) {
  .sf-showcase {
    grid-template-columns: minmax(0, auto) minmax(0, 1fr);
    gap: 36px;
    padding: 28px;
  }
}

@media (min-width: 900px) {
  .orderflow-head-sticky {
    position: sticky;
    top: 64px;
    z-index: 4;
    background: var(--bg-2);
    padding: 16px 0 14px;
    margin-bottom: 12px;
    max-width: none;
  }
  .orderflow-head-sticky p:not(.kicker) { max-width: 62ch; }
  .beats-grid {
    grid-template-columns: minmax(0, 2.55fr) minmax(0, 1fr);
    gap: clamp(24px, 3vw, 44px);
    align-items: start;
    margin-top: 12px;
  }
  .beats-stage { position: sticky; top: 304px; }
  .beats-steps {
    gap: 110px;
    padding: 24px 0 140px;
    height: auto;
  }
}

/* MTF Analysis & Swing Desk Standalone Showcases */
.mtf-breadth-board, .mtf-timing-board, .sw-stance-board, .sw-setups-board, .sw-bridge-board {
  display: grid;
  gap: 20px;
  padding: 20px;
  background: var(--bg);
}
.breadth-kpis {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 12px 20px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--line);
}
.b-kpi-split { display: flex; flex-wrap: wrap; gap: 14px; font: 600 13px/1.3 var(--mono); }
.b-kpi-split .bull { color: var(--bull); }
.b-kpi-split .bear { color: var(--bear); }
.b-kpi-pills { display: flex; flex-wrap: wrap; gap: 8px; }
.b-kpi-pills span {
  padding: 5px 10px;
  border-radius: 6px;
  background: var(--surface);
  border: 1px solid var(--line);
  font: 400 12px/1.2 var(--mono);
  color: var(--text-2);
}
.b-kpi-pills b { color: var(--text); font-weight: 600; }
.b-kpi-pills .is-teal { background: var(--surface-teal); border-color: rgba(0, 207, 190, 0.35); color: var(--light); }
.b-kpi-pills .is-teal b { color: var(--light); }

.sector-struct-list { display: grid; gap: 10px; }
.ss-row {
  display: grid;
  grid-template-columns: 74px 1fr 72px;
  align-items: center;
  gap: 12px;
  font: 500 12px/1.3 var(--mono);
  color: var(--text-2);
}
.ss-track {
  display: flex;
  height: 10px;
  border-radius: 99px;
  background: var(--surface-2);
  overflow: hidden;
}
.ss-track i { display: block; height: 100%; }
.ss-track i.bull { background: var(--bull); }
.ss-track i.bear { background: var(--bear); }
.ss-row b { text-align: right; color: var(--bull); font-weight: 500; }
.ss-row b.bear { color: var(--bear); }

.timing-badges { display: flex; flex-wrap: wrap; gap: 10px; }
.t-badge {
  padding: 6px 12px;
  border-radius: 999px;
  font: 500 12px/1.2 var(--mono);
}
.t-badge.bear { background: rgba(239, 83, 80, 0.16); border: 1px solid rgba(239, 83, 80, 0.45); color: #ffb3b1; }
.t-badge.bull { background: rgba(38, 166, 154, 0.16); border: 1px solid rgba(38, 166, 154, 0.45); color: #9cf5ec; }

.timing-flow {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
  align-items: center;
}
.timing-flow li:not(.t-arr) {
  display: grid;
  gap: 4px;
  padding: 16px;
  border-radius: 10px;
  background: var(--surface);
  border: 1px solid var(--line-2);
}
.timing-flow li.is-final { background: var(--surface-teal); border-color: rgba(0, 207, 190, 0.45); }
.timing-flow small { font: 500 11px/1.2 var(--mono); color: var(--light); }
.timing-flow strong { font-size: 15px; color: var(--text); }
.timing-flow span { font-size: 13px; color: var(--text-2); }
.timing-flow .t-arr { text-align: center; color: var(--light); font: 600 18px/1 var(--mono); }

.sw-stance-top {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}
.sw-stance-top img, .sw-sector-img img, .sw-list-img img, .sw-conf-img img {
  width: auto;
  max-width: 100%;
  height: auto;
  display: block;
}
.stance-pill-bar {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 8px 14px;
  border-radius: 8px;
  background: var(--surface);
  border: 1px solid var(--line-2);
  font: 500 12px/1.3 var(--mono);
  color: var(--text-2);
}
.stance-pill-bar .bear { color: var(--bear); font-weight: 600; }
.sw-stance-grid, .sw-setups-board, .sw-bridge-board {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
  align-items: center;
}
.sw-sector-img, .sw-list-img, .sw-conf-img { justify-self: center; }
.sw-regime-card, .bridge-flow {
  display: grid;
  gap: 14px;
  padding: 18px;
  border-radius: 10px;
  background: var(--surface);
  border: 1px solid var(--line);
}
.sw-regime-card small, .bridge-flow > small { font: 500 12px/1.3 var(--mono); color: var(--light); }
.sw-chart-col {
  border-radius: 10px;
  border: 1px solid var(--line-2);
  background: var(--surface);
  overflow: hidden;
}
.sw-families {
  display: grid;
  grid-template-columns: 1fr;
  gap: 8px;
  padding: 12px 14px;
  border-top: 1px solid var(--line);
  background: var(--bg-2);
}
.sw-families div { display: grid; gap: 2px; font-size: 13px; color: var(--text-2); }
.sw-families b { font: 600 12px/1.3 var(--mono); }
.sw-families b.surge { color: var(--surge); }
.sw-families b.teal { color: var(--light); }
.sw-families b.bull { color: var(--bull); }

/* Animated SVG Confluence Rails & Node Flow Diagrams */
.mtf-rail { justify-content: center; gap: 10px 14px; }
.rail-svg { width: 56px; height: 14px; flex: none; }
.rail-svg path { fill: none; stroke: var(--line-2); stroke-width: 1.5; }
.rail-packet {
  fill: none;
  stroke: var(--light);
  stroke-width: 2.2;
  stroke-linecap: round;
  stroke-dasharray: 18 62;
  animation: rail-flow 2.8s linear infinite;
}
@keyframes rail-flow {
  from { stroke-dashoffset: 80; }
  to { stroke-dashoffset: 0; }
}
@media (max-width: 639px) {
  .rail-svg { display: none; }
}

.node-flow-svg { width: 100%; height: auto; display: block; }
.nf-routes { fill: none; stroke: #2e323b; stroke-width: 1.5; }
.nf-packets {
  fill: none;
  stroke: var(--light);
  stroke-width: 2.2;
  stroke-linecap: round;
  stroke-dasharray: 12 88;
  animation: lab-packet 3.2s linear infinite;
}
.nf-node rect { fill: #1b1d22; stroke: #2e323b; stroke-width: 1.2; }
.nf-core rect { fill: var(--surface-teal); stroke: rgba(0, 207, 190, 0.72); stroke-width: 1.5; }
.nf-t { font: 600 12px/1.2 var(--sans); fill: var(--text); }
.nf-core .nf-t { fill: var(--light); }
.nf-s { font: 400 10px/1.2 var(--mono); fill: var(--text-3); }
.nf-core .nf-s { fill: var(--text-2); }
.bridge-svg-wrap { min-width: 0; }

@media (min-width: 760px) {
  .mtf-breadth-board, .mtf-timing-board, .sw-stance-board, .sw-setups-board, .sw-bridge-board { padding: 28px; }
  .timing-flow { grid-template-columns: 1fr auto 1fr auto 1fr; }
  .sw-stance-grid { grid-template-columns: auto minmax(0, 1fr); gap: 28px; }
  .sw-setups-board { grid-template-columns: auto minmax(0, 1fr); gap: 28px; }
  .sw-bridge-board { grid-template-columns: auto minmax(0, 1fr); gap: 28px; }
  .sw-families { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
}

/* Final Framed CTA Card & Footer Socials */
.final-card {
  position: relative;
  display: grid;
  gap: 18px;
  justify-items: center;
  text-align: center;
  width: 100%;
  padding: clamp(32px, 5vw, 56px) clamp(20px, 4vw, 48px);
  border-radius: 16px;
  border: 1px solid var(--line-2);
  background-color: var(--surface);
  background-image:
    radial-gradient(ellipse 65% 45% at 50% 0%, rgba(0, 207, 190, 0.14), transparent 70%),
    linear-gradient(to right, rgba(255, 255, 255, 0.02) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255, 255, 255, 0.02) 1px, transparent 1px);
  background-size: 100% 100%, 24px 24px, 24px 24px;
  box-shadow: inset 0 1px 0 rgba(0, 207, 190, 0.4), 0 24px 60px rgba(0, 0, 0, 0.36);
}
.final-card .lede { max-width: 58ch; }
.final-proof {
  list-style: none;
  margin: 4px 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px 14px;
  font: 500 12px/1.3 var(--mono);
  color: var(--text-2);
}
.final-proof li {
  padding: 5px 11px;
  border-radius: 999px;
  background: var(--bg);
  border: 1px solid var(--line);
}
.final-note { font-size: 13px; color: var(--text-3); max-width: 56ch; }

.footer-socials {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 14px;
}
.social-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 8px;
  background: var(--surface);
  border: 1px solid var(--line-2);
  color: var(--text-2);
  text-decoration: none;
}
.social-link:hover:not(.is-soon) {
  color: var(--light);
  border-color: rgba(0, 207, 190, 0.45);
  background: var(--surface-teal);
}
.social-link.is-soon {
  opacity: 0.55;
  cursor: default;
}

/* Contact Links & Legal Pages */
.contact-link {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  font: 500 14px/1.4 var(--mono);
  color: var(--light);
  text-decoration: none;
}
.contact-link:hover { color: var(--light-hover); text-decoration: underline; }

.legal-page { padding-bottom: 72px; }
.legal-meta {
  font: 400 13px/1.4 var(--mono);
  color: var(--text-3);
}
.legal-article {
  width: min(100% - 2 * var(--gutter), 820px);
  margin-inline: auto;
  display: grid;
  gap: 28px;
}
.legal-toc {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 16px;
  border-radius: var(--radius);
  background: var(--surface);
  border: 1px solid var(--line);
}
.legal-toc a {
  padding: 5px 10px;
  border-radius: 6px;
  background: var(--bg);
  border: 1px solid var(--line);
  font: 400 12px/1.3 var(--mono);
  color: var(--text-2);
  text-decoration: none;
}
.legal-toc a:hover { color: var(--light); border-color: rgba(0, 207, 190, 0.4); }
.legal-article section {
  display: grid;
  gap: 10px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
}
.legal-article h2 { font-size: clamp(20px, 2.4vw, 24px); color: var(--text); }
.legal-article p, .legal-article li { color: var(--text-2); font-size: 15px; line-height: 1.7; }
.legal-article ul { margin: 0; padding-left: 20px; display: grid; gap: 8px; }
.legal-article a { color: var(--light); }
.legal-article code {
  padding: 2px 6px;
  border-radius: 4px;
  background: var(--surface-2);
  font: 400 13px/1 var(--mono);
  color: var(--text);
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition: none !important;
    scroll-behavior: auto !important;
  }
  .reveal, .beat { opacity: 1; }
  .spot-dim, .spot-ring, .beat { transition: none !important; }
}
