/* ============================================================
   Arrival Coordinator (Arrivo) - Marketing Landing Page Stylesheet
   Architecture: MOBILE-FIRST (Progressive Enhancement)
   Theme: Sleek Dark Glassmorphism, Cyber Cyan & Electric Blue
   ============================================================ */

:root {
  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  
  /* Mobile Safe Area Insets */
  --sat: env(safe-area-inset-top, 0px);
  --sab: env(safe-area-inset-bottom, 0px);
  --sal: env(safe-area-inset-left, 0px);
  --sar: env(safe-area-inset-right, 0px);

  /* Color Palette */
  --bg-deep: #06080e;
  --bg-surface: #0c101d;
  --bg-surface-elevated: #131b2e;
  --bg-glass: rgba(15, 23, 42, 0.75);
  --bg-glass-card: rgba(18, 26, 47, 0.68);
  --bg-glass-strong: rgba(18, 27, 49, 0.94);
  
  --border-subtle: rgba(255, 255, 255, 0.08);
  --border-glow: rgba(56, 189, 248, 0.35);
  --border-glow-purple: rgba(168, 85, 247, 0.35);

  --text-main: #f8fafc;
  --text-muted: #94a3b8;
  --text-dim: #64748b;
  
  --primary: #3b82f6;
  --primary-light: #60a5fa;
  --cyan: #38bdf8;
  --cyan-glow: rgba(56, 189, 248, 0.4);
  --purple: #a855f7;
  --success: #10b981;
  --success-glow: rgba(16, 185, 129, 0.35);
  --warning: #f59e0b;
  --danger: #ef4444;

  --shadow-card: 0 16px 40px -12px rgba(0, 0, 0, 0.65), 0 0 1px 1px rgba(255, 255, 255, 0.06);
  --shadow-glow: 0 0 35px -5px rgba(56, 189, 248, 0.25);
  --shadow-cta: 0 12px 30px -8px rgba(37, 99, 235, 0.65);

  --radius-xl: 24px;
  --radius-lg: 18px;
  --radius-md: 12px;
  --radius-full: 9999px;
  
  --max-w: 1200px;
}

/* ============================================================
   1. BASE MOBILE RESET & ERGONOMICS
   ============================================================ */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  -webkit-tap-highlight-color: transparent;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: var(--font-sans);
  background-color: var(--bg-deep);
  color: var(--text-main);
  line-height: 1.55;
  overflow-x: hidden;
  position: relative;
  /* Reserve space on mobile for sticky bottom conversion bar */
  padding-bottom: calc(72px + var(--sab));
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  -webkit-text-size-adjust: 100%;
  background-image: 
    radial-gradient(circle at 50% 0%, rgba(56, 189, 248, 0.12) 0%, transparent 60%),
    radial-gradient(circle at 90% 20%, rgba(168, 85, 247, 0.08) 0%, transparent 50%),
    radial-gradient(circle at 10% 45%, rgba(59, 130, 246, 0.08) 0%, transparent 50%);
  background-repeat: no-repeat;
  background-attachment: scroll;
}

/* Prevent body scroll when mobile drawer is open */
body.nav-drawer-open {
  overflow: hidden;
}

/* ============================================================
   2. MOBILE-FIRST TYPOGRAPHY & UTILITIES
   ============================================================ */
h1, h2, h3, h4, h5 {
  font-weight: 800;
  letter-spacing: -0.03em;
  color: var(--text-main);
}

