:root{
  /* From DESIGN_INVENTORY — HSL kept 1:1 */
  --bg:          hsl(225 30% 5%);          /* #0A0C14 */
  --surface:     hsl(222 24% 9%);          /* #111620 */
  --panel:       hsl(222 22% 11%);         /* #141920 */
  --secondary:   hsl(220 18% 14%);         /* #1A2030 */
  --muted:       hsl(220 14% 17%);         /* #202836 */
  --line:        hsl(220 14% 17% / 0.9);
  --line-soft:   hsl(220 14% 22% / 0.6);

  --fg:          hsl(210 22% 96%);         /* #F0F3F7 */
  --fg-2:        hsl(215 12% 72%);
  --fg-3:        hsl(215 12% 52%);
  --fg-4:        hsl(215 12% 34%);

  --primary:     #9400D3;                    /* Dark violet */
  --primary-hi:  #B533FF;
  --primary-soft:#9400D3 / 0.14;
  --primary-glow:#9400D3 / 0.30;

  --accent:      hsl(188 88% 56%);         /* #00E2FF */
  --accent-soft: hsl(188 88% 56% / 0.14);
  --accent-glow: hsl(185 85% 50% / 0.28);

  --pos:         hsl(142 76% 46%);         /* #22D24E */
  --warn:        hsl(38 92% 50%);          /* #F5A500 */
  --neg:         hsl(0 84% 55%);           /* #FF5555 */

  --tel-speed:    hsl(185 85% 50%);
  --tel-throttle: hsl(142 76% 46%);
  --tel-brake:    hsl(0 84% 55%);
  --tel-gear:     hsl(280 70% 60%);

  --sans: 'Space Grotesk', ui-sans-serif, system-ui, sans-serif;
  --body: 'Manrope', ui-sans-serif, system-ui, sans-serif;
  --mono: 'JetBrains Mono', ui-monospace, SFMono-Regular, Menlo, monospace;

  --maxw: 1280px;
  --rxl: 14px;
  --r2xl: 18px;
  --rfull: 999px;

  --shadow-panel: 0 18px 44px rgba(0,0,0,0.42);
  --glow-primary: 0 0 22px var(--primary-glow);
  --glow-accent:  0 0 22px var(--accent-glow);
}

*{ box-sizing: border-box; }
html,body{ margin:0; padding:0; background:var(--bg); color:var(--fg); }
html{ overflow-x: clip; }
body{
  font-family: var(--body);
  font-size: 15px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

/* subtle data-grid background */
body::before{
  content:"";
  position:fixed; inset:0;
  background-image:
    linear-gradient(to right, hsl(220 14% 22% / 0.18) 1px, transparent 1px),
    linear-gradient(to bottom, hsl(220 14% 22% / 0.18) 1px, transparent 1px);
  background-size: 72px 72px;
  background-position: center top;
  mask-image: radial-gradient(ellipse 80% 60% at 50% 0%, black 10%, transparent 70%);
  pointer-events:none; z-index: 0;
}

a{ color:inherit; text-decoration:none; }
button{ background:none; border:0; color:inherit; font:inherit; cursor:pointer; }

.container{ max-width: var(--maxw); margin: 0 auto; padding: 0 28px; position:relative; z-index:1; }
.mono{ font-family: var(--mono); font-feature-settings: "ss01","zero"; }

/* HEADINGS */
h1,h2,h3,h4{ font-family: var(--sans); margin: 0; letter-spacing: 0; font-weight:600; }
h1{ font-size: 76px; line-height: 0.98; font-weight: 500; }
h2{ font-size: 44px; line-height: 1.05; }
h3{ font-size: 24px; line-height: 1.2; }
p{ color: var(--fg-2); }

/* "KICKER" — matches Space Grotesk uppercase convention */
.kicker{
  font-family: var(--sans);
  font-size: 10px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.32em;
  color: var(--fg-3);
  display: inline-flex; align-items: center; gap: 10px;
}
.kicker::before{
  content:""; width: 18px; height: 1px; background: var(--primary);
}

/* BUTTONS — mirror real product */
.btn{
  display:inline-flex; align-items:center; gap:10px;
  font-family: var(--sans);
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  padding: 0 18px;
  height: 40px;
  border-radius: var(--rxl);
  transition: background .15s, border-color .15s, box-shadow .2s, transform .08s;
  white-space: nowrap;
  border: 1px solid transparent;
}
.btn:active{ transform: translateY(1px); }
.btn-primary{
  background: var(--primary);
  color: #fff;
  box-shadow: 0 0 0 1px hsl(282 100% 28% / 0.35) inset;
}
.btn-primary:hover{
  background: var(--primary-hi);
  box-shadow: 0 0 14px hsl(282 100% 38% / 0.24);
}
.btn-outline{
  border-color: var(--accent);
  color: var(--accent);
  background: transparent;
}
.btn-outline:hover{ background: var(--accent-soft); box-shadow: var(--glow-accent); }
.btn-ghost{
  color: var(--fg-2);
  border-color: var(--line);
  background: hsl(220 18% 14% / 0.5);
}
.btn-ghost:hover{ color: var(--fg); border-color: var(--fg-4); }
.btn-lg{ height: 46px; font-size: 12px; padding: 0 22px; }

/* Book a demo — Google Calendar iframe modal */
body.book-demo-modal-open{ overflow: hidden; }
.book-demo-modal{
  position: fixed;
  inset: 0;
  z-index: 200;
  display: grid;
  place-items: center;
  padding: 20px;
}
.book-demo-modal[hidden]{ display: none; }
.book-demo-modal__backdrop{
  position: absolute;
  inset: 0;
  background: hsl(225 30% 5% / 0.78);
  backdrop-filter: blur(6px);
}
.book-demo-modal__panel{
  position: relative;
  z-index: 1;
  width: min(100%, 720px);
  max-height: min(90vh, 820px);
  display: flex;
  flex-direction: column;
  padding: 0;
  overflow: hidden;
}
.book-demo-modal__head{
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 16px;
  border-bottom: 1px solid var(--line-soft);
}
.book-demo-modal__title{
  margin: 0;
  font-family: var(--sans);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--fg);
}
.book-demo-modal__close{
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border: 1px solid var(--line);
  border-radius: var(--rxl);
  background: hsl(220 18% 14% / 0.6);
  color: var(--fg-2);
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
  transition: color .15s, border-color .15s;
}
.book-demo-modal__close:hover{
  color: var(--fg);
  border-color: var(--fg-4);
}
.book-demo-modal__frame{
  width: 100%;
  height: min(72vh, 720px);
  border: 0;
  background: #fff;
}

