/* ============================================================
   Q4GIS — Shared Design System
   Brand: Blue #1B4F9C | Green #2ECC71
   Type: Syne (display) + Inter (body)
   ============================================================ */

/* --- Google Fonts --- */
@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@600;700;800&family=Inter:wght@400;500;600&family=JetBrains+Mono:wght@400;500&display=swap');

/* --- Tokens --- */
:root {
  /* Brand */
  --blue:        #1B4F9C;
  --blue-dark:   #14387a;
  --blue-light:  #EFF6FF;
  --blue-mid:    #DBEAFE;
  --green:       #2ECC71;
  --green-dark:  #22a85c;
  --green-light: #F0FDF4;

  /* Neutrals — light theme */
  --bg:           #F8FAFC;
  --surface:      #FFFFFF;
  --surface-2:    #F1F5F9;
  --border:       #E2E8F0;
  --border-strong:#CBD5E1;
  --text:         #0F172A;
  --text-2:       #475569;
  --text-3:       #94A3B8;

  /* Dark section palette */
  --dk-bg:        #080F1C;
  --dk-surface:   #0D1829;
  --dk-surface-2: #162033;
  --dk-border:    rgba(255,255,255,0.07);
  --dk-text:      #F0F6FF;
  --dk-text-2:    #8BA3C1;
  --dk-text-3:    #4A6380;

  /* Type scale */
  --t-xs:   0.6875rem;  /* 11px */
  --t-sm:   0.8125rem;  /* 13px */
  --t-base: 0.9375rem;  /* 15px */
  --t-lg:   1.0625rem;  /* 17px */
  --t-xl:   1.25rem;    /* 20px */
  --t-2xl:  1.5rem;     /* 24px */
  --t-3xl:  1.875rem;   /* 30px */
  --t-4xl:  2.5rem;     /* 40px */
  --t-5xl:  3.25rem;    /* 52px */

  /* Spacing */
  --s-1: 0.25rem;
  --s-2: 0.5rem;
  --s-3: 0.75rem;
  --s-4: 1rem;
  --s-5: 1.25rem;
  --s-6: 1.5rem;
  --s-8: 2rem;
  --s-10: 2.5rem;
  --s-12: 3rem;
  --s-16: 4rem;
  --s-20: 5rem;

  /* Layout */
  --max-w: 1200px;
  --r-sm:  0.5rem;
  --r-md:  0.875rem;
  --r-lg:  1.25rem;
  --r-xl:  1.75rem;
  --ease:  cubic-bezier(0.4, 0, 0.2, 1);
}

/* Dark theme overrides */
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg:           #080F1C;
    --surface:      #0D1829;
    --surface-2:    #162033;
    --border:       rgba(255,255,255,0.07);
    --border-strong:rgba(255,255,255,0.12);
    --text:         #F0F6FF;
    --text-2:       #8BA3C1;
    --text-3:       #4A6380;
    --blue-light:   rgba(27,79,156,0.15);
    --blue-mid:     rgba(27,79,156,0.25);
    --green-light:  rgba(46,204,113,0.1);
  }
}

:root[data-theme="dark"] {
  --bg:           #080F1C;
  --surface:      #0D1829;
  --surface-2:    #162033;
  --border:       rgba(255,255,255,0.07);
  --border-strong:rgba(255,255,255,0.12);
  --text:         #F0F6FF;
  --text-2:       #8BA3C1;
  --text-3:       #4A6380;
  --blue-light:   rgba(27,79,156,0.15);
  --blue-mid:     rgba(27,79,156,0.25);
  --green-light:  rgba(46,204,113,0.1);
}

/* --- Reset --- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: 'Inter', system-ui, sans-serif;
  font-size: var(--t-base);
  line-height: 1.6;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}
img, video, svg { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea {
  font: inherit;
  border: none;
  background: none;
  outline: none;
}
button { cursor: pointer; }
ul, ol { list-style: none; }

/* --- Typography --- */
.font-display { font-family: 'Plus Jakarta Sans', system-ui, sans-serif; }
.font-mono    { font-family: 'JetBrains Mono', 'Courier New', monospace; }

h1, h2, h3, h4 {
  font-family: 'Plus Jakarta Sans', system-ui, sans-serif;
  font-weight: 700;
  line-height: 1.15;
  text-wrap: balance;
  color: var(--text);
}
h1 { font-size: clamp(2rem, 5vw, var(--t-5xl)); }
h2 { font-size: clamp(1.5rem, 3.5vw, var(--t-4xl)); }
h3 { font-size: var(--t-xl); font-weight: 700; }
h4 { font-size: var(--t-lg); font-weight: 700; }