.text-gradient {
  background: linear-gradient(135deg, #38bdf8 0%, #818cf8 50%, #c084fc 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.text-gradient-cyan {
  background: linear-gradient(135deg, #67e8f9 0%, #38bdf8 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* Mobile-first fluid container */
.container {
  width: 100%;
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 16px;
}

/* Mobile-first section vertical spacing */
.section-wrapper {
  padding: 48px 0;
  position: relative;
}

.section-header {
  text-align: center;
  max-width: 720px;
  margin: 0 auto 36px;
  padding: 0 4px;
}

.section-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 14px;
  background: rgba(56, 189, 248, 0.1);
  border: 1px solid rgba(56, 189, 248, 0.25);
  border-radius: var(--radius-full);
  color: var(--cyan);
  font-size: 0.74rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 12px;
}

.section-title {
  font-size: clamp(1.65rem, 5.5vw, 2.75rem);
  line-height: 1.15;
  margin-bottom: 12px;
}

.section-subtitle {
  color: var(--text-muted);
  font-size: clamp(0.92rem, 3.2vw, 1.1rem);
  line-height: 1.55;
}

/* ============================================================
   3. MOBILE-FIRST BUTTONS (48px+ Touch Targets)
   ============================================================ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 48px;
  padding: 12px 22px;
  border-radius: var(--radius-md);
  font-weight: 700;
  font-size: 0.98rem;
  text-decoration: none;
  cursor: pointer;
  border: none;
  outline: none;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  white-space: nowrap;
  user-select: none;
  -webkit-user-select: none;
}

.btn:active {
  transform: scale(0.97);
}

.btn-primary {
  background: linear-gradient(135deg, #2563eb, #38bdf8);
  color: white;
  box-shadow: var(--shadow-cta);
  position: relative;
  overflow: hidden;
}

.btn-primary::after {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.25), transparent);
  transition: left 0.6s ease;
}

.btn-primary:hover {
  box-shadow: 0 16px 36px -8px rgba(56, 189, 248, 0.6);
}

.btn-primary:hover::after {
  left: 100%;
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.06);
  color: var(--text-main);
  border: 1px solid var(--border-subtle);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.2);
}

.btn-block {
  width: 100%;
}

/* ============================================================
   4. STICKY NAVBAR & MOBILE NAVIGATION DRAWER
   ============================================================ */
.landing-navbar {
  position: sticky;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: rgba(6, 8, 14, 0.88);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border-subtle);
  padding-top: var(--sat);
}

.nav-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 60px;
}

.brand-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--text-main);
  user-select: none;
}

.logo-pin {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  display: block;
}

.logo-text {
  font-size: 1.2rem;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.logo-badge {
  font-size: 0.64rem;
  font-weight: 700;
  color: var(--cyan);
  background: rgba(56, 189, 248, 0.12);
  padding: 2px 7px;
  border-radius: var(--radius-full);
  border: 1px solid rgba(56, 189, 248, 0.3);
  text-transform: uppercase;
}

/* Desktop nav links and CTA hidden by default on mobile */
.nav-links {
  display: none;
}

.nav-actions {
  display: none;
}

/* Mobile Actions: Mini Launch CTA + Hamburger Toggle */
.nav-mobile-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.nav-mobile-cta {
  min-height: 36px;
  padding: 6px 14px;
  font-size: 0.82rem;
  font-weight: 700;
  border-radius: var(--radius-full);
  box-shadow: 0 4px 16px -4px rgba(37, 99, 235, 0.6);
}

.mobile-menu-toggle {
  width: 42px;
  height: 42px;
  border: 1px solid var(--border-subtle);
  background: rgba(255, 255, 255, 0.05);
  border-radius: 10px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  cursor: pointer;
  padding: 0;
  transition: all 0.2s ease;
}

.mobile-menu-toggle:active {
  transform: scale(0.95);
  background: rgba(255, 255, 255, 0.1);
}

.hamburger-bar {
  width: 20px;
  height: 2px;
  background-color: var(--text-main);
  border-radius: 2px;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Hamburger Morphing into 'X' when active */
.mobile-menu-toggle.active .hamburger-bar:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.mobile-menu-toggle.active .hamburger-bar:nth-child(2) {
  opacity: 0;
  transform: scaleX(0);
}

.mobile-menu-toggle.active .hamburger-bar:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* Mobile Navigation Drawer Overlay */
.mobile-nav-overlay {
  position: fixed;
  inset: 0;
  z-index: 150;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.25s ease;
}

.mobile-nav-overlay.active {
  pointer-events: auto;
  opacity: 1;
}

.mobile-nav-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.mobile-nav-panel {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  background: var(--bg-surface-elevated);
  border-bottom: 1px solid var(--border-glow);
  padding: calc(16px + var(--sat)) 20px 24px;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.85);
  transform: translateY(-100%);
  transition: transform 0.32s cubic-bezier(0.16, 1, 0.3, 1);
  max-height: 88vh;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}

.mobile-nav-overlay.active .mobile-nav-panel {
  transform: translateY(0);
}

.mobile-nav-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--border-subtle);
}

.mobile-nav-close {
  width: 38px;
  height: 38px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--border-subtle);
  border-radius: 10px;
  color: var(--text-muted);
  font-size: 1.1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.mobile-nav-menu {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 24px;
}

.mobile-nav-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 14px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  color: var(--text-main);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.96rem;
  transition: all 0.2s ease;
}

.mobile-nav-link:active {
  background: rgba(56, 189, 248, 0.12);
  border-color: var(--cyan);
}

.nav-link-icon {
  font-size: 1.15rem;
  margin-right: 10px;
}

.nav-link-title {
  flex-grow: 1;
}

.nav-link-arrow {
  color: var(--cyan);
  font-size: 1.2rem;
  font-weight: 700;
}

.mobile-nav-footer {
  text-align: center;
}

