/* ============ TOKENS ============ */
:root {
  --ink: #050812;
  --ink-2: #0A1020;
  --ink-3: #121A2E;
  --line: rgba(255,255,255,0.08);
  --line-2: rgba(255,255,255,0.14);
  --paper: #F1F5F9;
  --muted: rgba(241,245,249,0.56);
  --muted-2: rgba(241,245,249,0.38);
  --blue: #2563EB;
  --blue-2: #3B82F6;
  --sky: #0EA5E9;
  --amber: #FBBF24;
  --maple: #E63946;
  --ok: #22C55E;
  --warn: #F59E0B;

  --display: "Space Grotesk", "Inter", system-ui, sans-serif;
  --body: "Inter", system-ui, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, monospace;

  --edge: clamp(1.25rem, 3vw, 2.5rem);
  --radius: 14px;
}

[data-theme="light"] {
  --ink: #F5F3EE;
  --ink-2: #ECE8DE;
  --ink-3: #E2DDD1;
  --line: rgba(10,16,32,0.10);
  --line-2: rgba(10,16,32,0.18);
  --paper: #0A1020;
  --muted: rgba(10,16,32,0.62);
  --muted-2: rgba(10,16,32,0.42);
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  background: var(--ink);
  color: var(--paper);
  font-family: var(--body);
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  transition: background .35s ease, color .35s ease;
}

::selection { background: var(--blue); color: #fff; }

/* ============ TYPE ============ */
.display {
  font-family: var(--display);
  font-weight: 500;
  letter-spacing: -0.025em;
  line-height: 0.95;
}
.mono {
  font-family: var(--mono);
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
}
.eyebrow {
  font-family: var(--mono);
  font-size: 0.68rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--muted);
}
.h1 { font-size: clamp(2.4rem, 5.8vw, 4.75rem); }
.h2 { font-size: clamp(1.8rem, 3.6vw, 3rem); }
.h3 { font-size: clamp(1.5rem, 2.5vw, 2.25rem); }
.lead { font-size: clamp(1.05rem, 1.4vw, 1.25rem); color: var(--muted); max-width: 62ch; }

/* ============ NAV ============ */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 80;
  display: flex; align-items: center; justify-content: space-between;
  padding: 1rem var(--edge);
  transition: background .3s ease, border-color .3s ease;
  border-bottom: 1px solid transparent;
}
.nav.scrolled {
  background: color-mix(in oklab, var(--ink), transparent 8%);
  border-bottom-color: var(--line);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}
.nav__logo {
  display: flex; align-items: center; gap: 0.6rem;
  text-decoration: none; color: var(--paper);
}
.nav__logo-mark {
  width: 36px; height: 36px; border-radius: 9px;
  background: linear-gradient(135deg, var(--blue) 0%, var(--sky) 100%);
  display: grid; place-items: center;
  font-family: var(--display); font-weight: 700;
  font-size: 1.15rem; color: #fff;
  box-shadow: 0 10px 30px -12px color-mix(in oklab, var(--blue), transparent 40%);
}
.nav__logo-word {
  font-family: var(--display);
  font-weight: 500; font-size: 1.35rem;
  letter-spacing: -0.02em;
}
.nav__links {
  display: flex; align-items: center; gap: 2rem;
  list-style: none;
}
.nav__links a {
  font-family: var(--mono); font-size: 0.7rem;
  letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--muted); text-decoration: none;
  position: relative; padding: 4px 0;
  transition: color .2s ease;
  white-space: nowrap;
}
.nav__links a:hover { color: var(--paper); }
.nav__links a.active { color: var(--paper); }
.nav__links a.active::after {
  content: ""; position: absolute; left: 0; bottom: -2px;
  width: 100%; height: 1px; background: var(--blue);
}
.nav__right { display: flex; align-items: center; gap: 0.75rem; }

/* ============ BUTTONS ============ */
.btn {
  display: inline-flex; align-items: center; gap: 0.5rem;
  padding: 0.8rem 1.15rem;
  font-family: var(--mono); font-size: 0.7rem;
  letter-spacing: 0.16em; text-transform: uppercase;
  border-radius: 999px;
  border: 1px solid var(--line-2);
  background: transparent; color: var(--paper);
  text-decoration: none; cursor: pointer;
  transition: all .2s ease;
  white-space: nowrap;
}
.btn:hover { border-color: var(--paper); transform: translateY(-1px); }
.btn--solid {
  background: var(--paper); color: var(--ink);
  border-color: var(--paper);
}
.btn--solid:hover {
  background: var(--blue); color: #fff; border-color: var(--blue);
}
.btn--blue {
  background: var(--blue); color: #fff; border-color: var(--blue);
}
.btn--blue:hover { background: var(--blue-2); border-color: var(--blue-2); }
.btn--ghost { padding: 0.7rem 1rem; }

.btn__arrow {
  display: inline-block; width: 14px; height: 14px;
  transition: transform .25s ease;
}
.btn:hover .btn__arrow { transform: translate(2px, -2px); }

/* ============ LAYOUT ============ */
main { padding-top: 0; }
section { position: relative; }
.section {
  padding: clamp(3.25rem, 5.5vw, 6rem) var(--edge);
  position: relative;
}
.section--alt { background: var(--ink-2); }
.section__top {
  display: flex; justify-content: flex-start; align-items: center;
  margin-bottom: clamp(2rem, 3.5vw, 3rem); gap: clamp(1rem, 2vw, 1.75rem); flex-wrap: wrap;
}
.section__num {
  font-family: var(--display); font-weight: 500;
  font-size: clamp(2.75rem, 5vw, 5rem);
  line-height: 0.9; letter-spacing: -0.04em;
  color: transparent;
  -webkit-text-stroke: 1px var(--line-2);
}
.section__label { display: flex; flex-direction: column; gap: 0.5rem; max-width: 52ch; }
.section__label .eyebrow { color: var(--blue-2); }

/* ============ HERO ============ */
.hero {
  min-height: 100vh;
  padding: calc(68px + 2rem) var(--edge) 3rem;
  display: flex; flex-direction: column;
  position: relative; overflow: hidden;
}
.hero__rail {
  display: flex; align-items: center; gap: 1.5rem;
  margin-top: 1.5rem;
}
.hero__rail button {
  font-family: var(--mono); font-size: 0.68rem;
  letter-spacing: 0.16em; text-transform: uppercase;
  padding: 0.4rem 0.75rem;
  border: 1px solid var(--line);
  background: transparent; color: var(--muted);
  border-radius: 999px; cursor: pointer;
  transition: all .2s;
}
.hero__rail button.active {
  color: var(--paper); border-color: var(--paper);
  background: color-mix(in oklab, var(--paper), transparent 95%);
}
.hero__rail button:hover { color: var(--paper); }
.hero__rail-dots {
  display: flex; gap: 4px; margin-left: auto;
  font-family: var(--mono); font-size: 0.7rem;
  color: var(--muted-2);
}

.hero__main {
  flex: 1; display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 3rem;
  align-items: end;
  margin-top: 2rem;
}
@media (max-width: 980px) {
  .hero__main { grid-template-columns: 1fr; gap: 2rem; }
}