p { color: var(--text-2); max-width: 65ch; }

/* --- Layout --- */
.container {
  max-width: var(--max-w);
  margin-inline: auto;
  padding-inline: var(--s-6);
}
@media (max-width: 640px) {
  .container { padding-inline: var(--s-4); }
}

.section { padding-block: var(--s-16); }
.section-sm { padding-block: var(--s-10); }

/* --- Eyebrow label --- */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: var(--s-2);
  font-size: var(--t-xs);
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--blue);
  font-family: 'Inter', sans-serif;
}
.eyebrow.green { color: var(--green-dark); }
.eyebrow-dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--green);
  animation: pulse-dot 2s infinite;
}
@keyframes pulse-dot {
  0%, 100% { opacity: 1; transform: scale(1); }
  50%       { opacity: 0.5; transform: scale(0.8); }
}

/* --- Buttons --- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: var(--s-2);
  padding: 0.625rem 1.375rem;
  border-radius: var(--r-md);
  font-size: var(--t-sm);
  font-weight: 600;
  transition: all 180ms var(--ease);
  cursor: pointer;
  white-space: nowrap;
}
.btn:focus-visible { outline: 2px solid var(--blue); outline-offset: 2px; }

.btn-primary {
  background: var(--blue);
  color: #fff;
}
.btn-primary:hover { background: var(--blue-dark); transform: translateY(-1px); }

.btn-accent {
  background: var(--green);
  color: #06140d;
  font-weight: 700;
}
.btn-accent:hover { background: var(--green-dark); transform: translateY(-1px); }

.btn-outline {
  border: 1.5px solid var(--border-strong);
  color: var(--text);
}
.btn-outline:hover { border-color: var(--blue); color: var(--blue); background: var(--blue-light); }

.btn-ghost {
  color: var(--blue);
  font-weight: 600;
  padding-inline: 0;
}
.btn-ghost:hover { color: var(--blue-dark); }
.btn-ghost::after { content: ' →'; }

/* Arrow link */
.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 0.3em;
  font-size: var(--t-sm);
  font-weight: 600;
  color: var(--blue);
  transition: gap 150ms var(--ease), color 150ms var(--ease);
}
.link-arrow:hover { gap: 0.5em; color: var(--blue-dark); }
.link-arrow::after { content: '→'; }

/* --- Nav --- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(248,250,252,0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  transition: background 200ms var(--ease);
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .site-header {
    background: rgba(8,15,28,0.92);
  }
}
:root[data-theme="dark"] .site-header {
  background: rgba(8,15,28,0.92);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
  gap: var(--s-8);
}

/* Logo */
.site-logo {
  display: flex;
  align-items: center;
  flex-shrink: 0;
}
.site-logo img {
  height: 54px;
  width: auto;
  display: block;
  border-radius: 4px;
}

/* Nav links */
.nav-links {
  display: flex;
  align-items: center;
  gap: var(--s-1);
  flex: 1;
  justify-content: center;
}
.nav-link {
  padding: var(--s-2) var(--s-3);
  border-radius: var(--r-sm);
  font-size: var(--t-sm);
  font-weight: 500;
  color: var(--text-2);
  transition: color 150ms var(--ease), background 150ms var(--ease);
}
.nav-link:hover        { color: var(--text); background: var(--surface-2); }
.nav-link.active       { color: var(--blue); font-weight: 600; }

.nav-actions { display: flex; align-items: center; gap: var(--s-3); flex-shrink: 0; }

/* Mobile nav */
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: var(--s-2);
  border-radius: var(--r-sm);
  transition: background 150ms;
}
.nav-toggle:hover { background: var(--surface-2); }
.nav-toggle span {
  display: block;
  width: 22px; height: 2px;
  background: var(--text);
  border-radius: 1px;
  transition: transform 250ms var(--ease), opacity 250ms;
}
.mobile-nav {
  display: none;
  padding: var(--s-4) var(--s-6) var(--s-6);
  border-top: 1px solid var(--border);
  background: var(--surface);
  flex-direction: column;
  gap: var(--s-1);
}
.mobile-nav .nav-link { display: block; font-size: var(--t-base); padding: var(--s-3) var(--s-4); }
.mobile-nav .btn { margin-top: var(--s-4); width: 100%; justify-content: center; }

@media (max-width: 900px) {
  .nav-links, .nav-actions { display: none; }
  .nav-toggle { display: flex; }
  .mobile-nav.open { display: flex; }
}

