/* ============================================================
   SLSBMB landing — premium cyberpunk command interface
   Design contract: docs/sender-engine/slsbmb-ai-sender-landing-brief.md (v3)
   ============================================================ */

@font-face {
  font-family: "Space Grotesk";
  src: url("/assets/fonts/SpaceGrotesk-500.woff2") format("woff2");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Space Grotesk";
  src: url("/assets/fonts/SpaceGrotesk-700.woff2") format("woff2");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Plex Mono";
  src: url("/assets/fonts/PlexMono-400.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Plex Mono";
  src: url("/assets/fonts/PlexMono-500.woff2") format("woff2");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}

:root {
  --bg: #04060a;
  --bg-panel: rgba(10, 17, 26, 0.82);
  --bg-panel-solid: #0a111a;
  --line: rgba(110, 215, 180, 0.14);
  --line-strong: rgba(80, 242, 180, 0.34);
  --accent: #50f2b4;
  --accent-deep: #19c98c;
  --accent-glow: rgba(80, 242, 180, 0.22);
  --warn: #ffb454;
  --danger: #ff6b81;
  --text: #e8eef6;
  --text-dim: #aab6c5;
  --text-faint: #5b6a7d;
  --display: "Space Grotesk", "Avenir Next", system-ui, sans-serif;
  --mono: "Plex Mono", ui-monospace, "SF Mono", Menlo, monospace;
  --radius: 14px;
  --maxw: 1180px;
}

* {
  box-sizing: border-box;
}
[hidden] {
  display: none !important;
}
html {
  scroll-behavior: smooth;
}
html,
body {
  margin: 0;
  padding: 0;
}

body {
  background: radial-gradient(1200px 700px at 78% -10%, rgba(40, 120, 95, 0.14), transparent 60%),
    radial-gradient(900px 600px at -10% 30%, rgba(35, 80, 120, 0.1), transparent 55%), var(--bg);
  color: var(--text);
  font-family: var(--display);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

/* faint engineering grid over everything, below content */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  background-image: linear-gradient(rgba(122, 226, 188, 0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(122, 226, 188, 0.025) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(1200px 900px at 50% 0%, #000 30%, transparent 90%);
}

::selection {
  background: rgba(80, 242, 180, 0.25);
}

h1,
h2,
h3,
h4 {
  font-family: var(--display);
  line-height: 1.12;
  margin: 0;
}
a {
  color: var(--accent);
  text-decoration: none;
}
a:hover {
  text-decoration: none;
}

/* ---------- nav ---------- */

.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 28px;
  background: linear-gradient(rgba(4, 6, 10, 0.86), rgba(4, 6, 10, 0.62));
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(110, 215, 180, 0.08);
}

.brand {
  font-family: var(--mono);
  font-weight: 500;
  font-size: 15px;
  letter-spacing: 0.22em;
  color: var(--text);
  display: inline-flex;
  align-items: center;
  gap: 10px;
}
.brand-dot {
  width: 8px;
  height: 8px;
  border-radius: 2px;
  background: var(--accent);
  box-shadow: 0 0 12px var(--accent), 0 0 28px var(--accent-glow);
  animation: dotpulse 3.2s ease-in-out infinite;
}
@keyframes dotpulse {
  0%,
  100% {
    opacity: 1;
  }
  50% {
    opacity: 0.45;
  }
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 26px;
}
.nav-links a {
  font-family: var(--mono);
  font-size: 12.5px;
  letter-spacing: 0.08em;
  color: var(--text-dim);
  transition: color 0.2s;
}
.nav-links a:hover {
  color: var(--text);
}
.nav-cta {
  color: var(--accent) !important;
  border: 1px solid var(--line-strong);
  padding: 8px 14px;
  border-radius: 9px;
  transition: background 0.2s, box-shadow 0.2s;
}
.nav-cta:hover {
  background: rgba(80, 242, 180, 0.08);
  box-shadow: 0 0 18px var(--accent-glow);
}

/* ---------- hero ---------- */

.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  align-items: center;
  padding: 110px 28px 60px;
  z-index: 1;
}

#field {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
}
.hero-grad {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background: linear-gradient(180deg, transparent 55%, var(--bg) 98%);
}

.hero-inner {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: var(--maxw);
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(440px, 560px);
  gap: 56px;
  align-items: center;
}

.kicker {
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.32em;
  color: var(--accent);
  margin: 0 0 14px;
}

.hero h1 {
  position: relative;
  font-size: clamp(56px, 7.2vw, 96px);
  font-weight: 700;
  letter-spacing: 0.04em;
  margin-bottom: 18px;
  background: linear-gradient(
    115deg,
    #f2f7fc 0%,
    #f2f7fc 38%,
    #9beed1 58%,
    #50f2b4 78%,
    #cffceb 92%,
    #f2f7fc 100%
  );
  background-size: 220% 100%;
  background-position: 0% 50%;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  text-shadow: 0 0 80px rgba(80, 242, 180, 0.18);
  animation: h1sweep 9s ease-in-out infinite;
}

.claim {
  font-size: clamp(19px, 1.8vw, 23px);
  font-weight: 500;
  color: var(--text);
  max-width: 30ch;
  margin: 0 0 14px;
}
.subclaim {
  font-size: 15.5px;
  color: var(--text-dim);
  max-width: 46ch;
  margin: 0 0 30px;
}

.hero-ctas {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}

.btn {
  font-family: var(--mono);
  font-size: 13.5px;
  font-weight: 500;
  letter-spacing: 0.05em;
  padding: 15px 24px;
  border-radius: 11px;
  border: 1px solid transparent;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.16s ease, box-shadow 0.25s ease, background 0.2s ease;
  user-select: none;
}
.btn:active {
  transform: translateY(1px);
}

.btn-primary {
  background: linear-gradient(140deg, #3ee8a6, #14b87e);
  color: #03130c;
  box-shadow: 0 0 0 1px rgba(80, 242, 180, 0.4), 0 8px 32px rgba(20, 184, 126, 0.28);
}
.btn-primary:hover {
  box-shadow: 0 0 0 1px rgba(80, 242, 180, 0.7), 0 10px 44px rgba(20, 184, 126, 0.45);
  transform: translateY(-1px);
}

.btn-ghost {
  background: rgba(10, 17, 26, 0.5);
  color: var(--text);
  border-color: rgba(140, 170, 190, 0.22);
}
.btn-ghost:hover {
  border-color: var(--line-strong);
  color: var(--accent);
}

/* ---------- console ---------- */

.console {
  background: var(--bg-panel);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 26px 28px 22px;
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  box-shadow: 0 0 0 1px rgba(8, 14, 20, 0.6), 0 24px 80px rgba(0, 0, 0, 0.55), inset 0 0 60px
    rgba(80, 242, 180, 0.03);
}

.console-head {
  display: flex;
  justify-content: space-between;
  margin-bottom: 10px;
}
.console-label {
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  color: var(--text-faint);
}
.console-label-right {
  color: rgba(80, 242, 180, 0.55);
}

.readout {
  display: flex;
  align-items: baseline;
  gap: 10px;
  margin-bottom: 18px;
}
.readout-value {
  font-family: var(--mono);
  font-weight: 500;
  font-size: clamp(40px, 4vw, 52px);
  color: var(--accent);
  text-shadow: 0 0 30px var(--accent-glow);
  font-variant-numeric: tabular-nums;
}
.readout-unit {
  font-family: var(--mono);
  font-size: 16px;
  color: var(--text-faint);
}

/* slider */

.slider-wrap {
  position: relative;
  padding-bottom: 30px;
  margin-bottom: 20px;
}

input[type="range"] {
  -webkit-appearance: none;
  appearance: none;
  width: 100%;
  height: 34px;
  background: transparent;
  margin: 0;
  position: relative;
  z-index: 2;
  cursor: pointer;
}
input[type="range"]:focus {
  outline: none;
}
input[type="range"]:focus-visible::-webkit-slider-thumb {
  box-shadow: 0 0 0 4px rgba(80, 242, 180, 0.35), 0 0 24px var(--accent);
}

input[type="range"]::-webkit-slider-runnable-track {
  height: 6px;
  border-radius: 3px;
  background: linear-gradient(
    90deg,
    var(--accent-deep) 0%,
    var(--accent) var(--fill, 53.85%),
    rgba(90, 110, 130, 0.25) var(--fill, 53.85%)
  );
}
input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 26px;
  height: 26px;
  border-radius: 8px;
  margin-top: -10px;
  background: linear-gradient(150deg, #cffceb, #50f2b4 55%, #14b87e);
  border: 1px solid rgba(220, 255, 240, 0.7);
  box-shadow: 0 0 18px var(--accent), 0 4px 14px rgba(0, 0, 0, 0.5);
  transition: box-shadow 0.2s;
}
input[type="range"]::-moz-range-track {
  height: 6px;
  border-radius: 3px;
  background: rgba(90, 110, 130, 0.25);
}
input[type="range"]::-moz-range-progress {
  height: 6px;
  border-radius: 3px;
  background: linear-gradient(90deg, var(--accent-deep), var(--accent));
}
input[type="range"]::-moz-range-thumb {
  width: 24px;
  height: 24px;
  border-radius: 8px;
  background: linear-gradient(150deg, #cffceb, #50f2b4 55%, #14b87e);
  border: 1px solid rgba(220, 255, 240, 0.7);
  box-shadow: 0 0 18px var(--accent), 0 4px 14px rgba(0, 0, 0, 0.5);
}

.ticks {
  position: absolute;
  left: 13px;
  right: 13px;
  top: 24px;
  display: flex;
  justify-content: space-between;
  pointer-events: none;
}
.ticks span {
  width: 1px;
  height: 7px;
  background: rgba(140, 170, 190, 0.35);
}

.tick-labels {
  position: absolute;
  left: 13px;
  right: 13px;
  top: 36px;
  height: 16px;
  pointer-events: none;
}
.tick-labels span {
  position: absolute;
  transform: translateX(-50%);
  font-family: var(--mono);
  font-size: 10.5px;
  color: var(--text-faint);
  letter-spacing: 0.04em;
}
/* slider stop positions (CSP forbids inline style attributes — keep these
   in sync with STOPS in app.js: $3k 0%, $7k 30.77%, $10k 53.85%, $20k 76.92%, $100k+ 100%) */
.tick-labels span:nth-child(1) {
  left: 0;
  transform: translateX(0);
}
.tick-labels span:nth-child(2) {
  left: 30.77%;
}
.tick-labels span:nth-child(3) {
  left: 53.85%;
}
.tick-labels span:nth-child(4) {
  left: 76.92%;
}
.tick-labels span:nth-child(5) {
  left: 100%;
  transform: translateX(-100%);
}

/* counters */

.counters {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
  margin-bottom: 16px;
}
.counter {
  background: rgba(6, 11, 17, 0.75);
  border: 1px solid rgba(110, 215, 180, 0.1);
  border-radius: 11px;
  padding: 13px 12px 11px;
  display: flex;
  flex-direction: column;
  gap: 5px;
  min-width: 0;
}
.counter-value {
  font-family: var(--mono);
  font-weight: 500;
  font-size: clamp(15px, 1.35vw, 18px);
  color: var(--text);
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}
.counter-label {
  font-size: 11.5px;
  line-height: 1.35;
  color: var(--text-faint);
  letter-spacing: 0.02em;
}
.counter.bump .counter-value {
  animation: bump 0.4s ease;
}
@keyframes bump {
  0% {
    color: var(--accent);
    transform: translateY(1px);
  }
  100% {
    color: var(--text);
    transform: none;
  }
}

.confidence {
  font-size: 12px;
  color: var(--text-faint);
  margin: 0;
  line-height: 1.5;
}

/* ---------- sections ---------- */

.section {
  position: relative;
  z-index: 1;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 110px 28px 10px;
}
.section h2 {
  font-size: clamp(30px, 3.4vw, 44px);
  font-weight: 700;
  letter-spacing: 0.01em;
  margin-bottom: 16px;
  max-width: 24ch;
}
.section-lede {
  color: var(--text-dim);
  max-width: 62ch;
  margin: 0 0 42px;
}
.section-note {
  font-family: var(--mono);
  font-size: 13px;
  color: var(--text-faint);
  margin: 34px 0 0;
}

/* chain */

.chain {
  display: flex;
  align-items: stretch;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 36px;
}
.chain-node {
  flex: 1 1 130px;
  background: var(--bg-panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 18px 16px 14px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-width: 130px;
  position: relative;
}
.chain-value {
  font-family: var(--mono);
  font-weight: 500;
  font-size: 19px;
  color: var(--accent);
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}
.chain-label {
  font-size: 12.5px;
  color: var(--text-dim);
  letter-spacing: 0.03em;
}
.chain-arrow {
  align-self: center;
  width: 18px;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--line-strong));
  position: relative;
}
.chain-arrow::after {
  content: "";
  position: absolute;
  right: 0;
  top: -3px;
  border-left: 6px solid var(--line-strong);
  border-top: 3.5px solid transparent;
  border-bottom: 3.5px solid transparent;
}
.chain-node-learn {
  border-color: var(--line-strong);
  box-shadow: inset 0 0 28px rgba(80, 242, 180, 0.05);
}
.chain-infinity {
  font-size: 22px;
  line-height: 0.9;
}

/* proof modules */

.modules {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}
.module {
  background: var(--bg-panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 30px 28px;
  transition: border-color 0.25s, transform 0.25s, box-shadow 0.25s;
}
.module:hover {
  border-color: var(--line-strong);
  transform: translateY(-3px);
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.45), 0 0 36px rgba(80, 242, 180, 0.05);
}
.module-glyph {
  width: 48px;
  height: 48px;
  color: var(--accent);
  margin-bottom: 18px;
  filter: drop-shadow(0 0 10px var(--accent-glow));
}
.module h3 {
  font-family: var(--mono);
  font-weight: 500;
  font-size: 16px;
  letter-spacing: 0.08em;
  margin-bottom: 10px;
}
.module p {
  color: var(--text-dim);
  font-size: 14.5px;
  margin: 0;
}

/* factory loop */

.loop {
  margin: 30px 0 8px;
}
.loop-svg {
  width: 100%;
  height: auto;
  display: block;
}
.loop-nodes {
  display: flex;
  justify-content: space-between;
  margin-top: -116px;
  padding: 0 34px 56px;
  position: relative;
  pointer-events: none;
}
.loop-chip {
  font-family: var(--mono);
  font-size: 12.5px;
  font-weight: 500;
  letter-spacing: 0.06em;
  color: var(--text);
  background: var(--bg-panel-solid);
  border: 1px solid var(--line);
  border-radius: 9px;
  padding: 9px 13px;
  opacity: 0;
  transform: translateY(8px);
}
.in .loop-chip {
  animation: chipin 0.5s ease forwards;
}
.in .loop-chip:nth-child(2) {
  animation-delay: 0.14s;
}
.in .loop-chip:nth-child(3) {
  animation-delay: 0.28s;
}
.in .loop-chip:nth-child(4) {
  animation-delay: 0.42s;
}
.in .loop-chip:nth-child(5) {
  animation-delay: 0.56s;
}
.in .loop-chip:nth-child(6) {
  animation-delay: 0.7s;
}
@keyframes chipin {
  to {
    opacity: 1;
    transform: none;
    border-color: var(--line-strong);
  }
}

.loop-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
.loop-item {
  border-left: 2px solid var(--line-strong);
  padding: 4px 0 4px 16px;
}
.loop-item h4 {
  font-family: var(--mono);
  font-size: 13.5px;
  font-weight: 500;
  letter-spacing: 0.08em;
  color: var(--accent);
  margin-bottom: 6px;
}
.loop-item p {
  margin: 0;
  font-size: 14px;
  color: var(--text-dim);
}

/* defs */

.defs {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}
.def {
  background: var(--bg-panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 22px 24px;
}
.def h4 {
  font-family: var(--mono);
  font-size: 13.5px;
  font-weight: 500;
  letter-spacing: 0.07em;
  color: var(--accent);
  margin-bottom: 8px;
}
.def p {
  margin: 0;
  font-size: 14.5px;
  color: var(--text-dim);
}

/* ---------- intake ---------- */

.path {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 34px;
}
.path-step {
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.05em;
  color: var(--text-faint);
  border: 1px solid rgba(140, 170, 190, 0.18);
  border-radius: 999px;
  padding: 8px 15px;
  position: relative;
}
.path-step.is-active {
  color: var(--accent);
  border-color: var(--line-strong);
  box-shadow: 0 0 16px rgba(80, 242, 180, 0.1);
}
.path-step + .path-step::before {
  content: "›";
  position: absolute;
  left: -10px;
  top: 50%;
  transform: translate(-50%, -52%);
  color: var(--text-faint);
}

.wizard {
  background: var(--bg-panel);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 30px 34px 34px;
  max-width: 760px;
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  margin-bottom: 60px;
}

.wizard-progress {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  margin-bottom: 28px;
}
.wp-step {
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-faint);
  padding: 6px 11px;
  border-radius: 7px;
  border: 1px solid transparent;
}
.wp-step.is-current {
  color: var(--accent);
  border-color: var(--line-strong);
  background: rgba(80, 242, 180, 0.05);
}
.wp-step.is-done {
  color: var(--text-dim);
}
.wp-step.is-done::after {
  content: " ✓";
  color: var(--accent);
}

.wstep {
  display: none;
  border: 0;
  padding: 0;
  margin: 0;
}
.wstep.is-current {
  display: block;
  animation: stepin 0.35s ease;
}
@keyframes stepin {
  from {
    opacity: 0;
    transform: translateX(10px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

.field {
  margin-bottom: 20px;
  position: relative;
}
.field label {
  display: block;
  font-family: var(--mono);
  font-size: 12.5px;
  font-weight: 500;
  letter-spacing: 0.05em;
  color: var(--text-dim);
  margin-bottom: 8px;
}
.field label em {
  color: var(--text-faint);
  font-style: normal;
}

.field input[type="text"],
.field input[type="email"],
.field input[type="url"],
.field select,
.field textarea {
  width: 100%;
  background: rgba(5, 9, 14, 0.85);
  border: 1px solid rgba(140, 170, 190, 0.2);
  border-radius: 10px;
  color: var(--text);
  font-family: var(--display);
  font-size: 15px;
  padding: 12px 14px;
  transition: border-color 0.2s, box-shadow 0.2s;
  resize: vertical;
}
.field select {
  appearance: none;
  cursor: pointer;
}
.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--line-strong);
  box-shadow: 0 0 0 3px rgba(80, 242, 180, 0.1);
}
.field.is-ok input,
.field.is-ok select,
.field.is-ok textarea {
  border-color: rgba(80, 242, 180, 0.45);
}
.field.is-warn input,
.field.is-warn select,
.field.is-warn textarea {
  border-color: rgba(255, 180, 84, 0.55);
}
.field.is-bad input,
.field.is-bad select,
.field.is-bad textarea {
  border-color: rgba(255, 107, 129, 0.6);
}

.fstate {
  display: none;
  font-family: var(--mono);
  font-size: 11.5px;
  font-weight: 500;
  letter-spacing: 0.04em;
  margin-top: 7px;
}
.field.is-ok .fstate,
.field.is-warn .fstate,
.field.is-bad .fstate {
  display: block;
}
.field.is-ok .fstate {
  color: var(--accent);
}
.field.is-warn .fstate {
  color: var(--warn);
}
.field.is-bad .fstate {
  color: var(--danger);
}

.fhint {
  display: block;
  font-size: 12px;
  color: var(--text-faint);
  margin-top: 7px;
}

.field-consent {
  margin-top: 26px;
}
.consent {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  font-size: 13.5px;
  color: var(--text-dim);
  cursor: pointer;
}
.consent input {
  margin-top: 3px;
  width: 17px;
  height: 17px;
  accent-color: var(--accent-deep);
  flex: none;
}

.warning {
  font-family: var(--mono);
  font-size: 12px;
  line-height: 1.6;
  color: var(--warn);
  background: rgba(255, 180, 84, 0.05);
  border: 1px solid rgba(255, 180, 84, 0.2);
  border-radius: 10px;
  padding: 12px 14px;
  margin: 18px 0 0;
}

.wizard-nav {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-top: 28px;
}
.wizard-nav .btn {
  padding: 13px 22px;
}
#wBack[disabled] {
  opacity: 0.35;
  cursor: default;
}
.draft-note {
  margin-left: auto;
  margin-right: 4px;
  font-family: var(--mono);
  font-size: 11px;
  color: var(--text-faint);
}

.wizard-success h3,
.wizard-fallback h3 {
  font-size: 26px;
  margin-bottom: 12px;
  color: var(--accent);
}
.wizard-success p,
.wizard-fallback p {
  color: var(--text-dim);
}
.prep-lead {
  margin-top: 22px;
  font-family: var(--mono);
  font-size: 13px;
  letter-spacing: 0.05em;
}
.prep {
  list-style: none;
  margin: 10px 0 0;
  padding: 0;
  display: grid;
  gap: 8px;
}
.prep li {
  font-size: 14.5px;
  color: var(--text);
  padding-left: 22px;
  position: relative;
}
.prep li::before {
  content: "▸";
  position: absolute;
  left: 2px;
  color: var(--accent);
}
.wizard-fallback .btn {
  margin-top: 16px;
}

/* ---------- footer ---------- */

.footer {
  border-top: 1px solid rgba(110, 215, 180, 0.08);
  margin-top: 90px;
  padding: 38px 28px 46px;
  position: relative;
  z-index: 1;
}
.footer-inner {
  max-width: var(--maxw);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
}
.footer-links {
  display: flex;
  gap: 26px;
}
.footer-links a {
  font-family: var(--mono);
  font-size: 12.5px;
  color: var(--text-dim);
}
.footer-links a:hover {
  color: var(--accent);
}
.footer-copy {
  font-family: var(--mono);
  font-size: 12px;
  color: var(--text-faint);
}
.footer-tag {
  max-width: var(--maxw);
  margin: 26px auto 0;
  font-family: var(--mono);
  font-size: 11.5px;
  letter-spacing: 0.06em;
  color: var(--text-faint);
}

/* ---------- efficiency module ---------- */

.efficiency {
  background: rgba(6, 11, 17, 0.6);
  border: 1px solid rgba(110, 215, 180, 0.1);
  border-radius: 11px;
  padding: 13px 15px 11px;
  margin-bottom: 14px;
}
.eff-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 9px;
}
.eff-label {
  font-family: var(--mono);
  font-size: 10.5px;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--text-faint);
}
.eff-value {
  font-family: var(--mono);
  font-weight: 500;
  font-size: 18px;
  color: var(--accent);
  font-variant-numeric: tabular-nums;
  text-shadow: 0 0 14px var(--accent-glow);
}
.eff-value.is-penalty {
  color: var(--warn);
  text-shadow: 0 0 14px rgba(255, 180, 84, 0.25);
}
.eff-bar {
  position: relative;
  height: 6px;
  border-radius: 3px;
  background: rgba(90, 110, 130, 0.22);
  overflow: hidden;
}
.eff-fill {
  position: absolute;
  inset: 0 auto 0 0;
  width: 73.7%;
  border-radius: 3px;
  background: linear-gradient(90deg, #ffb454, #d8e07a 38%, #50f2b4 74%);
  transition: width 0.45s cubic-bezier(0.22, 1, 0.36, 1);
}
.eff-ends {
  display: flex;
  justify-content: space-between;
  margin-top: 6px;
}
.eff-ends span {
  font-family: var(--mono);
  font-size: 9.5px;
  letter-spacing: 0.04em;
  color: var(--text-faint);
}
.eff-perk {
  margin: 9px 0 0;
  font-size: 12.5px;
  color: var(--text-dim);
}
.eff-perk strong {
  font-family: var(--mono);
  font-weight: 500;
  color: var(--text);
  font-variant-numeric: tabular-nums;
}

/* ---------- failure chain (the 2026 problem) ---------- */

.failchain {
  margin: 38px 0 44px;
}
.fc-steps {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}
.fc-node {
  font-family: var(--mono);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.06em;
  color: var(--text);
  background: var(--bg-panel-solid);
  border: 1px solid var(--line);
  border-radius: 9px;
  padding: 11px 18px;
  transition: border-color 0.3s, color 0.3s, box-shadow 0.3s;
}
.fc-node.is-dead {
  color: var(--danger);
  border-color: rgba(255, 107, 129, 0.65);
  box-shadow: 0 0 22px rgba(255, 107, 129, 0.18);
  animation: fcglitch 0.32s steps(2) 3;
}
@keyframes fcglitch {
  0% {
    transform: translateX(0);
  }
  25% {
    transform: translateX(-2px);
  }
  50% {
    transform: translateX(2px);
  }
  100% {
    transform: translateX(0);
  }
}
.fc-link {
  flex: 1 1 14px;
  min-width: 14px;
  height: 1px;
  background: linear-gradient(90deg, rgba(80, 242, 180, 0.05), var(--line-strong));
}
.fc-out {
  font-family: var(--mono);
  font-size: 15px;
  font-weight: 500;
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.04em;
  color: var(--accent);
  background: rgba(80, 242, 180, 0.06);
  border: 1px solid var(--line-strong);
  border-radius: 9px;
  padding: 11px 18px;
  min-width: 150px;
  text-align: center;
  transition: color 0.3s, border-color 0.3s, background 0.3s;
}
.fc-out.is-dead {
  color: var(--danger);
  border-color: rgba(255, 107, 129, 0.65);
  background: rgba(255, 107, 129, 0.05);
}
.fc-caption {
  margin: 16px 0 0;
  font-family: var(--mono);
  font-size: 12.5px;
  color: var(--text-faint);
}

.answer {
  border-left: 2px solid var(--line-strong);
  padding: 6px 0 6px 22px;
  margin-bottom: 40px;
  max-width: 760px;
}
.answer h3 {
  font-size: 23px;
  margin-bottom: 12px;
}
.answer p {
  margin: 0;
  color: var(--text-dim);
  font-size: 15.5px;
}
.answer strong {
  color: var(--accent);
  font-weight: 500;
}

.punch-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
.punch {
  background: var(--bg-panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 22px 24px;
}
.punch h4 {
  font-family: var(--mono);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.07em;
  color: var(--accent);
  margin-bottom: 8px;
}
.punch p {
  margin: 0;
  font-size: 14.5px;
  color: var(--text-dim);
}

/* ---------- Client Hub panel ---------- */

.hub-panel {
  background: var(--bg-panel);
  border: 1px solid var(--line);
  border-radius: 16px;
  overflow: hidden;
  max-width: 880px;
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.45), inset 0 0 60px rgba(80, 242, 180, 0.025);
}
.hub-chrome {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 18px;
  border-bottom: 1px solid rgba(110, 215, 180, 0.1);
  background: rgba(5, 9, 14, 0.6);
}
.hub-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: rgba(140, 170, 190, 0.35);
}
.hub-title {
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.26em;
  color: var(--text-faint);
}
.hub-live {
  margin-left: auto;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  color: var(--accent);
  display: inline-flex;
  align-items: center;
  gap: 7px;
}
.hub-live-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 10px var(--accent);
  animation: dotpulse 2.1s ease-in-out infinite;
}
.hub-modules {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 1px;
  background: rgba(110, 215, 180, 0.08);
}
.hub-mod {
  background: var(--bg-panel-solid);
  padding: 20px 22px;
  grid-column: span 2;
}
.hub-mod:nth-child(4),
.hub-mod:nth-child(5) {
  grid-column: span 3;
}
.hub-mod h4 {
  font-family: var(--mono);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.08em;
  color: var(--accent);
  margin-bottom: 7px;
}
.hub-mod p {
  margin: 0;
  font-size: 13.5px;
  color: var(--text-dim);
}

