/* Gropp Flow — landing page */
:root {
  /* Light theme — white base, blue primary, lime secondary */
  --ink: oklch(0.20 0.04 250);            /* deep navy text */
  --ink-2: oklch(0.97 0.008 240);         /* off-white panel */
  --ink-3: oklch(0.93 0.012 240);         /* slightly darker panel */
  --line: oklch(0.86 0.02 240);           /* visible border */
  --line-soft: oklch(0.92 0.012 240);     /* subtle divider */
  --bone: oklch(0.99 0.005 240);          /* page bg white */
  --fog: oklch(0.42 0.025 250);           /* secondary text */
  --mist: oklch(0.55 0.03 250);           /* tertiary text */
  --accent: oklch(0.55 0.18 245);         /* primary blue */
  --accent-ink: oklch(0.99 0.005 240);    /* readable on blue */
  --accent-2: oklch(0.82 0.18 130);       /* lime secondary */
  --warn: oklch(0.68 0.16 50);
  --bg: var(--bone);
  --fg: var(--ink);

  --font-display: "Geist", "Inter", -apple-system, system-ui, sans-serif;
  --font-mono: "Geist Mono", "JetBrains Mono", ui-monospace, monospace;

  --radius: 4px;
  --gutter: clamp(20px, 3vw, 56px);
}

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

html, body {
  background: var(--bg);
  color: var(--fg);
  font-family: var(--font-display);
  font-feature-settings: "ss01", "cv11";
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

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

.mono { font-family: var(--font-mono); font-feature-settings: "ss01"; }

.container {
  max-width: 1480px;
  margin: 0 auto;
  padding: 0 var(--gutter);
}

.eyebrow {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--mist);
  display: inline-flex;
  align-items: center;
  gap: 10px;
}
.eyebrow::before {
  content: "";
  width: 18px;
  height: 1px;
  background: var(--accent);
}

/* === NAV === */
.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: color-mix(in oklch, var(--bone), transparent 18%);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line-soft);
}
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}
.brand {
  display: flex;
  align-items: flex-end;
  gap: 8px;
  gap: 10px;
  font-weight: 600;
  letter-spacing: -0.01em;
}
.brand-logo {
  height: 28px;
  width: auto;
  display: block;
}
.brand-sub {
  font-size: 9.5px;
  letter-spacing: 0.12em;
  text-transform: lowercase;
  color: oklch(0.40 0.02 250);
  background: oklch(0.92 0.06 220);
  border: 1px solid oklch(0.82 0.08 220);
  padding: 2px 6px 1px;
  border-radius: 3px;
  position: relative;
  top: 2px;
  vertical-align: baseline;
  font-weight: 500;
}
.brand-chip {
  font-family: var(--font-display);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.02em;
  color: oklch(0.32 0.10 245);
  background: oklch(0.92 0.06 230);
  border: 1px solid oklch(0.82 0.10 230);
  padding: 3px 10px;
  border-radius: 999px;
  line-height: 1;
  margin-bottom: 2px;
}
.footer .brand-chip {
  color: oklch(0.32 0.10 245);
  background: oklch(0.92 0.08 230);
  border-color: oklch(0.78 0.12 230);
}
.footer .brand-sub {
  color: oklch(0.30 0.05 240);
  background: oklch(0.86 0.10 220);
  border-color: oklch(0.78 0.12 220);
}
.brand-tag {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.14em;
  color: var(--accent);
  padding: 3px 7px;
  border: 1px solid var(--accent);
  border-radius: 999px;
  text-transform: uppercase;
}
.nav-links {
  display: flex;
  align-items: center;
  gap: 28px;
}
.nav-links a {
  font-size: 13.5px;
  color: var(--fog);
  transition: color .2s;
}
.nav-links a:hover { color: var(--bone); }

.nav-actions { display: flex; align-items: center; gap: 12px; }

.lang-toggle {
  display: inline-flex;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 2px;
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: 0.1em;
}
.lang-toggle button {
  padding: 5px 10px;
  border-radius: 999px;
  color: var(--fog);
}
.lang-toggle button.on {
  background: var(--ink);
  color: var(--bone);
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 11px 18px;
  border-radius: 999px;
  font-size: 13.5px;
  font-weight: 500;
  transition: all .2s;
  white-space: nowrap;
}
.btn-primary {
  background: var(--accent);
  color: var(--accent-ink);
}
.btn-primary:hover { filter: brightness(1.08); transform: translateY(-1px); }
.btn-ghost {
  border: 1px solid var(--line);
  color: var(--fg);
}
.btn-ghost:hover { border-color: var(--accent); color: var(--accent); }
.btn-arrow {
  width: 18px; height: 18px;
  display: inline-grid; place-items: center;
}

/* === HERO === */
.hero {
  position: relative;
  padding: 90px 0 110px;
  border-bottom: 1px solid var(--line-soft);
  overflow: hidden;
}
.hero-bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(60% 50% at 70% 30%, color-mix(in oklch, var(--accent) 8%, transparent), transparent 70%),
    radial-gradient(40% 35% at 15% 80%, color-mix(in oklch, var(--accent-2) 12%, transparent), transparent 70%);
  pointer-events: none;
}
.hero-grid-bg {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(var(--line-soft) 1px, transparent 1px),
    linear-gradient(90deg, var(--line-soft) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(70% 60% at 50% 40%, #000, transparent 80%);
  opacity: 0.35;
  pointer-events: none;
}
.hero-inner {
  position: relative;
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: 72px;
  align-items: center;
}
.hero-copy h1 {
  font-size: clamp(48px, 6.2vw, 96px);
  line-height: 0.96;
  letter-spacing: -0.035em;
  font-weight: 500;
  margin-top: 24px;
  text-wrap: balance;
}
.hero-copy h1 .accent {
  color: var(--accent);
  font-style: normal;
  font-weight: 500;
  position: relative;
}
.hero-copy h1 .accent::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: 6%;
  height: 8px;
  background: var(--accent-2);
  z-index: -1;
  opacity: 0.55;
}
.hero-copy h1 .strike {
  position: relative;
  display: inline-block;
}
.hero-copy h1 .strike::after {
  content: "";
  position: absolute;
  left: -2%;
  right: -2%;
  top: 52%;
  height: 6px;
  background: var(--accent);
  transform: skewY(-3deg);
  opacity: .9;
}
.hero-sub {
  margin-top: 28px;
  font-size: 17px;
  line-height: 1.55;
  color: var(--fog);
  max-width: 540px;
  text-wrap: pretty;
}
.hero-cta {
  margin-top: 36px;
  display: flex;
  gap: 12px;
  align-items: center;
  flex-wrap: wrap;
}
.hero-meta {
  margin-top: 56px;
  display: flex;
  gap: 40px;
  flex-wrap: wrap;
}
.hero-meta-item {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.hero-meta-num {
  font-size: 28px;
  font-weight: 500;
  letter-spacing: -0.02em;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}
.hero-meta-arrow {
  color: var(--accent);
  flex-shrink: 0;
}
.hero-meta-prefix {
  color: var(--accent);
  margin-right: 1px;
}
  letter-spacing: -0.02em;
}
.hero-meta-num .unit { color: var(--accent); }
.hero-meta-label {
  font-family: var(--font-mono);
  font-size: 9.5px;
  letter-spacing: 0.1em;
  color: oklch(0.32 0.10 245);
  text-transform: uppercase;
  background: oklch(0.94 0.04 230);
  border: 1px solid oklch(0.85 0.08 230);
  padding: 4px 9px;
  border-radius: 999px;
  display: inline-block;
  margin-top: 2px;
  line-height: 1;
  white-space: nowrap;
}

/* Map visual */
.map-card {
  position: relative;
  aspect-ratio: 1 / 1.05;
  background:
    radial-gradient(80% 60% at 50% 40%, color-mix(in oklch, var(--accent) 6%, var(--bone)), var(--ink-2));
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 30px 80px -30px oklch(0.45 0.18 245 / 0.25), 0 0 0 1px color-mix(in oklch, var(--accent) 15%, transparent) inset;
}
.map-card .corners::before,
.map-card .corners::after,
.map-card .corners > span::before,
.map-card .corners > span::after {
  content: "";
  position: absolute;
  width: 14px; height: 14px;
  border: 1px solid var(--accent);
}
.map-card .corners::before { top: 10px; left: 10px; border-right: 0; border-bottom: 0; }
.map-card .corners::after { top: 10px; right: 10px; border-left: 0; border-bottom: 0; }
.map-card .corners > span::before { bottom: 10px; left: 10px; border-right: 0; border-top: 0; }
.map-card .corners > span::after { bottom: 10px; right: 10px; border-left: 0; border-top: 0; }

.map-card svg.routes { position: absolute; inset: 0; width: 100%; height: 100%; }

.map-hud {
  position: absolute;
  top: 22px;
  left: 22px;
  z-index: 5;
  font-family: var(--font-mono);
  font-size: 10.5px;
  color: var(--fog);
  letter-spacing: 0.08em;
  background: oklch(1 0 0 / 0.85);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid oklch(0.85 0.04 240 / 0.6);
  border-radius: 4px;
  padding: 8px 12px;
  box-shadow: 0 4px 12px -4px oklch(0.45 0.18 245 / 0.15);
}
.map-hud .live { color: var(--accent); }
.map-hud .live::before {
  content: "";
  display: inline-block;
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--accent);
  margin-right: 6px;
  vertical-align: middle;
  animation: pulse 1.6s infinite;
  box-shadow: 0 0 10px var(--accent);
}

