/* ============================================================
   CardioVAI — Landing v4  ·  "From a blur to a diagnosis"
   ============================================================ */

:root {
  --bg-0: #04080f;
  --bg-1: #081120;
  --panel: #0c1726;
  --panel-2: #101e31;
  --line: rgba(120, 180, 255, 0.13);
  --line-hi: rgba(120, 200, 255, 0.32);
  --txt: #e9f2fb;
  --muted: #8da2b8;
  --faint: #5d7186;
  --accent: #00e5ff;
  --accent-2: #00ff9d;
  --red: #ff4d5e;
  --red-2: #ff8a5c;
  --font-display: "Space Grotesk", sans-serif;
  --font-body: "Inter", sans-serif;
  --font-mono: "JetBrains Mono", monospace;
  --maxw: 1180px;
  /* simulation */
  --focus: 0;
}

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

html { scroll-behavior: smooth; }

body {
  background: var(--bg-0);
  color: var(--txt);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

::selection { background: rgba(0, 229, 255, 0.25); }

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

a { color: inherit; text-decoration: none; }

/* ---------- background ---------- */
.bg {
  position: fixed; inset: 0; z-index: -1; pointer-events: none;
  background:
    radial-gradient(900px 600px at 82% -10%, rgba(0, 229, 255, 0.07), transparent 60%),
    radial-gradient(700px 500px at -10% 40%, rgba(255, 77, 94, 0.055), transparent 60%),
    var(--bg-0);
}
.bg__grid {
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(120, 180, 255, 0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(120, 180, 255, 0.045) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(1200px 800px at 60% 10%, #000 0%, transparent 75%);
  -webkit-mask-image: radial-gradient(1200px 800px at 60% 10%, #000 0%, transparent 75%);
  opacity: 1;
  transition: opacity 0.3s;
}
body.no-grid .bg__grid { opacity: 0; }

/* ---------- top bar ---------- */
.top {
  position: fixed; top: 0; left: 0; right: 0; z-index: 50;
  display: flex; align-items: center; justify-content: space-between;
  padding: 18px 32px;
  background: linear-gradient(to bottom, rgba(4, 8, 15, 0.92) 55%, transparent);
}
.brand { display: flex; align-items: center; gap: 10px; transition: opacity 0.3s ease, visibility 0.3s ease, transform 0.3s ease; }
.brand__logo {
  height: 30px; width: auto; display: block; border-radius: 8px;
  box-shadow: 0 0 18px rgba(0, 229, 255, 0.2);
  transition: box-shadow 0.18s, transform 0.18s;
}
.brand:hover .brand__logo { box-shadow: 0 0 26px rgba(0, 229, 255, 0.4); transform: translateY(-1px); }
/* logo is a bookend — present at the top, fades away as soon as the page scrolls */
.top.is-scrolled .brand { opacity: 0; visibility: hidden; transform: translateY(-4px); pointer-events: none; }
.brand__name { font-family: var(--font-display); font-size: 19px; font-weight: 600; letter-spacing: 0.01em; }
.brand__name b { background: linear-gradient(90deg, var(--accent), var(--accent-2)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.top__nav { display: flex; align-items: center; gap: 26px; font-size: 13.5px; color: var(--muted); }
.top__patent {
  display: inline-flex; align-items: center; gap: 7px;
  font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.1em;
  text-transform: uppercase; color: var(--accent-2);
  border: 1px solid rgba(0, 255, 157, 0.35); border-radius: 999px;
  padding: 5px 12px; background: rgba(0, 255, 157, 0.06); white-space: nowrap;
}
.top__patent i { width: 6px; height: 6px; border-radius: 50%; background: var(--accent-2); box-shadow: 0 0 8px var(--accent-2); }
.top__nav a { transition: color 0.15s; }
.top__nav a:hover { color: var(--txt); }
.top__cta {
  font-size: 13px; font-weight: 600; color: #02141a;
  background: linear-gradient(90deg, var(--accent), var(--accent-2));
  padding: 9px 18px; border-radius: 999px;
  box-shadow: 0 0 24px rgba(0, 229, 255, 0.25);
  transition: transform 0.15s, box-shadow 0.15s;
}
.top__cta:hover { box-shadow: 0 0 36px rgba(0, 229, 255, 0.4); }

/* ---------- shared ---------- */
.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 32px; }
.eyebrow {
  font-family: var(--font-mono); font-size: 11.5px; letter-spacing: 0.18em;
  text-transform: uppercase; color: var(--accent);
}
.grad { background: linear-gradient(90deg, var(--accent), var(--accent-2)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.grad-red { background: linear-gradient(90deg, var(--red), var(--red-2)); -webkit-background-clip: text; background-clip: text; color: transparent; }

section { padding: 110px 0; }

.sec-head { max-width: 640px; margin-bottom: 56px; }
.sec-head h2 { font-family: var(--font-display); font-size: 40px; line-height: 1.15; letter-spacing: -0.01em; margin: 14px 0 16px; }
.sec-head p { color: var(--muted); font-size: 16.5px; text-wrap: pretty; }

/* ============================================================
   HERO + SIMULATION
   ============================================================ */
.hero {
  min-height: 100vh;
  display: grid;
  grid-template-columns: minmax(380px, 0.92fr) minmax(480px, 1.08fr);
  gap: 48px;
  align-items: center;
  max-width: 1280px;
  margin: 0 auto;
  padding: 120px 32px 60px;
}

.hero__copy { display: flex; flex-direction: column; gap: 22px; }

.badge {
  display: inline-flex; align-items: center; gap: 9px;
  font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.14em;
  color: var(--muted);
  border: 1px solid var(--line); border-radius: 999px;
  padding: 7px 14px; width: fit-content;
  background: rgba(12, 23, 38, 0.6);
}
.badge__dot { width: 7px; height: 7px; border-radius: 50%; background: var(--accent-2); box-shadow: 0 0 10px var(--accent-2); }

.hero__title {
  font-family: var(--font-display);
  font-size: clamp(36px, 3.6vw, 52px);
  line-height: 1.12; letter-spacing: -0.015em; font-weight: 700;
  text-wrap: balance;
}
.hero__sub { color: var(--muted); font-size: 17px; max-width: 470px; text-wrap: pretty; }
.hero__sub b { color: var(--txt); font-weight: 600; }

.hero__hint {
  display: flex; align-items: center; gap: 12px;
  border: 1px dashed var(--line-hi); border-radius: 14px;
  padding: 14px 18px;
  background: rgba(0, 229, 255, 0.04);
  font-size: 14px; color: var(--muted);
}
.hero__hint b { color: var(--accent); font-weight: 600; }
.hero__hint svg { flex: none; color: var(--accent); }

/* ---------- stage ---------- */
.stagebox { position: relative; }

.stage {
  position: relative;
  height: 640px;
  border: 1px solid var(--line);
  border-radius: 22px;
  background:
    radial-gradient(560px 420px at 30% 38%, rgba(0, 229, 255, 0.04), transparent 65%),
    linear-gradient(180deg, #070d18, #04070d);
  overflow: hidden;
  cursor: none;
  touch-action: none;
}
.stage__scan {
  position: absolute; inset: 0; pointer-events: none;
  background-image: repeating-linear-gradient(180deg, rgba(140, 200, 255, 0.035) 0 1px, transparent 1px 4px);
}

/* body figure (x-ray image) */
.bodywrap {
  position: absolute; left: 0; top: 0;
  height: 100%;
  aspect-ratio: 1120 / 1229;
  pointer-events: none;
}
.bodyimg {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  user-select: none; -webkit-user-select: none;
  mask-image: linear-gradient(90deg, #000 78%, transparent 99%);
  -webkit-mask-image: linear-gradient(90deg, #000 78%, transparent 99%);
}
/* stenosis glow revealed on focus, pinned to the carotid */
.stenglow {
  position: absolute; left: 30%; top: 20.7%;
  width: 72px; height: 72px; margin: -36px;
  border-radius: 50%;
  background: radial-gradient(closest-side, rgba(255, 138, 92, 0.85), rgba(255, 77, 94, 0.35) 55%, transparent);
  mix-blend-mode: screen;
  opacity: calc(var(--focus) * 0.9);
}
#carotidAnchor {
  position: absolute; left: 30%; top: 20.7%;
  width: 2px; height: 2px;
}
@media (prefers-reduced-motion: reduce) {
  .hotspot__ring { animation: none !important; }
}

/* hotspot ping */
.hotspot {
  position: absolute; width: 14px; height: 14px; margin: -7px;
  pointer-events: none;
}
.hotspot__core {
  position: absolute; inset: 3px; border-radius: 50%;
  background: var(--accent); box-shadow: 0 0 12px var(--accent);
  opacity: 0.9;
}
.hotspot__ring {
  position: absolute; inset: 0; border-radius: 50%;
  border: 1.5px solid var(--accent);
  animation: ping 2.2s ease-out infinite;
  opacity: 0;
}
.hotspot__ring.r2 { animation-delay: 1.1s; }
@keyframes ping {
  0% { transform: scale(0.6); opacity: 0.85; }
  80% { transform: scale(3.4); opacity: 0; }
  100% { opacity: 0; }
}
.stage.is-locked .hotspot__ring { animation-play-state: paused; opacity: 0; }

/* zoom cone: hotspot -> panel */
.leader { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
#zoomCone {
  fill: rgba(0, 229, 255, 0.055);
  stroke: rgba(0, 229, 255, 0.25);
  stroke-width: 0.75;
  opacity: calc(0.45 + var(--focus) * 0.55);
}
#zoomRing {
  fill: none;
  stroke: var(--accent);
  stroke-width: 1.3;
  stroke-dasharray: 5 4;
  opacity: calc(0.45 + var(--focus) * 0.55);
}
#leaderLine {
  stroke: var(--accent); stroke-width: 1.4;
  opacity: calc(0.4 + var(--focus) * 0.6);
}

/* ---------- cross-section panel ---------- */
.xsec {
  position: absolute; top: 26px; right: 22px;
  width: min(370px, 58%);
  border-radius: 16px;
  overflow: hidden;
}
.xsec__head {
  display: flex; align-items: center; justify-content: space-between;
  padding: 10px 14px;
  border-bottom: 1px solid var(--line);
  font-family: var(--font-mono); font-size: 10.5px; letter-spacing: 0.14em;
  color: var(--muted);
}
.xsec__live { display: inline-flex; align-items: center; gap: 6px; }
.xsec__live i {
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--red);
  opacity: calc(0.25 + var(--focus) * 0.75);
  box-shadow: 0 0 8px var(--red);
}
.xsec__viewport { position: relative; aspect-ratio: 448 / 276; background: transparent; overflow: hidden; }
.xsec__inner {
  position: absolute; inset: 0;
  filter: blur(calc((1 - var(--focus)) * 14px)) saturate(calc(0.45 + var(--focus) * 0.55));
  transform: scale(calc(1.06 - var(--focus) * 0.06));
}
.xsec__inner svg { width: 100%; height: 100%; display: block; }
.xsec__img {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  user-select: none; -webkit-user-select: none;
}
.xsec__sweep {
  position: absolute; top: 0; bottom: 0; left: -25%;
  width: 14%;
  background: linear-gradient(90deg, rgba(255,255,255,0), rgba(190,235,255,0.32), rgba(255,255,255,0));
  mix-blend-mode: screen;
  opacity: calc(var(--focus) * 0.9);
  pointer-events: none;
}

/* annotations anchored to the baked leader lines in the artery image */
.xnote {
  position: absolute;
  background: rgba(8, 16, 29, 0.92);
  border: 1px solid var(--line-hi);
  border-radius: 9px;
  padding: 6px 11px;
  pointer-events: none;
  opacity: clamp(0, calc((var(--focus) - 0.55) * 3), 1);
  z-index: 3;
}
.xnote b { display: block; font-family: var(--font-display); font-size: 13px; font-weight: 600; line-height: 1.2; }
.xnote small { display: block; font-family: var(--font-mono); font-size: 9.5px; letter-spacing: 0.06em; color: var(--red-2); text-transform: uppercase; margin-top: 1px; }
.xnote--1 { left: 4%; top: 6%; }
.xnote--2 { right: 3%; bottom: 6%; }

.xsec__noise {
  position: absolute; inset: 0; pointer-events: none;
  opacity: calc((1 - var(--focus)) * 0.5);
  background-image: repeating-linear-gradient(0deg, rgba(160, 200, 255, 0.08) 0 1px, transparent 1px 3px),
    repeating-linear-gradient(90deg, rgba(160, 200, 255, 0.05) 0 1px, transparent 1px 5px);
  mix-blend-mode: screen;
}
.xsec__unknown {
  position: absolute; inset: 0;
  display: flex; align-items: center; justify-content: center; gap: 10px;
  font-family: var(--font-mono); font-size: 12px; letter-spacing: 0.2em;
  color: rgba(180, 205, 230, 0.75);
  opacity: calc(1 - var(--focus) * 2);
  pointer-events: none;
}
.xsec__unknown b { font-size: 20px; color: var(--red-2); }

.xsec__stats {
  display: grid; grid-template-columns: 1fr 1fr 1fr;
  border-top: 1px solid var(--line);
}
.stat { padding: 10px 14px; border-right: 1px solid var(--line); }
.stat:last-child { border-right: 0; }
.stat label {
  display: block;
  font-family: var(--font-mono); font-size: 9.5px; letter-spacing: 0.16em;
  text-transform: uppercase; color: var(--faint);
  margin-bottom: 3px;
}
.stat b {
  font-family: var(--font-display); font-size: 19px; font-weight: 600;
  opacity: calc(0.18 + var(--focus) * 0.82);
  transition: color 0.2s;
}
.stat b.is-high { color: var(--red); }
.stat b.is-mod { color: var(--red-2); }
.stat b.is-low { color: var(--accent-2); }

/* cross-section drawing (legacy tokens kept for cells overlay) */
.xs-wall { fill: none; stroke: #ff7d8a; stroke-width: 7; }
.xs-wall-stiff { fill: none; stroke: #ffd9a8; stroke-width: 7; stroke-dasharray: 3 7; }
.xs-lumen { fill: #2a0a12; }
.xs-plaque { fill: url(#plaqueGrad); stroke: rgba(255, 220, 160, 0.4); stroke-width: 0.8; }
.xs-cell { fill: #ff4d5e; }
.xs-cell.fast { fill: #ff8a5c; }
.xs-calc { fill: #ffe9c4; }
.xs-sweep { fill: url(#sweepGrad); opacity: 0.55; }

/* ---------- device puck ---------- */
.device {
  position: absolute; left: 0; top: 0;
  width: 92px; height: 92px; margin: -46px;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.25s;
  z-index: 5;
  will-change: transform;
}
.stage.has-pointer .device { opacity: 1; }
.device__img {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  border-radius: 50%;
  border: 1.5px solid rgba(0, 229, 255, 0.55);
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.6), 0 0 22px rgba(0, 229, 255, 0.3);
  user-select: none; -webkit-user-select: none;
}
.device__led {
  position: absolute; top: 6px; right: 13px;
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--accent-2); box-shadow: 0 0 8px var(--accent-2);
}
.device__halo {
  position: absolute; inset: -15px; border-radius: 50%;
  border: 1px solid rgba(0, 229, 255, 0.5);
  opacity: calc(var(--focus) * 0.9);
  transform: scale(calc(0.8 + var(--focus) * 0.25));
}

/* ---------- callouts (compact, docked at the bottom of the stage) ---------- */
.callouts {
  position: absolute; left: 16px; right: 16px; bottom: 46px;
  display: flex; gap: 8px;
  z-index: 4; pointer-events: none;
}
.callout {
  flex: 1 1 0; min-width: 0;
  display: flex; align-items: flex-start; gap: 8px;
  background: rgba(8, 16, 29, 0.92);
  border: 1px solid var(--line-hi);
  border-radius: 10px;
  padding: 7px 10px 8px;
  opacity: 0; transform: translateX(-10px);
}
.callout__dot {
  flex: none; width: 7px; height: 7px; border-radius: 50%;
  margin-top: 4px;
  background: var(--accent); box-shadow: 0 0 9px var(--accent);
}
.callout__dot--red { background: var(--red); box-shadow: 0 0 9px var(--red); }
.callout > span:last-child { min-width: 0; }
.callout b { display: block; font-family: var(--font-display); font-size: 12px; font-weight: 600; line-height: 1.25; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.callout small { display: block; font-family: var(--font-mono); font-size: 9px; color: var(--muted); margin-top: 1px; letter-spacing: 0.03em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* ---------- stage status ---------- */
.stage__status {
  position: absolute; left: 18px; right: 18px; bottom: 16px;
  display: flex; align-items: center; gap: 14px;
  font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.13em;
  color: var(--muted);
  z-index: 4;
}
.sigbar {
  flex: none; width: 130px; height: 5px; border-radius: 999px;
  background: rgba(120, 180, 255, 0.12);
  overflow: hidden;
}
.sigbar i {
  display: block; height: 100%; width: 0%;
  background: linear-gradient(90deg, var(--accent), var(--accent-2));
  border-radius: 999px;
}
.stage__statustext { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.stage__statustext.is-lost { color: var(--red-2); }
.stage__statustext.is-locked { color: var(--accent-2); }

/* ---------- dock (slider fallback) ---------- */
.dock {
  margin-top: 16px;
  display: flex; align-items: center; gap: 16px;
  border: 1px solid var(--line); border-radius: 14px;
  background: rgba(12, 23, 38, 0.6);
  padding: 14px 18px;
}
.dock__label { font-family: var(--font-mono); font-size: 10.5px; letter-spacing: 0.14em; color: var(--faint); text-transform: uppercase; flex: none; }
.dock input[type="range"] {
  flex: 1; appearance: none; -webkit-appearance: none;
  height: 4px; border-radius: 999px;
  background: linear-gradient(90deg, rgba(255, 77, 94, 0.5), rgba(0, 229, 255, 0.6));
  outline: none;
}
.dock input[type="range"]::-webkit-slider-thumb {
  appearance: none; -webkit-appearance: none;
  width: 22px; height: 22px; border-radius: 7px;
  background: linear-gradient(155deg, #2b3a4e, #121d2c);
  border: 1.5px solid var(--accent);
  box-shadow: 0 0 14px rgba(0, 229, 255, 0.45);
  cursor: ew-resize;
}
.dock input[type="range"]::-moz-range-thumb {
  width: 22px; height: 22px; border-radius: 7px;
  background: #16243a; border: 1.5px solid var(--accent);
  box-shadow: 0 0 14px rgba(0, 229, 255, 0.45);
  cursor: ew-resize;
}

/* ============================================================
   SECTIONS
   ============================================================ */

/* how it works */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; margin-bottom: 64px; }
.step {
  border: 1px solid var(--line); border-radius: 18px;
  background: linear-gradient(180deg, var(--panel), rgba(12, 23, 38, 0.4));
  padding: 26px 26px 28px;
}
.step__num { font-family: var(--font-mono); font-size: 12px; color: var(--accent); letter-spacing: 0.16em; }
.step h3 { font-family: var(--font-display); font-size: 21px; margin: 12px 0 8px; }
.step p { color: var(--muted); font-size: 14.5px; text-wrap: pretty; }

.figure {
  border: 1px solid var(--line); border-radius: 20px; overflow: hidden;
  background: #eef2f6;
}
.figure img { width: 100%; }
.figure figcaption {
  background: var(--panel);
  border-top: 1px solid var(--line);
  padding: 14px 20px;
  font-family: var(--font-mono); font-size: 11.5px; letter-spacing: 0.08em;
  color: var(--muted);
}

/* ---------- live system figure ---------- */
.sysfig__canvas {
  position: relative;
  border: 1px solid var(--line);
  border-radius: 20px;
  overflow: hidden;
  background: #e9eef3;
}
.sysfig__body { position: relative; aspect-ratio: 1408 / 768; }
.sysfig__img { position: absolute; inset: 0; width: 100%; height: 100%; user-select: none; -webkit-user-select: none; }
.sysfig__streams { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
.spath {
  fill: none;
  stroke: rgba(0, 175, 220, 0.55);
  stroke-width: 2.4;
  stroke-dasharray: 4 13;
  stroke-linecap: round;
}
.spulse { fill: #5ed4f5; }
.spulse--core { fill: #eafaff; }

.sysled { position: absolute; width: 12px; height: 12px; margin: -6px; pointer-events: none; }
.sysled i {
  position: absolute; inset: 2.5px; border-radius: 50%;
  background: #00cdf0; box-shadow: 0 0 10px rgba(0, 205, 240, 0.9);
}
.sysled::after {
  content: "";
  position: absolute; inset: 0; border-radius: 50%;
  border: 1.5px solid rgba(0, 190, 230, 0.8);
  animation: ping 2.4s ease-out infinite;
}
@media (prefers-reduced-motion: reduce) { .sysled::after { animation: none; } }

/* console panel */
.syspanel {
  position: absolute; right: 2%; top: 5.5%; bottom: 5.5%; width: 41.5%;
  display: flex; flex-direction: column; gap: 12px;
  background: linear-gradient(180deg, rgba(6, 13, 24, 0.97), rgba(9, 17, 30, 0.97));
  border: 1px solid var(--line-hi);
  border-radius: 16px;
  box-shadow: 0 24px 60px rgba(6, 14, 28, 0.5);
  padding: 16px 18px 14px;
  color: var(--txt);
}
.syspanel__head {
  display: flex; align-items: center; justify-content: space-between;
  font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.16em;
  color: var(--muted);
  border-bottom: 1px solid var(--line);
  padding-bottom: 10px;
}
.syspanel__live { display: inline-flex; align-items: center; gap: 6px; color: var(--accent-2); }
.syspanel__live i { width: 7px; height: 7px; border-radius: 50%; background: var(--accent-2); box-shadow: 0 0 8px var(--accent-2); }
.syspanel__block { display: flex; flex-direction: column; gap: 6px; }
.syspanel__label {
  display: flex; align-items: baseline; justify-content: space-between;
}
.syspanel__label span { font-family: var(--font-display); font-size: 14px; font-weight: 600; }
.syspanel__label b { font-family: var(--font-mono); font-size: 9px; letter-spacing: 0.16em; color: var(--accent); font-weight: 500; }
.trend { width: 100%; height: auto; }
.tr-grid { stroke: rgba(120, 180, 255, 0.1); stroke-width: 1; }
.tr-threshold { stroke: rgba(255, 138, 92, 0.55); stroke-width: 1; stroke-dasharray: 5 5; }
.tr-thlabel { font-family: var(--font-mono); font-size: 8.5px; fill: var(--red-2); letter-spacing: 0.06em; }
.tr-area { fill: rgba(255, 77, 94, 0.1); }
.tr-line { fill: none; stroke: var(--red); stroke-width: 2; stroke-linejoin: round; }
.tr-dot { fill: #ffb3ba; }
.tr-dot--flag { fill: var(--red-2); }
.tr-dot--now { fill: #fff; }
.tr-flag { font-family: var(--font-mono); font-size: 9.5px; fill: var(--red-2); letter-spacing: 0.04em; }
.tr-year { font-family: var(--font-mono); font-size: 10px; fill: var(--faint); }
.wave { width: 100%; height: 52px; background: rgba(4, 10, 18, 0.6); border: 1px solid var(--line); border-radius: 8px; }
.wave__p { fill: none; stroke: var(--accent); stroke-width: 1.6; filter: drop-shadow(0 0 3px rgba(0, 229, 255, 0.7)); }
.syspanel__stats {
  margin-top: auto;
  display: grid; grid-template-columns: 1fr 1fr 1fr;
  border: 1px solid var(--line); border-radius: 10px;
  overflow: hidden;
}
.syspanel__stat { padding: 9px 12px; border-right: 1px solid var(--line); background: rgba(10, 20, 36, 0.6); }
.syspanel__stat:last-child { border-right: 0; }
.syspanel__stat label {
  display: block;
  font-family: var(--font-mono); font-size: 8.5px; letter-spacing: 0.14em;
  text-transform: uppercase; color: var(--faint);
}
.syspanel__stat b { font-family: var(--font-display); font-size: 19px; font-weight: 600; }
.syspanel__stat b.is-hi { color: var(--red); }
.syspanel__stat small { display: block; font-family: var(--font-mono); font-size: 9px; color: var(--muted); }
.sysfig__cap {
  margin-top: 14px;
  font-family: var(--font-mono); font-size: 11.5px; letter-spacing: 0.08em;
  color: var(--muted);
}

/* detect grid */
.dgrid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.dcard {
  border: 1px solid var(--line); border-radius: 18px;
  background: linear-gradient(180deg, var(--panel), rgba(12, 23, 38, 0.35));
  padding: 26px;
  transition: border-color 0.2s, transform 0.2s;
}
.dcard:hover { border-color: var(--line-hi); }
.dcard__ic {
  width: 42px; height: 42px; border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  background: rgba(0, 229, 255, 0.08);
  border: 1px solid rgba(0, 229, 255, 0.25);
  color: var(--accent);
  margin-bottom: 16px;
}
.dcard--alert .dcard__ic { background: rgba(255, 77, 94, 0.1); border-color: rgba(255, 77, 94, 0.35); color: var(--red); }
.dcard h3 { font-family: var(--font-display); font-size: 18.5px; margin-bottom: 7px; }
.dcard p { color: var(--muted); font-size: 14px; text-wrap: pretty; }

/* app section */
.app { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: 56px; align-items: center; }
.app__shot { border: 1px solid var(--line); border-radius: 20px; overflow: hidden; box-shadow: 0 30px 70px rgba(0, 0, 0, 0.45); }
.app ul { list-style: none; display: flex; flex-direction: column; gap: 14px; margin-top: 26px; }
.app li { display: flex; gap: 12px; color: var(--muted); font-size: 15px; }
.app li svg { flex: none; margin-top: 4px; color: var(--accent-2); }
.app li b { color: var(--txt); font-weight: 600; }

/* connect */
.connect { text-align: center; position: relative; }
.connect .sec-head { margin: 0 auto 36px; }
.connect__glow {
  position: absolute; left: 50%; top: 30%; width: 720px; height: 420px;
  transform: translate(-50%, -50%);
  background: radial-gradient(closest-side, rgba(0, 229, 255, 0.09), transparent);
  pointer-events: none;
}
.pills { display: flex; gap: 18px; justify-content: center; margin-bottom: 40px; flex-wrap: wrap; }
.pill {
  border: 1px solid var(--line); border-radius: 14px;
  background: var(--panel);
  padding: 16px 26px; text-align: left;
}
.pill b { display: block; font-family: var(--font-display); font-size: 16px; }
.pill span { font-size: 13px; color: var(--muted); }
.connect__mail {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--font-display); font-size: 18px; font-weight: 600;
  color: #02141a;
  background: linear-gradient(90deg, var(--accent), var(--accent-2));
  padding: 16px 34px; border-radius: 999px;
  box-shadow: 0 0 40px rgba(0, 229, 255, 0.3);
  transition: box-shadow 0.2s;
}
.connect__mail:hover { box-shadow: 0 0 60px rgba(0, 229, 255, 0.5); }
.connect__note { margin-top: 14px; font-size: 13px; color: var(--faint); }

/* footer */
footer {
  border-top: 1px solid var(--line);
  padding: 28px 0 36px;
  font-family: var(--font-mono); font-size: 11.5px; letter-spacing: 0.06em;
  color: var(--faint);
  text-align: center;
}

/* ---------- responsive ---------- */
@media (max-width: 1020px) {
  .hero { grid-template-columns: 1fr; padding-top: 100px; gap: 36px; }
  .stage { height: 560px; }
  .steps, .dgrid { grid-template-columns: 1fr 1fr; }
  .app { grid-template-columns: 1fr; }
}
@media (max-width: 760px) {
  .syspanel__head { padding-bottom: 8px; }
}
@media (max-width: 640px) {
  .top__nav { display: none; }
  .stage { height: 480px; cursor: auto; }
  .steps, .dgrid { grid-template-columns: 1fr; }
  .callouts { flex-direction: column; gap: 6px; right: auto; max-width: 66%; bottom: 44px; }
  .callout { flex: none; }
  .callout small { display: none; }
  .xsec { width: 64%; top: 14px; right: 12px; }
  section { padding: 80px 0; }
  .sec-head h2 { font-size: 31px; }
}

/* ---------- live system figure v2 — body → dashboard ---------- */
.sysfig__canvas--dark { background: #060b14; }
.sysfig2 { position: relative; aspect-ratio: 1408 / 720; }
.sysfig2__bodywrap { position: absolute; left: 0; top: 0; height: 100%; aspect-ratio: 1080 / 1233; }
.sysfig2__img { width: 100%; height: 100%; display: block; user-select: none; -webkit-user-select: none; }

/* dashboard panel */
.dash {
  position: absolute; right: 1.8%; top: 4.5%; bottom: 4.5%; width: 51%;
  display: flex; flex-direction: column; gap: clamp(6px, 0.9vw, 10px);
  background: linear-gradient(180deg, rgba(6, 13, 24, 0.97), rgba(9, 17, 30, 0.97));
  border: 1px solid var(--line-hi);
  border-radius: 16px;
  box-shadow: 0 24px 60px rgba(2, 8, 18, 0.6);
  padding: clamp(9px, 1.2vw, 14px) clamp(10px, 1.4vw, 16px);
  color: var(--txt);
}
.dash__head {
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
  font-family: var(--font-mono); font-size: clamp(8.5px, 1vw, 10.5px); letter-spacing: 0.12em;
  color: var(--muted);
  border-bottom: 1px solid var(--line);
  padding-bottom: 8px;
  white-space: nowrap;
}
.dash__sources { display: flex; align-items: center; gap: 8px; }
.srcchip {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 3px clamp(5px, 0.8vw, 9px);
  border: 1px solid var(--line); border-radius: 999px;
  background: rgba(10, 20, 36, 0.6);
  font-family: var(--font-mono); font-size: clamp(7.5px, 0.85vw, 9px); letter-spacing: 0.08em;
  color: var(--muted);
  white-space: nowrap;
  transition: border-color 0.25s, box-shadow 0.25s;
}
.srcchip i { width: 6px; height: 6px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 6px var(--accent); }
.srcchip b { color: var(--txt); font-weight: 500; font-variant-numeric: tabular-nums; }
.srcchip.is-rx { border-color: rgba(0, 229, 255, 0.7); box-shadow: 0 0 12px rgba(0, 229, 255, 0.25); }
.dash__rx { margin-left: auto; font-family: var(--font-mono); font-size: 8px; letter-spacing: 0.16em; color: var(--faint); }

.dash__grid {
  flex: 1; min-height: 0;
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  grid-template-rows: 1.25fr 1fr 1fr;
  gap: clamp(6px, 0.9vw, 10px);
}
.dtile {
  position: relative; min-height: 0; overflow: hidden;
  display: flex; flex-direction: column; gap: clamp(3px, 0.5vw, 6px);
  padding: clamp(6px, 0.8vw, 10px) clamp(7px, 1vw, 12px);
  border: 1px solid var(--line); border-radius: 12px;
  background: rgba(10, 20, 36, 0.55);
  transition: border-color 0.3s, box-shadow 0.3s;
}
.dtile.is-rx { border-color: rgba(0, 229, 255, 0.55); box-shadow: inset 0 0 18px rgba(0, 229, 255, 0.07); }
.dtile--flow, .dtile--health { grid-column: span 2; }
.dtile__top { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; }
.dtile__top label { font-family: var(--font-display); font-size: clamp(10px, 1.15vw, 12.5px); font-weight: 600; letter-spacing: 0.01em; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.dtile__top span { font-family: var(--font-mono); font-size: clamp(7px, 0.75vw, 8px); letter-spacing: 0.14em; color: var(--accent); white-space: nowrap; flex: none; }
.dwave { flex: 1; width: 100%; min-height: 24px; background: rgba(4, 10, 18, 0.6); border: 1px solid var(--line); border-radius: 8px; }
.dtile__foot { display: flex; align-items: baseline; gap: 6px; }
.dtile__foot b { font-family: var(--font-display); font-size: clamp(13px, 1.55vw, 17px); font-weight: 600; font-variant-numeric: tabular-nums; }
.dtile__foot small { font-family: var(--font-mono); font-size: clamp(7.5px, 0.85vw, 9px); color: var(--muted); white-space: nowrap; }
.dtile__big { display: flex; align-items: baseline; gap: 5px; }
.dtile__big b { font-family: var(--font-display); font-size: clamp(15px, 1.9vw, 21px); font-weight: 600; font-variant-numeric: tabular-nums; line-height: 1.1; }
.dtile__big small { font-family: var(--font-mono); font-size: clamp(7.5px, 0.85vw, 9px); color: var(--muted); }
.dtile--spo2 .dtile__big { margin-top: auto; }
.dtile--spo2 .dtile__big b { font-size: clamp(20px, 2.9vw, 32px); color: var(--accent-2); }
.dspark, .dbars { width: 100%; height: auto; flex: 1 1 14px; min-height: 12px; max-height: 26px; }
.dspark polyline { fill: none; stroke: rgba(0, 229, 255, 0.85); stroke-width: 1.5; vector-effect: non-scaling-stroke; filter: drop-shadow(0 0 2px rgba(0, 229, 255, 0.5)); }
.dbars rect { fill: rgba(0, 229, 255, 0.55); }
.dtile__health { display: flex; flex-direction: column; gap: 2px; margin-top: auto; min-height: 0; }
.dtile__health b { font-family: var(--font-display); font-size: clamp(15px, 1.9vw, 22px); font-weight: 700; letter-spacing: 0.04em; line-height: 1.1; color: var(--accent-2); text-shadow: 0 0 14px rgba(0, 255, 157, 0.35); }
.dtile__health small { font-family: var(--font-mono); font-size: clamp(7.5px, 0.85vw, 9px); color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.dtile--health.is-assess .dtile__health b { color: var(--accent); text-shadow: 0 0 14px rgba(0, 229, 255, 0.35); }

/* arterial flow graph */
.dgridline { stroke: rgba(120, 180, 255, 0.12); stroke-width: 1; vector-effect: non-scaling-stroke; }
.dflow__line { fill: none; stroke: var(--accent); stroke-width: 1.6; vector-effect: non-scaling-stroke; filter: drop-shadow(0 0 3px rgba(0, 229, 255, 0.6)); }
.dflow__area { fill: rgba(0, 229, 255, 0.1); stroke: none; }
.dtile__sep { margin-left: 12px; }

/* mobile mirror */
.sysapp {
  margin-top: 26px;
  display: grid; grid-template-columns: 1fr 1.15fr; gap: 40px; align-items: center;
  border: 1px solid var(--line); border-radius: 20px;
  background: linear-gradient(180deg, var(--panel), rgba(12, 23, 38, 0.35));
  padding: 32px 38px;
}
.sysapp h3 { font-family: var(--font-display); font-size: 27px; font-weight: 700; letter-spacing: -0.01em; margin: 12px 0 10px; }
.sysapp p { color: var(--muted); font-size: 15.5px; max-width: 46ch; }
.sysapp__shot { border: 1px solid var(--line); border-radius: 16px; overflow: hidden; box-shadow: 0 30px 70px rgba(0, 0, 0, 0.45); }
.sysapp__shot img { width: 100%; display: block; }

@media (max-width: 760px) {
  .sysfig2 { aspect-ratio: auto; }
  .sysfig2__bodywrap { position: relative; height: auto; width: 100%; aspect-ratio: 1080 / 1233; }
  .sysfig__streams { display: none; }
  .dash { position: static; width: auto; margin: 12px; }
  .dash__grid { grid-template-rows: none; grid-auto-rows: auto; }
  .dtile { min-height: 86px; }
  .dwave { min-height: 52px; }
  .dspark, .dbars { max-height: 30px; height: 26px; flex: none; }
  .sysapp { grid-template-columns: 1fr; gap: 22px; padding: 24px; }
}
@media (max-width: 980px) {
  .dash__rx { display: none; }
}
@media (max-width: 640px) {
  .dash__grid { grid-template-columns: 1fr 1fr; }
}

/* ============================================================
   Vascular timeline slider — then vs now
   ============================================================ */
.vsbox { margin-bottom: 64px; }
.vs {
  position: relative;
  aspect-ratio: 2.15;
  min-height: 380px;
  border: 1px solid var(--line);
  border-radius: 20px;
  overflow: hidden;
  --vsx: 50%;
  user-select: none; -webkit-user-select: none;
  cursor: ew-resize;
}
.vs__pane { position: absolute; inset: 0; }

/* past — archival paper */
.vs__past {
  background:
    radial-gradient(120% 90% at 30% 20%, rgba(255, 252, 240, 0.5), transparent 60%),
    #d8d1bf;
  color: #453d2c;
}
.vs__past::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background-image: radial-gradient(rgba(69, 61, 44, 0.18) 1px, transparent 1.4px);
  background-size: 7px 7px;
  opacity: 0.5;
}
.vs__past::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  box-shadow: inset 0 0 110px rgba(69, 61, 44, 0.38);
}
.vs__pasthead { position: absolute; top: 22px; left: 26px; max-width: 46%; font-family: "Times New Roman", Georgia, serif; z-index: 2; }
.vs__pasthead b { display: block; font-size: 19px; font-weight: 700; font-style: italic; letter-spacing: 0.01em; line-height: 1.25; }
.vs__pasthead span { display: block; margin-top: 5px; font-size: 10.5px; letter-spacing: 0.2em; }
.vs__diagram { position: absolute; left: 26px; top: 21%; width: min(44%, 470px); height: auto; z-index: 1; }
.vs__figcap { position: absolute; left: 26px; bottom: 62px; max-width: 44%; font-family: "Times New Roman", Georgia, serif; font-size: 10px; letter-spacing: 0.14em; z-index: 2; }
.vs__chips { position: absolute; bottom: 20px; display: flex; gap: 8px; flex-wrap: wrap; z-index: 2; }
.vs__chips span { padding: 5px 12px; border-radius: 999px; font-size: 11px; letter-spacing: 0.08em; text-transform: uppercase; white-space: nowrap; }
.vs__chips--past { left: 26px; }
.vs__chips--past span { border: 1px solid rgba(69, 61, 44, 0.55); font-family: "Times New Roman", Georgia, serif; }
.vs__chips--future { right: 26px; justify-content: flex-end; }
.vs__chips--future span { border: 1px solid var(--line-hi); background: rgba(0, 229, 255, 0.07); color: var(--accent); font-family: var(--font-mono); font-size: 10px; }

/* future — CardioVAI */
.vs__future {
  background:
    radial-gradient(56% 70% at 76% 26%, rgba(0, 229, 255, 0.12), transparent 65%),
    radial-gradient(40% 50% at 58% 86%, rgba(0, 255, 157, 0.06), transparent 70%),
    linear-gradient(180deg, #061120, #04090f);
  color: var(--txt);
  clip-path: inset(0 0 0 var(--vsx));
}
.vs__future::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background-image: repeating-linear-gradient(180deg, rgba(140, 200, 255, 0.04) 0 1px, transparent 1px 4px);
}
.vs__fimg {
  position: absolute; left: 47%; bottom: 0; height: 88%; width: auto;
  -webkit-mask-image: linear-gradient(180deg, #000 78%, transparent);
  mask-image: linear-gradient(180deg, #000 78%, transparent);
  opacity: 0.95;
  user-select: none; -webkit-user-select: none;
}
.vs__fhead { position: absolute; top: 22px; right: 26px; width: min(44%, 460px); text-align: right; z-index: 2; }
.vs__fhead b { display: block; font-family: var(--font-mono); font-size: 11px; font-weight: 500; letter-spacing: 0.2em; color: var(--accent); }
.vs__ftitle { display: block; margin-top: 8px; font-family: var(--font-display); font-size: clamp(20px, 2.2vw, 27px); font-weight: 700; line-height: 1.2; letter-spacing: -0.01em; }

/* divider + grip */
.vs__divider { position: absolute; top: 0; bottom: 0; left: var(--vsx); width: 0; z-index: 6; }
.vs__divider::before {
  content: ""; position: absolute; top: 0; bottom: 0; left: -1px; width: 2px;
  background: linear-gradient(180deg, rgba(0, 229, 255, 0.15), rgba(0, 229, 255, 0.9), rgba(0, 229, 255, 0.15));
  box-shadow: 0 0 16px rgba(0, 229, 255, 0.55);
}
.vs__grip {
  position: absolute; top: 50%; left: 0; transform: translate(-50%, -50%);
  width: 52px; height: 52px; border-radius: 50%;
  border: 1.5px solid rgba(0, 229, 255, 0.75);
  background: linear-gradient(90deg, #97907d 0%, #6f695b 50%, #0d2434 50%, #06304a 100%);
  background: linear-gradient(90deg, #97907d 0%, #6f695b 49.8%, #0d2434 50.2%, #06304a 100%);
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.55), 0 0 18px rgba(0, 229, 255, 0.35);
  display: flex; align-items: center; justify-content: center; gap: 7px;
  color: #eaf6ff; font-size: 11px; line-height: 1;
  cursor: ew-resize; touch-action: none;
  padding: 0;
}
.vs__grip:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
.vs.is-drag .vs__grip { box-shadow: 0 10px 28px rgba(0, 0, 0, 0.55), 0 0 26px rgba(0, 229, 255, 0.6); }

@media (max-width: 760px) {
  .vs { aspect-ratio: auto; height: 470px; }
  .vs__pasthead b { font-size: 15px; }
  .vs__pasthead { max-width: 52%; }
  .vs__diagram { width: 62%; top: 26%; }
  .vs__figcap { display: none; }
  .vs__fimg { left: 40%; height: 74%; }
  .vs__fhead { width: 52%; }
  .vs__chips span { font-size: 9.5px; padding: 4px 9px; }
  .vs__chips--future span { font-size: 9px; }
}

/* ============================================================
   Global telemetry — cloud-centric AI
   ============================================================ */
.telemetry {
  position: relative;
  margin-top: 26px;
  min-height: 480px;
  border: 1px solid var(--line);
  border-radius: 20px;
  overflow: hidden;
  background: linear-gradient(180deg, #050d19, #03070e);
  display: flex; align-items: center;
}
.telemetry__viz { position: absolute; inset: 0; }
.telemetry__viz canvas { position: absolute; inset: 0; display: block; }
.telemetry__cloud {
  position: absolute; left: 66%; top: 13%; transform: translate(-50%, -50%);
  display: flex; align-items: center; gap: 10px;
  padding: 9px 16px;
  border: 1px solid rgba(0, 229, 255, 0.5);
  border-radius: 999px;
  background: rgba(5, 14, 25, 0.88);
  box-shadow: 0 0 30px rgba(0, 229, 255, 0.28);
  color: var(--accent);
  white-space: nowrap;
}
.telemetry__cloud > span { display: flex; flex-direction: column; line-height: 1.35; }
.telemetry__cloud b { font-family: var(--font-mono); font-size: 10.5px; letter-spacing: 0.18em; color: var(--txt); font-weight: 500; }
.telemetry__cloud small { font-family: var(--font-mono); font-size: 8px; letter-spacing: 0.16em; color: var(--muted); }
.telemetry__copy { position: relative; z-index: 2; max-width: 430px; padding: 56px 0 56px 44px; display: flex; flex-direction: column; gap: 13px; }
.telemetry__copy h3 { font-family: var(--font-display); font-size: 26px; font-weight: 700; letter-spacing: -0.01em; line-height: 1.2; }
.telemetry__copy p { color: var(--muted); font-size: 15px; text-wrap: pretty; }
.telemetry__meta { display: flex; flex-wrap: wrap; gap: 8px 16px; margin-top: 4px; }
.telemetry__meta span { display: inline-flex; align-items: center; gap: 7px; font-family: var(--font-mono); font-size: 9.5px; letter-spacing: 0.14em; color: var(--muted); }
.telemetry__meta i { width: 6px; height: 6px; border-radius: 50%; background: var(--accent-2); box-shadow: 0 0 8px var(--accent-2); }

@media (max-width: 980px) {
  .telemetry__copy { max-width: 350px; padding-left: 28px; }
}
@media (max-width: 760px) {
  .telemetry { display: block; min-height: 0; }
  .telemetry__copy { max-width: none; padding: 26px 24px 0; }
  .telemetry__viz { position: relative; inset: auto; height: 340px; }
  .telemetry__cloud { left: 50%; }
}

/* ============================================================
   V6 — mobile fixes + patent emphasis + clean system figure
   (requests from "עדכוןים לגרסה V5 ... V6.docx")
   ============================================================ */

/* kill any horizontal overflow that pushed the navbar/hero off-screen on phones */
html, body { overflow-x: hidden; }

/* (1) PATENT — bigger + higher contrast badge on the hero */
.badge--patent {
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: 0.12em;
  color: #001016;
  background: linear-gradient(90deg, var(--accent), var(--accent-2));
  border: none;
  padding: 9px 18px;
  box-shadow: 0 0 22px rgba(0, 229, 255, 0.45);
  animation: patentPulse 2.6s ease-in-out infinite;
}
.badge--patent .badge__dot { background: #001016; box-shadow: none; }
@keyframes patentPulse {
  0%, 100% { box-shadow: 0 0 18px rgba(0, 229, 255, 0.35); }
  50%      { box-shadow: 0 0 32px rgba(0, 255, 157, 0.55); }
}
@media (prefers-reduced-motion: reduce) { .badge--patent { animation: none; } }

/* (4) clean system body — sensor nodes glow brighter so the body reads
   as "instrumented" without the old baked-in device/wifi clutter */
.sysled--node i {
  background: var(--accent);
  box-shadow: 0 0 10px 2px rgba(0, 229, 255, 0.9);
}
.sysled--node::after {
  border-color: rgba(0, 229, 255, 0.55);
}

/* ---------- phone layout (<=640px) ---------- */
@media (max-width: 640px) {
  /* (5) top bar + CTA fit the screen */
  .top { padding: 12px 16px; gap: 10px; }
  .brand__name { font-size: 17px; }
  .brand__logo { height: 28px; }
  .top__cta { font-size: 12px; padding: 8px 13px; white-space: nowrap; }

  /* (2) cross-section panel: smaller and tucked to the side so it no
     longer covers the figure's head/torso */
  .xsec { width: 46%; top: 10px; right: 8px; border-radius: 12px; }
  .xsec__head { padding: 6px 9px; font-size: 8.5px; letter-spacing: 0.08em; }
  .xsec__head .xsec__live span { display: none; }
  .xsec__stats { gap: 5px; }
  .xsec__stats .stat b { font-size: 12px; }
  .xsec__stats .stat label { font-size: 8px; letter-spacing: 0.04em; }

  /* (3) blur slider: stack the label above and let the track fill the
     width so the whole control is reachable by thumb on a phone */
  .dock { flex-direction: column; align-items: stretch; gap: 9px; padding: 12px 14px; }
  .dock__label { text-align: center; }
  .dock input[type="range"] { width: 100%; height: 6px; }
  .dock input[type="range"]::-webkit-slider-thumb { width: 28px; height: 28px; }
  .dock input[type="range"]::-moz-range-thumb { width: 28px; height: 28px; }
}

/* (4 cont.) keep a sense of live data flow on phones: the streams SVG is
   hidden when stacked, but the body sensor nodes keep pulsing continuously */
@media (max-width: 760px) {
  .sysled--node { display: block; }
}

/* =======================================================================
   V8 — OnePager-driven content: Our advantage + Market opportunity
   ======================================================================= */

/* Our advantage — 4-card grid */
.adv { display: grid; grid-template-columns: repeat(2, 1fr); gap: 22px; }
.advcard {
  border: 1px solid var(--line); border-radius: 18px;
  background: linear-gradient(180deg, var(--panel), rgba(12, 23, 38, 0.4));
  padding: 26px 26px 28px;
}
.advcard__ico {
  display: inline-flex; align-items: center; justify-content: center;
  width: 42px; height: 42px; border-radius: 12px; color: var(--accent);
  background: rgba(0, 229, 255, 0.08); border: 1px solid rgba(0, 229, 255, 0.22);
  box-shadow: 0 0 18px rgba(0, 229, 255, 0.15);
}
.advcard h3 { font-family: var(--font-display); font-size: 20px; margin: 16px 0 8px; }
.advcard p { color: var(--muted); font-size: 14.5px; line-height: 1.55; text-wrap: pretty; }

/* Market opportunity — 3 stat cards */
.mstats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.mstat {
  border: 1px solid var(--line); border-radius: 18px;
  background: linear-gradient(180deg, var(--panel), rgba(12, 23, 38, 0.4));
  padding: 30px 26px 28px; text-align: center;
}
.mstat__num {
  display: block; font-family: var(--font-display); font-weight: 700;
  font-size: 38px; line-height: 1.05; letter-spacing: -0.01em; color: var(--txt);
}
.mstat__num.grad {
  background: linear-gradient(90deg, var(--accent), var(--accent-2));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.mstat p { color: var(--muted); font-size: 14.5px; line-height: 1.55; margin-top: 12px; text-wrap: pretty; }
.mstat p b { color: var(--txt); font-weight: 600; }
.mstats__src {
  margin-top: 22px; text-align: center;
  font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.04em; color: var(--faint);
}

@media (max-width: 1020px) {
  .mstats { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .adv { grid-template-columns: 1fr; }
  .mstat__num { font-size: 32px; }
}

/* =======================================================================
   V9 — footer logo (bookend) + on-body sensor visualization (section 2)
   ======================================================================= */

.footer__logo {
  display: block; height: 48px; width: auto; margin: 0 auto 16px;
  border-radius: 10px; box-shadow: 0 0 22px rgba(0, 229, 255, 0.18);
}

/* --- on-body sensors: flexible sleeves (arm + leg) + abstract neck detector --- */
.sysnode { position: absolute; transform: translate(-50%, -50%); pointer-events: none; z-index: 4; }

.sysnode__tag {
  position: absolute; left: 50%; top: calc(100% + 8px); transform: translateX(-50%);
  display: inline-flex; align-items: center; gap: 5px; white-space: nowrap;
  font-family: var(--font-mono); font-size: 9px; letter-spacing: 0.12em;
  color: var(--accent); background: rgba(4, 12, 22, 0.74);
  border: 1px solid rgba(0, 229, 255, 0.32); border-radius: 999px; padding: 3px 8px;
}
.sysnode__tag .tx {
  width: 5px; height: 5px; border-radius: 50%; background: var(--accent-2);
  box-shadow: 0 0 6px var(--accent-2); animation: txblink 1.1s steps(1) infinite;
}
.sysnode__tag--alert { color: #ff8aa0; border-color: rgba(255, 93, 122, 0.45); }
.sysnode__tag--alert .tx { background: #ff5d7a; box-shadow: 0 0 7px #ff5d7a; }
@keyframes txblink { 0%, 49% { opacity: 1; } 50%, 100% { opacity: 0.12; } }

/* flexible sensor sleeve — a soft, ribbed band wrapping the limb */
.sysnode__sleeve {
  display: block; width: 52px; height: 24px; border-radius: 13px;
  border: 1.6px solid rgba(0, 229, 255, 0.85);
  background:
    repeating-linear-gradient(90deg, rgba(0, 229, 255, 0) 0 6px, rgba(0, 229, 255, 0.22) 6px 8px),
    linear-gradient(180deg, rgba(0, 229, 255, 0.16), rgba(0, 229, 255, 0.04));
  box-shadow: 0 0 14px rgba(0, 229, 255, 0.45), inset 0 0 8px rgba(0, 229, 255, 0.25);
  animation: sleeveflex 2.6s ease-in-out infinite;
}
@keyframes sleeveflex {
  0%, 100% { box-shadow: 0 0 11px rgba(0, 229, 255, 0.32), inset 0 0 7px rgba(0, 229, 255, 0.2); }
  50%      { box-shadow: 0 0 22px rgba(0, 229, 255, 0.62), inset 0 0 11px rgba(0, 229, 255, 0.38); }
}
.sysnode--arm .sysnode__sleeve { transform: rotate(-58deg); }
.sysnode--leg .sysnode__sleeve { transform: rotate(-82deg); }

/* abstract early-stroke detector on the neck — pulsing alert rings */
.sysnode--neck .sysnode__det { position: relative; display: block; width: 16px; height: 16px; }
.sysnode__core {
  position: absolute; inset: 3px; border-radius: 50%;
  background: #ff5d7a; box-shadow: 0 0 12px 2px rgba(255, 93, 122, 0.85);
  animation: strokepulse 1.4s ease-in-out infinite;
}
@keyframes strokepulse { 0%, 100% { transform: scale(1); opacity: 1; } 50% { transform: scale(1.3); opacity: 0.72; } }
.sysnode__ring {
  position: absolute; inset: 0; border-radius: 50%;
  border: 1.5px solid rgba(255, 93, 122, 0.75); animation: ping 2.2s ease-out infinite;
}
.sysnode__ring--2 { animation-delay: 1.1s; }

@media (prefers-reduced-motion: reduce) {
  .sysnode__sleeve, .sysnode__core, .sysnode__ring, .sysnode__tag .tx { animation: none; }
}

/* keep the sensors visible (and tags legible) when the figure stacks on mobile */
@media (max-width: 760px) {
  .sysnode { display: block; }
}
@media (max-width: 480px) {
  .sysnode__tag { font-size: 8px; padding: 2px 6px; letter-spacing: 0.08em; }
  .sysnode__sleeve { width: 42px; height: 20px; }
}

/* =======================================================================
   V11 — hero drag hint: an animated finger that demonstrates dragging the
   sensor toward the neck (focus -> clarity). JS positions it each frame and
   fades it out once the user takes over (.stage.is-engaged).
   ======================================================================= */
.draghint {
  position: absolute; left: 0; top: 0;
  pointer-events: none; z-index: 6;
  transition: opacity 0.45s ease;
  will-change: transform;
}
.draghint__hand {
  position: absolute; left: 5px; top: 4px;
  filter: drop-shadow(0 3px 7px rgba(0, 0, 0, 0.55));
  animation: dh-tap 1.6s ease-in-out infinite;
}
.draghint__pulse {
  position: absolute; left: 0; top: 0;
  width: 34px; height: 34px; margin: -17px;
  border-radius: 50%;
  border: 2px solid rgba(0, 229, 255, 0.75);
  animation: dh-pulse 1.6s ease-out infinite;
}
@keyframes dh-pulse {
  0%   { transform: scale(0.45); opacity: 0.9; }
  80%  { transform: scale(2.3); opacity: 0; }
  100% { opacity: 0; }
}
@keyframes dh-tap {
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(3px); }
}
.stage.is-engaged .draghint { opacity: 0; visibility: hidden; }
@media (prefers-reduced-motion: reduce) {
  .draghint__hand, .draghint__pulse { animation: none; }
}
