/* ============================================
   INYALLA - Design System
   ============================================ */

:root {
  --navy-deep: #07111F;
  --navy-midnight: #0D1B2A;
  --orange: #FF6B35;
  --amber: #FFB84D;
  --green: #32D583;
  --sky: #55B7FF;
  --white: #F8FAFC;
  --bg-light: #F4F7F9;
  --text-dark: #0B1220;
  --muted: #64748B;

  --font-display: 'Sora', system-ui, sans-serif;
  --font-body: 'Inter', system-ui, sans-serif;
  --font-mono: 'IBM Plex Mono', monospace;

  --header-h: 72px;
  --radius: 12px;
  --radius-lg: 20px;
  --shadow: 0 8px 32px rgba(7, 17, 31, 0.12);
  --shadow-lg: 0 24px 64px rgba(7, 17, 31, 0.2);
  --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

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

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

body {
  font-family: var(--font-body);
  color: var(--text-dark);
  background: var(--white);
  line-height: 1.6;
  overflow-x: hidden;
}

body.preloading { overflow: hidden; }
body.move-mode .section { transition: transform 0.5s ease; }
body.move-mode .step-card:hover,
body.move-mode .ride-card:hover,
body.move-mode .story-card:hover { transform: translateY(-8px); }
body.move-mode .flow-route__path,
body.move-mode .why-route__path,
body.move-mode .global-route path { animation: routePulse 2s ease infinite; }
body.move-mode .journey-node { animation: nodePulse 2s ease infinite; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

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

.mono { font-family: var(--font-mono); font-size: 0.75rem; letter-spacing: 0.08em; text-transform: uppercase; }

.container {
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ============================================
   Buttons
   ============================================ */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.875rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  text-decoration: none;
  border: none;
  border-radius: 999px;
  cursor: pointer;
  transition: var(--transition);
  white-space: nowrap;
}

.btn--primary {
  background: var(--orange);
  color: var(--white);
  padding: 14px 28px;
}
.btn--primary:hover { background: #e55a28; transform: translateY(-2px); box-shadow: 0 8px 24px rgba(255, 107, 53, 0.35); }

.btn--outline {
  background: transparent;
  color: var(--text-dark);
  border: 2px solid var(--text-dark);
  padding: 12px 24px;
}
.btn--outline:hover { background: var(--text-dark); color: var(--white); }

.btn--ghost {
  background: transparent;
  color: var(--white);
  border: 2px solid rgba(248, 250, 252, 0.3);
  padding: 12px 24px;
}
.btn--ghost:hover { border-color: var(--white); background: rgba(255,255,255,0.08); }

.btn--sm { padding: 10px 18px; font-size: 0.75rem; }
.btn--lg { padding: 18px 36px; font-size: 1rem; }
.btn--full { width: 100%; }

/* ============================================
   Preloader
   ============================================ */

.preloader {
  position: fixed;
  inset: 0;
  z-index: 10000;
  background: var(--navy-deep);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 0.6s ease, visibility 0.6s ease;
}
.preloader.hidden { opacity: 0; visibility: hidden; pointer-events: none; }

.preloader__inner { text-align: center; color: var(--white); }

.preloader__route { width: 48px; height: 64px; margin: 0 auto 16px; }
.preloader__route .route-dot--start { fill: var(--orange); opacity: 0; animation: dotAppear 0.3s 0.2s forwards; }
.preloader__route .route-path {
  stroke-dasharray: 120;
  stroke-dashoffset: 120;
  animation: drawRoute 1s 0.5s forwards;
}
.preloader__route .route-dot--end { fill: var(--amber); opacity: 0; animation: dotAppear 0.3s 1.2s forwards; }

.preloader__brand {
  display: block;
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 800;
  letter-spacing: 0.2em;
  opacity: 0;
  animation: fadeUp 0.5s 1.3s forwards;
}
.preloader__tag {
  display: block;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.15em;
  color: var(--muted);
  margin-top: 4px;
  opacity: 0;
  animation: fadeUp 0.5s 1.5s forwards;
}

.preloader__status { margin-top: 48px; opacity: 0; animation: fadeUp 0.5s 1.8s forwards; }
.preloader__locating { font-family: var(--font-mono); font-size: 0.75rem; color: var(--sky); margin-bottom: 16px; }
.preloader__checks { list-style: none; text-align: left; display: inline-block; }
.preloader__checks li {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: var(--muted);
  margin: 6px 0;
  display: flex;
  gap: 8px;
}
.preloader__checks .dots { color: rgba(100, 116, 139, 0.4); }
.status-ready { color: var(--green); }
.status-active { color: var(--amber); }
.status-online { color: var(--sky); }
.preloader__go {
  margin-top: 32px;
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--orange);
  opacity: 0;
  animation: fadeUp 0.5s 3s forwards;
}

/* ============================================
   Custom Cursor
   ============================================ */

.custom-cursor {
  position: fixed;
  pointer-events: none;
  z-index: 9999;
  display: none;
  transform: translate(-50%, -50%);
}
@media (hover: hover) and (pointer: fine) {
  body:not(.touch) .custom-cursor { display: block; }
  body:not(.touch) { cursor: none; }
  body:not(.touch) a, body:not(.touch) button { cursor: none; }
}

.custom-cursor__dot {
  display: block;
  width: 12px; height: 12px;
  border: 2px solid var(--orange);
  border-radius: 50%;
  background: rgba(255, 107, 53, 0.2);
  transition: transform 0.15s ease;
}
.custom-cursor__label {
  position: absolute;
  top: 16px; left: 50%;
  transform: translateX(-50%);
  font-family: var(--font-mono);
  font-size: 0.6rem;
  color: var(--orange);
  white-space: nowrap;
  opacity: 0;
  transition: opacity 0.15s;
}
.custom-cursor.has-label .custom-cursor__dot { transform: scale(1.5); }
.custom-cursor.has-label .custom-cursor__label { opacity: 1; }

/* ============================================
   Global Route
   ============================================ */

.global-route {
  position: fixed;
  inset: 0;
  width: 100%; height: 100%;
  pointer-events: none;
  z-index: 1;
}

/* ============================================
   FABs
   ============================================ */

.city-pulse-btn, .move-mode-toggle {
  position: fixed;
  z-index: 900;
  font-family: var(--font-mono);
  font-size: 0.65rem;
  letter-spacing: 0.1em;
  background: var(--navy-deep);
  color: var(--white);
  border: 1px solid rgba(255,255,255,0.15);
  border-radius: 999px;
  padding: 10px 16px;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 8px;
  transition: var(--transition);
}
.city-pulse-btn { bottom: 24px; left: 24px; }
.move-mode-toggle { bottom: 24px; right: 24px; }
.city-pulse-btn:hover, .move-mode-toggle:hover { border-color: var(--orange); }
.move-mode-toggle[aria-pressed="true"] { background: var(--orange); border-color: var(--orange); }

.pulse-dot {
  width: 8px; height: 8px;
  background: var(--green);
  border-radius: 50%;
  animation: pulse 2s ease infinite;
}

/* ============================================
   Header
   ============================================ */

.header {
  position: fixed;
  top: 16px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 1000;
  width: calc(100% - 48px);
  max-width: 1280px;
  background: rgba(7, 17, 31, 0.85);
  backdrop-filter: blur(20px);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: var(--radius-lg);
  transition: var(--transition);
}
.header.scrolled { top: 8px; box-shadow: var(--shadow-lg); }

.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--header-h);
  padding: 0 24px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--white);
}
.logo__icon { width: 28px; height: 36px; }
.logo__text {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.1rem;
  letter-spacing: 0.15em;
}