/* PANEL */
.panel{
  background: hsl(222 22% 11% / 0.92);
  border: 1px solid var(--line);
  border-radius: var(--r2xl);
  box-shadow: var(--shadow-panel);
  backdrop-filter: blur(10px);
}
.panel-sub{
  background: hsl(220 18% 14% / 0.78);
  border: 1px solid var(--line-soft);
  border-radius: var(--rxl);
}

/* CHIP / PILL */
.chip{
  display:inline-flex; align-items:center; gap:8px;
  padding: 4px 10px;
  border-radius: var(--rfull);
  font-family: var(--sans);
  font-size: 10px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  border: 1px solid hsl(220 14% 30% / 0.7);
  background: hsl(220 18% 14% / 0.6);
  color: var(--fg-2);
}
.chip .dot{
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--pos);
  box-shadow: 0 0 8px var(--pos);
  animation: pulse 1.8s ease-in-out infinite;
}
.chip.chip-accent{ border-color: hsl(188 88% 56% / 0.5); color: var(--accent); }
.chip.chip-primary{ border-color: hsl(0 82% 53% / 0.5); color: var(--primary); }
@keyframes pulse { 0%,100%{opacity:1;} 50%{opacity:0.35;} }

/* ======================================================== */
/*  NAV                                                      */
/* ======================================================== */
.nav{
  position: sticky; top: 0; z-index: 100;
  background: hsl(225 30% 5% / 0.72);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color .2s;
}
.nav.scrolled{ border-bottom-color: var(--line-soft); }
.nav-inner{
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 8px 28px;
  min-height: 70px;
  display:flex; align-items:center; justify-content: space-between;
  gap: 24px;
}
.brand{ display:flex; align-items:center; gap: 12px; }
.brand-logo{
  display: block;
  width: clamp(160px, 15vw, 190px);
  max-height: 36px;
  height: auto;
  object-fit: contain;
  position: relative;
}
.brand-text{
  font-family: var(--sans);
  font-weight: 700;
  font-size: 15px;
  letter-spacing: 0.08em;
  line-height: 1;
}
.brand-text small{
  display:block;
  font-size: 8px;
  font-weight: 500;
  letter-spacing: 0.32em;
  color: var(--fg-3);
  margin-top: 4px;
  text-transform: uppercase;
}
.nav-links{
  display:flex; gap: 30px;
  font-family: var(--sans);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--fg-2);
}
.nav-links a{ transition: color .15s; }
.nav-links a:hover{ color: var(--fg); }
.nav-right{ display:flex; gap: 10px; align-items: center; }

/* ======================================================== */
/*  HERO                                                     */
/* ======================================================== */
.hero{
  padding: 84px 0 40px;
  position: relative;
}
.hero::after{
  /* ambient red glow behind mock */
  content:""; position: absolute; z-index: 0;
  left: 50%; top: 40%;
  width: 900px; height: 500px;
  transform: translateX(-30%);
  background: radial-gradient(ellipse at center, hsl(0 84% 45% / 0.18), transparent 65%);
  pointer-events: none;
}
.hero-inner{ position: relative; z-index: 1; }
.hero-top{
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 48px;
  align-items: end;
  margin-bottom: 56px;
}
.hero h1 .rule{ color: var(--primary); font-weight: 500; }
.hero h1 .soft{ color: var(--fg-3); font-weight: 500; }
.hero-sub{
  margin-top: 28px;
  max-width: 560px;
  font-size: 18px;
  color: var(--fg-2);
  line-height: 1.5;
  text-wrap: pretty;
}
.hero-ctas{ display:flex; gap: 10px; margin-top: 34px; align-items: center; }
.hero-stats{
  display: grid;
  grid-template-columns: 1fr;
  gap: 18px;
  min-width: 280px;
  font-family: var(--mono);
}
.hero-stat{
  border-left: 1px solid var(--line);
  padding: 6px 0 6px 18px;
}
.hero-stat .lbl{
  font-family: var(--sans);
  font-size: 9px;
  font-weight: 500;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--fg-3);
  margin-bottom: 4px;
}
.hero-stat .val{
  font-size: 22px;
  font-weight: 500;
  color: var(--fg);
  line-height: 1;
}
.hero-stat .val .u{ font-size: 11px; color: var(--fg-3); margin-left: 4px; letter-spacing: 0.12em;}

.hero-meta{
  display:flex; gap: 24px; flex-wrap: wrap;
  margin-top: 30px;
  font-family: var(--mono);
  font-size: 11px;
  color: var(--fg-3);
}
.hero-meta span{ display:inline-flex; align-items:center; gap: 8px; }
.hero-meta span::before{ content:"✓"; color: var(--accent); }

/* ======================================================== */
/*  PRODUCT MOCK (HERO)                                      */
/* ======================================================== */
.mock{
  background: hsl(222 22% 11% / 0.92);
  border: 1px solid var(--line);
  border-radius: var(--r2xl);
  box-shadow:
    0 40px 120px -20px rgba(0,0,0,0.7),
    0 0 0 1px hsl(188 88% 56% / 0.04) inset,
    0 0 80px -20px var(--accent-glow);
  overflow: hidden;
  position: relative;
}
.mock-chrome{
  display:flex; align-items:center; justify-content: space-between;
  height: 42px;
  padding: 0 16px;
  border-bottom: 1px solid var(--line);
  background: hsl(220 18% 8% / 0.9);
}
.mock-chrome .left{ display:flex; align-items:center; gap: 12px; font-family: var(--mono); font-size: 10px; color: var(--fg-3); }
.mock-chrome .dots{ display:flex; gap: 6px; }
.mock-chrome .dot{ width: 10px; height: 10px; border-radius: 50%; background: hsl(220 14% 22%); }
.mock-chrome .url{
  font-family: var(--mono); font-size: 11px; color: var(--fg-3);
  padding: 3px 10px;
  border: 1px solid var(--line);
  border-radius: 5px;
  background: hsl(220 18% 8%);
}
.mock-chrome .role{ font-family: var(--sans); font-size: 10px; font-weight: 600; letter-spacing: 0.18em; text-transform: uppercase; color: var(--primary); }

