/* ==========================================================================
   TruckFlow — landing page
   ========================================================================== */

:root {
  --bg: #06080c;
  --bg-2: #0a0e14;
  --card: #0f141c;
  --card-2: #141a24;
  --card-3: #1a2230;
  --line: rgba(255, 255, 255, 0.07);
  --line-2: rgba(255, 255, 255, 0.12);
  --text: #f2f4f7;
  --text-2: #a3adbb;
  --text-3: #6b7685;

  --lime: #c9f25c;
  --lime-2: #a6e13a;
  --lime-ink: #1a2405;
  --violet: #a08bff;
  --violet-2: #7c5cff;
  --amber: #ffb547;
  --red: #ff6464;
  --sky: #59c3ff;

  --paper: #f1f1f4;
  --paper-2: #e6e6ec;
  --paper-card: #ffffff;
  --ink: #0c0f14;
  --ink-2: #4a5260;
  --ink-3: #7d8593;

  --radius: 22px;
  --radius-sm: 14px;
  --shadow-lg: 0 40px 120px -30px rgba(0, 0, 0, 0.6), 0 0 0 1px var(--line);
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-in-out: cubic-bezier(0.65, 0, 0.35, 1);

  --font-display: "Inter Tight", "Inter", system-ui, sans-serif;
  --font: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: "JetBrains Mono", ui-monospace, "Cascadia Code", monospace;

  --wrap: 1240px;
  --gutter: clamp(16px, 4vw, 40px);
}

*,
*::before,
*::after { box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: 84px; -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; cursor: pointer; border: 0; background: none; }
svg { display: block; }
::selection { background: var(--lime); color: var(--lime-ink); }

