/* ============================================================
   Mesh Operasyon Platformu — platform pages only
   Loaded in addition to main.css on /platform/* pages.
   Reuses v4 tokens (ink-*, saffron, signal, fog-*, bone, f-*).
   ============================================================ */

/* Shared helpers used across all platform pages */
.wrap { max-width: 1280px; margin: 0 auto; padding: 0 56px; }
.grid-bg {
  background-image:
    linear-gradient(to right, rgba(255,255,255,.025) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255,255,255,.025) 1px, transparent 1px);
  background-size: 64px 64px;
}
.eyebrow {
  font-family: var(--f-mono);
  font-size: 11px; font-weight: 500;
  text-transform: uppercase; letter-spacing: .22em;
  color: var(--saffron);
  margin-bottom: 20px;
}
.p-h1, .p-h2 {
  font-family: var(--f-display); font-weight: 300;
  letter-spacing: -.04em;
  color: var(--bone);
  font-variation-settings: "SOFT" 50, "WONK" 1;
}
.p-h1 { font-size: clamp(42px, 6.5vw, 88px); line-height: .98; }
.p-h2 { font-size: clamp(30px, 4vw, 48px); line-height: 1.04; }
.p-h1 em, .p-h2 em { color: var(--saffron); font-style: italic; }
.p-lede {
  font-size: 17px; color: var(--fog-2);
  max-width: 620px; line-height: 1.65;
}
.p-section { position: relative; }
.p-section--dark {
  background: var(--ink-0);
  border-top: 1px solid var(--ink-4);
  border-bottom: 1px solid var(--ink-4);
}

/* Progress bar */
#p-progress {
  position: fixed; top: 0; left: 0;
  height: 2px; width: 0;
  background: var(--saffron);
  z-index: 60;
  transition: width .1s linear;
}

/* Reveal (uses different class to avoid collision with .reveal in main.css) */
.rv {
  opacity: 0; transform: translateY(26px);
  transition: opacity .9s var(--ease), transform .9s var(--ease);
}
.rv.in { opacity: 1; transform: translateY(0); }
.rv[data-d="1"] { transition-delay: .1s; }
.rv[data-d="2"] { transition-delay: .2s; }
.rv[data-d="3"] { transition-delay: .3s; }
.rv[data-d="4"] { transition-delay: .4s; }
.rv[data-d="5"] { transition-delay: .5s; }
.rv[data-d="6"] { transition-delay: .6s; }

/* Kinetic hero words */
.hword {
  display: inline-block; overflow: hidden;
  vertical-align: bottom;
}
.hword > span {
  display: inline-block;
  transform: translateY(110%); opacity: 0;
}
body.p-loaded .hword > span {
  animation: p-word-rise 1s var(--ease) forwards;
  animation-delay: var(--wd, 0s);
}
@keyframes p-word-rise {
  from { transform: translateY(110%); opacity: 0; }
  to   { transform: translateY(0);    opacity: 1; }
}

/* Variant fade */
.vfade { transition: opacity .45s var(--ease), transform .45s var(--ease); }
.vfade.out { opacity: 0; transform: translateY(10px); }

/* Common keyframes */
@keyframes p-pulse {
  0%,100% { transform: scale(1); opacity: 1; }
  50%     { transform: scale(1.45); opacity: .55; }
}
@keyframes p-caret-blink { 50% { opacity: 0; } }
@keyframes p-beam-flow { from { background-position: 0 0; } to { background-position: 28px 0; } }
@keyframes p-stack-float {
  0%,100% { transform: rotateX(58deg) rotateZ(-40deg); }
  50%     { transform: rotateX(56deg) rotateZ(-44deg); }
}
@keyframes p-drop-thru {
  0%   { transform: translateZ(240px); opacity: 0; }
  12%  { opacity: 1; }
  82%  { opacity: 1; }
  100% { transform: translateZ(-40px); opacity: 0; }
}
@keyframes p-phone-bob {
  0%,100% { transform: rotateY(-14deg) rotateX(5deg) translateY(0); }
  50%     { transform: rotateY(-11deg) rotateX(3deg) translateY(-12px); }
}
@keyframes p-typing-dot {
  0%,60%,100% { transform: translateY(0);   opacity: .4; }
  30%         { transform: translateY(-3px); opacity: 1; }
}
@keyframes p-msg-in {
  from { opacity: 0; transform: translateY(14px) scale(.97); }
  to   { opacity: 1; transform: translateY(0)     scale(1); }
}
@keyframes p-eta-tick { 0%,100% { opacity: 1; } 50% { opacity: .35; } }
@keyframes p-ring-spin { to { transform: rotate(360deg); } }