/* ---------- drama (the 2026 answer) ---------- */

.drama {
  margin: 14px 0 44px;
  max-width: 820px;
}
.drama-line {
  margin: 0 0 14px;
}
.drama-1 {
  font-size: 17px;
  color: var(--text-dim);
}
.drama-1 em {
  color: var(--text);
  font-style: italic;
}
.drama-2 {
  font-family: var(--mono);
  font-size: 13px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-faint);
}
.drama-3 {
  font-size: clamp(24px, 2.6vw, 34px);
  font-weight: 700;
  color: var(--text);
  line-height: 1.2;
  max-width: 24ch;
}
.drama-4 {
  font-size: clamp(34px, 4vw, 52px);
  font-weight: 700;
  color: var(--accent);
  text-shadow: 0 0 40px var(--accent-glow);
  display: flex;
  align-items: baseline;
  gap: 18px;
  flex-wrap: wrap;
}
.drama-sub {
  font-family: var(--mono);
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.1em;
  color: var(--text-faint);
}
.drama-line.reveal {
  transition-duration: 0.6s;
}
.drama-2.reveal {
  transition-delay: 0.35s;
}
.drama-3.reveal {
  transition-delay: 0.75s;
}
.drama-4.reveal {
  transition-delay: 1.25s;
}

/* ---------- Client Hub demo ---------- */

