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

:root {
  --bg: #0f172a;
  --bg-2: #1e293b;
  --bg-3: #334155;
  --fg: #f8fafc;
  --fg-muted: #94a3b8;
  --accent: #f59e0b;
  --accent-2: #38bdf8;
  --border: #334155;
  --font-display: 'Instrument Serif', Georgia, serif;
  --font-body: 'DM Sans', system-ui, sans-serif;
}

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

body {
  background: var(--bg);
  color: var(--fg);
  font-family: var(--font-body);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

/* ===== NAV ===== */
.nav {
  padding: 1.25rem 2rem;
  border-bottom: 1px solid var(--border);
}
.nav-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 1rem;
}
.nav-logo {
  font-family: var(--font-display);
  font-size: 1.25rem;
  color: var(--fg);
  text-decoration: none;
  letter-spacing: -0.01em;
}
.nav-tagline {
  font-size: 0.8rem;
  color: var(--fg-muted);
  padding-left: 1rem;
  border-left: 1px solid var(--border);
}

/* ===== HERO ===== */
.hero {
  padding: 4rem 2rem 3rem;
}
.hero-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}
.hero-eyebrow {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 1rem;
}
.hero-headline {
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 5vw, 4rem);
  line-height: 1.08;
  letter-spacing: -0.02em;
  color: var(--fg);
  margin-bottom: 1.5rem;
}
.hero-headline em {
  font-style: italic;
  color: var(--accent);
}
.hero-lede {
  font-size: 1.05rem;
  color: var(--fg-muted);
  line-height: 1.7;
  max-width: 480px;
  margin-bottom: 2.5rem;
}
.hero-stats {
  display: flex;
  gap: 2.5rem;
}
.stat { display: flex; flex-direction: column; gap: 0.25rem; }
.stat-number {
  font-family: var(--font-display);
  font-size: 2rem;
  color: var(--fg);
  letter-spacing: -0.03em;
}
.stat-label {
  font-size: 0.7rem;
  color: var(--fg-muted);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

/* ===== HERO VISUAL ===== */
.hero-visual { display: flex; flex-direction: column; gap: 1.5rem; }

.dispatch-map {
  background: var(--bg-2);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 1.5rem;
  position: relative;
  overflow: hidden;
}
.map-grid {
  width: 100%;
  aspect-ratio: 300/220;
  position: relative;
}
.map-lines {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}
.map-dot {
  position: absolute;
  width: 14px;
  height: 14px;
  border-radius: 50%;
}
.dot-tech-1 { background: var(--accent-2); top: 12%; left: 18%; }
.dot-tech-2 { background: var(--accent-2); top: 8%; right: 18%; }
.dot-tech-3 { background: var(--accent-2); bottom: 14%; left: 23%; }
.dot-job-1  { background: var(--accent); top: 38%; left: 44%; width: 10px; height: 10px; }
.dot-job-2  { background: var(--accent); top: 52%; right: 18%; width: 10px; height: 10px; }
.dot-job-3  { background: var(--accent); bottom: 30%; right: 14%; width: 10px; height: 10px; }
.map-label {
  position: absolute;
  font-size: 0.65rem;
  color: var(--fg-muted);
  font-weight: 500;
}
.map-label-hq     { top: 44%; left: 46%; color: var(--accent); font-weight: 600; }
.map-label-tech-1 { top: 5%; left: 15%; }
.map-label-tech-2 { top: 2%; right: 16%; }
.map-label-tech-3 { bottom: 6%; left: 19%; }

.dispatch-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(245, 158, 11, 0.1);
  border: 1px solid rgba(245, 158, 11, 0.3);
  border-radius: 100px;
  padding: 0.35rem 0.85rem;
  margin-top: 1rem;
}
.badge-dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--accent);
  animation: pulse 2s infinite;
}
@keyframes pulse { 0%,100%{opacity:1} 50%{opacity:0.3} }
.badge-text { font-size: 0.75rem; color: var(--accent); font-weight: 500; }

.route-cards { display: flex; flex-direction: column; gap: 0.6rem; }
.route-card {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  background: var(--bg-2);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 0.75rem 1rem;
}
.route-card-optimal { border-color: rgba(245, 158, 11, 0.4); }
.route-icon {
  width: 28px; height: 28px;
  border-radius: 6px;
  background: var(--bg-3);
  display: flex; align-items: center; justify-content: center;
  font-size: 0.8rem; flex-shrink: 0;
  color: var(--fg-muted);
}
.route-card-optimal .route-icon { background: rgba(245, 158, 11, 0.15); color: var(--accent); }
.route-info { display: flex; flex-direction: column; gap: 0.15rem; }
.route-name { font-size: 0.82rem; font-weight: 500; }
.route-detail { font-size: 0.7rem; color: var(--fg-muted); }

/* ===== PROOF ===== */
.proof {
  background: var(--bg-2);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 3rem 2rem;
}
.proof-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}
.proof-quote blockquote {
  font-family: var(--font-display);
  font-size: clamp(1.1rem, 2vw, 1.4rem);
  line-height: 1.5;
  font-style: italic;
  color: var(--fg);
  margin-bottom: 1rem;
}
.proof-quote cite {
  font-size: 0.8rem;
  color: var(--fg-muted);
  font-style: normal;
}
.proof-metrics {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}
.pm { display: flex; flex-direction: column; gap: 0.2rem; }
.pm-val {
  font-family: var(--font-display);
  font-size: 2.5rem;
  letter-spacing: -0.03em;
  color: var(--fg);
}
.pm-label { font-size: 0.8rem; color: var(--fg-muted); }