/* ─── HUB: hero canvas ─────────────────────────────────────── */
#mesh-canvas {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  opacity: .85; pointer-events: none;
}
.hero-veil {
  position: absolute; inset: 0;
  background: radial-gradient(ellipse 70% 60% at 30% 40%, transparent 20%, var(--ink-1) 90%);
  pointer-events: none;
}

/* ─── HUB: 3D module stack ─────────────────────────────────── */
.stack-wrap {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}
.stack-scene {
  perspective: 1400px;
  height: 460px;
  display: flex; align-items: center; justify-content: center;
}
.stack {
  position: relative;
  width: 300px; height: 300px;
  transform-style: preserve-3d;
  transform: rotateX(58deg) rotateZ(-42deg);
  animation: p-stack-float 10s ease-in-out infinite;
}
.layer {
  position: absolute; inset: 0;
  border: 1px solid var(--ink-5);
  background: rgba(18,21,27,.72);
  backdrop-filter: blur(2px);
  transition: transform 1.1s var(--ease), border-color .4s var(--ease), box-shadow .4s var(--ease);
  display: flex; align-items: flex-end;
  padding: 14px;
}
.layer .lz {
  font-family: var(--f-mono);
  font-size: 10px; letter-spacing: .16em; text-transform: uppercase;
  color: var(--fog-1);
  transition: color .4s;
}
.layer::before {
  content: ''; position: absolute; inset: 0;
  background-image:
    linear-gradient(to right, rgba(255,255,255,.04) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255,255,255,.04) 1px, transparent 1px);
  background-size: 30px 30px;
}
.stack.apart .l1 { transform: translateZ(190px); }
.stack.apart .l2 { transform: translateZ(95px);  }
.stack.apart .l3 { transform: translateZ(0);     }
.l1 { transform: translateZ(40px); }
.l2 { transform: translateZ(20px); }
.l3 { transform: translateZ(0);    }
.layer.hot {
  border-color: var(--saffron);
  box-shadow: 0 0 44px rgba(245,185,36,.22), inset 0 0 30px rgba(245,185,36,.05);
}
.layer.hot .lz { color: var(--saffron); }
.stack .drop {
  position: absolute; left: 50%; top: 50%;
  width: 10px; height: 10px; margin: -5px;
  border-radius: 50%;
  background: var(--signal);
  box-shadow: 0 0 14px var(--signal);
  animation: p-drop-thru 3.2s var(--ease) infinite;
}
.stack .drop.d2 { animation-delay: 1.1s; background: var(--saffron); box-shadow: 0 0 14px var(--saffron); }
.stack .drop.d3 { animation-delay: 2.2s; }

.mods {
  display: flex; flex-direction: column; gap: 0;
  border: 1px solid var(--ink-4);
}
.mod {
  padding: 28px 28px 24px;
  border-top: 1px solid var(--ink-4);
  cursor: pointer;
  transition: background .3s var(--ease);
  position: relative;
}
.mod:first-child { border-top: none; }
.mod::before {
  content: ''; position: absolute; left: 0; top: 0; bottom: 0;
  width: 2px; background: var(--saffron);
  transform: scaleY(0); transition: transform .35s var(--ease);
  transform-origin: top;
}
.mod.on { background: var(--ink-2); }
.mod.on::before { transform: scaleY(1); }
.mod .idx {
  font-family: var(--f-mono);
  font-size: 10.5px; color: var(--fog-1); letter-spacing: .18em;
}
.mod h3 {
  font-family: var(--f-display); font-weight: 400;
  font-size: 23px; color: var(--bone);
  letter-spacing: -.02em;
  margin: 8px 0 8px;
}
.mod p {
  font-size: 13.5px; color: var(--fog-2); line-height: 1.6;
  max-height: 0; overflow: hidden; opacity: 0;
  transition: max-height .5s var(--ease), opacity .5s var(--ease), margin .5s var(--ease);
}
.mod.on p { max-height: 130px; opacity: 1; margin-bottom: 4px; }

