/* ============================================================
   WEBBUILDR V2 — home page (hero, marquee, levers, portal,
   hudson, process). Shared system lives in site.css.
   ============================================================ */

/* ============ PRELOADER ============ */
.preloader {
  position: fixed; inset: 0; z-index: 1000;
  background: var(--bg-deep);
  display: flex; align-items: center; justify-content: center;
  animation: preloaderBail 0.6s ease 4s forwards; /* JS-free safety net */
}
@keyframes preloaderBail { to { opacity: 0; visibility: hidden; pointer-events: none; } }
.preloader-inner { display: flex; flex-direction: column; align-items: center; gap: 18px; }
.preloader-mark { width: 56px; height: 56px; opacity: 0.9; }
.preloader-count {
  font-family: var(--font-display); font-size: 14px; font-weight: 600;
  letter-spacing: 0.2em; color: var(--t-muted); font-variant-numeric: tabular-nums;
}

/* ============ HERO ============ */
.hero {
  min-height: 100svh;
  display: flex; align-items: center;
  position: relative; overflow: hidden;
  padding: 130px var(--pad-x) 90px;
}
.hero-canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
.hero-video-source {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
  clip-path: inset(50%);
}
.hero-vignette {
  position: absolute; inset: 0; pointer-events: none;
  background:
    radial-gradient(ellipse 80% 64% at 70% 38%, transparent 32%, rgba(5, 12, 38, 0.82) 74%, var(--bg-deep) 100%),
    linear-gradient(to right, rgba(5, 12, 38, 0.92), rgba(5, 12, 38, 0.34) 48%, rgba(5, 12, 38, 0.72) 100%),
    linear-gradient(to bottom, rgba(5, 12, 38, 0.4), transparent 30%, transparent 70%, var(--bg-deep) 100%);
}
.hero-inner { position: relative; z-index: 2; max-width: 1240px; margin: 0 auto; width: 100%; }
.hero-eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: 13px; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--t-secondary);
  border: 1px solid var(--line); border-radius: 100px;
  padding: 9px 20px; margin-bottom: 36px;
  background: rgba(10, 26, 66, 0.5);
  -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
}
.hero-eyebrow .dot {
  width: 7px; height: 7px; border-radius: 50%; background: var(--green);
  box-shadow: 0 0 10px rgba(16, 185, 129, 0.8);
  animation: pulse 2s ease-in-out infinite;
}
@keyframes pulse { 0%, 100% { opacity: 1; } 50% { opacity: 0.4; } }

.hero-title {
  font-size: clamp(42px, 8.2vw, 108px);
  font-weight: 700; line-height: 1.02; letter-spacing: -0.03em;
  display: flex; flex-direction: column;
}
.h-line { display: block; overflow: hidden; padding-bottom: 0.08em; margin-bottom: -0.08em; }
.h-line-inner { display: inline-block; will-change: transform; }
.h-line-inner.grad {
  background: linear-gradient(110deg, var(--sky) 10%, var(--mist) 60%, var(--sky) 100%);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent; color: var(--sky);
}
.h-char { display: inline-block; will-change: transform; }

.hero-sub {
  font-size: clamp(16px, 2vw, 20px); line-height: 1.7;
  color: var(--t-body); max-width: 620px; margin-top: 34px;
}
.hero-rotator {
  display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap;
  margin-top: 22px; font-size: clamp(14px, 1.6vw, 16px);
}
.rot-label { color: var(--t-muted); font-weight: 500; }
.rot-mask { display: inline-block; overflow: hidden; height: 1.55em; vertical-align: bottom; }
.rot-words { display: flex; flex-direction: column; }
.rot-words span {
  display: block; height: 1.55em; line-height: 1.55em;
  font-family: var(--font-display); font-weight: 600; color: var(--mist); white-space: nowrap;
}
.hero-actions { display: flex; gap: 16px; flex-wrap: wrap; margin-top: 42px; }