/* --- Footer --- */
.site-footer {
  background: var(--dk-bg);
  color: var(--dk-text-2);
  padding-block: var(--s-12) var(--s-8);
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 0.75fr 1fr;
  gap: var(--s-10);
  padding-bottom: var(--s-10);
  border-bottom: 1px solid var(--dk-border);
  margin-bottom: var(--s-8);
}
.footer-brand p {
  color: var(--dk-text-2);
  font-size: var(--t-sm);
  margin-top: var(--s-4);
  max-width: 28ch;
}

.footer-col h3 {
  font-family: 'Inter', sans-serif;
  font-size: var(--t-xs);
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--dk-text-3);
  margin-bottom: var(--s-4);
}
.footer-col ul { display: flex; flex-direction: column; gap: var(--s-2); }
.footer-col a {
  font-size: var(--t-sm);
  color: var(--dk-text-2);
  transition: color 150ms;
}
.footer-col a:hover { color: #fff; }
.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: var(--t-xs);
  color: var(--dk-text-3);
  flex-wrap: wrap;
  gap: var(--s-3);
}

@media (max-width: 767px) {
  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: var(--s-8);
  }
  .footer-brand { grid-column: 1 / -1; }
}
@media (max-width: 480px) {
  .footer-grid { grid-template-columns: 1fr; }
}

/* --- Trust bar --- */
.trust-bar {
  background: var(--surface);
  border-block: 1px solid var(--border);
  padding-block: var(--s-5);
}
.trust-bar-inner {
  display: flex;
  align-items: center;
  gap: var(--s-8);
  flex-wrap: wrap;
  justify-content: center;
}
.trust-label {
  font-size: var(--t-xs);
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-3);
  white-space: nowrap;
}
.trust-items {
  display: flex;
  align-items: center;
  gap: var(--s-6);
  flex-wrap: wrap;
  justify-content: center;
}
.trust-item {
  font-size: var(--t-sm);
  font-weight: 600;
  color: var(--text-3);
  white-space: nowrap;
  transition: color 150ms;
}
.trust-item:hover { color: var(--text-2); }

