/* Dispatch9ja - Modern Bold Animated CSS Stylesheet */

@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@400;500;600;700;800;900&display=swap');

:root {
  --bg-dark: #06090e;
  --bg-card: #0c121e;
  --bg-card-hover: #121c2e;
  --border-color: rgba(255, 255, 255, 0.08);
  --border-glow: rgba(16, 185, 129, 0.3);
  
  --emerald: #10b981;
  --emerald-neon: #00e676;
  --emerald-glow: rgba(16, 185, 129, 0.25);
  
  --gold: #f59e0b;
  --gold-glow: rgba(245, 158, 11, 0.25);
  
  --text-main: #ffffff;
  --text-sub: #cbd5e1;
  --text-muted: #64748b;
  
  --font-main: 'Plus Jakarta Sans', system-ui, -apple-system, sans-serif;
}

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

html {
  scroll-behavior: smooth;
  font-family: var(--font-main);
  background-color: var(--bg-dark);
  color: var(--text-main);
  overflow-x: hidden;
}

body {
  line-height: 1.6;
  min-height: 100vh;
  position: relative;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 10px;
}
::-webkit-scrollbar-track {
  background: var(--bg-dark);
}
::-webkit-scrollbar-thumb {
  background: #1e293b;
  border-radius: 5px;
}
::-webkit-scrollbar-thumb:hover {
  background: var(--emerald);
}

/* Layout Container */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* Typography Utilities */
h1, h2, h3, h4 {
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.15;
}

.gradient-text {
  background: linear-gradient(135deg, #ffffff 0%, var(--emerald-neon) 50%, var(--gold) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.gradient-gold {
  background: linear-gradient(135deg, var(--gold) 0%, #fef08a 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* Header & Glass Navigation */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  padding: 1.25rem 0;
  transition: all 0.3s ease;
}

.header.scrolled {
  background: rgba(6, 9, 14, 0.85);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border-color);
  padding: 0.85rem 0;
}

.nav-wrapper {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.brand-link {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
  color: var(--text-main);
  font-weight: 900;
  font-size: 1.4rem;
}

.brand-logo-img {
  height: 38px;
  width: auto;
  object-fit: contain;
}

.brand-icon-box {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: linear-gradient(135deg, var(--emerald), var(--gold));
  display: flex;
  align-items: center;
  justify-content: center;
  color: #000;
  font-weight: 900;
  box-shadow: 0 0 15px var(--emerald-glow);
}

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

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

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

.nav-cta {
  display: flex;
  align-items: center;
  gap: 1rem;
}

/* Buttons & CTAs */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  padding: 0.85rem 1.75rem;
  border-radius: 12px;
  font-size: 1rem;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  border: none;
}

.btn-primary {
  background: linear-gradient(135deg, var(--emerald), #059669);
  color: #04170d;
  box-shadow: 0 4px 20px var(--emerald-glow);
  position: relative;
  overflow: hidden;
}

.btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 30px rgba(16, 185, 129, 0.4);
  background: linear-gradient(135deg, var(--emerald-neon), var(--emerald));
}

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

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.2);
  transform: translateY(-2px);
}

.btn-gold {
  background: linear-gradient(135deg, var(--gold), #d97706);
  color: #1a0f00;
  box-shadow: 0 4px 20px var(--gold-glow);
}

.btn-gold:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 30px rgba(245, 158, 11, 0.4);
}

/* Hero Section */
.hero {
  position: relative;
  padding: 10rem 0 6rem;
  min-height: 90vh;
  display: flex;
  align-items: center;
  overflow: hidden;
}

#hero-canvas {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
  pointer-events: none;
  opacity: 0.6;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 3.5rem;
  align-items: center;
  position: relative;
  z-index: 2;
}

.hero-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.4rem 1rem;
  border-radius: 999px;
  background: rgba(16, 185, 129, 0.12);
  border: 1px solid rgba(16, 185, 129, 0.3);
  color: var(--emerald-neon);
  font-size: 0.85rem;
  font-weight: 700;
  margin-bottom: 1.5rem;
}

