/* ===========================
   SingleIoT — Design System
   (Corporate, structured, trust-led)
=========================== */

:root {
  --bg: #FFFFFF;
  --bg-soft: #F2F5F9;
  --surface: #FFFFFF;
  --surface-alt: #F7F9FC;
  --border: #E1E6EE;
  --border-strong: #C7CFDD;

  --ink: #12161F;
  --ink-dim: #4B5563;
  --ink-faint: #8891A0;

  --primary: #1D5FD6;
  --primary-dark: #12336B;
  --primary-hover: #144DB0;
  --primary-tint: #E7EFFE;

  --accent: #00B8D9;
  --accent-tint: #DEF9FF;

  --success: #16A34A;
  --success-tint: #E3FAEC;
  --warning: #D68A0C;
  --warning-tint: #FEF3DA;
  --danger: #E23636;
  --danger-tint: #FDE9E8;

  /* Accent palette for feature/solution icons — lively, brand-consistent */
  --c-blue: #1D5FD6;    --c-blue-tint: #E7EFFE;
  --c-teal: #0E9384;    --c-teal-tint: #DEFBF6;
  --c-purple: #7C4FD1;  --c-purple-tint: #F0E8FE;
  --c-orange: #E17A2D;  --c-orange-tint: #FDEEE0;
  --c-green: #2E9E5B;   --c-green-tint: #E4F8EB;
  --c-pink: #D14F84;    --c-pink-tint: #FCE8F0;

  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 10px;
  --radius-full: 999px;

  --shadow-sm: 0 1px 2px rgba(18, 22, 31, 0.06);
  --shadow-md: 0 10px 26px -14px rgba(18, 22, 31, 0.22);
  --shadow-lg: 0 22px 50px -20px rgba(18, 22, 31, 0.28);

  --container: 1200px;
  --nav-h: 76px;
  --util-h: 38px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--ink);
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  line-height: 1.6;
  overflow-x: hidden;
}

img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
button, input, textarea, select { font-family: inherit; color: inherit; }

.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
}

section { position: relative; }

::selection { background: rgba(12, 77, 162, 0.18); color: var(--ink); }

::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: var(--border-strong); border-radius: 10px; }
::-webkit-scrollbar-thumb:hover { background: var(--ink-faint); }

h1, h2, h3, h4 {
  font-family: 'Inter', sans-serif;
  font-weight: 700;
  letter-spacing: -0.01em;
  line-height: 1.2;
  color: var(--ink);
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 12.5px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--primary);
  background: var(--primary-tint);
  border: 1px solid rgba(12,77,162,0.18);
  padding: 6px 14px;
  border-radius: var(--radius-sm);
  margin-bottom: 18px;
}
.eyebrow i { font-size: 15px; }

.accent-text { color: var(--primary); }
.text-dim { color: var(--ink-dim); }