.map-stats {
  position: absolute;
  bottom: 22px;
  left: 22px;
  right: 22px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  background: color-mix(in oklch, var(--bone), transparent 8%);
  border: 1px solid var(--line);
  backdrop-filter: blur(10px);
  border-radius: 6px;
  padding: 14px 16px;
}
.map-stat-label {
  font-family: var(--font-mono);
  font-size: 9.5px;
  letter-spacing: 0.12em;
  color: var(--mist);
  text-transform: uppercase;
}
.map-stat-value {
  font-size: 19px;
  font-weight: 500;
  letter-spacing: -0.01em;
  margin-top: 4px;
}
.map-stat-value .accent { color: var(--accent); }

@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.4; transform: scale(0.7); }
}

@keyframes dash {
  to { stroke-dashoffset: -1000; }
}

@keyframes float-pin {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-3px); }
}

.route-line {
  fill: none;
  stroke-width: 2;
  stroke-linecap: round;
}
.route-line.optimized {
  stroke: var(--accent);
  stroke-dasharray: 6 4;
  animation: dash 22s linear infinite;
  filter: drop-shadow(0 0 6px color-mix(in oklch, var(--accent) 60%, transparent));
}
.route-line.legacy {
  stroke: var(--mist);
  stroke-dasharray: 2 5;
  opacity: 0.45;
}
.route-line.secondary {
  stroke: var(--accent-2);
  stroke-dasharray: 4 3;
  animation: dash 28s linear infinite reverse;
  opacity: 0.85;
  filter: drop-shadow(0 0 5px color-mix(in oklch, var(--accent-2) 50%, transparent));
}

.pin {
  fill: var(--ink);
  stroke: var(--bone);
  stroke-width: 1;
}
.pin.hub { fill: var(--accent); }
.pin.active {
  animation: float-pin 2s ease-in-out infinite;
}

.dot-ping circle.ping {
  fill: none;
  stroke: var(--accent);
  animation: ping 2s ease-out infinite;
  transform-origin: center;
  transform-box: fill-box;
}
@keyframes ping {
  0% { r: 3; opacity: 1; }
  100% { r: 18; opacity: 0; }
}

/* Logo strip */
.logos {
  border-bottom: 1px solid var(--line-soft);
  padding: 36px 0;
}
.logos-inner {
  display: flex;
  align-items: center;
  gap: 60px;
  justify-content: space-between;
  flex-wrap: wrap;
}
.logos-label {
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: 0.14em;
  color: var(--mist);
  text-transform: uppercase;
}
.logo-row {
  display: flex;
  align-items: center;
  gap: 48px;
  flex-wrap: wrap;
  opacity: 0.78;
}
.logo-row .logo {
  font-family: var(--font-mono);
  font-size: 14px;
  letter-spacing: 0.08em;
  color: var(--fog);
  text-transform: uppercase;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.logo .dot {
  width: 6px; height: 6px;
  background: var(--fog);
  display: inline-block;
}
.logo:nth-child(1) .dot { border-radius: 50%; }
.logo:nth-child(2) .dot { transform: rotate(45deg); }
.logo:nth-child(3) .dot { border-radius: 50% 0; }
.logo:nth-child(4) .dot { border-radius: 0; height: 2px; width: 14px; }
.logo:nth-child(5) .dot { border-radius: 50%; background: transparent; border: 1.5px solid var(--fog); }
.logo:nth-child(6) .dot { transform: rotate(45deg); border-radius: 1px; }

/* === Section primitives === */
.section {
  padding: 130px 0;
  border-bottom: 1px solid var(--line-soft);
  position: relative;
}
.section.tight { padding: 90px 0; }

.section-head {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 60px;
  align-items: end;
  margin-bottom: 64px;
}
.section-head h2 {
  font-size: clamp(36px, 4.4vw, 64px);
  line-height: 1;
  letter-spacing: -0.025em;
  font-weight: 500;
  text-wrap: balance;
}
.section-head h2 .accent { color: var(--accent); font-style: normal; font-weight: 500; }
.section-head p {
  color: var(--fog);
  font-size: 17px;
  line-height: 1.55;
  max-width: 560px;
  text-wrap: pretty;
}
.section-head .eyebrow { margin-bottom: 18px; }

/* Live optimization demo */
.demo {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 32px;
  align-items: stretch;
}
.demo-panel {
  background: var(--bone);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 28px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.demo-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 14px 0;
  border-bottom: 1px solid var(--line-soft);
}
.demo-row:last-child { border-bottom: 0; }
.demo-row .label {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  color: var(--mist);
  text-transform: uppercase;
}
.demo-row .value {
  font-size: 16px;
  font-weight: 500;
}
.demo-row .delta {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--accent);
  margin-left: 8px;
}
.demo-row .delta.down { color: var(--accent); }
.demo-row .delta.up { color: var(--warn); }

.demo-panel h3 {
  font-size: 22px;
  letter-spacing: -0.015em;
  font-weight: 500;
}
.demo-panel .progress {
  height: 4px;
  background: var(--ink-3);
  border-radius: 999px;
  overflow: hidden;
  position: relative;
}
.demo-panel .progress > span {
  position: absolute;
  top: 0; left: 0; bottom: 0;
  background: var(--accent);
  border-radius: 999px;
  transition: width 1.2s ease;
}

.demo-controls {
  display: flex;
  gap: 8px;
  margin-top: auto;
  padding-top: 12px;
}
.chip {
  padding: 6px 11px;
  border: 1px solid var(--line);
  border-radius: 999px;
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: 0.08em;
  color: var(--fog);
  cursor: pointer;
  transition: all .2s;
}
.chip.on {
  background: var(--accent);
  color: var(--accent-ink);
  border-color: var(--accent);
}
.chip:hover:not(.on) { color: var(--bone); border-color: var(--fog); }

