/* =====================================================
   ALIKEGPS — HERO REDESIGN 2026
   Premium above-the-fold design
   ===================================================== */

/* ---------- Light Header (original style) ---------- */
.header {
  background: #fff !important;
  backdrop-filter: none !important;
  box-shadow: 0 2px 20px rgba(0, 0, 0, 0.08) !important;
  border-bottom: none !important;
}

.nav-link {
  color: #334155 !important;
}

.nav-link:hover,
.nav-link.active {
  color: #2563eb !important;
  background: transparent !important;
}

.dropdown-menu {
  background: #fff !important;
  border: none !important;
}

.dropdown-menu li a {
  color: #475569 !important;
}

.dropdown-menu li a:hover {
  background: #f8fafc !important;
  color: #2563eb !important;
}

.hamburger span {
  background: #334155 !important;
}

.top-bar {
  background: linear-gradient(135deg, #0a1628 0%, #0d1f3c 100%) !important;
}

/* Mobile nav drawer — light theme */
@media (max-width: 768px) {
  .nav-menu {
    background: #fff !important;
    border-left: 1px solid #e2e8f0 !important;
  }

  .nav-link {
    color: #334155 !important;
    border-bottom-color: #f1f5f9 !important;
  }

  .nav-link:hover,
  .nav-link.active {
    color: #2563eb !important;
    background: transparent !important;
  }

  .hamburger.active span {
    background: #334155 !important;
  }
}

/* Reset body bg after hero */
body {
  background: #fff;
}



/* ---------- Hero Wrapper ---------- */
.hero-v2 {
  position: relative;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  background: #020817;
}

/* Animated mesh-gradient background */
.hero-v2::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 80% 60% at 70% 40%, rgba(37, 99, 235, 0.28) 0%, transparent 60%),
    radial-gradient(ellipse 50% 50% at 15% 80%, rgba(6, 182, 212, 0.18) 0%, transparent 55%),
    radial-gradient(ellipse 40% 40% at 85% 85%, rgba(139, 92, 246, 0.14) 0%, transparent 50%),
    linear-gradient(160deg, #020817 0%, #0a1628 40%, #0d1f3c 70%, #091224 100%);
  z-index: 0;
}

/* Animated grid overlay */
.hero-v2::after {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(37, 99, 235, 0.07) 1px, transparent 1px),
    linear-gradient(90deg, rgba(37, 99, 235, 0.07) 1px, transparent 1px);
  background-size: 60px 60px;
  z-index: 0;
  mask-image: radial-gradient(ellipse 80% 80% at 50% 50%, black 30%, transparent 100%);
}

/* ---------- Canvas Particles ---------- */
#heroParticles {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
}

/* ---------- Right Map Zone ---------- */
.hero-map-zone {
  position: relative;
  width: 100%;
  height: 480px;          /* fixed height so getBoundingClientRect always works */
  border-radius: 20px;
  overflow: hidden;
  border: 1px solid rgba(59, 130, 246, 0.18);
  background: rgba(5, 15, 35, 0.7);
  box-shadow:
    0 0 0 1px rgba(59, 130, 246, 0.08),
    0 20px 60px rgba(0, 0, 0, 0.4),
    inset 0 1px 1px rgba(255, 255, 255, 0.04);
  align-self: stretch;
}

/* Canvas fills the zone exactly */
.hero-map-zone canvas {
  position: absolute;
  top: 0;
  left: 0;
  z-index: 1;
}

.hero-map-zone::before {
  content: 'LIVE FLEET TRACKER';
  position: absolute;
  top: 14px;
  left: 16px;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 2px;
  color: rgba(99, 179, 255, 0.8);
  z-index: 5;
  font-family: 'Inter', monospace;
  pointer-events: none;
}

.hero-map-zone::after {
  content: '';
  position: absolute;
  top: 12px;
  right: 14px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #10b981;
  z-index: 5;
  pointer-events: none;
  box-shadow: 0 0 0 3px rgba(16,185,129,0.25), 0 0 10px rgba(16,185,129,0.6);
  animation: pulse-dot 2s ease-in-out infinite;
}

/* ---------- Hero Main Row ---------- */
.hero-v2-inner {
  position: relative;
  z-index: 2;
  flex: 1;
  display: flex;
  align-items: center;
  padding: 72px 0 40px;
}

.hero-v2-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}

/* ---------- LEFT: Copy ---------- */
.hero-v2-content {
  color: #fff;
}

