/* ============ Tokens ============ */
/* Accent roles: --blue = MASTER (fast feed) · --violet = RAZOR (execution). */
:root {
  --ink: #0a0916;
  --panel: #16142b;
  --panel-2: #100e22;
  --line: #272449;
  --text: #ececf6;
  --muted: #918dba;
  --blue: #3f9bff;
  --blue-dim: rgba(63, 155, 255, 0.13);
  --violet: #a071ff;
  --violet-dim: rgba(160, 113, 255, 0.14);
  --amber: #f0b429;
  --grad: linear-gradient(135deg, #3f9bff 0%, #a071ff 100%);
  --font-sans: "Open Sans", system-ui, sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, SFMono-Regular, monospace;
  --maxw: 1160px;
}

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

html { scroll-behavior: smooth; scroll-padding-top: 80px; }
html, body { overflow-x: hidden; max-width: 100%; }

body {
  background: var(--ink);
  color: var(--text);
  font-family: var(--font-sans);
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

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

a { color: inherit; }

code {
  font-family: var(--font-mono);
  font-size: 0.85em;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 4px;
  padding: 0.1em 0.4em;
  color: var(--blue);
}

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

/* ============ Buttons ============ */
.btn {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  text-decoration: none;
  padding: 0.9rem 1.6rem;
  border-radius: 6px;
  border: 1px solid transparent;
  background: transparent;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}
.btn-primary {
  background: var(--grad);
  color: #ffffff;
  box-shadow: 0 4px 18px rgba(97, 124, 255, 0.28);
}
.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(120, 100, 255, 0.42);
}
.btn-ghost {
  border-color: var(--line);
  color: var(--muted);
}
.btn-ghost:hover { color: var(--text); border-color: var(--muted); }
.btn-block { display: block; text-align: center; }
.btn-block + .btn-block { margin-top: 0.6rem; }
.btn-lg { padding: 1.1rem 2.4rem; font-size: 0.95rem; }

/* ============ Nav ============ */
.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(11, 14, 20, 0.85);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}
.nav-inner {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0.85rem 1.5rem;
  display: flex;
  align-items: center;
  gap: 2rem;
}
.brand {
  font-family: var(--font-mono);
  font-weight: 600;
  font-size: 1rem;
  letter-spacing: 0.04em;
  text-decoration: none;
}
.brand-master { color: var(--blue); }
.brand-sep { color: var(--muted); padding: 0 0.15em; }
.brand-razor { color: var(--violet); }
.nav-links {
  display: flex;
  gap: 1.4rem;
  margin-left: auto;
}
.nav-links a {
  font-size: 0.88rem;
  color: var(--muted);
  text-decoration: none;
  transition: color 0.15s ease;
}
.nav-links a:hover { color: var(--text); }
.btn-nav { padding: 0.55rem 1.1rem; font-size: 0.72rem; }
.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  flex-direction: column;
  gap: 5px;
  padding: 6px;
}
.nav-toggle span {
  width: 22px;
  height: 2px;
  background: var(--text);
  display: block;
}