.demo-map {
  position: relative;
  background: var(--ink-2);
  border: 1px solid var(--line);
  /* keep darker for contrast */
  border-radius: 8px;
  overflow: hidden;
  min-height: 480px;
}
.demo-map svg.routes { position: absolute; inset: 0; width: 100%; height: 100%; }
.demo-map .crosshair {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(var(--line-soft) 1px, transparent 1px),
    linear-gradient(90deg, var(--line-soft) 1px, transparent 1px);
  background-size: 40px 40px;
  opacity: 0.4;
  pointer-events: none;
}
.demo-map .timecode {
  position: absolute;
  top: 16px;
  right: 18px;
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--bone);
  letter-spacing: 0.08em;
  background: color-mix(in oklch, var(--ink), transparent 30%);
  padding: 5px 9px;
  border-radius: 4px;
  border: 1px solid color-mix(in oklch, var(--bone) 20%, transparent);
  z-index: 3;
}

/* === Map overlays (hero) === */
.map-overlay {
  position: absolute;
  z-index: 5;
  background: color-mix(in oklch, var(--bone), transparent 8%);
  border: 1px solid var(--line);
  backdrop-filter: blur(8px);
  border-radius: 6px;
  padding: 10px 12px;
  font-size: 10px;
  letter-spacing: 0.06em;
  z-index: 2;
  min-width: 170px;
}
.map-overlay.tr { top: 22px; right: 22px; }
.map-overlay.mr { top: 130px; right: 22px; min-width: 200px; }
.ovl-row { display: flex; align-items: center; gap: 8px; padding: 3px 0; color: var(--ink); }
.ovl-dot { width: 7px; height: 7px; border-radius: 50%; }
.ovl-dot.ok { background: oklch(0.65 0.18 145); box-shadow: 0 0 6px oklch(0.65 0.18 145); }
.ovl-dot.warn { background: oklch(0.7 0.18 60); }
.ovl-label { color: var(--mist); flex-shrink: 0; }
.ovl-val { color: var(--ink); font-weight: 500; margin-left: auto; }
.ovl-bar {
  flex: 1;
  height: 3px;
  background: var(--ink-3);
  border-radius: 2px;
  overflow: hidden;
  position: relative;
}
.ovl-bar > span {
  position: absolute;
  inset: 0;
  background: oklch(0.65 0.18 145);
  border-radius: 2px;
}
.ovl-title {
  color: var(--mist);
  font-size: 9px;
  letter-spacing: 0.14em;
  margin-bottom: 6px;
  padding-bottom: 5px;
  border-bottom: 1px solid var(--line-soft);
}
.ovl-event {
  display: grid;
  grid-template-columns: 32px auto 1fr;
  gap: 6px;
  align-items: center;
  padding: 4px 0;
  font-size: 9.5px;
  opacity: 0.55;
  transition: opacity .3s;
}
.ovl-event.on { opacity: 1; }
.ovl-time { color: var(--mist); }
.ovl-tag {
  padding: 1.5px 5px;
  border-radius: 2px;
  font-size: 8.5px;
  letter-spacing: 0.08em;
}
.ovl-tag.ok { background: color-mix(in oklch, oklch(0.65 0.18 145) 20%, transparent); color: oklch(0.45 0.18 145); }
.ovl-tag.alert { background: color-mix(in oklch, var(--accent) 18%, transparent); color: var(--accent); }
.ovl-evlabel { color: var(--ink); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* === Demo map overlays === */
.dm-panel, .ev-panel {
  position: absolute;
  background: color-mix(in oklch, var(--bone), transparent 6%);
  border: 1px solid var(--line);
  backdrop-filter: blur(10px);
  border-radius: 6px;
  padding: 12px 14px;
  font-size: 10.5px;
  letter-spacing: 0.04em;
  z-index: 3;
  width: 240px;
}
.dm-panel { top: 16px; left: 16px; }
.ev-panel { bottom: 16px; right: 16px; width: 280px; }

.dm-title, .ev-title {
  color: var(--mist);
  font-size: 9.5px;
  letter-spacing: 0.14em;
  margin-bottom: 8px;
  padding-bottom: 6px;
  border-bottom: 1px solid var(--line-soft);
}
.dm-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 5px 0;
  gap: 10px;
}
.dm-driver { display: flex; align-items: center; gap: 7px; color: var(--ink); }
.dm-dot { width: 7px; height: 7px; border-radius: 50%; }
.dm-dot.ok { background: oklch(0.65 0.18 145); }
.dm-dot.warn { background: oklch(0.7 0.18 60); }
.dm-id { font-size: 10px; }
.dm-meta { display: flex; align-items: center; gap: 8px; flex: 1; justify-content: flex-end; }
.dm-bar {
  width: 60px;
  height: 3px;
  background: var(--ink-3);
  border-radius: 2px;
  overflow: hidden;
  position: relative;
}
.dm-bar > span {
  position: absolute;
  inset: 0;
  background: oklch(0.65 0.18 145);
  border-radius: 2px;
}
.dm-bar > span.warn { background: oklch(0.7 0.18 60); }
.dm-spd { color: var(--ink); font-size: 10px; min-width: 50px; text-align: right; }

.ev-row {
  display: grid;
  grid-template-columns: 60px 70px 1fr;
  gap: 6px;
  align-items: center;
  padding: 4px 0;
  font-size: 10px;
}
.ev-time { color: var(--mist); }
.ev-tag {
  padding: 2px 5px;
  border-radius: 2px;
  font-size: 9px;
  letter-spacing: 0.08em;
  text-align: center;
}
.ev-tag.ok { background: color-mix(in oklch, oklch(0.65 0.18 145) 20%, transparent); color: oklch(0.42 0.18 145); }
.ev-tag.warn { background: color-mix(in oklch, oklch(0.7 0.18 60) 22%, transparent); color: oklch(0.5 0.18 50); }
.ev-label { color: var(--ink); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* === Camera tile === */
.cam-tile {
  position: absolute;
  bottom: 16px;
  left: 16px;
  width: 220px;
  background: var(--ink);
  border: 1px solid var(--line);
  border-radius: 6px;
  overflow: hidden;
  z-index: 3;
}
.cam-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 7px 10px;
  font-size: 10px;
  color: var(--bone);
  letter-spacing: 0.08em;
  background: oklch(0.22 0.03 240);
  border-bottom: 1px solid oklch(0.32 0.03 240);
}
.cam-rec {
  color: oklch(0.7 0.2 25);
  animation: pulse 1.4s infinite;
}
.cam-feed { width: 100%; display: block; aspect-ratio: 200 / 120; }
.cam-foot {
  display: flex;
  justify-content: space-between;
  padding: 6px 10px;
  font-size: 9px;
  color: var(--bone);
  background: oklch(0.22 0.03 240);
  letter-spacing: 0.08em;
}

/* === Vehicle diagram === */
.vehicle {
  display: grid;
  grid-template-columns: 1fr;
  overflow: visible;
  gap: 40px;
}
.vehicle-stage {
  position: relative;
  width: 100%;
  background: linear-gradient(180deg, oklch(0.985 0.005 240), oklch(0.96 0.01 240));
  border: 1px solid var(--line);
  border-radius: 14px;
  overflow: hidden;
  aspect-ratio: 1536 / 1024;
  max-height: 560px;
  margin: 0 auto;
}
.vehicle-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  user-select: none;
  pointer-events: none;
}
.vehicle-svg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}
.sensor-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--line-soft);
  border: 1px solid var(--line-soft);
  border-radius: 8px;
  overflow: hidden;
}
.sensor-card {
  background: var(--bone);
  padding: 26px 28px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  cursor: pointer;
  transition: background .2s;
  min-height: 160px;
}
.sensor-card:hover, .sensor-card.on {
  background: var(--ink-2);
}
.sensor-id {
  font-size: 10.5px;
  letter-spacing: 0.12em;
  color: var(--accent);
}
.sensor-label {
  font-size: 19px;
  font-weight: 500;
  letter-spacing: -0.015em;
}
.sensor-body {
  color: var(--fog);
  font-size: 14px;
  line-height: 1.5;
}

