/* ===== RESET & BASE ===== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --bg: #080b14;
  --bg-2: #0d1220;
  --bg-3: #111827;
  --fg: #e8eaf0;
  --fg-muted: #8892a4;
  --accent: #f59e0b;
  --accent-2: #06b6d4;
  --border: rgba(255,255,255,0.07);
  --card: rgba(255,255,255,0.04);
}

html { scroll-behavior: smooth; }

body {
  font-family: 'DM Sans', sans-serif;
  background: var(--bg);
  color: var(--fg);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

/* ===== TYPOGRAPHY ===== */
h1, h2, h3 { font-family: 'Space Grotesk', sans-serif; font-weight: 700; line-height: 1.15; }

.section-eyebrow {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--accent);
  display: block;
  margin-bottom: 16px;
}
.section-eyebrow.light { color: rgba(245, 158, 11, 0.7); }

.section-title {
  font-size: clamp(28px, 4vw, 44px);
  font-weight: 700;
  color: var(--fg);
  margin-bottom: 24px;
}
.section-title.light { color: #fff; }

/* ===== NAV ===== */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  border-bottom: 1px solid var(--border);
  background: rgba(8, 11, 20, 0.85);
  backdrop-filter: blur(16px);
}
.nav-inner {
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 32px;
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--fg);
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 700;
  font-size: 17px;
}
.nav-tagline {
  font-size: 13px;
  color: var(--fg-muted);
  font-family: 'DM Sans', sans-serif;
}

/* ===== HERO ===== */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: 120px 32px 80px;
  overflow: hidden;
}
.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}
.hero-glow {
  position: absolute;
  border-radius: 50%;
  filter: blur(120px);
  opacity: 0.15;
}
.hero-glow-1 {
  width: 600px;
  height: 400px;
  background: #f59e0b;
  top: -100px;
  right: -100px;
}
.hero-glow-2 {
  width: 400px;
  height: 300px;
  background: #06b6d4;
  bottom: 0;
  left: 20%;
}
.route-nodes { position: absolute; inset: 0; }
.node {
  position: absolute;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 16px var(--accent);
  animation: pulse 2.5s ease-in-out infinite;
}
.node-1 { top: 20%; left: 15%; animation-delay: 0s; }
.node-2 { top: 35%; left: 42%; animation-delay: 0.5s; }
.node-3 { top: 55%; left: 65%; animation-delay: 1s; }
.node-4 { top: 25%; left: 78%; animation-delay: 1.5s; }
.node-5 { top: 70%; left: 35%; animation-delay: 2s; }
@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.4; transform: scale(0.7); }
}
.route-lines {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}
.route-path {
  fill: none;
  stroke: rgba(245, 158, 11, 0.12);
  stroke-width: 1.5;
  stroke-dasharray: 8 4;
}
.hero-content {
  position: relative;
  z-index: 1;
  max-width: 760px;
}
.hero-eyebrow {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: 'Space Grotesk', sans-serif;
  font-size: 13px;
  font-weight: 500;
  color: var(--accent);
  letter-spacing: 0.05em;
  margin-bottom: 28px;
}
.eyebrow-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--accent);
  animation: pulse 2s ease-in-out infinite;
}
.hero-headline {
  font-size: clamp(48px, 7vw, 88px);
  font-weight: 700;
  line-height: 1.05;
  color: #fff;
  margin-bottom: 28px;
}
.hero-sub {
  font-size: 18px;
  color: var(--fg-muted);
  max-width: 520px;
  margin-bottom: 48px;
  line-height: 1.7;
}
.hero-stats {
  display: flex;
  align-items: center;
  gap: 32px;
  padding: 24px 32px;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 16px;
  width: fit-content;
}
.stat-value {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 28px;
  font-weight: 700;
  color: #fff;
}
.stat-label {
  font-size: 12px;
  color: var(--fg-muted);
  margin-top: 2px;
}
.stat-divider {
  width: 1px;
  height: 40px;
  background: var(--border);
}

