/* ============================================================
   GeoCom Maroc — style.css
   Premium design system built on top of Tailwind CDN
   ============================================================ */

:root {
  --brand: #10b981;
  --brand-600: #059669;
  --brand-700: #047857;
  --bg: #ffffff;
  --bg-soft: #f8fafc;
  --text: #0f172a;
  --muted: #64748b;
  --card: rgba(255, 255, 255, 0.65);
  --card-border: rgba(15, 23, 42, 0.08);
  --shadow: 0 20px 50px -20px rgba(15, 23, 42, 0.25);
  --nav-bg: rgba(255, 255, 255, 0.55);
}

.dark {
  --bg: #05070a;
  --bg-soft: #0b0f14;
  --text: #e2e8f0;
  --muted: #94a3b8;
  --card: rgba(255, 255, 255, 0.04);
  --card-border: rgba(255, 255, 255, 0.08);
  --shadow: 0 30px 60px -25px rgba(0, 0, 0, 0.7);
  --nav-bg: rgba(10, 14, 20, 0.55);
}

* { font-variation-settings: normal; }
html { -webkit-font-smoothing: antialiased; }
body { transition: background-color .5s ease, color .5s ease; overflow-x: hidden; }

/* Font weight utility aliases used in markup */
.font-300 { font-weight: 300 } .font-400 { font-weight: 400 }
.font-500 { font-weight: 500 } .font-600 { font-weight: 600 }
.font-700 { font-weight: 700 } .font-800 { font-weight: 800 } .font-900 { font-weight: 900 }

/* ---------- Background mesh ---------- */
.bg-gradient-mesh {
  background:
    radial-gradient(50% 40% at 15% 10%, rgba(16, 185, 129, 0.10), transparent 70%),
    radial-gradient(45% 45% at 85% 20%, rgba(52, 211, 153, 0.08), transparent 70%),
    radial-gradient(60% 50% at 50% 100%, rgba(5, 150, 105, 0.06), transparent 70%);
}
.dark .bg-gradient-mesh {
  background:
    radial-gradient(50% 40% at 15% 10%, rgba(16, 185, 129, 0.14), transparent 70%),
    radial-gradient(45% 45% at 85% 20%, rgba(16, 185, 129, 0.10), transparent 70%),
    radial-gradient(60% 50% at 50% 100%, rgba(5, 150, 105, 0.10), transparent 70%);
}