/* === AI AGENTS === */
.agents-console {
  display: grid;
  grid-template-columns: 380px 1fr;
  gap: 0;
  border: 1px solid var(--line);
  background: var(--bone);
  border-radius: 4px;
  overflow: hidden;
}
.agents-roster {
  background: oklch(0.97 0.006 240);
  border-right: 1px solid var(--line);
  display: flex;
  flex-direction: column;
}
.agents-roster-head {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 18px 20px;
  font-size: 10.5px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--mist);
  border-bottom: 1px solid var(--line-soft);
}
.agents-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 3px color-mix(in oklch, var(--accent), transparent 70%);
  animation: agentsPulse 1.6s infinite;
}
@keyframes agentsPulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.4; }
}
.agents-roster-count { margin-left: auto; color: var(--accent); }

.agent-row {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: flex-start;
  gap: 14px;
  padding: 18px 20px;
  text-align: left;
  border-bottom: 1px solid var(--line-soft);
  cursor: pointer;
  transition: background .15s;
  width: 100%;
}
.agent-row:hover { background: oklch(0.95 0.012 240); }
.agent-row.is-active {
  background: var(--bone);
  box-shadow: inset 3px 0 0 var(--accent);
}
.agent-code {
  font-size: 11px;
  letter-spacing: 0.12em;
  color: var(--accent);
  border: 1px solid var(--accent);
  border-radius: 3px;
  padding: 4px 6px;
  margin-top: 2px;
}
.agent-row-body { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.agent-row-name {
  font-family: var(--font-display);
  font-size: 14px;
  font-weight: 500;
  letter-spacing: -0.01em;
  color: var(--ink);
}
.agent-row-desc {
  font-size: 12.5px;
  color: var(--fog);
  line-height: 1.4;
}
.agent-tag {
  font-size: 9.5px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
  border: 1px solid var(--accent);
  border-radius: 999px;
  padding: 2px 8px;
  align-self: flex-start;
  margin-top: 2px;
}
.agent-tag.is-beta {
  color: oklch(0.55 0.16 60);
  border-color: oklch(0.55 0.16 60);
}
.agents-callout {
  margin-top: auto;
  padding: 18px 20px;
  border-top: 1px solid var(--line-soft);
  background: oklch(0.95 0.012 240);
}
.agents-callout-mark {
  display: block;
  font-size: 10px;
  letter-spacing: 0.14em;
  color: var(--mist);
  margin-bottom: 6px;
}
.agents-callout p { font-size: 13px; line-height: 1.5; color: var(--fog); }

/* Detail panel */
.agents-detail {
  padding: 32px 36px;
  display: flex;
  flex-direction: column;
  gap: 20px;
  min-height: 600px;
}
.agents-detail-head {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 18px;
}
.agent-portrait {
  width: 88px;
  height: 88px;
  border: 1px solid var(--line);
  background: oklch(0.97 0.006 240);
  display: grid;
  place-items: center;
  position: relative;
  border-radius: 4px;
}
.agent-glyph { width: 60px; height: 60px; }
.agent-portrait-code {
  position: absolute;
  bottom: 4px;
  right: 6px;
  font-size: 9px;
  color: var(--mist);
  letter-spacing: 0.1em;
}
.agents-detail-eyebrow {
  font-size: 10.5px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--mist);
  margin-bottom: 4px;
}
.agents-detail h3 {
  font-size: 32px;
  letter-spacing: -0.02em;
  font-weight: 500;
  color: var(--ink);
}
.agents-detail-desc {
  font-size: 16px;
  line-height: 1.55;
  color: var(--fog);
  max-width: 62ch;
}

/* Stream */
.agents-stream {
  background: oklch(0.16 0.025 250);
  border-radius: 4px;
  padding: 16px 18px;
  font-family: var(--font-mono);
  color: oklch(0.86 0.02 240);
}
.agents-stream-head {
  display: flex;
  justify-content: space-between;
  font-size: 10.5px;
  letter-spacing: 0.14em;
  color: oklch(0.62 0.03 240);
  text-transform: uppercase;
  padding-bottom: 10px;
  border-bottom: 1px solid oklch(0.26 0.03 250);
}
.agents-stream-status { display: inline-flex; align-items: center; gap: 6px; color: oklch(0.82 0.18 130); }
.agents-stream-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: oklch(0.82 0.18 130);
  animation: agentsPulse 1s infinite;
}
.agents-stream-body {
  padding-top: 12px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 12.5px;
  line-height: 1.55;
}
.agent-log {
  display: grid;
  grid-template-columns: auto auto 1fr;
  gap: 12px;
  align-items: baseline;
  opacity: 0.25;
  transition: opacity .3s;
}
.agent-log.is-shown { opacity: 1; }
.agent-log-t { color: oklch(0.55 0.03 240); font-size: 11px; }
.agent-log-lvl {
  font-size: 10.5px;
  letter-spacing: 0.06em;
  padding: 1px 6px;
  border-radius: 2px;
  background: oklch(0.24 0.03 250);
  color: oklch(0.82 0.04 240);
}
.lvl-info, .lvl-pull, .lvl-scan, .lvl-msg, .lvl-watch { color: oklch(0.78 0.10 220); background: oklch(0.22 0.06 240); }
.lvl-plan, .lvl-diff, .lvl-why { color: var(--accent-2); background: oklch(0.26 0.10 130 / 0.5); }
.lvl-push, .lvl-act, .lvl-reply, .lvl-fix { color: oklch(0.82 0.14 90); background: oklch(0.26 0.10 80 / 0.5); }
.lvl-warn { color: oklch(0.78 0.16 50); background: oklch(0.30 0.12 50 / 0.5); }
.lvl-ok { color: oklch(0.82 0.18 130); background: oklch(0.26 0.12 130 / 0.5); }
.agent-log-msg { color: oklch(0.86 0.02 240); }

.agents-sample {
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px dashed oklch(0.30 0.03 250);
  font-size: 12px;
  color: oklch(0.78 0.04 240);
}
.agents-sample-mark { color: var(--accent-2); margin-right: 8px; }

.agents-detail-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: auto;
  padding-top: 12px;
  flex-wrap: wrap;
  gap: 14px;
}
.agents-foot-meta { font-size: 11px; letter-spacing: 0.1em; color: var(--mist); text-transform: uppercase; }

@media (max-width: 960px) {
  .agents-console { grid-template-columns: 1fr; }
  .agents-roster { border-right: 0; border-bottom: 1px solid var(--line); }
  .agents-detail { padding: 24px; min-height: 0; }
}