.hero__num {
  font-family: var(--display); font-weight: 400;
  font-size: clamp(9rem, 28vw, 28rem);
  line-height: 0.82;
  letter-spacing: -0.06em;
  position: absolute;
  right: var(--edge); bottom: 2rem;
  color: transparent;
  -webkit-text-stroke: 1px var(--line-2);
  pointer-events: none;
  user-select: none;
  mix-blend-mode: screen;
  z-index: 0;
}

.hero__kicker {
  display: flex; align-items: center; gap: 0.75rem;
  margin-bottom: 2rem;
}
.hero__kicker-dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--ok); box-shadow: 0 0 12px var(--ok);
  animation: pulse 2s ease-in-out infinite;
}
@keyframes pulse {
  0%,100% { opacity: 1; transform: scale(1); }
  50% { opacity: .5; transform: scale(.85); }
}

.hero__title {
  position: relative; z-index: 2;
}
.hero__title .line {
  display: block; overflow: hidden;
}
.hero__title .line-inner {
  display: inline-block;
  animation: rise 1s cubic-bezier(0.16,1,0.3,1) both;
}
.hero__title .line:nth-child(2) .line-inner { animation-delay: .12s; }
.hero__title .line:nth-child(3) .line-inner { animation-delay: .24s; }
.hero__title .line:nth-child(4) .line-inner { animation-delay: .36s; }
@keyframes rise {
  from { transform: translateY(100%); }
  to { transform: translateY(0); }
}

.hero__title em {
  font-style: normal; font-family: var(--display);
  font-weight: 400;
  background: linear-gradient(90deg, var(--blue-2) 0%, var(--sky) 100%);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent;
}
.hero__title .pa {
  font-family: var(--display); font-weight: 500;
}

.hero__meta {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--line);
  margin-top: 2rem;
}
.hero__meta-item .mono { display: block; margin-bottom: 0.35rem; }
.hero__meta-item p { font-size: 0.95rem; color: var(--paper); max-width: 32ch; }

.hero__cta {
  display: flex; gap: 0.75rem; margin-top: 2rem;
  flex-wrap: wrap;
}

/* Hero concept visual panel */
.hero__viz {
  position: relative;
  min-height: 460px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background:
    radial-gradient(circle at 20% 20%, color-mix(in oklab, var(--blue), transparent 88%) 0%, transparent 50%),
    radial-gradient(circle at 80% 80%, color-mix(in oklab, var(--sky), transparent 92%) 0%, transparent 50%),
    var(--ink-2);
  overflow: hidden;
}
.hero__viz-label {
  position: absolute; top: 1rem; left: 1rem; z-index: 3;
  display: flex; gap: 0.5rem; align-items: center;
  font-family: var(--mono); font-size: 0.65rem;
  letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--muted);
}
.hero__viz-label span.dot { width: 6px; height: 6px; border-radius: 50%; background: var(--blue-2); }

/* Map concept */
.viz-map { position: absolute; inset: 0; }
.viz-map svg { width: 100%; height: 100%; }
.truck-dot {
  fill: var(--amber); stroke: #fff; stroke-width: 1;
  filter: drop-shadow(0 0 8px var(--amber));
}
@keyframes dash {
  to { stroke-dashoffset: -200; }
}
.lane-path {
  stroke: var(--blue-2); stroke-width: 1.5; fill: none;
  stroke-dasharray: 4 4;
  animation: dash 12s linear infinite;
}
.lane-path--active { stroke: var(--sky); stroke-width: 2; stroke-dasharray: none; }

/* Counter concept */
.viz-counter {
  position: absolute; inset: 0;
  display: grid; grid-template-rows: 1fr 1fr 1fr;
  padding: 3rem 2rem;
  gap: 1rem;
}
.viz-counter-row {
  display: grid; grid-template-columns: auto 1fr auto;
  gap: 1rem; align-items: center;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--line);
}
.viz-counter-row:last-child { border-bottom: none; }
.viz-counter-row .n {
  font-family: var(--display); font-size: 3.5rem;
  font-weight: 400; line-height: 1;
  color: transparent; -webkit-text-stroke: 1px var(--paper);
}
.viz-counter-row.active .n {
  -webkit-text-stroke: 0;
  background: linear-gradient(180deg, var(--blue-2), var(--sky));
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent;
}
.viz-counter-row .label { font-family: var(--display); font-size: 1.1rem; }
.viz-counter-row .meta { font-family: var(--mono); font-size: 0.65rem; color: var(--muted); letter-spacing: 0.1em; }

/* Yard photo placeholder */
.viz-yard {
  position: absolute; inset: 0;
  background:
    repeating-linear-gradient(45deg,
      color-mix(in oklab, var(--blue), transparent 92%) 0,
      color-mix(in oklab, var(--blue), transparent 92%) 8px,
      transparent 8px, transparent 16px),
    linear-gradient(180deg, var(--ink-3) 0%, var(--ink-2) 100%);
  display: flex; align-items: flex-end;
  padding: 1.25rem;
}
.viz-yard-caption {
  font-family: var(--mono); font-size: 0.7rem;
  color: var(--muted); letter-spacing: 0.14em;
}

/* Lane metaphor */
.viz-lane {
  position: absolute; inset: 0;
  display: flex; align-items: center; justify-content: center;
  padding: 2rem;
}
.viz-lane svg { width: 100%; height: auto; }

/* Split hero */
.viz-split { position: absolute; inset: 0; display: grid; grid-template-columns: 1fr 1fr; }
.viz-split > div {
  padding: 2rem 1.5rem; display: flex; flex-direction: column;
  justify-content: space-between;
}
.viz-split > div:first-child { border-right: 1px solid var(--line); }
.viz-split h3 { font-family: var(--display); font-size: 1.8rem; line-height: 1.05; }

/* ============ WHATSAPP ============ */
.wa {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: clamp(2rem, 5vw, 6rem);
  align-items: center;
}
@media (max-width: 900px) { .wa { grid-template-columns: 1fr; } }

.wa__copy h2 { margin-bottom: 1.5rem; }
.wa__list { list-style: none; margin-top: 2rem; }
.wa__list li {
  display: grid; grid-template-columns: 28px 1fr;
  gap: 1rem; padding: 1rem 0;
  border-top: 1px solid var(--line);
  font-size: 0.98rem;
}
.wa__list li:last-child { border-bottom: 1px solid var(--line); }
.wa__list .num {
  font-family: var(--mono); font-size: 0.7rem;
  color: var(--blue-2); padding-top: 3px;
}