.nav__list {
  display: flex;
  list-style: none;
  gap: 28px;
}
.nav__list a {
  color: rgba(248, 250, 252, 0.75);
  text-decoration: none;
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  transition: color var(--transition);
}
.nav__list a:hover { color: var(--white); }

.header__actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.lang-selector {
  background: none;
  border: 1px solid rgba(255,255,255,0.2);
  color: var(--white);
  font-family: var(--font-mono);
  font-size: 0.65rem;
  padding: 6px 10px;
  border-radius: 6px;
  cursor: pointer;
}

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}
.nav-toggle span {
  display: block;
  width: 22px; height: 2px;
  background: var(--white);
  transition: var(--transition);
}

/* ============================================
   Hero
   ============================================ */

.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: calc(var(--header-h) + 48px) 0 80px;
  background: var(--navy-deep);
  color: var(--white);
  overflow: hidden;
}

.hero__bg {
  position: absolute;
  inset: 0;
}
#hero-canvas {
  width: 100%; height: 100%;
  display: block;
}
.hero__gradient {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(7,17,31,0.7) 0%, rgba(13,27,42,0.5) 50%, rgba(7,17,31,0.85) 100%);
}

.hero__content {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
}

.hero__headline {
  font-family: var(--font-display);
  font-size: clamp(3rem, 8vw, 6rem);
  font-weight: 800;
  line-height: 0.95;
  letter-spacing: -0.02em;
}
.hero__headline span { display: block; }
.hero__headline span:last-child { color: var(--orange); }

.hero__support {
  font-size: 1.125rem;
  color: rgba(248, 250, 252, 0.75);
  margin: 24px 0 32px;
  max-width: 440px;
}

.hero__ctas { display: flex; gap: 16px; flex-wrap: wrap; }