/* === Section background variants === */
.section--mist {
  background: oklch(0.965 0.006 240);
  border-top: 1px solid var(--line-soft);
  border-bottom: 1px solid var(--line-soft);
}
.section--ink {
  background: oklch(0.20 0.05 250);
  color: oklch(0.96 0.01 240);
}
.section--ink .eyebrow { color: oklch(0.78 0.04 240); }
.section--ink .eyebrow::before { background: var(--accent-2); }
.section--ink h2,
.section--ink h3 { color: oklch(0.98 0.005 240); }
.section--ink p,
.section--ink .section-head p { color: oklch(0.78 0.025 240); }
.section--ink .driver-ai-card {
  background: oklch(0.24 0.04 250);
  border: 1px solid oklch(0.30 0.04 250);
  border-radius: 10px;
  box-shadow: none;
}
.section--ink .driver-ai-card:hover {
  background: oklch(0.42 0.16 250);
  border-color: oklch(0.72 0.18 245);
  transform: translateY(-3px);
  box-shadow: 0 24px 60px -20px oklch(0.45 0.22 250 / 0.7);
}
.section--ink .driver-ai-card h3 { color: oklch(0.98 0.005 240); }
.section--ink .driver-ai-card p { color: oklch(0.78 0.025 240); }
.section--ink .driver-ai-num { color: var(--accent-2); }
.section--ink .driver-ai-viz {
  border-color: oklch(0.30 0.04 250);
  background: oklch(0.18 0.04 250);
  --viz-bg: oklch(0.18 0.04 250);
  --ink: oklch(0.92 0.01 240);
  --ink-3: oklch(0.30 0.04 250);
  --mist: oklch(0.65 0.025 240);
  --bone: oklch(0.96 0.005 240);
}
/* metrics on dark */
.section--ink .metrics { background: oklch(0.30 0.04 250); }
.section--ink .metric { background: oklch(0.24 0.04 250); border-color: oklch(0.30 0.04 250); }
.section--ink .metric-num { color: oklch(0.98 0.005 240); }
.section--ink .metric-label { color: oklch(0.72 0.025 240); }
.section--ink .metric-foot { color: oklch(0.62 0.03 240); border-color: oklch(0.30 0.04 250); }

/* Driver AI grid */
.driver-ai-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}
.driver-ai-card {
  background: var(--bone);
  padding: 32px 28px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  min-height: 380px;
  border: 1px solid var(--line);
  border-radius: 10px;
  box-shadow: 0 1px 0 0 oklch(0.92 0.012 240);
  transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
}
.driver-ai-card:hover {
  transform: translateY(-2px);
  border-color: oklch(0.62 0.16 250);
  background: oklch(0.96 0.04 250);
  box-shadow: 0 16px 40px -20px oklch(0.45 0.18 250 / 0.4);
}
  box-shadow: 0 12px 32px -16px color-mix(in oklch, var(--accent), transparent 70%);
}
}
.driver-ai-num {
  font-size: 11px;
  letter-spacing: 0.12em;
  color: var(--accent);
}
.driver-ai-card h3 {
  font-size: 26px;
  letter-spacing: -0.02em;
  font-weight: 500;
}
.driver-ai-card p {
  color: var(--fog);
  font-size: 15px;
  line-height: 1.55;
}
.driver-ai-viz {
  margin-top: auto;
  height: 140px;
  border: 1px solid var(--line-soft);
  border-radius: 6px;
  overflow: hidden;
  background: oklch(0.96 0.008 240);
}
.dai-viz { width: 100%; height: 100%; display: block; }

/* fatigue card: photo + AI overlay */
.dai-fatigue { position: relative; overflow: hidden; background: oklch(0.18 0.04 250); }
.dai-fatigue .dai-photo {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  height: 75%;
  width: auto;
  max-width: none;
  object-fit: contain;
  border-radius: 4px;
  filter: grayscale(0.2) contrast(1.05) brightness(0.92);
}
.dai-fatigue .dai-photo-tint {
  position: absolute; inset: 0;
  background:
    linear-gradient(180deg, transparent 40%, oklch(0.18 0.04 250 / 0.55) 100%),
    linear-gradient(0deg, oklch(0.18 0.04 250 / 0.15), oklch(0.18 0.04 250 / 0.15));
  mix-blend-mode: multiply;
}
.dai-fatigue .dai-overlay {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
}

@media (max-width: 760px) {
  .sensor-grid, .driver-ai-grid { grid-template-columns: 1fr !important; }
}
.demo-map .crosshair { display: none; }

/* Hide hero corner chrome since overlays now live in those spots — keep just subtle ones */
.map-card .corners::before { top: 8px; left: 8px; }
.map-card .corners > span::before { bottom: 8px; left: 8px; }

/* Responsive: collapse overlays */
@media (max-width: 1100px) {
  .map-overlay.mr { display: none; }
  .dm-panel { width: 200px; padding: 10px; font-size: 9.5px; }
  .ev-panel { width: 220px; padding: 10px; }
  .cam-tile { width: 170px; }
}
@media (max-width: 720px) {
  .dm-panel, .ev-panel, .cam-tile, .map-overlay { display: none; }
}

/* Features */
.features {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1px;
  background: var(--line-soft);
  border: 1px solid var(--line-soft);
  border-radius: 8px;
  overflow: hidden;
}
.feature {
  background: var(--bone);
  padding: 44px 38px;
  display: flex;
  flex-direction: column;
  gap: 18px;
  position: relative;
  min-height: 340px;
  transition: background .3s;
}
.feature:hover { background: var(--ink-2); }
.feature-visual { background: var(--ink-2); }
.feature-num {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--accent);
  letter-spacing: 0.12em;
}
.feature h3 {
  font-size: 28px;
  letter-spacing: -0.02em;
  font-weight: 500;
  text-wrap: balance;
}
.feature p {
  color: var(--fog);
  line-height: 1.55;
  font-size: 15px;
}
.feature-visual {
  margin-top: auto;
  height: 140px;
  border: 1px solid var(--line-soft);
  border-radius: 6px;
  position: relative;
  overflow: hidden;
  background: var(--ink-2);
}

/* How it works */
.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
  position: relative;
}
.steps::before {
  content: "";
  position: absolute;
  top: 22px;
  left: 5%;
  right: 5%;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--accent), transparent);
  opacity: 0.5;
}
.step {
  display: flex;
  flex-direction: column;
  gap: 18px;
  position: relative;
  z-index: 1;
}
.step-num {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1px solid var(--accent);
  background: var(--bone);
  display: grid;
  place-items: center;
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--accent);
}
.step h4 {
  font-size: 22px;
  letter-spacing: -0.015em;
  font-weight: 500;
}
.step p {
  color: var(--fog);
  font-size: 15px;
  line-height: 1.55;
}

/* Metrics */
.metrics {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--line-soft);
}
.metric {
  background: var(--bone);
  padding: 44px 32px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.metric-num {
  font-size: clamp(48px, 5vw, 72px);
  letter-spacing: -0.04em;
  font-weight: 500;
  line-height: 1;
}
.metric-num .unit {
  color: var(--accent);
  font-size: 0.5em;
  margin-left: 2px;
}
.metric-num {
  color: var(--ink);
}
.metric-label {
  color: var(--fog);
  font-size: 14px;
  line-height: 1.4;
  text-wrap: balance;
}
.metric-bar {
  height: 2px;
  background: var(--ink-3);
  margin-top: auto;
  position: relative;
  overflow: hidden;
}
.metric-bar::after {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--accent);
  width: var(--w, 60%);
}

/* Integrations */
.integrations {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 1px;
  background: var(--line-soft);
  border: 1px solid var(--line-soft);
  border-radius: 8px;
  overflow: hidden;
}
.integration {
  background: var(--bone);
  aspect-ratio: 1.4 / 1;
  display: grid;
  place-items: center;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.05em;
  color: var(--fog);
  text-transform: uppercase;
  transition: all .2s;
  position: relative;
}
.integration:hover {
  background: var(--ink-2);
  color: var(--accent);
}
.integration .glyph {
  position: absolute;
  top: 14px;
  left: 14px;
  width: 14px; height: 14px;
  border: 1px solid var(--line);
  border-radius: 50%;
}