.phone {
  width: min(380px, 90%);
  margin: 0 auto;
  background: #0B141A;
  border: 1px solid var(--line-2);
  border-radius: 28px;
  padding: 10px;
  box-shadow:
    0 30px 60px -20px rgba(0,0,0,0.6),
    0 0 0 1px rgba(255,255,255,0.02);
  position: relative;
}
.phone__screen {
  background: #0B141A;
  border-radius: 20px;
  overflow: hidden;
  min-height: 560px;
  position: relative;
}
.phone__header {
  background: #1F2C34; padding: 12px 16px;
  display: flex; align-items: center; gap: 10px;
  font-family: var(--body);
}
.phone__header .avatar {
  width: 36px; height: 36px; border-radius: 50%;
  background: linear-gradient(135deg, var(--amber), var(--maple));
  display: grid; place-items: center;
  font-weight: 600; font-size: 0.9rem; color: #000;
}
.phone__header .name { font-size: 0.95rem; font-weight: 500; color: #E9EDEF; }
.phone__header .status { font-size: 0.7rem; color: #8696A0; }
.phone__body {
  padding: 16px 12px;
  background:
    radial-gradient(circle at 30% 20%, rgba(11,20,26,0.6), transparent 60%),
    #0B141A;
  min-height: 470px;
  display: flex; flex-direction: column;
  gap: 8px;
}
.msg {
  max-width: 82%;
  padding: 8px 10px 6px;
  border-radius: 8px;
  font-size: 0.85rem;
  line-height: 1.35;
  color: #E9EDEF;
  position: relative;
  animation: msgIn .5s cubic-bezier(0.16,1,0.3,1) both;
}
@keyframes msgIn {
  from { transform: translateY(8px); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}
.msg.them { background: #1F2C34; align-self: flex-start; }
.msg.me { background: #005C4B; align-self: flex-end; }
.msg .time {
  font-size: 0.62rem; color: #8696A0;
  display: block; margin-top: 4px; text-align: right;
}
.msg.system {
  align-self: center; background: rgba(255,255,255,0.06);
  color: #8696A0; font-size: 0.72rem;
  padding: 4px 10px; border-radius: 6px;
}
.msg .load-card {
  background: rgba(255,255,255,0.05);
  border-left: 3px solid var(--amber);
  border-radius: 4px;
  padding: 8px; margin-top: 6px;
  font-family: var(--mono); font-size: 0.72rem;
}
.msg .doc-card {
  background: rgba(255,255,255,0.05);
  border-radius: 6px; padding: 8px;
  margin-top: 6px; display: flex; gap: 8px; align-items: center;
}
.msg .doc-card .icn {
  width: 32px; height: 32px; border-radius: 4px;
  background: rgba(239, 68, 68, 0.15);
  display: grid; place-items: center;
  font-family: var(--mono); font-size: 0.65rem;
  color: #ef4444;
}
.typing {
  align-self: flex-start; background: #1F2C34;
  padding: 10px 12px; border-radius: 8px;
  display: flex; gap: 4px;
}
.typing span {
  width: 6px; height: 6px; border-radius: 50%;
  background: #8696A0;
  animation: typing 1.4s ease-in-out infinite;
}
.typing span:nth-child(2) { animation-delay: .15s; }
.typing span:nth-child(3) { animation-delay: .3s; }
@keyframes typing {
  0%, 60%, 100% { opacity: .3; transform: translateY(0); }
  30% { opacity: 1; transform: translateY(-2px); }
}

/* ============ FEATURES ============ */
.features { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; border-top: 1px solid var(--line); }
@media (max-width: 1100px) { .features { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .features { grid-template-columns: 1fr; } }

.feature {
  padding: 2rem 1.75rem;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  min-height: 280px;
  display: flex; flex-direction: column; justify-content: space-between;
  position: relative; overflow: hidden;
  transition: background .3s ease;
  cursor: pointer;
  color: inherit;
  text-decoration: none;
}
.feature:link, .feature:visited { color: inherit; text-decoration: none; }
.res-card, .res-card:link, .res-card:visited { color: inherit; text-decoration: none; }
.switch-card, .switch-card:link, .switch-card:visited { color: inherit; text-decoration: none; }
a.reveal { color: inherit; text-decoration: none; }
.feature:hover { background: var(--ink-3); }
.feature:hover .feature__arrow { transform: translate(4px, -4px); }
.feature:hover .feature__glyph { transform: scale(1.05); color: var(--blue-2); }
.feature__num {
  font-family: var(--mono); font-size: 0.7rem;
  color: var(--muted-2); letter-spacing: 0.14em;
}
.feature__glyph {
  font-family: var(--display); font-weight: 400;
  font-size: 3.5rem; line-height: 1;
  color: var(--paper);
  transition: all .35s ease;
  margin: 1rem 0;
}
.feature__name { font-family: var(--display); font-size: 1.35rem; letter-spacing: -0.01em; }
.feature__desc { font-size: 0.88rem; color: var(--muted); margin-top: 0.5rem; }
.feature__arrow {
  position: absolute; top: 1.5rem; right: 1.5rem;
  width: 18px; height: 18px;
  transition: transform .25s ease;
  color: var(--muted-2);
}
.feature:nth-child(4n) { border-right: none; }

/* ============ CORRIDOR ============ */
.corridor { position: relative; overflow: hidden; }
.corridor__grid {
  display: grid; grid-template-columns: 1fr 1.3fr;
  gap: clamp(2rem, 5vw, 6rem);
  align-items: start;
}
@media (max-width: 900px) { .corridor__grid { grid-template-columns: 1fr; } }
.corridor__map {
  aspect-ratio: 4/3;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--ink-2);
  position: relative; overflow: hidden;
}
.corridor__map svg { width: 100%; height: 100%; }
.corridor__stats {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 1.5rem; margin-top: 2rem;
}
.stat-item { padding: 1rem 0; border-top: 1px solid var(--line); }
.stat-item .num { font-family: var(--display); font-size: 2.5rem; font-weight: 500; letter-spacing: -0.02em; }
.stat-item .label { font-family: var(--mono); font-size: 0.7rem; color: var(--muted); letter-spacing: 0.14em; text-transform: uppercase; }

/* ============ CROSS BORDER ============ */
.cb {
  border-top: 1px solid var(--line);
  padding: clamp(4rem, 7vw, 7rem) var(--edge);
}
.cb__head {
  display: grid; grid-template-columns: 1fr 1.4fr;
  gap: 3rem; margin-bottom: 3rem; align-items: end;
}
@media (max-width: 900px) { .cb__head { grid-template-columns: 1fr; } }
.cb__strip {
  display: grid; grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
}
@media (max-width: 800px) { .cb__strip { grid-template-columns: repeat(2, 1fr); } }
.cb__tile {
  background: var(--ink-2);
  padding: 2rem 1.5rem;
  min-height: 220px;
  display: flex; flex-direction: column; justify-content: space-between;
}
.cb__tile .code {
  font-family: var(--mono); font-size: 0.85rem;
  letter-spacing: 0.12em; color: var(--amber);
}
.cb__tile h3 { font-family: var(--display); font-size: 1.35rem; letter-spacing: -0.01em; }
.cb__tile p { font-size: 0.85rem; color: var(--muted); }

/* ============ INTEGRATIONS ============ */
.integrations-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 1px; background: var(--line);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
}
@media (max-width: 900px) { .integrations-grid { grid-template-columns: repeat(3, 1fr); } }
.int-tile {
  background: var(--ink);
  aspect-ratio: 3/2;
  display: grid; place-items: center;
  font-family: var(--display);
  font-weight: 500; font-size: 1.05rem;
  color: var(--muted);
  transition: all .2s;
  position: relative;
}
.int-tile:hover { background: var(--ink-3); color: var(--paper); }
.int-tile::before {
  content: attr(data-cat);
  position: absolute; top: 8px; left: 10px;
  font-family: var(--mono); font-size: 0.55rem;
  letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--muted-2);
}

/* ============ ROI ============ */
.roi {
  display: grid; grid-template-columns: 1fr 1.2fr;
  gap: clamp(2rem, 5vw, 5rem);
  align-items: stretch;
}
@media (max-width: 900px) { .roi { grid-template-columns: 1fr; } }
.roi__form {
  padding: 2rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--ink-2);
}
.roi__row { margin-bottom: 1.25rem; }
.roi__row label {
  display: flex; justify-content: space-between;
  font-family: var(--mono); font-size: 0.7rem;
  letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 0.5rem;
}
.roi__row label .val { color: var(--paper); font-family: var(--display); font-size: 0.95rem; letter-spacing: 0; text-transform: none; }
.roi__row input[type="range"] {
  width: 100%; height: 4px;
  appearance: none; -webkit-appearance: none;
  background: var(--line-2); border-radius: 2px;
  outline: none;
}
.roi__row input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 16px; height: 16px; border-radius: 50%;
  background: var(--blue-2); cursor: pointer;
  border: 2px solid var(--ink);
  box-shadow: 0 0 0 1px var(--blue-2);
}
.roi__row input[type="range"]::-moz-range-thumb {
  width: 16px; height: 16px; border-radius: 50%;
  background: var(--blue-2); cursor: pointer; border: 2px solid var(--ink);
}
.roi__out {
  padding: 2rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background:
    radial-gradient(circle at 80% 20%, color-mix(in oklab, var(--blue), transparent 85%) 0%, transparent 50%),
    var(--ink-2);
  display: flex; flex-direction: column;
  justify-content: space-between;
}
.roi__big {
  font-family: var(--display); font-weight: 400;
  font-size: clamp(3.5rem, 7vw, 6rem);
  line-height: 0.9; letter-spacing: -0.03em;
  background: linear-gradient(90deg, var(--blue-2), var(--sky));
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent;
  margin: 1rem 0;
}
.roi__breakdown { display: grid; gap: 0.5rem; margin-top: 1rem; }
.roi__breakdown div {
  display: flex; justify-content: space-between;
  padding: 0.75rem 0; border-top: 1px solid var(--line);
  font-family: var(--mono); font-size: 0.82rem;
}
.roi__breakdown .num { color: var(--paper); }

/* ============ SWITCH FROM ============ */
.switch-from {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--ink-2);
}
.switch-from__head {
  padding: 2rem;
  display: grid; grid-template-columns: 1fr auto;
  gap: 2rem; align-items: end;
  border-bottom: 1px solid var(--line);
}
.switch-from__grid {
  display: grid; grid-template-columns: repeat(4, 1fr);
  gap: 1px; background: var(--line);
}
@media (max-width: 900px) { .switch-from__grid { grid-template-columns: repeat(2, 1fr); } }
.switch-card {
  background: var(--ink-2);
  padding: 1.5rem;
  display: flex; flex-direction: column; gap: 0.75rem;
  min-height: 180px;
  text-decoration: none; color: inherit;
  transition: background .25s ease;
  position: relative;
}
.switch-card:hover { background: var(--ink-3); }
.switch-card .name { font-family: var(--display); font-size: 1.15rem; letter-spacing: -0.01em; }
.switch-card .tag { font-family: var(--mono); font-size: 0.65rem; color: var(--muted); letter-spacing: 0.14em; text-transform: uppercase; }
.switch-card .arrow { position: absolute; top: 1.2rem; right: 1.2rem; color: var(--muted-2); font-size: 0.9rem; }
.switch-card:hover .arrow { color: var(--blue-2); }

