/* Eldify marketing site — dark theme matching the product's own brand
   (Poppins, blue-700 #1d4ed8 / blue-600 #2563eb), no external UI framework. */

@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700;800&display=swap');

:root {
  --bg: #0a0e1a;
  --bg-elevated: #10162a;
  --surface: #131a30;
  --surface-hover: #182140;
  --border: #232b47;
  --border-light: #2c3557;
  --text: #f4f6fb;
  --text-muted: #9aa4c4;
  --text-faint: #64709c;
  --blue-400: #60a5fa;
  --blue-500: #3b82f6;
  --blue-600: #2563eb;
  --blue-700: #1d4ed8;
  --green: #16a34a;
  --amber: #d97706;
  --max-w: 1180px;
  --radius: 16px;
  --radius-sm: 10px;
}

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

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

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: 'Poppins', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  line-height: 1.55;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

/* ambient background glow, fixed behind everything */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(ellipse 900px 600px at 15% -10%, rgba(37, 99, 235, 0.22), transparent 60%),
    radial-gradient(ellipse 700px 500px at 100% 20%, rgba(29, 78, 216, 0.16), transparent 55%),
    radial-gradient(ellipse 800px 600px at 50% 110%, rgba(37, 99, 235, 0.12), transparent 60%);
}

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

a { color: inherit; text-decoration: none; }

img { max-width: 100%; display: block; }

section { position: relative; }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 13px 24px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.95rem;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease, border-color 0.2s ease;
  white-space: nowrap;
}
.btn:active { transform: translateY(1px) scale(0.98); }

.btn-primary {
  background: linear-gradient(135deg, var(--blue-500), var(--blue-700));
  color: #fff;
  box-shadow: 0 8px 24px -8px rgba(37, 99, 235, 0.65);
}
.btn-primary:hover {
  box-shadow: 0 12px 32px -8px rgba(37, 99, 235, 0.85);
  transform: translateY(-2px);
}

.btn-ghost {
  background: rgba(255, 255, 255, 0.04);
  border-color: var(--border-light);
  color: var(--text);
}
.btn-ghost:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: var(--blue-500);
  transform: translateY(-2px);
}

.btn-sm { padding: 9px 18px; font-size: 0.85rem; }

/* ---------- nav ---------- */
.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  background: rgba(10, 14, 26, 0.72);
  border-bottom: 1px solid var(--border);
}
.nav .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}
.nav-brand { display: flex; align-items: center; gap: 10px; font-weight: 700; font-size: 1.15rem; }
.nav-brand img { width: 34px; height: 34px; border-radius: 9px; }
.nav-links { display: flex; align-items: center; gap: 32px; }
.nav-links a:not(.btn) {
  color: var(--text-muted);
  font-size: 0.92rem;
  font-weight: 500;
  transition: color 0.2s ease;
}
.nav-links a:not(.btn):hover { color: var(--text); }
.nav-actions { display: flex; align-items: center; gap: 12px; flex-shrink: 0; }

@media (max-width: 860px) {
  .nav-links { display: none; }
}

@media (max-width: 520px) {
  .nav .wrap { padding: 0 16px; }
  .nav-brand span { display: none; }
  .nav-actions .btn-ghost { display: none; }
}

/* ---------- reveal-on-scroll ---------- */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.7s cubic-bezier(0.16, 1, 0.3, 1), transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
}
.reveal.in-view { opacity: 1; transform: translateY(0); }
.reveal-delay-1 { transition-delay: 0.08s; }
.reveal-delay-2 { transition-delay: 0.16s; }
.reveal-delay-3 { transition-delay: 0.24s; }
.reveal-delay-4 { transition-delay: 0.32s; }
.reveal-delay-5 { transition-delay: 0.4s; }

/* ---------- hero ---------- */
.hero {
  padding: 96px 0 80px;
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 48px;
  align-items: center;
}
@media (max-width: 980px) {
  .hero { grid-template-columns: 1fr; padding: 56px 0 48px; text-align: center; }
  .hero-art { order: -1; }
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 16px;
  border-radius: 999px;
  background: rgba(37, 99, 235, 0.12);
  border: 1px solid rgba(37, 99, 235, 0.35);
  color: var(--blue-400);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.03em;
  margin-bottom: 24px;
}
.eyebrow .dot {
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 0 0 rgba(22, 163, 74, 0.6);
  animation: pulseDot 2s infinite;
}
@keyframes pulseDot {
  0% { box-shadow: 0 0 0 0 rgba(22, 163, 74, 0.55); }
  70% { box-shadow: 0 0 0 8px rgba(22, 163, 74, 0); }
  100% { box-shadow: 0 0 0 0 rgba(22, 163, 74, 0); }
}