.wrap { width: min(var(--wrap), 100% - var(--gutter) * 2); margin-inline: auto; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.mono { font-family: var(--mono); font-feature-settings: "zero" 0; }

/* ---------- Typography ---------- */
h1, h2, h3, h4 { font-family: var(--font-display); margin: 0; letter-spacing: -0.03em; line-height: 1.05; font-weight: 700; }
h1 { font-size: clamp(40px, 5.4vw, 74px); letter-spacing: -0.045em; }
h2 { font-size: clamp(32px, 4.6vw, 60px); letter-spacing: -0.04em; }
h3 { font-size: clamp(20px, 2vw, 24px); letter-spacing: -0.02em; line-height: 1.2; }
p { margin: 0; }

.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--mono); font-size: 12px; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--lime);
}
.eyebrow::before { content: ""; width: 18px; height: 1.5px; background: currentColor; border-radius: 2px; }
.light .eyebrow { color: #4f6b00; }
.eyebrow.violet { color: var(--violet); }

.lead { font-size: clamp(17px, 1.45vw, 20px); color: var(--text-2); line-height: 1.6; max-width: 62ch; }
.light .lead { color: var(--ink-2); }

.grad-text {
  background: linear-gradient(100deg, var(--lime) 0%, #e9ff9e 35%, var(--violet) 75%, var(--lime) 100%);
  background-size: 200% 100%;
  -webkit-background-clip: text; background-clip: text; color: transparent;
  animation: gradShift 8s linear infinite;
}
@keyframes gradShift { to { background-position: -200% 0; } }

.section-head { display: grid; gap: 18px; margin-bottom: clamp(40px, 6vw, 72px); max-width: 860px; }
.section-head.center { margin-inline: auto; text-align: center; justify-items: center; }

/* ---------- Buttons ---------- */
.btn {
  --h: 48px;
  position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  height: var(--h); padding: 0 22px; border-radius: 999px;
  font-weight: 600; font-size: 15px; letter-spacing: -0.01em; white-space: nowrap;
  transition: transform 0.3s var(--ease), background 0.3s, box-shadow 0.3s, color 0.3s;
}
.btn svg { width: 18px; height: 18px; flex: none; }
.btn-primary { background: var(--lime); color: var(--lime-ink); box-shadow: 0 10px 40px -10px rgba(201, 242, 92, 0.55), inset 0 -2px 0 rgba(0, 0, 0, 0.12); }
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 18px 50px -12px rgba(201, 242, 92, 0.7), inset 0 -2px 0 rgba(0, 0, 0, 0.12); }
.btn-primary .arrow { transition: transform 0.3s var(--ease); }
.btn-primary:hover .arrow { transform: translateX(4px); }
.btn-ghost { background: rgba(255, 255, 255, 0.06); box-shadow: inset 0 0 0 1px var(--line-2); color: var(--text); }
.btn-ghost:hover { background: rgba(255, 255, 255, 0.1); }
.light .btn-ghost { background: rgba(12, 15, 20, 0.05); box-shadow: inset 0 0 0 1px rgba(12, 15, 20, 0.12); color: var(--ink); }
.btn-dark { background: var(--ink); color: #fff; }
.btn-dark:hover { transform: translateY(-2px); }
.btn-sm { --h: 40px; padding: 0 16px; font-size: 14px; }

.play-dot { width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center; background: rgba(255,255,255,.12); }
.play-dot svg { width: 10px; height: 10px; }

/* ---------- Header ---------- */
.header {
  position: fixed; inset: 0 0 auto; z-index: 50;
  transition: background 0.4s, box-shadow 0.4s, backdrop-filter 0.4s;
}
.header.scrolled { background: rgba(6, 8, 12, 0.72); backdrop-filter: saturate(160%) blur(18px); -webkit-backdrop-filter: saturate(160%) blur(18px); box-shadow: 0 1px 0 var(--line); }
.header .wrap { display: flex; align-items: center; gap: 20px; height: 72px; }
.logo { display: inline-flex; align-items: center; gap: 10px; font-family: var(--font-display); font-weight: 700; font-size: 20px; letter-spacing: -0.03em; }
.logo svg { width: 32px; height: 32px; }
.logo b { color: var(--lime); font-weight: 700; }
.nav { display: flex; gap: 4px; margin-left: auto; }
.nav a { padding: 8px 11px; border-radius: 999px; font-size: 14px; white-space: nowrap; color: var(--text-2); transition: color 0.2s, background 0.2s; }
.nav a:hover, .nav a.active { color: var(--text); background: rgba(255, 255, 255, 0.06); }
.header-cta { display: flex; gap: 10px; align-items: center; }
.burger { display: none; width: 44px; height: 44px; border-radius: 12px; background: rgba(255,255,255,.06); place-items: center; margin-left: auto; }
.burger span { display: block; width: 18px; height: 1.6px; background: var(--text); border-radius: 2px; transition: transform .3s var(--ease), opacity .3s; }
.burger span + span { margin-top: 5px; }
.menu-open .burger span:nth-child(1) { transform: translateY(6.6px) rotate(45deg); }
.menu-open .burger span:nth-child(2) { opacity: 0; }
.menu-open .burger span:nth-child(3) { transform: translateY(-6.6px) rotate(-45deg); }
.mobile-menu { display: none; }

/* ---------- Hero ---------- */
.hero { position: relative; padding: 124px 0 120px; overflow: hidden; isolation: isolate; }
.hero-bg { position: absolute; inset: 0; z-index: -1; pointer-events: none; }
.hero-bg svg { width: 100%; height: 100%; }
.hero-bg::after {
  content: ""; position: absolute; inset: 0;
  background:
    radial-gradient(60% 50% at 75% 30%, rgba(124, 92, 255, 0.16), transparent 70%),
    radial-gradient(50% 40% at 15% 20%, rgba(201, 242, 92, 0.10), transparent 70%),
    linear-gradient(to bottom, transparent 60%, var(--bg) 98%);
}
.hero-grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 56px; }
.hero-copy { display: grid; gap: 22px; justify-items: start; max-width: 900px; }
.hero h1 .line { display: block; }
.hero .lead { max-width: 640px; }
.pill {
  display: inline-flex; align-items: center; gap: 10px; padding: 6px 14px 6px 6px; border-radius: 999px;
  background: rgba(255, 255, 255, 0.05); box-shadow: inset 0 0 0 1px var(--line-2); font-size: 13.5px; color: var(--text-2);
}
.pill .tag { padding: 3px 10px; border-radius: 999px; background: linear-gradient(90deg, var(--violet-2), var(--violet)); color: #fff; font-weight: 600; font-size: 12px; letter-spacing: 0.02em; }
.pill:hover { color: var(--text); }
.hero-ctas { display: flex; flex-wrap: wrap; gap: 12px; }
.hero-proof { display: flex; flex-wrap: wrap; gap: 8px 22px; color: var(--text-3); font-size: 13.5px; }
.hero-proof span { display: inline-flex; align-items: center; gap: 8px; }
.hero-proof svg { width: 16px; height: 16px; color: var(--lime); }

.hero-stage { position: relative; margin-top: 8px; perspective: 1800px; }
.hero-frame {
  position: relative; transform-origin: 50% 0; transform: rotateX(var(--tilt, 14deg)) scale(var(--scale, 0.96));
  transition: transform 0.1s linear; will-change: transform;
}
.browser {
  border-radius: 18px; background: #1b2029; padding: 10px; box-shadow: var(--shadow-lg);
  border: 1px solid rgba(255,255,255,.08);
}
.browser-bar { display: flex; align-items: center; gap: 8px; padding: 2px 6px 10px; }
.browser-bar i { width: 11px; height: 11px; border-radius: 50%; background: #3a4150; }
.browser-bar i:nth-child(1) { background: #ff6159; } .browser-bar i:nth-child(2) { background: #ffbd2e; } .browser-bar i:nth-child(3) { background: #28c941; }
.browser-bar .url { margin-left: 14px; flex: 1; max-width: 420px; height: 26px; border-radius: 8px; background: #11151c; color: var(--text-3); font-size: 12px; display: flex; align-items: center; gap: 8px; padding: 0 12px; font-family: var(--mono); }
.browser-bar .url svg { width: 12px; height: 12px; color: var(--lime); }
.browser img { border-radius: 10px; width: 100%; height: auto; }
.light .browser { background: #fff; border-color: rgba(12,15,20,.08); box-shadow: 0 40px 100px -40px rgba(12,15,20,.35), 0 0 0 1px rgba(12,15,20,.06); }
.light .browser-bar i { background: #dcdde3; }
.light .browser-bar .url { background: #f1f1f4; color: var(--ink-3); }

.float-card {
  position: absolute; z-index: 3; border-radius: 18px; padding: 16px 18px;
  background: rgba(15, 20, 28, 0.82); backdrop-filter: blur(16px) saturate(140%); -webkit-backdrop-filter: blur(16px) saturate(140%);
  box-shadow: 0 30px 80px -20px rgba(0, 0, 0, 0.7), inset 0 0 0 1px var(--line-2);
  transform: translate3d(var(--px, 0), var(--py, 0), 0);
  transition: transform 0.6s var(--ease);
}
.fc-dispatch { left: -2%; top: 14%; width: 290px; }
.fc-events { left: 4%; bottom: -6%; width: 320px; }
.fc-phone { right: -1%; bottom: -10%; width: 190px; padding: 8px; border-radius: 30px; }
.fc-phone img { border-radius: 23px; }
.fc-title { display: flex; align-items: center; gap: 8px; font-size: 12px; color: var(--text-2); font-family: var(--mono); letter-spacing: .06em; text-transform: uppercase; }
.fc-title .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--violet); box-shadow: 0 0 0 4px rgba(160,139,255,.18); animation: pulse 2s infinite; }
.fc-big { font-family: var(--font-display); font-size: 30px; font-weight: 700; letter-spacing: -0.03em; margin: 6px 0 2px; }
.fc-big small { font-size: 14px; color: var(--text-2); font-weight: 500; letter-spacing: 0; }
.fc-bar { height: 6px; border-radius: 6px; background: rgba(255,255,255,.08); overflow: hidden; margin: 12px 0 10px; }
.fc-bar i { display: block; height: 100%; width: var(--w, 0%); background: linear-gradient(90deg, var(--violet-2), var(--lime)); border-radius: inherit; transition: width 1.4s var(--ease); }
.fc-row { display: flex; justify-content: space-between; font-size: 12.5px; color: var(--text-2); }
.fc-row b { color: var(--lime); font-weight: 600; }

.ticker { position: relative; height: 54px; overflow: hidden; margin-top: 10px; }
.ticker-item { position: absolute; inset: 0; display: flex; align-items: center; gap: 12px; opacity: 0; transform: translateY(18px); transition: opacity .5s var(--ease), transform .5s var(--ease); }
.ticker-item.on { opacity: 1; transform: none; }
.ticker-item.out { opacity: 0; transform: translateY(-18px); }
.ticker-item .ic { flex: none; width: 36px; height: 36px; border-radius: 11px; display: grid; place-items: center; background: rgba(201,242,92,.12); color: var(--lime); }
.ticker-item .ic.v { background: rgba(160,139,255,.14); color: var(--violet); }
.ticker-item .ic.a { background: rgba(255,181,71,.14); color: var(--amber); }
.ticker-item .ic svg { width: 18px; height: 18px; }
.ticker-item b { display: block; font-size: 14px; font-weight: 600; }
.ticker-item small { display: block; font-size: 12px; color: var(--text-3); font-family: var(--mono); }

@keyframes pulse { 0%, 100% { box-shadow: 0 0 0 0 rgba(160,139,255,.5); } 70% { box-shadow: 0 0 0 8px rgba(160,139,255,0); } }
@keyframes pulseLime { 0%, 100% { box-shadow: 0 0 0 0 rgba(201,242,92,.6); } 70% { box-shadow: 0 0 0 10px rgba(201,242,92,0); } }

/* ---------- Marquee ---------- */
.marquee { position: relative; padding: 56px 0 24px; }
.marquee-label { text-align: center; color: var(--text-3); font-size: 13px; font-family: var(--mono); letter-spacing: .12em; text-transform: uppercase; margin-bottom: 22px; }
.marquee-track { display: flex; overflow: hidden; mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent); -webkit-mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent); }
.marquee-row { display: flex; gap: 14px; padding-right: 14px; flex: none; animation: marquee 48s linear infinite; }
.marquee-row span {
  display: inline-flex; align-items: center; gap: 10px; padding: 12px 20px; border-radius: 999px; white-space: nowrap;
  background: var(--card); box-shadow: inset 0 0 0 1px var(--line); color: var(--text-2); font-weight: 500; font-size: 15px;
}
.marquee-row span svg { width: 40px; height: 14px; color: var(--text-3); --rig-hole: var(--card); }
@keyframes marquee { to { transform: translateX(-100%); } }

/* ---------- Stats ---------- */
.stats { padding: 40px 0 20px; }
.stats-grid { display: grid; grid-template-columns: repeat(5, 1fr); border-radius: var(--radius); background: var(--card); box-shadow: inset 0 0 0 1px var(--line); overflow: hidden; }
.stat { padding: 28px 26px; position: relative; }
.stat + .stat { box-shadow: -1px 0 0 var(--line); }
.stat .num { font-family: var(--font-display); font-weight: 700; font-size: clamp(34px, 3.6vw, 48px); letter-spacing: -0.04em; line-height: 1; }
.stat .num em { font-style: normal; color: var(--lime); }
.stat p { margin-top: 10px; color: var(--text-2); font-size: 14px; line-height: 1.45; }

/* ---------- Sections ---------- */
section { position: relative; }
.sec { padding: clamp(90px, 12vw, 150px) 0; }
.light { background: var(--paper); color: var(--ink); }
.light h2, .light h3 { color: var(--ink); }
.rounded-top { border-radius: 40px 40px 0 0; }
.rounded-both { border-radius: 40px; margin-inline: clamp(0px, 1.2vw, 16px); }

/* ---------- Flow (chaîne) ---------- */
.flow { position: relative; }
.flow-track { position: relative; display: grid; grid-template-columns: repeat(8, 1fr); gap: 8px; }
.flow-line { position: absolute; left: calc(100% / 16); right: calc(100% / 16); top: 32px; height: 2px; background: var(--line-2); border-radius: 2px; }
.flow-line i { position: absolute; left: 0; top: 0; height: 100%; width: var(--p, 0%); background: linear-gradient(90deg, var(--violet), var(--lime)); border-radius: inherit; transition: width .9s var(--ease); box-shadow: 0 0 18px rgba(201,242,92,.5); }
.flow-line i::after { content: ""; position: absolute; right: -6px; top: 50%; width: 12px; height: 12px; margin-top: -6px; border-radius: 50%; background: var(--lime); box-shadow: 0 0 0 6px rgba(201,242,92,.18), 0 0 24px var(--lime); }
.flow-step { position: relative; display: grid; justify-items: center; gap: 14px; text-align: center; padding: 0 4px; background: none; }
.flow-step .ic {
  width: 64px; height: 64px; border-radius: 20px; display: grid; place-items: center; position: relative; z-index: 1;
  background: var(--card-2); box-shadow: inset 0 0 0 1px var(--line-2); color: var(--text-3);
  transition: background .5s var(--ease), color .5s, box-shadow .5s, transform .5s var(--ease);
}
.flow-step .ic svg { width: 26px; height: 26px; }
.flow-step span { font-size: 13.5px; font-weight: 600; color: var(--text-3); transition: color .4s; line-height: 1.3; }
.flow-step.done .ic { color: var(--text); box-shadow: inset 0 0 0 1px rgba(201,242,92,.35); }
.flow-step.done span { color: var(--text-2); }
.flow-step.on .ic { background: var(--lime); color: var(--lime-ink); transform: translateY(-4px) scale(1.06); box-shadow: 0 16px 40px -10px rgba(201,242,92,.6); }
.flow-step.on span { color: var(--text); }
.flow-step.ai.on .ic { background: linear-gradient(135deg, var(--violet-2), var(--violet)); color: #fff; box-shadow: 0 16px 40px -10px rgba(124,92,255,.7); }
.flow-detail { margin-top: 44px; display: grid; grid-template-columns: 1.1fr 1fr; gap: 24px; align-items: stretch; }
.flow-card { border-radius: var(--radius); background: var(--card); box-shadow: inset 0 0 0 1px var(--line); padding: 30px; min-height: 210px; position: relative; overflow: hidden; }
.flow-card .k { font-family: var(--mono); font-size: 12px; color: var(--lime); letter-spacing: .1em; }
.flow-card h3 { margin: 10px 0 12px; }
.flow-card p { color: var(--text-2); }
.flow-card .swap { transition: opacity .35s, transform .45s var(--ease); }
.flow-card .swap.hide { opacity: 0; transform: translateY(10px); }
.flow-who { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 18px; }
.chip { display: inline-flex; align-items: center; gap: 6px; padding: 5px 11px; border-radius: 999px; font-size: 12.5px; font-weight: 500; background: rgba(255,255,255,.06); color: var(--text-2); box-shadow: inset 0 0 0 1px var(--line); white-space: nowrap; }
.chip.lime { background: rgba(201,242,92,.12); color: var(--lime); box-shadow: inset 0 0 0 1px rgba(201,242,92,.25); }
.chip.violet { background: rgba(160,139,255,.14); color: var(--violet); box-shadow: inset 0 0 0 1px rgba(160,139,255,.28); }
.chip.amber { background: rgba(255,181,71,.13); color: var(--amber); box-shadow: inset 0 0 0 1px rgba(255,181,71,.28); }
.chip.red { background: rgba(255,100,100,.13); color: var(--red); box-shadow: inset 0 0 0 1px rgba(255,100,100,.28); }
.light .chip { background: rgba(12,15,20,.05); color: var(--ink-2); box-shadow: inset 0 0 0 1px rgba(12,15,20,.08); }
.light .chip.lime { background: #e9f8c6; color: #3d5600; box-shadow: none; }
.light .chip.amber { background: #fff1d9; color: #8a5300; box-shadow: none; }
.light .chip.red { background: #ffe3e3; color: #b42323; box-shadow: none; }
.light .chip.violet { background: #ece7ff; color: #5a3fd6; box-shadow: none; }

.flow-visual { border-radius: var(--radius); background: radial-gradient(120% 120% at 100% 0%, rgba(124,92,255,.12), transparent 60%), var(--card); box-shadow: inset 0 0 0 1px var(--line); display: grid; place-items: center; padding: 22px; overflow: hidden; }
.flow-visual svg { width: 100%; height: auto; max-height: 230px; }

/* ---------- Dispatch ---------- */
.dispatch { background: radial-gradient(70% 60% at 85% 10%, rgba(124,92,255,.14), transparent 70%), radial-gradient(60% 50% at 0% 100%, rgba(201,242,92,.06), transparent 70%), var(--bg); }
.split { display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); gap: clamp(32px, 5vw, 72px); align-items: center; }
.split.rev { grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr); }
.feat-list { list-style: none; margin: 30px 0 0; padding: 0; display: grid; gap: 18px; }
.feat-list li { display: grid; grid-template-columns: 40px 1fr; gap: 14px; align-items: start; }
.feat-list .fi { width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; background: rgba(160,139,255,.12); color: var(--violet); }
.feat-list .fi.l { background: rgba(201,242,92,.1); color: var(--lime); }
.feat-list .fi svg { width: 20px; height: 20px; }
.feat-list b { display: block; font-weight: 600; font-size: 16px; margin-bottom: 2px; }
.feat-list span { color: var(--text-2); font-size: 15px; line-height: 1.55; }
.light .feat-list span { color: var(--ink-2); }
.light .feat-list .fi { background: #ece7ff; color: #5a3fd6; }
.light .feat-list .fi.l { background: #e4f5bd; color: #3d5600; }
.feat-grid { grid-template-columns: 1fr 1fr; gap: 22px 26px; margin: 0; }
.quote-ui { font-family: var(--mono); font-size: 13px; color: var(--amber); background: rgba(255,181,71,.08); padding: 2px 6px; border-radius: 6px; white-space: nowrap; }

.engine { position: relative; border-radius: 28px; background: linear-gradient(180deg, rgba(255,255,255,.035), rgba(255,255,255,.01)); box-shadow: inset 0 0 0 1px var(--line-2), 0 50px 120px -40px rgba(0,0,0,.8); padding: 18px; overflow: hidden; }
.engine-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 4px 6px 12px; flex-wrap: wrap; }
.engine-top .t { display: flex; align-items: center; gap: 10px; font-weight: 600; font-size: 15px; }
.engine-top .t .ai-badge { padding: 3px 9px; border-radius: 8px; font-size: 11px; font-family: var(--mono); background: linear-gradient(90deg, var(--violet-2), var(--violet)); color: #fff; letter-spacing: .06em; }
.engine-status { font-family: var(--mono); font-size: 12px; color: var(--violet); display: flex; align-items: center; gap: 8px; min-height: 20px; }
.engine-status::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: currentColor; animation: blink 1s steps(2) infinite; }
@keyframes blink { 50% { opacity: .2; } }
.engine svg.eng { width: 100%; height: auto; overflow: visible; }
.engine-foot { display: grid; grid-template-columns: repeat(4, 1fr) auto; gap: 10px; align-items: center; padding: 14px 6px 4px; border-top: 1px solid var(--line); margin-top: 6px; }
.ef { display: grid; gap: 2px; }
.ef small { font-size: 11px; color: var(--text-3); font-family: var(--mono); text-transform: uppercase; letter-spacing: .08em; }
.ef b { font-family: var(--font-display); font-size: 22px; letter-spacing: -0.02em; }
.ef b.l { color: var(--lime); }
.ef b.a { color: var(--amber); }
.btn-create { height: 40px; padding: 0 16px; border-radius: 999px; background: rgba(255,255,255,.08); color: var(--text-3); font-weight: 600; font-size: 13.5px; transition: all .4s var(--ease); }
.btn-create.ready { background: var(--lime); color: var(--lime-ink); animation: pulseLime 1.6s infinite; }

/* engine SVG styling */
.eng .card-bg { fill: #121925; stroke: rgba(255,255,255,.08); transition: stroke .5s, fill .5s; }
.eng .card-bg.hi { stroke: rgba(201,242,92,.6); fill: #151f17; }
.eng .card-bg.warn { stroke: rgba(255,181,71,.65); fill: #1f1a12; }
.eng .t-ref { font: 500 11px var(--mono); fill: var(--text-3); letter-spacing: .02em; }
.eng .t-main { font: 600 15px var(--font); fill: var(--text); }
.eng .t-sub { font: 400 12.5px var(--font); fill: var(--text-2); }
.eng .chip-bg { fill: rgba(255,255,255,.07); transition: fill .4s; }
.eng .chip-t { font: 600 11px var(--font); fill: var(--text-2); transition: fill .4s; }
.eng .st-ok .chip-bg { fill: rgba(201,242,92,.16); } .eng .st-ok .chip-t { fill: var(--lime); }
.eng .st-warn .chip-bg { fill: rgba(255,181,71,.16); } .eng .st-warn .chip-t { fill: var(--amber); }
.eng .link-base { fill: none; stroke: rgba(255,255,255,.07); stroke-width: 1.5; }
.eng .link-scan { fill: none; stroke: var(--violet); stroke-width: 1.6; stroke-dasharray: 3 7; opacity: 0; transition: opacity .4s; animation: dashflow 1s linear infinite; }
.eng.scanning .link-scan { opacity: .9; }
.eng .pair { fill: none; stroke: var(--lime); stroke-width: 2.2; stroke-linecap: round; filter: drop-shadow(0 0 6px rgba(201,242,92,.6)); }
.eng .pair.amber { stroke: var(--amber); filter: drop-shadow(0 0 6px rgba(255,181,71,.6)); }
.eng .badge circle { fill: var(--lime); } .eng .badge text { font: 700 10px var(--font); fill: var(--lime-ink); }
.eng .badge { opacity: 0; transition: opacity .4s; } .eng .badge.on { opacity: 1; }
.eng .core-ring { fill: none; stroke: rgba(160,139,255,.45); stroke-width: 1.2; transform-box: fill-box; transform-origin: center; }
.eng .core-ring.r1 { stroke-dasharray: 2 6; animation: spin 14s linear infinite; }
.eng .core-ring.r2 { stroke-dasharray: 30 10 4 10; animation: spin 22s linear infinite reverse; stroke: rgba(201,242,92,.3); }
.eng .core-glow { transition: opacity .6s; opacity: .35; }
.eng.thinking .core-glow { opacity: 1; animation: breathe 1.4s ease-in-out infinite; transform-box: fill-box; transform-origin: center; }
.eng .core-txt { font: 700 13px var(--font-display); fill: #fff; letter-spacing: .04em; }
.eng .core-sub { font: 500 9px var(--mono); fill: var(--violet); letter-spacing: .1em; }
.eng .rig { color: #c7cfdb; }
.eng .pop { opacity: 0; transition: opacity .4s, transform .5s var(--ease); transform: translateY(8px); }
.eng .pop.on { opacity: 1; transform: none; }
.eng .pop-bg { fill: #1f2733; stroke: rgba(255,181,71,.55); }
.eng .tag-atteler { opacity: 0; transition: opacity .4s; } .eng .tag-atteler.on { opacity: 1; }
@keyframes dashflow { to { stroke-dashoffset: -20; } }
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes breathe { 50% { transform: scale(1.08); } }

/* simulator */
.sim { margin-top: clamp(48px, 7vw, 90px); display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(0, 0.65fr); gap: 0; border-radius: 28px; overflow: hidden; background: var(--card); box-shadow: inset 0 0 0 1px var(--line-2); }
.sim-map { position: relative; background: radial-gradient(80% 80% at 30% 20%, rgba(124,92,255,.08), transparent 70%), #0b1017; min-height: 300px; }
.sim-map svg { width: 100%; height: 100%; display: block; }
.sim-side { padding: 30px; display: flex; flex-direction: column; gap: 22px; border-left: 1px solid var(--line); }
.sim-side h3 { font-size: 22px; }
.sim-side p { color: var(--text-2); font-size: 14.5px; }
.seg { display: inline-grid; grid-template-columns: 1fr 1fr; padding: 4px; border-radius: 999px; background: rgba(255,255,255,.06); box-shadow: inset 0 0 0 1px var(--line); position: relative; }
.seg button { position: relative; z-index: 1; height: 38px; padding: 0 14px; border-radius: 999px; font-size: 13.5px; font-weight: 600; color: var(--text-2); transition: color .3s; }
.seg button.on { color: var(--lime-ink); }
.seg .thumb { position: absolute; top: 4px; bottom: 4px; left: 4px; width: calc(50% - 4px); border-radius: 999px; background: var(--lime); transition: transform .45s var(--ease); }
.seg.right .thumb { transform: translateX(100%); }
.sim-kpis { display: grid; gap: 12px; }
.sim-kpi { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; padding: 14px 16px; border-radius: 14px; background: rgba(255,255,255,.035); box-shadow: inset 0 0 0 1px var(--line); }
.sim-kpi small { color: var(--text-2); font-size: 13px; }
.sim-kpi b { font-family: var(--font-display); font-size: 24px; letter-spacing: -0.02em; }
.sim-kpi.gain b { color: var(--lime); font-size: 30px; white-space: nowrap; }
.sim-kpi small span { font-family: var(--mono); font-size: 11.5px; }
.sim-kpi.gain { background: rgba(201,242,92,.07); box-shadow: inset 0 0 0 1px rgba(201,242,92,.22); }
.sim-note { font-size: 12px !important; color: var(--text-3) !important; }
.sim .t-node { font: 600 10px var(--mono); fill: var(--text-2); }
.sim .land { fill: rgba(255,255,255,.025); stroke: rgba(255,255,255,.06); }
.sim .alink { fill: none; stroke-width: 2; stroke-linecap: round; }
.sim .alink.greedy { stroke: var(--amber); stroke-dasharray: 6 6; }
.sim .alink.opt { stroke: var(--lime); }

/* ---------- Yard (préparation) ---------- */
.yard-wrap { display: grid; grid-template-columns: minmax(0, 1fr); gap: 16px; }
.yard-scene { position: relative; border-radius: 28px; background: linear-gradient(180deg, #ffffff 0%, #f7f7fa 100%); box-shadow: 0 40px 100px -50px rgba(12,15,20,.35), inset 0 0 0 1px rgba(12,15,20,.06); overflow: hidden; }
.yard-scene svg { width: 100%; height: auto; display: block; }
.yard-hud { position: absolute; left: 22px; top: 20px; right: 22px; display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; pointer-events: none; flex-wrap: wrap; }
.hud-card { background: rgba(255,255,255,.88); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); border-radius: 14px; padding: 10px 14px; box-shadow: 0 10px 30px -12px rgba(12,15,20,.25), inset 0 0 0 1px rgba(12,15,20,.06); }
.hud-card .r { font-family: var(--mono); font-size: 11px; color: var(--ink-3); }
.hud-card .m { font-weight: 700; font-size: 15px; letter-spacing: -0.01em; }
.hud-card .s { font-size: 12.5px; color: var(--ink-2); }
.hud-state { display: inline-flex; align-items: center; gap: 8px; padding: 8px 14px; border-radius: 999px; font-weight: 700; font-size: 13px; transition: background .4s, color .4s; }
.hud-state i { width: 8px; height: 8px; border-radius: 50%; background: currentColor; }
.hud-state.s-wait { background: #fff1d9; color: #8a5300; }
.hud-state.s-work { background: #ece7ff; color: #5a3fd6; }
.hud-state.s-ok { background: var(--lime); color: var(--lime-ink); }
.yard-checks { position: absolute; left: 22px; bottom: 18px; display: flex; gap: 8px; flex-wrap: wrap; pointer-events: none; right: 22px; }
.ycheck { display: inline-flex; align-items: center; gap: 7px; padding: 7px 12px; border-radius: 999px; font-size: 12.5px; font-weight: 600; background: rgba(255,255,255,.9); color: var(--ink-3); box-shadow: inset 0 0 0 1px rgba(12,15,20,.08); transition: all .4s var(--ease); }
.ycheck svg { width: 14px; height: 14px; opacity: .35; transition: opacity .3s; }
.ycheck.ok { background: #1b2405; color: var(--lime); box-shadow: none; }
.ycheck.ok svg { opacity: 1; }

.yard-list { border-radius: 28px; background: #fff; box-shadow: inset 0 0 0 1px rgba(12,15,20,.06), 0 40px 100px -60px rgba(12,15,20,.3); padding: 22px; display: grid; grid-template-columns: minmax(240px, 320px) minmax(0, 1fr); gap: 24px; }
.yl-left, .yl-right { display: flex; flex-direction: column; gap: 14px; }
.yl-head { display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.yl-head b { font-size: 16px; }
.yl-head .chip { font-weight: 600; }
.yl-kpis { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.yl-kpi { border-radius: 14px; padding: 12px 14px; background: #f4f4f7; }
.yl-kpi small { display: block; font-size: 10.5px; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-3); font-family: var(--mono); }
.yl-kpi b { font-family: var(--font-display); font-size: 26px; letter-spacing: -0.03em; line-height: 1.1; display: inline-block; transition: transform .3s var(--ease); }
.yl-kpi.a { background: #f2efff; } .yl-kpi.y { background: #fff7e6; } .yl-kpi.g { background: #eefad3; } .yl-kpi.k { background: #14171d; color: #fff; } .yl-kpi.k small { color: #9aa3b0; }
.yl-kpi b.bump { transform: scale(1.18); }
.yl-group { font-size: 12px; font-weight: 600; color: var(--ink-2); display: flex; align-items: center; gap: 8px; }
.yl-group::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--red); }
.yl-rows { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.yl-row { display: grid; grid-template-columns: 92px 1fr auto; gap: 12px; align-items: center; padding: 10px 12px; border-radius: 14px; background: #f7f7f9; transition: background .4s, box-shadow .4s, opacity .4s; }
.yl-row svg { width: 92px; height: 30px; color: #2b313c; }
.yl-row .r { font-family: var(--mono); font-size: 11.5px; font-weight: 600; }
.yl-row .s { font-size: 11.5px; color: var(--ink-3); line-height: 1.35; }
.yl-row .st { font-size: 11px; font-weight: 700; padding: 4px 9px; border-radius: 999px; background: #fff1d9; color: #8a5300; white-space: nowrap; }
.yl-row.cur { background: #fff; box-shadow: 0 0 0 2px #5a3fd6, 0 12px 30px -14px rgba(90,63,214,.5); }
.yl-row.done .st { background: var(--lime); color: var(--lime-ink); }
.yl-row.bad .st { background: #ffe3e3; color: #b42323; }
.yl-row .ghost-t { stroke-dasharray: 3 2.5; fill: none; stroke: currentColor; opacity: .55; }

/* yard svg parts */
.yard-svg .wheel-g { transform-box: fill-box; transform-origin: center; }
.yard-svg.rev .tractor .wheel-g { animation: spin .7s linear infinite; }
.yard-svg.fwd .wheel-g { animation: spin .5s linear infinite reverse; }
.yard-svg .tb { transition: fill-opacity .7s var(--ease), stroke-opacity .7s; }
.yard-svg .ghost .tb { fill-opacity: 0.05; stroke-dasharray: 12 9; stroke: #5a3fd6; stroke-width: 2.5; }
.yard-svg .ghost .tb-detail { opacity: 0.15; }
.yard-svg .tb-detail { transition: opacity .7s; }
.yard-svg .beacon { opacity: 0; }
.yard-svg.rev .beacon { animation: beacon .5s steps(2) infinite; }
@keyframes beacon { 50% { opacity: 1; } }
.yard-svg .rev-arrows { opacity: 0; }
.yard-svg.rev .rev-arrows { opacity: 1; }
.yard-svg .rev-arrows path { animation: chev 0.9s infinite; }
.yard-svg .rev-arrows path:nth-child(2) { animation-delay: .15s; }
.yard-svg .rev-arrows path:nth-child(3) { animation-delay: .3s; }
@keyframes chev { 0%, 100% { opacity: .15; } 40% { opacity: 1; } }
.yard-svg .legs { transform-box: fill-box; transform-origin: top; transition: transform .7s var(--ease); }
.yard-svg .legs.up { transform: scaleY(0.35); }
.yard-svg .airline { stroke-dasharray: 120; stroke-dashoffset: 120; transition: stroke-dashoffset .9s var(--ease); }
.yard-svg .airline.on { stroke-dashoffset: 0; }
.yard-svg .body-v { display: none; }
.yard-svg .body-v.on { display: inline; }
.yard-svg .spark { opacity: 0; transform-box: fill-box; transform-origin: center; }
.yard-svg .spark.go { animation: sparkle .8s var(--ease) forwards; }
@keyframes sparkle { 0% { opacity: 1; transform: scale(.2); } 100% { opacity: 0; transform: scale(2.6); } }
.yard-svg .headlight { animation: none; }
.yard-svg .lamp-on { fill: #ffd34d; filter: drop-shadow(0 0 6px #ffcf3a); }

/* ---------- Live tracking ---------- */
.live-grid { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 0.75fr); gap: 20px; align-items: start; }
.map-shot { position: relative; }
.map-pings { position: absolute; inset: 0; pointer-events: none; }
.ping { position: absolute; width: 14px; height: 14px; margin: -7px 0 0 -7px; border-radius: 50%; }
.ping::before, .ping::after { content: ""; position: absolute; inset: 0; border-radius: 50%; border: 2px solid var(--c, var(--lime)); animation: ping 2.4s var(--ease) infinite; animation-delay: var(--d, 0s); }
.ping::after { animation-delay: calc(var(--d, 0s) + 1.2s); }
@keyframes ping { 0% { transform: scale(.6); opacity: 1; } 100% { transform: scale(3.2); opacity: 0; } }
.map-toast { position: absolute; right: 4%; top: 22%; width: 250px; }
.timeline { border-radius: var(--radius); background: var(--card); box-shadow: inset 0 0 0 1px var(--line); padding: 24px 22px; }
.timeline-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 14px; gap: 10px; }
.timeline-head b { font-size: 15px; }
.tl { list-style: none; margin: 0; padding: 0; position: relative; }
.tl::before { content: ""; position: absolute; left: 11px; top: 8px; bottom: 8px; width: 2px; background: var(--line-2); }
.tl-fill { position: absolute; left: 11px; top: 8px; width: 2px; height: var(--h, 0px); background: linear-gradient(var(--lime), var(--violet)); transition: height .6s var(--ease); }
.tl li { position: relative; display: grid; grid-template-columns: 24px 1fr auto; gap: 12px; align-items: center; padding: 6px 0; font-size: 14px; color: var(--text-3); transition: color .4s; }
.tl li .d { width: 24px; height: 24px; border-radius: 50%; background: var(--card); box-shadow: inset 0 0 0 2px var(--line-2); display: grid; place-items: center; position: relative; z-index: 1; transition: all .4s var(--ease); }
.tl li .d svg { width: 12px; height: 12px; opacity: 0; color: var(--lime-ink); transition: opacity .3s; }
.tl li time { font-family: var(--mono); font-size: 12px; opacity: 0; transition: opacity .4s; }
.tl li.done { color: var(--text-2); }
.tl li.done .d { background: var(--lime); box-shadow: none; }
.tl li.done .d svg { opacity: 1; }
.tl li.done time { opacity: 1; }
.tl li.cur { color: var(--text); font-weight: 600; }
.tl li.cur .d { box-shadow: inset 0 0 0 2px var(--violet); animation: pulse 1.6s infinite; }
.tl-note { margin: 2px 0 6px 36px; font-size: 12.5px; color: var(--amber); background: rgba(255,181,71,.08); border-radius: 10px; padding: 8px 10px; display: none; line-height: 1.45; }
.tl-note.show { display: block; animation: fadeUp .5s var(--ease); }
.tl-note.ok { color: var(--lime); background: rgba(201,242,92,.08); }
@keyframes fadeUp { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
.live-feats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: 20px; }
.mini-feat { border-radius: 18px; background: var(--card); box-shadow: inset 0 0 0 1px var(--line); padding: 22px; }
.mini-feat .fi { width: 38px; height: 38px; border-radius: 11px; display: grid; place-items: center; background: rgba(201,242,92,.1); color: var(--lime); margin-bottom: 14px; }
.mini-feat .fi svg { width: 19px; height: 19px; }
.mini-feat b { display: block; margin-bottom: 4px; }
.mini-feat p { color: var(--text-2); font-size: 14px; line-height: 1.5; }

/* ---------- Driver app ---------- */
.driver { background: radial-gradient(60% 60% at 80% 40%, rgba(201,242,92,.35), transparent 70%), var(--paper); overflow: hidden; }
.phones { position: relative; height: 640px; display: grid; place-items: center; }
.phone { position: absolute; width: 270px; aspect-ratio: 9 / 19.5; border-radius: 44px; padding: 10px; background: #0d0f13; box-shadow: 0 50px 100px -30px rgba(12,15,20,.55), inset 0 0 0 2px #2a2e36, inset 0 0 0 6px #0d0f13; transition: transform .8s var(--ease), opacity .6s, filter .6s; }
.phone .screen { position: relative; width: 100%; height: 100%; border-radius: 35px; overflow: hidden; background: #f0f0f3; }
.phone .screen img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: top; transition: opacity .55s var(--ease), transform .7s var(--ease); }
.phone .screen img.out { opacity: 0; transform: scale(1.03); }
.phone .notch { position: absolute; top: 18px; left: 50%; width: 82px; height: 22px; margin-left: -41px; border-radius: 20px; background: #0d0f13; z-index: 2; }
.phone.p-main { z-index: 3; }
.phone.p-left { transform: translateX(-190px) rotate(-9deg) scale(.84); opacity: .85; filter: saturate(.9); }
.phone.p-right { transform: translateX(190px) rotate(9deg) scale(.84); opacity: .85; filter: saturate(.9); }
.driver-list { list-style: none; margin: 30px 0 0; padding: 0; display: grid; gap: 6px; }
.driver-list li button { width: 100%; text-align: left; display: grid; grid-template-columns: 36px 1fr; gap: 12px; align-items: center; padding: 12px 14px; border-radius: 16px; transition: background .3s; position: relative; overflow: hidden; }
.driver-list li button:hover { background: rgba(12,15,20,.04); }
.driver-list .n { width: 36px; height: 36px; border-radius: 11px; display: grid; place-items: center; background: rgba(12,15,20,.06); color: var(--ink-2); transition: all .3s; }
.driver-list .n svg { width: 18px; height: 18px; }
.driver-list b { display: block; font-size: 15.5px; color: var(--ink); }
.driver-list .desc { display: block; font-size: 13.5px; color: var(--ink-3); line-height: 1.45; max-height: 0; overflow: hidden; opacity: 0; transition: max-height .5s var(--ease), opacity .4s; }
.driver-list li.on button { background: #fff; box-shadow: 0 20px 40px -24px rgba(12,15,20,.35), inset 0 0 0 1px rgba(12,15,20,.05); }
.driver-list li.on .n { background: var(--ink); color: var(--lime); }
.driver-list li.on .desc { max-height: 60px; opacity: 1; margin-top: 2px; }
.driver-list .prog { position: absolute; left: 14px; right: 14px; bottom: 0; height: 2px; border-radius: 2px; background: rgba(12,15,20,.06); opacity: 0; }
.driver-list li.on .prog { opacity: 1; }
.driver-list .prog i { display: block; height: 100%; width: 0; background: var(--ink); border-radius: inherit; }
.driver-list li.on .prog i { animation: prog var(--dur, 4.5s) linear forwards; }
.driver-list.paused li.on .prog i { animation-play-state: paused; }
@keyframes prog { to { width: 100%; } }
.lang-chip { font-family: "Noto Sans Arabic", var(--font); }

/* ---------- Bento (parc) ---------- */
.bento { display: grid; grid-template-columns: repeat(6, 1fr); grid-auto-rows: minmax(250px, auto); gap: 16px; }
.bx { position: relative; border-radius: var(--radius); background: var(--card); box-shadow: inset 0 0 0 1px var(--line); padding: 24px; overflow: hidden; display: flex; flex-direction: column; gap: 8px; }
.bx h3 { font-size: 19px; }
.bx p { color: var(--text-2); font-size: 14.5px; line-height: 1.5; }
.bx .viz { margin-top: auto; padding-top: 16px; }
.bx .viz svg { width: 100%; height: auto; overflow: visible; }
.bx-a { grid-column: span 3; } .bx-b { grid-column: span 3; } .bx-c { grid-column: span 2; } .bx-d { grid-column: span 2; } .bx-e { grid-column: span 2; }
.bx .k { font-family: var(--mono); font-size: 11.5px; color: var(--lime); letter-spacing: .1em; text-transform: uppercase; }
.odo { display: flex; gap: 3px; font-family: var(--mono); font-weight: 600; }
.odo span { display: inline-grid; place-items: center; width: 22px; height: 30px; border-radius: 6px; background: #0a0d12; box-shadow: inset 0 0 0 1px var(--line-2); font-size: 15px; }
.bar-row { display: grid; grid-template-columns: 112px 1fr 56px; gap: 10px; align-items: center; font-size: 13px; color: var(--text-2); padding: 7px 0; }
.bar-row .tr { height: 8px; border-radius: 8px; background: rgba(255,255,255,.06); overflow: hidden; }
.bar-row .tr i { display: block; height: 100%; width: 0; border-radius: inherit; background: var(--c, var(--lime)); transition: width 1.4s var(--ease); }
.in .bar-row .tr i { width: var(--w); }
.bar-row b { text-align: right; font-family: var(--mono); font-size: 12px; color: var(--c, var(--text)); }
.draw-path { stroke-dasharray: var(--len, 1000); stroke-dashoffset: var(--len, 1000); transition: stroke-dashoffset 2.4s var(--ease); }
.in .draw-path { stroke-dashoffset: 0; }
.fade-late { opacity: 0; transition: opacity .6s 2s; }
.in .fade-late { opacity: 1; }
.tyre { transition: fill .6s; }
.tyre-bad { animation: tyreBlink 1.4s infinite; }
@keyframes tyreBlink { 50% { fill: #ff9a9a; } }

.chain { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 14px; }
.cn { position: relative; border-radius: 16px; padding: 16px; background: rgba(255,255,255,.025); box-shadow: inset 0 0 0 1px var(--line); display: grid; gap: 6px; align-content: start; transition: background .5s var(--ease), box-shadow .5s, transform .5s var(--ease); }
.cn .ci { width: 36px; height: 36px; border-radius: 11px; display: grid; place-items: center; background: rgba(255,255,255,.06); color: var(--text-3); transition: all .4s var(--ease); margin-bottom: 6px; }
.cn .ci svg { width: 18px; height: 18px; }
.cn b { font-size: 14px; line-height: 1.3; }
.cn small { font-size: 11.5px; color: var(--text-3); font-family: var(--mono); line-height: 1.4; }
.cn:not(:last-child)::after { content: ""; position: absolute; right: -12px; top: 32px; width: 10px; height: 10px; border-top: 2px solid var(--line-2); border-right: 2px solid var(--line-2); transform: rotate(45deg); transition: border-color .4s; }
.cn.past::after, .cn.on::after { border-color: var(--lime); }
.cn.on { background: rgba(201,242,92,.07); box-shadow: inset 0 0 0 1px rgba(201,242,92,.35); transform: translateY(-3px); }
.cn.on .ci { background: var(--lime); color: var(--lime-ink); }
.cn.past .ci { color: var(--lime); background: rgba(201,242,92,.1); }

/* ---------- Commerce ---------- */
.trio { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.tcard { border-radius: var(--radius); background: #fff; box-shadow: inset 0 0 0 1px rgba(12,15,20,.06), 0 30px 80px -50px rgba(12,15,20,.35); padding: 26px; display: flex; flex-direction: column; gap: 10px; }
.tcard h3 { font-size: 21px; }
.tcard p { color: var(--ink-2); font-size: 14.5px; line-height: 1.55; }
.tcard .viz { margin-top: auto; padding-top: 18px; }
.quote { border-radius: 16px; background: #f4f4f7; padding: 14px 16px; font-size: 13.5px; display: grid; gap: 7px; }
.quote .ql { display: flex; justify-content: space-between; gap: 10px; color: var(--ink-2); opacity: 0; transform: translateX(-8px); transition: all .5s var(--ease); }
.quote .ql b { color: var(--ink); font-family: var(--mono); font-size: 12.5px; }
.in .quote .ql { opacity: 1; transform: none; }
.quote .ql.total { border-top: 1px dashed rgba(12,15,20,.15); padding-top: 9px; font-weight: 700; color: var(--ink); }
.quote .ql.total b { font-size: 15px; color: #3d5600; }
.offers { display: grid; gap: 8px; }
.offer { display: grid; grid-template-columns: 1fr auto; gap: 8px; align-items: center; padding: 10px 12px; border-radius: 12px; background: #f4f4f7; font-size: 13px; position: relative; overflow: hidden; transition: background .5s, box-shadow .5s; }
.offer .bar { position: absolute; left: 0; bottom: 0; height: 3px; background: #c6cad3; width: 0; transition: width 1.2s var(--ease); }
.in .offer .bar { width: var(--w); }
.offer b { font-family: var(--mono); font-size: 12.5px; }
.offer.best { background: #ecf9c9; box-shadow: inset 0 0 0 1.5px #a6d33a; }
.offer.best .bar { background: #8cc21e; }
.recv { margin-top: 10px; padding: 10px 12px; border-radius: 12px; background: #ffe9e9; color: #a32020; font-size: 12.5px; font-weight: 600; display: flex; align-items: center; gap: 8px; opacity: 0; transition: opacity .5s 1.6s; }
.in .recv { opacity: 1; }
.recv svg { width: 16px; height: 16px; flex: none; }
.cycle { display: grid; gap: 8px; }
.cyc { display: grid; grid-template-columns: 28px 1fr auto; gap: 10px; align-items: center; font-size: 13.5px; color: var(--ink-3); }
.cyc .d { width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; background: #ececf1; font-size: 11px; font-weight: 700; transition: all .4s var(--ease); }
.cyc .who { font-size: 11px; font-family: var(--mono); padding: 3px 8px; border-radius: 999px; background: #f1f1f4; color: var(--ink-3); }
.cyc.on { color: var(--ink); font-weight: 600; }
.cyc.on .d { background: var(--ink); color: var(--lime); }
.cyc.past .d { background: var(--lime); color: var(--lime-ink); }
.sep-duty { margin-top: 26px; display: grid; grid-template-columns: 1.2fr 1fr; gap: 16px; }
.wide-card { border-radius: var(--radius); background: var(--ink); color: #fff; padding: 28px; display: grid; gap: 12px; align-content: start; position: relative; overflow: hidden; }
.wide-card p { color: #aab3c0; font-size: 14.5px; }
.wide-card h3 { color: #fff; }
.rec-cal { display: grid; grid-template-columns: repeat(7, 1fr); gap: 6px; margin-top: 8px; }
.rec-cal .dn { font-size: 10.5px; color: #7d8593; text-align: center; font-family: var(--mono); }
.rec-cal .dc { aspect-ratio: 1; border-radius: 10px; background: rgba(255,255,255,.05); display: grid; place-items: center; gap: 2px; padding: 4px; }
.rec-cal .dc .tk { display: flex; gap: 2px; }
.rec-cal .dc .tk i { width: 7px; height: 7px; border-radius: 2px; background: var(--lime); opacity: 0; transform: scale(.3); transition: all .4s var(--ease); }
.rec-cal.go .dc .tk i { opacity: 1; transform: none; }
.rec-cal .dc.off { background: transparent; box-shadow: inset 0 0 0 1px rgba(255,255,255,.06); }

/* ---------- Roles ---------- */
.roles { display: grid; grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr); gap: clamp(28px, 4vw, 56px); align-items: start; }
.role-chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 28px; }
.role-chips button { padding: 9px 14px; border-radius: 999px; background: rgba(255,255,255,.05); box-shadow: inset 0 0 0 1px var(--line-2); color: var(--text-2); font-size: 13.5px; font-weight: 500; transition: all .3s var(--ease); }
.role-chips button:hover { color: var(--text); background: rgba(255,255,255,.09); }
.role-chips button.on { background: var(--lime); color: var(--lime-ink); box-shadow: none; font-weight: 600; }
.role-panel { border-radius: 28px; background: var(--card); box-shadow: inset 0 0 0 1px var(--line); padding: 26px; }
.rp-head { display: flex; justify-content: space-between; gap: 16px; align-items: flex-end; flex-wrap: wrap; margin-bottom: 20px; }
.rp-head h3 { font-size: 26px; }
.rp-head p { color: var(--text-2); font-size: 14.5px; margin-top: 6px; max-width: 46ch; }
.rp-count { text-align: right; }
.rp-count b { font-family: var(--font-display); font-size: 44px; letter-spacing: -0.04em; line-height: 1; color: var(--lime); }
.rp-count small { display: block; color: var(--text-3); font-size: 12px; font-family: var(--mono); }
.mods { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.mod { border-radius: 14px; padding: 13px 14px; background: rgba(255,255,255,.025); box-shadow: inset 0 0 0 1px var(--line); transition: background .5s var(--ease), box-shadow .5s, opacity .5s; opacity: .45; }
.mod.on { opacity: 1; background: rgba(201,242,92,.06); box-shadow: inset 0 0 0 1px rgba(201,242,92,.22); }
.mod.full { background: rgba(201,242,92,.1); }
.mod .mn { font-size: 13px; font-weight: 600; display: flex; justify-content: space-between; gap: 8px; }
.mod .mn span { font-family: var(--mono); font-size: 11.5px; color: var(--text-3); font-weight: 500; }
.mod.on .mn span { color: var(--lime); }
.mod .mb { height: 4px; border-radius: 4px; background: rgba(255,255,255,.06); margin-top: 10px; overflow: hidden; }
.mod .mb i { display: block; height: 100%; width: 0; background: var(--lime); border-radius: inherit; transition: width .7s var(--ease); }
.sec-points { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-top: 20px; }
.sec-points .mini-feat .fi { background: rgba(160,139,255,.12); color: var(--violet); }

/* ---------- Integrations ---------- */
.hub { position: relative; }
.hub svg { width: 100%; height: auto; max-width: 620px; margin-inline: auto; }
.hub .hn rect { fill: #121925; stroke: rgba(255,255,255,.1); }
.hub .hn text { font: 600 13px var(--font); fill: var(--text); }
.hub .hn .s { font: 500 10px var(--mono); fill: var(--text-3); }
.hub .spoke { stroke: rgba(255,255,255,.08); stroke-width: 1.5; fill: none; }
.hub .spoke-flow { stroke: var(--lime); stroke-width: 1.5; fill: none; stroke-dasharray: 2 10; animation: dashflow 1.2s linear infinite; opacity: .6; }
.hub .spoke-flow.v { stroke: var(--violet); animation-direction: reverse; }

/* ---------- Gallery ---------- */
.gal-tabs { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; margin-bottom: 28px; }
.gal-tabs button { position: relative; padding: 10px 16px; border-radius: 999px; font-size: 14px; font-weight: 600; color: var(--ink-2); background: #fff; box-shadow: inset 0 0 0 1px rgba(12,15,20,.08); overflow: hidden; transition: color .3s, background .3s; }
.gal-tabs button.on { background: var(--ink); color: #fff; }
.gal-tabs button .gp { position: absolute; left: 0; bottom: 0; height: 2px; width: 0; background: var(--lime); }
.gal-tabs button.on .gp { animation: prog 6s linear forwards; }
.gal-tabs.paused button.on .gp { animation-play-state: paused; }
.gal-stage { position: relative; max-width: 1120px; margin: 0 auto; }
.gal-stage .browser { position: relative; }
.gal-imgs { position: relative; aspect-ratio: 16 / 10; border-radius: 10px; overflow: hidden; background: #ececf0; }
.gal-imgs img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: top; opacity: 0; transform: scale(1.015); transition: opacity .7s var(--ease), transform 1.2s var(--ease); border-radius: 0; }
.gal-imgs img.on { opacity: 1; transform: none; }
.gal-cap { text-align: center; margin-top: 22px; color: var(--ink-2); font-size: 15px; min-height: 24px; }
.gal-cap b { color: var(--ink); }

/* ---------- Start steps ---------- */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; counter-reset: st; }
.step { border-radius: var(--radius); background: #fff; padding: 26px; box-shadow: inset 0 0 0 1px rgba(12,15,20,.06); position: relative; }
.step::before { counter-increment: st; content: "0" counter(st); font-family: var(--mono); font-size: 12px; font-weight: 600; color: #4f6b00; background: #e4f5bd; padding: 4px 9px; border-radius: 999px; }
.step h3 { margin: 18px 0 8px; font-size: 19px; }
.step p { color: var(--ink-2); font-size: 14.5px; line-height: 1.55; }

/* ---------- FAQ ---------- */
.faq { max-width: 860px; margin: 0 auto; display: grid; gap: 10px; }
.faq details { border-radius: 18px; background: #fff; box-shadow: inset 0 0 0 1px rgba(12,15,20,.06); overflow: hidden; }
.faq summary { list-style: none; cursor: pointer; padding: 20px 24px; font-weight: 600; font-size: 16.5px; display: flex; justify-content: space-between; gap: 20px; align-items: center; color: var(--ink); }
.faq summary::-webkit-details-marker { display: none; }
.faq summary .pm { flex: none; width: 28px; height: 28px; border-radius: 50%; background: #f1f1f4; position: relative; transition: transform .4s var(--ease), background .3s; }
.faq summary .pm::before, .faq summary .pm::after { content: ""; position: absolute; left: 50%; top: 50%; width: 11px; height: 1.8px; margin: -0.9px 0 0 -5.5px; background: var(--ink); border-radius: 2px; }
.faq summary .pm::after { transform: rotate(90deg); transition: transform .4s var(--ease); }
.faq details[open] summary .pm { background: var(--lime); }
.faq details[open] summary .pm::after { transform: rotate(0); }
.faq .ans { padding: 0 24px 22px; color: var(--ink-2); font-size: 15px; line-height: 1.65; }

/* ---------- CTA ---------- */
.cta { padding: clamp(80px, 10vw, 130px) 0 60px; }
.cta-box { position: relative; border-radius: 36px; padding: clamp(36px, 6vw, 80px); overflow: hidden; background: radial-gradient(80% 120% at 100% 0%, rgba(124,92,255,.35), transparent 60%), radial-gradient(70% 100% at 0% 100%, rgba(201,242,92,.18), transparent 60%), #0d1118; box-shadow: inset 0 0 0 1px var(--line-2); }
.cta-box h2 { max-width: 16ch; }
.cta-grid { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 40px; align-items: center; position: relative; z-index: 1; }
.cta-form { display: grid; gap: 12px; background: rgba(255,255,255,.04); border-radius: 24px; padding: 24px; box-shadow: inset 0 0 0 1px var(--line-2); backdrop-filter: blur(8px); }
.cta-form label { font-size: 12px; color: var(--text-2); font-family: var(--mono); letter-spacing: .06em; text-transform: uppercase; }
.cta-form input, .cta-form select { width: 100%; height: 48px; border-radius: 14px; border: 0; background: rgba(0,0,0,.35); box-shadow: inset 0 0 0 1px var(--line-2); color: var(--text); padding: 0 16px; font: inherit; font-size: 15px; outline: none; transition: box-shadow .3s; }
.cta-form input:focus, .cta-form select:focus { box-shadow: inset 0 0 0 1.5px var(--lime); }
.cta-form .row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.cta-form .btn { width: 100%; margin-top: 6px; }
.cta-form .ok { display: none; color: var(--lime); font-size: 14px; text-align: center; }
.cta-form.sent .ok { display: block; }
.cta-road { position: absolute; left: 0; right: 0; bottom: 0; height: 90px; opacity: .55; pointer-events: none; }
.cta-road svg { width: 100%; height: 100%; }

/* ---------- Footer ---------- */
.footer { padding: 40px 0 50px; color: var(--text-3); font-size: 14px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr repeat(3, 1fr); gap: 30px; padding-bottom: 36px; border-bottom: 1px solid var(--line); }
.footer h4 { font-family: var(--font); font-size: 13px; color: var(--text); letter-spacing: 0; margin-bottom: 12px; font-weight: 600; }
.footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.footer a:hover { color: var(--text); }
.footer-bottom { display: flex; justify-content: space-between; gap: 20px; padding-top: 24px; flex-wrap: wrap; }

/* ---------- Reveal ---------- */
[data-reveal] { opacity: 0; transform: translateY(26px); transition: opacity .9s var(--ease), transform .9s var(--ease); transition-delay: var(--d, 0s); }
[data-reveal].in { opacity: 1; transform: none; }
[data-reveal="scale"] { transform: scale(.96) translateY(20px); }
.split-words .w { display: inline-block; opacity: 0; transform: translateY(0.6em) rotate(2deg); transition: opacity .8s var(--ease), transform .9s var(--ease); transition-delay: calc(var(--i) * 45ms + 0.1s); }
.split-words.in .w { opacity: 1; transform: none; }

/* ---------- Responsive ---------- */
@media (max-width: 1320px) {
  .header-cta .btn-ghost { display: none; }
}
@media (max-width: 1100px) {
  .nav { display: none; }
  .header-cta .btn-ghost { display: none; }
  .burger { display: grid; margin-left: auto; }
  .header-cta { margin-left: 0; }
  .mobile-menu { display: grid; position: fixed; inset: 72px 0 auto; z-index: 49; background: rgba(6,8,12,.96); backdrop-filter: blur(16px); padding: 12px var(--gutter) 24px; gap: 4px; transform: translateY(-12px); opacity: 0; pointer-events: none; transition: all .35s var(--ease); border-bottom: 1px solid var(--line); }
  .mobile-menu a { padding: 14px 6px; font-size: 17px; border-bottom: 1px solid var(--line); }
  .menu-open .mobile-menu { opacity: 1; transform: none; pointer-events: auto; }
  .split, .split.rev, .yard-wrap, .live-grid, .roles, .cta-grid, .flow-detail, .sim { grid-template-columns: minmax(0, 1fr); }
  .sim-side { border-left: 0; border-top: 1px solid var(--line); }
  .stats-grid { grid-template-columns: repeat(3, 1fr); }
  .stat:nth-child(4) { box-shadow: 0 -1px 0 var(--line); }
  .stat:nth-child(5) { box-shadow: -1px 0 0 var(--line), 0 -1px 0 var(--line); }
  .bento { grid-template-columns: repeat(2, 1fr); }
  .bx-a, .bx-b { grid-column: span 2; } .bx-c, .bx-d, .bx-e { grid-column: span 1; }
  .bx-e { grid-column: span 2; }
  .trio, .steps { grid-template-columns: repeat(2, 1fr); }
  .sec-points { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .chain { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .cn:nth-child(3)::after { display: none; }
  .fc-dispatch { left: -1%; top: -6%; }
}
@media (max-width: 760px) {
  body { font-size: 15.5px; }
  .hero { padding-top: 110px; }
  .header-cta .btn-primary { display: none; }
  .fc-dispatch { position: relative; left: auto; top: auto; width: 100%; margin-bottom: 14px; }
  .fc-events { display: none; }
  .fc-phone { width: 120px; right: -2%; bottom: -14%; border-radius: 22px; padding: 6px; }
  .fc-phone img { border-radius: 17px; }
  .flow-track { grid-template-columns: repeat(4, 1fr); row-gap: 26px; }
  .flow-line { display: none; }
  .flow-step .ic { width: 54px; height: 54px; border-radius: 16px; }
  .flow-step span { font-size: 12px; }
  .stats-grid { grid-template-columns: 1fr 1fr; }
  .stat { padding: 22px 18px; }
  .stat:nth-child(odd) { box-shadow: 0 -1px 0 var(--line); }
  .stat:nth-child(even) { box-shadow: -1px 0 0 var(--line), 0 -1px 0 var(--line); }
  .stat:first-child { box-shadow: none; grid-column: span 2; }
  .engine-foot { grid-template-columns: repeat(2, 1fr); }
  .engine-foot .btn-create { grid-column: span 2; }
  .phones { height: 520px; }
  .phone { width: 220px; border-radius: 36px; }
  .phone .screen { border-radius: 28px; }
  .phone.p-left { transform: translateX(-120px) rotate(-9deg) scale(.78); }
  .phone.p-right { transform: translateX(120px) rotate(9deg) scale(.78); }
  .bento, .trio, .steps, .sec-points, .live-feats, .mods, .sep-duty, .feat-grid { grid-template-columns: minmax(0, 1fr); }
  .bx-a, .bx-b, .bx-c, .bx-d, .bx-e { grid-column: auto; }
  .mods { grid-template-columns: 1fr 1fr; }
  .yl-row { grid-template-columns: 72px 1fr auto; }
  .yard-list, .yl-rows { grid-template-columns: minmax(0, 1fr); }
  .yl-row svg { width: 72px; }
  .yard-scene { display: flex; flex-direction: column; }
  .yard-hud { position: static; order: -1; padding: 14px 14px 0; }
  .yard-hud .hud-card { flex: 1 1 100%; }
  .yard-hud .hud-card .s { display: none; }
  .yard-checks { position: static; padding: 0 14px 14px; gap: 6px; }
  .ycheck { font-size: 11.5px; padding: 6px 10px; }
  .cta-form .row2 { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .map-toast { display: none; }
  .chain { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .cn::after { display: none; }
  .rounded-both { border-radius: 28px; margin-inline: 0; }
  .rounded-top { border-radius: 28px 28px 0 0; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; transition-duration: 0.001ms !important; scroll-behavior: auto !important; }
  [data-reveal], .split-words .w { opacity: 1 !important; transform: none !important; }
  .marquee-row { animation: none; }
}