/* ============ PRICING TEASE ============ */
.pricing-tease {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}
@media (max-width: 900px) { .pricing-tease { grid-template-columns: 1fr; } }
.price-card {
  padding: 2rem; border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--ink-2);
  display: flex; flex-direction: column; gap: 1rem;
  min-height: 360px;
}
.price-card--feature {
  background: linear-gradient(180deg, color-mix(in oklab, var(--blue), transparent 85%) 0%, var(--ink-2) 100%);
  border-color: var(--blue);
}
.price-card .tier { font-family: var(--mono); font-size: 0.72rem; color: var(--muted); letter-spacing: 0.14em; text-transform: uppercase; }
.price-card .amount { font-family: var(--display); font-size: 3rem; font-weight: 400; letter-spacing: -0.02em; line-height: 1; }
.price-card .amount .unit { font-size: 0.9rem; color: var(--muted); font-family: var(--mono); letter-spacing: 0.08em; display: block; margin-top: 0.4rem; text-transform: uppercase; }
.price-card ul { list-style: none; margin-top: 0.5rem; }
.price-card ul li {
  padding: 0.4rem 0; font-size: 0.88rem;
  display: flex; gap: 0.5rem;
}
.price-card ul li::before { content: "→"; color: var(--blue-2); font-family: var(--mono); }

/* ============ RESOURCES ============ */
.resources-grid {
  display: grid; grid-template-columns: 1.4fr 1fr 1fr;
  gap: 1px; background: var(--line);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
}
@media (max-width: 900px) { .resources-grid { grid-template-columns: 1fr; } }
.res-card {
  background: var(--ink-2);
  padding: 1.75rem;
  min-height: 280px;
  display: flex; flex-direction: column; justify-content: space-between;
  text-decoration: none; color: inherit;
  transition: background .2s;
  position: relative;
}
.res-card:hover { background: var(--ink-3); }
.res-card .kind {
  font-family: var(--mono); font-size: 0.65rem;
  color: var(--blue-2); letter-spacing: 0.18em; text-transform: uppercase;
}
.res-card h3 { font-family: var(--display); font-size: 1.35rem; letter-spacing: -0.01em; margin-top: 1rem; }
.res-card .meta { font-family: var(--mono); font-size: 0.68rem; color: var(--muted); letter-spacing: 0.1em; }
.res-card--big { grid-row: span 1; }
.res-card--big h3 { font-size: 1.75rem; }

/* ============ FINAL CTA ============ */
.final-cta {
  min-height: 52vh;
  display: flex; flex-direction: column; justify-content: center;
  padding: clamp(3.5rem, 6vw, 7rem) var(--edge);
  position: relative;
  border-top: 1px solid var(--line);
}
.final-cta__big {
  font-family: var(--display); font-weight: 400;
  font-size: clamp(2.4rem, 7vw, 5.75rem);
  letter-spacing: -0.03em; line-height: 0.95;
}
.final-cta__big em {
  font-style: normal;
  background: linear-gradient(90deg, var(--blue-2), var(--sky));
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent;
}
.final-cta__cta { display: flex; gap: 0.75rem; margin-top: 3rem; flex-wrap: wrap; }

/* ============ FOOTER ============ */
.footer {
  padding: clamp(4rem, 6vw, 6rem) var(--edge) 2rem;
  background: var(--ink);
  border-top: 1px solid var(--line);
}
.footer__top {
  display: grid; grid-template-columns: 1.4fr repeat(4, 1fr);
  gap: 2rem;
  padding-bottom: 3rem; border-bottom: 1px solid var(--line);
}
@media (max-width: 900px) { .footer__top { grid-template-columns: 1fr 1fr; } }
.footer__brand .nav__logo { margin-bottom: 1rem; }
.footer__col h4 {
  font-family: var(--mono); font-size: 0.7rem;
  letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--muted); margin-bottom: 1rem;
}
.footer__col ul { list-style: none; display: flex; flex-direction: column; gap: 0.55rem; }
.footer__col ul li a {
  color: var(--paper); text-decoration: none;
  font-size: 0.92rem;
  transition: color .2s;
}
.footer__col ul li a:hover { color: var(--blue-2); }
.footer__bot {
  padding-top: 2rem;
  display: flex; justify-content: space-between; align-items: center;
  flex-wrap: wrap; gap: 1rem;
  font-family: var(--mono); font-size: 0.68rem;
  color: var(--muted); letter-spacing: 0.1em;
}