.hero h1 {
  font-size: clamp(2.4rem, 5vw, 3.6rem);
  font-weight: 800;
  line-height: 1.08;
  letter-spacing: -0.02em;
  margin-bottom: 22px;
}
.hero h1 .grad {
  background: linear-gradient(100deg, var(--blue-400), var(--blue-600) 60%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.hero p.lead {
  font-size: 1.12rem;
  color: var(--text-muted);
  max-width: 520px;
  margin-bottom: 34px;
}
@media (max-width: 980px) { .hero p.lead { margin-left: auto; margin-right: auto; } }

.hero-ctas { display: flex; gap: 14px; flex-wrap: wrap; margin-bottom: 40px; }
@media (max-width: 980px) { .hero-ctas { justify-content: center; } }

.hero-stats { display: flex; gap: 36px; flex-wrap: wrap; }
@media (max-width: 980px) { .hero-stats { justify-content: center; } }
.hero-stats .stat-num {
  font-size: 1.6rem;
  font-weight: 800;
  background: linear-gradient(100deg, var(--text), var(--blue-400));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.hero-stats .stat-label { font-size: 0.8rem; color: var(--text-faint); font-weight: 500; }

/* hero graphic */
.hero-art { position: relative; min-width: 0; max-width: 460px; margin: 0 auto; }
.hero-art svg { display: block; width: 100%; height: auto; filter: drop-shadow(0 30px 60px rgba(37, 99, 235, 0.25)); }

.route-path {
  fill: none;
  stroke: url(#routeGrad);
  stroke-width: 3;
  stroke-linecap: round;
  stroke-dasharray: 10 10;
  animation: dashMove 2.4s linear infinite;
}
@keyframes dashMove { to { stroke-dashoffset: -40; } }

.truck-float { animation: floatY 4s ease-in-out infinite; transform-origin: center; }
@keyframes floatY {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}

.pulse-ring {
  animation: ringPulse 2.6s cubic-bezier(0.16, 1, 0.3, 1) infinite;
  transform-origin: center;
}
@keyframes ringPulse {
  0% { opacity: 0.7; transform: scale(0.85); }
  70% { opacity: 0; transform: scale(1.35); }
  100% { opacity: 0; transform: scale(1.35); }
}

.hero-badge {
  position: absolute;
  background: var(--surface);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-sm);
  padding: 10px 14px;
  display: flex;
  align-items: center;
  gap: 9px;
  font-size: 0.78rem;
  font-weight: 600;
  box-shadow: 0 12px 28px -10px rgba(0, 0, 0, 0.5);
  animation: floatY 5s ease-in-out infinite;
}
.hero-badge.b1 { top: 6%; left: -4%; animation-delay: 0.3s; }
.hero-badge.b2 { bottom: 10%; right: -6%; animation-delay: 1s; }
@media (max-width: 560px) {
  .hero-badge.b1 { left: 0; }
  .hero-badge.b2 { right: 0; }
}
.hero-badge .ico { width: 8px; height: 8px; border-radius: 50%; background: var(--green); flex-shrink: 0; }

/* ---------- section headers ---------- */
.section-head { text-align: center; max-width: 620px; margin: 0 auto 56px; }
.section-head .eyebrow { margin-bottom: 18px; }
.section-head h2 {
  font-size: clamp(1.8rem, 3.4vw, 2.4rem);
  font-weight: 800;
  letter-spacing: -0.01em;
  margin-bottom: 14px;
}
.section-head p { color: var(--text-muted); font-size: 1.02rem; }

.section-pad { padding: 88px 0; }
.divider-line {
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--border-light), transparent);
}

/* ---------- features grid ---------- */
.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
@media (max-width: 900px) { .features-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .features-grid { grid-template-columns: 1fr; } }

.feature-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px 24px;
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1), border-color 0.3s ease, background 0.3s ease;
}
.feature-card:hover {
  transform: translateY(-6px);
  border-color: rgba(59, 130, 246, 0.5);
  background: var(--surface-hover);
}
.feature-icon {
  width: 46px; height: 46px;
  border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  background: linear-gradient(135deg, rgba(59, 130, 246, 0.18), rgba(29, 78, 216, 0.08));
  border: 1px solid rgba(59, 130, 246, 0.25);
  margin-bottom: 18px;
  color: var(--blue-400);
}
.feature-card h3 { font-size: 1.05rem; font-weight: 700; margin-bottom: 8px; }
.feature-card p { color: var(--text-muted); font-size: 0.9rem; }

/* ---------- how it works ---------- */
.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
  position: relative;
}
@media (max-width: 860px) { .steps { grid-template-columns: 1fr; } }

.step { text-align: center; padding: 0 12px; }
.step-num {
  width: 52px; height: 52px;
  margin: 0 auto 20px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-weight: 800;
  font-size: 1.15rem;
  background: linear-gradient(135deg, var(--blue-500), var(--blue-700));
  color: #fff;
  box-shadow: 0 10px 24px -8px rgba(37, 99, 235, 0.6);
}
.step h3 { font-size: 1.05rem; font-weight: 700; margin-bottom: 10px; }
.step p { color: var(--text-muted); font-size: 0.9rem; max-width: 280px; margin: 0 auto; }