/* --- Service cards --- */
.service-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: var(--s-8);
  display: flex;
  flex-direction: column;
  gap: var(--s-4);
  transition: box-shadow 200ms var(--ease), border-color 200ms var(--ease), transform 200ms var(--ease);
}
.service-card:hover {
  box-shadow: 0 8px 30px rgba(27,79,156,0.1);
  border-color: var(--blue-mid);
  transform: translateY(-2px);
}
.service-icon {
  width: 44px; height: 44px;
  border-radius: var(--r-md);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.service-icon.blue { background: var(--blue-light); }
.service-icon.green { background: var(--green-light); }
.service-icon svg { width: 22px; height: 22px; }
.service-card h3 { font-size: var(--t-xl); }
.service-card p { font-size: var(--t-sm); line-height: 1.7; }
.service-card .link-arrow { margin-top: auto; }

/* --- Stats strip --- */
.stats-strip {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  overflow: hidden;
}
.stat-cell {
  background: var(--surface);
  padding: var(--s-5) var(--s-6);
  text-align: center;
}
.stat-value {
  font-family: 'Plus Jakarta Sans', system-ui, sans-serif;
  font-size: var(--t-3xl);
  font-weight: 700;
  color: var(--text);
  line-height: 1;
}
.stat-label {
  font-size: var(--t-xs);
  font-weight: 500;
  color: var(--text-2);
  margin-top: var(--s-1);
}

/* --- Breadcrumb bar --- */
.breadcrumb-bar {
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  padding: 0.625rem 0;
}
.breadcrumb-list {
  display: flex;
  align-items: center;
  gap: 0.375rem;
  list-style: none;
  margin: 0;
  padding: 0;
  font-size: 0.8125rem;
  color: var(--text-3);
  flex-wrap: wrap;
}
.breadcrumb-list a {
  color: var(--text-2);
  text-decoration: none;
  transition: color 150ms;
}
.breadcrumb-list a:hover { color: var(--blue); }
.breadcrumb-list [aria-current="page"] {
  color: var(--text);
  font-weight: 500;
}
.breadcrumb-sep {
  color: var(--border-strong);
  user-select: none;
  font-size: 0.75rem;
}
@media (max-width: 767px) {
  .breadcrumb-list { font-size: 0.75rem; }
}

/* --- Service tag badge --- */
.tag {
  display: inline-flex;
  align-items: center;
  gap: var(--s-1);
  padding: 3px 10px;
  border-radius: var(--r-sm);
  font-size: var(--t-xs);
  font-weight: 600;
  letter-spacing: 0.04em;
}
.tag-blue  { background: var(--blue-light);  color: var(--blue); }
.tag-green { background: var(--green-light); color: var(--green-dark); }

/* --- Dark section (fleet / CTA) --- */
.section-dark {
  background: var(--dk-bg);
  color: var(--dk-text);
}
.section-dark h2, .section-dark h3, .section-dark h4 { color: var(--dk-text); }
.section-dark p { color: var(--dk-text-2); }
.section-dark .eyebrow { color: var(--green); }

.dk-card {
  background: var(--dk-surface);
  border: 1px solid var(--dk-border);
  border-radius: var(--r-lg);
  padding: var(--s-6);
}

/* --- Feature list --- */
.feature-list {
  display: flex;
  flex-direction: column;
  gap: var(--s-4);
}
.feature-item {
  display: flex;
  gap: var(--s-4);
  align-items: flex-start;
}
.feature-check {
  width: 22px; height: 22px;
  border-radius: 50%;
  background: var(--green-light);
  color: var(--green-dark);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  margin-top: 2px;
}
.feature-check svg { width: 12px; height: 12px; }
.feature-item p { font-size: var(--t-sm); max-width: none; }

/* --- Contact form --- */
.form-group { display: flex; flex-direction: column; gap: var(--s-2); }
.form-label {
  font-size: var(--t-xs);
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-2);
}
.form-control {
  width: 100%;
  padding: 0.625rem var(--s-4);
  border: 1.5px solid var(--border);
  border-radius: var(--r-md);
  background: var(--surface);
  color: var(--text);
  font-size: var(--t-sm);
  transition: border-color 150ms var(--ease), box-shadow 150ms var(--ease);
}
.form-control:focus {
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(27,79,156,0.12);
}
.form-control::placeholder { color: var(--text-3); }
select.form-control { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%2394A3B8' stroke-width='1.5' fill='none' stroke-linecap='round'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 14px center; padding-right: 36px; }
textarea.form-control { resize: vertical; min-height: 100px; }

/* --- Mini CTA form (on service pages) --- */
.mini-cta {
  background: var(--blue);
  border-radius: var(--r-xl);
  padding: var(--s-10) var(--s-12);
  color: #fff;
}
.mini-cta h3 { color: #fff; font-size: var(--t-3xl); }
.mini-cta .form-label { color: rgba(255,255,255,0.7); }
.mini-cta .form-control {
  background: rgba(255,255,255,0.1);
  border-color: rgba(255,255,255,0.2);
  color: #fff;
}
.mini-cta .form-control:focus {
  border-color: var(--green);
  box-shadow: 0 0 0 3px rgba(46,204,113,0.2);
}
.mini-cta .form-control::placeholder { color: rgba(255,255,255,0.45); }
@media (max-width: 640px) {
  .mini-cta { padding: var(--s-8) var(--s-6); }
}

/* --- Why section pillars --- */
.pillars-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--s-5);
}
@media (max-width: 640px) {
  .pillars-grid { grid-template-columns: 1fr; }
}
.pillar {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: var(--s-6);
}
.pillar-num {
  font-family: 'JetBrains Mono', monospace;
  font-size: var(--t-xs);
  font-weight: 500;
  color: var(--text-3);
  margin-bottom: var(--s-3);
}
.pillar h3 { margin-bottom: var(--s-2); }
.pillar p  { font-size: var(--t-sm); max-width: none; }