/* ---------- Text helpers ---------- */
.text-gradient-brand {
  background: linear-gradient(120deg, var(--brand) 0%, var(--brand-600) 45%, #34d399 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}

.section-eyebrow {
  display: inline-flex; align-items: center; gap: .5rem;
  font-size: .75rem; font-weight: 700; letter-spacing: .18em; text-transform: uppercase;
  color: var(--brand-600); margin-bottom: 1rem;
}
.dark .section-eyebrow { color: #34d399; }
.section-title {
  font-family: 'Sora', sans-serif; font-weight: 800; letter-spacing: -0.02em;
  font-size: clamp(1.9rem, 4vw, 3rem); line-height: 1.08;
}

.pill {
  padding: .4rem .9rem; border-radius: 999px; font-size: .8rem; font-weight: 600;
  background: rgba(16,185,129,.1); color: var(--brand-700);
  border: 1px solid rgba(16,185,129,.2);
}
.dark .pill { color: #6ee7b7; }

.chip {
  font-size: .7rem; font-weight: 600; padding: .25rem .6rem; border-radius: 999px;
  background: rgba(16,185,129,.12); color: var(--brand-700);
}
.dark .chip { color: #6ee7b7; }

/* ---------- Buttons ---------- */
.btn-primary {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  padding: .6rem 1.3rem; border-radius: 999px; font-weight: 600;
  color: #fff; background: linear-gradient(120deg, var(--brand), var(--brand-600));
  box-shadow: 0 10px 30px -10px rgba(16,185,129,.6);
  transition: transform .25s ease, box-shadow .25s ease, filter .25s;
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 16px 40px -12px rgba(16,185,129,.7); filter: brightness(1.05); }
.btn-primary:active { transform: translateY(0); }

.btn-ghost {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  padding: .6rem 1.3rem; border-radius: 999px; font-weight: 600;
  color: var(--text); border: 1px solid var(--card-border);
  background: var(--card); backdrop-filter: blur(12px);
  transition: transform .25s ease, border-color .25s;
}
.btn-ghost:hover { transform: translateY(-2px); border-color: rgba(16,185,129,.4); }

.ctrl-btn {
  display: grid; place-items: center; height: 2.25rem; min-width: 2.25rem; padding: 0 .5rem;
  border-radius: .75rem; color: var(--text);
  border: 1px solid var(--card-border); background: var(--card);
  transition: background .2s, border-color .2s, transform .15s;
}
.ctrl-btn:hover { border-color: rgba(16,185,129,.4); transform: translateY(-1px); }

/* ---------- Glass ---------- */
.glass-nav {
  background: var(--nav-bg); backdrop-filter: blur(20px) saturate(180%);
  border: 1px solid var(--card-border);
}
#navbar.scrolled #nav-inner {
  box-shadow: var(--shadow);
  background: var(--nav-bg);
}
.glass-card {
  background: var(--card); backdrop-filter: blur(16px) saturate(160%);
  border: 1px solid var(--card-border); box-shadow: var(--shadow);
}

/* ---------- Nav links ---------- */
.nav-link {
  position: relative; padding: .5rem .85rem; border-radius: .6rem;
  color: var(--muted); transition: color .2s;
}
.nav-link:hover { color: var(--text); }
.nav-link::after {
  content: ''; position: absolute; left: .85rem; right: .85rem; bottom: .3rem; height: 2px;
  background: var(--brand); border-radius: 2px; transform: scaleX(0); transform-origin: left;
  transition: transform .3s ease;
}
.nav-link:hover::after, .nav-link.active::after { transform: scaleX(1); }
.mob-link { display: block; padding: .7rem .9rem; border-radius: .7rem; color: var(--text); font-weight: 500; }
.mob-link:hover { background: rgba(16,185,129,.1); }

/* ---------- Devices: MacBook ---------- */
.macbook { position: relative; }
.macbook-screen {
  position: relative; margin: 0 auto; width: 100%;
  background: linear-gradient(160deg, #1f2937, #0b0f14);
  border-radius: 18px 18px 0 0; padding: 12px 12px 0;
  box-shadow: 0 40px 80px -30px rgba(0,0,0,.5);
}
.macbook-bezel {
  border-radius: 8px; overflow: hidden; background: #000;
  aspect-ratio: 16 / 10; position: relative;
}
.dashboard-viewport { position: absolute; inset: 0; overflow: hidden; }
.dashboard-scroll { position: absolute; inset: 0; will-change: transform; }
.macbook-base {
  position: relative; height: 16px; margin: 0 auto; width: 112%; left: -6%;
  background: linear-gradient(#c7cdd6, #9aa2ad);
  border-radius: 0 0 14px 14px;
}
.dark .macbook-base { background: linear-gradient(#3a414c, #222831); }
.macbook-notch {
  position: absolute; top: 0; left: 50%; transform: translateX(-50%);
  width: 90px; height: 8px; background: rgba(0,0,0,.25); border-radius: 0 0 8px 8px;
}

/* ---------- Devices: iPhone ---------- */
.iphone {
  position: relative; width: 100%; aspect-ratio: 9 / 19.5;
  background: linear-gradient(160deg, #2a2f37, #0c0f13);
  border-radius: 32px; padding: 8px;
  box-shadow: 0 30px 60px -20px rgba(0,0,0,.5), inset 0 0 0 2px rgba(255,255,255,.05);
}
.iphone-lg { width: 240px; }
.iphone-notch {
  position: absolute; top: 8px; left: 50%; transform: translateX(-50%);
  width: 38%; height: 18px; background: #000; border-radius: 0 0 14px 14px; z-index: 3;
}
.iphone-screen {
  position: relative; width: 100%; height: 100%; border-radius: 26px; overflow: hidden; background: #0b0f14;
}
.phone-viewport { position: absolute; inset: 0; overflow: hidden; }
.phone-scroll { position: absolute; inset: 0; will-change: transform; }

/* ---------- Logo marquee ---------- */
.logo-marquee { overflow: hidden; -webkit-mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent); }
.logo-track { display: flex; gap: 3.5rem; width: max-content; animation: marquee 32s linear infinite; }
.logo-item { font-family: 'Sora'; font-weight: 700; font-size: 1.25rem; color: var(--muted); opacity: .6; white-space: nowrap; transition: opacity .2s, color .2s; }
.logo-item:hover { opacity: 1; color: var(--brand-600); }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------- Value cards ---------- */
.value-card {
  display: flex; gap: 1rem; align-items: flex-start; padding: 1.4rem;
  border-radius: 1.25rem; background: var(--card); border: 1px solid var(--card-border);
  backdrop-filter: blur(12px); transition: transform .3s ease, border-color .3s, box-shadow .3s;
}
.value-card:hover { transform: translateY(-4px); border-color: rgba(16,185,129,.35); box-shadow: var(--shadow); }
.value-icon {
  flex-shrink: 0; display: grid; place-items: center; height: 3rem; width: 3rem; border-radius: .9rem;
  color: #fff; background: linear-gradient(135deg, var(--brand), var(--brand-600));
  box-shadow: 0 10px 24px -10px rgba(16,185,129,.6);
}
.value-icon svg { height: 1.4rem; width: 1.4rem; }

/* ---------- KPI ---------- */
.kpi-card {
  padding: 1.6rem; border-radius: 1.25rem; text-align: center;
  background: var(--card); border: 1px solid var(--card-border); backdrop-filter: blur(12px);
  transition: transform .3s, border-color .3s;
}
.kpi-card:hover { transform: translateY(-4px); border-color: rgba(16,185,129,.35); }
.kpi-num { font-family: 'Sora'; font-weight: 800; font-size: clamp(2rem, 5vw, 3.2rem); line-height: 1; }
.kpi-card .kpi-num { color: var(--brand-600); }
.dark .kpi-card .kpi-num { color: #34d399; }
.kpi-label { margin-top: .5rem; font-size: .82rem; color: var(--muted); }

/* ---------- Bento ---------- */
.bento-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; }
.bento-card {
  padding: 1.6rem; border-radius: 1.5rem; background: var(--card);
  border: 1px solid var(--card-border); backdrop-filter: blur(14px);
  transition: transform .35s ease, border-color .35s, box-shadow .35s; position: relative; overflow: hidden;
}
.bento-card:hover { transform: translateY(-5px); border-color: rgba(16,185,129,.35); box-shadow: var(--shadow); }
.bento-lg { grid-column: span 2; grid-row: span 2; }
.bento-wide { grid-column: span 2; }
.mini-dash { height: 140px; border-radius: 1rem; overflow: hidden; background: rgba(16,185,129,.05); border: 1px solid var(--card-border); }
@media (max-width: 900px) {
  .bento-grid { grid-template-columns: 1fr 1fr; }
  .bento-lg, .bento-wide { grid-column: span 2; grid-row: auto; }
}
@media (max-width: 560px) { .bento-grid { grid-template-columns: 1fr; } .bento-lg, .bento-wide { grid-column: auto; } }

.live-dot-badge { display: inline-flex; align-items: center; gap: .4rem; font-size: .7rem; font-weight: 600; padding: .3rem .7rem; border-radius: 999px; background: rgba(16,185,129,.12); color: var(--brand-700); }
.dark .live-dot-badge { color: #6ee7b7; }
.live-dot { height: .5rem; width: .5rem; border-radius: 999px; background: var(--brand); box-shadow: 0 0 0 0 rgba(16,185,129,.6); animation: pulse-dot 1.8s infinite; }
@keyframes pulse-dot { 0% { box-shadow: 0 0 0 0 rgba(16,185,129,.5); } 70% { box-shadow: 0 0 0 8px rgba(16,185,129,0); } 100% { box-shadow: 0 0 0 0 rgba(16,185,129,0); } }

/* ---------- Feature list ---------- */
.feat-li { display: flex; align-items: center; gap: .6rem; color: var(--muted); }
.feat-li::before {
  content: ''; flex-shrink: 0; height: 1.4rem; width: 1.4rem; border-radius: 999px;
  background: rgba(16,185,129,.15) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%2310b981' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E") center / 14px no-repeat;
}

/* ---------- Store badges ---------- */
.store-badge {
  display: inline-flex; align-items: center; gap: .6rem; padding: .55rem 1rem; border-radius: .9rem;
  background: #0f172a; color: #fff; transition: transform .2s, filter .2s;
}
.dark .store-badge { background: #1e293b; }
.store-badge:hover { transform: translateY(-2px); filter: brightness(1.1); }
.store-badge span { display: flex; flex-direction: column; line-height: 1.1; }
.store-badge small { font-size: .6rem; opacity: .8; }
.store-badge strong { font-size: .9rem; font-weight: 700; }

/* ---------- Morocco map ---------- */
.map-panel {
  position: relative; padding: 2rem; border-radius: 2rem; background: var(--card);
  border: 1px solid var(--card-border); backdrop-filter: blur(14px); box-shadow: var(--shadow);
}
.city-dot { fill: var(--brand); cursor: pointer; transition: r .2s; }
.city-halo { fill: rgba(16,185,129,.25); animation: halo 2.4s ease-out infinite; transform-box: fill-box; transform-origin: center; }
@keyframes halo { 0% { transform: scale(.6); opacity: .8; } 100% { transform: scale(2.6); opacity: 0; } }
.route-line { stroke: var(--brand); stroke-width: 1.6; fill: none; stroke-dasharray: 6 6; opacity: .5; }
.vehicle-marker { fill: var(--brand-600); }
.map-country { fill: rgba(16,185,129,.06); stroke: rgba(16,185,129,.4); stroke-width: 1.5; }
.dark .map-country { fill: rgba(16,185,129,.08); }
.city-label { font-size: 11px; fill: var(--muted); font-weight: 600; pointer-events: none; }
.map-tooltip {
  position: absolute; z-index: 10; pointer-events: none; transform: translate(-50%, -120%);
  background: var(--card); border: 1px solid var(--card-border); backdrop-filter: blur(12px);
  padding: .6rem .85rem; border-radius: .8rem; font-size: .78rem; box-shadow: var(--shadow); min-width: 130px;
}

/* ---------- Industry / ref cards ---------- */
.industry-card {
  position: relative; overflow: hidden;
  padding: 1.5rem; border-radius: 1.25rem; background: var(--card); border: 1px solid var(--card-border);
  backdrop-filter: blur(12px); transition: transform .3s, border-color .3s, box-shadow .3s;
}
.industry-card::before {
  content: ''; position: absolute; inset: 0; z-index: -1; opacity: 0;
  background: var(--img) center / cover no-repeat; transition: opacity .5s, transform .6s; transform: scale(1.05);
}
.industry-card::after {
  content: ''; position: absolute; inset: 0; z-index: -1; opacity: 0; transition: opacity .5s;
  background: linear-gradient(180deg, rgba(5,150,105,.35), rgba(4,47,34,.85));
}
.industry-card:hover::before, .industry-card:hover::after { opacity: 1; }
.industry-card:hover::before { transform: scale(1); }
.industry-card:hover { transform: translateY(-4px); border-color: rgba(16,185,129,.35); box-shadow: var(--shadow); color: #fff; }
.industry-card:hover h3, .industry-card:hover p { color: #fff !important; }

/* Media frame (photos) */
.media-frame { position: relative; overflow: hidden; border-radius: 2rem; border: 1px solid var(--card-border); box-shadow: var(--shadow); }
.media-frame img { display: block; transition: transform .8s ease; }
.media-frame:hover img { transform: scale(1.04); }
.media-overlay { position: absolute; inset: 0; background: linear-gradient(120deg, rgba(4,47,34,.55), transparent 45%, rgba(16,185,129,.25)); }
.media-caption { position: absolute; left: 1.2rem; bottom: 1.2rem; }
.media-caption .live-dot-badge { background: rgba(255,255,255,.9); color: var(--brand-700); backdrop-filter: blur(8px); }

/* Product showcase hero with floating UI cards */
.showcase-hero { position: relative; overflow: hidden; border-radius: 2rem; border: 1px solid var(--card-border); box-shadow: var(--shadow); }
.showcase-img { display: block; width: 100%; height: clamp(360px, 46vw, 560px); object-fit: cover; transition: transform 1s ease; }
.showcase-hero:hover .showcase-img { transform: scale(1.03); }
.showcase-overlay { position: absolute; inset: 0; background: linear-gradient(115deg, rgba(4,47,34,.5), transparent 40%, rgba(4,47,34,.35)); }
.float-card {
  position: absolute; z-index: 3; padding: .9rem 1.1rem; border-radius: 1rem;
  background: rgba(255,255,255,.82); backdrop-filter: blur(16px) saturate(180%);
  border: 1px solid rgba(255,255,255,.6); box-shadow: 0 20px 50px -20px rgba(0,0,0,.4);
  color: #0f172a; animation: floatY 6s ease-in-out infinite;
}
.dark .float-card { background: rgba(12,18,26,.7); border-color: rgba(255,255,255,.12); color: #e2e8f0; }
.float-card-tl { top: 1.2rem; left: 1.2rem; }
.float-card-br { bottom: 1.2rem; right: 1.2rem; animation-delay: .8s; }
.fc-head { display: flex; align-items: center; gap: .4rem; font-size: .7rem; font-weight: 700; color: var(--brand-600); text-transform: uppercase; letter-spacing: .05em; }
.dark .fc-head { color: #34d399; }
.fc-plate { font-family: 'Sora'; font-weight: 800; font-size: 1.15rem; margin-top: .2rem; }
.fc-sub { font-size: .75rem; color: var(--muted); }
.fc-kpis { display: flex; gap: 1.1rem; }
.fc-kpis div { display: flex; flex-direction: column; }
.fc-kpis b { font-family: 'Sora'; font-weight: 800; font-size: 1.25rem; line-height: 1; }
.fc-kpis small { font-size: .65rem; color: var(--muted); margin-top: .15rem; }
@media (max-width: 560px) {
  .float-card { padding: .6rem .75rem; }
  .fc-plate { font-size: .95rem; } .fc-kpis b { font-size: 1rem; } .fc-kpis { gap: .7rem; }
}

.ref-card {
  position: relative; height: 140px; padding: 1.4rem; border-radius: 1.25rem; overflow: hidden;
  display: flex; align-items: center; justify-content: center;
  background: var(--card); border: 1px solid var(--card-border); backdrop-filter: blur(12px);
  transition: border-color .3s, box-shadow .3s; cursor: pointer;
}
.ref-card:hover, .ref-card:focus-visible { border-color: rgba(16,185,129,.35); box-shadow: var(--shadow); }
.ref-logo { font-family: 'Sora'; font-weight: 700; font-size: 1.15rem; color: var(--muted); transition: transform .35s, opacity .35s; }
.ref-card:hover .ref-logo, .ref-card:focus-visible .ref-logo { transform: translateY(-30px); opacity: 0; }
.ref-reveal { position: absolute; inset: auto 1.4rem 1.4rem; text-align: center; opacity: 0; transform: translateY(12px); transition: opacity .35s, transform .35s; }
.ref-card:hover .ref-reveal, .ref-card:focus-visible .ref-reveal { opacity: 1; transform: translateY(0); }

/* ---------- Newsletter ---------- */
.newsletter-panel {
  position: relative; overflow: hidden; padding: 3.5rem 2rem; border-radius: 2rem;
  background: linear-gradient(120deg, var(--brand-600), var(--brand) 60%, #34d399);
  box-shadow: 0 30px 70px -25px rgba(16,185,129,.6);
}
.newsletter-panel::before {
  content: ''; position: absolute; inset: 0;
  background: radial-gradient(40% 60% at 80% 20%, rgba(255,255,255,.25), transparent 70%);
}
.newsletter-input { flex: 1; padding: .85rem 1.2rem; border-radius: 999px; border: none; outline: none; background: rgba(255,255,255,.95); color: #0f172a; }
.newsletter-btn { padding: .85rem 1.6rem; border-radius: 999px; background: #0f172a; color: #fff; font-weight: 600; transition: transform .2s, background .2s; }
.newsletter-btn:hover { transform: translateY(-2px); background: #1e293b; }

/* ---------- Contact ---------- */
.contact-row { display: flex; gap: .9rem; align-items: flex-start; }
.contact-ic { flex-shrink: 0; display: grid; place-items: center; height: 2.5rem; width: 2.5rem; border-radius: .8rem; color: var(--brand-600); background: rgba(16,185,129,.1); }
.dark .contact-ic { color: #34d399; }
.contact-ic svg { height: 1.2rem; width: 1.2rem; }
.contact-map-wrap { border-radius: 1.5rem; overflow: hidden; border: 1px solid var(--card-border); box-shadow: var(--shadow); }
.dark .contact-map-wrap iframe { filter: invert(0.9) hue-rotate(180deg) brightness(.9); }

/* ---------- Footer ---------- */
.footer-h { font-weight: 700; font-size: .95rem; margin-bottom: 1rem; }
.footer-list { display: flex; flex-direction: column; gap: .6rem; font-size: .875rem; }
.footer-list a { color: var(--muted); transition: color .2s; }
.footer-list a:hover { color: var(--brand-600); }
.social-btn { display: grid; place-items: center; height: 2.2rem; width: 2.2rem; border-radius: .7rem; color: var(--muted); border: 1px solid var(--card-border); transition: color .2s, border-color .2s, transform .2s; }
.social-btn:hover { color: var(--brand-600); border-color: rgba(16,185,129,.4); transform: translateY(-2px); }

/* ---------- Chat ---------- */
.chat-fab {
  position: fixed; bottom: 1.5rem; right: 1.5rem; z-index: 60;
  height: 3.75rem; width: 3.75rem; border-radius: 999px; display: grid; place-items: center; color: #fff;
  background: linear-gradient(135deg, var(--brand), var(--brand-600));
  box-shadow: 0 15px 40px -10px rgba(16,185,129,.7); transition: transform .25s;
}
.chat-fab:hover { transform: scale(1.08) rotate(4deg); }
.chat-panel {
  position: fixed; bottom: 1.5rem; right: 1.5rem; z-index: 61; width: min(380px, calc(100vw - 2rem));
  height: min(560px, calc(100vh - 3rem)); display: flex; flex-direction: column;
  border-radius: 1.5rem; overflow: hidden; background: var(--card); backdrop-filter: blur(24px) saturate(180%);
  border: 1px solid var(--card-border); box-shadow: 0 40px 90px -30px rgba(0,0,0,.5);
}
.chat-header { display: flex; align-items: center; justify-content: space-between; padding: 1rem; border-bottom: 1px solid var(--card-border); }
.chat-messages { flex: 1; overflow-y: auto; padding: 1rem; display: flex; flex-direction: column; gap: .75rem; }
.chat-msg { max-width: 82%; padding: .7rem .95rem; border-radius: 1.1rem; font-size: .85rem; line-height: 1.45; }
.chat-msg.bot { align-self: flex-start; background: rgba(16,185,129,.1); border-bottom-left-radius: .3rem; }
.chat-msg.user { align-self: flex-end; background: linear-gradient(135deg, var(--brand), var(--brand-600)); color: #fff; border-bottom-right-radius: .3rem; }
.chat-suggestions { display: flex; flex-wrap: wrap; gap: .4rem; padding: 0 1rem .6rem; }
.chat-chip { font-size: .72rem; padding: .4rem .7rem; border-radius: 999px; border: 1px solid var(--card-border); background: var(--card); color: var(--text); transition: border-color .2s, background .2s; cursor: pointer; }
.chat-chip:hover { border-color: rgba(16,185,129,.5); background: rgba(16,185,129,.08); }
.chat-input-row { display: flex; gap: .5rem; padding: .8rem; border-top: 1px solid var(--card-border); }
.chat-input-row input { flex: 1; padding: .65rem .9rem; border-radius: 999px; border: 1px solid var(--card-border); background: var(--bg-soft); color: var(--text); outline: none; }
.chat-input-row input:focus { border-color: rgba(16,185,129,.5); }
.chat-send { display: grid; place-items: center; height: 2.5rem; width: 2.5rem; border-radius: 999px; color: #fff; background: linear-gradient(135deg, var(--brand), var(--brand-600)); }
.typing span { display: inline-block; height: 6px; width: 6px; margin: 0 1px; border-radius: 50%; background: var(--brand); animation: typing 1.2s infinite; }
.typing span:nth-child(2) { animation-delay: .2s } .typing span:nth-child(3) { animation-delay: .4s }
@keyframes typing { 0%,60%,100% { transform: translateY(0); opacity: .4 } 30% { transform: translateY(-4px); opacity: 1 } }

/* ---------- Hero floating vehicles ---------- */
.hero-vehicles {
  position: absolute; inset: 0; pointer-events: none; overflow: hidden; z-index: 0;
}
/* Hero content sits above vehicles */
#hero > .mx-auto { position: relative; z-index: 1; }

.hv-wrap {
  position: absolute; color: var(--brand);
  /* GSAP sets initial x / opacity */
}
.hv-t1 { bottom: 6%;  left: 2%;   width: 220px; }
.hv-c1 { bottom: 10%; right: 3%;  width: 155px; }
.hv-t2 { bottom: 18%; right: 16%; width: 158px; }
.hv-c2 { bottom: 20%; left: 20%;  width: 112px; }

.hv-vwrap { position: relative; display: inline-block; }
.hv-vwrap svg { display: block; width: 100%; height: auto; }

/* GPS pin */
.hv-pin {
  position: absolute; top: -26px; left: 50%; transform: translateX(-50%);
  display: flex; flex-direction: column; align-items: center; width: 16px;
}
.hv-pin-dot {
  width: 8px; height: 8px; border-radius: 50%; background: var(--brand);
  position: relative; z-index: 1; flex-shrink: 0;
}
.hv-pin-ring {
  position: absolute; top: -4px; left: -4px;
  width: 16px; height: 16px; border-radius: 50%;
  border: 1.5px solid var(--brand);
  animation: hv-ring 2.4s ease-out infinite;
}
.hv-pin-line {
  width: 1.5px; height: 14px; background: rgba(16,185,129,0.45); margin-top: 1px; flex-shrink: 0;
}
@keyframes hv-ring {
  0%   { transform: scale(.5); opacity: .8; }
  100% { transform: scale(2.6); opacity: 0; }
}
/* Stagger pin ring pulse per vehicle */
.hv-t1 .hv-pin-ring { animation-delay: 0s; }
.hv-c1 .hv-pin-ring { animation-delay: .6s; }
.hv-t2 .hv-pin-ring { animation-delay: 1.2s; }
.hv-c2 .hv-pin-ring { animation-delay: 1.8s; }

/* Hide on small screens to avoid clutter */
@media (max-width: 640px) { .hero-vehicles { display: none; } }
.prod-list { display: flex; flex-direction: column; gap: 1rem; }
.prod-row {
  display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; min-height: 300px;
}
.prod-brand {
  position: relative; overflow: hidden; border-radius: 1.75rem; padding: 2.5rem;
  background: linear-gradient(var(--ga, 135deg), var(--g1, #047857), var(--g2, #34d399));
  display: flex; flex-direction: column; justify-content: flex-end; color: #fff;
  transition: transform .35s ease, box-shadow .35s;
}
.prod-brand:hover { transform: scale(1.015); box-shadow: 0 30px 70px -25px rgba(16,185,129,.5); }
.prod-num {
  position: absolute; top: 1.6rem; left: 1.8rem;
  font-family: 'Sora'; font-size: 3.5rem; font-weight: 800; line-height: 1;
  color: rgba(255,255,255,.12); pointer-events: none; user-select: none;
}
.prod-deco {
  position: absolute; top: -40px; right: -40px; height: 200px; width: 200px;
  border-radius: 50%; border: 2px solid rgba(255,255,255,.1); pointer-events: none;
}
.prod-deco::after {
  content: ''; position: absolute; inset: 25px; border-radius: 50%; border: 2px solid rgba(255,255,255,.08);
}
.prod-brand-content { position: relative; z-index: 1; }
.prod-tag {
  display: inline-block; font-size: .68rem; font-weight: 700; letter-spacing: .12em;
  text-transform: uppercase; background: rgba(255,255,255,.18); padding: .25rem .7rem;
  border-radius: 999px; margin-bottom: .6rem;
}
.prod-name {
  font-family: 'Sora'; font-weight: 800; font-size: clamp(1.6rem, 3vw, 2.4rem); line-height: 1.1;
}
.prod-info {
  border-radius: 1.75rem; padding: 2.5rem; display: flex; flex-direction: column; justify-content: center;
  background: var(--card); border: 1px solid var(--card-border); backdrop-filter: blur(12px);
  transition: border-color .3s;
}
.prod-info:hover { border-color: rgba(16,185,129,.35); }
.prod-info-label {
  font-size: .7rem; font-weight: 700; letter-spacing: .15em; text-transform: uppercase;
  color: var(--brand-600); margin-bottom: .5rem;
}
.dark .prod-info-label { color: #34d399; }
.prod-info-desc {
  font-size: 1.05rem; line-height: 1.6; color: var(--muted); margin-bottom: 1.2rem;
}
.prod-feats { display: flex; flex-direction: column; gap: .55rem; }
.prod-feats li {
  display: flex; align-items: center; gap: .6rem; font-size: .9rem; color: var(--muted);
}
.prod-feats li::before {
  content: ''; flex-shrink: 0; height: 1.3rem; width: 1.3rem; border-radius: 999px;
  background: rgba(16,185,129,.12) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%2310b981' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E") center / 12px no-repeat;
}
/* Override for live-dot-badge li */
.prod-feats li:has(.live-dot-badge)::before { display: none; }

@media (max-width: 768px) {
  .prod-row { grid-template-columns: 1fr; min-height: unset; }
  .prod-brand { min-height: 220px; }
  /* On mobile, brand always on top */
  .prod-row .prod-brand { order: -1; }
}
/* ---------- Industries minimalist list ---------- */
.ind-list { display: flex; flex-direction: column; }
.ind-item {
  display: flex; align-items: center; gap: 1.5rem; padding: 1.4rem 0;
  border-bottom: 1px solid var(--card-border);
  cursor: default; transition: padding-left .35s ease;
  position: relative; overflow: hidden;
}
.ind-item::before {
  content: ''; position: absolute; left: 0; top: 0; bottom: 0; width: 0;
  background: linear-gradient(90deg, rgba(16,185,129,.06), transparent);
  transition: width .4s ease;
}
.ind-item:hover::before { width: 100%; }
.ind-item:hover { padding-left: .6rem; }
.ind-item:hover .ind-arrow { transform: translateX(6px); color: var(--brand); }
.ind-item:hover .ind-num { color: var(--brand-600); }
.dark .ind-item:hover .ind-num { color: #34d399; }
.ind-num {
  font-family: 'Sora'; font-size: .75rem; font-weight: 800; letter-spacing: .08em;
  color: var(--muted); min-width: 2rem; transition: color .3s;
}
.ind-body { flex: 1; }
.ind-title { font-weight: 700; font-size: 1.1rem; }
.ind-desc { font-size: .875rem; color: var(--muted); margin-top: .2rem; }
.ind-arrow {
  font-size: 1.2rem; color: var(--card-border); font-weight: 300;
  transition: transform .35s ease, color .3s; flex-shrink: 0;
}

/* ---------- Timeline ---------- */
.tl-wrap { margin-top: 2rem; }
.tl-bar-row { position: relative; padding: 2rem 0; }
.tl-track {
  position: absolute; top: 50%; left: 0; right: 0; height: 2px;
  background: var(--card-border); border-radius: 999px; transform: translateY(-50%);
}
.tl-progress {
  height: 100%; background: linear-gradient(90deg, var(--brand-700), var(--brand)); border-radius: 999px;
  transition: width .5s cubic-bezier(.4,0,.2,1);
}
.tl-nodes {
  position: relative; display: flex; justify-content: space-between; align-items: center;
}
.tl-node {
  display: flex; flex-direction: column; align-items: center; gap: .4rem; cursor: pointer;
  background: none; border: none; padding: .2rem;
}
.tl-dot {
  display: block; height: 20px; width: 20px; border-radius: 50%;
  border: 2px solid var(--card-border); background: var(--bg);
  transition: transform .3s ease, border-color .3s, background .3s, box-shadow .3s;
  position: relative; z-index: 1;
}
.tl-node:hover .tl-dot { border-color: var(--brand); transform: scale(1.2); }
.tl-node.active .tl-dot {
  background: var(--brand); border-color: var(--brand);
  box-shadow: 0 0 0 5px rgba(16,185,129,.22); transform: scale(1.3);
}
.tl-year {
  font-size: .72rem; font-weight: 700; color: var(--muted);
  transition: color .3s;
}
.tl-node.active .tl-year, .tl-node:hover .tl-year { color: var(--brand-600); }
.dark .tl-node.active .tl-year, .dark .tl-node:hover .tl-year { color: #34d399; }

.tl-detail-panel {
  margin-top: 2rem; padding: 2rem 2.5rem; border-radius: 1.5rem;
  background: var(--card); border: 1px solid var(--card-border); backdrop-filter: blur(12px);
  min-height: 120px; transition: opacity .35s, transform .35s;
}
.tl-detail-panel.animating { opacity: 0; transform: translateY(8px); }
.tl-detail-year {
  font-size: .72rem; font-weight: 800; letter-spacing: .18em; text-transform: uppercase;
  color: var(--brand-600);
}
.dark .tl-detail-year { color: #34d399; }
.tl-detail-title { font-family: 'Sora'; font-weight: 800; font-size: 1.4rem; margin-top: .3rem; }
.tl-detail-desc { margin-top: .6rem; font-size: 1rem; color: var(--muted); line-height: 1.65; max-width: 68ch; }

@media (max-width: 640px) {
  .tl-year { font-size: .6rem; }
  .tl-dot { height: 14px; width: 14px; }
  .tl-detail-panel { padding: 1.2rem 1.4rem; }
  .tl-detail-title { font-size: 1.1rem; }
}
:focus-visible { outline: 2px solid var(--brand); outline-offset: 2px; border-radius: 4px; }

/* ============================================================
   PRELOADER — truck driving a GPS route
   ============================================================ */
:root { --pl-track: rgba(15,23,42,.15); }
.dark { --pl-track: rgba(255,255,255,.18); }

.preloader {
  position: fixed; inset: 0; z-index: 9999;
  display: grid; place-items: center;
  background: var(--bg);
  transition: opacity .6s ease, visibility .6s ease;
}
.preloader.loaded { opacity: 0; visibility: hidden; pointer-events: none; }

.pl-inner { display: flex; flex-direction: column; align-items: center; gap: 1.75rem; width: min(90vw, 360px); }
.pl-logo { display: flex; align-items: center; gap: .65rem; animation: pl-fade .6s ease both; }

.pl-map { width: 100%; height: auto; overflow: visible; }

/* Dashed base track is static; fill path draws itself */
#pl-path-fill {
  stroke-dasharray: 430;
  stroke-dashoffset: 430;
  animation: pl-draw 2.4s ease-in-out infinite;
}
@keyframes pl-draw {
  0%   { stroke-dashoffset: 430; }
  55%  { stroke-dashoffset: 0; }
  75%  { stroke-dashoffset: 0; opacity: 1; }
  100% { stroke-dashoffset: 0; opacity: 0; }
}

/* Truck follows the exact same curve via offset-path */
.pl-truck {
  offset-path: path("M20 130 C 80 130, 90 40, 150 60 S 250 120, 300 30");
  offset-rotate: auto;
  animation: pl-drive 2.4s ease-in-out infinite;
}
@keyframes pl-drive {
  0%   { offset-distance: 0%;   opacity: 0; }
  8%   { opacity: 1; }
  55%  { offset-distance: 100%; opacity: 1; }
  70%  { offset-distance: 100%; opacity: 1; }
  100% { offset-distance: 100%; opacity: 0; }
}

/* Pin drops in and bounces */
.pl-pin { transform-box: fill-box; transform-origin: center bottom; animation: pl-pin 2.4s ease-in-out infinite; }
@keyframes pl-pin {
  0%, 45%  { transform: translateY(-8px) scale(.6); opacity: 0; }
  55%      { transform: translateY(0) scale(1.15); opacity: 1; }
  62%      { transform: translateY(0) scale(1); }
  90%      { opacity: 1; }
  100%     { opacity: 0; }
}

.pl-text {
  font-size: .85rem; letter-spacing: .05em; color: var(--muted);
  display: flex; align-items: center; gap: .4rem;
}
.pl-text::after {
  content: ''; width: 4px; height: 4px; border-radius: 50%; background: var(--brand);
  animation: pl-blink 1s steps(3) infinite;
}
@keyframes pl-blink { 0%,100% { opacity: .3; } 50% { opacity: 1; } }
@keyframes pl-fade { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }

@media (prefers-reduced-motion: reduce) {
  #pl-path-fill, .pl-truck, .pl-pin { animation: none; }
  #pl-path-fill { stroke-dashoffset: 0; }
  .pl-truck { offset-distance: 100%; opacity: 1; }
  .pl-pin { opacity: 1; transform: none; }
}

/* ============================================================
   RESPONSIVE — comprehensive mobile fixes
   ============================================================ */

/* 1. Prevent any horizontal overflow at the root */
html, body { overflow-x: hidden; max-width: 100%; }

/* 2. MacBook base — clamp to parent, no side bleed */
.macbook { overflow: hidden; border-radius: 18px 18px 0 0; }
@media (max-width: 640px) {
  .macbook-base { width: 100%; left: 0; }
  .macbook-notch { width: 60px; }
}

/* 3. Timeline — horizontal scroll on small screens */
@media (max-width: 600px) {
  .tl-wrap { overflow-x: auto; padding-bottom: .5rem; }
  .tl-bar-row { min-width: 540px; }
  .tl-track  { min-width: 540px; }
  .tl-nodes  { min-width: 540px; }
  .tl-year   { font-size: .6rem; }
  .tl-dot    { height: 14px; width: 14px; }
}

/* 4. Float cards in showcase — hide on tiny phones */
@media (max-width: 480px) {
  .float-card { display: none; }
}

/* 5. Showcase image — shorter minimum on mobile */
@media (max-width: 640px) {
  .showcase-img { height: clamp(220px, 60vw, 360px); }
}

/* 6. Product rows — better padding on mobile */
@media (max-width: 768px) {
  .prod-brand, .prod-info { padding: 1.6rem; }
  .prod-name { font-size: 1.6rem; }
}

/* 7. KPI cards — tighter on very small phones */
@media (max-width: 380px) {
  .kpi-card  { padding: 1rem .75rem; }
  .kpi-num   { font-size: 1.7rem; }
  .kpi-label { font-size: .7rem; }
}

/* 8. Bento (if any remaining) */
@media (max-width: 560px) {
  .bento-grid { grid-template-columns: 1fr; }
  .bento-lg, .bento-wide { grid-column: auto; grid-row: auto; }
}

/* 9. Section title on very small phones */
@media (max-width: 380px) {
  .section-title { font-size: 1.65rem; }
  .section-eyebrow { font-size: .65rem; }
}

/* 10. Hero h1 — scale down on SE */
@media (max-width: 380px) {
  #hero h1 { font-size: 2rem; }
}

/* 11. About media frame — shorter on mobile */
@media (max-width: 640px) {
  .media-frame img.w-full { height: 220px; }
}

/* 12. Contact map min-height on mobile */
@media (max-width: 640px) {
  .contact-map-wrap iframe { min-height: 260px; }
}

/* 13. Newsletter form — full-width input on mobile */
@media (max-width: 640px) {
  .newsletter-input, .newsletter-btn { width: 100%; }
}

/* 14. Industry list items — smaller gap on mobile */
@media (max-width: 480px) {
  .ind-item { gap: .75rem; padding: 1rem 0; }
  .ind-title { font-size: .95rem; }
  .ind-desc  { font-size: .78rem; }
  .ind-num   { min-width: 1.5rem; font-size: .65rem; }
}

/* 15. Chat panel — full-width on mobile */
@media (max-width: 440px) {
  .chat-panel { bottom: 0; right: 0; left: 0; border-radius: 1.25rem 1.25rem 0 0;
    width: 100%; max-height: 85vh; }
  .chat-fab   { bottom: 1rem; right: 1rem; }
}

/* 16. Logo marquee — ensure it never widens its section */
.logo-marquee { max-width: 100%; }

/* 17. Navbar — prevent it from exceeding viewport */
#navbar nav { max-width: 100vw; box-sizing: border-box; }
#nav-inner { box-sizing: border-box; }
@media (max-width: 400px) {
  #nav-inner { padding: .5rem .75rem; gap: .5rem; }
  .ctrl-btn { height: 2rem; min-width: 2rem; }
  #navbar nav { padding-left: .5rem; padding-right: .5rem; }
}

/* ---------- Scrollbar ---------- */
.chat-messages::-webkit-scrollbar { width: 6px; }
.chat-messages::-webkit-scrollbar-thumb { background: rgba(16,185,129,.3); border-radius: 999px; }

/* ============================================================
   In-device dashboard UI (desktop)
   ============================================================ */
.dvo-app { display: flex; min-height: 220%; background: #f1f5f9; color: #0f172a; font-size: 10px; }
.dark .dvo-app { background: #0d1219; color: #cbd5e1; }
.dvo-side { width: 24%; background: #ffffff; border-right: 1px solid #e2e8f0; padding: 10px; }
.dark .dvo-side { background: #10161f; border-color: #1e2733; }
.dvo-brand { display: flex; align-items: center; gap: 5px; font-weight: 700; font-size: 10px; margin-bottom: 12px; }
.dvo-logo { height: 12px; width: 12px; border-radius: 4px; background: linear-gradient(135deg,#34d399,#059669); }
.dvo-nav { display: flex; flex-direction: column; gap: 4px; }
.dvo-nav span { padding: 5px 6px; border-radius: 6px; color: #64748b; font-size: 9px; }
.dvo-nav span.active { background: rgba(16,185,129,.12); color: #059669; font-weight: 600; }
.dvo-main { flex: 1; padding: 10px 12px; }
.dvo-top { display: flex; justify-content: space-between; align-items: flex-start; }
.dvo-top h4 { font-size: 11px; font-weight: 700; }
.dvo-top p { font-size: 8px; color: #94a3b8; }
.dvo-live { display: flex; align-items: center; gap: 4px; font-size: 8px; font-weight: 700; color: #059669; }
.dvo-kpis { display: grid; grid-template-columns: repeat(4,1fr); gap: 6px; margin: 10px 0; }
.dvo-kpi { background: #fff; border: 1px solid #e2e8f0; border-radius: 8px; padding: 6px; display: flex; flex-direction: column; }
.dark .dvo-kpi { background: #10161f; border-color: #1e2733; }
.dvo-kpi span { font-size: 7px; color: #94a3b8; } .dvo-kpi b { font-size: 13px; }
.dvo-grid { display: grid; grid-template-columns: 1.6fr 1fr; gap: 6px; }
.dvo-map { position: relative; height: 110px; border-radius: 8px; overflow: hidden; border: 1px solid #e2e8f0; background: linear-gradient(160deg,#e8f5ef,#dbeafe); }
.dark .dvo-map { background: linear-gradient(160deg,#0f2820,#0d1a2b); border-color: #1e2733; }
.dvo-map-inner { position: absolute; inset: 0; }
.dvo-map svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.dvo-pin { position: absolute; height: 6px; width: 6px; border-radius: 50%; background: #059669; box-shadow: 0 0 0 3px rgba(16,185,129,.25); }
.dvo-map-tag { position: absolute; bottom: 5px; left: 5px; font-size: 7px; background: rgba(255,255,255,.8); padding: 2px 5px; border-radius: 5px; color: #059669; font-weight: 600; }
.dark .dvo-map-tag { background: rgba(0,0,0,.4); }
.dvo-chart { height: 110px; border-radius: 8px; border: 1px solid #e2e8f0; background: #fff; padding: 7px; }
.dark .dvo-chart { background: #10161f; border-color: #1e2733; }
.dvo-chart p { font-size: 8px; color: #64748b; margin-bottom: 4px; }
.dvo-chart svg { width: 100%; height: 78px; }
.dvo-table { margin-top: 8px; background: #fff; border: 1px solid #e2e8f0; border-radius: 8px; overflow: hidden; }
.dark .dvo-table { background: #10161f; border-color: #1e2733; }
.dvo-table table { width: 100%; border-collapse: collapse; font-size: 8px; }
.dvo-table th { text-align: left; padding: 5px 7px; color: #94a3b8; font-weight: 600; border-bottom: 1px solid #e2e8f0; }
.dark .dvo-table th { border-color: #1e2733; }
.dvo-table td { padding: 5px 7px; border-bottom: 1px solid #f1f5f9; }
.dark .dvo-table td { border-color: #161f2b; }
.dvo-plate { font-weight: 700; }
.dvo-loc { color: #64748b; }
.dvo-badge { padding: 1px 5px; border-radius: 999px; font-weight: 600; font-size: 7px; color: var(--c); background: color-mix(in srgb, var(--c) 15%, transparent); }
.dvo-speed { font-weight: 600; }

/* In-device phone app */
.pv-app { min-height: 210%; background: #f8fafc; color: #0f172a; padding: 26px 12px 12px; font-size: 10px; }
.dark .pv-app { background: #0b0f14; color: #cbd5e1; }
.pv-status { display: flex; justify-content: space-between; font-size: 8px; color: #94a3b8; margin-bottom: 8px; }
.pv-hero { background: linear-gradient(135deg,#059669,#10b981); color: #fff; border-radius: 14px; padding: 12px; }
.pv-hero p { font-size: 8px; opacity: .85; } .pv-hero h3 { font-size: 16px; font-weight: 800; }
.pv-live { display: inline-flex; align-items: center; gap: 4px; margin-top: 5px; font-size: 8px; background: rgba(255,255,255,.2); padding: 3px 7px; border-radius: 999px; }
.pv-live .live-dot { background: #fff; }
.pv-map { position: relative; height: 90px; border-radius: 12px; margin: 8px 0; overflow: hidden; background: linear-gradient(160deg,#e8f5ef,#dbeafe); }
.dark .pv-map { background: linear-gradient(160deg,#0f2820,#0d1a2b); }
.pv-map svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.pv-marker { position: absolute; top: 45%; left: 55%; height: 10px; width: 10px; border-radius: 50%; background: #059669; box-shadow: 0 0 0 4px rgba(16,185,129,.25); }
.pv-stats { display: grid; grid-template-columns: repeat(3,1fr); gap: 6px; margin-bottom: 10px; }
.pv-stats div { background: #fff; border: 1px solid #e2e8f0; border-radius: 10px; padding: 8px; text-align: center; }
.dark .pv-stats div { background: #10161f; border-color: #1e2733; }
.pv-stats b { font-size: 13px; display: block; } .pv-stats small { font-size: 7px; color: #94a3b8; }
.pv-title { font-weight: 700; font-size: 10px; margin: 6px 0; }
.pv-trip { display: flex; align-items: center; gap: 8px; background: #fff; border: 1px solid #e2e8f0; border-radius: 10px; padding: 8px; margin-bottom: 6px; }
.dark .pv-trip { background: #10161f; border-color: #1e2733; }
.pv-dot { height: 8px; width: 8px; border-radius: 50%; flex-shrink: 0; }
.pv-trip b { font-size: 9px; display: block; } .pv-trip small { font-size: 7px; color: #94a3b8; }