.mobile-nav-footer-note {
  margin-top: 10px;
  font-size: 0.76rem;
  color: var(--text-dim);
}

/* ============================================================
   5. STICKY MOBILE BOTTOM CONVERSION BAR (Thumb-Zone Ergonomics)
   ============================================================ */
.mobile-sticky-bottom-bar {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 95;
  background: rgba(6, 8, 14, 0.94);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-top: 1px solid var(--border-glow);
  padding: 10px 16px calc(10px + var(--sab));
  box-shadow: 0 -10px 30px rgba(0, 0, 0, 0.7);
  transition: transform 0.3s ease;
}

.mobile-sticky-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  max-width: var(--max-w);
  margin: 0 auto;
}

.mobile-sticky-info {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.mobile-sticky-badge {
  font-size: 0.72rem;
  font-weight: 700;
  color: #34d399;
  display: flex;
  align-items: center;
  gap: 5px;
}

.mobile-sticky-subtitle {
  font-size: 0.76rem;
  color: var(--text-muted);
}

.mobile-sticky-cta-btn {
  min-height: 42px;
  padding: 8px 18px;
  font-size: 0.88rem;
  font-weight: 700;
  border-radius: var(--radius-full);
  box-shadow: 0 4px 18px -2px rgba(37, 99, 235, 0.8);
}

/* ============================================================
   6. HERO SECTION (Mobile-First)
   ============================================================ */
.hero-section {
  padding: 32px 0 24px;
  position: relative;
}

.hero-glow-sphere {
  position: absolute;
  top: 10%;
  left: 50%;
  transform: translateX(-50%);
  width: 90vw;
  max-width: 600px;
  height: 280px;
  background: radial-gradient(circle, rgba(56, 189, 248, 0.16) 0%, rgba(168, 85, 247, 0.08) 60%, transparent 70%);
  filter: blur(70px);
  pointer-events: none;
  z-index: 0;
}

.hero-content {
  position: relative;
  z-index: 1;
  text-align: center;
  max-width: 900px;
  margin: 0 auto;
}

.hero-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  background: rgba(56, 189, 248, 0.08);
  border: 1px solid rgba(56, 189, 248, 0.25);
  border-radius: var(--radius-full);
  color: var(--cyan);
  font-size: 0.76rem;
  font-weight: 600;
  margin-bottom: 18px;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  line-height: 1.3;
}

.pulse-beacon {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--cyan);
  box-shadow: 0 0 8px var(--cyan);
  animation: beacon-pulse 1.8s infinite;
  flex-shrink: 0;
}

@keyframes beacon-pulse {
  0%, 100% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.4); opacity: 0.5; }
}

.hero-title {
  font-size: clamp(1.9rem, 7.5vw, 4.1rem);
  line-height: 1.1;
  margin-bottom: 16px;
  font-weight: 900;
  padding: 0 4px;
}

.hero-subtitle {
  font-size: clamp(0.95rem, 3.8vw, 1.25rem);
  color: var(--text-muted);
  line-height: 1.55;
  margin-bottom: 28px;
  padding: 0 6px;
}

/* Mobile: Full-width stacked buttons */
.hero-cta-group {
  display: flex;
  flex-direction: column;
  gap: 12px;
  width: 100%;
  margin-bottom: 28px;
}

.hero-cta-group .btn {
  width: 100%;
  min-height: 52px;
  font-size: 1.05rem;
}

/* Mobile: Clean 2x2 badge grid */
.hero-badge-row {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px;
  color: var(--text-dim);
  font-size: 0.75rem;
  font-weight: 600;
  text-align: left;
}

.hero-badge-item {
  display: flex;
  align-items: center;
  gap: 6px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 8px 10px;
}

/* ============================================================
   7. INTERACTIVE COCKPIT DEMO (Mobile Smartphone View)
   ============================================================ */
.preview-container {
  margin-top: 32px;
  position: relative;
  z-index: 2;
}

/* Mobile Segmented Toggle: Switch between Map and Scoreboard */
.cockpit-mobile-toggle-bar {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  background: rgba(18, 27, 49, 0.9);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-full);
  padding: 4px;
  margin-bottom: 14px;
  max-width: 320px;
  margin-left: auto;
  margin-right: auto;
}

.cockpit-mobile-toggle-btn {
  flex: 1;
  padding: 8px 14px;
  background: transparent;
  border: none;
  border-radius: var(--radius-full);
  color: var(--text-muted);
  font-size: 0.8rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s ease;
  white-space: nowrap;
}