/* TopBar in mock */
.m-topbar{
  display:flex; align-items:center; justify-content:space-between;
  padding: 12px 16px;
  border-bottom: 1px solid var(--line-soft);
  background: hsl(222 22% 9%);
}
.m-topbar .left{ display:flex; align-items:center; gap: 10px; }
.m-topbar .brand-mini{
  font-family: var(--sans);
  font-weight: 700;
  font-size: 11px;
  letter-spacing: 0.18em;
}
.m-selectors{ display:flex; gap: 6px; }
.m-sel{
  padding: 5px 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  font-family: var(--mono); font-size: 10px;
  color: var(--fg-2);
  background: hsl(220 18% 10%);
  display:inline-flex; align-items:center; gap: 6px;
}
.m-sel .c{ color: var(--fg-3); font-size: 9px; }
.m-sel .v{ color: var(--fg); }
.m-sel::after{ content:"▾"; color: var(--fg-3); font-size: 9px; margin-left: 2px;}
.m-topbar .right{ display:flex; gap: 8px; align-items: center; }
.m-live{
  display:inline-flex; align-items: center; gap: 6px;
  font-family: var(--sans); font-size: 9px; font-weight: 600;
  letter-spacing: 0.2em; color: var(--pos);
  padding: 3px 8px;
  border: 1px solid hsl(142 76% 46% / 0.3);
  border-radius: var(--rfull);
}
.m-live .d{ width: 6px; height: 6px; border-radius: 50%; background: var(--pos); box-shadow: 0 0 8px var(--pos); animation: pulse 1.8s infinite;}
.m-avatar{
  width: 24px; height: 24px; border-radius: 50%;
  background: linear-gradient(135deg, var(--primary), hsl(0 82% 40%));
  font-family: var(--mono); font-size: 10px; color:#fff; font-weight: 600;
  display:flex; align-items:center; justify-content: center;
}

/* DataSwitcher in mock */
.m-ds{
  display:flex; gap: 6px;
  padding: 10px 16px;
  border-bottom: 1px solid var(--line-soft);
  background: hsl(222 22% 10%);
}
.m-ds-tab{
  font-family: var(--sans); font-size: 9.5px; font-weight: 600;
  letter-spacing: 0.2em; text-transform: uppercase;
  color: var(--fg-3);
  padding: 6px 12px;
  border-radius: var(--rfull);
  border: 1px solid transparent;
  display:inline-flex; align-items:center; gap: 6px;
}
.m-ds-tab.active{
  color: var(--fg);
  border-color: var(--line);
  background: hsl(220 18% 14%);
}
.m-ds-tab .dot{ width: 4px; height: 4px; border-radius: 50%; background: var(--primary); }

/* Split body */
.m-split{
  display: grid;
  grid-template-columns: 1.25fr 1fr;
  min-height: 520px;
  background: var(--bg);
}
.m-video{
  position: relative;
  border-right: 1px solid var(--line-soft);
  background: hsl(222 22% 6%);
  overflow: hidden;
}
.m-video-surface{
  position: absolute; inset: 14px 14px 58px;
  border-radius: 6px;
  background:
    radial-gradient(ellipse at 50% 30%, hsl(220 30% 18%) 0%, hsl(220 22% 8%) 70%),
    hsl(220 22% 8%);
  overflow: hidden;
}
.m-video-placeholder{
  position:absolute; inset: 0;
  background-image: repeating-linear-gradient(135deg, transparent 0 18px, hsl(220 14% 22% / 0.25) 18px 19px);
  display:flex; align-items:center; justify-content: center;
}
.m-video-placeholder .tag{
  font-family: var(--mono); font-size: 10px; color: var(--fg-3); letter-spacing: 0.2em; text-transform: uppercase;
  padding: 6px 12px;
  border: 1px dashed var(--line); border-radius: 4px;
  background: hsl(0 0% 0% / 0.4);
}
.m-hud{
  position: absolute; inset: 28px 28px 72px;
  pointer-events: none;
  font-family: var(--mono); color: var(--fg);
}
.m-hud .top{ display:flex; justify-content: space-between; gap: 10px; }
.m-hud .chip{
  padding: 5px 9px;
  background: hsl(0 0% 0% / 0.55);
  border: 1px solid hsl(255 100% 100% / 0.07);
  border-radius: 5px;
  font-family: var(--mono); font-size: 10px;
  backdrop-filter: blur(4px);
}
.m-hud .chip .k{ color: var(--fg-3); margin-right: 6px; }
.m-hud .chip.rec{ color: var(--neg); border-color: hsl(0 84% 55% / 0.4); }
.m-hud .chip.rec::before{ content:"● "; animation: pulse 1.5s infinite; }
.m-speed{
  position: absolute;
  left: 28px; bottom: 90px;
  font-family: var(--mono); color: var(--fg);
}
.m-speed .big{ font-size: 46px; line-height: 1; font-weight: 500; letter-spacing: 0; }
.m-speed .u{ font-size: 11px; color: var(--fg-3); margin-left: 5px; letter-spacing: 0.12em; }
.m-speed .lbl{ font-family: var(--sans); font-size: 8.5px; letter-spacing: 0.28em; text-transform: uppercase; color: var(--fg-3); margin-top: 6px; }
.m-speed .row{ display: flex; gap: 16px; margin-top: 4px; font-size: 10px; color: var(--fg-2); }
.m-speed .row .k{ color: var(--fg-3); }

/* Throttle/brake vertical bars on video */
.m-bars{
  position: absolute; right: 30px; bottom: 90px;
  display:flex; gap: 6px;
}
.m-bar{
  width: 10px; height: 90px;
  background: hsl(0 0% 0% / 0.4);
  border: 1px solid hsl(255 100% 100% / 0.08);
  border-radius: 2px;
  position: relative;
  display: flex; flex-direction: column; justify-content: flex-end;
}
.m-bar .fill{ width: 100%; border-radius: 1px; }
.m-bar.t .fill{ background: var(--tel-throttle); height: 94%; box-shadow: 0 0 8px var(--tel-throttle);}
.m-bar.b .fill{ background: var(--tel-brake); height: 6%; }
.m-bar .k{
  position: absolute; bottom: -14px; left: 50%; transform: translateX(-50%);
  font-family: var(--sans); font-size: 8px; letter-spacing: 0.2em; color: var(--fg-3);
}