/* ─── HUB: pipeline ─────────────────────────────────────────── */
.pipe {
  position: relative;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px;
  margin-top: 16px;
}
.pipe::before {
  content: ''; position: absolute;
  top: 23px; left: 24px; right: 24px;
  height: 1px; background: var(--ink-4);
}
.pipe .rail {
  position: absolute; top: 23px; left: 24px; right: 24px;
  height: 1px; overflow: visible; pointer-events: none;
}
.pipe .spark {
  position: absolute; top: -4px; left: 0;
  width: 9px; height: 9px; border-radius: 50%;
  background: var(--saffron);
  box-shadow: 0 0 16px var(--saffron);
  transition: left 1.1s var(--ease);
}
.pstep { position: relative; padding-top: 56px; }
.pstep .node {
  position: absolute; top: 14px; left: 24px;
  width: 19px; height: 19px; margin-left: -9px;
  border-radius: 50%;
  border: 1px solid var(--ink-5);
  background: var(--ink-1);
  transition: all .4s var(--ease);
}
.pstep .node::after {
  content: ''; position: absolute; inset: 5px;
  border-radius: 50%; background: var(--ink-5);
  transition: all .4s var(--ease);
}
.pstep.on .node { border-color: var(--saffron); }
.pstep.on .node::after { background: var(--saffron); box-shadow: 0 0 12px var(--saffron); }
.pstep h4 {
  font-family: var(--f-mono);
  font-size: 14px; font-weight: 500;
  text-transform: uppercase; letter-spacing: .08em;
  color: var(--fog-1);
  margin-bottom: 8px;
  transition: color .4s;
}
.pstep.on h4 { color: var(--bone); }
.pstep p {
  font-size: 13px; color: var(--fog-2); line-height: 1.55;
  opacity: .45; transition: opacity .4s;
}
.pstep.on p { opacity: 1; }
.pipe-log {
  margin-top: 44px;
  border: 1px solid var(--ink-4);
  background: var(--ink-1);
  padding: 16px 20px;
  font-family: var(--f-mono);
  font-size: 12px; color: var(--fog-2);
  min-height: 52px;
  display: flex; align-items: center; gap: 12px;
}
.pipe-log .k {
  color: var(--saffron); letter-spacing: .14em;
  font-size: 10px; text-transform: uppercase;
  flex-shrink: 0;
}
.pipe-log .caret { color: var(--saffron); animation: p-caret-blink 1s steps(1) infinite; }

/* ─── HUB: channels convergence ─────────────────────────────── */
.conv {
  display: grid;
  grid-template-columns: 1fr 220px 1fr;
  gap: 0; align-items: center;
}
.conv-side { display: flex; flex-direction: column; gap: 18px; }
.ch-node {
  border: 1px solid var(--ink-4);
  background: var(--ink-2);
  padding: 16px 20px;
  display: flex; align-items: center; gap: 12px;
  transition: border-color .4s;
}
.ch-node.hot { border-color: var(--signal); }
.ch-node .cdot {
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--ink-5);
  transition: all .4s; flex-shrink: 0;
}
.ch-node.hot .cdot { background: var(--signal); box-shadow: 0 0 10px var(--signal); }
.ch-node h4 {
  font-family: var(--f-mono);
  font-size: 13px; font-weight: 500;
  color: var(--bone); letter-spacing: .05em;
}
.ch-node p {
  font-size: 11.5px; color: var(--fog-1); line-height: 1.4;
}
.conv-mid { position: relative; height: 280px; }
.beam {
  position: absolute; left: 0; right: 0;
  height: 1px;
  background-image: linear-gradient(90deg, var(--signal) 0 6px, transparent 6px 14px);
  background-size: 28px 1px;
  opacity: .25; transition: opacity .4s;
}
.beam.hot { opacity: 1; animation: p-beam-flow .5s linear infinite; }
.core {
  position: relative;
  border: 1px solid var(--saffron);
  background: var(--ink-0);
  padding: 26px 20px;
  text-align: center;
  box-shadow: 0 0 60px rgba(245,185,36,.14);
}
.core .ring {
  position: absolute; inset: -10px;
  border: 1px dashed rgba(245,185,36,.3);
  pointer-events: none;
}
.core h4 {
  font-family: var(--f-display);
  font-size: 20px; font-weight: 400;
  color: var(--bone);
}
.core p {
  font-family: var(--f-mono);
  font-size: 10px; letter-spacing: .16em; text-transform: uppercase;
  color: var(--saffron); margin-top: 6px;
}