.hero__visual {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.hero-map {
  position: relative;
  background: rgba(13, 27, 42, 0.8);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: var(--radius-lg);
  overflow: hidden;
  aspect-ratio: 16/10;
}
#hero-map-canvas { width: 100%; height: 100%; display: block; }

.hero-map__labels {
  position: absolute;
  inset: 0;
  pointer-events: none;
}
.map-label {
  position: absolute;
  font-family: var(--font-mono);
  font-size: 0.6rem;
  letter-spacing: 0.08em;
  display: flex;
  align-items: center;
  gap: 6px;
  color: var(--white);
}
.map-label--you { top: 20%; left: 15%; }
.map-label--driver { top: 45%; left: 40%; }
.map-label--dest { bottom: 20%; right: 15%; }

.map-dot {
  width: 8px; height: 8px;
  background: var(--sky);
  border-radius: 50%;
  box-shadow: 0 0 12px var(--sky);
}
.map-dot--orange { background: var(--orange); box-shadow: 0 0 12px var(--orange); }
.map-dot--amber { background: var(--amber); box-shadow: 0 0 12px var(--amber); }

.hero-map__eta {
  position: absolute;
  bottom: 16px; left: 16px;
  background: rgba(7, 17, 31, 0.9);
  padding: 10px 16px;
  border-radius: 8px;
  border: 1px solid rgba(255,255,255,0.1);
}
.hero-map__eta strong { display: block; font-size: 1.25rem; font-family: var(--font-display); }

/* Ride Widget */
.ride-widget {
  background: var(--white);
  color: var(--text-dark);
  border-radius: var(--radius-lg);
  padding: 24px;
  box-shadow: var(--shadow-lg);
}

.ride-widget__field { margin-bottom: 16px; }
.ride-widget__field label {
  display: block;
  font-family: var(--font-mono);
  font-size: 0.65rem;
  letter-spacing: 0.1em;
  color: var(--muted);
  margin-bottom: 6px;
}
.ride-widget__field input {
  width: 100%;
  padding: 14px 16px;
  border: 2px solid var(--bg-light);
  border-radius: var(--radius);
  font-family: var(--font-body);
  font-size: 1rem;
  transition: border-color var(--transition);
}
.ride-widget__field input:focus {
  outline: none;
  border-color: var(--orange);
}

.ride-options { display: flex; flex-direction: column; gap: 8px; margin: 20px 0; }

.ride-option {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 12px;
  padding: 14px 16px;
  border: 2px solid var(--bg-light);
  border-radius: var(--radius);
  background: var(--white);
  cursor: pointer;
  text-align: left;
  transition: var(--transition);
}
.ride-option:hover, .ride-option--active {
  border-color: var(--orange);
  background: rgba(255, 107, 53, 0.04);
}
.ride-option__name { font-weight: 600; font-size: 0.875rem; }
.ride-option__meta { font-family: var(--font-mono); font-size: 0.65rem; color: var(--muted); grid-column: 2; }
.ride-widget__note { margin-top: 12px; color: var(--muted); text-align: center; }

/* ============================================
   Sections - General
   ============================================ */

.section { padding: 100px 0; position: relative; }
.section--light { background: var(--bg-light); }
.section--dark { background: var(--navy-deep); color: var(--white); }
.section--problem { background: var(--white); text-align: center; }

.section__title {
  font-family: var(--font-display);
  font-size: 0.875rem;
  letter-spacing: 0.2em;
  color: var(--muted);
  margin-bottom: 48px;
}
.section--dark .section__title { color: rgba(248,250,252,0.5); }
.section__title--light { color: rgba(248,250,252,0.6); }

.section__headline {
  font-family: var(--font-display);
  font-size: clamp(2rem, 5vw, 3.5rem);
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: -0.02em;
}
.section__headline--large { font-size: clamp(2.5rem, 6vw, 4.5rem); margin-bottom: 48px; }
.section__headline--mega { font-size: clamp(3rem, 8vw, 5.5rem); }
.section__headline--light { color: var(--white); }

.section__support {
  font-size: 1.125rem;
  color: var(--muted);
  margin-top: 32px;
  max-width: 560px;
}
.section__support--light { color: rgba(248,250,252,0.7); }
.section__note { margin-top: 24px; color: var(--muted); font-size: 0.75rem; }

.demo-badge {
  display: inline-block;
  background: rgba(255, 107, 53, 0.15);
  color: var(--orange);
  padding: 4px 10px;
  border-radius: 4px;
  margin-bottom: 24px;
}

/* Journey Nodes */
.journey-nodes {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
  margin-bottom: 32px;
  position: relative;
  z-index: 2;
}
.journey-node {
  padding: 10px 20px;
  background: var(--white);
  border: 2px solid var(--bg-light);
  border-radius: 999px;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.06em;
  transition: var(--transition);
  cursor: default;
}
.journey-node:hover { border-color: var(--orange); color: var(--orange); }
.journey-canvas {
  width: 100%;
  height: 200px;
  display: block;
  margin: -60px 0 32px;
}

/* Problem Grid */
.problem-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 16px;
  margin-bottom: 64px;
}
.problem-item {
  padding: 16px 28px;
  border: 2px dashed var(--muted);
  border-radius: var(--radius);
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--muted);
  opacity: 0.7;
}