.pulse-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--emerald-neon);
  box-shadow: 0 0 10px var(--emerald-neon);
  animation: pulse-glow 1.5s infinite;
}

@keyframes pulse-glow {
  0% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(0, 230, 118, 0.7); }
  70% { transform: scale(1); box-shadow: 0 0 0 10px rgba(0, 230, 118, 0); }
  100% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(0, 230, 118, 0); }
}

.hero h1 {
  font-size: 3.8rem;
  margin-bottom: 1.25rem;
}

.hero-sub {
  font-size: 1.2rem;
  color: var(--text-sub);
  margin-bottom: 2.25rem;
  max-width: 580px;
}

.hero-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 1.25rem;
  margin-bottom: 2.5rem;
}

.hero-stats-mini {
  display: flex;
  gap: 2.5rem;
  padding-top: 2rem;
  border-top: 1px solid var(--border-color);
}

.mini-stat h4 {
  font-size: 1.5rem;
  color: var(--emerald-neon);
}

.mini-stat p {
  font-size: 0.85rem;
  color: var(--text-muted);
}

/* 3D App Preview Container */
.hero-preview {
  position: relative;
}

.phone-mockup-wrapper {
  position: relative;
  width: 100%;
  max-width: 380px;
  margin: 0 auto;
  animation: float-3d 6s ease-in-out infinite;
}

@keyframes float-3d {
  0%, 100% { transform: translateY(0px) rotate(0deg); }
  50% { transform: translateY(-15px) rotate(1deg); }
}

.phone-card {
  background: var(--bg-card);
  border: 1px solid var(--border-glow);
  border-radius: 28px;
  padding: 1.5rem;
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.6), 0 0 30px var(--emerald-glow);
  position: relative;
}

.phone-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1.25rem;
}

.phone-notch {
  width: 80px;
  height: 12px;
  background: #000;
  border-radius: 10px;
  margin: 0 auto;
}

.order-badge {
  background: rgba(16, 185, 129, 0.15);
  border: 1px solid var(--emerald);
  padding: 0.35rem 0.75rem;
  border-radius: 8px;
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--emerald-neon);
}

.map-simulation {
  height: 230px;
  border-radius: 18px;
  position: relative;
  overflow: hidden;
  border: 1px solid var(--border-glow);
  margin-bottom: 1.25rem;
  box-shadow: inset 0 0 20px rgba(0, 0, 0, 0.6);
}

.map-bg-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  filter: contrast(1.05) brightness(0.95);
  transition: transform 10s ease-in-out;
}

.map-simulation:hover .map-bg-img {
  transform: scale(1.08);
}

.map-live-overlay {
  position: absolute;
  top: 10px;
  left: 10px;
  z-index: 10;
}

.live-tag {
  background: rgba(6, 9, 14, 0.85);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(16, 185, 129, 0.4);
  padding: 0.25rem 0.65rem;
  border-radius: 999px;
  font-size: 0.7rem;
  font-weight: 800;
  color: var(--emerald-neon);
  display: flex;
  align-items: center;
  gap: 0.35rem;
}

.live-tag span {
  color: #ef4444;
  animation: live-blink 1.2s infinite;
}

@keyframes live-blink {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.2; }
}

.rider-marker-live {
  position: absolute;
  top: 48%;
  left: 52%;
  transform: translate(-50%, -50%);
  width: 38px;
  height: 38px;
  background: radial-gradient(circle, var(--emerald-neon) 0%, var(--emerald) 100%);
  border: 2px solid #ffffff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.95rem;
  box-shadow: 0 0 20px var(--emerald-neon), 0 0 40px rgba(0, 230, 118, 0.6);
  z-index: 15;
  animation: rider-pulse-glow 2s infinite ease-in-out;
}

@keyframes rider-pulse-glow {
  0% { transform: translate(-50%, -50%) scale(1); box-shadow: 0 0 15px var(--emerald-neon); }
  50% { transform: translate(-50%, -50%) scale(1.15); box-shadow: 0 0 30px var(--emerald-neon), 0 0 50px var(--emerald); }
  100% { transform: translate(-50%, -50%) scale(1); box-shadow: 0 0 15px var(--emerald-neon); }
}