.hero-scroll {
  position: absolute; bottom: 28px; left: 50%; transform: translateX(-50%);
  display: flex; flex-direction: column; align-items: center; gap: 10px; z-index: 2;
}
.hero-scroll-line {
  width: 1px; height: 52px;
  background: linear-gradient(to bottom, transparent, rgba(147, 197, 253, 0.7));
  animation: scrollPulse 2s ease-in-out infinite;
}
@keyframes scrollPulse { 0%, 100% { opacity: 0.35; } 50% { opacity: 1; } }
.hero-scroll-text { font-size: 11px; letter-spacing: 0.3em; text-transform: uppercase; color: var(--t-muted); }

/* ============ MARQUEE ============ */
.marquee {
  border-top: 1px solid var(--line-soft); border-bottom: 1px solid var(--line-soft);
  background: var(--midnight);
  overflow: hidden; padding: 22px 0; position: relative;
}
.marquee::before, .marquee::after {
  content: ''; position: absolute; top: 0; bottom: 0; width: 120px; z-index: 2; pointer-events: none;
}
.marquee::before { left: 0; background: linear-gradient(to right, var(--bg-deep), transparent); }
.marquee::after { right: 0; background: linear-gradient(to left, var(--bg-deep), transparent); }
.marquee-track {
  display: flex; align-items: center; gap: 36px; width: max-content;
  animation: marquee 36s linear infinite;
}
@keyframes marquee { to { transform: translateX(-50%); } }
.marquee-track span {
  font-family: var(--font-display); font-size: 17px; font-weight: 500;
  color: var(--t-secondary); white-space: nowrap;
}
.marquee-track i { color: var(--electric); font-size: 9px; font-style: normal; }