.hub-demo {
  max-width: 920px;
}
.hub-window {
  background: var(--bg-panel);
  border: 1px solid var(--line);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.45), inset 0 0 60px rgba(80, 242, 180, 0.025);
}
.hub-sample {
  font-family: var(--mono);
  font-size: 9.5px;
  letter-spacing: 0.1em;
  color: var(--text-faint);
  border: 1px solid rgba(140, 170, 190, 0.18);
  border-radius: 999px;
  padding: 2px 9px;
  margin-left: 10px;
}
.hub-tabs {
  display: flex;
  gap: 2px;
  padding: 8px 12px 0;
  border-bottom: 1px solid rgba(110, 215, 180, 0.1);
  background: rgba(5, 9, 14, 0.45);
}
.hub-tab {
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.06em;
  color: var(--text-faint);
  background: none;
  border: 0;
  border-bottom: 2px solid transparent;
  padding: 9px 14px 11px;
  cursor: pointer;
  transition: color 0.25s, border-color 0.25s;
}
.hub-tab.is-on {
  color: var(--accent);
  border-bottom-color: var(--accent);
}
.hub-tab:hover {
  color: var(--text);
}
.hub-stage {
  position: relative;
  min-height: 248px;
  background: var(--bg-panel-solid);
}
.hub-screen {
  position: absolute;
  inset: 0;
  padding: 18px 20px;
  opacity: 0;
  transform: translateX(14px);
  transition: opacity 0.4s ease, transform 0.4s ease;
  pointer-events: none;
  display: flex;
  flex-direction: column;
  gap: 9px;
}
.hub-screen.is-on {
  opacity: 1;
  transform: none;
  pointer-events: auto;
}