.cockpit-mobile-toggle-btn.active {
  background: linear-gradient(135deg, rgba(37, 99, 235, 0.8), rgba(56, 189, 248, 0.8));
  color: white;
  box-shadow: 0 2px 10px rgba(56, 189, 248, 0.4);
}

.cockpit-mockup {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: 18px;
  overflow: hidden;
  box-shadow: 0 25px 60px -15px rgba(0, 0, 0, 0.8), 0 0 0 1px rgba(255, 255, 255, 0.05);
  display: flex;
  flex-direction: column;
  position: relative;
}

/* Cockpit Map Viewport */
.cockpit-map-viewport {
  position: relative;
  background: radial-gradient(circle at 60% 40%, #172642 0%, #0c1322 75%);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  min-height: 290px;
  height: 310px;
}

.map-grid-overlay {
  position: absolute;
  inset: 0;
  background-image: 
    linear-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
  background-size: 32px 32px;
  pointer-events: none;
}

/* Mobile Cockpit Topbar */
.cockpit-topbar {
  position: absolute;
  top: 10px;
  left: 10px;
  right: 10px;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
  pointer-events: none;
}

.cockpit-meta-pill {
  background: var(--bg-glass-strong);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-full);
  padding: 5px 10px;
  display: flex;
  align-items: center;
  gap: 6px;
  box-shadow: var(--shadow-card);
  pointer-events: auto;
  font-size: 0.74rem;
}

.cockpit-topbar .wake-lock-pill {
  background: rgba(16, 185, 129, 0.15);
  border: 1px solid rgba(16, 185, 129, 0.3);
  color: #34d399;
  padding: 5px 9px;
  border-radius: var(--radius-full);
  font-size: 0.68rem;
  font-weight: 700;
  white-space: nowrap;
  pointer-events: auto;
}

/* Mobile-First Horizontally Scrollable Status Chips */
.cockpit-status-chips-bar {
  position: absolute;
  top: 52px;
  left: 0;
  right: 0;
  display: flex;
  justify-content: flex-start;
  z-index: 10;
  pointer-events: auto;
  padding: 0 10px;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}

.cockpit-status-chips-bar::-webkit-scrollbar {
  display: none;
}

.mockup-chips-wrap {
  background: var(--bg-glass-strong);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-full);
  padding: 4px 6px;
  display: flex;
  gap: 5px;
  pointer-events: auto;
  flex-shrink: 0;
}

.mockup-chip {
  background: transparent;
  border: 1px solid transparent;
  color: var(--text-muted);
  font-size: 0.72rem;
  font-weight: 600;
  padding: 5px 10px;
  border-radius: var(--radius-full);
  cursor: pointer;
  transition: all 0.2s;
  flex-shrink: 0;
  white-space: nowrap;
  user-select: none;
  -webkit-user-select: none;
}

.mockup-chip:hover, .mockup-chip:active {
  background: rgba(255, 255, 255, 0.08);
  color: var(--text-main);
}

.mockup-chip.active {
  background: rgba(56, 189, 248, 0.2);
  border-color: var(--cyan);
  color: #7dd3fc;
  box-shadow: 0 0 12px rgba(56, 189, 248, 0.4);
}

/* Radar Road SVG Animation */
.road-network-svg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

.road-path-glow {
  stroke: #0284c7;
  stroke-width: 6;
  stroke-linecap: round;
  stroke-linejoin: round;
  filter: drop-shadow(0 0 8px rgba(56, 189, 248, 0.7));
}

.road-path-active {
  stroke: #38bdf8;
  stroke-width: 3.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* Destination Target Pin */
.destination-target-pin {
  position: absolute;
  top: 31%;
  left: 82%;
  display: flex;
  flex-direction: column;
  align-items: center;
  transform: translate(-50%, -50%);
  z-index: 5;
}

.target-radar-ring {
  width: 48px;
  height: 48px;
  border: 2px dashed rgba(239, 68, 68, 0.6);
  border-radius: 50%;
  position: absolute;
  animation: radar-spin 8s linear infinite;
}

@keyframes radar-spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

.target-icon {
  width: 32px;
  height: 32px;
  background: #ef4444;
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  box-shadow: 0 0 16px rgba(239, 68, 68, 0.7);
  border: 2px solid white;
}

.target-label {
  margin-top: 4px;
  background: rgba(0, 0, 0, 0.8);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  padding: 3px 8px;
  border-radius: var(--radius-full);
  font-size: 0.68rem;
  font-weight: 700;
  color: white;
  white-space: nowrap;
  border: 1px solid rgba(255, 255, 255, 0.15);
}

/* Simulated Vehicles / Friends Markers */
.mockup-vehicle {
  position: absolute;
  display: flex;
  align-items: center;
  gap: 5px;
  z-index: 6;
  transition: all 2s cubic-bezier(0.25, 1, 0.5, 1);
}

.car-bubble {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.88rem;
  font-weight: 800;
  border: 2px solid white;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.5);
  position: relative;
  color: white;
}