/* ─── Shared: spec table ─────────────────────────────────── */
.p-spec { border: 1px solid var(--ink-4); }
.p-spec-row {
  display: grid;
  grid-template-columns: 220px 1fr;
  border-top: 1px solid var(--ink-4);
}
.p-spec-row:first-child { border-top: none; }
.p-spec-row dt {
  padding: 20px 24px;
  font-family: var(--f-mono);
  font-size: 11px; text-transform: uppercase; letter-spacing: .16em;
  color: var(--fog-1);
  border-right: 1px solid var(--ink-4);
  background: var(--ink-2);
}
.p-spec-row dd {
  padding: 20px 24px;
  font-size: 14px; color: var(--fog-3);
}

/* ─── HUB: sectors grid ─────────────────────────────────── */
.sectors {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.sector {
  border: 1px solid var(--ink-4);
  background: var(--ink-2);
  padding: 36px 32px;
  display: flex; flex-direction: column; gap: 16px;
  transition: border-color .3s var(--ease), box-shadow .3s var(--ease);
  transform-style: preserve-3d;
  will-change: transform;
}
a.sector:hover {
  border-color: var(--saffron);
  color: inherit;
  box-shadow: 0 24px 60px rgba(0,0,0,.4);
}
.sector .sec-tag {
  font-family: var(--f-mono);
  font-size: 10.5px; letter-spacing: .18em; text-transform: uppercase;
  color: var(--fog-1);
}
.sector h3 {
  font-family: var(--f-display); font-weight: 400;
  font-size: 26px; color: var(--bone);
  letter-spacing: -.02em;
}
.sector p {
  font-size: 13.5px; color: var(--fog-2); line-height: 1.55; flex: 1;
}
.sector .go {
  font-family: var(--f-mono);
  font-size: 11.5px; letter-spacing: .1em; text-transform: uppercase;
  color: var(--saffron);
}

/* ─── HUB: proof + pilot ─────────────────────────────────── */
.proof {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 1px;
  background: var(--ink-4);
  border: 1px solid var(--ink-4);
}
.proof-item { background: var(--ink-2); padding: 36px 32px; }
.proof-item .live {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--f-mono);
  font-size: 10px; letter-spacing: .18em; text-transform: uppercase;
  color: var(--signal);
  margin-bottom: 16px;
}
.proof-item .live::before {
  content: ''; width: 6px; height: 6px; border-radius: 50%;
  background: var(--signal); box-shadow: 0 0 8px var(--signal);
  animation: p-pulse 1.8s ease-in-out infinite;
}
.proof-item h4 {
  font-family: var(--f-display);
  font-size: 22px; font-weight: 400;
  color: var(--bone); margin-bottom: 10px;
  letter-spacing: -.02em;
}
.proof-item p { font-size: 13.5px; color: var(--fog-2); line-height: 1.6; }

.pilot {
  position: relative;
  display: grid; grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}
.pilot::before {
  content: ''; position: absolute; top: 0; left: 0; right: 0;
  height: 2px; background: var(--ink-4);
}
.pilot .fill {
  position: absolute; top: 0; left: 0;
  height: 2px; background: var(--saffron);
  width: 0; transition: width 2.4s var(--ease);
}
.pilot.in .fill { width: 100%; }
.pilot-step { padding-top: 22px; }
.pilot-step .num {
  font-family: var(--f-mono);
  font-size: 11px; color: var(--fog-1); letter-spacing: .18em;
  display: block; margin-bottom: 10px;
}
.pilot-step h4 {
  font-family: var(--f-mono);
  font-size: 13.5px; font-weight: 500;
  text-transform: uppercase; letter-spacing: .08em;
  color: var(--bone); margin-bottom: 8px;
}
.pilot-step p { font-size: 13px; color: var(--fog-2); line-height: 1.55; }