/* ============ GEO SWITCHER ============ */
.geo {
  position: fixed; bottom: 1.25rem; right: 1.25rem;
  z-index: 70;
  background: color-mix(in oklab, var(--ink-2), transparent 5%);
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--line-2);
  border-radius: 12px;
  padding: 0.75rem 1rem;
  max-width: 320px;
  font-size: 0.8rem;
  box-shadow: 0 20px 40px -20px rgba(0,0,0,0.5);
}
.geo.collapsed { padding: 0.5rem 0.75rem; }
.geo__head {
  display: flex; align-items: center; gap: 0.5rem;
  margin-bottom: 0.5rem;
}
.geo.collapsed .geo__head { margin-bottom: 0; }
.geo__dot { width: 8px; height: 8px; border-radius: 50%; background: var(--ok); box-shadow: 0 0 10px var(--ok); }
.geo__label { font-family: var(--mono); font-size: 0.65rem; letter-spacing: 0.14em; color: var(--muted); text-transform: uppercase; }
.geo__name { font-family: var(--display); font-size: 0.95rem; }
.geo__msg { color: var(--muted); font-size: 0.78rem; margin-bottom: 0.6rem; }
.geo__options { display: flex; gap: 0.35rem; flex-wrap: wrap; }
.geo__options button {
  font-family: var(--mono); font-size: 0.63rem;
  padding: 0.35rem 0.6rem;
  background: transparent; border: 1px solid var(--line-2);
  color: var(--paper); border-radius: 999px; cursor: pointer;
  text-transform: uppercase; letter-spacing: 0.1em;
  transition: all .2s;
}
.geo__options button:hover { background: var(--line-2); }
.geo__options button.active { background: var(--blue); border-color: var(--blue); color: #fff; }
.geo__close {
  background: transparent; border: none; color: var(--muted);
  cursor: pointer; font-size: 1rem; margin-left: auto;
}

/* ============ THEME TOGGLE ============ */
.theme-toggle {
  width: 48px; height: 28px;
  border-radius: 999px;
  border: 1px solid var(--line-2);
  background: color-mix(in oklab, var(--paper), transparent 86%);
  cursor: pointer;
  position: relative;
  transition: border-color .25s, background .25s;
  flex-shrink: 0;
}
.theme-toggle:hover { border-color: var(--paper); }
.theme-toggle .knob {
  position: absolute; top: 2px; left: 2px;
  width: 22px; height: 22px; border-radius: 50%;
  background: var(--paper);
  box-shadow: 0 1px 4px rgba(0,0,0,0.35);
  transition: transform .25s cubic-bezier(0.16,1,0.3,1);
  display: grid; place-items: center;
  color: var(--ink);
  font-size: 0.7rem; line-height: 1;
}
[data-theme="light"] .theme-toggle .knob { transform: translateX(20px); }

/* ============ SUB-PAGE HERO ============ */
.subhero {
  padding: calc(68px + 2.5rem) var(--edge) 3rem;
  border-bottom: 1px solid var(--line);
}
.subhero h1 { font-size: clamp(2rem, 4.6vw, 3.75rem) !important; }
.subhero__crumb { font-family: var(--mono); font-size: 0.7rem; color: var(--muted); letter-spacing: 0.14em; text-transform: uppercase; }
.subhero h1 { margin: 1rem 0 1.5rem; }

/* Serve Tabs */
.tabs {
  display: flex; gap: 0.5rem;
  border-bottom: 1px solid var(--line);
  flex-wrap: wrap;
}
.tab {
  padding: 1rem 1.5rem;
  font-family: var(--mono); font-size: 0.72rem;
  letter-spacing: 0.14em; text-transform: uppercase;
  background: transparent; border: none; color: var(--muted);
  cursor: pointer; position: relative;
  border-bottom: 2px solid transparent;
  margin-bottom: -1px;
}
.tab.active { color: var(--paper); border-bottom-color: var(--blue); }
.tab:hover { color: var(--paper); }

/* Dispatch page */
.dispatch-demo {
  border: 1px solid var(--line); border-radius: var(--radius);
  background: var(--ink-2);
  overflow: hidden;
  display: grid; grid-template-columns: 200px 1fr 280px;
  min-height: 520px;
}
@media (max-width: 1000px) { .dispatch-demo { grid-template-columns: 1fr; } }
.dispatch-demo .pane { padding: 1.25rem; border-right: 1px solid var(--line); }
.dispatch-demo .pane:last-child { border-right: none; }
.dispatch-demo .pane h4 { font-family: var(--mono); font-size: 0.68rem; color: var(--muted); letter-spacing: 0.14em; text-transform: uppercase; margin-bottom: 1rem; }
.dispatch-row {
  padding: 0.75rem; margin-bottom: 0.5rem;
  border-radius: 8px; background: var(--ink-3);
  font-size: 0.82rem; cursor: pointer;
  transition: all .2s;
  border: 1px solid transparent;
}
.dispatch-row:hover, .dispatch-row.active { border-color: var(--blue); background: color-mix(in oklab, var(--blue), transparent 88%); }
.dispatch-row .id { font-family: var(--mono); font-size: 0.68rem; color: var(--muted); }
.dispatch-row .lane { font-family: var(--display); margin-top: 2px; }
.dispatch-status {
  display: inline-block; padding: 2px 8px;
  font-family: var(--mono); font-size: 0.6rem;
  letter-spacing: 0.1em; text-transform: uppercase;
  border-radius: 4px;
  margin-top: 6px;
}
.dispatch-status--assigned { background: color-mix(in oklab, var(--blue), transparent 80%); color: var(--blue-2); }
.dispatch-status--transit { background: color-mix(in oklab, var(--amber), transparent 80%); color: var(--amber); }
.dispatch-status--delivered { background: color-mix(in oklab, var(--ok), transparent 80%); color: var(--ok); }

/* Pricing page */
.pricing-toggle {
  display: inline-flex;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 3px;
}
.pricing-toggle button {
  font-family: var(--mono); font-size: 0.68rem;
  letter-spacing: 0.12em; text-transform: uppercase;
  padding: 0.5rem 1rem;
  background: transparent; border: none; color: var(--muted);
  cursor: pointer; border-radius: 999px;
}
.pricing-toggle button.active { background: var(--paper); color: var(--ink); }

.compare-table {
  width: 100%; border-collapse: collapse;
  font-size: 0.92rem;
}
.compare-table th, .compare-table td {
  padding: 1rem 1.2rem; text-align: left;
  border-bottom: 1px solid var(--line);
}
.compare-table th {
  font-family: var(--mono); font-size: 0.68rem;
  letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--muted); font-weight: 500;
}
.compare-table td:first-child { color: var(--muted); }
.compare-table .yes { color: var(--ok); }
.compare-table .no { color: var(--muted-2); }
.compare-table tr:hover td { background: var(--ink-3); }