/* ============ Hero ============ */
.hero {
  position: relative;
  border-bottom: 1px solid var(--line);
  overflow: hidden;
  background: var(--ink);
}
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: url("hero-robot.jpg") center right / cover no-repeat;
  opacity: 0.55;
  z-index: 0;
}
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background:
    linear-gradient(90deg, var(--ink) 0%, rgba(10, 9, 22, 0.92) 30%, rgba(10, 9, 22, 0.55) 62%, rgba(10, 9, 22, 0.30) 100%),
    linear-gradient(0deg, var(--ink) 0%, rgba(10, 9, 22, 0) 28%),
    radial-gradient(ellipse 60% 50% at 85% 20%, rgba(160, 113, 255, 0.14), transparent),
    radial-gradient(ellipse 60% 50% at 15% 80%, rgba(63, 155, 255, 0.10), transparent);
}
.hero-inner { position: relative; z-index: 1; }
.hero-inner {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 5.5rem 1.5rem 5rem;
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 4rem;
  align-items: center;
}
.eyebrow {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
  display: flex;
  align-items: center;
  gap: 0.6rem;
  margin-bottom: 1.4rem;
}
.dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  display: inline-block;
}
.dot-lime { background: var(--blue); box-shadow: 0 0 8px var(--blue); }
h1 {
  font-size: clamp(2.1rem, 4.5vw, 3.3rem);
  line-height: 1.12;
  font-weight: 800;
  letter-spacing: -0.025em;
  margin-bottom: 1.4rem;
}
h1 { margin-bottom: 0.7rem; }
h1 em { font-style: normal; }
.hl-lime { color: var(--blue); }
.hl-pink { color: var(--violet); }
.hero-tagline {
  font-size: clamp(1.15rem, 2.2vw, 1.6rem);
  font-weight: 700;
  line-height: 1.3;
  letter-spacing: -0.01em;
  color: var(--text);
  margin: 0 0 1.5rem;
  max-width: 34rem;
}
.hero-tagline em { font-style: normal; }
.hero-sub {
  color: var(--muted);
  max-width: 34rem;
  margin-bottom: 2.2rem;
}
.hero-actions { display: flex; gap: 1rem; flex-wrap: wrap; margin-bottom: 2.8rem; }
.hero-stats {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(4, auto);
  gap: 2rem;
  justify-content: start;
}
.hero-stats li { display: flex; flex-direction: column; }
.hero-stats strong {
  font-family: var(--font-mono);
  font-size: 1.05rem;
  color: var(--text);
}
.hero-stats span { font-size: 0.78rem; color: var(--muted); }

/* ============ Gap monitor (signature) ============ */
.monitor {
  background: var(--panel-2);
  border: 1px solid var(--line);
  border-radius: 10px;
  overflow: hidden;
  position: relative;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.45);
}
.monitor-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.7rem 1rem;
  border-bottom: 1px solid var(--line);
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.1em;
  color: var(--muted);
}
.monitor-title::before {
  content: "●";
  color: var(--blue);
  margin-right: 0.5rem;
  animation: blink 2s infinite;
}
@keyframes blink { 0%, 100% { opacity: 1; } 50% { opacity: 0.3; } }
.monitor-legend {
  display: flex;
  gap: 1.4rem;
  padding: 0.7rem 1rem 0.2rem;
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.05em;
  color: var(--muted);
}
.monitor-legend span { display: flex; align-items: center; gap: 0.45rem; }
.swatch { width: 14px; height: 2px; display: inline-block; }
.swatch-lime { background: var(--blue); }
.swatch-pink { background: var(--violet); }
#gapCanvas { width: 100%; height: auto; }
.monitor-flash {
  position: absolute;
  left: 50%;
  top: 45%;
  transform: translate(-50%, -50%);
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  color: #ffffff;
  background: var(--violet);
  padding: 0.4rem 0.9rem;
  border-radius: 4px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease;
}
.monitor-flash.is-on { opacity: 1; }
.monitor-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-top: 1px solid var(--line);
}
.monitor-stats > div {
  padding: 0.8rem 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}
.monitor-stats > div + div { border-left: 1px solid var(--line); }
.ms-label {
  font-family: var(--font-mono);
  font-size: 0.6rem;
  letter-spacing: 0.1em;
  color: var(--muted);
}
.ms-value {
  font-family: var(--font-mono);
  font-size: 0.85rem;
  color: var(--text);
}

/* ============ Sections ============ */
.section { border-bottom: 1px solid var(--line); }
.section-alt { background: var(--panel-2); }
.section-inner {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 5rem 1.5rem;
}
.section-narrow { max-width: 820px; }
.kicker {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--violet);
  margin-bottom: 0.9rem;
}
h2 {
  font-size: clamp(1.6rem, 3vw, 2.3rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.2;
  margin-bottom: 1rem;
}
.lede {
  color: var(--muted);
  font-size: 1.08rem;
  max-width: 46rem;
  margin-bottom: 3rem;
}

/* ============ Origin / first-mover ============ */
.origin {
  background:
    radial-gradient(ellipse 70% 60% at 100% 0%, rgba(160, 113, 255, 0.10), transparent),
    radial-gradient(ellipse 70% 60% at 0% 100%, rgba(63, 155, 255, 0.08), transparent),
    var(--panel-2);
}
.origin-head { max-width: 20ch; }
.origin-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  margin-top: 1rem;
}
.origin-card {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 2rem 1.8rem;
  position: relative;
  overflow: hidden;
}
.origin-card::before {
  content: "";
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 3px;
  background: var(--grad);
}
.origin-num {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  letter-spacing: 0.1em;
  color: var(--violet);
  display: block;
  margin-bottom: 1.1rem;
}
.origin-card h3 { font-size: 1.15rem; margin-bottom: 0.7rem; letter-spacing: -0.01em; }
.origin-card p { font-size: 0.92rem; color: var(--muted); }