/* Flow Steps */
.flow-steps {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 8px;
  margin: 48px 0 24px;
}
.flow-step {
  padding: 16px 24px;
  background: rgba(255, 107, 53, 0.12);
  border: 1px solid rgba(255, 107, 53, 0.3);
  border-radius: var(--radius);
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.06em;
}
.flow-arrow { color: var(--orange); font-size: 1.25rem; }
.flow-route { width: 100%; max-width: 800px; margin: 0 auto; display: block; }
.flow-route__path {
  stroke-dasharray: 800;
  stroke-dashoffset: 800;
  transition: stroke-dashoffset 2s ease;
}
.flow-route.visible .flow-route__path { stroke-dashoffset: 0; }

/* Steps Grid */
.steps-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}
.step-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 32px 24px;
  transition: var(--transition);
}
.step-card:hover { box-shadow: var(--shadow); transform: translateY(-4px); }
.step-card__num { color: var(--orange); display: block; margin-bottom: 16px; }
.step-card h3 {
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 24px;
}
.step-card__route {
  height: 4px;
  background: linear-gradient(90deg, var(--orange), var(--amber));
  border-radius: 2px;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.8s ease;
}
.step-card.visible .step-card__route { transform: scaleX(1); }

/* Full Map Section */
.section--map-full {
  padding: 0;
  position: relative;
  min-height: 500px;
  background: var(--navy-deep);
}
#city-map-canvas {
  width: 100%;
  height: 500px;
  display: block;
}
.map-overlay {
  position: absolute;
  top: 48px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
}

/* Ride Cards */
.ride-cards {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}
.ride-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 24px;
  transition: var(--transition);
}
.ride-card:hover { box-shadow: var(--shadow); transform: translateY(-4px); }
.ride-card__visual {
  height: 100px;
  border-radius: var(--radius);
  margin-bottom: 20px;
  background: linear-gradient(135deg, var(--navy-midnight), var(--navy-deep));
}
.ride-card__visual--go::after { content: '🚗'; font-size: 2rem; display: flex; align-items: center; justify-content: center; height: 100%; }
.ride-card__visual--plus { background: linear-gradient(135deg, #1a2744, var(--navy-deep)); }
.ride-card__visual--plus::after { content: '✨'; font-size: 2rem; display: flex; align-items: center; justify-content: center; height: 100%; }
.ride-card__visual--xl::after { content: '🚙'; font-size: 2rem; display: flex; align-items: center; justify-content: center; height: 100%; }
.ride-card__visual--business::after { content: '💼'; font-size: 2rem; display: flex; align-items: center; justify-content: center; height: 100%; }
.ride-card h3 { font-family: var(--font-display); font-size: 1rem; margin-bottom: 8px; }
.ride-card p { color: var(--muted); font-size: 0.875rem; margin-bottom: 12px; }
.ride-card__cap { display: block; color: var(--muted); margin-bottom: 16px; }

/* Journey Timeline */
.section--experience { background: var(--white); text-align: center; }
.journey-timeline { margin-top: 48px; }
.journey-timeline__track {
  position: relative;
  height: 4px;
  background: var(--bg-light);
  border-radius: 2px;
  max-width: 900px;
  margin: 0 auto 24px;
}
.journey-timeline__vehicle {
  position: absolute;
  top: 50%;
  left: 0;
  transform: translate(-50%, -50%);
  width: 24px; height: 24px;
  background: var(--orange);
  border-radius: 50%;
  box-shadow: 0 0 16px rgba(255, 107, 53, 0.5);
  transition: left 0.1s linear;
}
.journey-timeline__vehicle::after {
  content: '🚗';
  position: absolute;
  top: -28px; left: 50%;
  transform: translateX(-50%);
  font-size: 1rem;
}
.journey-timeline__steps {
  display: flex;
  justify-content: space-between;
  max-width: 900px;
  margin: 0 auto;
  font-family: var(--font-mono);
  font-size: 0.6rem;
  letter-spacing: 0.04em;
  color: var(--muted);
}

/* Driver Section */
.drive-section {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
}
.drive-section p { color: rgba(248,250,252,0.7); margin: 24px 0 32px; }

.driver-dashboard {
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: var(--radius-lg);
  padding: 24px;
}
.driver-dashboard__header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 24px;
  color: rgba(248,250,252,0.6);
}
.driver-dashboard__grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}
.dash-panel {
  background: rgba(255,255,255,0.04);
  padding: 20px;
  border-radius: var(--radius);
}
.dash-panel__label { display: block; font-family: var(--font-mono); font-size: 0.6rem; color: var(--muted); margin-bottom: 8px; }
.dash-panel__value { font-family: var(--font-display); font-size: 1.5rem; font-weight: 700; }
.driver-dashboard__note { margin-top: 16px; color: var(--muted); text-align: center; }

.status-badge {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  padding: 4px 10px;
  border-radius: 999px;
}
.status-badge--online { background: rgba(50, 213, 131, 0.15); color: var(--green); }
.status-badge--active { background: rgba(255, 107, 53, 0.15); color: var(--orange); }