/* CTA */
.cta {
  background: var(--ink);
  color: var(--bone);
  padding: 110px 0;
  position: relative;
  overflow: hidden;
}
.cta-inner {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 60px;
  align-items: end;
  position: relative;
  z-index: 1;
}
.cta h2 {
  font-size: clamp(48px, 6vw, 96px);
  letter-spacing: -0.035em;
  line-height: 0.95;
  font-weight: 500;
  text-wrap: balance;
}
.cta h2 .ink-accent { color: var(--accent); font-style: normal; font-weight: 500; }
.cta p {
  font-size: 17px;
  line-height: 1.55;
  color: oklch(0.78 0.02 250);
  max-width: 460px;
  margin-bottom: 24px;
}
.cta .btn-primary {
  background: var(--accent);
  color: var(--accent-ink);
}
.cta .btn-ghost {
  border-color: oklch(0.45 0.03 250);
  color: var(--bone);
}
.cta-bg-routes {
  position: absolute;
  inset: 0;
  opacity: 0.18;
  pointer-events: none;
}

/* Footer */
.footer {
  padding: 60px 0 36px;
  background: var(--ink);
  color: var(--bone);
}
.footer .brand-name { color: var(--bone); }
.footer .brand-logo { filter: brightness(0) invert(1); }
.footer .footer-brand p { color: oklch(0.78 0.02 250); }
.footer ul a { color: oklch(0.78 0.02 250); }
.footer ul a:hover { color: var(--bone); }
.footer h5 { color: oklch(0.65 0.02 250); }
.footer-top {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 60px;
  border-bottom: 1px solid var(--line-soft);
}
.footer h5 {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  color: var(--mist);
  text-transform: uppercase;
  margin-bottom: 18px;
  font-weight: 400;
}
.footer ul { list-style: none; display: flex; flex-direction: column; gap: 10px; }
.footer ul a { color: var(--fog); font-size: 14px; }
.footer ul a:hover { color: var(--bone); }
.footer-bottom {
  padding-top: 28px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--mist);
  letter-spacing: 0.08em;
}
.footer-brand p {
  color: var(--fog);
  font-size: 14px;
  line-height: 1.55;
  max-width: 320px;
  margin-top: 14px;
}

/* Marquee */
.marquee {
  border-top: 1px solid var(--line-soft);
  border-bottom: 1px solid var(--line-soft);
  overflow: hidden;
  padding: 22px 0;
}
.marquee-track {
  display: flex;
  gap: 64px;
  width: max-content;
  animation: scroll 40s linear infinite;
}
.marquee-item {
  display: flex;
  align-items: center;
  gap: 16px;
  font-size: 17px;
  letter-spacing: -0.01em;
  font-weight: 500;
  white-space: nowrap;
}
.marquee-item .accent {
  color: var(--accent);
  font-style: normal;
  font-weight: 500;
}
.marquee-item .sep { display: none; }
.marquee-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--accent);
  background: oklch(0.93 0.03 240);
  border-radius: 50%;
  width: 40px;
  height: 40px;
  flex-shrink: 0;
}
@keyframes scroll {
  to { transform: translateX(-50%); }
}

/* Responsive */
@media (max-width: 960px) {
  .hero-inner, .demo, .features, .steps, .metrics, .footer-top, .cta-inner, .section-head {
    grid-template-columns: 1fr !important;
    gap: 32px;
  }
  .integrations { grid-template-columns: repeat(3, 1fr); }
  .nav-links { display: none; }
  .section { padding: 80px 0; }
  .hero { padding: 60px 0 80px; }
}

/* ============================================================ */
/*  DRIVER AI — DEDICATED PAGE                                  */
/* ============================================================ */
.dap-root { background: var(--ink-2); }
.dap-back-rail {
  background: oklch(0.97 0.01 240);
  border-bottom: 1px solid var(--line-soft);
  padding: 14px 0;
}
.dap-back-link {
  background: none;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 6px 14px;
  font-size: 12px;
  color: var(--ink);
  cursor: pointer;
  letter-spacing: 0.04em;
  transition: all 0.18s;
}
.dap-back-link:hover {
  background: var(--ink);
  color: white;
  border-color: var(--ink);
}
.driver-ai-more { margin-top: 32px; display: flex; justify-content: center; }

/* nav current */
.nav-links a.is-current { color: var(--accent); }

/* === HERO === */
.dap-hero {
  position: relative;
  padding: 96px 0 80px;
  overflow: hidden;
  background:
    radial-gradient(ellipse 800px 400px at 80% 20%, oklch(0.94 0.04 235) 0%, transparent 70%),
    radial-gradient(ellipse 600px 300px at 10% 90%, oklch(0.95 0.03 145) 0%, transparent 70%),
    var(--ink-2);
}
.dap-hero-bg {
  position: absolute; inset: 0;
  background-image:
    linear-gradient(to right, oklch(0.86 0.012 240 / 0.5) 1px, transparent 1px),
    linear-gradient(to bottom, oklch(0.86 0.012 240 / 0.5) 1px, transparent 1px);
  background-size: 80px 80px;
  pointer-events: none;
  mask-image: radial-gradient(ellipse 70% 60% at 50% 50%, black, transparent);
}
.dap-hero-inner {
  position: relative;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: center;
}
.dap-hero-copy h1 {
  font-size: clamp(48px, 5.6vw, 88px);
  line-height: 1.02;
  letter-spacing: -0.025em;
  margin: 16px 0 24px;
}
.dap-hero-sub {
  font-size: 19px;
  line-height: 1.55;
  color: var(--ink-soft);
  max-width: 540px;
}
.dap-hero-cta {
  display: flex; gap: 12px; flex-wrap: wrap;
  margin: 32px 0 48px;
}
.dap-kpis {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}
.dap-kpi { border-top: 1px solid var(--line); padding-top: 14px; }
.dap-kpi-num {
  font-size: clamp(28px, 2.4vw, 36px);
  font-weight: 500;
  letter-spacing: -0.02em;
  color: var(--ink);
}
.dap-kpi-num .unit { font-size: 0.6em; color: var(--ink-soft); margin-left: 2px; }
.dap-kpi-label {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.05em;
  color: var(--ink-soft);
  margin-top: 6px;
  line-height: 1.4;
}

/* hero map card */
.dap-map-card {
  background: white;
  border: 1px solid var(--line);
  border-radius: 18px;
  overflow: hidden;
  box-shadow: 0 30px 80px -30px oklch(0.5 0.1 240 / 0.3);
}
.dap-map-head {
  display: flex; align-items: center; gap: 10px;
  padding: 14px 18px;
  background: var(--ink);
  color: oklch(0.96 0 0);
  font-size: 11px;
  letter-spacing: 0.06em;
}
.dap-map-head .dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--accent-2);
  animation: dap-pulse 1.6s ease-in-out infinite;
}
.dap-map-head .dap-map-clock { margin-left: auto; opacity: 0.7; }
.dap-map-svg { width: 100%; height: 360px; display: block; }
.dap-map-chips {
  display: flex; flex-wrap: wrap; gap: 8px;
  padding: 14px 18px;
  border-top: 1px solid var(--line);
  background: oklch(0.98 0.01 240);
}
.dap-chip {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 5px 10px;
  border-radius: 999px;
  background: white;
  border: 1px solid var(--line);
  font-size: 11px;
  letter-spacing: 0.04em;
  color: var(--ink);
}
.dap-chip-dot { width: 6px; height: 6px; border-radius: 50%; background: var(--ink-soft); }
.dap-chip--complaint .dap-chip-dot { background: oklch(0.7 0.18 35); }
.dap-chip--driver .dap-chip-dot { background: var(--accent); }
.dap-chip--break .dap-chip-dot { background: oklch(0.78 0.14 80); }
.dap-chip--stop .dap-chip-dot { background: var(--accent-2); }