.hd-row {
  display: flex;
  align-items: center;
  gap: 12px;
  background: rgba(10, 17, 26, 0.85);
  border: 1px solid rgba(110, 215, 180, 0.09);
  border-radius: 10px;
  padding: 10px 14px;
}
.hd-ava {
  flex: none;
  width: 32px;
  height: 32px;
  border-radius: 9px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 500;
  color: var(--accent);
  background: rgba(80, 242, 180, 0.08);
  border: 1px solid rgba(80, 242, 180, 0.22);
}
.hd-main {
  flex: 1;
  min-width: 0;
  font-size: 13px;
  color: var(--text);
  line-height: 1.4;
}
.hd-main strong {
  font-weight: 500;
}
.hd-main em {
  display: block;
  font-style: normal;
  color: var(--text-dim);
  font-size: 12.5px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.hd-chip {
  flex: none;
  font-family: var(--mono);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.06em;
  color: var(--text-dim);
  border: 1px solid rgba(140, 170, 190, 0.22);
  border-radius: 999px;
  padding: 4px 10px;
}
.hd-chip-hot {
  color: var(--accent);
  border-color: var(--line-strong);
  background: rgba(80, 242, 180, 0.06);
}
.hd-time {
  flex: none;
  font-family: var(--mono);
  font-size: 10.5px;
  color: var(--text-faint);
}
.hd-incoming {
  opacity: 0;
  transform: translateY(-8px);
}
.hd-incoming.is-in {
  animation: hdarrive 0.55s cubic-bezier(0.22, 1, 0.36, 1) forwards;
  border-color: var(--line-strong);
  box-shadow: 0 0 24px rgba(80, 242, 180, 0.1);
}
@keyframes hdarrive {
  from {
    opacity: 0;
    transform: translateY(-8px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

.hd-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 9px;
}
.hd-stat {
  background: rgba(10, 17, 26, 0.85);
  border: 1px solid rgba(110, 215, 180, 0.09);
  border-radius: 10px;
  padding: 12px 14px;
  display: flex;
  flex-direction: column;
  gap: 3px;
}
.hd-num {
  font-family: var(--mono);
  font-weight: 500;
  font-size: 20px;
  color: var(--accent);
  font-variant-numeric: tabular-nums;
}
.hd-cap {
  font-size: 11px;
  color: var(--text-faint);
  letter-spacing: 0.04em;
}
.hd-bars {
  flex: 1;
  display: flex;
  align-items: flex-end;
  gap: 7px;
  padding: 14px 4px 2px;
  min-height: 90px;
}
.hd-bar {
  flex: 1;
  height: 0;
  border-radius: 3px 3px 0 0;
  background: linear-gradient(180deg, var(--accent), rgba(20, 184, 126, 0.4));
  opacity: 0.85;
  transition: height 0.7s cubic-bezier(0.22, 1, 0.36, 1);
}

.hd-kanban {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  flex: 1;
}
.hd-col {
  background: rgba(10, 17, 26, 0.85);
  border: 1px solid rgba(110, 215, 180, 0.09);
  border-radius: 10px;
  padding: 10px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-height: 180px;
}
.hd-col-title {
  font-family: var(--mono);
  font-size: 10.5px;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-faint);
  padding: 2px 4px 4px;
}
.hd-card {
  background: var(--bg-panel-solid);
  border: 1px solid rgba(140, 170, 190, 0.16);
  border-radius: 8px;
  padding: 9px 11px;
  font-size: 12.5px;
  color: var(--text);
  line-height: 1.35;
  transition: opacity 0.3s, transform 0.3s, border-color 0.3s;
}
.hd-card span {
  display: block;
  font-family: var(--mono);
  font-size: 10px;
  color: var(--text-faint);
  margin-top: 3px;
}
.hd-card.is-moving {
  opacity: 0;
  transform: translateX(24px) scale(0.96);
}
.hd-card.is-landed {
  border-color: var(--line-strong);
  box-shadow: 0 0 18px rgba(80, 242, 180, 0.1);
  animation: hdarrive 0.45s ease;
}

.hd-rank {
  flex: none;
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 500;
  color: var(--accent);
  width: 28px;
}
.hd-chip.is-flash {
  animation: chipflash 0.9s ease;
}
@keyframes chipflash {
  0% {
    background: rgba(80, 242, 180, 0.35);
  }
  100% {
    background: rgba(80, 242, 180, 0.06);
  }
}

.hub-caption {
  margin: 16px 2px 0;
  font-size: 14.5px;
  color: var(--text-dim);
  min-height: 1.5em;
  transition: opacity 0.3s;
}
.hub-caption.is-switching {
  opacity: 0;
}

/* ---------- cost per lead ---------- */

.cpl {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
  gap: 40px;
  align-items: center;
  background: var(--bg-panel);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 34px 38px;
  margin-bottom: 40px;
}
.cpl-label {
  display: block;
  font-size: 15.5px;
  color: var(--text-dim);
  margin-bottom: 10px;
}
.cpl-label strong {
  font-family: var(--mono);
  font-weight: 500;
  color: var(--text);
}
.cpl-value {
  display: block;
  font-family: var(--mono);
  font-weight: 500;
  font-size: clamp(44px, 4.6vw, 64px);
  color: var(--accent);
  text-shadow: 0 0 36px var(--accent-glow);
  font-variant-numeric: tabular-nums;
  line-height: 1.05;
  margin-bottom: 12px;
}
.cpl-value.is-pop {
  animation: cplpop 0.45s cubic-bezier(0.22, 1, 0.36, 1);
}
@keyframes cplpop {
  0% {
    transform: translateY(4px) scale(0.97);
    opacity: 0.6;
  }
  100% {
    transform: none;
    opacity: 1;
  }
}
.cpl-note {
  display: block;
  font-family: var(--mono);
  font-size: 12px;
  color: var(--text-faint);
  letter-spacing: 0.04em;
}
.cpl-slider {
  margin-top: 22px;
  max-width: 420px;
}
.cpl-sync-note {
  display: block;
  margin-top: 4px;
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: 0.05em;
  color: var(--text-faint);
}

.cpl-funnel {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.cpl-step {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  background: rgba(6, 11, 17, 0.7);
  border: 1px solid rgba(110, 215, 180, 0.1);
  border-radius: 10px;
  padding: 10px 16px;
}
.cpl-step:nth-child(2) {
  margin-left: 8%;
}
.cpl-step:nth-child(3) {
  margin-left: 16%;
}
.cpl-step:nth-child(4) {
  margin-left: 24%;
}
.cpl-step-final {
  border-color: var(--line-strong);
  background: rgba(80, 242, 180, 0.05);
}
.cpl-step-val {
  font-family: var(--mono);
  font-weight: 500;
  font-size: 15px;
  color: var(--text);
  font-variant-numeric: tabular-nums;
}
.cpl-step-final .cpl-step-val {
  color: var(--accent);
}
.cpl-step-cap {
  font-size: 11.5px;
  color: var(--text-faint);
  letter-spacing: 0.05em;
}

.defs-lead {
  font-family: var(--mono);
  font-size: 13px;
  letter-spacing: 0.06em;
  color: var(--text-faint);
  margin: 0 0 16px;
}
.defs-compact {
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
}
.defs-compact .def {
  padding: 16px 18px;
}
.defs-compact .def p {
  font-size: 13px;
}

/* ---------- motion pass ---------- */

.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  height: 2px;
  width: 100%;
  z-index: 60;
  background: linear-gradient(90deg, var(--accent-deep), var(--accent));
  transform-origin: 0 50%;
  transform: scaleX(0);
  box-shadow: 0 0 12px var(--accent-glow);
  pointer-events: none;
}

/* the sweep animates the clipped text gradient itself — a pseudo-element
   overlay renders as a gray box over background-clip:text and is forbidden */
@keyframes h1sweep {
  0%,
  55% {
    background-position: 0% 50%;
  }
  75% {
    background-position: 100% 50%;
  }
  100% {
    background-position: 0% 50%;
  }
}

.kicker {
  position: relative;
  display: inline-block;
}
.kicker::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -5px;
  height: 1px;
  width: 0;
  background: linear-gradient(90deg, var(--accent), transparent);
  transition: width 0.9s ease 0.2s;
}
.kicker.reveal.in::after {
  width: 100%;
}

.chain-arrow::before {
  content: "";
  position: absolute;
  top: -1px;
  left: 0;
  width: 6px;
  height: 3px;
  border-radius: 2px;
  background: var(--accent);
  box-shadow: 0 0 8px var(--accent);
  animation: chainflow 2.6s linear infinite;
  opacity: 0;
}
@keyframes chainflow {
  0% {
    transform: translateX(0);
    opacity: 0;
  }
  12% {
    opacity: 0.9;
  }
  88% {
    opacity: 0.9;
  }
  100% {
    transform: translateX(14px);
    opacity: 0;
  }
}

@media (prefers-reduced-motion: reduce) {
  .hero h1,
  .asm-node.is-hot .asm-glyph,
  .asm-badge.is-hot,
  .btn-primary::after,
  body::after {
    animation: none;
  }
  .eff-fill {
    transition: none;
  }
  .fc-node.is-dead {
    animation: none;
  }
}

/* ---------- assembly strip (what your budget buys) ---------- */

.assembly {
  position: relative;
  margin-top: 38px;
}
.asm-track {
  position: absolute;
  left: 24px;
  right: 24px;
  top: 37px;
  height: 1px;
  background: linear-gradient(
    90deg,
    rgba(80, 242, 180, 0.05),
    rgba(80, 242, 180, 0.22) 12%,
    rgba(80, 242, 180, 0.22) 88%,
    rgba(80, 242, 180, 0.05)
  );
  z-index: 0;
}
.asm-spark {
  position: absolute;
  top: -2.5px;
  left: 0;
  width: 26px;
  height: 6px;
  border-radius: 4px;
  background: linear-gradient(90deg, transparent, var(--accent));
  box-shadow: 0 0 14px var(--accent);
  opacity: 0;
  transition: left 0.62s linear, opacity 0.3s;
}
.asm-spark.is-on {
  opacity: 1;
}
.asm-nodes {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: repeat(7, 1fr) auto auto;
  gap: 12px;
  align-items: start;
}
.asm-node {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 8px;
  padding: 14px 6px 12px;
  border-radius: 13px;
  border: 1px solid transparent;
  transition: border-color 0.35s, background 0.35s, transform 0.35s;
}
.asm-glyph {
  width: 46px;
  height: 46px;
  border-radius: 13px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--text-faint);
  background: var(--bg-panel-solid);
  border: 1px solid rgba(140, 170, 190, 0.18);
  transition: color 0.35s, border-color 0.35s, box-shadow 0.35s, transform 0.35s;
}
.asm-glyph svg {
  width: 23px;
  height: 23px;
}
.asm-name {
  font-family: var(--mono);
  font-size: 12.5px;
  font-weight: 500;
  letter-spacing: 0.04em;
  color: var(--text);
}
.asm-sub {
  font-size: 11px;
  line-height: 1.35;
  color: var(--text-faint);
}
.asm-node.is-hot {
  transform: translateY(-3px);
}
.asm-node.is-hot .asm-glyph {
  color: var(--accent);
  border-color: var(--line-strong);
  box-shadow: 0 0 22px rgba(80, 242, 180, 0.25), inset 0 0 14px rgba(80, 242, 180, 0.08);
  animation: asmpulse 0.7s ease;
}
@keyframes asmpulse {
  0% {
    transform: scale(0.92);
  }
  45% {
    transform: scale(1.08);
  }
  100% {
    transform: scale(1);
  }
}
.asm-node.is-done .asm-glyph {
  color: var(--accent-deep);
  border-color: rgba(80, 242, 180, 0.28);
}
.asm-equals {
  align-self: center;
  font-family: var(--mono);
  font-size: 26px;
  color: var(--text-faint);
  padding: 0 2px;
  margin-top: 12px;
}
.asm-badge {
  align-self: center;
  margin-top: 12px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1px;
  border: 1px solid rgba(140, 170, 190, 0.2);
  border-radius: 13px;
  padding: 12px 20px;
  transition: border-color 0.4s, box-shadow 0.4s, background 0.4s;
}
.asm-badge-top {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--text-faint);
}
.asm-badge-main {
  font-family: var(--mono);
  font-size: 16px;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-dim);
}
.asm-badge.is-hot {
  border-color: var(--line-strong);
  background: rgba(80, 242, 180, 0.06);
  box-shadow: 0 0 34px rgba(80, 242, 180, 0.18);
  animation: asmpulse 0.7s ease;
}
.asm-badge.is-hot .asm-badge-main,
.asm-badge.is-hot .asm-badge-top {
  color: var(--accent);
  text-shadow: 0 0 16px var(--accent-glow);
}