/* ---------- screenshot carousels (real app/product screenshots) ---------- */
.shot-carousel {
  position: relative;
  width: 100%;
  overflow: hidden;
  background: var(--bg);
}
.shot-carousel .shot {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
  opacity: 0;
  transform: scale(1.015);
  transition: opacity 0.9s cubic-bezier(0.16, 1, 0.3, 1), transform 1.6s cubic-bezier(0.16, 1, 0.3, 1);
  z-index: 1;
}
.shot-carousel .shot.active { opacity: 1; transform: scale(1); z-index: 2; }

.shot-dots { display: flex; justify-content: center; gap: 8px; margin-top: 18px; }
.shot-dots .dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--border-light);
  border: none;
  padding: 0;
  cursor: pointer;
  transition: background 0.25s ease, transform 0.25s ease;
}
.shot-dots .dot:hover { background: var(--text-faint); }
.shot-dots .dot.active { background: var(--blue-400); transform: scale(1.3); }

.shot-caption {
  text-align: center;
  color: var(--text-muted);
  font-size: 0.85rem;
  margin-top: 10px;
  min-height: 1.3em;
}

/* browser chrome (carrier dashboard carousel) */
.browser-frame {
  border-radius: 16px;
  border: 1px solid var(--border-light);
  background: var(--surface);
  overflow: hidden;
  box-shadow: 0 40px 90px -24px rgba(0, 0, 0, 0.65);
}
.browser-bar {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 12px 16px;
  background: var(--bg-elevated);
  border-bottom: 1px solid var(--border);
}
.browser-dots { display: flex; gap: 6px; flex-shrink: 0; }
.browser-dots span { width: 10px; height: 10px; border-radius: 50%; display: block; }
.browser-dots span:nth-child(1) { background: #ef4444; }
.browser-dots span:nth-child(2) { background: #f59e0b; }
.browser-dots span:nth-child(3) { background: #22c55e; }
.browser-url {
  flex: 1;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 6px 14px;
  font-size: 0.75rem;
  color: var(--text-faint);
  text-align: center;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.browser-frame .shot-carousel { aspect-ratio: 1400 / 875; }

/* phone frame (driver app carousel) */
.phone-frame {
  position: relative;
  max-width: 280px;
  margin: 0 auto;
  border-radius: 34px;
  padding: 12px;
  background: linear-gradient(160deg, #1a2140, #0d1224);
  border: 1px solid var(--border-light);
  box-shadow: 0 40px 80px -20px rgba(0, 0, 0, 0.6), 0 0 0 1px rgba(255, 255, 255, 0.02) inset;
}
.phone-frame .shot-carousel { aspect-ratio: 1080 / 2424; border-radius: 24px; }

/* ---------- app preview layout ---------- */
.preview-wrap {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: 56px;
  align-items: center;
}
@media (max-width: 900px) { .preview-wrap { grid-template-columns: 1fr; } }

.preview-list { display: flex; flex-direction: column; gap: 22px; }
.preview-item { display: flex; gap: 16px; }
.preview-item .num {
  flex-shrink: 0; width: 34px; height: 34px; border-radius: 10px;
  background: rgba(59, 130, 246, 0.12); border: 1px solid rgba(59, 130, 246, 0.3);
  display: flex; align-items: center; justify-content: center;
  color: var(--blue-400); font-weight: 700; font-size: 0.85rem;
}
.preview-item h4 { font-weight: 700; margin-bottom: 4px; font-size: 1rem; }
.preview-item p { color: var(--text-muted); font-size: 0.88rem; }

/* ---------- CTA band ---------- */
.cta-band {
  border-radius: 28px;
  padding: 64px 48px;
  text-align: center;
  background:
    radial-gradient(ellipse 500px 300px at 30% 0%, rgba(96, 165, 250, 0.25), transparent 60%),
    linear-gradient(135deg, #14204a, #0c1330);
  border: 1px solid var(--border-light);
  position: relative;
  overflow: hidden;
}
@media (max-width: 640px) { .cta-band { padding: 48px 24px; } }
.cta-band h2 { font-size: clamp(1.6rem, 3.2vw, 2.2rem); font-weight: 800; margin-bottom: 14px; }
.cta-band p { color: var(--text-muted); max-width: 480px; margin: 0 auto 32px; }
.cta-band .hero-ctas { justify-content: center; margin-bottom: 0; }

/* ---------- footer ---------- */
footer { padding: 56px 0 40px; border-top: 1px solid var(--border); }
.footer-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 32px;
  flex-wrap: wrap;
  margin-bottom: 36px;
}
.footer-brand { display: flex; align-items: center; gap: 10px; font-weight: 700; }
.footer-brand img { width: 30px; height: 30px; border-radius: 8px; }
.footer-tagline { color: var(--text-faint); font-size: 0.85rem; margin-top: 10px; max-width: 280px; }
.footer-links { display: flex; gap: 56px; flex-wrap: wrap; }
.footer-col h5 { font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.06em; color: var(--text-faint); margin-bottom: 14px; }
.footer-col a { display: block; color: var(--text-muted); font-size: 0.9rem; margin-bottom: 10px; transition: color 0.2s; }
.footer-col a:hover { color: var(--text); }
.footer-bottom {
  display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 12px;
  padding-top: 24px; border-top: 1px solid var(--border);
  color: var(--text-faint); font-size: 0.8rem;
}