@keyframes dap-pulse {
  0%, 100% { opacity: 0.5; }
  50% { opacity: 1; }
}

/* === Pillars === */
.dap-pillars {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}
.dap-pillar {
  background: white;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 28px 24px;
  display: flex; flex-direction: column;
  gap: 14px;
  transition: all 0.22s;
}
.dap-pillar:hover {
  transform: translateY(-3px);
  border-color: var(--accent);
  box-shadow: 0 18px 36px -18px oklch(0.5 0.1 240 / 0.3);
}
.dap-pillar-head { display: flex; align-items: baseline; gap: 12px; }
.dap-pillar-code {
  font-size: 11px; letter-spacing: 0.08em;
  color: var(--accent);
  background: oklch(0.95 0.04 235);
  padding: 3px 8px; border-radius: 4px;
}
.dap-pillar h3 { font-size: 22px; letter-spacing: -0.01em; margin: 0; }
.dap-pillar p { font-size: 15px; line-height: 1.55; color: var(--ink-soft); margin: 0; }
.dap-pillar-chips { display: flex; flex-wrap: wrap; gap: 6px; margin-top: auto; padding-top: 8px; }
.dap-mini-chip {
  font-size: 10.5px;
  letter-spacing: 0.05em;
  padding: 3px 8px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: oklch(0.98 0.01 240);
  color: var(--ink-soft);
}

/* === Cabin Vision === */
.dap-cabin {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 40px;
  align-items: center;
}
.dap-cabin-feed {
  background: oklch(0.14 0.02 250);
  border: 1px solid oklch(0.3 0.04 250);
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 20px 60px -20px oklch(0 0 0 / 0.5);
}
.dap-cabin-feed-head {
  display: flex; align-items: center; gap: 12px;
  padding: 12px 16px;
  font-size: 11px;
  letter-spacing: 0.06em;
  color: oklch(0.85 0.02 240);
  background: oklch(0.18 0.03 250);
  border-bottom: 1px solid oklch(0.28 0.04 250);
}
.dap-cabin-feed-rec { color: oklch(0.7 0.2 25); }
.dap-cabin-feed-time { margin-left: auto; opacity: 0.7; }
.dap-cabin-feed-svg { width: 100%; height: 280px; display: block; }
.dap-cabin-feed-foot {
  display: flex; align-items: center; gap: 12px;
  padding: 12px 16px;
  background: oklch(0.18 0.03 250);
  border-top: 1px solid oklch(0.28 0.04 250);
}
.dap-cabin-pill {
  font-size: 10.5px;
  letter-spacing: 0.06em;
  padding: 3px 9px;
  border-radius: 999px;
  border: 1px solid currentColor;
}
.dap-cabin-pill--ok { color: oklch(0.78 0.16 145); }
.dap-cabin-pill--warn { color: oklch(0.78 0.18 35); }
.dap-cabin-pill--act { color: var(--accent-2); }
.dap-cabin-feed-msg { color: oklch(0.92 0.01 240); font-size: 13px; }

.dap-cabin-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 24px; }
.dap-cabin-item { display: flex; gap: 18px; align-items: flex-start; }
.dap-cabin-bullet {
  width: 14px; height: 14px;
  border: 1px solid var(--accent);
  margin-top: 8px;
  flex-shrink: 0;
  position: relative;
}
.dap-cabin-bullet::after {
  content: "";
  position: absolute;
  inset: 3px;
  background: var(--accent);
}
.dap-cabin-list h4 {
  font-size: 18px;
  letter-spacing: -0.01em;
  margin: 0 0 4px;
  color: oklch(0.96 0.005 240);
}
.dap-cabin-list p {
  font-size: 14px;
  line-height: 1.55;
  color: oklch(0.78 0.025 240);
  margin: 0;
}

/* === Timeline === */
.dap-timeline {
  background: white;
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 28px;
}
.dap-timeline-head {
  display: flex; justify-content: space-between; align-items: center;
  font-size: 12px; letter-spacing: 0.06em;
  color: var(--ink-soft);
  margin-bottom: 24px;
}
.dap-timeline-status { display: inline-flex; align-items: center; gap: 6px; }
.dap-timeline-dot {
  width: 7px; height: 7px; border-radius: 50%;
  background: oklch(0.65 0.16 145);
  animation: dap-pulse 1.6s ease-in-out infinite;
}
.dap-timeline-bar {
  position: relative;
  height: 60px;
  margin: 24px 8px 8px;
  background: linear-gradient(to right, var(--line-soft), var(--line-soft));
  background-size: 100% 2px;
  background-repeat: no-repeat;
  background-position: center;
}
.dap-timeline-cursor {
  position: absolute;
  top: 0;
  bottom: 0;
  width: 2px;
  background: var(--accent);
  transform: translateX(-50%);
  transition: left 1.6s cubic-bezier(0.4, 0, 0.2, 1);
  pointer-events: none;
}
.dap-timeline-cursor::before {
  content: "";
  position: absolute;
  top: -4px; left: -4px;
  width: 10px; height: 10px;
  background: var(--accent);
  border-radius: 50%;
}
.dap-timeline-pin {
  position: absolute;
  top: 50%;
  transform: translate(-50%, -50%);
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
  display: flex; flex-direction: column; align-items: center; gap: 4px;
}
.dap-timeline-pin-dot {
  width: 14px; height: 14px;
  border-radius: 50%;
  background: var(--pin-color);
  border: 2px solid white;
  box-shadow: 0 0 0 1px var(--pin-color);
  transition: transform 0.2s;
}
.dap-timeline-pin.is-active .dap-timeline-pin-dot {
  transform: scale(1.4);
}
.dap-timeline-pin-t {
  font-size: 10px;
  letter-spacing: 0.04em;
  color: var(--ink-soft);
  position: absolute;
  top: 16px;
  white-space: nowrap;
}
.dap-timeline-events {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 8px;
  margin-top: 36px;
  padding-top: 20px;
  border-top: 1px solid var(--line-soft);
}
.dap-timeline-event {
  display: flex; align-items: center; gap: 10px;
  padding: 10px 12px;
  border-radius: 8px;
  background: var(--ink-3);
  font-size: 13px;
  transition: all 0.2s;
}
.dap-timeline-event.is-active {
  background: oklch(0.97 0.02 235);
  border-left: 3px solid var(--pin-color);
  padding-left: 9px;
}
.dap-timeline-event-dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--pin-color);
  flex-shrink: 0;
}
.dap-timeline-event-t {
  font-size: 11px;
  color: var(--ink-soft);
  flex-shrink: 0;
}
.dap-timeline-event-label { color: var(--ink); flex: 1; }

/* === Complaint flow === */
.dap-flow {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 0;
}
.dap-flow-step {
  background: white;
  border: 1px solid var(--line);
  padding: 24px 20px;
  position: relative;
}
.dap-flow-step:first-child { border-radius: 12px 0 0 12px; }
.dap-flow-step:last-child { border-radius: 0 12px 12px 0; background: oklch(0.97 0.04 235); border-color: var(--accent); }
.dap-flow-step + .dap-flow-step { border-left: none; }
.dap-flow-step-head {
  display: flex; justify-content: space-between; align-items: center;
  margin-bottom: 14px;
}
.dap-flow-step-code {
  font-size: 11px; letter-spacing: 0.06em;
  padding: 3px 8px;
  background: var(--ink);
  color: white;
  border-radius: 4px;
}
.dap-flow-step:last-child .dap-flow-step-code { background: var(--accent); }
.dap-flow-step-arrow {
  font-size: 18px;
  color: var(--accent);
  font-weight: 300;
}
.dap-flow-step h4 {
  font-size: 16px;
  letter-spacing: -0.005em;
  margin: 0 0 6px;
}
.dap-flow-step p {
  font-size: 13px;
  line-height: 1.5;
  color: var(--ink-soft);
  margin: 0;
}