/* ---------- ambient aurora ---------- */

body::after {
  content: "";
  position: fixed;
  inset: -30%;
  pointer-events: none;
  z-index: 0;
  background: radial-gradient(46% 34% at 24% 28%, rgba(28, 110, 86, 0.1), transparent 70%),
    radial-gradient(40% 30% at 78% 64%, rgba(34, 86, 120, 0.08), transparent 70%);
  animation: aurora 26s ease-in-out infinite alternate;
}
@keyframes aurora {
  0% {
    transform: translate3d(-3%, -2%, 0) rotate(-1.5deg);
  }
  100% {
    transform: translate3d(3%, 2.5%, 0) rotate(1.5deg);
  }
}

/* ---------- primary CTA sheen ---------- */

.btn-primary {
  position: relative;
  overflow: hidden;
}
.btn-primary::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    115deg,
    transparent 32%,
    rgba(255, 255, 255, 0.38) 50%,
    transparent 68%
  );
  background-size: 240% 100%;
  background-position: 130% 0;
  animation: btnsheen 5.2s ease-in-out infinite;
  pointer-events: none;
}
@keyframes btnsheen {
  0%,
  58% {
    background-position: 130% 0;
  }
  78%,
  100% {
    background-position: -110% 0;
  }
}

/* ---------- counters wide mode (large budgets) ---------- */