.car-tag {
  background: rgba(12, 18, 32, 0.9);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  padding: 3px 7px;
  border-radius: 6px;
  font-size: 0.66rem;
  font-weight: 700;
  border: 1px solid var(--border-subtle);
  white-space: nowrap;
}

.vehicle-lead {
  top: 48%;
  left: 60%;
}
.vehicle-lead .car-bubble {
  background: #2563eb;
  box-shadow: 0 0 14px rgba(37, 99, 235, 0.8);
}

.vehicle-chase {
  top: 61%;
  left: 42%;
}
.vehicle-chase .car-bubble {
  background: #8b5cf6;
  box-shadow: 0 0 14px rgba(139, 92, 246, 0.8);
}

.vehicle-cruiser {
  top: 76%;
  left: 20%;
}
.vehicle-cruiser .car-bubble {
  background: #f59e0b;
  box-shadow: 0 0 14px rgba(245, 158, 11, 0.8);
}

.vehicle-sweeper {
  top: 25%;
  left: 78%;
}
.vehicle-sweeper .car-bubble {
  background: #10b981;
  box-shadow: 0 0 14px rgba(16, 185, 129, 0.8);
}

/* Cockpit Telemetry Sidebar (Mobile-First: Sits beneath map) */
.cockpit-sidebar {
  background: var(--bg-surface-elevated);
  border-top: 1px solid var(--border-subtle);
  padding: 18px 14px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.sidebar-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--border-subtle);
  padding-bottom: 12px;
}

.sidebar-header h4 {
  font-size: 0.94rem;
  font-weight: 700;
}

.live-indicator {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 0.72rem;
  color: #34d399;
  font-weight: 700;
  text-transform: uppercase;
}

.convoy-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.convoy-card {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 10px 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  transition: all 0.2s;
}

.convoy-card:active {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(56, 189, 248, 0.3);
}