/* Video timeline (below) */
.m-timeline{
  position: absolute; left: 14px; right: 14px; bottom: 14px;
  height: 40px;
  background: hsl(220 18% 10%);
  border: 1px solid var(--line);
  border-radius: 4px;
  padding: 6px 10px;
  display: flex; align-items: center; gap: 8px;
}
.m-timeline .play{
  width: 20px; height: 20px; border-radius: 50%;
  background: var(--primary);
  display:flex; align-items:center; justify-content: center;
  color:#fff; font-size: 9px;
  box-shadow: var(--glow-primary);
}
.m-timeline .laps{
  flex: 1; height: 6px; background: hsl(220 18% 14%);
  border-radius: 2px;
  display: flex; gap: 1px;
  position: relative;
  overflow: hidden;
}
.m-timeline .lap{
  flex: 1; background: hsl(220 14% 22%);
}
.m-timeline .lap.best{ background: var(--sig-purple, #B366FF); }
.m-timeline .lap.good{ background: var(--tel-throttle); }
.m-timeline .lap.current{ background: var(--primary); box-shadow: 0 0 6px var(--primary); }
.m-timeline .tc{
  font-family: var(--mono); font-size: 10px; color: var(--fg-3);
  min-width: 56px; text-align: right;
}

/* TELEMETRY panel */
.m-tel{
  display:flex; flex-direction: column;
  background: hsl(222 22% 9%);
}
.m-tel-head{
  display:flex; align-items:center; justify-content: space-between;
  padding: 10px 16px;
  border-bottom: 1px solid var(--line-soft);
}
.m-tel-tabs{ display:flex; gap: 2px; }
.m-tel-tab{
  font-family: var(--sans); font-size: 9.5px; font-weight: 600;
  letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--fg-3);
  padding: 6px 10px;
  border-radius: 4px;
}
.m-tel-tab.active{ color: var(--fg); background: hsl(220 18% 14%); }
.m-tel-meta{ font-family: var(--mono); font-size: 10px; color: var(--fg-3); }

.m-tel-chart{
  position: relative;
  padding: 14px 16px;
  border-bottom: 1px dashed var(--line-soft);
}
.m-tel-chart .head{
  display:flex; justify-content: space-between; align-items: baseline;
  margin-bottom: 6px;
}
.m-tel-chart .head .lbl{
  font-family: var(--sans); font-size: 9px; letter-spacing: 0.24em; text-transform: uppercase;
  color: var(--fg-3);
}
.m-tel-chart .head .v{ font-family: var(--mono); font-size: 14px; color: var(--fg); font-weight: 500; }
.m-tel-chart .head .u{ font-family: var(--mono); font-size: 10px; color: var(--fg-3); margin-left: 3px;}
.m-tel-chart svg{ display:block; width: 100%; height: 46px; }
.m-tel-chart.tall svg{ height: 68px; }

.m-playhead{
  position: absolute; top: 0; bottom: 0; left: 44%;
  width: 1px;
  background: var(--accent);
  box-shadow: 0 0 6px var(--accent);
  pointer-events: none;
}

/* Sample readout */
.m-sample{
  display:grid; grid-template-columns: repeat(6, 1fr);
  gap: 1px;
  background: var(--line-soft);
  border-top: 1px solid var(--line);
  margin-top: auto;
}
.m-sample .cell{
  background: hsl(222 22% 9%);
  padding: 10px 12px;
}
.m-sample .k{
  font-family: var(--sans); font-size: 8.5px; letter-spacing: 0.24em; text-transform: uppercase;
  color: var(--fg-3); margin-bottom: 4px;
}
.m-sample .v{ font-family: var(--mono); font-size: 13px; font-weight: 500; }
.m-sample .cell.speed .v{ color: var(--tel-speed); }
.m-sample .cell.throttle .v{ color: var(--tel-throttle); }
.m-sample .cell.brake .v{ color: var(--tel-brake); }
.m-sample .cell.gear .v{ color: var(--tel-gear); }

/* Floating anno tags on mock */
.anno{
  position: absolute;
  font-family: var(--mono); font-size: 10px;
  color: var(--fg-2);
  pointer-events: none;
  z-index: 5;
}
.anno .label{
  padding: 4px 9px;
  background: hsl(222 22% 11% / 0.94);
  border: 1px solid var(--accent);
  border-radius: 4px;
  color: var(--accent);
  white-space: nowrap;
  box-shadow: var(--glow-accent);
}
.anno.primary .label{ border-color: var(--primary); color: var(--primary); box-shadow: var(--glow-primary); }

/* ======================================================== */
/*  LOGO STRIP                                              */
/* ======================================================== */
.logos{
  border-top: 1px solid var(--line-soft);
  border-bottom: 1px solid var(--line-soft);
  padding: 28px 0;
  margin-top: 80px;
}
.logos-inner{
  display:flex; justify-content: space-between; align-items: center; gap: 24px;
  flex-wrap: wrap;
}
.logos-label{
  font-family: var(--sans); font-size: 10px;
  font-weight: 500; letter-spacing: 0.28em; text-transform: uppercase;
  color: var(--fg-3);
}
.logo-row{ display:flex; gap: 42px; align-items: center; flex-wrap: wrap; }
.l-item{
  font-family: var(--sans); font-weight: 700;
  font-size: 14px; letter-spacing: 0.1em;
  color: var(--fg-3);
  display:flex; align-items: center; gap: 8px;
}
.l-item svg{ opacity: 0.8; }
.l-item-logo{
  transition: opacity .15s ease;
}
.l-item-logo:hover{
  opacity: 0.9;
}
.l-item-logo img{
  display: block;
  height: 80px;
  width: auto;
  object-fit: contain;
}

/* ======================================================== */
/*  PROBLEM                                                  */
/* ======================================================== */
section{ padding: 110px 0; position: relative; z-index: 1; }
.section-head{
  display:grid; grid-template-columns: 5fr 7fr; gap: 64px;
  align-items: end;
  margin-bottom: 56px;
}
.section-head .left .kicker{ margin-bottom: 18px; }
.section-head p{ font-size: 17px; max-width: 54ch; }

.prob-quote{
  font-family: var(--sans);
  font-size: 34px;
  font-weight: 500;
  line-height: 1.25;
  letter-spacing: 0;
  color: var(--fg);
  max-width: 900px;
  text-wrap: balance;
  margin-bottom: 72px;
}
.prob-quote .hl{ color: var(--primary); }
.prob-quote .strike{
  color: var(--fg-3);
  text-decoration: line-through;
  text-decoration-thickness: 2px;
  text-decoration-color: var(--primary);
}

.prob-flow{
  display: grid;
  grid-template-columns: 1.2fr auto 0.9fr;
  gap: 32px;
  align-items: center;
}
.prob-before{
  display:grid; grid-template-columns: repeat(2, 1fr);
  gap: 10px;
}
.prob-card{
  background: hsl(220 18% 14% / 0.4);
  border: 1px solid var(--line-soft);
  border-radius: var(--rxl);
  padding: 18px;
  position: relative;
}
.prob-card .name{
  font-family: var(--sans); font-size: 11px; font-weight: 600;
  letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--fg-2);
  margin-bottom: 6px;
}
.prob-card .desc{
  font-family: var(--mono); font-size: 11px; color: var(--fg-3); line-height: 1.45;
}
.prob-card::after{
  content:""; position:absolute; left: 14px; right: 14px; top: 40%;
  height: 1px; background: var(--primary); opacity: 0.6;
}
.prob-arrow{
  display: flex; flex-direction: column; align-items: center; gap: 10px;
  font-family: var(--sans); font-size: 10px; font-weight: 600;
  letter-spacing: 0.28em; text-transform: uppercase;
  color: var(--accent);
}
.prob-arrow .line{
  width: 1px; height: 60px;
  background: linear-gradient(to bottom, transparent, var(--accent), transparent);
}
.prob-arrow .txt{ writing-mode: vertical-rl; transform: rotate(180deg); }
.prob-arrow .arr{
  font-family: var(--mono); font-size: 14px; color: var(--accent);
}