/* ===== Buttons ===== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 13px 28px;
  border-radius: var(--radius-sm);
  font-weight: 600;
  font-size: 15px;
  border: 1.5px solid transparent;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease, border-color .15s ease, color .15s ease;
  white-space: nowrap;
}
.btn i { font-size: 18px; }
.btn-primary {
  background: var(--primary);
  color: #fff;
  box-shadow: var(--shadow-sm);
}
.btn-primary:hover { background: var(--primary-hover); box-shadow: var(--shadow-md); }
.btn-outline {
  background: transparent;
  border-color: var(--border-strong);
  color: var(--ink);
}
.btn-outline:hover { border-color: var(--primary); color: var(--primary); }
.btn-ghost { background: var(--surface); color: var(--ink); border-color: var(--border); }
.btn-ghost:hover { border-color: var(--border-strong); background: var(--surface-alt); }
.btn-block { width: 100%; }
.btn-sm { padding: 9px 18px; font-size: 13px; }
.btn:disabled { opacity: 0.5; cursor: not-allowed; }

/* on solid-blue panels */
.on-brand .btn-primary { background: #fff; color: var(--primary-dark); }
.on-brand .btn-primary:hover { background: #EAF1FB; }
.on-brand .btn-outline { border-color: rgba(255,255,255,0.55); color: #fff; }
.on-brand .btn-outline:hover { border-color: #fff; background: rgba(255,255,255,0.08); }

/* ===== Utility bar ===== */
.util-bar {
  height: var(--util-h);
  background: var(--primary-dark);
  color: rgba(255,255,255,0.85);
  font-size: 12.5px;
  display: flex;
  align-items: center;
}
.util-bar .container { display: flex; align-items: center; justify-content: space-between; width: 100%; }
.util-bar a { color: #fff; font-weight: 600; }
.util-bar a:hover { text-decoration: underline; }
.util-links { display: flex; gap: 22px; }
.util-links span { opacity: .85; }

/* ===== Navbar ===== */
.navbar {
  position: fixed;
  top: var(--util-h); left: 0; right: 0;
  z-index: 1000;
  height: var(--nav-h);
  display: flex;
  align-items: center;
  background: rgba(255,255,255,0.97);
  backdrop-filter: blur(6px);
  border-bottom: 1px solid var(--border);
}
.navbar .container { display: flex; align-items: center; justify-content: space-between; width: 100%; }

.brand { display: flex; align-items: center; gap: 10px; font-family: 'Inter', sans-serif; font-weight: 800; font-size: 20px; letter-spacing: -0.01em; color: var(--ink); }
.brand-mark {
  width: 36px; height: 36px;
  display: grid; place-items: center;
  border-radius: var(--radius-sm);
  background: var(--primary);
  color: #fff;
  font-size: 18px;
}

.nav-links { display: flex; align-items: center; gap: 2px; }
.nav-links a {
  padding: 9px 15px;
  border-radius: var(--radius-sm);
  font-size: 14.5px;
  font-weight: 600;
  color: var(--ink-dim);
  transition: color .15s ease, background .15s ease;
  position: relative;
}
.nav-links a:hover { color: var(--primary); background: var(--surface-alt); }
.nav-links a.active { color: var(--primary); background: var(--surface-alt); }
.nav-links a.active::after {
  content: '';
  position: absolute;
  left: 14px; right: 14px; bottom: 2px;
  height: 2px;
  border-radius: 2px;
  background: var(--primary);
}

.nav-item { position: relative; padding-bottom: 20px; margin-bottom: -20px; }
.nav-item > a { display: flex; align-items: center; gap: 4px; }
.nav-item > a i { font-size: 16px; transition: transform .2s ease; }
.nav-item:hover > a i, .nav-item:focus-within > a i { transform: rotate(180deg); }
.nav-dropdown {
  position: absolute;
  top: 100%; left: 50%;
  transform: translateX(-50%) translateY(-6px);
  width: 290px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  padding: 10px;
  opacity: 0; visibility: hidden; pointer-events: none;
  transition: opacity .18s ease, transform .18s ease, visibility .18s;
  z-index: 1001;
}
.nav-item:hover .nav-dropdown, .nav-item:focus-within .nav-dropdown {
  opacity: 1; visibility: visible; pointer-events: auto; transform: translateX(-50%) translateY(0);
}
.nav-dd-item { display: flex; gap: 12px; align-items: flex-start; padding: 10px 12px; border-radius: var(--radius-sm); }
.nav-dd-item:hover { background: var(--surface-alt); }
.nav-dd-item i { font-size: 19px; color: var(--primary); margin-top: 2px; flex-shrink: 0; }
.nav-dd-item strong { display: block; font-size: 14px; font-weight: 600; color: var(--ink); }
.nav-dd-item small { display: block; font-size: 12.5px; color: var(--ink-faint); margin-top: 2px; }

/* ===== Mega menu ===== */
.nav-item.align-right .nav-dropdown { left: auto; right: 0; transform: translateY(-6px); }
.nav-item.align-right:hover .nav-dropdown, .nav-item.align-right:focus-within .nav-dropdown { transform: translateY(0); }
.nav-dropdown.nav-mega {
  left: 0; transform: translateY(-6px);
  width: auto;
  display: grid;
  gap: 6px 30px;
  padding: 22px;
}
.nav-item:hover .nav-dropdown.nav-mega, .nav-item:focus-within .nav-dropdown.nav-mega { transform: translateY(0); }
.nav-item.align-right .nav-dropdown.nav-mega { left: auto; right: 0; }
.nav-dropdown.nav-mega.cols-3 { grid-template-columns: 190px 210px 200px; }
.nav-dropdown.nav-mega.cols-2 { grid-template-columns: 210px 210px; }
.nav-mega-col { display: flex; flex-direction: column; gap: 2px; }
.nav-mega-col-title { font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; color: var(--ink-faint); padding: 0 12px; margin-bottom: 6px; }
.nav-mega-feature {
  border-radius: var(--radius-md);
  padding: 18px;
  background: var(--c-blue-tint);
  border: 1px solid rgba(46,92,138,0.18);
  display: flex; flex-direction: column; gap: 8px;
}
.nav-mega-feature .badge {
  align-self: flex-start;
  font-size: 10px; font-weight: 800; letter-spacing: .05em; text-transform: uppercase;
  background: var(--primary); color: #fff;
  padding: 3px 9px; border-radius: var(--radius-sm);
}
.nav-mega-feature h4 { font-size: 14.5px; margin: 0; }
.nav-mega-feature p { font-size: 12.5px; color: var(--ink-dim); margin: 0; }
.nav-mega-feature a { font-size: 12.5px; font-weight: 700; color: var(--primary); display: inline-flex; align-items: center; gap: 4px; margin-top: auto; }

.nav-actions { display: flex; align-items: center; gap: 10px; }
.nav-toggle {
  display: none;
  width: 40px; height: 40px;
  border-radius: var(--radius-sm);
  background: var(--surface);
  border: 1px solid var(--border);
  color: var(--ink);
  align-items: center; justify-content: center;
  font-size: 22px;
  cursor: pointer;
}

.mobile-menu {
  position: fixed;
  top: calc(var(--nav-h) + var(--util-h)); left: 0; right: 0;
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  padding: 18px 24px 26px;
  display: none;
  flex-direction: column;
  gap: 4px;
  z-index: 999;
  transform: translateY(-8px);
  opacity: 0;
  pointer-events: none;
  transition: transform .25s ease, opacity .25s ease;
  box-shadow: var(--shadow-md);
}
.mobile-menu.open { display: flex; transform: translateY(0); opacity: 1; pointer-events: auto; }
.mobile-menu a { padding: 13px 6px; border-radius: var(--radius-sm); font-weight: 600; color: var(--ink-dim); border-bottom: 1px solid var(--border); }
.mobile-menu a.active, .mobile-menu a:hover { color: var(--primary); background: var(--surface-alt); }
.mobile-menu .btn { margin-top: 12px; }

/* ===== Page Hero (inner pages) ===== */
.page-hero {
  padding: calc(var(--nav-h) + var(--util-h) + 56px) 0 52px;
  text-align: center;
}
.page-hero h1 { font-size: clamp(30px, 4.4vw, 42px); margin-bottom: 16px; }
.page-hero p { max-width: 640px; margin: 0 auto; color: var(--ink-dim); font-size: 17px; }
.breadcrumb { display: flex; justify-content: center; gap: 8px; font-size: 13px; color: var(--ink-faint); margin-bottom: 18px; }
.breadcrumb a:hover { color: var(--primary); }
.breadcrumb .sep { opacity: .5; }
.breadcrumb .current { color: var(--primary); font-weight: 600; }

/* ===== Hero (home) — full-bleed brand banner ===== */
.hero-band {
  position: relative;
  margin-top: calc(var(--nav-h) + var(--util-h));
  background:
    radial-gradient(60% 70% at 85% 10%, rgba(0,184,217,0.35) 0%, transparent 60%),
    radial-gradient(50% 60% at 10% 100%, rgba(124,79,209,0.30) 0%, transparent 65%),
    linear-gradient(135deg, #0B1B45 0%, #1B4BC0 60%, #1D6FE0 100%);
  overflow: hidden;
  padding: 76px 0 90px;
}
.hero {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 50px;
  align-items: center;
}
.hero .eyebrow { background: rgba(255,255,255,0.12); border-color: rgba(255,255,255,0.28); color: #fff; }
.hero h1 { font-size: clamp(34px, 4.6vw, 50px); margin-bottom: 20px; color: #fff; letter-spacing: -0.015em; }
.hero p.lead { font-size: 17.5px; color: rgba(255,255,255,0.82); max-width: 520px; margin-bottom: 32px; }
.hero-actions { display: flex; gap: 14px; margin-bottom: 40px; flex-wrap: wrap; }
.hero-meta { display: flex; gap: 26px; flex-wrap: wrap; }
.hero-meta div { display: flex; align-items: center; gap: 9px; color: rgba(255,255,255,0.82); font-size: 13.5px; }
.hero-meta i { color: #6FE3B4; font-size: 17px; }

/* ===== Hero globe (3D) ===== */
.hero-globe-wrap { position: relative; display: flex; align-items: center; justify-content: center; }
.hero-globe { width: 100%; max-width: 480px; aspect-ratio: 1 / 1; cursor: grab; touch-action: none; }
.hero-globe:active { cursor: grabbing; }
.hero-globe canvas { display: block; }
.hero-globe-badge {
  position: absolute; bottom: 4px; left: 50%; transform: translateX(-50%);
  display: inline-flex; align-items: center; gap: 8px;
  background: rgba(255,255,255,0.1); border: 1px solid rgba(255,255,255,0.22);
  color: #fff; font-size: 12.5px; font-weight: 600;
  padding: 8px 16px; border-radius: var(--radius-full);
  backdrop-filter: blur(6px);
  white-space: nowrap;
}
.hero-globe-badge .dot { width: 7px; height: 7px; border-radius: 50%; background: #6FE3B4; box-shadow: 0 0 0 3px rgba(111,227,180,0.25); flex-shrink: 0; }

/* ===== Hero visual panel ===== */
.hero-panel {
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.18);
  border-radius: var(--radius-lg);
  backdrop-filter: blur(6px);
  overflow: hidden;
}
.hp-bar {
  display: flex; align-items: center; gap: 8px;
  padding: 13px 18px;
  border-bottom: 1px solid rgba(255,255,255,0.16);
  background: rgba(255,255,255,0.05);
}
.hp-dot { width: 8px; height: 8px; border-radius: 50%; background: rgba(255,255,255,0.35); }
.hp-bar-title { margin-left: 8px; font-size: 12px; font-weight: 600; color: rgba(255,255,255,0.75); }
.hp-live { margin-left: auto; display: inline-flex; align-items: center; gap: 6px; font-size: 11px; font-weight: 700; color: #6FE3B4; }
.hp-live .dot { width: 6px; height: 6px; border-radius: 50%; background: #6FE3B4; }
.hp-body { padding: 20px; }
.hp-row {
  display: flex; align-items: center; gap: 12px;
  padding: 12px 4px;
  border-bottom: 1px solid rgba(255,255,255,0.1);
  font-size: 13.5px;
  color: #fff;
}
.hp-row:last-of-type { border-bottom: none; }
.hp-row i { font-size: 17px; color: #fff; width: 20px; text-align: center; opacity: .9; }
.hp-row .hp-name { font-weight: 600; }
.hp-row .hp-loc { color: rgba(255,255,255,0.6); font-size: 12px; margin-top: 1px; }
.hp-status { margin-left: auto; display: inline-flex; align-items: center; gap: 6px; font-size: 11px; font-weight: 700; padding: 4px 10px; border-radius: var(--radius-full); }
.hp-status.on { background: rgba(111,227,180,0.18); color: #6FE3B4; }
.hp-status.warn { background: rgba(240,169,59,0.2); color: #F0C46B; }
.hp-status .dot { width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.hp-chart { display: flex; align-items: flex-end; gap: 6px; height: 64px; margin-top: 16px; padding: 0 4px; }
.hp-chart span { flex: 1; background: rgba(255,255,255,0.18); border-radius: 2px 2px 0 0; }
.hp-chart span.hi { background: #fff; }

/* ===== Logo wall ===== */
.logo-strip { padding: 40px 0; border-bottom: 1px solid var(--border); background: var(--surface-alt); }
.logo-strip-label { text-align: center; font-size: 12.5px; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; color: var(--ink-faint); margin-bottom: 26px; }
.logo-row { display: flex; align-items: center; justify-content: space-between; gap: 32px; flex-wrap: wrap; }
.logo-row span {
  font-family: 'Inter', sans-serif; font-weight: 800; font-size: 16px;
  letter-spacing: -0.01em;
  color: var(--ink-faint); opacity: .8;
  transition: opacity .2s ease, color .2s ease;
}
.logo-row span:hover { opacity: 1; color: var(--primary); }

/* ===== Trust badges ===== */
.trust-strip { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; }
.trust-badge {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 13px; font-weight: 600; color: var(--ink-dim);
  background: var(--surface); border: 1px solid var(--border);
  padding: 9px 15px; border-radius: var(--radius-sm);
}
.trust-badge i { font-size: 16px; color: var(--primary); }
.on-brand .trust-badge { background: rgba(255,255,255,0.12); border-color: rgba(255,255,255,0.28); color: #fff; }
.on-brand .trust-badge i { color: #fff; }

/* ===== Stats bar ===== */
.stats-bar {
  padding: 54px 0;
  background: var(--surface);
  border-bottom: 1px solid var(--border);
}
.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; text-align: center; }
.stats-grid > div { padding: 0 12px; border-left: 1px solid var(--border); }
.stats-grid > div:first-child { border-left: none; }
.stat-num { font-family: 'Inter', sans-serif; font-size: clamp(28px, 3.2vw, 38px); font-weight: 800; color: var(--primary); letter-spacing: -0.02em; }
.stat-label { color: var(--ink-dim); font-size: 13.5px; margin-top: 6px; }

/* ===== Section heading ===== */
.section-head { text-align: center; max-width: 640px; margin: 0 auto 52px; }
.section-head h2 { font-size: clamp(26px, 3.4vw, 36px); margin-bottom: 14px; }
.section-head p { color: var(--ink-dim); font-size: 16px; }
.section { padding: 92px 0; }
.section.tight { padding: 64px 0; }
.section.alt { background: var(--surface-alt); }

/* ===== Cards ===== */
.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px;
  transition: transform .2s ease, border-color .2s ease, box-shadow .2s ease;
}
.card:hover { transform: translateY(-3px); border-color: var(--border-strong); box-shadow: var(--shadow-md); }

.icon-box {
  width: 48px; height: 48px;
  border-radius: var(--radius-md);
  display: grid; place-items: center;
  background: var(--primary-tint);
  border: 1px solid rgba(46,92,138,0.22);
  margin-bottom: 18px;
  font-size: 21px;
  color: var(--primary);
}
.icon-box.c-blue   { background: var(--c-blue-tint);   border-color: rgba(46,92,138,0.25);  color: var(--c-blue); }
.icon-box.c-teal   { background: var(--c-teal-tint);   border-color: rgba(61,133,119,0.25);  color: var(--c-teal); }
.icon-box.c-purple { background: var(--c-purple-tint); border-color: rgba(107,91,149,0.25);  color: var(--c-purple); }
.icon-box.c-orange { background: var(--c-orange-tint); border-color: rgba(185,122,61,0.25);  color: var(--c-orange); }
.icon-box.c-green  { background: var(--c-green-tint);  border-color: rgba(76,136,99,0.25);  color: var(--c-green); }
.icon-box.c-pink   { background: var(--c-pink-tint);   border-color: rgba(166,93,116,0.25);  color: var(--c-pink); }

.features-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.feature-card h3 { font-size: 18px; margin-bottom: 10px; }
.feature-card p { color: var(--ink-dim); font-size: 14.5px; }

/* ===== Steps (how it works) ===== */
.steps-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px; position: relative; }
.step { text-align: center; padding: 10px; }
.step-num {
  width: 42px; height: 42px; margin: 0 auto 20px;
  border-radius: var(--radius-md);
  background: var(--primary-tint);
  border: 1px solid rgba(12,77,162,0.18);
  display: grid; place-items: center;
  font-weight: 800;
  color: var(--primary);
}
.step h3 { font-size: 17px; margin-bottom: 8px; }
.step p { color: var(--ink-dim); font-size: 14.5px; }

/* ===== Industries preview (home) ===== */
.industries-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.industry-card h3 { font-size: 16px; margin-bottom: 8px; }
.industry-card p { color: var(--ink-dim); font-size: 13.5px; margin-bottom: 16px; }
.industry-card .card-link { font-weight: 700; font-size: 13.5px; color: var(--primary); display: inline-flex; align-items: center; gap: 4px; }
.industry-card .card-link i { font-size: 16px; }

/* ===== Leadership quote (home) ===== */
.leader-quote { max-width: 820px; margin: 0 auto; text-align: center; }
.leader-quote-mark i { font-size: 34px; color: var(--primary); opacity: .3; }
.leader-quote-text { font-size: clamp(20px, 2.6vw, 25px); font-weight: 600; line-height: 1.45; letter-spacing: -0.01em; color: var(--ink); margin: 14px 0 26px; }
.leader-quote-person { display: flex; align-items: center; justify-content: center; gap: 12px; }
.leader-quote-person .testi-avatar { width: 50px; height: 50px; font-size: 15px; }

/* ===== Feature rows (features page) ===== */
.feature-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: center;
  padding: 64px 0;
  border-bottom: 1px solid var(--border);
}
.feature-row:last-child { border-bottom: none; }
.feature-row.reverse .feature-row-media { order: 2; }
.feature-row-text h3 { font-size: 24px; margin-bottom: 16px; }
.feature-row-text p { color: var(--ink-dim); margin-bottom: 20px; }
.feature-row-text ul li { display: flex; gap: 10px; align-items: flex-start; margin-bottom: 12px; color: var(--ink-dim); font-size: 15px; }
.feature-row-text ul li i { color: var(--success); margin-top: 3px; font-size: 17px; }

.feature-row-media {
  height: 270px;
  border-radius: var(--radius-lg);
  background: var(--surface-alt);
  border: 1px solid var(--border);
  display: grid; place-items: center;
  position: relative;
}
.feature-row-media i { font-size: 70px; color: var(--primary); }
.feature-row-media.c-blue   { background: var(--c-blue-tint);   border-color: rgba(46,92,138,0.22); }
.feature-row-media.c-blue i   { color: var(--c-blue); }
.feature-row-media.c-teal   { background: var(--c-teal-tint);   border-color: rgba(61,133,119,0.22); }
.feature-row-media.c-teal i   { color: var(--c-teal); }
.feature-row-media.c-purple { background: var(--c-purple-tint); border-color: rgba(107,91,149,0.22); }
.feature-row-media.c-purple i { color: var(--c-purple); }
.feature-row-media.c-orange { background: var(--c-orange-tint); border-color: rgba(185,122,61,0.22); }
.feature-row-media.c-orange i { color: var(--c-orange); }
.feature-row-media.c-green  { background: var(--c-green-tint);  border-color: rgba(76,136,99,0.22); }
.feature-row-media.c-green i  { color: var(--c-green); }
.feature-row-media.c-pink   { background: var(--c-pink-tint);   border-color: rgba(166,93,116,0.22); }
.feature-row-media.c-pink i   { color: var(--c-pink); }

/* ===== Comparison table ===== */
.compare-wrap { overflow-x: auto; border-radius: var(--radius-lg); border: 1px solid var(--border); background: var(--surface); }
table.compare { width: 100%; border-collapse: collapse; min-width: 640px; }
table.compare th, table.compare td { padding: 17px 22px; text-align: center; border-bottom: 1px solid var(--border); font-size: 14.5px; }
table.compare th { text-align: left; background: var(--surface-alt); font-weight: 700; }
table.compare td:first-child, table.compare th:first-child { text-align: left; color: var(--ink-dim); }
table.compare tr:last-child td { border-bottom: none; }
table.compare i.bx-check { color: var(--success); font-size: 20px; }
table.compare i.bx-x { color: var(--ink-faint); font-size: 20px; }
.compare-highlight { background: var(--primary-tint); }

/* ===== Pricing ===== */
.pricing-toggle { display: flex; align-items: center; justify-content: center; gap: 16px; margin-bottom: 48px; }
.pricing-toggle span { font-size: 14.5px; color: var(--ink-dim); font-weight: 600; }
.pricing-toggle span.active { color: var(--ink); }
.switch { position: relative; width: 54px; height: 30px; }
.switch input { opacity: 0; width: 0; height: 0; }
.slider {
  position: absolute; cursor: pointer; inset: 0;
  background: var(--surface-alt);
  border: 1px solid var(--border-strong);
  border-radius: 30px;
  transition: .3s;
}
.slider::before {
  content: '';
  position: absolute;
  height: 22px; width: 22px;
  left: 3px; bottom: 3px;
  background: var(--primary);
  border-radius: 50%;
  transition: .3s;
}
.switch input:checked + .slider::before { transform: translateX(24px); }
.save-badge {
  font-size: 11.5px; font-weight: 700;
  background: var(--success-tint); color: var(--success);
  padding: 3px 10px; border-radius: var(--radius-sm);
  border: 1px solid rgba(30,142,90,0.25);
}

.pricing-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; align-items: stretch; }
.price-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 34px 28px;
  display: flex;
  flex-direction: column;
  position: relative;
  transition: transform .2s ease, border-color .2s ease, box-shadow .2s ease;
}
.price-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); }
.price-card.popular { border-color: var(--primary); box-shadow: var(--shadow-md); }
.price-card.popular::before {
  content: '';
  position: absolute; top: 0; left: 0; right: 0; height: 3px;
  background: var(--primary);
  border-radius: var(--radius-lg) var(--radius-lg) 0 0;
}
.popular-tag {
  position: absolute; top: -13px; left: 50%; transform: translateX(-50%);
  background: var(--primary); color: #fff;
  font-size: 11.5px; font-weight: 700;
  padding: 6px 14px; border-radius: var(--radius-sm);
  white-space: nowrap;
}
.price-card h3 { font-size: 19px; margin-bottom: 6px; }
.price-card .plan-desc { color: var(--ink-dim); font-size: 13.5px; margin-bottom: 22px; }
.price-amount { display: flex; align-items: baseline; gap: 6px; margin-bottom: 24px; }
.price-amount .num { font-size: 38px; font-weight: 800; letter-spacing: -0.02em; }
.price-amount .period { color: var(--ink-dim); font-size: 14px; }
.price-card ul { margin-bottom: 28px; flex: 1; }
.price-card ul li { display: flex; gap: 10px; align-items: flex-start; margin-bottom: 13px; font-size: 14.5px; color: var(--ink-dim); }
.price-card ul li i { color: var(--success); font-size: 17px; margin-top: 2px; }
.price-card ul li.disabled { opacity: .5; }
.price-card ul li.disabled i { color: var(--ink-faint); }
.yearly-only { display: none; }

/* ===== FAQ Accordion ===== */
.faq-list { max-width: 760px; margin: 0 auto; display: flex; flex-direction: column; gap: 12px; }
.faq-item { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-md); overflow: hidden; }
.faq-q { display: flex; align-items: center; justify-content: space-between; padding: 19px 22px; cursor: pointer; font-weight: 700; font-size: 15px; }
.faq-q i { transition: transform .3s ease; color: var(--primary); font-size: 22px; flex-shrink: 0; }
.faq-item.open .faq-q i { transform: rotate(45deg); }
.faq-a { max-height: 0; overflow: hidden; transition: max-height .3s ease; }
.faq-a p { padding: 0 22px 20px; color: var(--ink-dim); font-size: 14.5px; }

/* ===== Testimonials ===== */
.testi-track-wrap { overflow: hidden; }
.testi-track { display: flex; transition: transform .5s ease; }
.testi-slide { min-width: 100%; padding: 6px; }
.testi-card { max-width: 700px; margin: 0 auto; text-align: center; padding: 44px; }
.testi-card i.bx-star { color: var(--warning); font-size: 18px; }
.testi-quote { font-size: 19px; font-weight: 600; margin: 18px 0 24px; color: var(--ink); letter-spacing: -0.01em; }
.testi-person { display: flex; align-items: center; justify-content: center; gap: 12px; }
.testi-avatar {
  width: 42px; height: 42px; border-radius: 50%;
  background: var(--primary); display: grid; place-items: center;
  font-weight: 700; color: #fff; font-size: 13px;
}
.testi-name { font-weight: 700; font-size: 14.5px; }
.testi-role { color: var(--ink-faint); font-size: 13px; }
.testi-dots { display: flex; justify-content: center; gap: 8px; margin-top: 26px; }
.testi-dots span { width: 8px; height: 8px; border-radius: 50%; background: var(--border-strong); cursor: pointer; transition: .3s; }
.testi-dots span.active { background: var(--primary); width: 22px; border-radius: 4px; }

/* ===== CTA banner ===== */
.cta-banner {
  border-radius: var(--radius-lg);
  padding: 58px;
  text-align: center;
  background: linear-gradient(125deg, var(--primary-dark) 0%, var(--primary) 60%, var(--c-purple) 140%);
  color: #fff;
}
.cta-banner h2 { font-size: clamp(24px, 3.2vw, 32px); margin-bottom: 14px; color: #fff; }
.cta-banner p { color: rgba(255,255,255,0.85); margin-bottom: 28px; }
.cta-actions { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }

/* ===== Forms (contact) ===== */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: start; }
.form-group { margin-bottom: 20px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
label { display: block; font-size: 13px; font-weight: 700; margin-bottom: 8px; color: var(--ink-dim); }
.input, textarea.input, select.input {
  width: 100%;
  background: var(--surface);
  border: 1.5px solid var(--border-strong);
  border-radius: var(--radius-sm);
  padding: 12px 15px;
  font-size: 14.5px;
  color: var(--ink);
  transition: border-color .2s ease, box-shadow .2s ease;
}
.input:focus, textarea.input:focus { outline: none; border-color: var(--primary); box-shadow: 0 0 0 3px var(--primary-tint); }
textarea.input { resize: vertical; min-height: 130px; }
.field-error { color: var(--danger); font-size: 12.5px; margin-top: 6px; display: none; }
.form-group.error .input { border-color: var(--danger); }
.form-group.error .field-error { display: block; }
.form-success {
  display: none;
  align-items: center; gap: 12px;
  background: var(--success-tint); border: 1px solid rgba(30,142,90,0.25);
  color: var(--success); padding: 16px 18px; border-radius: var(--radius-md);
  margin-top: 18px; font-size: 14.5px; font-weight: 600;
}
.form-success.show { display: flex; }
.form-success i { font-size: 22px; flex-shrink: 0; }

.contact-info-card { display: flex; gap: 16px; padding: 22px; margin-bottom: 16px; }
.contact-info-card .icon-box { margin-bottom: 0; flex-shrink: 0; }
.contact-info-card h4 { font-size: 15px; margin-bottom: 4px; }
.contact-info-card p { color: var(--ink-dim); font-size: 14px; }
.social-row { display: flex; gap: 10px; margin-top: 22px; }
.social-row a {
  width: 38px; height: 38px; border-radius: var(--radius-sm);
  background: var(--surface); border: 1px solid var(--border);
  display: grid; place-items: center; font-size: 17px;
  transition: all .15s ease;
}
.social-row a:hover { background: var(--primary); color: #fff; border-color: var(--primary); }

.map-box {
  height: 220px; border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  background: var(--surface-alt);
  display: grid; place-items: center;
  color: var(--ink-faint);
  font-size: 14px;
  margin-top: 16px;
}
.map-box i { font-size: 28px; color: var(--primary); margin-bottom: 8px; }

/* ===== Static content pages (about / legal) ===== */
.prose { max-width: 760px; margin: 0 auto; }
.prose h2 { font-size: 22px; margin: 42px 0 14px; }
.prose h2:first-child { margin-top: 0; }
.prose p { color: var(--ink-dim); font-size: 15.5px; margin-bottom: 16px; }
.prose ul { margin: 0 0 16px 0; }
.prose ul li { color: var(--ink-dim); font-size: 15.5px; padding-left: 22px; position: relative; margin-bottom: 10px; }
.prose ul li::before { content: '—'; position: absolute; left: 0; color: var(--primary); }
.prose .updated { color: var(--ink-faint); font-size: 13px; margin-bottom: 38px; }

.value-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.value-card { text-align: left; }

.stat-strip { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; text-align: center; max-width: 900px; margin: 0 auto; }
.stat-strip .stat-num { display: block; }

.team-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.team-card { text-align: center; padding: 24px 16px; }
.team-avatar {
  width: 60px; height: 60px; border-radius: 50%; margin: 0 auto 16px;
  background: var(--primary-tint); border: 1px solid rgba(12,77,162,0.18);
  display: grid; place-items: center;
  font-weight: 800; font-size: 17px; color: var(--primary);
}
.team-name { font-weight: 700; font-size: 15px; margin-bottom: 2px; }
.team-role { color: var(--ink-faint); font-size: 13px; }

/* ===== Careers: perks + job list ===== */
.job-list { display: flex; flex-direction: column; gap: 12px; max-width: 820px; margin: 0 auto; }
.job-card { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 22px 26px; flex-wrap: wrap; }
.job-card h3 { font-size: 16.5px; margin-bottom: 8px; }
.job-meta { display: flex; gap: 18px; flex-wrap: wrap; }
.job-meta span { display: flex; align-items: center; gap: 6px; font-size: 13px; color: var(--ink-dim); }
.job-meta i { font-size: 15px; color: var(--primary); }

/* ===== Software access list (home) ===== */
.software-list { display: flex; flex-direction: column; gap: 12px; max-width: 900px; margin: 0 auto; }
.software-row { display: flex; align-items: center; gap: 20px; padding: 20px 24px; flex-wrap: wrap; }
.software-row .icon-box { margin-bottom: 0; flex-shrink: 0; }
.software-row-body { flex: 1; min-width: 200px; }
.software-row-body h3 { font-size: 16.5px; margin-bottom: 3px; }
.software-row-body p { color: var(--ink-dim); font-size: 13.5px; margin: 0; }
.software-row-actions { display: flex; gap: 10px; flex-shrink: 0; }

/* ===== Login page ===== */
.login-shell { min-height: 100vh; display: grid; grid-template-columns: 1fr 1fr; }
.login-panel { display: flex; align-items: center; justify-content: center; padding: 40px 24px; }
.login-box { width: 100%; max-width: 380px; }
.login-box .brand { margin-bottom: 34px; }
.login-box h1 { font-size: 24px; margin-bottom: 8px; }
.login-box .sub { color: var(--ink-dim); font-size: 14.5px; margin-bottom: 30px; }
.login-remember { display: flex; align-items: center; justify-content: space-between; margin: -6px 0 22px; font-size: 13.5px; }
.login-remember label { display: flex; align-items: center; gap: 8px; font-size: 13.5px; font-weight: 500; color: var(--ink-dim); margin: 0; }
.login-remember a { color: var(--primary); font-weight: 600; }
.login-divider { display: flex; align-items: center; gap: 14px; margin: 26px 0; color: var(--ink-faint); font-size: 12.5px; }
.login-divider::before, .login-divider::after { content: ''; flex: 1; height: 1px; background: var(--border); }
.login-footer-note { text-align: center; margin-top: 26px; font-size: 13.5px; color: var(--ink-dim); }
.login-footer-note a { color: var(--primary); font-weight: 600; }
.login-side {
  background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary) 60%, var(--accent) 135%);
  display: flex; align-items: center; justify-content: center;
  padding: 60px; position: relative; overflow: hidden;
}
.login-side-content { position: relative; z-index: 1; max-width: 420px; color: #fff; }
.login-side-content .eyebrow { background: rgba(255,255,255,0.12); border-color: rgba(255,255,255,0.28); color: #fff; }
.login-side-content h2 { color: #fff; font-size: 26px; margin-bottom: 14px; }
.login-side-content p { color: rgba(255,255,255,0.82); font-size: 15px; margin-bottom: 26px; }
.login-app-list { display: flex; flex-direction: column; gap: 10px; }
.login-app-list div { display: flex; align-items: center; gap: 10px; font-size: 13.5px; color: rgba(255,255,255,0.85); background: rgba(255,255,255,0.08); border: 1px solid rgba(255,255,255,0.16); padding: 10px 14px; border-radius: var(--radius-sm); }
.login-app-list i { font-size: 17px; }
@media (max-width: 900px) {
  .login-shell { grid-template-columns: 1fr; }
  .login-side { display: none; }
}

/* ===== Integrations ===== */
.integrations-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.integration-card { text-align: center; padding: 26px 16px; }
.integration-card .icon-box { margin: 0 auto 16px; }
.integration-card h3 { font-size: 15px; margin-bottom: 6px; }
.integration-card p { font-size: 12.5px; color: var(--ink-dim); }

/* ===== Customer case studies ===== */
.case-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 22px; }
.case-card { display: flex; flex-direction: column; gap: 16px; }
.case-tag {
  align-self: flex-start;
  font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .04em;
  color: var(--primary); background: var(--primary-tint);
  padding: 4px 10px; border-radius: var(--radius-sm);
}
.case-quote { font-size: 17px; font-weight: 600; color: var(--ink); letter-spacing: -0.01em; }
.case-metrics { display: flex; gap: 28px; padding-top: 16px; border-top: 1px solid var(--border); margin-top: auto; }
.case-metric .num { font-size: 24px; font-weight: 800; color: var(--primary); display: block; }
.case-metric .label { font-size: 11.5px; color: var(--ink-faint); }
.case-person { display: flex; align-items: center; gap: 10px; font-size: 13.5px; color: var(--ink-dim); }

/* ===== Resources ===== */
.resource-cat { margin-bottom: 56px; }
.resource-cat:last-child { margin-bottom: 0; }
.resource-cat-head { display: flex; align-items: baseline; justify-content: space-between; margin-bottom: 22px; flex-wrap: wrap; gap: 8px; }
.resource-cat-head h2 { font-size: 21px; }
.resource-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.resource-card p { color: var(--ink-dim); font-size: 14px; margin: 8px 0 16px; }
.resource-card .tag { font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; color: var(--ink-faint); }

/* ===== Footer ===== */
footer { background: var(--primary-dark); color: #A9ACB2; padding: 56px 0 24px; margin-top: 0; }
.footer-grid { display: grid; grid-template-columns: 1.4fr repeat(3, 1fr); gap: 32px; margin-bottom: 44px; }
.footer-brand .brand { color: #fff; }
.footer-brand p { color: #9497A0; font-size: 14px; margin: 16px 0 22px; max-width: 280px; }
.footer-brand .social-row a { background: rgba(255,255,255,0.06); border-color: rgba(255,255,255,0.12); color: #A9ACB2; }
.footer-brand .social-row a:hover { background: #fff; color: var(--primary-dark); border-color: #fff; }
.footer-col h4 { font-size: 13px; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; margin-bottom: 18px; color: #fff; }
.footer-col a { display: block; color: #9497A0; font-size: 14px; margin-bottom: 11px; transition: color .15s; }
.footer-col a:hover { color: #fff; }
.footer-bottom { display: flex; justify-content: space-between; align-items: center; padding-top: 24px; border-top: 1px solid rgba(255,255,255,0.1); color: #7C7F87; font-size: 12.5px; flex-wrap: wrap; gap: 14px; }

/* ===== Blog ===== */
.blog-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.blog-card { display: flex; flex-direction: column; }
.blog-thumb { height: 140px; border-radius: var(--radius-md); background: var(--surface-alt); border: 1px solid var(--border); display: grid; place-items: center; margin-bottom: 18px; }
.blog-thumb i { font-size: 42px; color: var(--primary); }
.blog-card-meta { display: flex; align-items: center; justify-content: space-between; margin-bottom: 10px; }
.blog-date { font-size: 12px; color: var(--ink-faint); }
.blog-card h3 { font-size: 17px; margin-bottom: 8px; }
.blog-card p { color: var(--ink-dim); font-size: 14px; margin-bottom: 14px; flex: 1; }
.blog-post-meta { display: flex; align-items: center; justify-content: center; gap: 16px; flex-wrap: wrap; color: var(--ink-faint); font-size: 13.5px; margin-top: 6px; }
.blog-post-meta span { display: inline-flex; align-items: center; gap: 6px; }

/* ===== Reveal animation ===== */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .55s ease, transform .55s ease; }
.reveal.in-view { opacity: 1; transform: translateY(0); }

/* ===== Responsive ===== */
@media (max-width: 1024px) {
  .hero { grid-template-columns: 1fr; text-align: center; }
  .hero p.lead { margin-left: auto; margin-right: auto; }
  .hero-actions, .hero-meta { justify-content: center; }
  .hero-panel { max-width: 480px; margin: 0 auto; }
  .hero-globe { max-width: 340px; margin: 0 auto; }
  .stats-grid, .stat-strip { grid-template-columns: repeat(2, 1fr); gap: 28px; }
  .stats-grid > div { border-left: none; border-top: 1px solid var(--border); padding-top: 24px; }
  .features-grid, .steps-grid, .pricing-grid, .value-grid { grid-template-columns: repeat(2, 1fr); }
  .team-grid, .integrations-grid, .resource-grid, .case-grid, .industries-grid, .blog-grid { grid-template-columns: repeat(2, 1fr); }
  .feature-row, .feature-row.reverse { grid-template-columns: 1fr; }
  .feature-row.reverse .feature-row-media { order: 0; }
  .contact-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 768px) {
  :root { --util-h: 0px; }
  .util-bar { display: none; }
  .nav-links { display: none; }
  .nav-actions .btn { display: none; }
  .nav-toggle { display: flex; }
  .features-grid, .steps-grid, .pricing-grid, .value-grid, .team-grid,
  .integrations-grid, .resource-grid, .case-grid, .industries-grid, .blog-grid { grid-template-columns: 1fr; }
  .stats-grid, .stat-strip { grid-template-columns: repeat(2, 1fr); }
  .form-row { grid-template-columns: 1fr; }
  .cta-banner { padding: 40px 24px; }
  table.compare { min-width: 560px; }
  .job-card { flex-direction: column; align-items: flex-start; }
  .logo-row { justify-content: center; gap: 22px 32px; }
}

@media (max-width: 480px) {
  .container { padding-left: 18px; padding-right: 18px; }
  .hero-actions .btn, .cta-actions .btn { width: 100%; }
  .hero-actions, .cta-actions { flex-direction: column; }
  .footer-grid { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; text-align: center; }
}

/* ============================== FLEET COMMAND (3D demo) ============================== */
.fcmd-shell {
  max-width: 1360px; margin: 44px auto 0;
  background: #0A0E16;
  border: 1px solid #1D2530;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 30px 70px -30px rgba(0,0,0,0.55);
  font-family: 'Inter', sans-serif;
}

.fcmd-topbar {
  display: flex; align-items: center; justify-content: space-between;
  padding: 16px 24px;
  border-bottom: 1px solid #1D2530;
  background: #0D131D;
  flex-wrap: wrap; gap: 12px;
}
.fcmd-brand { display: flex; align-items: center; gap: 10px; font-weight: 800; font-size: 13.5px; letter-spacing: .08em; color: #fff; }
.fcmd-live-dot { width: 8px; height: 8px; border-radius: 50%; background: #33D68A; box-shadow: 0 0 0 3px rgba(51,214,138,0.25); animation: fcmdPulse 1.6s infinite; }
@keyframes fcmdPulse { 0% { box-shadow: 0 0 0 0 rgba(51,214,138,.5); } 70% { box-shadow: 0 0 0 8px rgba(51,214,138,0); } 100% { box-shadow: 0 0 0 0 rgba(51,214,138,0); } }
.fcmd-stats { display: flex; gap: 26px; flex-wrap: wrap; }
.fcmd-stat { display: flex; flex-direction: column; align-items: center; gap: 2px; }
.fcmd-stat span { font-weight: 800; font-size: 14.5px; color: #fff; }
.fcmd-stat label { font-size: 9.5px; text-transform: uppercase; letter-spacing: .06em; color: #66707F; }

.fcmd-body { display: grid; grid-template-columns: 230px 1fr 250px; }

.fcmd-sidebar { background: #0D131D; padding: 16px; overflow-y: auto; max-height: 580px; }
.fcmd-sidebar-left { border-right: 1px solid #1D2530; }
.fcmd-sidebar-right { border-left: 1px solid #1D2530; }

.fcmd-search-wrap { position: relative; margin-bottom: 16px; }
.fcmd-search-wrap i { position: absolute; left: 10px; top: 50%; transform: translateY(-50%); color: #66707F; font-size: 16px; }
.fcmd-search-wrap input { width: 100%; background: #131B27; border: 1px solid #1D2530; border-radius: 8px; padding: 9px 10px 9px 32px; color: #fff; font-size: 12.5px; }
.fcmd-search-wrap input:focus { outline: none; border-color: #2E5C8A; }
.fcmd-search-wrap input::placeholder { color: #4B5563; }

.fcmd-filter-group { margin-bottom: 16px; }
.fcmd-filter-label { font-size: 10px; text-transform: uppercase; letter-spacing: .06em; color: #66707F; margin-bottom: 8px; }
.fcmd-chip-row { display: flex; flex-wrap: wrap; gap: 6px; }
.fcmd-chip { background: #131B27; border: 1px solid #1D2530; color: #9AA4B2; font-size: 11px; font-weight: 600; padding: 5px 10px; border-radius: 999px; cursor: pointer; }
.fcmd-chip:hover { border-color: #2E5C8A; color: #fff; }
.fcmd-chip.active { background: #2E5C8A; border-color: #2E5C8A; color: #fff; }

.fcmd-list { display: flex; flex-direction: column; gap: 6px; margin-top: 6px; }
.fcmd-list-item { display: flex; align-items: center; gap: 10px; padding: 9px 10px; border-radius: 8px; cursor: pointer; border: 1px solid transparent; }
.fcmd-list-item:hover { background: #131B27; }
.fcmd-list-item.selected { background: rgba(46,92,138,0.18); border-color: #2E5C8A; }
.fcmd-list-dot { width: 8px; height: 8px; border-radius: 50%; flex-shrink: 0; }
.fcmd-list-dot.moving { background: #33D68A; }
.fcmd-list-dot.idle { background: #E8C94C; }
.fcmd-list-dot.stopped { background: #8891A0; }
.fcmd-list-dot.delayed { background: #E0508A; }
.fcmd-list-item-body { flex: 1; min-width: 0; }
.fcmd-list-item-body strong { display: block; font-size: 12px; color: #fff; }
.fcmd-list-item-body small { display: block; font-size: 10.5px; color: #66707F; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.fcmd-list-item-speed { font-size: 10.5px; color: #9AA4B2; font-weight: 700; }

.fcmd-canvas-wrap { position: relative; background: #dcebfa; height: 580px; }
.fcmd-canvas { position: absolute; inset: 0; }
.fcmd-canvas canvas { display: block; }
.fcmd-fallback-msg {
  height: 100%; display: flex; flex-direction: column; align-items: center; justify-content: center;
  text-align: center; gap: 12px; padding: 40px; color: #5B6472;
}
.fcmd-fallback-msg i { font-size: 34px; color: #C0392B; }
.fcmd-fallback-msg i.bx-loader-alt { color: #2E5C8A; }
.fcmd-fallback-msg p { font-size: 14px; max-width: 440px; color: #33383F; font-weight: 600; }
.fcmd-fallback-msg code {
  display: block; max-width: 480px; background: #ffffff; border: 1px solid #D6D0BF;
  color: #24507A; font-size: 12px; padding: 10px 14px; border-radius: 8px; word-break: break-word;
}

.fcmd-toolbar { position: absolute; top: 14px; left: 14px; display: flex; align-items: center; gap: 4px; background: rgba(10,14,22,0.85); border: 1px solid #1D2530; border-radius: 10px; padding: 5px; backdrop-filter: blur(6px); z-index: 2; }
.fcmd-tool { width: 32px; height: 32px; display: grid; place-items: center; background: transparent; border: none; color: #9AA4B2; border-radius: 7px; cursor: pointer; font-size: 16px; }
.fcmd-tool:hover { background: #1D2530; color: #fff; }
.fcmd-tool.active { background: #2E5C8A; color: #fff; }
.fcmd-tool-sep { width: 1px; height: 20px; background: #1D2530; margin: 0 4px; }

.fcmd-hint { position: absolute; bottom: 14px; left: 14px; font-size: 10.5px; color: rgba(255,255,255,0.45); background: rgba(10,14,22,0.7); padding: 6px 10px; border-radius: 6px; z-index: 2; }

.fcmd-label-layer { position: absolute; inset: 0; pointer-events: none; overflow: hidden; }
.fcmd-vlabel { position: absolute; top: 0; left: 0; transform: translate(-50%, -100%); font-size: 10px; font-weight: 700; color: #fff; background: rgba(10,14,22,0.75); border: 1px solid rgba(255,255,255,0.14); padding: 2px 6px; border-radius: 5px; white-space: nowrap; }
.fcmd-vlabel.status-delayed { border-color: #E0508A; color: #ffb8d3; }

.fcmd-tooltip { position: absolute; pointer-events: none; background: #12161f; border: 1px solid #1D2530; color: #fff; font-size: 11px; line-height: 1.5; padding: 8px 10px; border-radius: 8px; display: none; z-index: 5; box-shadow: 0 10px 24px rgba(0,0,0,.4); }

.fcmd-empty-state { height: 100%; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; color: #4B5563; gap: 10px; padding: 30px 10px; }
.fcmd-empty-state i { font-size: 30px; }
.fcmd-empty-state p { font-size: 12.5px; }

.fcmd-detail-head { display: flex; align-items: center; gap: 10px; margin-bottom: 16px; }
.fcmd-detail-icon { width: 38px; height: 38px; border-radius: 9px; display: grid; place-items: center; font-size: 18px; }
.fcmd-detail-title strong { display: block; font-size: 14px; color: #fff; }
.fcmd-detail-title span { font-size: 11px; color: #66707F; }
.fcmd-detail-status { display: inline-flex; align-items: center; gap: 6px; font-size: 10.5px; font-weight: 700; padding: 4px 10px; border-radius: 999px; margin-bottom: 16px; text-transform: capitalize; }
.fcmd-detail-status.moving { background: rgba(51,214,138,0.15); color: #33D68A; }
.fcmd-detail-status.idle { background: rgba(232,201,76,0.15); color: #E8C94C; }
.fcmd-detail-status.stopped { background: rgba(136,145,160,0.18); color: #B7BFCB; }
.fcmd-detail-status.delayed { background: rgba(224,80,138,0.15); color: #E0508A; }

.fcmd-tabs { display: flex; gap: 2px; background: #10161F; border-radius: 8px; padding: 3px; margin-bottom: 14px; }
.fcmd-tab { flex: 1; border: none; background: transparent; color: #66707F; font-size: 11px; font-weight: 700; padding: 7px 4px; border-radius: 6px; cursor: pointer; transition: background .15s ease, color .15s ease; }
.fcmd-tab:hover { color: #C4CBD4; }
.fcmd-tab.active { background: #2E5C8A; color: #fff; }

.fcmd-detail-row { display: flex; align-items: center; justify-content: space-between; padding: 9px 0; border-bottom: 1px solid #1D2530; font-size: 12px; }
.fcmd-detail-row label { color: #66707F; }
.fcmd-detail-row span { color: #fff; font-weight: 600; }
.fcmd-detail-row span.mono { font-family: 'IBM Plex Mono', 'Courier New', monospace; letter-spacing: .03em; }

.fcmd-detail-subhead {
  display: flex; align-items: center; gap: 6px;
  font-size: 10.5px; font-weight: 700; text-transform: uppercase; letter-spacing: .06em;
  color: #66707F; margin: 18px 0 4px;
}

.fcmd-ignition { display: inline-flex; align-items: center; gap: 6px; }
.fcmd-ignition .dot { width: 7px; height: 7px; border-radius: 50%; }
.fcmd-ignition.on { color: #33D68A; }
.fcmd-ignition.on .dot { background: #33D68A; box-shadow: 0 0 0 3px rgba(51,214,138,0.2); }
.fcmd-ignition.off { color: #8891A0; }
.fcmd-ignition.off .dot { background: #8891A0; }

.fcmd-gauge { margin: 14px 0; }
.fcmd-gauge-head { display: flex; justify-content: space-between; font-size: 11px; color: #66707F; margin-bottom: 6px; }
.fcmd-gauge-track { height: 6px; border-radius: 4px; background: #1D2530; overflow: hidden; }
.fcmd-gauge-fill { height: 100%; border-radius: 4px; background: #2E5C8A; transition: width .3s ease; }
.fcmd-gauge-fill.low { background: #E0508A; }

.fcmd-sparkline { display: block; width: 100%; height: 46px; margin-bottom: 14px; }

.fcmd-route-trail { display: flex; flex-direction: column; gap: 8px; }
.fcmd-route-point { display: flex; align-items: center; gap: 8px; font-size: 11.5px; color: #9AA4B2; }
.fcmd-route-point .dot { width: 6px; height: 6px; border-radius: 50%; background: #3A4454; flex-shrink: 0; }
.fcmd-route-point.current { color: #fff; }
.fcmd-route-point.current .dot { background: #33D68A; box-shadow: 0 0 0 3px rgba(51,214,138,0.2); }
.fcmd-route-point span.mono { font-family: 'IBM Plex Mono', 'Courier New', monospace; letter-spacing: .02em; }

.fcmd-activity-list { display: flex; flex-direction: column; gap: 4px; max-height: 320px; overflow-y: auto; }

.fcmd-detail-actions { display: flex; gap: 8px; margin-top: 16px; }
.fcmd-detail-actions button { flex: 1; }

.fcmd-timeline { border-top: 1px solid #1D2530; padding: 14px 20px; background: #0D131D; }
.fcmd-timeline-head { display: flex; align-items: center; gap: 8px; font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; color: #66707F; margin-bottom: 10px; }
.fcmd-timeline-list { display: flex; flex-direction: column; gap: 6px; max-height: 130px; overflow-y: auto; }
.fcmd-timeline-item { display: flex; align-items: center; gap: 10px; font-size: 11.5px; color: #9AA4B2; padding: 5px 0; }
.fcmd-timeline-item .fcmd-tl-time { color: #4B5563; font-size: 10px; min-width: 50px; flex-shrink: 0; }
.fcmd-timeline-item .fcmd-tl-icon { width: 20px; height: 20px; border-radius: 5px; display: grid; place-items: center; font-size: 11px; flex-shrink: 0; }
.fcmd-timeline-item.info .fcmd-tl-icon { background: rgba(46,92,138,0.18); color: #6FA8DC; }
.fcmd-timeline-item.warn .fcmd-tl-icon { background: rgba(232,201,76,0.18); color: #E8C94C; }
.fcmd-timeline-item.alert .fcmd-tl-icon { background: rgba(224,80,138,0.18); color: #E0508A; }

@media (max-width: 1100px) {
  .fcmd-body { grid-template-columns: 1fr; }
  .fcmd-sidebar-left, .fcmd-sidebar-right { border: none; border-top: 1px solid #1D2530; max-height: 240px; }
  .fcmd-canvas-wrap { height: 420px; order: -1; }
}
@media (max-width: 640px) {
  .fcmd-stats { gap: 14px; }
  .fcmd-stat span { font-size: 13px; }
}