/* ===== HOW IT WORKS ===== */
.how-it-works {
  padding: 100px 32px;
  background: var(--bg-2);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.section-inner {
  max-width: 1140px;
  margin: 0 auto;
}
.section-header {
  text-align: center;
  margin-bottom: 64px;
}
.steps-grid {
  display: flex;
  align-items: flex-start;
  gap: 0;
}
.step {
  flex: 1;
  padding: 40px 36px;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 20px;
  position: relative;
}
.step-number {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.1em;
  color: var(--accent);
  margin-bottom: 20px;
}
.step-icon {
  width: 56px;
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(245, 158, 11, 0.08);
  border: 1px solid rgba(245, 158, 11, 0.2);
  border-radius: 14px;
  margin-bottom: 20px;
}
.step-title {
  font-size: 20px;
  font-weight: 600;
  color: #fff;
  margin-bottom: 12px;
}
.step-desc {
  font-size: 14px;
  color: var(--fg-muted);
  line-height: 1.65;
}
.step-connector {
  width: 48px;
  height: 1px;
  background: linear-gradient(to right, var(--border), rgba(245,158,11,0.3), var(--border));
  margin-top: 56px;
  flex-shrink: 0;
}

/* ===== SPLIT SECTIONS ===== */
.split-section {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}
.split-section.reverse > .split-left { order: 2; }
.split-section.reverse > .split-right { order: 1; }
.split-body {
  font-size: 16px;
  color: var(--fg-muted);
  line-height: 1.7;
  margin-bottom: 32px;
}
.feature-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.feature-list li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-size: 15px;
  color: var(--fg);
}
.feature-check {
  flex-shrink: 0;
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(245,158,11,0.1);
  border-radius: 6px;
  margin-top: 1px;
}