/* Driver Flow */
.driver-flow {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: center;
  margin-bottom: 32px;
}
.driver-flow__step {
  padding: 10px 16px;
  background: var(--white);
  border: 2px solid var(--bg-light);
  border-radius: var(--radius);
  font-family: var(--font-mono);
  font-size: 0.65rem;
  cursor: pointer;
  transition: var(--transition);
}
.driver-flow__step--active, .driver-flow__step:hover {
  border-color: var(--orange);
  background: rgba(255, 107, 53, 0.06);
}
.driver-flow__arrow { color: var(--orange); }

.driver-ui {
  max-width: 400px;
  margin: 0 auto;
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 32px;
  box-shadow: var(--shadow);
}
.driver-ui__screen { display: none; text-align: center; }
.driver-ui__screen--active { display: block; }
.driver-ui__status { font-weight: 600; margin-bottom: 24px; }
.driver-ui__ride-info {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 24px;
  font-size: 0.875rem;
  color: var(--muted);
}

/* Network */
.section--network { background: var(--navy-midnight); padding: 80px 0; }
#network-canvas { width: 100%; height: 400px; display: block; border-radius: var(--radius-lg); }
.network-legend {
  display: flex;
  gap: 24px;
  justify-content: center;
  margin-top: 16px;
  color: rgba(248,250,252,0.7);
  font-size: 0.875rem;
}
.legend-dot {
  display: inline-block;
  width: 10px; height: 10px;
  border-radius: 50%;
  margin-right: 6px;
}
.legend-dot--driver { background: var(--orange); }
.legend-dot--rider { background: var(--white); }
.legend-dot--route { background: var(--amber); }
.legend-dot--dest { background: var(--sky); }

/* Safety */
.safety-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin: 48px 0 24px;
}
.safety-item {
  background: var(--white);
  padding: 32px 24px;
  border-radius: var(--radius-lg);
  text-align: center;
  transition: var(--transition);
}
.safety-item:hover { box-shadow: var(--shadow); transform: translateY(-4px); }
.safety-item__icon { font-size: 2rem; display: block; margin-bottom: 16px; }
.safety-item h3 { font-family: var(--font-mono); font-size: 0.75rem; letter-spacing: 0.06em; }

.safety-ui {
  max-width: 600px;
  margin: 0 auto;
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: var(--radius-lg);
  padding: 32px;
}
.safety-ui__header { margin-bottom: 24px; }
.safety-ui__grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
  margin-bottom: 24px;
}
.safety-ui__panel {
  background: rgba(255,255,255,0.04);
  padding: 16px;
  border-radius: var(--radius);
}
.safety-ui__panel .mono { display: block; color: var(--muted); margin-bottom: 4px; }
.safety-ui__actions { display: flex; gap: 12px; }

/* Trust */
.section--trust {
  background: linear-gradient(180deg, var(--bg-light) 0%, var(--white) 100%);
  text-align: center;
}
.trust-pillars {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 16px;
  margin-top: 48px;
}
.trust-pillar {
  padding: 20px 32px;
  background: var(--white);
  border-radius: var(--radius-lg);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.875rem;
  letter-spacing: 0.06em;
  box-shadow: var(--shadow);
}

/* Smart Routes */
.routes-demo { margin-top: 48px; }
#routes-canvas { width: 100%; height: 300px; display: block; border-radius: var(--radius-lg); background: var(--navy-deep); }
.routes-legend, .routes-metrics {
  display: flex;
  gap: 24px;
  justify-content: center;
  margin-top: 16px;
  font-family: var(--font-mono);
  font-size: 0.7rem;
}
.route-option--a { color: var(--muted); }
.route-option--b { color: var(--sky); }
.route-option--c { color: var(--amber); }
.route-option--recommended { color: var(--orange); font-weight: 600; }

/* Intelligence */
.intel-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-bottom: 32px;
}
.intel-item {
  padding: 20px;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: var(--radius);
  font-family: var(--font-mono);
  font-size: 0.7rem;
  text-align: center;
}
.intel-canvas { width: 100%; height: 200px; display: block; }

/* Business */
.business-section__text .feature-list {
  list-style: none;
  margin: 32px 0;
}
.business-section__text .feature-list li {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  padding: 12px 0;
  border-bottom: 1px solid var(--bg-light);
}

.biz-dashboard {
  background: rgba(255,255,255,0.05);
  border-radius: var(--radius-lg);
  padding: 24px;
  margin-top: 16px;
}
.biz-dashboard__nav {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 24px;
}
.biz-dashboard__nav button {
  background: none;
  border: 1px solid rgba(255,255,255,0.15);
  color: rgba(248,250,252,0.6);
  font-family: var(--font-mono);
  font-size: 0.65rem;
  padding: 8px 14px;
  border-radius: 6px;
  cursor: pointer;
}
.biz-dashboard__nav button.active { background: var(--orange); border-color: var(--orange); color: var(--white); }
.biz-dashboard__content { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.biz-panel {
  background: rgba(255,255,255,0.04);
  padding: 20px;
  border-radius: var(--radius);
}
.biz-panel .mono { display: block; color: var(--muted); margin-bottom: 8px; }
.biz-panel strong { font-family: var(--font-display); font-size: 1.25rem; }

/* Fleet */
.fleet-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  justify-content: center;
  margin-top: 48px;
}
.fleet-item {
  padding: 24px 40px;
  background: var(--white);
  border: 2px solid var(--bg-light);
  border-radius: var(--radius-lg);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.875rem;
  transition: var(--transition);
}
.fleet-item:hover { border-color: var(--orange); color: var(--orange); }

