/* ============ FleetWorks — landing.css ============
   Front page only. Loaded after style.css so these rules win — scoped by
   being linked only from index.html, never touching the shared design
   tokens fleet.html/garage.html/team.html depend on. A rich, dark,
   AI-native palette: deep space background, an indigo→violet→cyan signal
   gradient for anything "intelligent", the brand amber kept as the one
   warm accent (trucks, urgency, CTAs) so the page still reads as
   FleetWorks, not a generic AI-SaaS template. */

:root {
  --ai-bg: #05070f;
  --ai-bg-2: #0a0e1e;
  --ai-surface: rgba(255, 255, 255, 0.045);
  --ai-surface-hi: rgba(255, 255, 255, 0.075);
  --ai-line: rgba(255, 255, 255, 0.09);
  --ai-text: #eef1fb;
  --ai-muted: #97a2c4;
  --ai-indigo: #6366f1;
  --ai-violet: #a855f7;
  --ai-cyan: #22d3ee;
  --ai-amber: #f5a623;
  --ai-gradient: linear-gradient(120deg, var(--ai-indigo), var(--ai-violet) 55%, var(--ai-cyan));
  --ai-gradient-soft: linear-gradient(120deg, rgba(99,102,241,0.18), rgba(168,85,247,0.18) 55%, rgba(34,211,238,0.18));
  --ai-radius: 18px;
  --ai-shadow: 0 20px 60px rgba(5, 7, 15, 0.55);
}

body { background: var(--ai-bg); color: var(--ai-text); }