/* ============ Highlights band ============ */
.highlights {
  border-bottom: 1px solid var(--line);
  background:
    linear-gradient(90deg, rgba(63,155,255,0.08), rgba(160,113,255,0.08));
}
.highlights-inner {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 3rem 1.5rem;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}
.hl-card {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 1.8rem;
  position: relative;
  overflow: hidden;
  transition: transform 0.18s ease, border-color 0.18s ease;
}
.hl-card::after {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 3px;
  background: var(--grad);
  opacity: 0.9;
}
.hl-card:hover { transform: translateY(-3px); border-color: var(--blue); }
.hl-icon {
  font-size: 1.7rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px; height: 48px;
  border-radius: 10px;
  background: var(--blue-dim);
  margin-bottom: 1rem;
}
.hl-card h3 {
  font-size: 1.1rem;
  letter-spacing: -0.01em;
  margin-bottom: 0.5rem;
  color: var(--text);
}
.hl-card p { font-size: 0.92rem; color: var(--muted); line-height: 1.6; }

/* ============ Param actions + input-params modal ============ */
.param-actions {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
  margin-bottom: 1.6rem;
}
.param-actions-note { font-size: 0.85rem; color: var(--muted); }

body.modal-open { overflow: hidden; }

.img-modal {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.2rem;
}
.img-modal[hidden] { display: none; }
.img-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(4, 6, 12, 0.82);
  backdrop-filter: blur(3px);
}
.img-modal-box {
  position: relative;
  z-index: 1;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 14px;
  max-width: 760px;
  width: 100%;
  max-height: 90vh;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.55);
}
.img-modal-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.9rem 1.1rem;
  border-bottom: 1px solid var(--line);
}
.img-modal-cap {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text);
  font-family: var(--mono, monospace);
  letter-spacing: 0.01em;
}
.img-modal-close {
  background: none;
  border: none;
  color: var(--muted);
  font-size: 1.7rem;
  line-height: 1;
  cursor: pointer;
  padding: 0 0.3rem;
  transition: color 0.15s ease;
}
.img-modal-close:hover { color: var(--text); }
.img-modal-scroll {
  overflow: auto;
  padding: 1rem;
}
.img-modal-scroll img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 8px;
}