/* --- Page hero (inner pages) --- */
.page-hero {
  background: linear-gradient(135deg, var(--blue) 0%, #0f3370 100%);
  color: #fff;
  padding-block: var(--s-16) var(--s-12);
}
.page-hero h1  { color: #fff; }
.page-hero p   { color: rgba(255,255,255,0.75); max-width: 55ch; }
.page-hero .eyebrow { color: var(--green); }
.page-hero .breadcrumb { font-size: var(--t-xs); color: rgba(255,255,255,0.5); margin-bottom: var(--s-4); }
.page-hero .breadcrumb a { color: rgba(255,255,255,0.6); }
.page-hero .breadcrumb a:hover { color: #fff; }

/* --- Case study callout --- */
.case-study {
  background: var(--blue-light);
  border: 1px solid var(--blue-mid);
  border-left: 4px solid var(--blue);
  border-radius: var(--r-md);
  padding: var(--s-6) var(--s-8);
}
.case-study-label {
  font-size: var(--t-xs);
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--blue);
  margin-bottom: var(--s-2);
}
.case-study h4 { margin-bottom: var(--s-3); }
.case-study p  { font-size: var(--t-sm); max-width: none; }

/* --- Blog card --- */
.blog-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: box-shadow 200ms var(--ease), transform 200ms var(--ease);
}
.blog-card:hover {
  box-shadow: 0 6px 24px rgba(27,79,156,0.08);
  transform: translateY(-2px);
}
.blog-card-thumb {
  aspect-ratio: 16/9;
  background: var(--blue-light);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.5rem;
}
.blog-card-body {
  padding: var(--s-6);
  display: flex;
  flex-direction: column;
  gap: var(--s-3);
  flex: 1;
}
.blog-card-body h3 { font-size: var(--t-lg); }
.blog-card-body p  { font-size: var(--t-sm); line-height: 1.65; }
.blog-card-body .link-arrow { margin-top: auto; }

/* --- Utility --- */
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: var(--s-6); }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--s-6); }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--s-5); }

@media (max-width: 960px)  { .grid-3 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 767px)  { .grid-2, .grid-4 { grid-template-columns: 1fr; } }
@media (max-width: 640px)  { .grid-3 { grid-template-columns: 1fr; } }

.text-center { text-align: center; }
.text-center p { margin-inline: auto; }

.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }

/* --- Fleet hero animation panel --- */
.anim-panel {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-xl);
  overflow: hidden;
  position: relative;
  aspect-ratio: 4/3;
  max-height: 360px;
  box-shadow: 0 4px 32px rgba(27,79,156,0.08);
}
.anim-panel-header {
  position: absolute;
  top: 0; left: 0; right: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--s-3) var(--s-5);
  border-bottom: 1px solid var(--border);
  z-index: 10;
  background: rgba(255,255,255,0.92);
  backdrop-filter: blur(6px);
}
.anim-panel-title {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.65rem;
  color: var(--text-3);
  letter-spacing: 0.05em;
  text-transform: uppercase;
}
.live-badge {
  display: flex;
  align-items: center;
  gap: 5px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.6rem;
  color: var(--green);
  font-weight: 500;
  letter-spacing: 0.05em;
}
.live-dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--green);
  animation: live-pulse 1.5s infinite;
}
@keyframes live-pulse {
  0%, 100% { opacity: 1; box-shadow: 0 0 0 0 rgba(46,204,113,0.5); }
  50%       { opacity: 0.7; box-shadow: 0 0 0 4px rgba(46,204,113,0); }
}

/* Map SVG */
.anim-map { position: absolute; inset: 0; width: 100%; height: 100%; }

/* Vehicles */
.vehicle {
  position: absolute;
  width: 10px; height: 10px;
  border-radius: 50%;
  transform: translate(-50%, -50%);
  z-index: 5;
}
.vehicle::after {
  content: '';
  position: absolute;
  inset: -4px;
  border-radius: 50%;
  border: 1.5px solid currentColor;
  opacity: 0;
  animation: vehicle-ping 2s infinite;
}
@keyframes vehicle-ping {
  0%   { opacity: 0.6; transform: scale(1); }
  100% { opacity: 0;   transform: scale(2.4); }
}

/* Vehicle motion — offset-path follows route SVG paths */
.v1 {
  background: var(--green);
  color: var(--green);
  offset-path: path('M 60 90 L 280 90 L 280 240 L 400 240');
  animation: drive 9s linear infinite;
}
.v2 {
  background: #FBBF24;
  color: #FBBF24;
  offset-path: path('M 120 40 L 120 200 L 360 200 L 360 320');
  animation: drive 13s linear infinite 2s;
}
.v3 {
  background: var(--green);
  color: var(--green);
  offset-path: path('M 40 300 L 200 160 L 440 160');
  animation: drive 8s linear infinite 4s;
}
.v4 {
  background: #94A3B8;
  color: #94A3B8;
  offset-path: path('M 440 80 L 440 280 L 200 280');
  animation: drive 11s linear infinite 6s;
}
@keyframes drive {
  0%   { offset-distance: 0%; }
  100% { offset-distance: 100%; }
}