/* ===== SECTION LABEL ===== */
.section-label {
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--fg-muted);
  margin-bottom: 3rem;
}

/* ===== HOW ===== */
.how { padding: 5rem 2rem; }
.how-inner { max-width: 1200px; margin: 0 auto; }
.steps { display: grid; grid-template-columns: 1fr 1fr; gap: 0; }
.step {
  display: flex;
  gap: 1.5rem;
  padding: 2rem;
  border-right: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.step:nth-child(even) { border-right: none; }
.step:nth-last-child(-n+2) { border-bottom: none; }
.step-num {
  font-family: var(--font-display);
  font-size: 2.5rem;
  color: rgba(245, 158, 11, 0.2);
  line-height: 1;
  flex-shrink: 0;
  width: 3rem;
}
.step-body h3 {
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 0.75rem;
  color: var(--fg);
}
.step-body p { font-size: 0.875rem; color: var(--fg-muted); line-height: 1.65; }

/* ===== FEATURES ===== */
.features { padding: 5rem 2rem; background: var(--bg-2); border-top: 1px solid var(--border); }
.features-inner { max-width: 1200px; margin: 0 auto; }
.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
}
.feature {
  padding: 2rem;
  border-right: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.feature:nth-child(3n) { border-right: none; }
.feature:nth-last-child(-n+3) { border-bottom: none; }
.feature-icon {
  color: var(--accent);
  margin-bottom: 1rem;
}
.feature h3 {
  font-size: 0.95rem;
  font-weight: 600;
  margin-bottom: 0.6rem;
  color: var(--fg);
}
.feature p { font-size: 0.825rem; color: var(--fg-muted); line-height: 1.65; }

/* ===== PLAYBOOK ===== */
.playbook { padding: 5rem 2rem; }
.playbook-inner { max-width: 1200px; margin: 0 auto; }
.playbook-headline { max-width: 700px; margin-bottom: 3rem; }
.playbook-headline h2 {
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  line-height: 1.2;
  letter-spacing: -0.02em;
  margin-bottom: 1rem;
  color: var(--fg);
}
.playbook-headline p { font-size: 1rem; color: var(--fg-muted); line-height: 1.7; }
.comparison { display: grid; grid-template-columns: 1fr 1fr; gap: 0; }
.comp-col { padding: 2rem; }
.comp-old { background: var(--bg-2); border: 1px solid var(--border); border-radius: 12px 0 0 12px; }
.comp-new { background: rgba(245,158,11,0.05); border: 1px solid rgba(245,158,11,0.2); border-radius: 0 12px 12px 0; }
.comp-col h4 { font-size: 0.75rem; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--fg-muted); margin-bottom: 1.25rem; }
.comp-new h4 { color: var(--accent); }
.comp-col ul { list-style: none; display: flex; flex-direction: column; gap: 0.8rem; }
.comp-col li { font-size: 0.875rem; color: var(--fg-muted); padding-left: 1.2rem; position: relative; }
.comp-col li::before { content: '—'; position: absolute; left: 0; color: var(--border); }
.comp-new li { color: var(--fg); }
.comp-new li::before { color: rgba(245,158,11,0.4); }

/* ===== CLOSING ===== */
.closing {
  padding: 6rem 2rem;
  border-top: 1px solid var(--border);
}
.closing-inner { max-width: 900px; margin: 0 auto; text-align: center; }
.closing h2 {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 4vw, 3rem);
  line-height: 1.15;
  letter-spacing: -0.02em;
  margin-bottom: 1.5rem;
  color: var(--fg);
}
.closing p {
  font-size: 1rem;
  color: var(--fg-muted);
  line-height: 1.7;
  max-width: 560px;
  margin: 0 auto;
}

/* ===== FOOTER ===== */
.footer {
  border-top: 1px solid var(--border);
  padding: 2rem;
}
.footer-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.footer-logo {
  font-family: var(--font-display);
  font-size: 1rem;
  color: var(--fg);
  display: block;
  margin-bottom: 0.3rem;
}
.footer-brand p { font-size: 0.8rem; color: var(--fg-muted); }
.footer-meta span { font-size: 0.75rem; color: var(--fg-muted); }

/* ===== RESPONSIVE ===== */
@media (max-width: 900px) {
  .hero-inner { grid-template-columns: 1fr; gap: 2.5rem; }
  .proof-inner { grid-template-columns: 1fr; gap: 2.5rem; }
  .steps { grid-template-columns: 1fr; }
  .step { border-right: none; border-bottom: 1px solid var(--border); }
  .step:nth-last-child(-n+2) { border-bottom: 1px solid var(--border); }
  .step:last-child { border-bottom: none; }
  .feature-grid { grid-template-columns: 1fr 1fr; }
  .feature:nth-child(3n) { border-right: 1px solid var(--border); }
  .feature:nth-child(2n) { border-right: none; }
  .feature:nth-last-child(-n+3) { border-bottom: 1px solid var(--border); }
  .feature:nth-last-child(-n+2) { border-bottom: none; }
  .comparison { grid-template-columns: 1fr; }
  .comp-old { border-radius: 12px 12px 0 0; border-right: 1px solid var(--border); }
  .comp-new { border-radius: 0 0 12px 12px; border-top: none; }
}

@media (max-width: 640px) {
  .hero-stats { flex-wrap: wrap; gap: 1.5rem; }
  .feature-grid { grid-template-columns: 1fr; }
  .feature { border-right: none !important; }
  .footer-inner { flex-direction: column; gap: 1rem; align-items: flex-start; }
  .nav-tagline { display: none; }
  .map-label { display: none; }
}