.section--partners {
  background: var(--navy-deep);
  color: var(--white);
  text-align: center;
}

/* Stories */
.stories-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.story-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 32px;
  transition: var(--transition);
}
.story-card:hover { box-shadow: var(--shadow); }
.story-card__badge { color: var(--muted); display: block; margin-bottom: 16px; }
.story-card h3 { font-family: var(--font-display); font-size: 1.125rem; margin-bottom: 12px; }
.story-card p { color: var(--muted); font-size: 0.875rem; }

.section--rider-stories {
  background: var(--navy-midnight);
  color: var(--white);
  text-align: center;
}
.rider-stories {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 16px;
  margin-top: 48px;
}
.rider-story {
  aspect-ratio: 3/4;
  background: linear-gradient(180deg, rgba(255,107,53,0.2) 0%, rgba(7,17,31,0.8) 100%);
  border-radius: var(--radius-lg);
  display: flex;
  align-items: flex-end;
  padding: 20px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.75rem;
  letter-spacing: 0.04em;
  transition: var(--transition);
}
.rider-story:hover { transform: scale(1.03); }

.city-points { display: flex; gap: 12px; margin: 24px 0; }
.city-point {
  padding: 12px 24px;
  background: var(--white);
  border: 2px solid var(--orange);
  border-radius: 999px;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  cursor: pointer;
  transition: var(--transition);
}
.city-point:hover { background: var(--orange); color: var(--white); }
.city-detail { margin-top: 24px; padding: 24px; background: var(--white); border-radius: var(--radius-lg); }
.city-detail__stats { display: flex; gap: 24px; margin-top: 16px; font-family: var(--font-mono); font-size: 0.7rem; color: var(--muted); }

/* Lab */
.lab-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.lab-item {
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: var(--radius-lg);
  padding: 24px;
  transition: var(--transition);
}
.lab-item:hover { border-color: var(--orange); }
.lab-item .mono { color: var(--orange); display: block; margin-bottom: 8px; }
.lab-item h3 { font-family: var(--font-display); font-size: 0.875rem; }

.section--future {
  background: var(--bg-light);
  text-align: center;
}
.future-network {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  margin-top: 48px;
}
.future-network span {
  padding: 12px 20px;
  background: var(--white);
  border-radius: 999px;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  box-shadow: var(--shadow);
}