/* Telemetry overlay card */
.telem-card {
  position: absolute;
  bottom: var(--s-5);
  left: var(--s-5);
  right: var(--s-5);
  background: rgba(255,255,255,0.94);
  backdrop-filter: blur(8px);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  padding: var(--s-4) var(--s-5);
  z-index: 10;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--s-4);
  box-shadow: 0 2px 16px rgba(27,79,156,0.08);
}
.telem-vehicle {
  border-right: 1px solid var(--border);
  padding-right: var(--s-4);
}
.telem-id {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.6rem;
  letter-spacing: 0.08em;
  color: var(--dk-text-3);
  text-transform: uppercase;
  margin-bottom: var(--s-1);
}
.telem-status {
  display: flex;
  align-items: center;
  gap: var(--s-2);
  margin-bottom: var(--s-2);
}
.status-dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--green);
}
.status-dot.delayed { background: #FBBF24; }
.telem-eta {
  font-family: 'Syne', sans-serif;
  font-size: var(--t-xl);
  font-weight: 700;
  color: var(--text);
  line-height: 1;
}
.telem-detail {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.58rem;
  color: var(--text-3);
  margin-top: var(--s-1);
}
.telem-compliance {
  display: flex;
  flex-direction: column;
  gap: var(--s-2);
}
.compliance-label {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.58rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-3);
}
.compliance-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.58rem;
  color: var(--text-2);
}
.compliance-ok  { color: var(--green); }
.compliance-exp { color: #FBBF24; }

/* Network nodes background for hero */
.nodes-bg {
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
  z-index: 0;
}

/* Node pulse animations */
@keyframes node-pulse {
  0%, 100% { r: 3; opacity: 0.5; }
  50%       { r: 5; opacity: 0.9; }
}
@keyframes ring-expand {
  0%   { r: 4; opacity: 0.4; }
  100% { r: 18; opacity: 0; }
}

/* ============================================================
   Showcase Panel — 4-service cycling dashboard
   ============================================================ */
.panel-tab-light {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.7rem;
  color: var(--text-3);
  padding: 6px 14px;
  border-radius: var(--r-sm);
  border: 1px solid transparent;
  background: none;
  cursor: pointer;
  transition: color 200ms, background 200ms, border-color 200ms;
  white-space: nowrap;
}
.panel-tab-light:hover {
  color: var(--text-2);
  background: var(--surface-2);
}
.panel-tab-light.active {
  color: var(--blue);
  background: var(--blue-light);
  border-color: var(--blue-mid);
}
.lscreen {
  position: absolute;
  inset: 0;
  opacity: 0;
  pointer-events: none;
  transition: opacity 500ms ease;
  background: #fff;
}
.lscreen.active {
  opacity: 1;
  pointer-events: auto;
}
@keyframes progress-fill {
  from { width: 0%; }
  to   { width: 100%; }
}
.panel-tab-green.active { color: #16a34a; background: #dcfce7; border-color: #86efac; }
.panel-tab-green:hover:not(.active) { color: #16a34a; }
.panel-tab-grey { color: #94a3b8; }
.panel-tab-grey.active { color: #64748b; background: #f1f5f9; border-color: #cbd5e1; }
.panel-tab-grey:hover:not(.active) { color: #64748b; }

/* --- Utility --- */
.visually-hidden {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  white-space: nowrap;
  border: 0;
}

/* --- Layout utility classes --- */
.hero-grid {
  display: grid;
  grid-template-columns: 5fr 5fr;
  gap: 3.5rem;
  align-items: center;
}
.stat-strip-4 {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
}
.process-grid-4 {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
}

/* --- Responsive overrides --- */
@media (max-width: 1024px) {
  .split-2 { grid-template-columns: 1fr 1fr; }
  .services-grid-3 { grid-template-columns: 1fr 1fr !important; }
  .features-grid { grid-template-columns: 1fr 1fr !important; }
  .blog-grid { grid-template-columns: 1fr 1fr !important; }
  .process-grid-4 { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 767px) {
  .hero-grid { grid-template-columns: 1fr !important; gap: 2rem; }
  .split-2 { grid-template-columns: 1fr !important; }
  .services-grid-3 { grid-template-columns: 1fr !important; }
  .features-grid { grid-template-columns: 1fr !important; }
  .contact-layout { grid-template-columns: 1fr !important; }
  .blog-grid { grid-template-columns: 1fr !important; }
  .article-layout { grid-template-columns: 1fr !important; }
  .stat-strip-4 { grid-template-columns: repeat(2, 1fr); }
  .process-grid-4 { grid-template-columns: repeat(2, 1fr) !important; }
}
@media (max-width: 480px) {
  .stat-strip-4 { grid-template-columns: 1fr 1fr; }
}