/* ─── KARGO: 3D phone + WhatsApp chat ─────────────────────── */
.phone-stage { perspective: 1600px; flex-shrink: 0; }
.phone {
  width: 340px;
  background: var(--ink-0);
  border: 1px solid var(--ink-4);
  border-radius: 28px;
  padding: 14px;
  box-shadow: 24px 40px 90px rgba(0,0,0,.55);
  transform-style: preserve-3d;
  transform: rotateY(-14deg) rotateX(5deg);
  animation: p-phone-bob 7s ease-in-out infinite;
  transition: transform .3s var(--ease);
}
.phone-screen {
  background: var(--ink-2);
  border-radius: 18px; overflow: hidden;
  display: flex; flex-direction: column;
}
.chat-head {
  display: flex; align-items: center; gap: 10px;
  padding: 14px 16px;
  background: var(--ink-3);
  border-bottom: 1px solid var(--ink-4);
}
.chat-head .avatar {
  width: 32px; height: 32px; border-radius: 50%;
  background: var(--saffron); color: var(--ink-0);
  display: flex; align-items: center; justify-content: center;
  font-family: var(--f-mono); font-size: 12px; font-weight: 600;
}
.chat-head .name {
  font-family: var(--f-mono); font-size: 12px;
  color: var(--bone); letter-spacing: .04em;
}
.chat-head .sub {
  font-family: var(--f-mono); font-size: 10px; color: var(--signal);
}
.chat-body {
  padding: 16px 12px;
  display: flex; flex-direction: column; gap: 8px;
  height: 430px; overflow: hidden;
  justify-content: flex-end;
}
.msg {
  max-width: 84%;
  padding: 9px 12px;
  border-radius: 12px;
  font-size: 12px; line-height: 1.5;
  animation: p-msg-in .5s var(--ease) both;
  flex-shrink: 0;
}
.msg.in {
  background: var(--ink-3); color: var(--fog-3);
  border-bottom-left-radius: 4px;
  align-self: flex-start;
}
.msg.out {
  background: #1E3A2F; color: #CFE8DA;
  border-bottom-right-radius: 4px;
  align-self: flex-end;
}
.msg .meta {
  display: block;
  font-family: var(--f-mono); font-size: 9px;
  color: var(--fog-1); margin-top: 5px;
}
.msg .chips { display: flex; gap: 6px; margin-top: 8px; flex-wrap: wrap; }
.msg .chip {
  font-family: var(--f-mono);
  font-size: 9.5px; padding: 4px 8px;
  border: 1px solid var(--ink-5); border-radius: 100px;
  color: var(--fog-2);
}
.msg .chip.on { border-color: var(--saffron); color: var(--saffron); }
/* WhatsApp-style location share — mini map thumbnail with pin */
.msg .loc {
  margin-top: 6px;
  border-radius: 10px;
  overflow: hidden;
  background: #0e1620;
  border: 1px solid rgba(0,0,0,.35);
  font-family: var(--f-sans);
}
.msg .loc-map {
  position: relative;
  height: 96px;
  background:
    /* streets - horizontal */
    linear-gradient(0deg,   transparent 47%, rgba(199,205,216,.14) 47%, rgba(199,205,216,.14) 48%, transparent 48%),
    linear-gradient(0deg,   transparent 12%, rgba(199,205,216,.10) 12%, rgba(199,205,216,.10) 13%, transparent 13%),
    linear-gradient(0deg,   transparent 76%, rgba(199,205,216,.10) 76%, rgba(199,205,216,.10) 77%, transparent 77%),
    /* streets - vertical */
    linear-gradient(90deg,  transparent 30%, rgba(199,205,216,.14) 30%, rgba(199,205,216,.14) 31%, transparent 31%),
    linear-gradient(90deg,  transparent 65%, rgba(199,205,216,.12) 65%, rgba(199,205,216,.12) 66%, transparent 66%),
    linear-gradient(90deg,  transparent 88%, rgba(199,205,216,.08) 88%, rgba(199,205,216,.08) 89%, transparent 89%),
    /* diagonal boulevard */
    linear-gradient(35deg,  transparent 55%, rgba(199,205,216,.16) 55%, rgba(199,205,216,.16) 56%, transparent 56%),
    /* base terrain gradient */
    radial-gradient(ellipse 120% 80% at 30% 40%, #1e2a3a 0%, #14202e 50%, #0e1620 100%);
}
/* Building/block "shadows" as subtle rectangles */
.msg .loc-map::before {
  content: '';
  position: absolute;
  left: 12%; top: 22%;
  width: 15%; height: 20%;
  background: rgba(199,205,216,.06);
  border-radius: 2px;
  box-shadow:
    38% -5% 0 -4px rgba(199,205,216,.05),
    56% 44% 0 -5px rgba(199,205,216,.06),
    -3% 55% 0 -3px rgba(199,205,216,.05),
    52% 20% 0 -6px rgba(199,205,216,.04),
    75% 60% 0 -4px rgba(199,205,216,.05);
}
/* The pin — proper teardrop shape via SVG */
.msg .loc-map::after {
  content: '';
  position: absolute;
  left: 50%; top: 50%;
  transform: translate(-50%, -100%);
  width: 22px; height: 30px;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 22 30'><path d='M11 0C4.925 0 0 4.925 0 11c0 7.5 11 19 11 19s11-11.5 11-19C22 4.925 17.075 0 11 0z' fill='%23E0654E' stroke='%23000' stroke-opacity='.28' stroke-width='.5'/><circle cx='11' cy='11' r='4' fill='%23fff'/></svg>");
  background-size: contain;
  background-repeat: no-repeat;
  filter: drop-shadow(0 3px 3px rgba(0,0,0,.55));
}
/* Pulsing ring around pin */
.msg .loc-pin-ring {
  position: absolute;
  left: 50%; top: 50%;
  width: 8px; height: 8px;
  margin: -4px 0 0 -4px;
  border-radius: 50%;
  background: transparent;
  border: 2px solid rgba(224,101,78,.55);
  animation: p-pin-pulse 2s ease-out infinite;
  pointer-events: none;
}
@keyframes p-pin-pulse {
  0%   { transform: scale(1);   opacity: 1; }
  100% { transform: scale(3.5); opacity: 0; }
}
.msg .loc-info {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 10px;
  border-top: 1px solid rgba(0,0,0,.3);
  background: rgba(0,0,0,.35);
}
.msg .loc-info-icon {
  width: 22px; height: 22px;
  border-radius: 50%;
  background: #E0654E;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.msg .loc-info-icon::before {
  content: '';
  width: 8px; height: 8px;
  border-radius: 50%;
  background: #ffffff;
  box-shadow: inset 0 0 0 2px #E0654E;
}
.msg .loc-info-text {
  flex: 1;
  min-width: 0;
  overflow: hidden;
}
.msg .loc-info-title {
  font-size: 11px;
  color: var(--fog-3);
  font-weight: 500;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.msg .loc-info-sub {
  font-family: var(--f-mono);
  font-size: 9px;
  color: var(--fog-1);
  letter-spacing: .04em;
  margin-top: 2px;
}
.msg .photo {
  margin-top: 6px; height: 74px; border-radius: 8px;
  background: repeating-linear-gradient(45deg, var(--ink-4), var(--ink-4) 6px, var(--ink-3) 6px, var(--ink-3) 12px);
  display: flex; align-items: center; justify-content: center;
  font-family: var(--f-mono); font-size: 9px;
  color: var(--fog-1); letter-spacing: .1em;
}
.typing {
  display: inline-flex; gap: 4px;
  padding: 10px 14px;
  background: var(--ink-3);
  border-radius: 12px; border-bottom-left-radius: 4px;
  align-self: flex-start;
  animation: p-msg-in .3s var(--ease) both;
}
.typing i {
  width: 5px; height: 5px; border-radius: 50%;
  background: var(--fog-2);
  animation: p-typing-dot 1s infinite;
}
.typing i:nth-child(2) { animation-delay: .15s; }
.typing i:nth-child(3) { animation-delay: .3s; }

.steps { display: flex; flex-direction: column; flex: 1; min-width: 300px; }
.step {
  display: flex; gap: 20px;
  padding: 18px 0 18px 16px;
  border-bottom: 1px solid var(--ink-4);
  border-left: 2px solid transparent;
  transition: border-color .4s var(--ease), background .4s var(--ease);
  cursor: pointer;
}
.step:last-child { border-bottom: none; }
.step .n {
  font-family: var(--f-mono);
  font-size: 11px; color: var(--fog-1); letter-spacing: .14em;
  padding-top: 3px; flex-shrink: 0; width: 32px;
  transition: color .4s;
}
.step h4 {
  font-family: var(--f-mono);
  font-size: 13.5px; font-weight: 500;
  text-transform: uppercase; letter-spacing: .07em;
  color: var(--fog-1); margin-bottom: 4px;
  transition: color .4s;
}
.step p {
  font-size: 13px; color: var(--fog-2); line-height: 1.55;
  opacity: .5; transition: opacity .4s;
}
.step.on {
  border-left-color: var(--saffron);
  background: linear-gradient(90deg, rgba(245,185,36,.05), transparent 70%);
}
.step.on .n { color: var(--saffron); }
.step.on h4 { color: var(--bone); }
.step.on p { opacity: 1; }

/* 2-col feature grid used across kargo + sector pages */
.feature {
  display: grid;
  grid-template-columns: minmax(280px, 460px) 1fr;
  gap: 64px; align-items: start;
}
.feature .body p { font-size: 14.5px; color: var(--fog-2); line-height: 1.7; }
.flist { list-style: none; display: flex; flex-direction: column; gap: 12px; margin-top: 20px; }
.flist li { display: flex; gap: 12px; font-size: 13.5px; color: var(--fog-2); line-height: 1.55; }
.flist li::before { content: '—'; color: var(--saffron); flex-shrink: 0; }

/* ─── KARGO: payment timeline ─────────────────────────────── */
.paytl { border: 1px solid var(--ink-4); background: var(--ink-2); padding: 28px; }
.paytl .p-head {
  font-family: var(--f-mono);
  font-size: 10.5px; letter-spacing: .18em; text-transform: uppercase;
  color: var(--fog-1);
  margin-bottom: 24px;
  display: flex; justify-content: space-between;
}
.pay-track { position: relative; height: 2px; background: var(--ink-4); margin: 36px 8px 44px; }
.pay-track .pfill {
  position: absolute; inset: 0 auto 0 0;
  background: var(--signal); width: 0;
  transition: width 2.6s var(--ease);
}
.pay-track.run .pfill { width: 100%; }
.pay-ev {
  position: absolute; top: -7px;
  width: 15px; height: 15px; border-radius: 50%;
  border: 1px solid var(--ink-5);
  background: var(--ink-1);
  transition: all .4s var(--ease);
}
.pay-ev::after {
  content: attr(data-l);
  position: absolute; top: 24px; left: 50%;
  transform: translateX(-50%);
  white-space: nowrap;
  font-family: var(--f-mono);
  font-size: 9.5px; letter-spacing: .1em; text-transform: uppercase;
  color: var(--fog-1);
  transition: color .4s;
}
.pay-ev.hit {
  border-color: var(--signal);
  background: var(--signal);
  box-shadow: 0 0 14px var(--signal);
}
.pay-ev.hit::after { color: var(--signal); }

/* ─── KARGO: ETA panel + route canvas ─────────────────────── */
.panel { border: 1px solid var(--ink-4); background: var(--ink-2); padding: 28px; }
.panel .p-head {
  font-family: var(--f-mono);
  font-size: 10.5px; letter-spacing: .18em; text-transform: uppercase;
  color: var(--fog-1);
  margin-bottom: 20px;
  display: flex; justify-content: space-between;
}
.panel .p-head .live {
  color: var(--signal);
  display: inline-flex; align-items: center; gap: 7px;
}
.panel .p-head .live::before {
  content: ''; width: 6px; height: 6px; border-radius: 50%;
  background: var(--signal); box-shadow: 0 0 8px var(--signal);
  animation: p-pulse 1.6s infinite;
}
.eta-row {
  display: flex; align-items: center; gap: 14px;
  padding: 12px 0;
  border-top: 1px solid var(--ink-4);
  font-family: var(--f-mono);
  font-size: 12px; color: var(--fog-2);
}
.eta-row .k {
  width: 130px; color: var(--fog-1);
  font-size: 10.5px; text-transform: uppercase; letter-spacing: .12em;
  flex-shrink: 0;
}
.eta-row .bar {
  flex: 1; height: 4px;
  background: var(--ink-4);
  position: relative;
  border-radius: 2px; overflow: hidden;
}
.eta-row .bar i {
  position: absolute; inset: 0 auto 0 0;
  background: var(--signal);
  border-radius: 2px; width: 0;
  transition: width 1.4s var(--ease);
}
.eta-big {
  font-family: var(--f-display);
  font-size: 56px; color: var(--bone);
  letter-spacing: -.03em; line-height: 1;
}
.eta-big em { color: var(--saffron); font-style: normal; animation: p-eta-tick 2s infinite; }
#route-canvas {
  display: block;
  width: 100%; height: 150px; margin-top: 20px;
  border: 1px solid var(--ink-4);
  background: var(--ink-0);
}

/* ─── KARGO: impact ─────────────────────────────────────── */
.impact {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--ink-4);
  border: 1px solid var(--ink-4);
}
.impact-item { background: var(--ink-2); padding: 36px 32px; }
.impact-item .dir {
  font-family: var(--f-mono);
  font-size: 26px; color: var(--saffron);
  display: block; margin-bottom: 14px;
}
.impact-item h4 {
  font-family: var(--f-mono);
  font-size: 13px; font-weight: 500;
  text-transform: uppercase; letter-spacing: .1em;
  color: var(--bone); margin-bottom: 12px;
}
.impact-item ul { list-style: none; display: flex; flex-direction: column; gap: 9px; }
.impact-item li { display: flex; gap: 10px; font-size: 12.5px; color: var(--fog-2); line-height: 1.5; }
.impact-item li::before { content: '—'; color: var(--fog-1); flex-shrink: 0; }