/* Marquee */
.marquee {
  overflow: hidden;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: 1.25rem 0;
  background: var(--ink-2);
  position: relative;
}
.marquee__track {
  display: flex; gap: 4rem;
  animation: marquee 40s linear infinite;
  width: max-content;
}
.marquee__track span {
  font-family: var(--display); font-size: clamp(1.5rem, 3vw, 2.5rem);
  color: var(--muted); letter-spacing: -0.01em;
  white-space: nowrap;
  display: flex; align-items: center; gap: 4rem;
}
.marquee__track span::after {
  content: "◆"; font-size: 0.8em; color: var(--blue-2);
}
@keyframes marquee {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

/* Scroll reveal */
.reveal {
  opacity: 0; transform: translateY(24px);
  transition: opacity .8s cubic-bezier(0.16,1,0.3,1), transform .8s cubic-bezier(0.16,1,0.3,1);
}
.reveal.in { opacity: 1; transform: translateY(0); }

/* Maple leaf accent */
.maple {
  display: inline-block; width: 0.85em; height: 0.85em;
  vertical-align: -0.05em;
  background: var(--maple);
  -webkit-mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 100'><path d='M50 10 L55 30 L70 25 L60 40 L85 45 L65 55 L75 75 L55 65 L50 90 L45 65 L25 75 L35 55 L15 45 L40 40 L30 25 L45 30 Z'/></svg>") no-repeat center/contain;
          mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 100'><path d='M50 10 L55 30 L70 25 L60 40 L85 45 L65 55 L75 75 L55 65 L50 90 L45 65 L25 75 L35 55 L15 45 L40 40 L30 25 L45 30 Z'/></svg>") no-repeat center/contain;
}

/* Mobile nav */
.nav__burger { display: none; }
.nav__mobile { display: none; }
.nav__signin, .nav__demo { display: inline-flex; }

@media (max-width: 1120px) {
  .nav__links { display: none; }
  .nav__signin, .nav__demo { display: none; }
  .nav__burger {
    display: inline-flex; flex-direction: column; justify-content: center; gap: 4px;
    width: 40px; height: 40px; padding: 9px;
    background: transparent; border: 1px solid var(--line-2); border-radius: 10px;
    cursor: pointer;
  }
  .nav__burger span {
    display: block; height: 2px; width: 100%; border-radius: 2px;
    background: var(--paper); transition: transform .25s ease, opacity .2s ease;
  }
  .nav__burger.open span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
  .nav__burger.open span:nth-child(2) { opacity: 0; }
  .nav__burger.open span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

  .nav__mobile {
    display: flex; flex-direction: column;
    position: absolute; top: 100%; left: 0; right: 0;
    background: color-mix(in oklab, var(--ink), transparent 2%);
    border-bottom: 1px solid var(--line);
    backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px);
    padding: 0.5rem var(--edge) 1.25rem;
    gap: 0.25rem;
    max-height: 0; overflow: hidden; opacity: 0;
    transition: max-height .35s ease, opacity .25s ease, padding .35s ease;
    pointer-events: none;
  }
  .nav__mobile.open { max-height: 80vh; opacity: 1; pointer-events: auto; padding-top: 0.75rem; }
  .nav__mobile a {
    font-family: var(--mono); font-size: 0.8rem; letter-spacing: 0.12em; text-transform: uppercase;
    color: var(--paper); text-decoration: none; padding: 0.85rem 0.25rem;
    border-bottom: 1px solid var(--line);
  }
  .nav__mobile a.active { color: var(--blue-2); }
  .nav__mobile-cta { display: flex; gap: 0.6rem; margin-top: 1rem; flex-wrap: wrap; }
  .nav__mobile-cta .btn { flex: 1; justify-content: center; }
}

/* ============ MOBILE / TOUCH ============ */
/* let the page scroll over static maps on touch devices */
.leaf-map { touch-action: pan-y; }

/* ============ CONTENT COPY-PASTE LOCK ============================== */
/* Block casual content theft: disable user text selection across the
 * marketing surface. Form fields are explicitly whitelisted so people
 * can still type/paste into the waitlist + contact forms.
 * Note: this is a deterrent, not real DRM — anyone who opens DevTools
 * can read the source. But it stops drag-select-then-Ctrl-C copying. */
body, .nav, main, footer { -webkit-user-select: none; -moz-user-select: none; user-select: none; }
input, textarea, select, [contenteditable="true"] {
  -webkit-user-select: text; -moz-user-select: text; user-select: text;
}
img, video { -webkit-user-drag: none; user-drag: none; }

@media (max-width: 760px) {
  .hero { padding-top: calc(60px + 1.25rem); min-height: auto; }
  .hero__main { grid-template-columns: 1fr; gap: 1.75rem; }
  .hero__viz { min-height: 320px; }
  .hero__num { font-size: clamp(7rem, 40vw, 12rem); opacity: 0.5; }
  .hero__meta { grid-template-columns: 1fr; gap: 1rem; }
  .hero__rail { flex-wrap: wrap; gap: 0.4rem; }
  .hero__rail-dots { margin-left: 0; }

  .serve-stage { grid-template-columns: 1fr; }
  .roi { grid-template-columns: 1fr; }
  .wa { grid-template-columns: 1fr; }
  .corridor__grid { grid-template-columns: 1fr; }
  .corridor__map { aspect-ratio: 4 / 3.4; }
  .cb__head, .cb__strip { grid-template-columns: 1fr; }
  .pricing-tease { grid-template-columns: 1fr; }
  .switch-from__grid { grid-template-columns: 1fr 1fr; }
  .resources-grid { grid-template-columns: 1fr; }
  .faq-grid { grid-template-columns: 1fr !important; }
  .footer__top { grid-template-columns: 1fr 1fr; gap: 1.5rem; }

  /* pricing FAQ + dispatch features stack */
  .features { grid-template-columns: 1fr !important; }
  .dispatch-demo { grid-template-columns: 1fr !important; }
  .dispatch-demo .pane { border-right: none; border-bottom: 1px solid var(--line); }

  /* big display type shouldn't overflow on phones */
  .h1 { font-size: clamp(2.1rem, 9vw, 3rem); }
  .subhero h1 { font-size: clamp(1.85rem, 8.5vw, 2.6rem) !important; }
  .final-cta__big { font-size: clamp(2.1rem, 11vw, 3.4rem); }
  .section__num { font-size: clamp(2.25rem, 12vw, 3.5rem); }

  /* pane-stack 3D visual: flatten a touch so it fits */
  .pane-stack { min-height: 340px; }
  .pane-stack__scene { width: min(74%, 320px); }

  /* ops console body stacks */
  .ops__body { grid-template-columns: 1fr; }
  .ops__panel + .ops__panel { border-left: none; }

  /* tables scroll horizontally */
  .compare-table { font-size: 0.8rem; }
  .compare-table th, .compare-table td { padding: 0.7rem 0.8rem; }
}

@media (max-width: 460px) {
  :root { --edge: 1rem; }
  .nav { padding: 0.7rem 1rem; }
  .nav__logo-word { font-size: 1.1rem; }
  .switch-from__grid { grid-template-columns: 1fr; }
  .footer__top { grid-template-columns: 1fr; }
  .hero__cta .btn, .final-cta__cta .btn { width: 100%; justify-content: center; }
  .geo { left: auto; right: 0.75rem; bottom: 0.75rem; max-width: calc(100vw - 1.5rem); }
}