/* ============ Results / screenshots ============ */
.results-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.6rem;
  margin-top: 2.2rem;
  max-width: 860px;
}
.result-card {
  position: relative;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 12px;
  overflow: hidden;
}
.result-shot {
  position: relative;
  aspect-ratio: 16 / 10;
  background: #0f1320;
  overflow: hidden;
}
.result-shot img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.result-placeholder {
  position: absolute;
  inset: 0;
  display: none;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  color: var(--muted);
  font-family: var(--font-mono, monospace);
  font-size: 0.85rem;
  letter-spacing: 0.04em;
  text-align: center;
  background:
    repeating-linear-gradient(45deg, rgba(139,147,167,0.04) 0 12px, transparent 12px 24px),
    #0f1320;
  border-bottom: 1px solid var(--line);
}
.result-placeholder small { font-size: 0.7rem; opacity: 0.6; }
.result-shot.is-empty img { display: none; }
.result-shot.is-empty .result-placeholder { display: flex; }
/* balance-curve screenshots: show the whole chart, never crop */
.result-shot.is-chart { aspect-ratio: 886 / 324; background: #ffffff; }
.result-shot.is-chart img { object-fit: contain; }
.result-badge {
  position: absolute;
  top: 0.8rem;
  left: 0.8rem;
  z-index: 2;
  font-family: var(--font-mono, monospace);
  font-size: 0.68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 0.28rem 0.6rem;
  border-radius: 999px;
}
.result-badge.is-win { background: rgba(46,204,113,0.16); color: #4fd487; border: 1px solid rgba(46,204,113,0.4); }
.result-badge.is-loss { background: rgba(231,76,60,0.14); color: #ff6b5e; border: 1px solid rgba(231,76,60,0.4); }
.result-badge.is-range { background: rgba(63,155,255,0.16); color: #7cb8ff; border: 1px solid rgba(63,155,255,0.4); }
.result-card figcaption {
  padding: 0.9rem 1.1rem;
  font-size: 0.85rem;
  color: var(--muted);
  line-height: 1.5;
}
.results-note {
  margin-top: 1.8rem;
  max-width: 720px;
  font-size: 0.88rem;
  color: var(--muted);
  line-height: 1.6;
}
.results-note a { color: var(--blue); }

/* ============ Live demo video ============ */
.demo-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  gap: 1.8rem;
  margin-top: 2.2rem;
  align-items: start;
}
.demo-video {
  background: #000;
  border: 1px solid var(--line);
  border-radius: 12px;
  overflow: hidden;
}
.demo-video video { width: 100%; display: block; }
.demo-legend {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 1.4rem 1.5rem;
}
.demo-legend h3 { font-size: 1.05rem; margin-bottom: 1rem; }
.demo-legend ul { list-style: none; display: flex; flex-direction: column; gap: 0.75rem; }
.demo-legend li {
  position: relative;
  padding-left: 1.6rem;
  font-size: 0.9rem;
  color: var(--muted);
  line-height: 1.45;
}
.demo-legend li strong { color: var(--text); font-weight: 700; }
.demo-key {
  position: absolute;
  left: 0;
  top: 0.28rem;
  width: 1rem;
  height: 0.28rem;
  border-radius: 2px;
  background: var(--k, #888);
  box-shadow: 0 0 8px var(--k, #888);
}
.demo-key-dot {
  width: 0.5rem;
  height: 0.5rem;
  border-radius: 50%;
  top: 0.18rem;
  left: 0.2rem;
  background: var(--muted);
  box-shadow: none;
}
.demo-entry {
  margin-top: 1.2rem;
  padding-top: 1.1rem;
  border-top: 1px solid var(--line);
  font-size: 0.9rem;
  color: var(--muted);
  line-height: 1.55;
}
.demo-entry strong { color: var(--text); }

/* ============ Concept ============ */
.concept-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 3rem;
  align-items: start;
}
.concept-text p + p { margin-top: 1.2rem; }
.concept-text { color: var(--muted); }
.concept-text strong { color: var(--text); }
.concept-window {
  background: var(--panel);
  border: 1px solid var(--line);
  border-left: 3px solid var(--blue);
  border-radius: 8px;
  padding: 1.8rem;
}
.concept-window h3 {
  font-family: var(--font-mono);
  font-size: 0.85rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--blue);
  margin-bottom: 1rem;
}
.concept-window p { font-size: 0.95rem; color: var(--muted); }
.concept-window p + p { margin-top: 1rem; }
.concept-window strong { color: var(--text); }

/* ============ Mechanism ============ */
.steps {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  counter-reset: step;
  margin-bottom: 3.5rem;
}
.step {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 1.8rem;
  position: relative;
  counter-increment: step;
}
.step::before {
  content: counter(step, decimal-leading-zero);
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--muted);
  position: absolute;
  top: 1.4rem;
  right: 1.4rem;
}
.step-tag {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  padding: 0.25rem 0.6rem;
  border-radius: 4px;
  display: inline-block;
  margin-bottom: 1rem;
}
.tag-lime { background: var(--blue-dim); color: var(--blue); }
.tag-pink { background: var(--violet-dim); color: var(--violet); }
.step h3 { font-size: 1.1rem; margin-bottom: 0.6rem; }
.step p { font-size: 0.92rem; color: var(--muted); }

.pipeline {
  display: grid;
  grid-template-columns: 1fr auto 1fr auto 1fr;
  gap: 1rem;
  align-items: stretch;
}
.pipe-node {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 1.3rem;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}
.pipe-lime { border-top: 3px solid var(--blue); }
.pipe-pink { border-top: 3px solid var(--violet); }
.pipe-mid { border-top: 3px solid var(--muted); }
.pipe-label {
  font-family: var(--font-mono);
  font-size: 0.62rem;
  letter-spacing: 0.12em;
  color: var(--muted);
}
.pipe-node strong { font-family: var(--font-mono); font-size: 0.95rem; }
.pipe-lime strong { color: var(--blue); }
.pipe-pink strong { color: var(--violet); }
.pipe-desc { font-size: 0.82rem; color: var(--muted); }
.pipe-arrow {
  align-self: center;
  color: var(--muted);
  font-size: 1.4rem;
}
.pipeline-note {
  margin-top: 1.5rem;
  font-size: 0.9rem;
  color: var(--muted);
}

/* ============ Features ============ */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
}
.feature-card {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 1.8rem;
}
.feature-card h3 {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--blue);
  margin-bottom: 1.3rem;
  padding-bottom: 0.8rem;
  border-bottom: 1px solid var(--line);
}
.feature-card dl { display: grid; gap: 0.9rem; }
.feature-card dt { font-weight: 600; font-size: 0.95rem; }
.feature-card dd { font-size: 0.88rem; color: var(--muted); }