.delivery-card-floating {
  position: absolute;
  bottom: -20px;
  right: -20px;
  background: rgba(12, 18, 30, 0.95);
  backdrop-filter: blur(12px);
  border: 1px solid var(--border-glow);
  padding: 1rem 1.25rem;
  border-radius: 16px;
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.5);
  display: flex;
  align-items: center;
  gap: 0.85rem;
  animation: float-mini 4s ease-in-out infinite alternate;
}

@keyframes float-mini {
  0% { transform: translateY(0px); }
  100% { transform: translateY(-10px); }
}

.driver-avatar {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--gold), var(--emerald));
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  color: #000;
}

/* Continuous Marquee Section */
.marquee-section {
  padding: 2.5rem 0;
  background: #04060a;
  border-y: 1px solid var(--border-color);
  overflow: hidden;
  white-space: nowrap;
}

.marquee-track {
  display: inline-flex;
  gap: 3rem;
  animation: marquee-scroll 25s linear infinite;
}

.marquee-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  color: var(--text-muted);
  font-size: 1.1rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.marquee-item span {
  color: var(--emerald-neon);
}

@keyframes marquee-scroll {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

/* Sections Global */
.section {
  padding: 6rem 0;
  position: relative;
}

.section-header {
  text-align: center;
  max-width: 680px;
  margin: 0 auto 4rem;
}

.section-tag {
  color: var(--emerald-neon);
  font-weight: 800;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 0.5rem;
  display: block;
}

.section-header h2 {
  font-size: 2.75rem;
  margin-bottom: 1rem;
}

.section-header p {
  color: var(--text-sub);
  font-size: 1.1rem;
}

/* Bento Grid Features */
.bento-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.75rem;
}

.bento-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 20px;
  padding: 2.25rem;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  position: relative;
  overflow: hidden;
}

.bento-card:hover {
  background: var(--bg-card-hover);
  border-color: var(--border-glow);
  transform: translateY(-5px);
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.4), 0 0 20px var(--emerald-glow);
}

.bento-card.span-2 {
  grid-column: span 2;
}

.bento-icon {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  background: rgba(16, 185, 129, 0.12);
  border: 1px solid rgba(16, 185, 129, 0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--emerald-neon);
  font-size: 1.5rem;
  margin-bottom: 1.5rem;
}

.bento-card h3 {
  font-size: 1.4rem;
  margin-bottom: 0.75rem;
}

.bento-card p {
  color: var(--text-sub);
  font-size: 0.95rem;
}

/* How It Works Section */
.how-tabs {
  display: flex;
  justify-content: center;
  gap: 1rem;
  margin-bottom: 3.5rem;
}

.tab-pill {
  padding: 0.75rem 2rem;
  border-radius: 999px;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  color: var(--text-sub);
  font-size: 1rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.25s ease;
}

.tab-pill.active {
  background: var(--emerald);
  color: #000;
  border-color: var(--emerald-neon);
  box-shadow: 0 0 20px var(--emerald-glow);
}

.steps-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
}

.step-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 20px;
  padding: 2rem 1.5rem;
  position: relative;
}

.step-num {
  font-size: 2.5rem;
  font-weight: 900;
  color: var(--emerald-neon);
  opacity: 0.4;
  margin-bottom: 1rem;
}

.step-card h4 {
  font-size: 1.2rem;
  margin-bottom: 0.5rem;
}

.step-card p {
  font-size: 0.9rem;
  color: var(--text-sub);
}