/* Pill badge */
.hero-v2-pill {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: rgba(37, 99, 235, 0.18);
  border: 1px solid rgba(37, 99, 235, 0.4);
  backdrop-filter: blur(12px);
  padding: 8px 18px;
  border-radius: 50px;
  font-size: 13px;
  font-weight: 600;
  color: #93c5fd;
  margin-bottom: 28px;
  animation: fadeSlideUp 0.6s ease both;
}

.hero-v2-pill .pill-dot {
  width: 8px;
  height: 8px;
  background: #22d3ee;
  border-radius: 50%;
  animation: pulse-dot 2s ease-in-out infinite;
}

@keyframes pulse-dot {

  0%,
  100% {
    box-shadow: 0 0 0 0 rgba(34, 211, 238, 0.5);
  }

  50% {
    box-shadow: 0 0 0 6px rgba(34, 211, 238, 0);
  }
}

/* Headline */
.hero-v2-headline {
  font-family: 'Poppins', sans-serif;
  font-size: clamp(2.4rem, 5vw, 3.8rem);
  font-weight: 800;
  line-height: 1.12;
  color: #fff;
  margin-bottom: 20px;
  animation: fadeSlideUp 0.7s 0.1s ease both;
}

.hero-v2-headline .hl-white {
  color: #fff;
}

.hero-v2-headline .hl-gradient {
  background: linear-gradient(135deg, #38bdf8 0%, #818cf8 50%, #22d3ee 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-v2-headline .hl-accent {
  position: relative;
  display: inline-block;
  color: #fff;
}

.hero-v2-headline .hl-accent::after {
  content: '';
  position: absolute;
  bottom: 4px;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, #38bdf8, #818cf8);
  border-radius: 2px;
}

/* Sub-copy */
.hero-v2-desc {
  font-size: 17px;
  color: #94a3b8;
  line-height: 1.8;
  margin-bottom: 36px;
  max-width: 520px;
  animation: fadeSlideUp 0.7s 0.2s ease both;
}

/* CTA row */
.hero-v2-cta {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  margin-bottom: 44px;
  animation: fadeSlideUp 0.7s 0.3s ease both;
}

.btn-hero-primary {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 16px 34px;
  background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%);
  color: #fff;
  font-size: 16px;
  font-weight: 700;
  border-radius: 14px;
  text-decoration: none;
  transition: all 0.25s;
  box-shadow: 0 8px 32px rgba(37, 99, 235, 0.4), 0 0 0 1px rgba(37, 99, 235, 0.5);
  position: relative;
  overflow: hidden;
}

.btn-hero-primary::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -60%;
  width: 60%;
  height: 200%;
  background: rgba(255, 255, 255, 0.15);
  transform: skewX(-20deg);
  transition: left 0.4s;
}

.btn-hero-primary:hover::before {
  left: 130%;
}

.btn-hero-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 16px 40px rgba(37, 99, 235, 0.5), 0 0 0 1px rgba(37, 99, 235, 0.6);
}

.btn-hero-price {
  font-size: 12px;
  opacity: 0.85;
  font-weight: 500;
}

.btn-hero-whatsapp {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 16px 28px;
  background: #25d366;
  color: #fff;
  font-size: 16px;
  font-weight: 700;
  border-radius: 14px;
  text-decoration: none;
  transition: all 0.25s;
  box-shadow: 0 8px 24px rgba(37, 211, 102, 0.35);
}

.btn-hero-whatsapp:hover {
  background: #128c7e;
  transform: translateY(-3px);
  box-shadow: 0 16px 36px rgba(37, 211, 102, 0.4);
}

/* Mini stats row */
.hero-v2-stats {
  display: flex;
  gap: 32px;
  align-items: center;
  flex-wrap: wrap;
  animation: fadeSlideUp 0.7s 0.4s ease both;
}