.counters.is-wide {
  grid-template-columns: repeat(2, 1fr);
}
.counters.is-wide .counter {
  flex-direction: row;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
}

/* ---------- reveal variants ---------- */

.reveal.rv-l {
  transform: translateX(-26px);
}
.reveal.rv-r {
  transform: translateX(26px);
}
.reveal.rv-s {
  transform: scale(0.94);
}
.reveal.rv-l.in,
.reveal.rv-r.in,
.reveal.rv-s.in {
  transform: none;
}

/* ---------- noscript + legal pages ---------- */

.noscript-note {
  text-align: center;
  padding: 16px;
  color: var(--text-dim);
  font-family: var(--mono);
}

.legal {
  max-width: 720px;
  margin: 0 auto;
  padding: 140px 28px 80px;
  position: relative;
  z-index: 1;
}
.legal h1 {
  font-size: 34px;
  margin-bottom: 24px;
}
.legal h2 {
  font-size: 19px;
  margin: 34px 0 10px;
  color: var(--accent);
  font-family: var(--mono);
  font-weight: 500;
  letter-spacing: 0.06em;
}
.legal p,
.legal li {
  color: var(--text-dim);
  font-size: 15px;
}
.legal ul {
  padding-left: 20px;
}

/* ---------- reveal animations ---------- */