/* Live Stats Counter Grid */
.stats-banner {
  background: linear-gradient(135deg, #0a1420 0%, #06090e 100%);
  border: 1px solid var(--border-glow);
  border-radius: 28px;
  padding: 3.5rem 2rem;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
  text-align: center;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
}

.stat-item h3 {
  font-size: 3.2rem;
  font-weight: 900;
  color: var(--emerald-neon);
  margin-bottom: 0.25rem;
}

.stat-item p {
  color: var(--text-sub);
  font-size: 0.95rem;
  font-weight: 600;
}

/* FAQ Accordion */
.faq-list {
  max-width: 800px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.faq-item {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 16px;
  overflow: hidden;
  transition: all 0.25s ease;
}

.faq-item.active {
  border-color: var(--border-glow);
  background: var(--bg-card-hover);
}

.faq-question {
  width: 100%;
  padding: 1.5rem;
  background: none;
  border: none;
  color: var(--text-main);
  font-size: 1.1rem;
  font-weight: 700;
  text-align: left;
  display: flex;
  align-items: center;
  justify-content: space-between;
  cursor: pointer;
}

.faq-icon {
  font-size: 1.25rem;
  transition: transform 0.3s ease;
  color: var(--emerald-neon);
}

.faq-item.active .faq-icon {
  transform: rotate(45deg);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s ease, padding 0.35s ease;
  color: var(--text-sub);
  font-size: 0.95rem;
  line-height: 1.7;
}

.faq-item.active .faq-answer {
  max-height: 300px;
  padding: 0 1.5rem 1.5rem;
}

/* CTA Download Banner */
.cta-banner {
  background: linear-gradient(135deg, var(--emerald) 0%, #047857 100%);
  border-radius: 28px;
  padding: 4rem 3rem;
  color: #03140b;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  box-shadow: 0 20px 50px var(--emerald-glow);
  position: relative;
  overflow: hidden;
}

.cta-banner h2 {
  font-size: 2.75rem;
  margin-bottom: 1rem;
  color: #021209;
}

.cta-banner p {
  font-size: 1.15rem;
  color: #064e3b;
  max-width: 540px;
}

/* Footer */
.footer {
  background: #030508;
  border-top: 1px solid var(--border-color);
  padding: 4rem 0 2rem;
  color: var(--text-muted);
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr repeat(3, 1fr);
  gap: 3rem;
  margin-bottom: 3rem;
}

.footer-col h5 {
  color: var(--text-main);
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 1.25rem;
}

.footer-col ul {
  list-style: none;
}

.footer-col ul li {
  margin-bottom: 0.75rem;
}

.footer-col ul li a {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.9rem;
  transition: color 0.2s ease;
}

.footer-col ul li a:hover {
  color: var(--emerald-neon);
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  padding-top: 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.85rem;
}

/* Modal Popup */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.8);
  backdrop-filter: blur(8px);
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

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

.modal-card {
  background: var(--bg-card);
  border: 1px solid var(--border-glow);
  border-radius: 24px;
  padding: 2.5rem;
  max-width: 440px;
  width: 90%;
  text-align: center;
  position: relative;
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.7);
  transform: translateY(20px);
  transition: transform 0.3s ease;
}

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

.modal-close {
  position: absolute;
  top: 1rem;
  right: 1.25rem;
  background: none;
  border: none;
  color: var(--text-muted);
  font-size: 1.5rem;
  cursor: pointer;
}

.modal-icon {
  width: 64px;
  height: 64px;
  background: rgba(245, 158, 11, 0.15);
  border: 1px solid var(--gold);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--gold);
  font-size: 1.75rem;
  margin: 0 auto 1.25rem;
}

/* Scroll Reveals */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal.active {
  opacity: 1;
  transform: translateY(0);
}

/* Media Queries */
@media (max-width: 992px) {
  .hero-grid { grid-template-columns: 1fr; text-align: center; }
  .hero h1 { font-size: 2.8rem; }
  .hero-sub { margin: 0 auto 2rem; }
  .hero-buttons { justify-content: center; }
  .hero-stats-mini { justify-content: center; }
  .bento-grid { grid-template-columns: 1fr; }
  .bento-card.span-2 { grid-column: span 1; }
  .steps-grid { grid-template-columns: repeat(2, 1fr); }
  .stats-banner { grid-template-columns: repeat(2, 1fr); }
  .cta-banner { flex-direction: column; text-align: center; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 640px) {
  .nav-links { display: none; }
  .hero h1 { font-size: 2.2rem; }
  .steps-grid { grid-template-columns: 1fr; }
  .stats-banner { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; gap: 1rem; text-align: center; }
}