/* ============ SERVE STAGE + OPS CONSOLE ============ */
.serve-stage {
  display: grid;
  grid-template-columns: 1.55fr 1fr;
  gap: clamp(2rem, 4vw, 4.5rem);
  align-items: center;
}
@media (max-width: 1040px) { .serve-stage { grid-template-columns: 1fr; gap: 2.5rem; } }
.serve-stage__label .section__num { margin-bottom: 0.5rem; }
.serve-stage__label .eyebrow { color: var(--blue-2); display: block; margin-bottom: 0.75rem; }
.serve-stage__label h2 { margin-bottom: 1rem; }

.ops {
  --ops-accent: #3B82F6;
  position: relative;
  border: 1px solid rgba(255,255,255,0.10);
  border-radius: 16px;
  background: linear-gradient(180deg, #0B1120 0%, #070B14 100%);
  overflow: hidden;
  color: #E6EDF5;
  box-shadow: 0 50px 90px -50px rgba(0,0,0,0.75), inset 0 1px 0 rgba(255,255,255,0.05);
  font-family: var(--body);
  -webkit-font-smoothing: antialiased;
}
.ops__bar {
  display: flex; align-items: center; gap: 0.7rem;
  padding: 0.7rem 1rem;
  border-bottom: 1px solid rgba(255,255,255,0.07);
  background: rgba(255,255,255,0.015);
}
.ops__dots { display: flex; gap: 6px; }
.ops__dots i { width: 10px; height: 10px; border-radius: 50%; background: rgba(255,255,255,0.16); }
.ops__view { font-family: var(--mono); font-size: 0.6rem; letter-spacing: 0.18em; text-transform: uppercase; color: rgba(230,237,245,0.55); }
.ops__live { margin-left: auto; font-family: var(--mono); font-size: 0.58rem; letter-spacing: 0.16em; text-transform: uppercase; color: var(--ops-accent); display: flex; align-items: center; gap: 6px; }
.ops__live i { width: 6px; height: 6px; border-radius: 50%; background: var(--ops-accent); box-shadow: 0 0 8px var(--ops-accent); animation: pulse 2s ease-in-out infinite; }

.ops__kpis { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; background: rgba(255,255,255,0.07); }
@media (max-width: 560px) { .ops__kpis { grid-template-columns: repeat(2, 1fr); } }
.ops__kpi { background: #080D16; padding: 0.95rem 0.85rem; }
.ops__kpi-top { display: flex; align-items: center; gap: 0.55rem; }
.ops__chip { width: 30px; height: 30px; border-radius: 8px; display: grid; place-items: center; font-size: 0.9rem; color: #fff; flex-shrink: 0; }
.ops__kpi-label { font-size: 0.64rem; color: rgba(230,237,245,0.5); letter-spacing: 0.02em; line-height: 1.1; }
.ops__kpi-val { font-family: var(--display); font-weight: 500; font-size: 1.55rem; margin-top: 0.55rem; letter-spacing: -0.02em; line-height: 1; }
.ops__kpi-sub { font-size: 0.6rem; color: rgba(230,237,245,0.4); margin-top: 0.3rem; font-family: var(--mono); letter-spacing: 0.02em; }
.ops__kpi-sub.warn { color: #F59E0B; }

.ops__body { display: grid; grid-template-columns: 1.5fr 1fr; }
@media (max-width: 700px) { .ops__body { grid-template-columns: 1fr; } }
.ops__panel { padding: 1rem; border-top: 1px solid rgba(255,255,255,0.07); }
.ops__panel + .ops__panel { border-left: 1px solid rgba(255,255,255,0.07); }
@media (max-width: 700px) { .ops__panel + .ops__panel { border-left: none; } }
.ops__h { font-size: 0.62rem; font-family: var(--mono); letter-spacing: 0.16em; text-transform: uppercase; color: rgba(230,237,245,0.55); margin-bottom: 0.85rem; display: flex; align-items: center; gap: 0.4rem; }
.ops__h .spk { color: var(--ops-accent); }

.ops__chart-wrap { position: relative; }
.ops__chart-svg { width: 100%; height: 130px; display: block; }
.ops__chart-draw { stroke: var(--ops-accent); stroke-width: 2; fill: none; stroke-dasharray: 600; stroke-dashoffset: 600; animation: opsDraw 1.6s cubic-bezier(0.16,1,0.3,1) forwards; }
.ops__chart-proj { stroke: #F59E0B; stroke-width: 1.5; fill: none; stroke-dasharray: 4 4; opacity: 0.7; }
@keyframes opsDraw { to { stroke-dashoffset: 0; } }
.ops__chart-axis { font-family: var(--mono); font-size: 7px; fill: rgba(230,237,245,0.35); }

.ops__feed { max-height: 168px; overflow: hidden; }
.ops__feed-item { display: grid; grid-template-columns: auto 1fr auto; gap: 0.55rem; padding: 0.5rem 0; border-top: 1px solid rgba(255,255,255,0.05); animation: opsFeedIn 0.5s cubic-bezier(0.16,1,0.3,1) both; }
.ops__feed-item:first-child { border-top: none; }
.ops__feed-item i { width: 7px; height: 7px; border-radius: 50%; margin-top: 5px; }
.ops__feed-text { font-size: 0.72rem; color: rgba(230,237,245,0.82); line-height: 1.3; }
.ops__feed-time { font-size: 0.58rem; color: rgba(230,237,245,0.35); font-family: var(--mono); white-space: nowrap; }
@keyframes opsFeedIn { from { opacity: 0; transform: translateY(-6px); } to { opacity: 1; transform: translateY(0); } }

.ops__pipe { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; background: rgba(255,255,255,0.07); border-top: 1px solid rgba(255,255,255,0.07); }
.ops__stage { background: #080D16; padding: 0.6rem 0.7rem; position: relative; overflow: hidden; }
.ops__stage-name { font-size: 0.55rem; font-family: var(--mono); letter-spacing: 0.1em; text-transform: uppercase; color: rgba(230,237,245,0.4); }
.ops__stage-count { font-family: var(--display); font-weight: 500; font-size: 1.15rem; color: var(--ops-accent); margin-top: 2px; }
.ops__stage-bar { height: 3px; border-radius: 2px; background: var(--ops-accent); margin-top: 0.4rem; transform-origin: left; animation: opsBar 1.4s cubic-bezier(0.16,1,0.3,1) both; }
@keyframes opsBar { from { transform: scaleX(0); } }

/* ============ SINGLE-PANE STACK (dispatch hero visual) ============ */
.pane-stack {
  position: relative;
  perspective: 1500px;
  min-height: 440px;
  border: 1px solid rgba(255,255,255,0.10);
  border-radius: 16px;
  background:
    radial-gradient(circle at 50% 38%, rgba(37,99,235,0.14), transparent 58%),
    linear-gradient(180deg, #0B1120 0%, #060A12 100%);
  overflow: hidden;
  display: grid; place-items: center;
  box-shadow: 0 50px 90px -50px rgba(0,0,0,0.75), inset 0 1px 0 rgba(255,255,255,0.05);
}
.pane-stack__grid {
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.035) 1px, transparent 1px);
  background-size: 34px 34px;
  mask-image: radial-gradient(circle at 50% 45%, #000 30%, transparent 78%);
  -webkit-mask-image: radial-gradient(circle at 50% 45%, #000 30%, transparent 78%);
}
.pane-stack__scene {
  position: relative;
  width: min(62%, 360px);
  aspect-ratio: 5/4;
  transform-style: preserve-3d;
  animation: paneFloat 9s ease-in-out infinite alternate;
}
@keyframes paneFloat {
  from { transform: rotateX(11deg) rotateY(-21deg); }
  to   { transform: rotateX(15deg) rotateY(-9deg); }
}
.pane-card {
  position: absolute; inset: 0;
  border-radius: 13px;
  border: 1px solid rgba(255,255,255,0.12);
  background: rgba(13,20,36,0.72);
  box-shadow: -18px 22px 40px -22px rgba(0,0,0,0.7);
}
.pane-card__tab {
  position: absolute; top: -1px; left: 16px;
  transform: translateY(-100%);
  font-family: var(--mono); font-size: 0.52rem; letter-spacing: 0.16em; text-transform: uppercase;
  color: rgba(230,237,245,0.55);
  background: rgba(13,20,36,0.9);
  border: 1px solid rgba(255,255,255,0.12); border-bottom: none;
  border-radius: 6px 6px 0 0;
  padding: 3px 8px;
  white-space: nowrap;
}
/* Back panes — faded, no content */
.pane-card.back { background: rgba(11,17,30,0.55); }
.pane-card.back .pane-card__tab { color: rgba(230,237,245,0.4); }
/* Front pane — the one board */
.pane-front {
  border-color: rgba(59,130,246,0.55);
  background:
    linear-gradient(180deg, rgba(20,30,52,0.95), rgba(11,17,30,0.95));
  box-shadow: -18px 22px 50px -20px rgba(0,0,0,0.8), 0 0 0 1px rgba(59,130,246,0.25), 0 0 40px -8px rgba(37,99,235,0.45);
  overflow: hidden;
  padding: 0.9rem;
}
.pane-front__tab { color: #60A5FA !important; border-color: rgba(59,130,246,0.55) !important; }
.pane-front__bar { display: flex; align-items: center; gap: 6px; margin-bottom: 0.7rem; }
.pane-front__bar i { width: 7px; height: 7px; border-radius: 50%; }
.pane-front__title { font-family: var(--mono); font-size: 0.55rem; letter-spacing: 0.18em; text-transform: uppercase; color: rgba(230,237,245,0.7); margin-left: 4px; }
.pane-front__row {
  display: grid; grid-template-columns: auto 1fr auto; gap: 7px; align-items: center;
  padding: 6px 7px; margin-bottom: 5px;
  background: rgba(255,255,255,0.04);
  border-radius: 7px;
  border-left: 2px solid var(--row-accent, #3B82F6);
}
.pane-front__row .dot { width: 6px; height: 6px; border-radius: 50%; background: var(--row-accent, #3B82F6); }
.pane-front__row .lane { font-size: 0.62rem; color: rgba(230,237,245,0.85); font-family: var(--body); }
.pane-front__row .st { font-family: var(--mono); font-size: 0.46rem; letter-spacing: 0.08em; text-transform: uppercase; color: rgba(230,237,245,0.5); }
.pane-front__scan {
  position: absolute; left: 0; right: 0; height: 38%;
  top: -38%;
  background: linear-gradient(180deg, transparent, rgba(96,165,250,0.18) 60%, rgba(96,165,250,0.32));
  animation: paneScan 3.4s ease-in-out infinite;
  pointer-events: none;
}
@keyframes paneScan {
  0% { top: -40%; opacity: 0; }
  20% { opacity: 1; }
  80% { opacity: 1; }
  100% { top: 100%; opacity: 0; }
}
/* converging beams behind the stack */
.pane-stack__beam {
  position: absolute; height: 1px;
  background: linear-gradient(90deg, transparent, rgba(96,165,250,0.5));
  transform-origin: left center;
  animation: beamPulse 2.6s ease-in-out infinite;
}
@keyframes beamPulse { 0%,100% { opacity: 0.15; } 50% { opacity: 0.6; } }
@media (prefers-reduced-motion: reduce) {
  .pane-stack__scene, .pane-front__scan, .pane-stack__beam { animation: none; }
}

/* ============ REAL MAPS (Leaflet) ============ */
.leaf-map {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  border-radius: inherit;
  z-index: 1;
  background: #0a0f1a;
}
.leaf-map .leaflet-tile { filter: saturate(0.92) brightness(0.95); }
.leaf-pin-wrap { background: none; border: none; }
.leaf-pin {
  position: relative; transform: translate(-50%, -50%);
  display: flex; align-items: center; gap: 6px; white-space: nowrap;
}
.leaf-pin__dot {
  width: 10px; height: 10px; border-radius: 50%;
  background: var(--pc);
  box-shadow: 0 0 0 3px color-mix(in oklab, var(--pc), transparent 72%), 0 0 12px var(--pc);
  flex-shrink: 0;
}
.leaf-pin--hq .leaf-pin__dot { width: 13px; height: 13px; }
.leaf-pin__label {
  font-family: var(--mono); font-size: 10px; letter-spacing: 0.1em;
  color: #F1F5F9; text-shadow: 0 1px 4px #000, 0 0 2px #000;
  text-transform: uppercase;
}
.leaf-truck span {
  display: block; width: 10px; height: 10px; border-radius: 50%;
  background: #FBBF24; border: 2px solid #fff;
  box-shadow: 0 0 12px #FBBF24; transform: translate(-50%, -50%);
}
/* keep the hero overlay label above the map */
.hero__viz-label { z-index: 6 !important; }
.viz-map { z-index: 0; }

/* ============ YARD / LOCAL-PRESENCE PANEL (no fake photo) ============ */
.viz-yard {
  position: absolute; inset: 0;
  background:
    radial-gradient(circle at 85% 0%, color-mix(in oklab, var(--blue), transparent 80%), transparent 55%),
    linear-gradient(160deg, #0d1626 0%, #070b14 100%);
  display: flex; flex-direction: column; justify-content: space-between;
  align-items: stretch;
  padding: clamp(1.5rem, 3vw, 2.25rem);
  overflow: hidden;
}
.viz-yard__eyebrow { color: var(--blue-2); }
.viz-yard__big {
  font-family: var(--display); font-weight: 500;
  font-size: clamp(1.5rem, 2.6vw, 2.4rem);
  line-height: 1.04; letter-spacing: -0.02em;
  margin-top: auto;
}
.viz-yard__big em {
  font-style: normal;
  background: linear-gradient(90deg, var(--blue-2), var(--sky));
  -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
}
.viz-yard__rows { margin-top: 1.5rem; border-top: 1px solid var(--line-2); }
.viz-yard__row {
  display: flex; justify-content: space-between; gap: 1rem;
  padding: 0.7rem 0; border-bottom: 1px solid var(--line);
  font-size: 0.85rem;
}
.viz-yard__row .mono { color: var(--muted); }
.viz-yard__row span:last-child { color: var(--paper); text-align: right; }