.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.reveal.in {
  opacity: 1;
  transform: none;
}

/* ---------- responsive ---------- */

@media (max-width: 1100px) {
  .asm-nodes {
    grid-template-columns: repeat(4, 1fr);
  }
  .asm-track,
  .asm-equals {
    display: none;
  }
  .hero {
    padding-top: 96px;
  }
  .hero-inner {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  .console {
    max-width: 620px;
  }
  .hero h1 {
    font-size: clamp(48px, 10vw, 72px);
  }
  .modules {
    grid-template-columns: 1fr;
  }
  .loop-nodes {
    display: none;
  }
  .loop-svg {
    display: none;
  }
  .loop-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 780px) {
  body {
    font-size: 16px;
  }
  .nav {
    padding: 12px 18px;
  }
  .nav-links a:not(.nav-cta) {
    display: none;
  }
  .hero {
    padding-left: 18px;
    padding-right: 18px;
  }
  .section {
    padding-left: 18px;
    padding-right: 18px;
    padding-top: 80px;
  }
  .counters {
    grid-template-columns: repeat(2, 1fr);
  }
  .punch-cards {
    grid-template-columns: 1fr;
  }
  .cpl {
    grid-template-columns: 1fr;
    gap: 26px;
    padding: 24px 20px;
  }
  .defs-compact {
    grid-template-columns: 1fr;
  }
  .hub-tabs {
    overflow-x: auto;
  }
  .hub-stage {
    min-height: 300px;
  }
  .hd-stats {
    grid-template-columns: repeat(2, 1fr);
  }
  .hd-kanban {
    grid-template-columns: 1fr;
  }
  .hd-col {
    min-height: 0;
  }
  .hd-main em {
    white-space: normal;
  }
  .asm-nodes {
    grid-template-columns: repeat(2, 1fr);
  }
  .asm-badge {
    grid-column: span 2;
    justify-self: center;
  }
  .hub-mod,
  .hub-mod:nth-child(4),
  .hub-mod:nth-child(5) {
    grid-column: span 6;
  }
  .fc-out {
    flex: 1 1 100%;
  }
  .eff-ends span:nth-child(2) {
    display: none;
  }
  .defs {
    grid-template-columns: 1fr;
  }
  .loop-grid {
    grid-template-columns: 1fr;
  }
  .wizard {
    padding: 22px 18px 26px;
  }
  .chain-arrow {
    display: none;
  }
  .chain-node {
    flex-basis: 44%;
  }
  .footer-inner {
    flex-direction: column;
    align-items: flex-start;
  }
}

@media (max-width: 520px) {
  .hero-ctas .btn {
    width: 100%;
  }
  .chain-node {
    flex-basis: 100%;
  }
  .wizard-nav {
    flex-wrap: wrap;
  }
  .draft-note {
    order: 3;
    width: 100%;
    margin: 8px 0 0;
  }
}

/* ---------- reduced motion ---------- */

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }
  .in .loop-chip {
    animation: none;
    opacity: 1;
    transform: none;
  }
  .brand-dot {
    animation: none;
  }
  .counter.bump .counter-value {
    animation: none;
  }
  .wstep.is-current {
    animation: none;
  }
}