/* ─── SECTOR: capabilities grid ─────────────────────────── */
.caps {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1px;
  background: var(--ink-4);
  border: 1px solid var(--ink-4);
}
.cap {
  background: var(--ink-2);
  padding: 36px 32px;
  transition: background .3s var(--ease);
  position: relative; overflow: hidden;
}
.cap::after {
  content: ''; position: absolute; top: 0; left: 0; right: 0;
  height: 1px;
  background: linear-gradient(90deg, var(--saffron), transparent);
  transform: scaleX(0); transform-origin: left;
  transition: transform .5s var(--ease);
}
.cap:hover { background: var(--ink-3); }
.cap:hover::after { transform: scaleX(1); }
.cap .idx {
  font-family: var(--f-mono);
  font-size: 10.5px; letter-spacing: .18em;
  color: var(--fog-1);
  display: block; margin-bottom: 14px;
}
.cap h3 {
  font-family: var(--f-display); font-weight: 400;
  font-size: 22px; color: var(--bone);
  letter-spacing: -.02em; margin-bottom: 10px;
}
.cap p { font-size: 13.5px; color: var(--fog-2); line-height: 1.6; }

/* ─── SECTOR: copilot console ─────────────────────────────── */
.console {
  border: 1px solid var(--ink-4);
  background: var(--ink-0);
  box-shadow: 0 30px 80px rgba(0,0,0,.4);
}
.console .c-head {
  display: flex; align-items: center; gap: 10px;
  padding: 12px 18px;
  border-bottom: 1px solid var(--ink-4);
  font-family: var(--f-mono);
  font-size: 10.5px; letter-spacing: .16em; text-transform: uppercase;
  color: var(--fog-1);
}
.console .c-head .dots { display: flex; gap: 6px; }
.console .c-head .dots i {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--ink-4);
}
.console .c-head .live {
  margin-left: auto; color: var(--signal);
  display: inline-flex; align-items: center; gap: 7px;
}
.console .c-head .live::before {
  content: ''; width: 6px; height: 6px; border-radius: 50%;
  background: var(--signal); box-shadow: 0 0 8px var(--signal);
  animation: p-pulse 1.6s infinite;
}
.console .c-body {
  padding: 22px 20px;
  display: flex; flex-direction: column; gap: 14px;
  font-family: var(--f-mono);
  font-size: 12.5px; line-height: 1.6;
  min-height: 300px;
}
.cline { display: flex; gap: 12px; }
.cline .who {
  flex-shrink: 0; width: 64px;
  font-size: 10px; letter-spacing: .14em; text-transform: uppercase;
  padding-top: 2px;
}
.cline.user .who { color: var(--saffron); }
.cline.sys .who { color: var(--signal); }
.cline .txt { color: var(--fog-3); }
.cline.sys .txt { color: var(--fog-2); }
.cline .txt .ok { color: var(--signal); }
.cline .caret { color: var(--saffron); animation: p-caret-blink .9s steps(1) infinite; }
.cline.think .txt { color: var(--fog-1); }
.cline.think .txt::after {
  content: ''; display: inline-block;
  width: 10px; height: 10px; margin-left: 8px;
  border: 1px solid var(--fog-1);
  border-top-color: var(--saffron);
  border-radius: 50%;
  animation: p-ring-spin .9s linear infinite;
  vertical-align: -1px;
}

/* ─── Responsive ────────────────────────────────────────── */
@media (max-width: 1060px) {
  .stack-wrap { grid-template-columns: 1fr; }
  .conv { grid-template-columns: 1fr; gap: 24px; }
  .conv-mid { display: none; }
  .feature { grid-template-columns: 1fr; gap: 40px; }
}
@media (max-width: 960px) {
  .wrap { padding: 0 24px; }
  .sectors, .proof, .impact { grid-template-columns: 1fr; }
  .caps { grid-template-columns: 1fr; }
  .pipe { grid-template-columns: 1fr 1fr; }
  .pipe::before, .pipe .rail { display: none; }
  .pstep .node { display: none; }
  .pstep { padding-top: 0; }
  .pilot { grid-template-columns: 1fr 1fr; }
  .p-spec-row { grid-template-columns: 1fr; }
  .p-spec-row dt { border-right: none; border-bottom: 1px solid var(--ink-4); }
  .phone { width: 100%; max-width: 340px; animation: none; transform: none; }
}
@media (max-width: 560px) {
  .pilot, .pipe { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  .rv { opacity: 1; transform: none; }
  .hword > span { transform: none; opacity: 1; }
  .phone { animation: none; transform: none; }
}