/* ============ TWO LEVERS ============ */
.levers { padding: clamp(80px, 12vw, 150px) var(--pad-x); background: var(--bg-deep); }
.levers-grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: 24px;
  max-width: 1160px; margin: 0 auto;
}
.lever-card {
  border-radius: 24px; padding: clamp(28px, 3.5vw, 48px);
  border: 1px solid var(--line);
  background: linear-gradient(150deg, rgba(15, 34, 82, 0.65), rgba(15, 34, 82, 0.2));
  position: relative; overflow: hidden;
  transition: border-color 0.3s, box-shadow 0.3s, transform 0.3s;
}
.lever-card:hover { transform: translateY(-4px); }
.lever-cost:hover { border-color: rgba(59, 130, 246, 0.55); box-shadow: 0 24px 70px rgba(29, 78, 216, 0.22); }
.lever-revenue:hover { border-color: rgba(16, 185, 129, 0.5); box-shadow: 0 24px 70px rgba(16, 185, 129, 0.15); }
.lever-card::before {
  content: ''; position: absolute; top: 0; left: 0; right: 0; height: 1px;
  background: linear-gradient(90deg, transparent, rgba(59, 130, 246, 0.7), transparent);
}
.lever-revenue::before { background: linear-gradient(90deg, transparent, rgba(16, 185, 129, 0.6), transparent); }
.lever-head { display: flex; align-items: center; gap: 18px; margin-bottom: 18px; }
.lever-arrow {
  width: 58px; height: 58px; border-radius: 16px; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-display); font-size: 30px; font-weight: 700;
}
.lever-cost .lever-arrow { background: rgba(29, 78, 216, 0.25); border: 1px solid rgba(59, 130, 246, 0.45); color: var(--mist); }
.lever-revenue .lever-arrow { background: rgba(16, 185, 129, 0.14); border: 1px solid rgba(16, 185, 129, 0.4); color: var(--green-light); }
.lever-card h3 { font-size: clamp(24px, 2.6vw, 32px); font-weight: 700; letter-spacing: -0.02em; }
.lever-lede { font-size: 16px; line-height: 1.7; color: var(--t-body); margin-bottom: 26px; }
.lever-list { list-style: none; display: flex; flex-direction: column; gap: 16px; }
.lever-list li { padding-left: 26px; position: relative; }
.lever-list li::before {
  content: ''; position: absolute; left: 0; top: 9px; width: 8px; height: 8px; border-radius: 2px;
  background: var(--sky); transform: rotate(45deg);
}
.lever-revenue .lever-list li::before { background: var(--green); }
.lever-list b { display: block; color: #fff; font-weight: 600; font-size: 15.5px; }
.lever-list span { font-size: 14px; color: var(--t-secondary); line-height: 1.6; }
.lever-foot {
  margin-top: 28px; padding-top: 22px; border-top: 1px solid var(--line-soft);
  font-size: 14.5px; color: var(--t-secondary);
}
.lever-foot b { color: #fff; }
.levers-note {
  text-align: center; margin: 48px auto 0; max-width: 640px;
  font-size: clamp(17px, 2.2vw, 21px); color: var(--t-body);
  font-family: var(--font-display);
}
.levers-note b { color: var(--mist); font-weight: 600; }

/* ============ PORTAL ============ */
.portal {
  padding: clamp(80px, 12vw, 150px) var(--pad-x);
  background: linear-gradient(180deg, var(--bg-deep), var(--bg-mid) 30%, var(--bg-mid) 70%, var(--bg-deep));
  overflow: hidden;
}
.portal-inner {
  max-width: 1240px; margin: 0 auto;
  display: grid; grid-template-columns: minmax(0, 0.92fr) minmax(0, 1.08fr);
  gap: clamp(40px, 6vw, 90px); align-items: center;
}
.portal-copy h2, .hudson-copy h2 {
  font-size: clamp(32px, 4.6vw, 60px); font-weight: 700;
  line-height: 1.08; letter-spacing: -0.025em; margin-bottom: 22px;
}

.portal-visual { position: relative; perspective: 1200px; }
.portal-glow {
  position: absolute; inset: -10% -15%; z-index: 0; pointer-events: none;
  background: radial-gradient(ellipse at center, rgba(29, 78, 216, 0.3), transparent 65%);
  filter: blur(30px);
}
.portal-mock {
  position: relative; z-index: 1;
  border-radius: 18px; overflow: hidden;
  border: 1px solid rgba(59, 130, 246, 0.35);
  background: rgba(6, 15, 46, 0.92);
  box-shadow: 0 40px 120px rgba(0, 0, 0, 0.5), 0 0 0 1px rgba(255, 255, 255, 0.03) inset;
  transform-style: preserve-3d; will-change: transform;
}
.pm-topbar {
  display: flex; align-items: center; gap: 14px;
  padding: 12px 16px; border-bottom: 1px solid var(--line-soft);
  background: rgba(10, 26, 66, 0.6);
}
.pm-dots { display: flex; gap: 6px; }
.pm-dots i { width: 10px; height: 10px; border-radius: 50%; background: rgba(147, 197, 253, 0.25); }
.pm-url {
  font-size: 12px; color: var(--t-muted); background: rgba(5, 12, 38, 0.8);
  border: 1px solid var(--line-soft); border-radius: 7px; padding: 4px 14px;
}
.pm-body { display: flex; }
.pm-rail {
  width: 58px; border-right: 1px solid var(--line-soft); padding: 16px 0;
  display: flex; flex-direction: column; align-items: center; gap: 14px; flex-shrink: 0;
}
.pm-rail-logo img { width: 26px; height: 26px; }
.pm-rail-item { width: 30px; height: 30px; border-radius: 9px; background: rgba(147, 197, 253, 0.1); }
.pm-rail-item.active { background: rgba(29, 78, 216, 0.45); border: 1px solid rgba(59, 130, 246, 0.5); }
.pm-rail-logo { margin-bottom: 10px; }
.pm-main { flex: 1; padding: 18px; min-width: 0; }
.pm-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 16px; }
.pm-ws { font-family: var(--font-display); font-weight: 600; font-size: 15px; color: #fff; }
.pm-live { display: inline-flex; align-items: center; gap: 7px; font-size: 11.5px; font-weight: 600; color: var(--green-light); }
.pm-live i { width: 7px; height: 7px; border-radius: 50%; background: var(--green); box-shadow: 0 0 8px rgba(16, 185, 129, 0.8); animation: pulse 2s infinite; }
.pm-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-bottom: 14px; }
.pm-stat {
  border: 1px solid var(--line-soft); border-radius: 12px; padding: 12px;
  background: rgba(10, 26, 66, 0.45);
  display: flex; flex-direction: column; gap: 2px; min-width: 0;
}
.pm-num { font-family: var(--font-display); font-size: clamp(18px, 2vw, 24px); font-weight: 700; color: #fff; font-variant-numeric: tabular-nums; }
.pm-lbl { font-size: 10.5px; color: var(--t-muted); letter-spacing: 0.04em; text-transform: uppercase; font-weight: 600; }
.pm-bar { display: flex; align-items: flex-end; gap: 3px; height: 26px; margin-top: 8px; }
.pm-bar i { flex: 1; height: var(--h); border-radius: 2px 2px 0 0; background: linear-gradient(to top, rgba(29, 78, 216, 0.5), rgba(59, 130, 246, 0.9)); transform-origin: bottom; }
.pm-approval {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  border: 1px solid rgba(245, 158, 11, 0.35); border-radius: 12px;
  background: rgba(245, 158, 11, 0.07); padding: 12px 14px; margin-bottom: 14px;
}
.pm-appr-text b { display: block; font-size: 12.5px; color: #FCD34D; font-weight: 600; }
.pm-appr-text span { font-size: 12px; color: var(--t-secondary); }
.pm-appr-btn {
  flex-shrink: 0; font-size: 12px; font-weight: 700; color: #06251a;
  background: var(--green); border-radius: 8px; padding: 8px 14px;
  box-shadow: 0 0 18px rgba(16, 185, 129, 0.35);
}
.pm-feed { display: flex; flex-direction: column; gap: 8px; }
.pm-row {
  display: flex; align-items: center; gap: 10px;
  border: 1px solid var(--line-soft); border-radius: 10px; padding: 10px 12px;
  background: rgba(10, 26, 66, 0.35); font-size: 12.5px; color: var(--t-body);
}
.pm-row i { width: 8px; height: 8px; border-radius: 50%; flex-shrink: 0; }
.pm-row i.ok { background: var(--green); }
.pm-row i.run { background: var(--sky); box-shadow: 0 0 8px rgba(59, 130, 246, 0.7); }
.pm-row span { flex: 1; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pm-row em { font-style: normal; font-size: 11px; color: var(--t-muted); flex-shrink: 0; }

/* ============ HUDSON ============ */
.hudson { padding: clamp(80px, 12vw, 150px) var(--pad-x); background: var(--bg-deep); overflow: hidden; }
.hudson-inner {
  max-width: 1240px; margin: 0 auto;
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(40px, 6vw, 90px); align-items: center;
}
.hudson-visual { position: relative; display: flex; flex-direction: column; align-items: center; gap: 20px; }

/* ---- Particle-ring intelligence core (WebGL, replaces the old SVG diagram) ---- */
.hud-ring {
  position: relative;
  width: min(100%, 520px);
  aspect-ratio: 1 / 1;
  margin: 0 auto;
}
.hud-canvas {
  position: absolute; inset: 0; width: 100%; height: 100%;
  display: block;
}
.hud-core {
  position: absolute; top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  display: flex; flex-direction: column; align-items: center; gap: 4px;
  text-align: center; z-index: 2; pointer-events: none;
}
.hud-core-label {
  font-family: var(--font-display); font-size: clamp(23px, 2.8vw, 28px);
  font-weight: 700; letter-spacing: 0.14em; color: #fff; text-align: center;
  text-shadow: 0 1px 12px rgba(2, 6, 18, 0.96), 0 0 24px rgba(120, 200, 255, 0.55);
}
.hud-core-sub {
  font-size: 13.5px; letter-spacing: 0.1em; text-transform: lowercase;
  color: #f4f8ff; text-align: center;
  text-shadow: 0 1px 10px rgba(2, 6, 18, 0.96), 0 0 14px rgba(2, 6, 18, 0.8);
}
.hud-node {
  position: absolute; z-index: 2; pointer-events: none;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  text-align: center; white-space: nowrap; gap: 4px;
}
.hud-node b {
  font-family: var(--font-display); font-size: 17px; font-weight: 700; color: #fff;
  text-align: center;
  text-shadow: 0 1px 11px rgba(2, 6, 18, 0.96), 0 0 18px rgba(120, 200, 255, 0.5);
}
.hud-node i {
  font-style: normal; font-size: 12.5px; font-weight: 500; letter-spacing: 0.04em; color: #eef4ff;
  text-align: center;
  text-shadow: 0 1px 10px rgba(2, 6, 18, 0.96), 0 0 12px rgba(2, 6, 18, 0.85);
}
.hud-top { top: 1%; left: 50%; transform: translateX(-50%); }
.hud-bottom { bottom: 1%; left: 50%; transform: translateX(-50%); }
.hud-left { left: 0; top: 50%; transform: translateY(-50%); }
.hud-right { right: 0; top: 50%; transform: translateY(-50%); }

.hudson-svg { width: min(100%, 520px); height: auto; overflow: visible; }
.h-ring { fill: none; stroke: var(--line); stroke-width: 1; }
.h-ring-outer { stroke-dasharray: 4 8; }
.h-link { stroke: rgba(59, 130, 246, 0.4); stroke-width: 1.2; stroke-dasharray: 6 10; }
.h-core-ring { fill: none; stroke: rgba(147, 197, 253, 0.6); stroke-width: 1.5; }
.h-core-label {
  fill: #fff; font-family: var(--font-display); font-size: 21px; font-weight: 700;
  text-anchor: middle; letter-spacing: 0.12em;
}
.h-core-sub { fill: var(--mist); font-family: var(--font-body); font-size: 10.5px; text-anchor: middle; letter-spacing: 0.08em; }
.h-node circle { fill: var(--bg-mid); stroke: rgba(59, 130, 246, 0.55); stroke-width: 1.2; }
.h-node text {
  fill: #fff; font-family: var(--font-display); font-size: 12.5px; font-weight: 600; text-anchor: middle;
}
.h-node .h-node-sub { fill: var(--t-muted); font-family: var(--font-body); font-size: 8.5px; font-weight: 400; }
.h-orbiter { fill: var(--mist); filter: drop-shadow(0 0 6px rgba(147, 197, 253, 0.9)); }
.hudson-loop-tag {
  font-family: var(--font-display); font-size: 14px; font-weight: 500;
  letter-spacing: 0.16em; text-transform: uppercase; color: var(--t-muted);
  border: 1px solid var(--line); border-radius: 100px; padding: 9px 22px;
}
.hudson-punch {
  margin-top: 6px; font-family: var(--font-display);
  font-size: clamp(18px, 2.4vw, 24px); line-height: 1.4; color: var(--t-body);
}
.hudson-punch b { color: #fff; }

/* ============ PROCESS ============ */
.process {
  padding: clamp(80px, 12vw, 150px) var(--pad-x);
  background: linear-gradient(180deg, var(--bg-deep), var(--bg-mid));
}
.process-grid {
  max-width: 1160px; margin: 0 auto;
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px;
}
.step {
  border: 1px solid var(--line); border-radius: 22px;
  padding: clamp(26px, 3vw, 40px);
  background: linear-gradient(160deg, rgba(15, 34, 82, 0.55), rgba(15, 34, 82, 0.15));
  transition: border-color 0.3s, transform 0.3s, box-shadow 0.3s;
}
.step:hover { border-color: rgba(59, 130, 246, 0.55); transform: translateY(-4px); box-shadow: 0 20px 60px rgba(29, 78, 216, 0.18); }
.step-num {
  font-family: var(--font-display); font-size: clamp(40px, 5vw, 64px); font-weight: 700;
  line-height: 1; display: block; margin-bottom: 18px;
  background: linear-gradient(180deg, rgba(147, 197, 253, 0.9), rgba(59, 130, 246, 0.2));
  -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
}
.step h3 { font-size: 24px; font-weight: 700; margin-bottom: 12px; letter-spacing: -0.01em; }
.step p { font-size: 15px; line-height: 1.7; color: var(--t-secondary); }

/* ============ HOME RESPONSIVE ============ */
@media (max-width: 1024px) {
  .portal-inner, .hudson-inner { grid-template-columns: minmax(0, 1fr); gap: 56px; }
  .hudson-visual { order: 2; }
  .hudson-copy { order: 1; }
  .process-grid { grid-template-columns: 1fr; max-width: 640px; }
}

@media (max-width: 860px) {
  .levers-grid { grid-template-columns: 1fr; }
  .hero { padding-top: 110px; }
  .hero-scroll { display: none; }
}

@media (max-width: 560px) {
  .pm-stats { grid-template-columns: repeat(3, 1fr); gap: 6px; }
  .pm-stat { padding: 9px; }
  .pm-rail { width: 46px; }
  .hero-actions .btn { width: 100%; }
}

@media (prefers-reduced-motion: reduce) {
  .marquee-track { animation: none; }
  .hero-eyebrow .dot, .pm-live i, .hero-scroll-line { animation: none; }
  .preloader { display: none; animation: none; }
}

/* ============ PROOF STRIP ============ */
.proof {
  background: var(--bg-deep);
  border-bottom: 1px solid var(--line-soft);
  padding: 18px var(--pad-x);
}
.proof-inner {
  max-width: 1240px; margin: 0 auto;
  display: flex; align-items: center; justify-content: center;
  gap: 22px; flex-wrap: wrap;
}
.proof-label {
  font-size: 11px; font-weight: 700; letter-spacing: 0.18em;
  text-transform: uppercase; color: var(--t-muted);
}
.proof-names { display: inline-flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.proof-names b {
  font-family: var(--font-display); font-size: 15px; font-weight: 600;
  color: var(--t-secondary); letter-spacing: 0.01em; white-space: nowrap;
}
.proof-names i { color: var(--electric); font-style: normal; font-size: 10px; }
.proof-stats { font-size: 12.5px; color: var(--t-muted); }
@media (max-width: 860px) { .proof-stats { display: none; } }

/* ============ ROI CALCULATOR ============ */
.roi {
  padding: clamp(80px, 12vw, 150px) var(--pad-x);
  background: linear-gradient(180deg, var(--bg-deep), var(--bg-mid) 40%, var(--bg-deep));
}
.roi-inner {
  max-width: 1160px; margin: 0 auto;
  display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: clamp(36px, 5vw, 80px); align-items: center;
}
.roi-copy h2 {
  font-size: clamp(32px, 4.6vw, 60px); font-weight: 700;
  line-height: 1.08; letter-spacing: -0.025em; margin-bottom: 22px;
}
.roi-note { margin-top: 24px; font-size: 13.5px; color: var(--t-muted); line-height: 1.7; }
.roi-calc {
  border: 1px solid var(--line); border-radius: 24px;
  background: linear-gradient(150deg, rgba(15, 34, 82, 0.72), rgba(15, 34, 82, 0.28));
  box-shadow: 0 30px 90px rgba(0, 0, 0, 0.4);
  padding: clamp(26px, 3.5vw, 44px);
  position: relative; overflow: hidden;
}
.roi-calc::before {
  content: ''; position: absolute; top: 0; left: 0; right: 0; height: 1px;
  background: linear-gradient(90deg, transparent, rgba(59, 130, 246, 0.7), transparent);
}
.roi-field { margin-bottom: 26px; }
.roi-field-head { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 10px; gap: 12px; }
.roi-field-head label { font-size: 14px; font-weight: 600; color: var(--t-secondary); }
.roi-val { font-family: var(--font-display); font-size: 18px; font-weight: 700; color: #fff; font-variant-numeric: tabular-nums; white-space: nowrap; }
.roi input[type="range"] {
  width: 100%; height: 6px; border-radius: 3px; appearance: none; -webkit-appearance: none;
  background: linear-gradient(to right, var(--electric) 0%, var(--sky) var(--fill, 50%), rgba(59, 130, 246, 0.18) var(--fill, 50%));
  outline: none; cursor: pointer;
}
.roi input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none; appearance: none;
  width: 22px; height: 22px; border-radius: 50%;
  background: #fff; border: 3px solid var(--sky);
  box-shadow: 0 2px 12px rgba(59, 130, 246, 0.6); cursor: grab;
}
.roi input[type="range"]::-moz-range-thumb {
  width: 22px; height: 22px; border-radius: 50%;
  background: #fff; border: 3px solid var(--sky);
  box-shadow: 0 2px 12px rgba(59, 130, 246, 0.6); cursor: grab;
}
.roi-result {
  border-top: 1px solid var(--line-soft); padding-top: 24px; margin-top: 4px;
  display: flex; flex-direction: column; gap: 4px;
}
.roi-result-label { font-size: 12px; font-weight: 700; letter-spacing: 0.16em; text-transform: uppercase; color: var(--t-muted); }
.roi-leak {
  font-family: var(--font-display); font-size: clamp(40px, 5vw, 56px); font-weight: 700;
  letter-spacing: -0.03em; line-height: 1.1; color: var(--amber-light);
  font-variant-numeric: tabular-nums;
}
.roi-leak span { font-size: 0.4em; color: var(--t-muted); font-weight: 500; }
.roi-verdict { font-size: 15px; color: var(--t-body); margin-top: 8px; line-height: 1.6; }
.roi-verdict b { color: var(--green-light); }
.roi-cta { margin-top: 22px; }
@media (max-width: 1024px) { .roi-inner { grid-template-columns: minmax(0, 1fr); gap: 44px; } }

/* ============ NIGHT TIMELINE ============ */
.night {
  padding: clamp(80px, 12vw, 150px) var(--pad-x);
  background: var(--bg-deep);
  position: relative; overflow: hidden;
}
.night::before {
  content: ''; position: absolute; inset: 0; pointer-events: none;
  background-image: radial-gradient(circle at 1px 1px, rgba(147, 197, 253, 0.12) 1px, transparent 0);
  background-size: 90px 90px;
  mask-image: linear-gradient(to bottom, #000, transparent 60%);
  -webkit-mask-image: linear-gradient(to bottom, #000, transparent 60%);
}
.tl { max-width: 760px; margin: 0 auto; position: relative; padding-left: 30px; }
.tl::before {
  content: ''; position: absolute; left: 7px; top: 8px; bottom: 8px; width: 1px;
  background: linear-gradient(to bottom, transparent, rgba(59, 130, 246, 0.5) 8%, rgba(59, 130, 246, 0.5) 92%, transparent);
}
.tl-item { position: relative; padding: 0 0 34px; }
.tl-item:last-child { padding-bottom: 0; }
.tl-item::before {
  content: ''; position: absolute; left: -27px; top: 7px;
  width: 9px; height: 9px; border-radius: 50%;
  background: var(--sky); box-shadow: 0 0 10px rgba(59, 130, 246, 0.8);
}
.tl-item.learn::before { background: var(--mist); }
.tl-item.money::before { background: var(--green); box-shadow: 0 0 10px rgba(16, 185, 129, 0.8); }
.tl-time {
  font-family: var(--font-display); font-size: 13px; font-weight: 700;
  letter-spacing: 0.12em; color: var(--mist); font-variant-numeric: tabular-nums;
}
.tl-event { font-size: 16px; color: var(--t-body); line-height: 1.65; margin-top: 4px; }
.tl-event b { color: #fff; }
.tl-agent {
  display: inline-block; margin-left: 10px; vertical-align: 1px;
  font-size: 10.5px; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--t-muted); border: 1px solid var(--line); border-radius: 100px; padding: 3px 10px;
  white-space: nowrap;
}
.tl-close {
  max-width: 760px; margin: 44px auto 0; text-align: center;
  font-family: var(--font-display); font-size: clamp(17px, 2.2vw, 21px);
  color: var(--t-body); line-height: 1.6;
}
.tl-close b { color: #fff; }

/* ============================================================
   VISUAL UPGRADES — cursor spotlight, card tilt, hero glow,
   accent touches, film grain. (Code-with-Me-inspired polish.)
   ============================================================ */

/* ---- Cursor-tracking spotlight on card grids ----
   Container marked [data-spotlight]; each direct-child card gets a
   radial glow that follows the cursor. screen blend keeps text crisp. */
[data-spotlight] > * { position: relative; }
[data-spotlight] > *::after {
  content: ''; position: absolute; inset: 0; border-radius: inherit;
  pointer-events: none; z-index: 3;
  background: radial-gradient(
    460px circle at var(--mx, 50%) var(--my, 50%),
    rgba(99, 160, 255, 0.45), transparent 55%
  );
  opacity: 0; transition: opacity 0.4s ease;
  mix-blend-mode: screen;
}
[data-spotlight] > *:hover::after { opacity: 1; }
/* revenue lever glows green, activation glows violet */
[data-spotlight] > .lever-revenue::after {
  background: radial-gradient(460px circle at var(--mx, 50%) var(--my, 50%), rgba(52, 211, 153, 0.4), transparent 55%);
}

/* ---- 3D tilt on plan cards (desktop fine-pointer only, set via JS) ---- */
[data-tilt-card] {
  transform-style: preserve-3d;
  transition: transform 0.4s cubic-bezier(0.22, 1, 0.36, 1), border-color 0.3s, box-shadow 0.3s;
  will-change: transform;
}
[data-tilt-card] > * { transform: translateZ(0.01px); }

/* ---- Hero cursor glow (lerped follow, behind copy / above canvas) ---- */
.hero-glow {
  position: absolute; top: 0; left: 0; z-index: 1; pointer-events: none;
  width: 460px; height: 460px; margin: -230px 0 0 -230px; border-radius: 50%;
  background: radial-gradient(circle, rgba(59, 130, 246, 0.16), rgba(124, 58, 237, 0.08) 45%, transparent 70%);
  filter: blur(20px); opacity: 0; transition: opacity 0.6s ease;
  mix-blend-mode: screen;
}
.hero.glow-on .hero-glow { opacity: 1; }

/* ---- Accent touches (cyan / violet for depth) ---- */
.h-orbiter { fill: var(--cyan-light); filter: drop-shadow(0 0 7px rgba(103, 232, 249, 0.9)); }
.hudson-loop-tag { border-color: rgba(103, 232, 249, 0.35); color: var(--cyan-light); }
.activation .btn-primary { background: var(--violet); box-shadow: 0 4px 24px rgba(124, 58, 237, 0.4); }
.activation .btn-primary:hover { background: #8b4ff0; box-shadow: 0 10px 40px rgba(124, 58, 237, 0.55); }
.plan-card.featured .plan-badge {
  background: rgba(124, 58, 237, 0.28); border-color: rgba(167, 139, 250, 0.5); color: var(--violet-light);
}

/* ============ FINAL CTA — LIVE AI DEMO / LEAD CAPTURE ============ */
.cta.lead { text-align: center; }
.cta.lead .section-tag { display: inline-block; }
.cta.lead h2 { font-size: clamp(34px, 5.4vw, 66px); }
.cta.lead > .cta-inner > p { margin-bottom: 44px; }
.cta.lead > .cta-inner > p b { color: #fff; font-weight: 600; }

/* Lead-capture form styles moved to site.css (2026-07-26) so the pricing
   page and any future page can render the same form. */


/* ---- Film grain overlay (subtle premium texture) ---- */
body::after {
  content: ''; position: fixed; inset: 0; z-index: 400; pointer-events: none;
  opacity: 0.035; mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='200' height='200'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

@media (prefers-reduced-motion: reduce) {
  [data-tilt-card] { transition: none; }
  .hero-glow { display: none; }
}
@media (max-width: 860px) {
  body::after { opacity: 0.02; }
  [data-spotlight] > *::after { display: none; }
}