.prob-after{
  background: linear-gradient(180deg, hsl(188 88% 56% / 0.06), hsl(222 22% 11% / 0.8));
  border: 1px solid hsl(188 88% 56% / 0.3);
  border-radius: var(--r2xl);
  padding: 26px;
  position: relative;
  box-shadow: var(--glow-accent);
}
.prob-after .label{
  font-family: var(--sans); font-size: 10px; font-weight: 600;
  letter-spacing: 0.24em; text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 14px;
}
.prob-after h3{
  font-size: 22px; font-weight: 500;
  letter-spacing: 0;
  margin-bottom: 10px;
}
.prob-after p{
  font-family: var(--mono); font-size: 11.5px; color: var(--fg-2); line-height: 1.55; margin: 0;
}
.prob-after .tag{
  position:absolute; top: -10px; right: 18px;
  font-family: var(--mono); font-size: 10px;
  color: var(--accent);
  background: var(--bg);
  padding: 0 8px;
}

/* ======================================================== */
/*  FEATURES                                                 */
/* ======================================================== */
.features{ border-top: 1px solid var(--line-soft); }
.feature{
  display:grid; grid-template-columns: 5fr 7fr;
  gap: 72px; align-items: center;
  padding: 70px 0;
  border-top: 1px dashed var(--line-soft);
}
.feature:first-of-type{ border-top: 0; padding-top: 0; }
.feature.rev{ grid-template-columns: 7fr 5fr; }
.feature.rev .f-copy{ order: 2; }
.feature.rev .f-viz{ order: 1; }
.f-copy .kicker{ margin-bottom: 18px; }
.f-copy h3{
  font-size: 34px;
  font-weight: 500;
  letter-spacing: 0;
  line-height: 1.08;
  margin-bottom: 18px;
  text-wrap: balance;
}
.f-copy p{ font-size: 16px; color: var(--fg-2); max-width: 48ch; line-height: 1.55; }
.f-specs{
  margin-top: 24px;
  display: flex; flex-direction: column;
  gap: 10px;
}
.f-spec{
  display: grid; grid-template-columns: 22px 1fr;
  gap: 12px; align-items: baseline;
  font-size: 14px; color: var(--fg);
}
.f-spec::before{
  content:"→"; font-family: var(--mono); color: var(--accent); font-size: 13px;
}

/* feature viz cards */
.viz-card{
  background: hsl(222 22% 11% / 0.94);
  border: 1px solid var(--line);
  border-radius: var(--r2xl);
  overflow: hidden;
  box-shadow: 0 20px 60px -30px rgba(0,0,0,0.6);
}
.viz-head{
  display:flex; justify-content: space-between; align-items: center;
  padding: 10px 14px;
  background: hsl(222 22% 9%);
  border-bottom: 1px solid var(--line-soft);
  font-family: var(--sans); font-size: 9.5px; font-weight: 600;
  letter-spacing: 0.2em; text-transform: uppercase;
  color: var(--fg-3);
}
.viz-head .t{ color: var(--fg); min-width: 0; }
.viz-body{ padding: 18px; min-width: 0; }
.viz-body--flush{ padding: 0; }

/* Split-view feature mock */
.viz-split-pane{
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  min-width: 0;
}
.viz-split-pane__video{
  position: relative;
  aspect-ratio: 16 / 10;
  min-width: 0;
  background: linear-gradient(160deg, hsl(220 30% 15%), hsl(220 22% 7%));
  border-right: 1px solid var(--line-soft);
}
.viz-split-pane__charts{
  position: relative;
  min-width: 0;
  padding: 18px;
}
.viz-split-pane__charts > div:first-child{
  position: absolute;
  top: 6px;
  bottom: 6px;
  left: 60%;
  width: 1px;
  background: var(--accent);
  box-shadow: 0 0 6px var(--accent);
}
.viz-split-pane__charts .viz-chart-lbl{
  font-family: var(--sans);
  font-size: 9px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--fg-3);
  margin-bottom: 6px;
  display: flex;
  justify-content: space-between;
  gap: 8px;
  min-width: 0;
}
.viz-split-pane__charts .viz-chart-lbl + svg{
  margin-bottom: 0;
}
.viz-split-pane__charts .viz-chart-lbl ~ .viz-chart-lbl{
  margin-top: 14px;
}
.viz-chart-val{
  font-family: var(--mono);
  letter-spacing: 0;
  flex-shrink: 0;
}
.viz-split-pane__charts svg{
  width: 100%;
  max-width: 100%;
  height: auto;
  display: block;
}
.viz-playback-bar{
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
  padding: 12px 18px;
  border-top: 1px solid var(--line-soft);
  font-family: var(--mono);
  font-size: 10px;
  color: var(--fg-3);
}
.viz-playback-bar > div{
  flex: 1;
  min-width: 0;
  height: 3px;
  background: hsl(220 18% 14%);
  border-radius: 2px;
  position: relative;
}
.f-viz{ min-width: 0; }

/* Lap compare viz */
.lap-picker{
  display:grid; grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-bottom: 18px;
}
.lap-sel{
  padding: 10px 12px;
  border: 1px solid var(--line-soft);
  border-radius: 8px;
  background: hsl(220 18% 14% / 0.6);
  display:flex; flex-direction: column; gap: 4px;
}
.lap-sel .row{ display:flex; justify-content: space-between; align-items: center; }
.lap-sel .driver{ font-family: var(--mono); font-size: 10px; color: var(--fg-3); }
.lap-sel .time{ font-family: var(--mono); font-size: 18px; color: var(--fg); letter-spacing: 0; font-weight: 500;}
.lap-sel .meta{ font-family: var(--mono); font-size: 10px; color: var(--fg-3); }
.lap-sel.ref{ border-color: hsl(188 88% 56% / 0.4); }
.lap-sel.cmp{ border-color: hsl(38 92% 50% / 0.4); }
.lap-sel .sw{ width: 10px; height: 10px; border-radius: 2px; display:inline-block; margin-right: 6px; vertical-align: -1px; }
.lap-sel.ref .sw{ background: var(--accent); }
.lap-sel.cmp .sw{ background: var(--warn); }

.chart-block{
  padding: 10px 0 0;
  border-top: 1px solid var(--line-soft);
}
.chart-block .lbl{
  display:flex; justify-content: space-between;
  font-family: var(--sans); font-size: 9px; letter-spacing: 0.2em; text-transform: uppercase;
  color: var(--fg-3);
  margin-bottom: 4px;
}
.chart-block .lbl b{ color: var(--fg-2); font-weight: 500; font-family: var(--mono); letter-spacing: 0; }
.chart-block svg{ width: 100%; display: block; }
.delta-callout{
  margin-top: 8px;
  padding: 8px 10px;
  background: hsl(0 84% 55% / 0.08);
  border-left: 2px solid var(--neg);
  font-family: var(--mono); font-size: 11px;
  color: var(--neg);
  display:flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 4px 10px;
  min-width: 0;
}
.delta-callout.pos{
  background: hsl(142 76% 46% / 0.08);
  border-color: var(--pos); color: var(--pos);
}
.delta-callout .meta{ color: var(--fg-3); }