/* ---------- Ambient background: fixed gradient mesh + grid, behind everything ---------- */
body::before {
  content: ""; position: fixed; inset: 0; z-index: -2; pointer-events: none;
  background:
    radial-gradient(900px 600px at 12% -8%, rgba(99, 102, 241, 0.28), transparent 60%),
    radial-gradient(700px 500px at 100% 10%, rgba(34, 211, 238, 0.16), transparent 60%),
    radial-gradient(800px 600px at 50% 115%, rgba(168, 85, 247, 0.22), transparent 60%),
    var(--ai-bg);
}
body::after {
  content: ""; position: fixed; inset: 0; z-index: -1; pointer-events: none; opacity: 0.35;
  background-image:
    linear-gradient(rgba(255,255,255,0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.035) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(ellipse 80% 60% at 50% 0%, #000 40%, transparent 100%);
}

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

/* ---------- Type ---------- */
h1, h2, h3, h4 { color: var(--ai-text); letter-spacing: -0.01em; }
.section-head p, .muted { color: var(--ai-muted) !important; }
.gradient-text {
  background: var(--ai-gradient); -webkit-background-clip: text; background-clip: text;
  color: transparent; -webkit-text-fill-color: transparent;
}

/* ---------- Buttons: gradient primary with glow, glass outline ---------- */
.btn-primary {
  background: var(--ai-gradient); color: #fff; border: none; position: relative;
  box-shadow: 0 8px 26px rgba(99, 102, 241, 0.35);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 14px 34px rgba(168, 85, 247, 0.45); background: var(--ai-gradient); }
.btn-outline, .btn-outline.btn-light-outline {
  background: var(--ai-surface); color: var(--ai-text); border-color: var(--ai-line);
  -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px);
}
.btn-outline:hover, .btn-outline.btn-light-outline:hover { background: var(--ai-surface-hi); color: #fff; border-color: rgba(255,255,255,0.22); }
.btn-light { background: #fff; color: var(--ai-bg); }
.btn-light:hover { background: var(--ai-amber); color: var(--ai-bg); }

/* ---------- Top bar / Navbar ---------- */
.topbar { background: rgba(5, 7, 15, 0.9); color: var(--ai-muted); border-bottom: 1px solid var(--ai-line); }
.topbar a { color: var(--ai-cyan); }

.navbar {
  background: rgba(6, 9, 20, 0.72); border-bottom: 1px solid var(--ai-line);
}
.navbar.scrolled { background: rgba(6, 9, 20, 0.92); box-shadow: 0 10px 40px rgba(0,0,0,0.4); }
.logo { color: var(--ai-text); }
.logo em { background: var(--ai-gradient); -webkit-background-clip: text; background-clip: text; color: transparent; -webkit-text-fill-color: transparent; font-style: normal; }
.nav-links a { color: var(--ai-muted); }
.nav-links a:hover { color: #fff; background: var(--ai-surface); }
.hamburger span { background: var(--ai-text); }
@media (max-width: 680px) {
  .nav-links { background: #0a0e1e; border-bottom-color: var(--ai-line); box-shadow: var(--ai-shadow); }
  .nav-links a { border-bottom-color: var(--ai-line); }
}

/* ---------- Hero v2 (Motive-style full-width) ---------- */
.hero { background: transparent; padding: 64px 0 90px; }
.hero.hero-v2 {
  background: #000; padding: 120px 0 80px; text-align: left;
}
.hero-v2 h1 {
  font-size: clamp(2.6rem, 6vw, 5rem); font-weight: 800; line-height: 1.08;
  letter-spacing: -0.03em; color: #fff; max-width: 820px; margin: 0 0 28px;
  text-wrap: balance;
}
.hero-v2 h1 .accent {
  background: var(--ai-gradient); -webkit-background-clip: text; background-clip: text;
  color: transparent; -webkit-text-fill-color: transparent;
}
.hero-v2 .hero-sub {
  font-size: clamp(1rem, 2vw, 1.2rem); color: #a0aabb; max-width: 600px;
  margin: 0 0 44px; line-height: 1.65;
}
.kw-ul {
  color: #fff; border-bottom: 2px solid; padding-bottom: 1px;
  border-image: var(--ai-gradient) 1;
}
.hero-v2 .hero-cta { display: flex; gap: 14px; align-items: center; flex-wrap: wrap; }
.btn-hero { padding: 14px 30px; font-size: 1rem; border-radius: 100px; }

/* ---------- Full-bleed product visual ---------- */
.hero-visual-wrap {
  background: #000; overflow: hidden; position: relative;
}
.hv-frame {
  position: relative; width: 100%; height: 540px; overflow: hidden;
  background: radial-gradient(ellipse 80% 100% at 50% 80%, #0d1f40 0%, #000 70%);
}
.hv-map-bg {
  position: absolute; inset: 0; display: flex; align-items: center; justify-content: center;
  opacity: 0.55;
}
.hv-map-bg svg { width: 100%; height: 100%; max-width: 520px; }

/* Floating UI cards */
.hv-card {
  position: absolute; background: rgba(10,15,28,0.88); border: 1px solid rgba(255,255,255,0.1);
  border-radius: 14px; padding: 12px 16px; backdrop-filter: blur(16px);
  font-size: .78rem; color: #c9d3e8; min-width: 180px;
  box-shadow: 0 12px 40px rgba(0,0,0,.5);
}
.hv-card-tl { top: 40px; left: clamp(16px, 5%, 80px); }
.hv-card-tr { top: 40px; right: clamp(16px, 5%, 80px); }
.hv-card-bl { bottom: 80px; left: clamp(16px, 5%, 80px); }
.hv-card-br { bottom: 80px; right: clamp(16px, 5%, 80px); }
.hvc-head { display: flex; align-items: center; gap: 6px; font-weight: 700; color: #fff; font-size: .8rem; margin-bottom: 10px; }
.hvc-dot { width: 7px; height: 7px; border-radius: 50%; background: #6b7fa3; }
.hvc-dot.ok { background: #22c55e; box-shadow: 0 0 6px #22c55e; }
.hvc-dot.ai { background: #a855f7; box-shadow: 0 0 6px #a855f7; animation: dfpulse 1.5s ease-in-out infinite; }
.hvc-kpis { display: flex; gap: 14px; }
.hvc-kpis div { text-align: center; }
.hvc-kpis b { display: block; font-size: 1.3rem; font-weight: 800; color: #22d3ee; }
.hvc-kpis span { font-size: .65rem; color: #6b7fa3; text-transform: uppercase; }
.hvc-alert { padding: 5px 8px; border-radius: 6px; font-size: .72rem; margin-bottom: 4px; background: rgba(245,158,11,.1); color: #fcd34d; }
.hvc-alert.ok { background: rgba(34,197,94,.1); color: #4ade80; }
.hvc-bars { display: flex; flex-direction: column; gap: 6px; }
.hvcb { display: flex; align-items: center; gap: 7px; font-size: .7rem; }
.hvcb span:first-child { width: 54px; flex-shrink: 0; color: #8a95b0; }
.hvcb-fill { height: 4px; border-radius: 2px; flex: 1; }
.hvcb-fill.ok { background: #22c55e; }
.hvcb-fill.warn { background: #f59e0b; }
.hvcb-fill.bad { background: #ef4444; }
.hvc-trip-bar { height: 4px; background: rgba(255,255,255,.1); border-radius: 2px; margin-top: 8px; overflow: hidden; }
.hvc-trip-fill { height: 100%; background: linear-gradient(90deg, #6366f1, #22d3ee); border-radius: 2px; }

/* Bottom "Watch demo" bar on visual */
.hv-bottom-bar {
  position: absolute; bottom: 0; left: 0; right: 0;
  display: flex; align-items: center; justify-content: center;
  padding: 16px; background: linear-gradient(to top, rgba(0,0,0,.9) 60%, transparent);
}
.hv-demo-btn {
  display: inline-flex; align-items: center; gap: 10px;
  background: rgba(255,255,255,.08); color: #fff; border: 1px solid rgba(255,255,255,.2);
  border-radius: 100px; padding: 12px 28px; font-size: .95rem; font-weight: 600; cursor: pointer;
  backdrop-filter: blur(12px);
}
.hv-demo-btn:hover { background: rgba(255,255,255,.14); }

/* Legacy badge (kept for other uses) */
.badge-flash {
  background: var(--ai-gradient-soft); border: 1px solid rgba(168, 85, 247, 0.4); color: #d9d3ff;
}
.hero h1 { color: var(--ai-text); }
.hero h1 .accent { background: var(--ai-gradient); -webkit-background-clip: text; background-clip: text; color: transparent; -webkit-text-fill-color: transparent; }
.hero-text p { color: var(--ai-muted); }
.hero-stats strong { color: #fff; }
.hero-stats span { color: var(--ai-muted); }
.hero-map { display: none; } /* moved into hero-visual-wrap */

@media (max-width: 680px) {
  .hero.hero-v2 { padding: 80px 0 50px; }
  .hv-frame { height: 420px; }
  .hv-card-tr, .hv-card-br { display: none; }
  .hv-card-tl { top: 16px; left: 12px; }
  .hv-card-bl { bottom: 60px; left: 12px; }
}

/* ---------- Trust strip ---------- */
.trust-strip { background: transparent; border-top: 1px solid var(--ai-line); border-bottom: 1px solid var(--ai-line); }
.trust-label { color: var(--ai-muted); }
.brand-row span { color: var(--ai-muted); opacity: 0.7; }

/* ---------- Sections (glass cards throughout) ---------- */
.section, .section.alt { background: transparent; }
.section-head h2 { color: var(--ai-text); }

.pillar-card, .service-card, .usp-card, .owner-cta-card, .testimonial, .step {
  background: var(--ai-surface); border: 1px solid var(--ai-line); border-radius: var(--ai-radius);
  -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px);
  box-shadow: var(--ai-shadow); transition: transform 0.25s ease, border-color 0.25s ease, background 0.25s ease;
}
.pillar-card:hover, .service-card:hover, .usp-card:hover { transform: translateY(-4px); border-color: rgba(168, 85, 247, 0.4); background: var(--ai-surface-hi); }
.pillar-card.featured { border-color: rgba(245, 166, 35, 0.45); background: linear-gradient(160deg, rgba(245,166,35,0.08), var(--ai-surface)); }
.pillar-ic, .service-icon, .usp-ic {
  background: var(--ai-gradient-soft); color: #fff; border: 1px solid rgba(255,255,255,0.12);
}
.service-icon.amber { background: rgba(245, 166, 35, 0.18); color: var(--ai-amber); }
.pillar-card h3, .service-card h3, .usp-card h4 { color: var(--ai-text); }
.pillar-card p, .service-card p, .usp-card p { color: var(--ai-muted); }
.link-btn { color: var(--ai-cyan); }
.link-btn:hover { color: #fff; }
.service-card .rating { color: var(--ai-amber); }

.step-num { background: var(--ai-gradient); color: #fff; box-shadow: 0 6px 20px rgba(99,102,241,0.4); }
.step h3 { color: var(--ai-text); }
.step p { color: var(--ai-muted); }

.owner-feats li strong { color: var(--ai-text); }
.owner-feats li span { color: var(--ai-muted); }
.owner-feats li .ic-amber { color: var(--ai-amber); }
.owner-cta-card { background: linear-gradient(160deg, rgba(99,102,241,0.14), rgba(10,14,30,0.7)); }
.owner-cta-card h3 { color: #fff; }
.owner-cta-card p { color: var(--ai-muted); }
.form-note { color: var(--ai-muted); }

.testimonial p { color: #dbe1f5; }
.testimonial footer strong { color: #fff; }
.testimonial footer span { color: var(--ai-muted); }

.faq-list details { background: var(--ai-surface); border: 1px solid var(--ai-line); border-radius: 12px; }
.faq-list summary { color: var(--ai-text); }
.faq-list p { color: var(--ai-muted); }

.cta-strip { background: var(--ai-gradient); }

.footer { background: #04050c; border-top: 1px solid var(--ai-line); }
.footer a { color: var(--ai-muted); }
.footer a:hover { color: #fff; }
.footer h4 { color: var(--ai-text); }
.footer-bottom { border-top: 1px solid var(--ai-line); color: var(--ai-muted); }

/* ---------- Feature matrix (new: everything built, at a glance) ---------- */
.feature-matrix { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: 40px; }
.feature-tile {
  background: var(--ai-surface); border: 1px solid var(--ai-line); border-radius: 14px;
  padding: 20px; -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px);
  transition: transform 0.2s ease, border-color 0.2s ease;
}
.feature-tile:hover { transform: translateY(-3px); border-color: rgba(34, 211, 238, 0.4); }
.feature-tile .ft-ic {
  width: 40px; height: 40px; border-radius: 10px; display: flex; align-items: center; justify-content: center;
  background: var(--ai-gradient-soft); color: #fff; margin-bottom: 12px; border: 1px solid rgba(255,255,255,0.1);
}
.feature-tile h4 { font-size: 0.98rem; margin-bottom: 4px; color: var(--ai-text); }
.feature-tile p { font-size: 0.85rem; color: var(--ai-muted); line-height: 1.5; }
.feature-tile .ft-badge {
  display: inline-block; margin-top: 10px; font-size: 0.7rem; font-weight: 700; letter-spacing: 0.03em;
  padding: 3px 9px; border-radius: 100px; background: rgba(34, 211, 238, 0.14); color: var(--ai-cyan);
  border: 1px solid rgba(34, 211, 238, 0.3);
}
@media (max-width: 860px) { .feature-matrix { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .feature-matrix { grid-template-columns: 1fr; } }

/* ---------- Booking modal: glass, dark ---------- */
.modal-overlay { background: rgba(5, 7, 15, 0.75); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }
.modal {
  background: #0c1024; border: 1px solid var(--ai-line); box-shadow: var(--ai-shadow); color: var(--ai-text);
}
.modal h3 { color: #fff; }
.modal .muted { color: var(--ai-muted) !important; }
.modal label { color: var(--ai-muted); }
.modal input, .modal select, .modal textarea {
  background: rgba(255,255,255,0.04); border: 1px solid var(--ai-line); color: var(--ai-text);
}
.modal input::placeholder, .modal textarea::placeholder { color: #5c6690; }
.modal-close { color: var(--ai-muted); }
.modal-close:hover { color: #fff; }

/* ---------- HCV insurance challenge: insurer link chips ---------- */
.ins-link {
  display: inline-block; margin: 3px 4px; padding: 4px 12px; border-radius: 100px;
  font-size: 0.82rem; text-decoration: none; white-space: nowrap;
  color: var(--ai-muted); background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--ai-line); transition: color .15s, border-color .15s, background .15s;
}
.ins-link:hover { color: var(--ai-text); border-color: rgba(168, 85, 247, 0.4); background: var(--ai-surface-hi); }

/* Invalid-field feedback inside the dark modal. style.css's input.invalid rule
   ties with .modal input on specificity and loses on load order, so without
   this the red border never rendered here — a blocked submit looked like a
   dead Confirm button. */
.modal input.invalid, .modal select.invalid, .modal textarea.invalid {
  border-color: #f87171 !important; box-shadow: 0 0 0 3px rgba(248, 113, 113, 0.18) !important;
}

/* ---------- Insurance flash bar ---------- */
/* Sits above the topbar, so it is the first thing on the page. Amber on the
   dark ground rather than a new hue — the palette already owns amber, and a
   second accent would fight the CTAs further down. */
.flash{
  display:flex;align-items:center;justify-content:center;gap:14px;flex-wrap:wrap;
  padding:9px 18px;text-decoration:none;position:relative;overflow:hidden;
  background:linear-gradient(90deg,#3A2708 0%,#5A3C0A 50%,#3A2708 100%);
  border-bottom:1px solid rgba(245,165,36,.35);
  color:#FFE7BA;font-size:.86rem;line-height:1.4;text-align:center;
}
.flash:hover{background:linear-gradient(90deg,#4A320A 0%,#6E4A0C 50%,#4A320A 100%)}
.flash:focus-visible{outline:2px solid var(--ai-cyan,#22D3EE);outline-offset:-3px}
.flash-tag{
  flex:none;background:#F5A524;color:#241804;font-weight:700;
  font-size:.66rem;letter-spacing:.11em;text-transform:uppercase;
  padding:3px 9px;border-radius:100px;
}
.flash-msg b{color:#FFD27A;font-weight:700}
.flash-msg sup{font-size:.7em;opacity:.75;margin-left:1px}
.flash-cta{flex:none;font-weight:600;color:#FFD27A;white-space:nowrap}
.flash-cta:hover{text-decoration:underline}
/* A sheen that crosses once every 6s — enough to catch the eye on a page the
   visitor has already scrolled past, not a permanent animation. */
.flash::after{
  content:"";position:absolute;inset:0;pointer-events:none;
  background:linear-gradient(100deg,transparent 42%,rgba(255,226,170,.16) 50%,transparent 58%);
  transform:translateX(-100%);animation:flashSheen 6s ease-in-out infinite;
}
@keyframes flashSheen{0%,72%{transform:translateX(-100%)}88%,100%{transform:translateX(100%)}}
@media (prefers-reduced-motion:reduce){ .flash::after{animation:none;opacity:0} }
@media (max-width:640px){
  .flash{font-size:.79rem;gap:8px;padding:8px 12px}
  .flash-cta{width:100%}
}

/* ---------- "Try any one" — three doors ---------- */
.try-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:20px;align-items:stretch}
.try-card{
  position:relative;display:flex;flex-direction:column;gap:10px;
  padding:26px 22px 22px;border-radius:16px;
  background:var(--ai-surface,#0F1629);border:1px solid var(--ai-line,#22304D);
  transition:transform .2s ease,border-color .2s ease,background .2s ease;
}
.try-card:hover{transform:translateY(-4px);border-color:rgba(245,165,36,.45);background:var(--ai-surface-hi,#18233A)}
.try-card.featured{border-color:rgba(245,165,36,.5);background:var(--ai-surface-hi,#18233A)}
.try-tag{
  position:absolute;top:-11px;left:22px;
  background:#F5A524;color:#241804;font-weight:700;
  font-size:.64rem;letter-spacing:.1em;text-transform:uppercase;
  padding:4px 10px;border-radius:100px;
}
.try-ic{
  width:48px;height:48px;border-radius:12px;display:grid;place-items:center;
  background:rgba(245,165,36,.12);color:#F5A524;
}
.try-card h3{margin:2px 0 0;font-size:1.15rem;color:var(--ai-text,#EEF2FA)}
.try-card p{margin:0;flex:1;color:var(--ai-muted,#8A93AD);font-size:.93rem;line-height:1.65}
.try-card .btn{margin-top:6px}
.try-note{font-size:.76rem;color:var(--ai-muted,#8A93AD);text-align:center}
@media (max-width:900px){ .try-grid{grid-template-columns:1fr;gap:26px} }

/* ---- Watch Demo button ---- */
.btn-watch-demo{display:inline-flex;align-items:center;gap:10px;background:rgba(255,255,255,.07);color:var(--ai-text);border:1px solid rgba(255,255,255,.15);border-radius:100px;padding:11px 22px;font-size:.95rem;font-weight:600;cursor:pointer;backdrop-filter:blur(12px);transition:background .2s,border-color .2s}
.btn-watch-demo:hover{background:rgba(255,255,255,.13);border-color:rgba(255,255,255,.3)}
.wd-play{display:inline-block;width:22px;height:22px;border-radius:50%;background:var(--ai-gradient);flex-shrink:0;clip-path:polygon(32% 18%,82% 50%,32% 82%)}
/* ---- Demo section ---- */
.demo-section{padding:90px 0 70px}
.demo-eyebrow{font-size:.78rem;font-weight:700;letter-spacing:.12em;text-transform:uppercase;background:var(--ai-gradient);-webkit-background-clip:text;background-clip:text;color:transparent;-webkit-text-fill-color:transparent;margin-bottom:12px}
.demo-tabs{display:flex;gap:4px;margin-bottom:24px;background:rgba(255,255,255,.04);border:1px solid var(--ai-line);border-radius:12px;padding:4px;width:fit-content}
.demo-tab{background:none;border:none;color:var(--ai-muted);font-size:.88rem;font-weight:600;padding:8px 18px;border-radius:9px;cursor:pointer;transition:background .15s,color .15s}
.demo-tab.active{background:var(--ai-surface-hi);color:#fff}
.demo-tab:hover:not(.active){color:var(--ai-text)}
.demo-frame{border-radius:16px;overflow:hidden;border:1px solid var(--ai-line);box-shadow:0 32px 80px rgba(0,0,0,.55),0 0 0 1px rgba(255,255,255,.04);background:#0d1020}
.df-chrome{background:#161b2e;padding:10px 16px;display:flex;align-items:center;gap:6px;border-bottom:1px solid var(--ai-line)}
.df-dot{width:11px;height:11px;border-radius:50%}
.df-url{margin-left:12px;font-size:.73rem;color:var(--ai-muted);background:rgba(255,255,255,.05);border-radius:6px;padding:3px 10px}
.df-panel{display:none;height:440px}
.df-panel.active{display:flex}
.df-sidebar{width:140px;flex-shrink:0;background:#0b0f1c;border-right:1px solid var(--ai-line);padding:14px 0;display:flex;flex-direction:column;gap:2px}
.df-sidebar-mobile{width:110px}
.df-logo{font-weight:800;font-size:.88rem;color:var(--ai-text);padding:0 14px 12px;border-bottom:1px solid var(--ai-line);margin-bottom:8px}
.df-logo em{background:var(--ai-gradient);-webkit-background-clip:text;background-clip:text;color:transparent;-webkit-text-fill-color:transparent;font-style:normal}
.df-nav-item{font-size:.78rem;color:var(--ai-muted);padding:7px 14px;cursor:pointer}
.df-nav-item.active{background:var(--ai-surface);color:var(--ai-text);border-left:2px solid var(--ai-amber)}
.df-nav-item.hl{color:var(--ai-cyan)}
.df-content{flex:1;overflow-y:auto;display:flex;flex-direction:column}
.df-topbar{display:flex;align-items:center;justify-content:space-between;padding:12px 18px;border-bottom:1px solid var(--ai-line);flex-shrink:0}
.df-title{font-weight:700;font-size:.88rem;color:var(--ai-text)}
.df-badge-ai{display:inline-flex;align-items:center;gap:6px;background:rgba(99,102,241,.15);border:1px solid rgba(99,102,241,.3);color:#a5b4fc;font-size:.72rem;font-weight:600;padding:3px 9px;border-radius:100px}
.df-pulse{width:6px;height:6px;border-radius:50%;background:#6366f1;animation:dfpulse 1.5s ease-in-out infinite}
@keyframes dfpulse{0%,100%{opacity:1;transform:scale(1)}50%{opacity:.5;transform:scale(.7)}}
.df-kpi-row{display:flex;gap:0;padding:16px 18px;border-bottom:1px solid var(--ai-line);flex-shrink:0}
.df-kpi{flex:1;text-align:center}
.df-kpi:not(:last-child){border-right:1px solid var(--ai-line)}
.df-kpi-n{display:block;font-size:1.6rem;font-weight:800;color:#22d3ee;line-height:1}
.df-kpi span:last-child{font-size:.68rem;color:var(--ai-muted);text-transform:uppercase;letter-spacing:.05em}
.df-cards{display:grid;grid-template-columns:1fr 1fr;gap:14px;padding:14px 18px;flex:1}
.df-card{background:var(--ai-surface);border:1px solid var(--ai-line);border-radius:10px;padding:12px}
.df-card-head{display:flex;justify-content:space-between;align-items:center;margin-bottom:10px;font-size:.8rem;font-weight:700;color:var(--ai-text)}
.df-tag{font-size:.67rem;font-weight:700;padding:2px 7px;border-radius:100px}
.df-tag.ok{background:rgba(34,197,94,.15);color:#4ade80}
.df-tag.warn{background:rgba(245,158,11,.15);color:#fcd34d}
.df-tag.bad{background:rgba(239,68,68,.15);color:#f87171}
.df-muted{font-size:.74rem;color:var(--ai-muted);margin:2px 0 0}
.df-radar-bars{display:flex;flex-direction:column;gap:7px}
.df-bar-row{display:flex;align-items:center;gap:7px;font-size:.71rem;color:var(--ai-muted)}
.df-bar-row span:first-child{width:56px;flex-shrink:0}
.df-bar{flex:1;height:5px;background:rgba(255,255,255,.07);border-radius:3px}
.df-fill{height:100%;border-radius:3px}
.df-fill.ok{background:#22c55e}.df-fill.warn{background:#f59e0b}.df-fill.bad{background:#ef4444}
.df-days{width:28px;text-align:right;font-size:.68rem}
.df-days.warn{color:#fcd34d}.df-days.bad{color:#f87171}
.df-alert-list{display:flex;flex-direction:column;gap:8px}
.df-alert{display:flex;align-items:flex-start;gap:9px;padding:8px;border-radius:8px;font-size:.75rem}
.df-alert.bad{background:rgba(239,68,68,.08);border:1px solid rgba(239,68,68,.18)}
.df-alert.warn{background:rgba(245,158,11,.08);border:1px solid rgba(245,158,11,.18)}
.df-alert.ai{background:rgba(99,102,241,.1);border:1px solid rgba(99,102,241,.25)}
.df-al-icon{font-size:1rem}
.df-alert b{color:var(--ai-text);display:block}
.df-alert p{color:var(--ai-muted);margin:2px 0 0;font-size:.72rem}
.df-bill-check{padding:14px 18px;display:flex;flex-direction:column;gap:10px;flex:1}
.df-bill-header{display:flex;align-items:center;gap:12px;padding-bottom:10px;border-bottom:1px solid var(--ai-line)}
.df-bill-icon{font-size:1.5rem}
.df-bill-header b{color:var(--ai-text);font-size:.9rem}
.df-bill-lines{display:flex;flex-direction:column;gap:6px;flex:1;overflow:hidden}
.df-bill-line{display:flex;align-items:center;gap:8px;font-size:.77rem;padding:6px 8px;border-radius:6px;background:var(--ai-surface)}
.df-bill-line span:first-child{flex:1;color:var(--ai-text)}
.df-bill-line span:nth-child(2){color:var(--ai-muted);font-family:monospace}
.df-bill-line.flag{background:rgba(245,158,11,.06);border:1px solid rgba(245,158,11,.15)}
.df-bill-footer{display:flex;align-items:center;justify-content:space-between;padding-top:8px;border-top:1px solid var(--ai-line);font-size:.82rem}
.df-bill-footer b{color:#4ade80}
.df-ai-cards{display:flex;flex-direction:column;gap:10px;padding:14px 18px;flex:1;overflow:hidden}
.df-ai-card{border-radius:10px;padding:12px 14px;font-size:.78rem}
.df-ai-card.critical{background:rgba(239,68,68,.08);border:1px solid rgba(239,68,68,.25)}
.df-ai-card.warn{background:rgba(245,158,11,.08);border:1px solid rgba(245,158,11,.2)}
.df-ai-badge{font-size:.62rem;font-weight:800;letter-spacing:.1em;padding:2px 7px;border-radius:4px;margin-bottom:6px;display:inline-block;background:rgba(239,68,68,.2);color:#f87171}
.df-ai-card b{color:var(--ai-text);display:block;margin-bottom:4px}
.df-ai-card p{color:var(--ai-muted);margin:0 0 6px;line-height:1.55}
.df-ai-evidence{font-size:.69rem;color:var(--ai-indigo);margin-bottom:7px}
.df-copilot-bar{display:flex;align-items:center;gap:10px;margin:0 18px 14px;padding:10px 14px;background:var(--ai-surface);border:1px solid rgba(99,102,241,.3);border-radius:10px}
.df-copilot-icon{font-size:1rem;color:var(--ai-violet)}
.df-copilot-input{flex:1;background:none;border:none;color:var(--ai-muted);font-size:.8rem;outline:none}
.df-driver-trip{display:flex;flex-direction:column;gap:10px;padding:12px 14px;overflow-y:auto;flex:1}
.df-trip-card{background:var(--ai-surface);border:1px solid var(--ai-line);border-radius:10px;padding:12px;font-size:.8rem}
.df-trip-badge{font-size:.66rem;font-weight:700;letter-spacing:.05em;text-transform:uppercase;color:var(--ai-indigo);margin-bottom:6px}
.df-trip-badge.ok{color:#4ade80}
.df-trip-card b{color:var(--ai-text)}
.df-trip-actions{display:flex;gap:8px;margin-top:10px}
.df-req-card{background:rgba(99,102,241,.08);border:1px solid rgba(99,102,241,.2);border-radius:10px;padding:12px;font-size:.8rem}
.df-req-card b{color:var(--ai-text);display:block;margin-bottom:8px}
.df-form-row{display:flex;justify-content:space-between;align-items:center;font-size:.75rem;color:var(--ai-muted);margin-bottom:8px}
.df-input-mock{background:var(--ai-surface);border:1px solid var(--ai-line);border-radius:6px;padding:4px 10px;color:var(--ai-text);font-size:.78rem}
.df-btn{background:var(--ai-surface);color:var(--ai-text);border:1px solid var(--ai-line);border-radius:7px;padding:5px 12px;font-size:.74rem;font-weight:600;cursor:pointer}
.df-btn.primary{background:var(--ai-gradient);border:none;color:#fff}
@media(max-width:640px){.demo-tabs{flex-wrap:wrap;width:100%}.df-panel{height:auto;min-height:500px}.df-sidebar{width:90px}.df-cards{grid-template-columns:1fr}.df-kpi-row{padding:10px}.df-kpi-n{font-size:1.1rem}.btn-watch-demo{margin-top:8px}}

/* ---- Hero keyword swap ---- */
.kw-accent{display:inline-block;transition:opacity .3s ease,transform .3s ease}
.kw-accent.kw-out{opacity:0;transform:translateY(-14px)}

/* ---- Demo autoplay progress bar ---- */
.demo-frame{position:relative}
.demo-progress-track{position:absolute;top:0;left:0;right:0;height:2px;background:rgba(255,255,255,.07);z-index:3}
.demo-progress{height:100%;width:0;background:var(--ai-gradient)}
.demo-progress.run{animation:demoprog 5.2s linear forwards}
@keyframes demoprog{from{width:0}to{width:100%}}

/* ---- Looping product clips ---- */
.clips-section{padding:40px 0 90px}
.clip-row{display:grid;grid-template-columns:1fr 1.15fr;gap:56px;align-items:center;padding:56px 0;border-top:1px solid var(--ai-line)}
.clip-row.reverse .clip-copy{order:2}
.clip-row.reverse .clip{order:1}
.clip-copy h3{font-size:clamp(1.5rem,3vw,2.1rem);font-weight:800;color:var(--ai-text);letter-spacing:-.02em;line-height:1.2;margin:0 0 14px;text-wrap:balance}
.clip-copy p{color:var(--ai-muted);line-height:1.65;margin:0 0 18px}
.clip-copy .demo-eyebrow{margin-bottom:10px}

.clip{position:relative;border-radius:14px;overflow:hidden;border:1px solid var(--ai-line);background:#0b0f1c;box-shadow:0 28px 70px rgba(0,0,0,.5)}
.clip-chrome{display:flex;align-items:center;gap:6px;padding:9px 14px;background:#141a2c;border-bottom:1px solid var(--ai-line)}
.clip-chrome span{width:9px;height:9px;border-radius:50%;background:#39405a}
.clip-chrome em{margin-left:10px;font-style:normal;font-size:.72rem;color:var(--ai-muted)}
.clip-body{position:relative;padding:16px;display:flex;flex-direction:column;gap:9px;min-height:210px}

/* scanning beam (the "recording" feel) */
.clip-scan{position:absolute;left:0;right:0;top:0;height:56px;pointer-events:none;opacity:0;
  background:linear-gradient(180deg,transparent,rgba(99,102,241,.18) 55%,rgba(34,211,238,.5) 96%,transparent)}
.clip.playing .clip-scan{animation:clipscan 4.2s ease-in-out infinite}
@keyframes clipscan{0%{opacity:0;transform:translateY(-10%)}10%{opacity:1}85%{opacity:1}100%{opacity:0;transform:translateY(420%)}}

/* rows */
.clip-doc,.clip-line{display:flex;align-items:center;gap:10px;font-size:.8rem;color:var(--ai-text);
  background:var(--ai-surface);border:1px solid var(--ai-line);border-radius:8px;padding:9px 12px;opacity:.35}
.clip.playing .clip-doc,.clip.playing .clip-line{animation:cliprow 4.2s ease-out infinite}
.clip-doc:nth-of-type(2),.clip-line:nth-of-type(2){animation-delay:.35s!important}
.clip-doc:nth-of-type(3),.clip-line:nth-of-type(3){animation-delay:.7s!important}
.clip-doc:nth-of-type(4),.clip-line:nth-of-type(4){animation-delay:1.05s!important}
.clip-doc:nth-of-type(5),.clip-line:nth-of-type(5){animation-delay:1.4s!important}
@keyframes cliprow{0%,8%{opacity:.35;transform:translateX(0)}18%{opacity:1}92%{opacity:1}100%{opacity:.35}}

.clip-doc span,.clip-line span{flex:1}
.clip-doc b,.clip-line b{font-size:.74rem;font-weight:700}
.clip-line i{font-style:normal;font-family:ui-monospace,SFMono-Regular,Menlo,monospace;font-size:.76rem;color:var(--ai-muted)}
.clip-doc b.ok,.clip-line b.ok{color:#4ade80}
.clip-doc b.warn{color:#fcd34d}
.clip-doc b.bad,.clip-line b.bad{color:#f87171}
.clip-line.flag{border-color:rgba(245,158,11,.35);background:rgba(245,158,11,.07)}
.clip-doc.alertrow{border-color:rgba(239,68,68,.35);background:rgba(239,68,68,.07)}

/* toast + total reveal */
.clip-toast,.clip-total{margin-top:auto;font-size:.78rem;font-weight:600;border-radius:8px;padding:9px 12px;opacity:0;transform:translateY(8px)}
.clip-toast{background:rgba(34,197,94,.1);border:1px solid rgba(34,197,94,.28);color:#4ade80}
.clip-total{background:rgba(99,102,241,.1);border:1px solid rgba(99,102,241,.3);color:#c7d2fe}
.clip-total b{color:#4ade80}
.clip.playing .clip-toast,.clip.playing .clip-total{animation:cliptoast 4.2s ease-out infinite}
@keyframes cliptoast{0%,45%{opacity:0;transform:translateY(8px)}58%,92%{opacity:1;transform:translateY(0)}100%{opacity:0;transform:translateY(8px)}}

/* phone clip */
.clip-phone{background:none;border:none;box-shadow:none;display:flex;justify-content:center}
.clip-phone-frame{width:250px;border-radius:26px;border:1px solid var(--ai-line);background:#0b0f1c;overflow:hidden;box-shadow:0 28px 70px rgba(0,0,0,.55)}
.clip-phone-top{padding:14px;text-align:center;font-size:.8rem;font-weight:700;color:#fff;background:var(--ai-gradient)}
.clip-step{background:var(--ai-surface);border:1px solid var(--ai-line);border-left:2px solid var(--ai-indigo);border-radius:8px;padding:9px 11px;opacity:0;transform:translateY(10px)}
.clip-step b{display:block;font-size:.78rem;color:var(--ai-text)}
.clip-step span{font-size:.7rem;color:var(--ai-muted)}
.clip.playing .clip-step{animation:clipstep 5.6s ease-out infinite}
.clip-step[data-step="2"]{animation-delay:.8s!important}
.clip-step[data-step="3"]{animation-delay:1.6s!important}
.clip-step[data-step="4"]{animation-delay:2.4s!important}
@keyframes clipstep{0%,6%{opacity:0;transform:translateY(10px)}16%,88%{opacity:1;transform:translateY(0)}100%{opacity:0;transform:translateY(10px)}}

@media(max-width:860px){
  .clip-row{grid-template-columns:1fr;gap:28px;padding:40px 0}
  .clip-row.reverse .clip-copy,.clip-row.reverse .clip{order:initial}
}
@media(prefers-reduced-motion:reduce){
  .clip.playing *{animation:none!important}
  .clip-doc,.clip-line,.clip-step,.clip-toast,.clip-total{opacity:1!important;transform:none!important}
  .demo-progress.run{animation:none}
}

/* ---- Capability clip grid ---- */
.capgrid-head{max-width:620px;margin:70px 0 28px}
.capgrid-head h3{font-size:clamp(1.5rem,3vw,2.1rem);font-weight:800;color:var(--ai-text);letter-spacing:-.02em;margin:0 0 10px;text-wrap:balance}
.capgrid{display:grid;grid-template-columns:repeat(3,1fr);gap:18px}
.cap{margin:0;border-radius:14px;overflow:hidden;border:1px solid var(--ai-line);background:#0b0f1c;box-shadow:0 20px 50px rgba(0,0,0,.4)}
.cap figcaption{padding:14px 16px 16px}
.cap figcaption b{display:block;font-size:.95rem;font-weight:700;color:var(--ai-text);margin-bottom:5px}
.cap figcaption span{font-size:.78rem;color:var(--ai-muted);line-height:1.55}
.cap-vis{position:relative;height:150px;overflow:hidden;background:#070a14;border-bottom:1px solid var(--ai-line)}
.cap-vis svg{width:100%;height:100%;display:block}

/* ADAS â€” road + car + warning */
.cap-road{background:linear-gradient(#0a1024 0%,#0d1630 55%,#111a38 100%)}
.road-lane{position:absolute;left:50%;bottom:0;width:3px;height:150px;transform:translateX(-50%);
  background:repeating-linear-gradient(#5b87c9 0 16px,transparent 16px 34px)}
.clip.playing .road-lane{animation:roadrun .55s linear infinite}
@keyframes roadrun{to{background-position-y:34px}}
.road-car{position:absolute;left:50%;top:46px;width:62px;height:40px;transform:translateX(-50%);border-radius:6px 6px 3px 3px;
  background:linear-gradient(#2c3a5e,#1a2340);border:1px solid #44567f;
  box-shadow:0 0 0 1px rgba(0,0,0,.4),-20px 14px 0 -16px #ff5f56,20px 14px 0 -16px #ff5f56}
.clip.playing .road-car{animation:carnear 3.6s ease-in-out infinite}
@keyframes carnear{0%,100%{transform:translateX(-50%) scale(.78);top:54px}45%,62%{transform:translateX(-50%) scale(1.14);top:38px}}
.road-warn{position:absolute;left:0;right:0;bottom:10px;text-align:center;font-size:.68rem;font-weight:800;letter-spacing:.1em;
  color:#fff;background:rgba(239,68,68,.85);padding:5px;opacity:0}
.clip.playing .road-warn{animation:warnflash 3.6s ease-in-out infinite}
@keyframes warnflash{0%,40%{opacity:0}46%,52%,58%{opacity:1}49%,55%{opacity:.25}70%,100%{opacity:0}}

/* AI camera */
.cap-cam{background:#0a0d18}
.cam-noise{position:absolute;inset:0;opacity:.5;
  background:repeating-linear-gradient(rgba(255,255,255,.035) 0 1px,transparent 1px 3px)}
.cam-face{position:absolute;left:50%;top:52%;width:54px;height:66px;transform:translate(-50%,-50%);border-radius:50% 50% 46% 46%;
  background:linear-gradient(#243352,#16203a);border:1px solid #33456b}
.cam-box{position:absolute;left:50%;top:52%;width:96px;height:96px;transform:translate(-50%,-50%);
  border:2px solid #22d3ee;border-radius:4px;opacity:0;
  box-shadow:0 0 14px rgba(34,211,238,.45),inset 0 0 14px rgba(34,211,238,.12)}
.clip.playing .cam-box{animation:camlock 4s ease-out infinite}
@keyframes camlock{0%,12%{opacity:0;transform:translate(-50%,-50%) scale(1.5)}26%,82%{opacity:1;transform:translate(-50%,-50%) scale(1)}100%{opacity:0}}
.cam-tag{position:absolute;left:0;right:0;bottom:12px;text-align:center;font-size:.7rem;font-weight:700;color:#fcd34d;opacity:0}
.clip.playing .cam-tag{animation:camtag 4s ease-out infinite}
@keyframes camtag{0%,34%{opacity:0;transform:translateY(6px)}46%,82%{opacity:1;transform:translateY(0)}100%{opacity:0}}
.cam-rec{position:absolute;top:10px;left:12px;display:flex;align-items:center;gap:5px;font-size:.62rem;font-weight:800;letter-spacing:.08em;color:#f87171}
.cam-rec i{width:6px;height:6px;border-radius:50%;background:#ef4444}
.clip.playing .cam-rec i{animation:dfpulse 1.1s ease-in-out infinite}

/* GPS */
.cap-gps{background:radial-gradient(ellipse at 30% 90%,#0d1f40,#06080f 75%)}
.gps-route{fill:none;stroke:rgba(91,135,201,.32);stroke-width:2.5;stroke-linecap:round}
.gps-trail{fill:none;stroke:#22d3ee;stroke-width:2.5;stroke-linecap:round;stroke-dasharray:300;stroke-dashoffset:300;filter:drop-shadow(0 0 4px rgba(34,211,238,.6))}
.clip.playing .gps-trail{animation:gpstrail 4s linear infinite}
@keyframes gpstrail{0%{stroke-dashoffset:300}80%,100%{stroke-dashoffset:0}}
.gps-dot{fill:#fff;filter:drop-shadow(0 0 6px #22d3ee)}
.gps-chip{position:absolute;right:12px;bottom:12px;font-size:.68rem;font-weight:600;color:#c9d3e8;
  background:rgba(10,15,28,.85);border:1px solid var(--ai-line);border-radius:100px;padding:4px 10px}

/* Fuel theft */
.cap-fuel{background:#080c16;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:9px}
.fuel-tank{width:150px;height:30px;border:2px solid #3b4a6b;border-radius:6px;overflow:hidden;background:#0d1324}
.fuel-level{height:100%;width:86%;background:linear-gradient(90deg,#f59e0b,#fbbf24)}
.clip.playing .fuel-level{animation:fueldrop 4.4s ease-in-out infinite}
@keyframes fueldrop{0%,28%{width:86%;background:linear-gradient(90deg,#f59e0b,#fbbf24)}55%,88%{width:31%;background:linear-gradient(90deg,#ef4444,#f87171)}100%{width:86%;background:linear-gradient(90deg,#f59e0b,#fbbf24)}}
.fuel-drop{font-size:.82rem;font-weight:800;color:#f87171;opacity:0}
.clip.playing .fuel-drop{animation:fuelfade 4.4s ease-out infinite}
.fuel-alert{font-size:.68rem;color:#fcd34d;background:rgba(245,158,11,.12);border:1px solid rgba(245,158,11,.3);border-radius:6px;padding:4px 9px;opacity:0}
.clip.playing .fuel-alert{animation:fuelfade 4.4s ease-out infinite;animation-delay:.3s}
@keyframes fuelfade{0%,42%{opacity:0;transform:translateY(5px)}56%,88%{opacity:1;transform:translateY(0)}100%{opacity:0}}

/* Predictive */
.cap-pred{background:linear-gradient(#080c16,#0b1226)}
.pred-thresh{stroke:#ef4444;stroke-width:1.4;stroke-dasharray:5 5;opacity:.65}
.pred-curve{fill:none;stroke:#a855f7;stroke-width:2.6;stroke-linecap:round;stroke-dasharray:330;stroke-dashoffset:330;
  filter:drop-shadow(0 0 5px rgba(168,85,247,.5))}
.clip.playing .pred-curve{animation:predraw 4.4s ease-in-out infinite}
@keyframes predraw{0%{stroke-dashoffset:330}70%,100%{stroke-dashoffset:0}}
.pred-hit{fill:#ef4444;opacity:0}
.clip.playing .pred-hit{animation:predhit 4.4s ease-out infinite}
@keyframes predhit{0%,52%{opacity:0;r:5}62%{opacity:1;r:9}72%,90%{opacity:1;r:5}100%{opacity:0}}
.pred-band{position:absolute;top:26px;right:12px;font-size:.6rem;font-weight:700;letter-spacing:.06em;color:#f87171;text-transform:uppercase}
.pred-tag{position:absolute;left:12px;bottom:12px;font-size:.68rem;font-weight:700;color:#e9d5ff;
  background:rgba(168,85,247,.14);border:1px solid rgba(168,85,247,.32);border-radius:6px;padding:4px 9px;opacity:0}
.clip.playing .pred-tag{animation:fuelfade 4.4s ease-out infinite;animation-delay:.5s}

/* Software mini-dashboard */
.cap-sw{background:#090d19;padding:12px 14px;display:flex;flex-direction:column;gap:7px}
.sw-top{display:flex;gap:5px;margin-bottom:2px}
.sw-top span{width:7px;height:7px;border-radius:50%;background:#39405a}
.sw-bars{display:flex;align-items:flex-end;gap:5px;height:56px}
.sw-bars i{flex:1;height:var(--h);border-radius:3px 3px 0 0;background:var(--ai-gradient);transform-origin:bottom;transform:scaleY(0)}
.clip.playing .sw-bars i{animation:swgrow 4s ease-out infinite}
.sw-bars i:nth-child(2){animation-delay:.08s!important}
.sw-bars i:nth-child(3){animation-delay:.16s!important}
.sw-bars i:nth-child(4){animation-delay:.24s!important}
.sw-bars i:nth-child(5){animation-delay:.32s!important}
.sw-bars i:nth-child(6){animation-delay:.4s!important}
.sw-bars i:nth-child(7){animation-delay:.48s!important}
@keyframes swgrow{0%{transform:scaleY(0)}22%,86%{transform:scaleY(1)}100%{transform:scaleY(0)}}
.sw-row{display:flex;justify-content:space-between;font-size:.72rem;color:var(--ai-muted)}
.sw-row b{color:#22d3ee;font-variant-numeric:tabular-nums}

@media(max-width:980px){.capgrid{grid-template-columns:repeat(2,1fr)}}
@media(max-width:620px){.capgrid{grid-template-columns:1fr}}
@media(prefers-reduced-motion:reduce){
  .cap-vis *{animation:none!important}
  .road-warn,.cam-box,.cam-tag,.fuel-drop,.fuel-alert,.pred-tag,.pred-hit{opacity:1!important;transform:none!important}
  .gps-trail,.pred-curve{stroke-dashoffset:0!important}
  .sw-bars i{transform:scaleY(1)!important}
}

/* ---- Hero reel: the visual plays as a 4-scene loop, not a static panel ----
   Each overlay card is a "shot" that cuts in on its beat and holds, so the
   section reads as footage rather than a screenshot with decorations. */
.hv-frame{--reel:19.2s}
.hv-card{opacity:0;transform:translateY(14px) scale(.97)}
.hv-frame .hv-card{animation:hvshot var(--reel) ease-in-out infinite}
.hv-card-tl{animation-delay:0s!important}
.hv-card-tr{animation-delay:4.8s!important}
.hv-card-bl{animation-delay:9.6s!important}
.hv-card-br{animation-delay:14.4s!important}
@keyframes hvshot{
  0%{opacity:0;transform:translateY(14px) scale(.97)}
  3%,22%{opacity:1;transform:translateY(0) scale(1)}
  26%{opacity:0;transform:translateY(-8px) scale(.99)}
  100%{opacity:0;transform:translateY(14px) scale(.99)}
}

/* Slow drift on the map so the frame is never completely still */
.hv-map-bg{animation:hvdrift var(--reel) ease-in-out infinite}
@keyframes hvdrift{
  0%,100%{transform:scale(1.02) translate(0,0)}
  25%{transform:scale(1.06) translate(-1.5%,1%)}
  50%{transform:scale(1.03) translate(1.5%,-1%)}
  75%{transform:scale(1.07) translate(-1%,-1.5%)}
}

/* Scene captions */
.hv-scenes{position:absolute;left:0;right:0;bottom:74px;text-align:center;pointer-events:none;height:1.6em}
.hv-scene{position:absolute;left:0;right:0;font-size:clamp(.85rem,1.6vw,1.05rem);font-weight:600;color:#fff;
  opacity:0;text-shadow:0 2px 20px rgba(0,0,0,.8);animation:hvcap var(--reel) ease-in-out infinite}
.hv-scene[data-scene="2"]{animation-delay:4.8s}
.hv-scene[data-scene="3"]{animation-delay:9.6s}
.hv-scene[data-scene="4"]{animation-delay:14.4s}
@keyframes hvcap{
  0%{opacity:0;transform:translateY(8px)}
  4%,21%{opacity:1;transform:translateY(0)}
  25%,100%{opacity:0;transform:translateY(-6px)}
}

/* Chapter progress, like a video scrubber */
.hv-progress{position:absolute;left:50%;bottom:14px;transform:translateX(-50%);display:flex;gap:5px}
.hv-progress i{display:block;width:34px;height:3px;border-radius:2px;background:rgba(255,255,255,.22);overflow:hidden;position:relative}
.hv-progress i::after{content:"";position:absolute;inset:0;width:0;background:#fff;border-radius:2px;
  animation:hvbar var(--reel) linear infinite}
.hv-progress i:nth-child(2)::after{animation-delay:4.8s}
.hv-progress i:nth-child(3)::after{animation-delay:9.6s}
.hv-progress i:nth-child(4)::after{animation-delay:14.4s}
@keyframes hvbar{0%{width:0}25%{width:100%}26%,100%{width:0}}

.hv-bottom-bar{flex-direction:column;gap:10px;padding-bottom:26px}

@media(max-width:680px){
  .hv-scenes{bottom:66px}
  .hv-card-tr,.hv-card-br{display:none}
  /* Two shots instead of four, so the surviving cards still cover the loop */
  .hv-card-bl{animation-delay:9.6s!important}
}
@media(prefers-reduced-motion:reduce){
  .hv-frame .hv-card,.hv-map-bg,.hv-scene,.hv-progress i::after{animation:none!important}
  .hv-card{opacity:1;transform:none}
  .hv-scene[data-scene="1"]{opacity:1}
  .hv-progress i::after{width:100%}
}

/* ---- AI safety section sits high on the page, so give it room ---- */
.capsec{padding:70px 0 20px}
.capsec .capgrid-head{margin:0 0 28px;max-width:680px}
.capsec .capgrid-head h2{font-size:clamp(1.7rem,3.4vw,2.4rem);font-weight:800;letter-spacing:-.025em;margin:0 0 12px;text-wrap:balance}
.capgrid{grid-template-columns:repeat(4,1fr)}

/* BSD — blind spot detection */
.cap-bsd{background:linear-gradient(#0a1024,#0e1732)}
.bsd-truck{position:absolute;left:50%;top:50%;width:44px;height:86px;transform:translate(-50%,-50%);
  border-radius:5px;background:linear-gradient(#33436b,#1d2745);border:1px solid #4a5d8a}
.bsd-zone{position:absolute;top:50%;width:52px;height:80px;transform:translateY(-50%);border-radius:6px;
  background:rgba(34,211,238,.1);border:1px dashed rgba(34,211,238,.35)}
.bsd-zone-l{left:calc(50% - 104px)}
.bsd-zone-r{right:calc(50% - 104px)}
.clip.playing .bsd-zone-l{animation:bsdhot 3.8s ease-in-out infinite}
@keyframes bsdhot{0%,38%{background:rgba(34,211,238,.1);border-color:rgba(34,211,238,.35)}
  50%,78%{background:rgba(239,68,68,.22);border-color:rgba(239,68,68,.7)}
  90%,100%{background:rgba(34,211,238,.1);border-color:rgba(34,211,238,.35)}}
.bsd-bike{position:absolute;left:calc(50% - 90px);top:78%;width:13px;height:24px;border-radius:3px;
  background:#fbbf24;box-shadow:0 0 8px rgba(251,191,36,.6)}
.clip.playing .bsd-bike{animation:bsdride 3.8s ease-in-out infinite}
@keyframes bsdride{0%{top:104%;opacity:0}12%{opacity:1}52%,74%{top:46%}100%{top:8%;opacity:0}}
.bsd-warn{position:absolute;left:0;right:0;bottom:8px;text-align:center;font-size:.66rem;font-weight:800;
  letter-spacing:.09em;color:#fff;background:rgba(239,68,68,.85);padding:5px;opacity:0}
.clip.playing .bsd-warn{animation:warnflash 3.8s ease-in-out infinite}

/* 360° stitched view */
.cap-360{background:#070b16;display:flex;align-items:center;justify-content:center}
.c360-quads{position:absolute;inset:16px;display:grid;grid-template-columns:1fr 1fr;grid-template-rows:1fr 1fr;gap:4px}
.c360-quads i{border:1px solid rgba(99,102,241,.3);border-radius:4px;background:rgba(99,102,241,.07);opacity:.35}
.clip.playing .c360-quads i{animation:c360q 4s ease-in-out infinite}
.c360-quads i:nth-child(2){animation-delay:.35s!important}
.c360-quads i:nth-child(3){animation-delay:.7s!important}
.c360-quads i:nth-child(4){animation-delay:1.05s!important}
@keyframes c360q{0%,10%{opacity:.35}22%,78%{opacity:1;background:rgba(99,102,241,.16)}100%{opacity:.35}}
.c360-truck{position:absolute;left:50%;top:50%;width:30px;height:52px;transform:translate(-50%,-50%);
  border-radius:4px;background:linear-gradient(#e8edf9,#9aa6c4);z-index:2}
.c360-sweep{position:absolute;left:50%;top:50%;width:150px;height:150px;transform:translate(-50%,-50%);
  border-radius:50%;background:conic-gradient(from 0deg,rgba(34,211,238,.45),transparent 28%);z-index:1}
.clip.playing .c360-sweep{animation:c360spin 3s linear infinite}
@keyframes c360spin{to{transform:translate(-50%,-50%) rotate(360deg)}}
.c360-tag{position:absolute;left:12px;bottom:10px;font-size:.66rem;font-weight:700;color:#a5b4fc;z-index:3}

/* Cargo & load */
.cap-cargo{background:#080d18;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:8px}
.cargo-bay{position:relative;width:160px;height:56px;border:2px solid #3b4a6b;border-radius:5px;
  background:#0d1324;display:flex;align-items:flex-end;overflow:hidden}
.cargo-fill{width:100%;height:20%;background:repeating-linear-gradient(45deg,#6366f1 0 7px,#4f46e5 7px 14px)}
.clip.playing .cargo-fill{animation:cargoload 4.2s ease-in-out infinite}
@keyframes cargoload{0%{height:20%}45%,85%{height:78%}100%{height:20%}}
.cargo-box{position:absolute;top:14px;left:calc(50% + 92px);width:16px;height:14px;border-radius:2px;background:#818cf8;opacity:0}
.clip.playing .cargo-box{animation:cargodrop 4.2s ease-in-out infinite}
@keyframes cargodrop{0%,8%{opacity:0;transform:translate(0,0)}16%{opacity:1}40%{opacity:1;transform:translate(-96px,26px)}46%,100%{opacity:0}}
.cargo-read{font-size:.78rem;color:#c9d3e8}
.cargo-read b{color:#22d3ee;font-size:.95rem}
.cargo-tag{font-size:.66rem;color:#fcd34d;background:rgba(245,158,11,.12);border:1px solid rgba(245,158,11,.3);
  border-radius:6px;padding:3px 9px;opacity:0}
.clip.playing .cargo-tag{animation:fuelfade 4.2s ease-out infinite;animation-delay:.4s}

/* Bus / staff transport */
.cap-bus{background:linear-gradient(#0a1024,#101a36);display:flex;flex-direction:column;align-items:center;justify-content:center;gap:9px}
.bus-body{position:relative;width:170px;height:52px;border-radius:8px 14px 8px 8px;
  background:linear-gradient(#f5a623,#d98f0f);display:flex;align-items:center;gap:6px;padding:0 12px;
  box-shadow:0 6px 18px rgba(245,166,35,.25)}
.bus-body span{flex:1;height:20px;border-radius:3px;background:rgba(10,16,36,.55)}
.clip.playing .bus-body span{animation:busseat 4s ease-in-out infinite}
.bus-body span:nth-child(2){animation-delay:.2s!important}
.bus-body span:nth-child(3){animation-delay:.4s!important}
.bus-body span:nth-child(4){animation-delay:.6s!important}
@keyframes busseat{0%,14%{background:rgba(10,16,36,.55)}26%,82%{background:rgba(34,211,238,.75)}100%{background:rgba(10,16,36,.55)}}
.bus-count{font-size:.78rem;color:#c9d3e8}
.bus-count b{color:#22d3ee;font-size:1rem}
.bus-stop{font-size:.66rem;color:#4ade80;background:rgba(34,197,94,.12);border:1px solid rgba(34,197,94,.3);
  border-radius:6px;padding:3px 9px;opacity:0}
.clip.playing .bus-stop{animation:fuelfade 4s ease-out infinite;animation-delay:.5s}

@media(max-width:1180px){.capgrid{grid-template-columns:repeat(3,1fr)}}
@media(max-width:900px){.capgrid{grid-template-columns:repeat(2,1fr)}}
@media(max-width:620px){.capgrid{grid-template-columns:1fr}.capsec{padding:44px 0 10px}}
@media(prefers-reduced-motion:reduce){
  .bsd-bike,.bsd-zone,.bsd-warn,.c360-quads i,.c360-sweep,.cargo-fill,.cargo-box,.cargo-tag,.bus-body span,.bus-stop{animation:none!important}
  .bsd-warn,.cargo-tag,.bus-stop,.cargo-box{opacity:1!important}
}

/* ---- Automation levels (SAE J3016) ---- */
.alsec { padding: 30px 0 70px; }
.al-track { display: grid; grid-template-columns: repeat(6, 1fr); gap: 14px;
  position: relative; padding-top: 26px; }

/* The rail runs behind the cards and stops where FleetWorks stops. A bar that
   ran the full width would imply capability the product does not have. */
.al-line { position: absolute; top: 8px; left: 0; right: 0; height: 4px;
  background: rgba(255,255,255,.08); border-radius: 3px; overflow: hidden; }
.al-fill { display: block; height: 100%; width: 25%;
  background: linear-gradient(90deg, #6366f1, #22d3ee); border-radius: 3px; }

.al-card { background: var(--ai-surface); border: 1px solid var(--ai-line);
  border-radius: 14px; padding: 16px 15px; position: relative; }
.al-card h3 { font-size: .98rem; font-weight: 700; color: var(--ai-text); margin: 8px 0 7px; }
.al-card p { font-size: .8rem; color: var(--ai-muted); line-height: 1.55; margin: 0; }
.al-num { font-size: .72rem; font-weight: 800; letter-spacing: .08em; color: var(--ai-muted);
  border: 1px solid var(--ai-line); border-radius: 6px; padding: 3px 8px; display: inline-block; }

.al-card.is-here { border-color: rgba(99,102,241,.55); background: rgba(99,102,241,.09);
  box-shadow: 0 0 0 1px rgba(99,102,241,.25), 0 18px 46px rgba(99,102,241,.16); }
.al-card.is-here .al-num { color: #c7d2fe; border-color: rgba(99,102,241,.5); }

.al-tag { display: inline-block; margin-top: 11px; font-size: .68rem; font-weight: 700;
  padding: 4px 9px; border-radius: 100px; background: rgba(255,255,255,.06); color: var(--ai-muted); }
.al-tag-here { background: var(--ai-gradient); color: #fff; }
.al-tag-most { background: rgba(245,158,11,.15); color: #fcd34d; }

.al-note { margin-top: 10px !important; padding-top: 10px; border-top: 1px solid var(--ai-line);
  font-size: .76rem !important; }
.al-note strong { color: var(--ai-text); }

.al-foot { max-width: 760px; margin: 26px auto 0; text-align: center;
  font-size: .85rem; color: var(--ai-muted); line-height: 1.65; }

@media (max-width: 1100px) { .al-track { grid-template-columns: repeat(3, 1fr); } .al-line { display: none; } }
@media (max-width: 640px)  { .al-track { grid-template-columns: 1fr; } }

/* ---- Mega nav ---- */
.mega-nav { display: flex; align-items: center; gap: 2px; }
.mega-item { position: relative; }
.mega-trigger { background: none; border: none; font: inherit; font-size: .9rem; font-weight: 600;
  color: var(--ai-muted); padding: 9px 14px; border-radius: 9px; cursor: pointer;
  display: inline-flex; align-items: center; gap: 6px; }
.mega-trigger:hover, .mega-item.open .mega-trigger { color: #fff; background: var(--ai-surface); }
.mega-chev { width: 7px; height: 7px; border-right: 1.6px solid currentColor;
  border-bottom: 1.6px solid currentColor; transform: rotate(45deg) translate(-1px, -1px);
  transition: transform .18s; }
.mega-item.open .mega-chev { transform: rotate(-135deg) translate(-2px, -2px); }

.mega-plain { font-size: .9rem; font-weight: 600; color: var(--ai-muted);
  padding: 9px 14px; border-radius: 9px; text-decoration: none; }
.mega-plain:hover { color: #fff; background: var(--ai-surface); }
.mega-accent { background: var(--ai-gradient); color: #fff !important; }
.mega-accent:hover { opacity: .92; background: var(--ai-gradient); }

.mega-panel {
  position: absolute; top: calc(100% + 10px); left: 0; z-index: 120;
  display: none; gap: 26px; padding: 20px 22px;
  background: rgba(10, 14, 30, 0.97); border: 1px solid var(--ai-line);
  border-radius: 14px; box-shadow: 0 28px 70px rgba(0, 0, 0, .55);
  -webkit-backdrop-filter: blur(18px); backdrop-filter: blur(18px);
  min-width: 330px;
}
.mega-item.open .mega-panel { display: flex; }
.mega-wide { min-width: 760px; }
.mega-panel:has(.mega-col:nth-child(4)) { min-width: 900px; }
/* Panels near the right edge would otherwise run off screen. */
.mega-item:nth-last-of-type(-n+2) .mega-panel { left: auto; right: 0; }

.mega-col { display: flex; flex-direction: column; gap: 3px; min-width: 220px; }
.mega-head { font-size: .66rem; font-weight: 800; letter-spacing: .09em;
  text-transform: uppercase; color: var(--ai-muted); padding: 0 10px 7px; }
.mega-col a { display: block; padding: 9px 10px; border-radius: 9px; text-decoration: none; }
.mega-col a:hover { background: var(--ai-surface); }
.mega-col a strong { display: block; font-size: .88rem; color: var(--ai-text); font-weight: 700; }
.mega-col a span { display: block; font-size: .76rem; color: var(--ai-muted); margin-top: 2px; line-height: 1.45; }
.mega-feature { border-left: 1px solid var(--ai-line); padding-left: 22px; }

/* ---- AI Mechanic ---- */
.aimech { padding: 70px 0; }
.aim-grid { display: grid; grid-template-columns: 1fr 420px; gap: 46px; align-items: start; }
.aim-copy h2 { font-size: clamp(1.7rem, 3.4vw, 2.4rem); font-weight: 800; letter-spacing: -.025em;
  margin: 0 0 14px; text-wrap: balance; }
.aim-points { list-style: none; padding: 0; margin: 22px 0; display: flex; flex-direction: column; gap: 14px; }
.aim-points li { font-size: .86rem; color: var(--ai-muted); line-height: 1.6;
  padding-left: 16px; border-left: 2px solid var(--ai-line); }
.aim-points strong { color: var(--ai-text); }
.aim-cta { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 6px; }
/* The limits belong on the page, not in a footnote nobody reads. */
.aim-caveat { margin-top: 18px; font-size: .78rem; color: var(--ai-muted);
  background: var(--ai-surface); border-left: 2px solid var(--ai-amber);
  padding: 10px 13px; border-radius: 0 8px 8px 0; }

.aim-chat { background: rgba(10,14,30,.9); border: 1px solid var(--ai-line);
  border-radius: 16px; padding: 16px; display: flex; flex-direction: column; gap: 10px;
  box-shadow: 0 28px 70px rgba(0,0,0,.45); }
.aim-chat-head { display: flex; align-items: center; gap: 8px; font-size: .8rem;
  font-weight: 700; color: var(--ai-text); padding-bottom: 10px; border-bottom: 1px solid var(--ai-line); }
.aim-dot { width: 8px; height: 8px; border-radius: 50%; background: #a855f7;
  box-shadow: 0 0 8px #a855f7; animation: dfpulse 1.6s ease-in-out infinite; }
.aim-msg { border-radius: 12px; padding: 11px 13px; font-size: .82rem; line-height: 1.55; }
.aim-user { background: var(--ai-gradient); color: #fff; align-self: flex-end; max-width: 88%; }
.aim-bot { background: var(--ai-surface); border: 1px solid var(--ai-line); color: var(--ai-muted); }
.aim-bot b { display: block; color: var(--ai-text); margin-bottom: 4px; }
.aim-bot p { margin: 0; }
.aim-quote { display: flex; flex-direction: column; gap: 3px;
  background: rgba(34,197,94,.09); border-color: rgba(34,197,94,.3); }
.aim-quote span { font-size: .68rem; text-transform: uppercase; letter-spacing: .06em; color: var(--ai-muted); }
.aim-quote b { font-size: 1.1rem; color: #4ade80; margin: 0; }
.aim-quote em { font-style: normal; font-size: .74rem; color: var(--ai-muted); }

/* ---- Customers ---- */
.customers { padding: 20px 0 70px; }
.cust-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.cust-card { margin: 0; background: var(--ai-surface); border: 1px solid var(--ai-line);
  border-radius: 14px; padding: 20px; display: flex; flex-direction: column; gap: 14px; }
.cust-card blockquote { margin: 0; font-size: .88rem; color: var(--ai-text); line-height: 1.65; }
.cust-card blockquote::before { content: "\201C"; color: var(--ai-muted); font-size: 1.6rem;
  line-height: 0; vertical-align: -0.35em; margin-right: 2px; }
.cust-card figcaption { border-top: 1px solid var(--ai-line); padding-top: 12px; margin-top: auto; }
.cust-card figcaption strong { display: block; font-size: .84rem; color: var(--ai-text); }
.cust-card figcaption span { font-size: .76rem; color: var(--ai-muted); }
/* Saying these are paraphrased is the difference between a quote and a claim. */
.cust-note { margin: 22px auto 0; max-width: 640px; text-align: center;
  font-size: .8rem; color: var(--ai-muted); line-height: 1.6; }

@media (max-width: 1100px) {
  .aim-grid { grid-template-columns: 1fr; }
  .cust-grid { grid-template-columns: 1fr; }
}
@media (max-width: 980px) {
  /* The drawer is a flat list; mega panels sit inline rather than floating. */
  .mega-nav { flex-direction: column; align-items: stretch; }
  .mega-panel { position: static; display: flex; flex-direction: column; min-width: 0;
    box-shadow: none; border: none; background: none; padding: 0 0 0 12px; }
  .mega-wide { min-width: 0; }
  .mega-item .mega-panel { display: none; }
  .mega-item.open .mega-panel { display: flex; }
  .mega-feature { border-left: none; padding-left: 0; }
  .mega-trigger { width: 100%; justify-content: space-between; }
}

/* The shared drawer breakpoint is 680px, which was fine for seven plain links.
   A six-item mega nav plus two buttons needs the room far sooner — below this
   the nav row pushed Sign In and Book Service off the right edge and gave the
   whole page a horizontal scrollbar. Scoped to landing.css so only index.html
   changes; the app pages keep their own nav. */
@media (max-width: 1100px) {
  .navbar .mega-nav {
    position: fixed; top: 68px; left: 0; right: 0;
    background: #0a0e1e; flex-direction: column; align-items: stretch; gap: 0;
    border-bottom: 1px solid var(--ai-line); box-shadow: var(--ai-shadow);
    max-height: 0; overflow: hidden; overflow-y: auto; transition: max-height .25s ease;
    padding: 0;
  }
  /* A fixed px cap rather than a viewport-relative one, so the drawer height is
     predictable while it animates; overflow-y scrolls anything taller. */
  .navbar .mega-nav.open { max-height: 640px; padding: 8px 0 14px; }
  .navbar .hamburger { display: flex; }
  .mega-trigger, .mega-plain { width: 100%; justify-content: space-between;
    border-radius: 0; padding: 13px 20px; }
  .mega-accent { margin: 8px 20px 0; width: auto; border-radius: 9px; justify-content: center; }
  .mega-panel { position: static; display: none; flex-direction: column; gap: 4px;
    min-width: 0; background: none; border: none; box-shadow: none;
    padding: 0 20px 10px; backdrop-filter: none; -webkit-backdrop-filter: none; }
  .mega-item.open .mega-panel { display: flex; }
  .mega-wide { min-width: 0; }
  .mega-feature { border-left: none; padding-left: 0; }
  .mega-col { min-width: 0; }
  .mega-head { padding: 8px 10px 4px; }
}

/* The Products panel carries six columns, so it spans the navbar rather than
   dropping from its trigger. Anchoring it to the trigger and centring with a
   translate pushed it 215px off the left edge, because left:50% resolves
   against the .mega-item, not the viewport. Making that one item static lets
   the panel resolve against .navbar — which is sticky, therefore positioned —
   and stretch the full width under the nav, the way Motive's does. */
.mega-item-xl { position: static; }
/* No display here: .mega-panel is display:none until its item is open, and a
   base `display:grid !important` overrode that — leaving the Products panel
   permanently open on top of the hero and the India map. Layout only. */
.mega-xl {
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 18px 22px;
  left: 24px !important; right: 24px !important; width: auto; transform: none;
}
.mega-item.open .mega-xl { display: grid; }
.mega-xl .mega-col { min-width: 0; }
.mega-xl .mega-col a span { font-size: .73rem; }

@media (max-width: 1600px) { .mega-xl { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
@media (max-width: 1200px) { .mega-xl { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 1100px) {
  /* In the drawer everything is one column and flows normally again. */
  .mega-item-xl { position: relative; }
  .mega-xl { flex-direction: column; width: auto;
    left: auto !important; right: auto !important; gap: 4px; }
  .mega-item.open .mega-xl { display: flex; }
}