/* ============ Parameters ============ */
.param-tabs { display: flex; gap: 0.6rem; margin-bottom: 1.5rem; }
.param-tab {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.06em;
  background: none;
  border: 1px solid var(--line);
  color: var(--muted);
  padding: 0.6rem 1.2rem;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.15s ease;
}
.param-tab:hover { color: var(--text); }
.param-tab.is-active {
  background: var(--violet-dim);
  border-color: var(--violet);
  color: var(--violet);
}
.table-scroll { overflow-x: auto; border: 1px solid var(--line); border-radius: 8px; }
table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.85rem;
  min-width: 640px;
}
th, td { text-align: left; padding: 0.75rem 1.1rem; }
thead th {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
  background: var(--panel);
  border-bottom: 1px solid var(--line);
}
tbody tr + tr td { border-top: 1px solid var(--line); }
tbody td:first-child { font-family: var(--font-mono); color: var(--blue); white-space: nowrap; font-size: 0.8rem; }
tbody td:nth-child(2) { font-family: var(--font-mono); color: var(--text); white-space: nowrap; font-size: 0.8rem; }
tbody td:last-child { color: var(--muted); }

/* ============ Requirements ============ */
.req-grid {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
  margin-top: 2rem;
}
.req-grid li {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 1.6rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}
.req-grid strong {
  font-family: var(--font-mono);
  font-size: 1.5rem;
  color: var(--violet);
}
.req-grid span { font-size: 0.9rem; color: var(--muted); }
.req-note {
  margin-top: 1.4rem;
  max-width: 760px;
  font-size: 0.92rem;
  color: var(--muted);
  line-height: 1.65;
  padding-left: 1rem;
  border-left: 2px solid var(--blue);
}

/* ============ Pricing ============ */
.pricing-inner {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 4rem;
  align-items: center;
}
.included {
  list-style: none;
  display: grid;
  gap: 0.7rem;
  margin-bottom: 1.8rem;
}
.included li {
  padding-left: 1.6rem;
  position: relative;
  color: var(--muted);
  font-size: 0.97rem;
}
.included li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--blue);
  font-weight: 700;
}
.included strong { color: var(--text); }
.pricing-note { font-size: 0.88rem; color: var(--muted); border-left: 2px solid var(--line); padding-left: 1rem; }
.price-card {
  background: var(--panel);
  border: 1px solid var(--blue);
  border-radius: 12px;
  padding: 2.4rem;
  text-align: center;
  box-shadow: 0 0 60px rgba(160, 113, 255, 0.12);
}
.price-tag {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.16em;
  color: var(--blue);
  background: var(--blue-dim);
  padding: 0.35rem 0.9rem;
  border-radius: 100px;
  display: inline-block;
  margin-bottom: 1.4rem;
}
.price-figure {
  font-family: var(--font-mono);
  font-size: 4rem;
  font-weight: 600;
  line-height: 1;
  margin-bottom: 0.8rem;
}
.price-figure sup { font-size: 1.8rem; color: var(--muted); }
.price-per {
  display: block;
  font-size: 0.8rem;
  color: var(--muted);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-top: 0.5rem;
}
.price-sub { font-size: 0.9rem; color: var(--muted); margin-bottom: 1.8rem; }
.price-foot {
  display: block;
  margin-top: 1.2rem;
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.06em;
  color: var(--muted);
}