/* Track map viz */
.track-head{
  padding: 14px 16px 0;
  display:flex; justify-content: space-between; align-items: center;
  font-family: var(--mono); font-size: 11px; color: var(--fg-2);
}
.track-sectors{
  display:flex; gap: 6px;
}
.sector{
  font-family: var(--mono); font-size: 10px;
  padding: 3px 8px;
  border: 1px solid var(--line-soft);
  border-radius: 4px;
  color: var(--fg-3);
}
.sector.active{
  background: var(--primary); color: #fff; border-color: var(--primary);
  box-shadow: var(--glow-primary);
}
.track-svg-wrap{ padding: 14px 10px 10px; }
.track-legend{
  border-top: 1px solid var(--line-soft);
  padding: 12px 16px;
  display:grid; grid-template-columns: repeat(4, 1fr);
  gap: 10px;
}
.track-legend .cell{
  font-family: var(--mono); font-size: 10px; color: var(--fg-3);
}
.track-legend .cell b{
  display:block; color: var(--fg); font-size: 15px; font-weight: 500;
  letter-spacing: 0; margin-top: 2px;
}
.track-legend .cell.best b{ color: var(--sig-purple, #B366FF); }

/* ======================================================== */
/*  ROLES                                                    */
/* ======================================================== */
.roles{
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
  margin-top: 56px;
}
.role{
  background: hsl(222 22% 11% / 0.88);
  border: 1px solid var(--line);
  border-radius: var(--r2xl);
  padding: 26px;
  position: relative;
  min-height: 340px;
  display:flex; flex-direction: column;
  transition: border-color .2s, transform .2s;
}
.role:hover{ border-color: hsl(188 88% 56% / 0.5); transform: translateY(-2px); }
.role-head{
  display:flex; justify-content: space-between; align-items: flex-start;
  margin-bottom: 24px;
}
.role-num{
  font-family: var(--mono); font-size: 11px;
  color: var(--fg-4); letter-spacing: 0.12em;
}
.role-badge{
  font-family: var(--sans); font-size: 9px;
  font-weight: 600; letter-spacing: 0.18em; text-transform: uppercase;
  padding: 3px 8px;
  border-radius: var(--rfull);
  border: 1px solid hsl(0 82% 53% / 0.5);
  color: var(--primary);
}
.role.eng .role-badge{ border-color: hsl(188 88% 56% / 0.5); color: var(--accent); }
.role.drv .role-badge{ border-color: hsl(142 76% 46% / 0.5); color: var(--pos); }
.role.coa .role-badge{ border-color: hsl(38 92% 50% / 0.5); color: var(--warn); }

.role h3{
  font-size: 22px; font-weight: 500; letter-spacing: 0;
  margin-bottom: 8px;
}
.role p{ font-size: 14px; color: var(--fg-2); line-height: 1.5; margin: 0 0 24px; }
.role-perms{
  margin-top: auto;
  padding-top: 18px;
  border-top: 1px solid var(--line-soft);
  display: flex; flex-direction: column; gap: 8px;
}
.role-perms .perm{
  display: grid; grid-template-columns: 14px 1fr;
  gap: 10px; align-items: baseline;
  font-family: var(--mono); font-size: 11px;
  color: var(--fg-2);
}
.role-perms .perm.on::before{ content:"●"; color: var(--pos); }
.role-perms .perm.off{ color: var(--fg-4); }
.role-perms .perm.off::before{ content:"○"; color: var(--fg-4); }

/* ======================================================== */
/*  HOW IT WORKS                                             */
/* ======================================================== */
.how{
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  margin-top: 56px;
  border: 1px solid var(--line);
  border-radius: var(--r2xl);
  overflow: hidden;
  background: hsl(222 22% 10% / 0.6);
}
.step{
  padding: 36px 28px 28px;
  border-right: 1px solid var(--line-soft);
  position: relative;
}
.step:last-child{ border-right: 0; }
.step-head{
  display:flex; justify-content: space-between; align-items: center;
  margin-bottom: 20px;
}
.step-n{
  font-family: var(--mono); font-size: 11px;
  color: var(--primary); letter-spacing: 0.14em;
}
.step-n::before{
  content:""; display:inline-block; width: 16px; height: 1px;
  background: var(--primary); vertical-align: middle; margin-right: 10px;
}
.step-ico{
  width: 32px; height: 32px;
  border: 1px solid var(--line);
  border-radius: 8px;
  display:flex; align-items:center; justify-content: center;
  color: var(--accent);
}
.step h3{ font-size: 20px; font-weight: 500; letter-spacing: 0; margin-bottom: 10px; }
.step p{ font-size: 14px; color: var(--fg-2); margin: 0 0 22px; line-height: 1.55; }
.step-viz{
  background: var(--bg);
  border: 1px solid var(--line-soft);
  border-radius: 8px;
  padding: 14px;
  min-height: 130px;
  display: flex; flex-direction: column; gap: 8px;
  font-family: var(--mono); font-size: 10.5px;
  color: var(--fg-3);
  justify-content: center;
}
.step-viz .row{
  display:flex; justify-content: space-between; align-items: center;
  padding: 6px 0;
  border-bottom: 1px solid var(--line-soft);
}
.step-viz .row:last-child{ border-bottom: 0; }
.step-viz .k{ color: var(--fg-3); }
.step-viz .v{ color: var(--fg-2); }
.step-viz .v.pos{ color: var(--pos); }
.step-viz .v.warn{ color: var(--warn); }
.step-viz .v.tel{ color: var(--accent); }
.step-viz .prog{
  display:grid; grid-template-columns: 80px 1fr auto; gap: 10px; align-items: center;
}
.step-viz .prog .bar{
  height: 4px; background: hsl(220 18% 14%); border-radius: 2px;
  position: relative;
}
.step-viz .prog .bar::after{
  content:""; position:absolute; left:0; top: 0; bottom: 0; width: 76%;
  background: var(--primary);
  border-radius: 2px;
  box-shadow: 0 0 6px var(--primary);
}

/* ======================================================== */
/*  TRUST                                                    */
/* ======================================================== */
.trust{
  display: grid; grid-template-columns: 5fr 7fr;
  gap: 72px;
  align-items: start;
}
.trust-grid{
  display: grid; grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}
.trust-card{
  background: hsl(222 22% 11% / 0.88);
  border: 1px solid var(--line);
  border-radius: var(--rxl);
  padding: 22px;
}
.trust-card .ico{
  width: 32px; height: 32px;
  border: 1px solid var(--line);
  border-radius: 6px;
  display: flex; align-items: center; justify-content: center;
  color: var(--primary);
  margin-bottom: 14px;
}
.trust-card h4{
  font-family: var(--sans); font-size: 14px; font-weight: 600;
  letter-spacing: 0; margin-bottom: 6px;
}
.trust-card p{ font-size: 13px; color: var(--fg-2); margin: 0; line-height: 1.5; }

.trust-specs{
  margin-top: 20px;
  border-top: 1px solid var(--line-soft);
  padding-top: 18px;
  display: flex; gap: 22px; flex-wrap: wrap;
  font-family: var(--mono); font-size: 11px;
  color: var(--fg-3);
}
.trust-specs span{ display:inline-flex; align-items:center; gap: 8px; }
.trust-specs span::before{ content:"▪"; color: var(--accent); }

/* ======================================================== */
/*  CTA                                                      */
/* ======================================================== */
.cta{
  padding: 120px 0;
  text-align: center;
  position: relative;
  overflow: hidden;
  border-top: 1px solid var(--line-soft);
}
.cta::before{
  content:"";
  position: absolute; inset: 0;
  background:
    radial-gradient(ellipse 60% 80% at 50% 40%, hsl(0 84% 45% / 0.18), transparent 70%),
    radial-gradient(ellipse 60% 80% at 50% 80%, hsl(188 88% 56% / 0.08), transparent 70%);
  pointer-events: none;
}
.cta h2{
  position: relative;
  font-size: 64px;
  letter-spacing: 0;
  line-height: 1;
  margin: 0 auto 18px;
  max-width: 18ch;
  font-weight: 500;
  text-wrap: balance;
}
.cta h2 .rule{ color: var(--primary); }
.cta p{
  position: relative;
  font-size: 17px;
  color: var(--fg-2);
  max-width: 48ch;
  margin: 0 auto 36px;
}
.cta-actions{
  position: relative;
  display:flex; gap: 12px; justify-content: center;
}
.cta-meta{
  margin-top: 40px;
  font-family: var(--mono); font-size: 11px; color: var(--fg-3);
  position: relative;
}

/* ======================================================== */
/*  FOOTER                                                   */
/* ======================================================== */
footer{
  border-top: 1px solid var(--line-soft);
  padding: 40px 0 36px;
  font-family: var(--mono); font-size: 11px; color: var(--fg-3);
}
.foot-inner{
  display:flex; justify-content: space-between; align-items: center;
  flex-wrap: wrap; gap: 20px;
}
.foot-links{ display: flex; gap: 24px; }
.foot-links a:hover{ color: var(--fg); }
.foot-social{
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.foot-social svg{
  width: 16px;
  height: 16px;
  opacity: 0.9;
}

/* ======================================================== */
/*  LEGAL / CONTENT PAGES                                    */
/* ======================================================== */
.legal-page{
  padding: 88px 0 80px;
}
.legal-content{
  max-width: 900px;
  margin: 0 auto;
  background: hsl(222 22% 11% / 0.72);
  border: 1px solid var(--line);
  border-radius: var(--r2xl);
  box-shadow: var(--shadow-panel);
  backdrop-filter: blur(8px);
  padding: 30px;
}
.legal-content h1{
  color: var(--primary);
  margin-bottom: 20px;
}
.legal-links{
  margin-top: 36px;
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  font-family: var(--mono);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
}

/* ======================================================== */
/*  RESPONSIVE GUARDRAILS                                    */
/* ======================================================== */
@media (max-width: 1080px){
  h1{ font-size: 62px; }
  h2{ font-size: 38px; }
  h3{ font-size: 22px; }
  .nav-inner{ min-height: 66px; }
  .hero-top{ grid-template-columns: 1fr; }
  .hero-stats{ grid-template-columns: repeat(3, 1fr); }
  .hero-stat{ border: 0; padding: 0; }
  .mock-chrome .role{ display: none; }
  .m-topbar{ align-items: flex-start; gap: 12px; }
  .m-topbar .left{ min-width: 0; flex: 1; flex-wrap: wrap; }
  .m-selectors,
  .m-ds,
  .m-tel-tabs{
    min-width: 0;
    overflow-x: auto;
    scrollbar-width: none;
  }
  .m-selectors::-webkit-scrollbar,
  .m-ds::-webkit-scrollbar,
  .m-tel-tabs::-webkit-scrollbar{ display: none; }
  .m-split{ grid-template-columns: 1fr; }
  .m-video{ border-right: 0; border-bottom: 1px solid var(--line-soft); min-height: 380px; }
  .m-sample{ grid-template-columns: repeat(3, 1fr); }
  .section-head{ grid-template-columns: 1fr; gap: 28px; }
  .prob-flow{ grid-template-columns: 1fr; }
  .prob-arrow{ flex-direction: row; }
  .prob-arrow .line{ width: 60px; height: 1px; background: linear-gradient(to right, transparent, var(--accent), transparent); }
  .prob-arrow .txt{ writing-mode: initial; transform: none; }
  .feature, .feature.rev{ grid-template-columns: 1fr; gap: 36px; }
  .feature > .f-copy,
  .feature > .f-viz{ min-width: 0; }
  .feature.rev .f-copy{ order: 1; }
  .feature.rev .f-viz{ order: 2; }
  .viz-head{ flex-wrap: wrap; gap: 6px 12px; }
  .roles{ grid-template-columns: repeat(2, 1fr); }
  .how{ grid-template-columns: 1fr; }
  .step{ border-right: 0; border-bottom: 1px solid var(--line-soft); }
  .trust{ grid-template-columns: 1fr; gap: 32px; }
  .nav-links{ display: none; }
  .prob-quote,
  .f-copy h3{ font-size: 30px; }
  .cta h2{ font-size: 54px; }
}
@media (max-width: 640px){
  h1{ font-size: 42px; }
  h2{ font-size: 30px; }
  h3{ font-size: 20px; }
  .container{ padding: 0 18px; }
  .nav-inner{
    padding: 8px 18px;
    gap: 14px;
  }
  .brand-logo{
    width: clamp(138px, 44vw, 166px);
    max-height: 32px;
  }
  .nav-right{ gap: 8px; }
  .nav-right .btn-ghost{
    display: inline-flex;
    height: 36px;
    padding: 0 12px;
    font-size: 10px;
    letter-spacing: 0.12em;
  }
  .nav-right .btn-primary{ height: 36px; padding: 0 13px; font-size: 10px; letter-spacing: 0.12em; }
  .hero{ padding: 54px 0 28px; }
  .hero::after{ width: 520px; height: 360px; top: 28%; }
  .hero-top{ gap: 34px; margin-bottom: 38px; }
  .hero-sub{ font-size: 16px; margin-top: 22px; }
  .hero-ctas{ margin-top: 28px; }
  .hero-stats{
    grid-template-columns: 1fr;
    gap: 12px;
    min-width: 0;
  }
  .hero-stat{
    border-left: 1px solid var(--line);
    padding: 4px 0 4px 14px;
  }
  .mock{ border-radius: 12px; margin-inline: -10px; }
  .mock-chrome{ height: 36px; padding: 0 10px; }
  .mock-chrome .dots{ gap: 4px; }
  .mock-chrome .dot{ width: 8px; height: 8px; }
  .mock-chrome .url{ display: none; }
  .m-topbar{ padding: 10px; }
  .m-topbar .right .chip{ display: none; }
  .m-selectors{ width: 100%; }
  .m-sel{ flex: 0 0 auto; padding: 5px 8px; }
  .m-ds{ padding: 8px 10px; }
  .m-ds-tab{ flex: 0 0 auto; padding: 5px 9px; letter-spacing: 0.12em; }
  .m-video{ min-height: 310px; }
  .m-hud{ inset: 16px 14px 62px; }
  .m-hud .top{ align-items: flex-start; }
  .m-hud .top > div:first-child{ flex-wrap: wrap; }
  .m-hud .chip{ font-size: 9px; padding: 4px 7px; }
  .m-speed{ left: 16px; bottom: 74px; }
  .m-speed .big{ font-size: 36px; }
  .m-bars{ right: 18px; bottom: 74px; }
  .m-bar{ height: 72px; }
  .m-timeline{ left: 10px; right: 10px; bottom: 10px; padding: 6px 8px; }
  .m-timeline .tc{ display: none; }
  .anno{ display: none; }
  .m-tel-head{ align-items: flex-start; gap: 10px; padding: 10px; }
  .m-tel-tabs{ flex: 1; }
  .m-tel-tab{ flex: 0 0 auto; padding: 5px 8px; letter-spacing: 0.12em; }
  .m-tel-meta{ white-space: nowrap; padding-top: 5px; }
  .m-tel-chart{ padding: 12px 10px; }
  .m-sample{ grid-template-columns: repeat(2, 1fr); }
  .logos{ margin-top: 46px; padding: 22px 0; }
  .logos-inner{ align-items: flex-start; }
  .logo-row{ gap: 18px; }
  .l-item-logo img{
    height: 80px;
  }
  section{ padding: 72px 0; }
  .section-head{ margin-bottom: 38px; }
  .prob-quote{ margin-bottom: 44px; }
  .prob-before,
  .lap-picker,
  .trust-grid,
  .track-legend{ grid-template-columns: 1fr; }
  .prob-after{ padding: 22px; }
  .feature{ padding: 52px 0; }
  .features{ overflow-x: clip; }
  .viz-card{ max-width: 100%; }
  .viz-head{
    flex-direction: column;
    align-items: flex-start;
  }
  .viz-head span{
    max-width: 100%;
    white-space: normal;
    letter-spacing: 0.14em;
  }
  .viz-split-pane{ grid-template-columns: 1fr; }
  .viz-split-pane__video{
    border-right: 0;
    border-bottom: 1px solid var(--line-soft);
  }
  .viz-split-pane__charts{ padding: 14px; }
  .viz-split-pane__charts .viz-chart-lbl{
    letter-spacing: 0.12em;
    font-size: 8px;
  }
  .viz-playback-bar{ padding: 10px 14px; gap: 8px; }
  .delta-callout{
    flex-direction: column;
    align-items: flex-start;
  }
  .chart-block .lbl{
    flex-wrap: wrap;
    gap: 4px 8px;
  }
  .chart-block .lbl b{ font-size: 10px; }
  .lap-sel .time{ font-size: 16px; }
  .lap-sel .meta{ line-height: 1.35; }
  .viz-body{ padding: 14px; }
  .track-head{ flex-direction: column; align-items: flex-start; gap: 10px; }
  .roles{ grid-template-columns: 1fr; }
  .role{ min-height: 0; padding: 22px; }
  .step{ padding: 28px 22px 24px; }
  .step-viz .prog{ grid-template-columns: 1fr; gap: 6px; }
  .cta{ padding: 84px 0; }
  .prob-quote{ font-size: 24px; }
  .f-copy h3{ font-size: 28px; }
  .cta h2{ font-size: 40px; }
  .cta-actions{ flex-direction: column; align-items: stretch; }
  .cta-actions .btn{ justify-content: center; }
  .foot-inner{
    align-items: flex-start;
    gap: 12px;
  }
  .foot-links{
    display: flex;
    flex-wrap: wrap;
    gap: 12px 16px;
  }
  .legal-content{
    padding: 24px 18px;
  }
  .roles{ grid-template-columns: 1fr; }
}

/* ======================================================== */
/*  SCROLL ANIMATIONS                                        */
/* ======================================================== */
@media (prefers-reduced-motion: no-preference){
  .reveal{
    opacity: 0;
    transform: translateY(28px);
    transition: opacity 0.7s cubic-bezier(0.22, 0.61, 0.36, 1), transform 0.7s cubic-bezier(0.22, 0.61, 0.36, 1);
    will-change: opacity, transform;
  }
  .reveal.r-left{ transform: translateX(-32px) translateY(0); }
  .reveal.r-right{ transform: translateX(32px) translateY(0); }
  .reveal.r-scale{ transform: translateY(20px) scale(0.985); }
  .reveal.r-fade{ transform: none; }
  .reveal.in{
    opacity: 1;
    transform: translateX(0) translateY(0) scale(1);
  }
  /* stagger via index var */
  .reveal[style*="--i"]{
    transition-delay: calc(var(--i, 0) * 70ms);
  }

  /* Hero mock: extra theatrics on first paint */
  .mock.reveal{
    opacity: 0;
    transform: translateY(40px) scale(0.98);
    transition: opacity 0.9s ease-out, transform 0.9s cubic-bezier(0.16, 0.8, 0.32, 1);
  }
  .mock.reveal.in{
    opacity: 1;
    transform: translateY(0) scale(1);
  }
  /* Telemetry trace draw-on */
  .mock .m-tel-chart svg polyline{
    stroke-dasharray: 1200;
    stroke-dashoffset: 1200;
    transition: stroke-dashoffset 1.6s ease-out 0.4s;
  }
  .mock.in .m-tel-chart svg polyline{
    stroke-dashoffset: 0;
  }

  /* Anchor smooth scroll */
  html{ scroll-behavior: smooth; scroll-padding-top: 80px; }

  /* Anchor target flash */
  section:target h2{
    animation: anchor-flash 1.2s ease-out;
  }
  @keyframes anchor-flash {
    0%   { color: var(--primary); text-shadow: 0 0 24px var(--primary-glow); }
    100% { color: inherit; text-shadow: none; }
  }
}