/* === Comms === */
.dap-comms {
  display: grid;
  grid-template-columns: 320px 1fr;
  gap: 56px;
  align-items: center;
}
.dap-phone {
  width: 320px;
  height: 600px;
  background: var(--ink);
  border-radius: 40px;
  padding: 14px;
  position: relative;
  box-shadow: 0 30px 60px -20px oklch(0 0 0 / 0.4);
}
.dap-phone-notch {
  position: absolute;
  top: 22px; left: 50%;
  transform: translateX(-50%);
  width: 80px; height: 24px;
  background: oklch(0.08 0.02 250);
  border-radius: 12px;
  z-index: 2;
}
.dap-phone-screen {
  background: oklch(0.98 0.005 240);
  border-radius: 28px;
  height: 100%;
  overflow: hidden;
  display: flex; flex-direction: column;
}
.dap-chat { display: flex; flex-direction: column; height: 100%; }
.dap-chat-head {
  padding: 56px 20px 14px;
  border-bottom: 1px solid var(--line-soft);
}
.dap-chat-head-name { font-size: 14px; font-weight: 500; }
.dap-chat-head-meta { font-size: 11px; color: var(--ink-soft); margin-top: 2px; }
.dap-chat-body {
  flex: 1;
  padding: 16px;
  display: flex; flex-direction: column; gap: 10px;
  overflow-y: auto;
}
.dap-msg {
  display: flex; flex-direction: column; gap: 2px;
  max-width: 85%;
}
.dap-msg-bubble {
  background: white;
  border: 1px solid var(--line);
  padding: 9px 13px;
  border-radius: 14px;
  font-size: 13px;
  line-height: 1.4;
}
.dap-msg-t {
  font-size: 9.5px;
  color: var(--ink-soft);
  margin-top: 2px;
}
.dap-msg--driver { align-self: flex-end; align-items: flex-end; }
.dap-msg--driver .dap-msg-bubble { background: var(--accent); color: white; border-color: var(--accent); }
.dap-msg--driver .dap-msg-t { padding-right: 4px; }
.dap-msg--dispatch { align-self: flex-start; }
.dap-msg--dispatch .dap-msg-t { padding-left: 4px; }
.dap-msg--system {
  align-self: center;
  align-items: center;
  max-width: 100%;
}
.dap-msg--system .dap-msg-bubble {
  background: oklch(0.95 0.04 235);
  border-color: oklch(0.85 0.06 235);
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--accent);
}
.dap-msg-ptt {
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: 0.08em;
  color: var(--accent);
  background: oklch(0.95 0.04 235);
  padding: 2px 6px;
  border-radius: 4px;
  margin-bottom: 2px;
  align-self: flex-end;
}
.dap-chat-input {
  padding: 14px 20px;
  border-top: 1px solid var(--line-soft);
  display: flex; align-items: center; gap: 12px;
  background: white;
}
.dap-ptt-btn {
  width: 50px; height: 50px;
  border-radius: 50%;
  background: var(--accent);
  border: none;
  color: white;
  cursor: pointer;
  position: relative;
  display: flex; align-items: center; justify-content: center;
  font-size: 18px;
  flex-shrink: 0;
}
.dap-ptt-ring {
  position: absolute;
  inset: -6px;
  border: 2px solid var(--accent);
  border-radius: 50%;
  opacity: 0.4;
  animation: dap-pulse-ring 2s ease-in-out infinite;
}
@keyframes dap-pulse-ring {
  0%, 100% { transform: scale(1); opacity: 0.4; }
  50% { transform: scale(1.15); opacity: 0; }
}
.dap-chat-input-hint { font-size: 11px; color: var(--ink-soft); }

.dap-comms-side { display: flex; flex-direction: column; gap: 24px; }
.dap-comms-feature {
  border-left: 2px solid var(--accent);
  padding-left: 20px;
}
.dap-comms-feature h4 {
  font-size: 18px;
  letter-spacing: -0.01em;
  margin: 0 0 6px;
}
.dap-comms-feature p {
  font-size: 14px;
  line-height: 1.55;
  color: var(--ink-soft);
  margin: 0;
}

/* === Voice === */
.dap-voice {
  display: grid;
  grid-template-columns: 320px 1fr;
  gap: 56px;
  align-items: center;
}
.dap-voice-orb {
  display: flex; justify-content: center;
}
.dap-voice-svg { width: 100%; max-width: 320px; height: auto; }
.dap-voice-list { display: flex; flex-direction: column; gap: 12px; }
.dap-voice-item {
  background: oklch(0.22 0.03 250);
  border: 1px solid oklch(0.3 0.04 250);
  border-radius: 12px;
  padding: 18px;
  text-align: left;
  cursor: pointer;
  transition: all 0.2s;
  display: flex; flex-direction: column; gap: 10px;
  font-family: inherit;
  color: oklch(0.92 0.01 240);
}
.dap-voice-item.is-active {
  background: oklch(0.26 0.04 250);
  border-color: var(--accent);
  box-shadow: 0 0 0 3px oklch(0.5 0.18 235 / 0.18);
}
.dap-voice-q, .dap-voice-a {
  display: flex; gap: 12px; align-items: flex-start;
  font-size: 14px;
  line-height: 1.5;
}
.dap-voice-tag {
  font-size: 10px;
  letter-spacing: 0.06em;
  padding: 2px 7px;
  border-radius: 4px;
  flex-shrink: 0;
  margin-top: 2px;
}
.dap-voice-q .dap-voice-tag { background: oklch(0.36 0.05 250); color: oklch(0.85 0.02 240); }
.dap-voice-a { color: oklch(0.96 0.005 240); }
.dap-voice-a .dap-voice-tag { background: var(--accent); color: white; }

/* === Privacy === */
.dap-privacy {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}
.dap-privacy-item {
  background: white;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 28px 24px;
  display: flex; flex-direction: column;
  gap: 14px;
}
.dap-privacy-icon {
  width: 56px; height: 56px;
  background: oklch(0.96 0.03 235);
  border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
}
.dap-privacy-icon svg { width: 32px; height: 32px; }
.dap-privacy-item h4 {
  font-size: 18px;
  letter-spacing: -0.01em;
  margin: 0;
}
.dap-privacy-item p {
  font-size: 14px;
  line-height: 1.55;
  color: var(--ink-soft);
  margin: 0;
}

/* === DAP Responsive === */
@media (max-width: 1100px) {
  .dap-hero-inner { grid-template-columns: 1fr; }
  .dap-pillars { grid-template-columns: repeat(2, 1fr); }
  .dap-flow { grid-template-columns: repeat(2, 1fr); gap: 8px; }
  .dap-flow-step { border-radius: 12px !important; border-left: 1px solid var(--line) !important; }
  .dap-cabin, .dap-comms, .dap-voice { grid-template-columns: 1fr; gap: 32px; }
  .dap-privacy { grid-template-columns: repeat(2, 1fr); }
  .dap-kpis { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 700px) {
  .dap-pillars, .dap-flow, .dap-privacy, .dap-kpis { grid-template-columns: 1fr; }
}