/* EV */
.section--ev {
  background: linear-gradient(180deg, #0a2e1a 0%, var(--navy-deep) 100%);
  color: var(--white);
  text-align: center;
}
.ev-visual {
  display: flex;
  justify-content: center;
  gap: 48px;
  margin-top: 48px;
  align-items: center;
}
.ev-car {
  width: 120px; height: 60px;
  background: linear-gradient(90deg, var(--green), #1a9e5c);
  border-radius: 12px 12px 4px 4px;
  position: relative;
}
.ev-car::before, .ev-car::after {
  content: '';
  position: absolute;
  bottom: -8px;
  width: 24px; height: 24px;
  background: var(--text-dark);
  border-radius: 50%;
}
.ev-car::before { left: 16px; }
.ev-car::after { right: 16px; }
.ev-charger {
  width: 40px; height: 80px;
  background: var(--green);
  border-radius: 8px;
  opacity: 0.8;
}

.ev-dash {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 16px;
  margin-top: 24px;
}
.ev-dash__panel {
  background: rgba(255,255,255,0.04);
  padding: 20px;
  border-radius: var(--radius);
  text-align: center;
}
.ev-dash__panel .mono { display: block; color: var(--muted); margin-bottom: 8px; }

/* API */
.api-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin: 32px 0;
}
.api-grid span {
  padding: 10px 18px;
  background: var(--white);
  border: 2px solid var(--bg-light);
  border-radius: var(--radius);
  font-family: var(--font-mono);
  font-size: 0.7rem;
}

.dev-console {
  background: rgba(255,255,255,0.05);
  border-radius: var(--radius-lg);
  padding: 24px;
  margin-top: 16px;
}
.dev-console__nav {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 16px;
}
.dev-console__nav button {
  background: none;
  border: 1px solid rgba(255,255,255,0.15);
  color: rgba(248,250,252,0.6);
  font-family: var(--font-mono);
  font-size: 0.65rem;
  padding: 8px 14px;
  border-radius: 6px;
  cursor: pointer;
}
.dev-console__nav button.active { background: var(--orange); border-color: var(--orange); color: var(--white); }
.dev-console__status { color: rgba(248,250,252,0.6); font-size: 0.875rem; }

/* Graph */
.section--graph {
  position: relative;
  min-height: 600px;
  background: var(--navy-deep);
  padding: 0;
}
#graph-canvas { width: 100%; height: 600px; display: block; }
.graph-center {
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 800;
  color: var(--orange);
  letter-spacing: 0.2em;
  pointer-events: none;
}

/* Method */
.method-steps {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 24px;
}
.method-steps article {
  background: var(--white);
  padding: 24px;
  border-radius: var(--radius-lg);
  transition: var(--transition);
}
.method-steps article:hover { box-shadow: var(--shadow); }
.method-steps .mono { color: var(--orange); display: block; margin-bottom: 12px; }
.method-steps h3 { font-family: var(--font-display); font-size: 1rem; margin-bottom: 8px; }
.method-steps p { color: var(--muted); font-size: 0.875rem; }

/* Why Inyalla */
.section--why {
  background: var(--navy-deep);
  color: var(--white);
  padding: 120px 0;
  overflow: hidden;
}
.why-words {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 32px;
  position: relative;
  z-index: 2;
}
.why-word {
  font-family: var(--font-display);
  font-size: clamp(2rem, 5vw, 4rem);
  font-weight: 800;
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.why-word.visible { opacity: 1; transform: translateY(0); }
.why-route {
  position: absolute;
  bottom: 40px;
  left: 0;
  width: 100%;
  opacity: 0.4;
}
.why-route__path {
  stroke-dasharray: 1200;
  stroke-dashoffset: 1200;
  transition: stroke-dashoffset 3s ease;
}
.why-route.visible .why-route__path { stroke-dashoffset: 0; }

/* Journal */
.journal-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 24px;
}
.journal-card {
  background: var(--white);
  padding: 32px;
  border-radius: var(--radius-lg);
  border-left: 4px solid var(--orange);
  transition: var(--transition);
  cursor: pointer;
}
.journal-card:hover { box-shadow: var(--shadow); transform: translateX(4px); }
.journal-card h3 {
  font-family: var(--font-display);
  font-size: 0.875rem;
  font-weight: 700;
  line-height: 1.4;
}

/* Careers */
.careers-list {
  list-style: none;
  columns: 2;
  margin: 32px 0;
}
.careers-list li {
  padding: 12px 0;
  border-bottom: 1px solid rgba(255,255,255,0.08);
  font-size: 0.9375rem;
}

.section--about { background: var(--bg-light); }
.section--mission {
  background: var(--white);
  text-align: center;
}

/* Final Map */
.section--final-map {
  position: relative;
  min-height: 400px;
  background: var(--navy-deep);
  padding: 0;
}
#final-map-canvas { width: 100%; height: 400px; display: block; }
.final-map-labels {
  position: absolute;
  bottom: 32px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 16px;
  align-items: center;
  color: var(--white);
  font-family: var(--font-mono);
  font-size: 0.7rem;
  z-index: 2;
}

/* Final CTA */
.section--final-cta {
  background: var(--navy-deep);
  color: var(--white);
  text-align: center;
  padding: 120px 0;
}
.final-cta__inner { max-width: 600px; }
.final-cta__form {
  display: flex;
  gap: 12px;
  margin: 48px 0 24px;
}
.final-cta__form input {
  flex: 1;
  padding: 18px 24px;
  border: 2px solid rgba(255,255,255,0.15);
  border-radius: 999px;
  background: rgba(255,255,255,0.05);
  color: var(--white);
  font-family: var(--font-body);
  font-size: 1rem;
}
.final-cta__form input::placeholder { color: rgba(248,250,252,0.4); }
.final-cta__form input:focus { outline: none; border-color: var(--orange); }

/* Contact */
.section--contact { background: var(--bg-light); }
.contact-form { max-width: 720px; margin-top: 48px; }
.contact-form__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin-bottom: 20px;
}
.contact-form label {
  display: block;
  font-family: var(--font-mono);
  font-size: 0.65rem;
  letter-spacing: 0.08em;
  color: var(--muted);
  margin-bottom: 6px;
}
.contact-form input,
.contact-form select,
.contact-form textarea {
  width: 100%;
  padding: 14px 16px;
  border: 2px solid var(--white);
  border-radius: var(--radius);
  font-family: var(--font-body);
  font-size: 1rem;
  background: var(--white);
  transition: border-color var(--transition);
}
.contact-form input:focus,
.contact-form select:focus,
.contact-form textarea:focus {
  outline: none;
  border-color: var(--orange);
}
.contact-form textarea { resize: vertical; margin-bottom: 24px; }