.hero-v2-stat {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.hero-v2-stat-num {
  font-family: 'Poppins', sans-serif;
  font-size: 28px;
  font-weight: 800;
  color: #fff;
  line-height: 1.1;
}

.hero-v2-stat-label {
  font-size: 12px;
  color: #64748b;
  font-weight: 500;
  margin-top: 2px;
}

.hero-v2-stat-divider {
  width: 1px;
  height: 36px;
  background: rgba(255, 255, 255, 0.1);
}

/* Star rating row */
.hero-v2-rating {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin-top: 28px;
  animation: fadeSlideUp 0.7s 0.5s ease both;
}

.hero-v2-stars {
  display: flex;
  gap: 3px;
  margin-top: 4px;
  /* Align with first line of text better */
}

.hero-v2-stars i {
  color: #f59e0b;
  font-size: 16px;
}

.hero-v2-rating-content {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.hero-v2-rating-text {
  font-size: 14px;
  color: #94a3b8;
}

.hero-v2-rating-text strong {
  color: #fff;
  font-weight: 700;
}

.hero-v2-rating-subtext {
  font-size: 13px;
  color: #38bdf8;
  font-style: italic;
  font-weight: 500;
}

/* ---------- RIGHT: Visual ---------- */
.hero-v2-visual {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  animation: fadeSlideUp 0.9s 0.2s ease both;
}

/* Glowing platform */
.hero-v2-platform {
  position: relative;
  width: 100%;
  max-width: 540px;
}

/* Glow ring behind device */
.hero-v2-glow {
  position: absolute;
  bottom: -40px;
  left: 50%;
  transform: translateX(-50%);
  width: 340px;
  height: 80px;
  background: radial-gradient(ellipse, rgba(37, 99, 235, 0.55) 0%, transparent 70%);
  border-radius: 50%;
  filter: blur(20px);
  z-index: 0;
}

/* Device image */
.hero-v2-device {
  position: relative;
  z-index: 2;
  width: 100%;
  filter: drop-shadow(0 30px 60px rgba(0, 0, 0, 0.6)) drop-shadow(0 0 40px rgba(37, 99, 235, 0.3));
  animation: device-float 4s ease-in-out infinite;
}

@keyframes device-float {

  0%,
  100% {
    transform: translateY(0px) rotate(0deg);
  }

  33% {
    transform: translateY(-12px) rotate(0.5deg);
  }

  66% {
    transform: translateY(-6px) rotate(-0.5deg);
  }
}

/* Floating feature chips */
.hero-v2-chip {
  position: absolute;
  background: rgba(15, 23, 42, 0.75);
  border: 1px solid rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(16px);
  border-radius: 14px;
  padding: 12px 18px;
  display: flex;
  align-items: center;
  gap: 10px;
  z-index: 10;
  animation: chip-float 3.5s ease-in-out infinite;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.35), inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.hero-v2-chip-icon {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  flex-shrink: 0;
}

.hero-v2-chip-text {
  display: flex;
  flex-direction: column;
}

.hero-v2-chip-title {
  font-size: 13px;
  font-weight: 700;
  color: #f1f5f9;
  white-space: nowrap;
}

.hero-v2-chip-sub {
  font-size: 11px;
  color: #64748b;
  white-space: nowrap;
}

/* Chip positions */
.chip-realtime {
  top: 8%;
  left: -30px;
  animation-delay: 0s;
}

.chip-realtime .hero-v2-chip-icon {
  background: rgba(37, 99, 235, 0.25);
  color: #60a5fa;
}

.chip-cutoff {
  top: 38%;
  right: -35px;
  animation-delay: 1.2s;
}

.chip-cutoff .hero-v2-chip-icon {
  background: rgba(239, 68, 68, 0.2);
  color: #f87171;
}

.chip-warranty {
  bottom: 18%;
  left: -25px;
  animation-delay: 0.7s;
}

.chip-warranty .hero-v2-chip-icon {
  background: rgba(16, 185, 129, 0.2);
  color: #34d399;
}

.chip-support {
  bottom: 5%;
  right: -20px;
  animation-delay: 1.8s;
}

.chip-support .hero-v2-chip-icon {
  background: rgba(245, 158, 11, 0.2);
  color: #fbbf24;
}

@keyframes chip-float {

  0%,
  100% {
    transform: translateY(0px);
  }

  50% {
    transform: translateY(-8px);
  }
}

/* Orbiting ring */
.hero-v2-orbit {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 440px;
  height: 440px;
  margin: -220px 0 0 -220px;
  border: 1px solid rgba(37, 99, 235, 0.12);
  border-radius: 50%;
  animation: orbit-spin 25s linear infinite;
  z-index: 1;
}

.hero-v2-orbit::before {
  content: '';
  position: absolute;
  top: -4px;
  left: 50%;
  width: 8px;
  height: 8px;
  background: #38bdf8;
  border-radius: 50%;
  margin-left: -4px;
  box-shadow: 0 0 12px #38bdf8;
}

@keyframes orbit-spin {
  from {
    transform: rotate(0deg);
  }

  to {
    transform: rotate(360deg);
  }
}

/* ---------- Trust Bar (bottom of hero) — White Card Style ---------- */
.hero-v2-trust {
  position: relative;
  z-index: 3;
  background: rgba(255, 255, 255, 0.97);
  border-top: none;
  backdrop-filter: none;
  box-shadow: 0 -4px 30px rgba(0, 0, 0, 0.18), 0 8px 40px rgba(0, 0, 0, 0.08);
  margin: 0 20px;
  border-radius: 20px 20px 0 0;
}

.hero-v2-trust-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 22px 32px;
  gap: 0;
  flex-wrap: wrap;
}

.hero-v2-trust-item {
  display: flex;
  align-items: center;
  gap: 14px;
  flex: 1;
  min-width: 140px;
  justify-content: center;
}

.hero-v2-trust-icon {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  flex-shrink: 0;
  border: 2px solid;
}

.trust-icon-blue {
  background: transparent;
  color: #2563eb;
  border-color: #2563eb;
}

.trust-icon-green {
  background: transparent;
  color: #16a34a;
  border-color: #16a34a;
}

.trust-icon-amber {
  background: transparent;
  color: #d97706;
  border-color: #d97706;
}

.trust-icon-purple {
  background: transparent;
  color: #7c3aed;
  border-color: #7c3aed;
}

.trust-icon-cyan {
  background: transparent;
  color: #0891b2;
  border-color: #0891b2;
}

.hero-v2-trust-text {
  display: flex;
  flex-direction: column;
}

.hero-v2-trust-title {
  font-size: 14px;
  font-weight: 700;
  color: #0f172a;
  line-height: 1.2;
}

.hero-v2-trust-sub {
  font-size: 12px;
  color: #64748b;
  margin-top: 2px;
}

.hero-v2-trust-sep {
  width: 1px;
  height: 36px;
  background: #e2e8f0;
  flex-shrink: 0;
}

/* ---------- Animations ---------- */
@keyframes fadeSlideUp {
  from {
    opacity: 0;
    transform: translateY(24px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ---------- Responsive ---------- */
@media (max-width: 1080px) {
  .hero-v2-grid {
    grid-template-columns: 1fr;
    gap: 48px;
    text-align: center;
  }

  .hero-v2-pill {
    margin-left: auto;
    margin-right: auto;
  }

  .hero-v2-desc {
    margin-left: auto;
    margin-right: auto;
  }

  .hero-v2-cta {
    justify-content: center;
  }

  .hero-v2-stats {
    justify-content: center;
  }

  .hero-v2-rating {
    justify-content: center;
  }

  .hero-v2-stat {
    align-items: center;
  }

  .hero-v2-platform {
    max-width: 380px;
    margin: 0 auto;
  }

  .chip-realtime {
    left: -10px;
  }

  .chip-cutoff {
    right: -10px;
  }

  .chip-warranty {
    left: -10px;
  }

  .chip-support {
    right: -10px;
  }
}

@media (max-width: 768px) {
  .hero-v2-inner {
    padding: 90px 0 40px;
  }

  .hero-v2-headline {
    font-size: clamp(2rem, 8vw, 2.8rem);
  }

  .hero-map-zone {
    height: 420px;
    margin-top: 20px;
    margin-bottom: 30px;
  }

  .hero-v2-trust-inner {
    gap: 12px;
    padding: 16px 0;
  }

  .hero-v2-trust-item {
    min-width: 110px;
    gap: 8px;
  }

  .hero-v2-trust-sep {
    display: none;
  }

  .hero-v2-stats {
    gap: 20px;
  }

  .hero-v2-stat-divider {
    display: none;
  }
}

@media (max-width: 480px) {
  .hero-v2-inner {
    padding: 80px 0 32px;
  }

  .hero-v2-cta {
    flex-direction: column;
    align-items: center;
  }

  .btn-hero-primary,
  .btn-hero-whatsapp {
    width: 100%;
    max-width: 320px;
    justify-content: center;
  }

  /* Trust bar — mobile overrides */
  .hero-v2-trust {
    margin: 0;
    border-radius: 0;
  }

  /* Switch trust bar to a proper 2-column grid */
  .hero-v2-trust-inner {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
    padding: 16px 16px;
  }

  /* Last item (5th) spans both columns and centers itself */
  .hero-v2-trust-item:last-child {
    grid-column: 1 / -1;
    justify-self: center;
    width: 60%;
  }

  .hero-v2-trust-item {
    flex: unset;
    min-width: unset;
    gap: 10px;
    justify-content: flex-start;
    padding: 10px 12px;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
  }

  .hero-v2-trust-icon {
    width: 36px;
    height: 36px;
    font-size: 15px;
  }

  .hero-v2-trust-title {
    font-size: 12px;
  }

  .hero-v2-trust-sub {
    font-size: 10px;
  }
}