/* ============ FAQ ============ */
.faq-list { display: grid; gap: 0.8rem; }
.faq-list details {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: hidden;
}
.faq-list summary {
  padding: 1.1rem 1.4rem;
  font-weight: 600;
  font-size: 0.98rem;
  cursor: pointer;
  list-style: none;
  position: relative;
  padding-right: 3rem;
}
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary::after {
  content: "+";
  font-family: var(--font-mono);
  position: absolute;
  right: 1.4rem;
  top: 50%;
  transform: translateY(-50%);
  color: var(--violet);
  font-size: 1.2rem;
  transition: transform 0.2s ease;
}
.faq-list details[open] summary::after { transform: translateY(-50%) rotate(45deg); }
.faq-list details p {
  padding: 0 1.4rem 1.3rem;
  color: var(--muted);
  font-size: 0.93rem;
}

/* ============ Risk ============ */
.risk { background: rgba(240, 180, 41, 0.04); }
.risk h2 {
  font-size: 1.15rem;
  font-family: var(--font-mono);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--amber);
}
.risk p { font-size: 0.9rem; color: var(--muted); }
.risk p + p { margin-top: 1rem; }

/* ============ Final CTA / Footer ============ */
.final-cta { text-align: center; }
.final-cta .lede { margin: 0 auto 2.2rem; }
.footer { background: var(--panel-2); }
.footer-inner {
  padding: 2.5rem 1.5rem;
  display: flex;
  align-items: center;
  gap: 2rem;
  flex-wrap: wrap;
}
.footer nav { display: flex; flex-wrap: wrap; gap: 0.9rem 1.4rem; margin-left: auto; }
.footer nav a {
  font-size: 0.85rem;
  color: var(--muted);
  text-decoration: none;
}
.footer nav a:hover { color: var(--text); }
.footer-copy { width: 100%; font-size: 0.78rem; color: var(--muted); }

/* ============ Reveal on scroll ============ */
.reveal {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.reveal.is-visible { opacity: 1; transform: none; }

/* ============ Responsive ============ */
@media (max-width: 960px) {
  .hero-inner { grid-template-columns: 1fr; gap: 3rem; padding-top: 3.5rem; }
  .concept-grid, .pricing-inner { grid-template-columns: 1fr; gap: 2.5rem; }
  .origin-grid { grid-template-columns: 1fr; }
  .highlights-inner { grid-template-columns: 1fr; }
  .results-grid { grid-template-columns: 1fr; }
  .demo-grid { grid-template-columns: 1fr; }
  .footer nav { margin-left: 0; }
  .steps { grid-template-columns: 1fr; }
  .pipeline { grid-template-columns: 1fr; }
  .pipe-arrow { transform: rotate(90deg); justify-self: center; }
  .feature-grid { grid-template-columns: 1fr; }
  .req-grid { grid-template-columns: repeat(2, 1fr); }
  .nav-links { display: none; }
  .nav-toggle { display: flex; margin-left: auto; }
  .btn-nav { margin-left: auto; }
  .nav-links.is-open {
    display: flex;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    background: var(--ink);
    border-bottom: 1px solid var(--line);
    padding: 1.2rem 1.5rem;
    gap: 1rem;
  }
}
@media (max-width: 560px) {
  th, td { padding: 0.55rem 0.8rem; }
  table { min-width: 560px; font-size: 0.8rem; }
  .hero-stats { grid-template-columns: repeat(2, 1fr); }
  .monitor-stats { grid-template-columns: repeat(2, 1fr); }
  .monitor-stats > div:nth-child(3) { border-left: none; border-top: 1px solid var(--line); }
  .monitor-stats > div:nth-child(4) { border-top: 1px solid var(--line); }
  .req-grid { grid-template-columns: 1fr; }
}

/* ============ Reduced motion ============ */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .btn, .param-tab { transition: none; }
  .monitor-title::before { animation: none; }
}