/* Modal */
.modal {
  border: none;
  padding: 0;
  background: transparent;
  max-width: 90vw;
  max-height: 90vh;
}
.modal::backdrop { background: rgba(7, 17, 31, 0.85); backdrop-filter: blur(8px); }
.modal__inner {
  background: var(--navy-deep);
  color: var(--white);
  border-radius: var(--radius-lg);
  padding: 32px;
  position: relative;
  min-width: 320px;
}
.modal__close {
  position: absolute;
  top: 16px; right: 16px;
  background: none;
  border: none;
  color: var(--white);
  font-size: 1.5rem;
  cursor: pointer;
  line-height: 1;
}
.modal__map { margin: 24px 0; }
#match-canvas, #pulse-canvas { width: 100%; height: 300px; display: block; border-radius: var(--radius); background: var(--navy-midnight); }
.modal__status {
  text-align: center;
  font-family: var(--font-display);
  font-weight: 700;
  color: var(--orange);
  font-size: 1.25rem;
}
.pulse-legend {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  margin-top: 16px;
  font-family: var(--font-mono);
  font-size: 0.65rem;
}

/* Footer */
.footer {
  background: var(--navy-deep);
  color: var(--white);
  padding: 64px 0 32px;
}
.footer__inner {
  display: grid;
  grid-template-columns: 1fr 2fr 1fr;
  gap: 48px;
}
.footer__brand .logo__icon { width: 32px; height: 42px; }
.footer__tagline {
  margin-top: 12px;
  color: rgba(248,250,252,0.6);
  font-size: 0.875rem;
}
.footer__nav {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}
.footer__nav a {
  color: rgba(248,250,252,0.6);
  text-decoration: none;
  font-size: 0.8125rem;
  transition: color var(--transition);
}
.footer__nav a:hover { color: var(--orange); }
.footer__social {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.footer__social a {
  color: rgba(248,250,252,0.6);
  text-decoration: none;
  font-size: 0.8125rem;
}
.footer__social a:hover { color: var(--white); }
.footer__bottom {
  grid-column: 1 / -1;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 32px;
  border-top: 1px solid rgba(255,255,255,0.08);
  font-family: var(--font-mono);
  font-size: 0.65rem;
  color: var(--muted);
}
.footer__status { display: flex; align-items: center; gap: 8px; }
.status-dot {
  width: 8px; height: 8px;
  background: var(--green);
  border-radius: 50%;
  animation: pulse 2s ease infinite;
}

/* ============================================
   Animations
   ============================================ */

@keyframes drawRoute {
  to { stroke-dashoffset: 0; }
}
@keyframes dotAppear {
  to { opacity: 1; }
}
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(12px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.6; transform: scale(1.2); }
}
@keyframes routePulse {
  0%, 100% { opacity: 0.6; }
  50% { opacity: 1; }
}
@keyframes nodePulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(255, 107, 53, 0); }
  50% { box-shadow: 0 0 0 8px rgba(255, 107, 53, 0.2); }
}

/* ============================================
   Responsive
   ============================================ */

@media (max-width: 1024px) {
  .hero__content { grid-template-columns: 1fr; }
  .steps-grid, .ride-cards { grid-template-columns: repeat(2, 1fr); }
  .drive-section { grid-template-columns: 1fr; }
  .method-steps { grid-template-columns: repeat(3, 1fr); }
  .ev-dash { grid-template-columns: repeat(3, 1fr); }
  .rider-stories { grid-template-columns: repeat(3, 1fr); }
  .footer__inner { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 768px) {
  .nav { display: none; }
  .nav.open {
    display: block;
    position: absolute;
    top: 100%;
    left: 0; right: 0;
    background: var(--navy-deep);
    border-radius: 0 0 var(--radius-lg) var(--radius-lg);
    padding: 24px;
  }
  .nav.open .nav__list { flex-direction: column; gap: 16px; }
  .nav-toggle { display: flex; }
  .header__actions .btn--ghost { display: none; }

  .hero__headline { font-size: clamp(2.5rem, 12vw, 4rem); }
  .steps-grid, .ride-cards, .stories-grid, .lab-grid { grid-template-columns: 1fr; }
  .safety-grid, .intel-grid { grid-template-columns: 1fr; }
  .method-steps { grid-template-columns: 1fr; }
  .biz-dashboard__content { grid-template-columns: 1fr; }
  .ev-dash { grid-template-columns: repeat(2, 1fr); }
  .rider-stories { grid-template-columns: 1fr 1fr; }
  .careers-list { columns: 1; }
  .contact-form__grid { grid-template-columns: 1fr; }
  .final-cta__form { flex-direction: column; }
  .footer__inner { grid-template-columns: 1fr; }
  .footer__nav { grid-template-columns: repeat(2, 1fr); }
  .footer__bottom { flex-direction: column; gap: 12px; text-align: center; }

  .city-pulse-btn, .move-mode-toggle {
    font-size: 0.55rem;
    padding: 8px 12px;
  }
}

@media (max-width: 480px) {
  .header { width: calc(100% - 24px); }
  .header__actions .lang-selector { display: none; }
  .hero__ctas { flex-direction: column; }
  .hero__ctas .btn { width: 100%; }
  .flow-steps { flex-direction: column; }
  .flow-arrow { transform: rotate(90deg); }
  .driver-flow { flex-direction: column; }
  .driver-flow__arrow { transform: rotate(90deg); }
}