/* ===== COURIER CARD ===== */
.courier-card {
  background: var(--bg-3);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 28px;
}
.courier-card-header {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 28px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--border);
}
.courier-avatar {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: linear-gradient(135deg, #f59e0b, #d97706);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 700;
  font-size: 14px;
  color: #080b14;
}
.courier-name {
  font-weight: 600;
  font-size: 15px;
  color: #fff;
}
.courier-badge {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  color: var(--fg-muted);
  margin-top: 2px;
}
.badge-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #22c55e;
}
.courier-route {
  display: flex;
  flex-direction: column;
  gap: 0;
  margin-bottom: 24px;
}
.route-stop {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 14px;
  color: var(--fg-muted);
  padding: 10px 0;
}
.route-stop span:first-child { flex-shrink: 0; }
.route-stop span:nth-child(2) { flex: 1; }
.stop-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--border);
  border: 2px solid var(--fg-muted);
}
.stop-dot.start { background: #22c55e; border-color: #22c55e; }
.stop-dot.end { background: #f59e0b; border-color: #f59e0b; }
.stop-time {
  font-size: 12px;
  color: var(--fg-muted);
  font-family: 'Space Grotesk', sans-serif;
}
.route-connector {
  width: 2px;
  height: 20px;
  background: var(--border);
  margin-left: 4px;
}
.courier-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 20px;
  border-top: 1px solid var(--border);
}
.courier-earnings {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 26px;
  font-weight: 700;
  color: #fff;
}
.courier-miles {
  font-size: 13px;
  color: var(--fg-muted);
}

/* ===== FOR BUSINESSES ===== */
.for-businesses {
  padding: 100px 32px;
  background: var(--bg);
}
.dashboard-preview {
  background: var(--bg-3);
  border: 1px solid var(--border);
  border-radius: 20px;
  overflow: hidden;
}
.dash-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 24px;
  border-bottom: 1px solid var(--border);
  background: rgba(255,255,255,0.02);
}
.dash-title {
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 600;
  font-size: 14px;
  color: #fff;
}
.dash-status {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  color: #22c55e;
}
.status-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #22c55e;
  box-shadow: 0 0 6px #22c55e;
  animation: pulse 2s ease-in-out infinite;
}
.dash-row {
  display: grid;
  grid-template-columns: 1fr 1fr auto;
  gap: 16px;
  padding: 16px 24px;
  border-bottom: 1px solid var(--border);
  font-size: 13px;
}
.dash-row:last-of-type { border-bottom: none; }
.dash-courier { color: var(--fg); font-weight: 500; }
.dash-route { color: var(--fg-muted); }
.dash-eta { font-family: 'Space Grotesk', sans-serif; color: var(--fg-muted); text-align: right; }
.dash-eta.on-time { color: #22c55e; }
.dash-footer {
  display: flex;
  justify-content: space-between;
  padding: 16px 24px;
  background: rgba(6,182,212,0.05);
  border-top: 1px solid rgba(6,182,212,0.15);
}
.dash-stat { font-size: 12px; color: var(--accent-2); font-weight: 500; }

/* ===== ROUTE PREVIEW ===== */
.route-preview {
  padding: 100px 32px;
  background: var(--bg-2);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.preview-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}
.preview-card {
  padding: 32px 24px;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 16px;
  transition: border-color 0.2s;
}
.preview-card:hover { border-color: rgba(245,158,11,0.3); }
.preview-card-icon {
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(245,158,11,0.08);
  border: 1px solid rgba(245,158,11,0.15);
  border-radius: 12px;
  margin-bottom: 20px;
}
.preview-card-title {
  font-size: 16px;
  font-weight: 600;
  color: #fff;
  margin-bottom: 10px;
}
.preview-card-desc {
  font-size: 13px;
  color: var(--fg-muted);
  line-height: 1.6;
}

/* ===== CLOSING ===== */
.closing {
  padding: 120px 32px;
  background: var(--bg);
  position: relative;
  overflow: hidden;
}
.closing-inner {
  position: relative;
  z-index: 1;
  max-width: 820px;
  margin: 0 auto;
  text-align: center;
}
.closing-glow {
  position: absolute;
  width: 500px;
  height: 300px;
  background: radial-gradient(circle, rgba(245,158,11,0.12) 0%, transparent 70%);
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  filter: blur(80px);
}
.closing-title {
  font-size: clamp(32px, 5vw, 56px);
  font-weight: 700;
  color: #fff;
  margin-bottom: 28px;
  line-height: 1.2;
}
.closing-body {
  font-size: 17px;
  color: var(--fg-muted);
  line-height: 1.75;
  max-width: 620px;
  margin: 0 auto 56px;
}
.closing-stats {
  display: flex;
  justify-content: center;
  gap: 64px;
  padding-top: 48px;
  border-top: 1px solid var(--border);
}
.cstat-value {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 36px;
  font-weight: 700;
  color: #fff;
}
.cstat-label {
  font-size: 13px;
  color: var(--fg-muted);
  margin-top: 4px;
}

/* ===== FOOTER ===== */
.footer {
  padding: 48px 32px;
  border-top: 1px solid var(--border);
}
.footer-inner {
  max-width: 1140px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  text-align: center;
}
.footer-brand {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 700;
  font-size: 16px;
  color: #fff;
}
.footer-tagline {
  font-size: 14px;
  color: var(--fg-muted);
}
.footer-links {
  display: flex;
  gap: 24px;
}
.footer-links a {
  font-size: 13px;
  color: var(--fg-muted);
  text-decoration: none;
  transition: color 0.2s;
}
.footer-links a:hover { color: var(--fg); }
.footer-copy {
  font-size: 12px;
  color: rgba(136,146,164,0.5);
}

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
  .steps-grid { flex-direction: column; gap: 16px; }
  .step-connector { display: none; }
  .split-section { grid-template-columns: 1fr; gap: 48px; }
  .split-section.reverse > .split-left { order: 1; }
  .split-section.reverse > .split-right { order: 2; }
  .preview-grid { grid-template-columns: 1fr 1fr; }
  .hero-stats { flex-direction: column; align-items: flex-start; gap: 20px; }
  .stat-divider { width: 40px; height: 1px; }
  .closing-stats { flex-direction: column; gap: 32px; }
}
@media (max-width: 480px) {
  .hero { padding: 100px 20px 60px; }
  .how-it-works, .for-businesses, .route-preview, .closing { padding: 64px 20px; }
  .preview-grid { grid-template-columns: 1fr; }
  .dash-row { grid-template-columns: 1fr auto; }
  .dash-route { display: none; }
}