.convoy-left {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.convoy-avatar {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 0.85rem;
  color: white;
  flex-shrink: 0;
}

.convoy-info {
  display: flex;
  flex-direction: column;
  gap: 1px;
  min-width: 0;
}

.convoy-name {
  font-weight: 700;
  font-size: 0.88rem;
  display: flex;
  align-items: center;
  gap: 4px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.convoy-status {
  font-size: 0.72rem;
  color: var(--text-muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.convoy-right {
  text-align: right;
  display: flex;
  flex-direction: column;
  gap: 1px;
  flex-shrink: 0;
}

.convoy-eta {
  font-size: 0.98rem;
  font-weight: 800;
  color: var(--cyan);
}

.convoy-dist {
  font-size: 0.7rem;
  color: var(--text-dim);
}

.sidebar-summary-card {
  margin-top: 4px;
  background: linear-gradient(135deg, rgba(37, 99, 235, 0.15), rgba(56, 189, 248, 0.1));
  border: 1px solid rgba(56, 189, 248, 0.3);
  border-radius: var(--radius-md);
  padding: 12px;
}

.summary-label {
  font-size: 0.7rem;
  color: var(--text-muted);
  text-transform: uppercase;
  font-weight: 600;
}

.summary-val {
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--cyan);
  margin-top: 2px;
}

/* ============================================================
   8. HOW IT WORKS IN 3 TAPS (Mobile-First Timeline)
   ============================================================ */
.steps-grid {
  display: flex;
  flex-direction: column;
  gap: 16px;
  position: relative;
}

.step-card {
  background: var(--bg-glass-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 24px 20px;
  position: relative;
  transition: all 0.25s ease;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}

.step-card:active {
  border-color: var(--border-glow);
}

.step-number {
  position: absolute;
  top: 18px;
  right: 18px;
  font-size: 1.8rem;
  font-weight: 900;
  color: rgba(255, 255, 255, 0.08);
  font-family: monospace;
}

.step-icon-wrap {
  width: 50px;
  height: 50px;
  border-radius: 14px;
  background: linear-gradient(135deg, rgba(56, 189, 248, 0.15), rgba(37, 99, 235, 0.25));
  border: 1px solid rgba(56, 189, 248, 0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  margin-bottom: 16px;
}

.step-title {
  font-size: 1.18rem;
  margin-bottom: 8px;
}

.step-desc {
  color: var(--text-muted);
  font-size: 0.92rem;
  line-height: 1.55;
}

/* ============================================================
   9. BENTO GRID FEATURES (Mobile-First Single Column)
   ============================================================ */
.bento-grid {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.bento-card {
  background: var(--bg-glass-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 24px 20px;
  position: relative;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  transition: all 0.25s ease;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.bento-icon {
  font-size: 1.8rem;
  margin-bottom: 14px;
}

.bento-title {
  font-size: 1.25rem;
  margin-bottom: 8px;
}

.bento-desc {
  color: var(--text-muted);
  font-size: 0.92rem;
  line-height: 1.55;
  margin-bottom: 16px;
}

.bento-visual {
  margin-top: auto;
  background: rgba(0, 0, 0, 0.3);
  border-radius: var(--radius-md);
  padding: 14px;
  border: 1px solid var(--border-subtle);
  font-size: 0.82rem;
}

/* ============================================================
   10. COMPARISON MATRIX (Mobile-First Touch Swipeable Table)
   ============================================================ */
.mobile-swipe-hint {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-size: 0.78rem;
  color: var(--cyan);
  font-weight: 600;
  margin-bottom: 12px;
  background: rgba(56, 189, 248, 0.08);
  border: 1px solid rgba(56, 189, 248, 0.2);
  border-radius: var(--radius-full);
  padding: 6px 14px;
  width: fit-content;
  margin-left: auto;
  margin-right: auto;
}

.swipe-hint-icon {
  animation: swipe-bounce 1.5s infinite;
}

@keyframes swipe-bounce {
  0%, 100% { transform: translateX(0); }
  50% { transform: translateX(3px); }
}

.comparison-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-card);
}

.table-responsive {
  width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.comparison-table {
  width: 100%;
  min-width: 600px;
  border-collapse: collapse;
  text-align: left;
}

.comparison-table th,
.comparison-table td {
  padding: 14px 16px;
  border-bottom: 1px solid var(--border-subtle);
  font-size: 0.85rem;
  white-space: nowrap;
}

.comparison-table th {
  background: var(--bg-surface-elevated);
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-muted);
}

/* Sticky First Column on Mobile */
.comparison-table th:first-child,
.comparison-table td:first-child {
  position: sticky;
  left: 0;
  z-index: 2;
  background: #0f1628;
  border-right: 1px solid var(--border-subtle);
  white-space: normal;
  min-width: 130px;
  max-width: 160px;
}

.comparison-table tr:hover td {
  background: rgba(255, 255, 255, 0.02);
}

.comparison-table .highlight-col {
  background: rgba(56, 189, 248, 0.05);
  border-left: 1px solid rgba(56, 189, 248, 0.2);
  border-right: 1px solid rgba(56, 189, 248, 0.2);
  font-weight: 700;
  color: var(--text-main);
}

.comparison-table th.highlight-col {
  background: rgba(56, 189, 248, 0.12);
  color: var(--cyan);
}

.check-green {
  color: #34d399;
  font-weight: 700;
}

.cross-red {
  color: #f87171;
}

/* ============================================================
   11. HOST-PAYS PRICING (Mobile-First Stacked)
   ============================================================ */
.pricing-grid {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.pricing-card {
  background: var(--bg-glass-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-xl);
  padding: 32px 22px;
  display: flex;
  flex-direction: column;
  position: relative;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  transition: all 0.25s ease;
}

.pricing-card.featured-tier {
  order: -1; /* Free beta is featured and stays top on mobile */
  background: linear-gradient(180deg, rgba(14, 25, 49, 0.95) 0%, rgba(9, 14, 26, 0.98) 100%);
  border: 2px solid var(--cyan);
  box-shadow: 0 15px 40px -10px rgba(56, 189, 248, 0.3);
}

.pricing-badge {
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  background: linear-gradient(135deg, #0284c7, #38bdf8);
  color: white;
  padding: 4px 14px;
  border-radius: var(--radius-full);
  font-size: 0.72rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  box-shadow: 0 4px 12px rgba(56, 189, 248, 0.4);
  white-space: nowrap;
}

.tier-name {
  font-size: 1.3rem;
  margin-bottom: 6px;
}

.tier-price {
  font-size: 2.4rem;
  font-weight: 900;
  margin-bottom: 10px;
  color: var(--text-main);
  display: flex;
  align-items: baseline;
  gap: 6px;
}

.tier-price span {
  font-size: 0.92rem;
  font-weight: 500;
  color: var(--text-muted);
}

.tier-desc {
  color: var(--text-muted);
  font-size: 0.88rem;
  line-height: 1.5;
  margin-bottom: 20px;
}

.tier-features {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 28px;
  flex-grow: 1;
}

.tier-features li {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.88rem;
  color: #cbd5e1;
}

.tier-features li span.icon {
  color: var(--cyan);
  font-size: 1rem;
}

.pricing-card .btn {
  width: 100%;
}

/* ============================================================
   12. REAL-WORLD USE CASES & FAQ
   ============================================================ */
.use-cases-grid {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.faq-wrap {
  max-width: 820px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.faq-item {
  background: var(--bg-glass-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  overflow: hidden;
  transition: all 0.2s;
}

.faq-item:hover, .faq-item:active {
  border-color: rgba(255, 255, 255, 0.18);
}

.faq-question {
  width: 100%;
  padding: 16px 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  background: transparent;
  border: none;
  outline: none;
  cursor: pointer;
  text-align: left;
  font-size: 0.96rem;
  font-weight: 700;
  color: var(--text-main);
  user-select: none;
  -webkit-user-select: none;
}

.faq-chevron {
  font-size: 1rem;
  transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  color: var(--text-muted);
  flex-shrink: 0;
}

.faq-item.active .faq-chevron {
  transform: rotate(180deg);
  color: var(--cyan);
}

.faq-answer {
  padding: 0 18px 18px;
  color: var(--text-muted);
  font-size: 0.9rem;
  line-height: 1.55;
  display: none;
}

.faq-item.active .faq-answer {
  display: block;
}

/* ============================================================
   13. FINAL CTA BANNER & FOOTER
   ============================================================ */
.final-cta-section {
  padding: 40px 0 60px;
}

.cta-banner-card {
  background: radial-gradient(circle at 50% 50%, rgba(37, 99, 235, 0.3) 0%, rgba(12, 18, 32, 0.95) 80%);
  border: 1px solid var(--border-glow);
  border-radius: var(--radius-xl);
  padding: 36px 20px;
  text-align: center;
  position: relative;
  overflow: hidden;
  box-shadow: 0 20px 50px -15px rgba(56, 189, 248, 0.25);
}

.cta-banner-card h2 {
  font-size: clamp(1.6rem, 5vw, 2.8rem);
  margin-bottom: 12px;
}

.cta-banner-card p {
  color: var(--text-muted);
  font-size: 0.96rem;
  margin: 0 auto 28px;
}

.cta-banner-card .btn {
  width: 100%;
}

.landing-footer {
  border-top: 1px solid var(--border-subtle);
  background: var(--bg-surface);
  padding: 40px 0 24px;
}

.footer-top {
  display: flex;
  flex-direction: column;
  gap: 28px;
  margin-bottom: 32px;
}

.footer-info {
  max-width: 380px;
}

.footer-info p {
  color: var(--text-dim);
  font-size: 0.86rem;
  margin-top: 10px;
  line-height: 1.5;
}

.footer-links-col {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-col-title {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-muted);
  font-weight: 700;
  margin-bottom: 2px;
}

.footer-links-col a {
  color: var(--text-dim);
  text-decoration: none;
  font-size: 0.88rem;
  transition: color 0.2s;
  padding: 4px 0;
}

.footer-links-col a:hover {
  color: var(--cyan);
}

.footer-bottom {
  border-top: 1px solid var(--border-subtle);
  padding-top: 20px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  color: var(--text-dim);
  font-size: 0.78rem;
  text-align: center;
}

.footer-bottom a {
  color: var(--text-muted);
  text-decoration: none;
}

/* ============================================================
   14. WAITLIST MODAL (Mobile-Safe, No Zoom Glitch)
   ============================================================ */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.8);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease;
}

.modal-overlay.active {
  opacity: 1;
  pointer-events: auto;
}

.modal-box {
  background: var(--bg-surface-elevated);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-xl);
  padding: 28px 20px;
  width: 100%;
  max-width: 440px;
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.85);
  position: relative;
  transform: translateY(20px);
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  max-height: 90vh;
  overflow-y: auto;
}

.modal-overlay.active .modal-box {
  transform: translateY(0);
}

.modal-close-btn {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 36px;
  height: 36px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--border-subtle);
  border-radius: 50%;
  color: var(--text-dim);
  font-size: 1.1rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}

.modal-close-btn:hover {
  color: var(--text-main);
}

/* Ensure inputs are at least 16px on mobile to avoid iOS Safari zoom! */
#waitlist-email {
  font-size: 16px !important;
}

/* ============================================================
   15. PROGRESSIVE ENHANCEMENT: TABLET & DESKTOP BREAKPOINTS
   ============================================================ */

/* --- Breakpoint: Small Tablets & Landscape Phones (min-width: 640px) --- */
@media (min-width: 640px) {
  .container {
    padding: 0 24px;
  }

  .section-wrapper {
    padding: 64px 0;
  }

  .hero-cta-group {
    flex-direction: row;
    justify-content: center;
    width: auto;
  }

  .hero-cta-group .btn {
    width: auto;
    padding: 14px 28px;
  }

  .hero-badge-row {
    grid-template-columns: repeat(4, 1fr);
    font-size: 0.82rem;
  }

  .use-cases-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
  }

  .footer-top {
    flex-direction: row;
    justify-content: space-between;
    flex-wrap: wrap;
  }

  .footer-bottom {
    flex-direction: row;
    justify-content: space-between;
    text-align: left;
  }

  .cta-banner-card .btn {
    width: auto;
    padding: 16px 36px;
  }
}

/* --- Breakpoint: Tablets & Small Laptops (min-width: 768px) --- */
@media (min-width: 768px) {
  /* Remove mobile bottom conversion bar space on desktop */
  body {
    padding-bottom: 0;
  }

  .section-wrapper {
    padding: 76px 0;
  }

  /* Switch Header to Desktop Mode */
  .nav-container {
    height: 74px;
  }

  .logo-pin {
    width: 40px;
    height: 40px;
  }

  .logo-text {
    font-size: 1.25rem;
  }

  .nav-links {
    display: flex;
    align-items: center;
    gap: 28px;
    list-style: none;
  }

  .nav-links a {
    color: var(--text-muted);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.92rem;
    transition: color 0.2s;
  }

  .nav-links a:hover {
    color: var(--cyan);
  }

  .nav-actions {
    display: flex;
    align-items: center;
    gap: 14px;
  }

  .nav-cta-btn {
    padding: 10px 20px;
    font-size: 0.9rem;
  }

  /* Hide Mobile Navigation Drawer, Toggles & Bottom Bar on Desktop */
  .nav-mobile-actions,
  .mobile-menu-toggle,
  .mobile-nav-overlay,
  .mobile-sticky-bottom-bar,
  .cockpit-mobile-toggle-bar,
  .mobile-swipe-hint {
    display: none !important;
  }

  /* Steps Grid in 3 Columns */
  .steps-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
  }

  .step-card {
    padding: 32px 24px;
  }

  .step-icon-wrap {
    width: 58px;
    height: 58px;
    font-size: 1.7rem;
    margin-bottom: 20px;
  }

  .comparison-table th,
  .comparison-table td {
    padding: 16px 22px;
    font-size: 0.92rem;
  }
}

/* --- Breakpoint: Desktops & Large Displays (min-width: 1024px) --- */
@media (min-width: 1024px) {
  .section-wrapper {
    padding: 90px 0;
  }

  /* Cockpit Dual-Pane Layout */
  .cockpit-mockup {
    display: grid;
    grid-template-columns: 1fr 380px;
    min-height: 520px;
  }

  .cockpit-map-viewport {
    min-height: 520px;
    height: auto;
  }

  .cockpit-topbar {
    top: 16px;
    left: 16px;
    right: 16px;
  }

  .cockpit-meta-pill {
    padding: 8px 16px;
    font-size: 0.88rem;
  }

  .cockpit-status-chips-bar {
    top: 72px;
    left: 16px;
    right: 16px;
    justify-content: center;
    padding: 0;
  }

  .mockup-chip {
    font-size: 0.78rem;
    padding: 6px 12px;
  }

  .car-bubble {
    width: 36px;
    height: 36px;
    font-size: 1rem;
  }

  .car-tag {
    font-size: 0.74rem;
    padding: 4px 9px;
  }

  .cockpit-sidebar {
    border-top: none;
    border-left: 1px solid var(--border-subtle);
    padding: 24px;
    gap: 18px;
  }

  .sidebar-header h4 {
    font-size: 1rem;
  }

  /* Bento 12-Column Grid on Desktop */
  .bento-grid {
    display: grid;
    grid-template-columns: repeat(12, 1fr);
    gap: 24px;
  }

  .bento-card {
    padding: 34px;
  }

  .col-span-8 { grid-column: span 8; }
  .col-span-4 { grid-column: span 4; }
  .col-span-6 { grid-column: span 6; }

  /* Pricing 3-Column Grid on Desktop */
  .pricing-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 28px;
    align-items: stretch;
  }

  .pricing-card {
    padding: 40px 30px;
  }

  .pricing-card.featured-tier {
    order: 0;
    transform: scale(1.03);
  }

  .pricing-card.featured-tier:hover {
    transform: scale(1.05) translateY(-4px);
  }

  .pricing-card:hover {
    transform: translateY(-6px);
  }

  /* Use Cases 4-Column Grid */
  .use-cases-grid {
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
  }

  .cta-banner-card {
    padding: 64px 32px;
  }
}
