:root {
  --primary: #10B981;
  --primary-dark: #059669;
  --primary-light: #34D399;
  --primary-lighter: #6EE7B7;

  --bg: #020617;
  --border: rgba(255, 255, 255, 0.08);

  --text: #F8FAFC;
  --text-secondary: #94A3B8;
  --text-muted: #64748B;

  --radius: 12px;
  --radius-lg: 18px;

  --font: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --ease: cubic-bezier(0.4, 0, 0.2, 1);
  --ease-out: cubic-bezier(0, 0, 0.2, 1);
  --ease-bounce: cubic-bezier(0.34, 1.56, 0.64, 1);
  --transition: 0.4s var(--ease);
}

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

html { -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; }

body {
  font-family: var(--font);
  color: var(--text);
  background: var(--bg);
  line-height: 1.5;
  overflow: hidden;
  height: 100vh;
  width: 100vw;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
button { cursor: pointer; border: none; background: none; font-family: inherit; }

#app {
  position: relative;
  width: 100vw;
  height: 100vh;
  overflow: hidden;
}

#particleCanvas {
  position: fixed;
  top: 0; left: 0;
  width: 100vw; height: 100vh;
  z-index: 0;
  pointer-events: none;
}

.radial-lights {
  position: fixed;
  top: 0; left: 0;
  width: 100vw; height: 100vh;
  z-index: 0;
  pointer-events: none;
}

.radial-light {
  position: absolute;
  border-radius: 50%;
}

.light-top {
  width: 600px; height: 600px;
  background: radial-gradient(circle, rgba(16, 185, 129, 0.04) 0%, transparent 70%);
  top: -200px; right: 20%;
  animation: auroraDrift 25s ease-in-out infinite;
}

.light-bottom {
  width: 700px; height: 700px;
  background: radial-gradient(circle, rgba(99, 102, 241, 0.03) 0%, transparent 70%);
  bottom: -250px; left: 15%;
  animation: auroraDrift2 30s ease-in-out infinite;
}

.light-center {
  width: 900px; height: 900px;
  background: radial-gradient(circle, rgba(16, 185, 129, 0.025) 0%, transparent 70%);
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  animation: auroraDrift 35s ease-in-out infinite reverse;
}

.hero {
  position: relative;
  width: 100vw;
  height: 100vh;
  z-index: 1;
  display: flex;
  flex-direction: column;
  padding: 28px 56px 20px;
}

.hero-header {
  display: flex;
  align-items: center;
  z-index: 10;
  padding-bottom: 8px;
  opacity: 0;
  animation: fadeInDown 0.8s var(--ease-out) 0.15s forwards;
}

.hero-logo {
  height: 26px;
  width: auto;
  opacity: 0.85;
  transition: opacity 0.3s var(--ease);
}

.hero-logo:hover { opacity: 1; }

.hero-scene {
  flex: 1;
  display: grid;
  grid-template-columns: 420px 1fr;
  gap: 20px;
  max-width: 1440px;
  width: 100%;
  margin: 0 auto;
  align-items: center;
}

.hero-scene-left {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 8px;
  z-index: 3;
  padding-right: 20px;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 16px;
  border-radius: var(--radius-full);
  background: rgba(16, 185, 129, 0.06);
  border: 1px solid rgba(16, 185, 129, 0.12);
  font-size: 12px;
  font-weight: 500;
  color: var(--primary-light);
  width: fit-content;
  opacity: 0;
  animation: fadeInUp 0.8s var(--ease-out) 0.25s forwards;
  letter-spacing: 0.2px;
}

.badge-dot {
  width: 5px; height: 5px;
  border-radius: 50%;
  background: var(--primary);
  animation: pulse 2.5s ease-in-out infinite;
}

.hero-title {
  display: flex;
  flex-direction: column;
  margin-top: 2px;
  opacity: 0;
  animation: fadeInUp 0.8s var(--ease-out) 0.35s forwards;
}

.hero-title-line {
  font-size: clamp(48px, 4.8vw, 72px);
  font-weight: 800;
  letter-spacing: -2.5px;
  line-height: 1.05;
}

.hero-title-line--first {
  font-weight: 300;
  color: var(--text-secondary);
}

.hero-title-line--second {
  background: linear-gradient(135deg, var(--primary-lighter), var(--primary), var(--primary-dark));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-tagline {
  font-size: clamp(16px, 1.3vw, 22px);
  font-weight: 600;
  color: var(--text-secondary);
  letter-spacing: -0.3px;
  margin-top: 2px;
  opacity: 0;
  animation: fadeInUp 0.8s var(--ease-out) 0.45s forwards;
}

.hero-description {
  font-size: clamp(14px, 0.95vw, 16px);
  color: var(--text-muted);
  max-width: 360px;
  line-height: 1.6;
  margin-top: 2px;
  opacity: 0;
  animation: fadeInUp 0.8s var(--ease-out) 0.55s forwards;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 20px;
  opacity: 0;
  animation: fadeInUp 0.8s var(--ease-out) 0.7s forwards;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 28px;
  border-radius: var(--radius-lg);
  font-family: var(--font);
  font-size: 15px;
  font-weight: 600;
  transition: all 0.35s var(--ease-bounce);
  position: relative;
  overflow: hidden;
  outline: none;
  letter-spacing: 0.1px;
}

.btn svg { width: 20px; height: 20px; }

.btn-app {
  background: rgba(255, 255, 255, 0.03);
  color: var(--text);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

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

.btn-app:active { transform: translateY(0); }

.btn-app.btn-highlight {
  border-color: var(--primary);
  background: rgba(16, 185, 129, 0.1);
  box-shadow: 0 0 0 1px rgba(16, 185, 129, 0.4), 0 0 30px rgba(16, 185, 129, 0.12);
}

.btn-app.btn-highlight:hover {
  box-shadow: 0 0 0 1px rgba(16, 185, 129, 0.6), 0 0 40px rgba(16, 185, 129, 0.2);
}

.btn-web {
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  color: white;
  border: none;
  box-shadow: 0 4px 24px rgba(16, 185, 129, 0.2);
}

.btn-web:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 32px rgba(16, 185, 129, 0.35);
}

.btn-web:active { transform: translateY(-1px); }

.btn-web.btn-highlight {
  box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.2), 0 8px 32px rgba(16, 185, 129, 0.35);
}

/* ---- VISUAL SCENE ---- */

.hero-scene-center {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  height: 100%;
  min-height: 500px;
}

.africa-map-wrapper {
  position: absolute;
  width: 95%;
  max-width: 620px;
  aspect-ratio: 1;
  z-index: 1;
  opacity: 0;
  animation: fadeInScale 1.2s var(--ease-out) 0.15s forwards;
  pointer-events: auto;
  cursor: default;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}

.map-glow-bg {
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  width: 150%;
  height: 150%;
  background: radial-gradient(circle, rgba(16, 185, 129, 0.06) 0%, transparent 60%);
  pointer-events: none;
}

.africa-map-svg {
  width: 100%;
  height: 100%;
  object-fit: contain;
  opacity: 0.9;
}

/* ---- Devices Stack ---- */

.hero-devices {
  position: relative;
  z-index: 3;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Laptop */

.laptop-mockup {
  position: relative;
  z-index: 2;
  animation: floatLaptop 7s ease-in-out infinite;
  transform-style: preserve-3d;
  perspective: 1200px;
  margin-right: -40px;
  margin-top: 40px;
}

.laptop-screen {
  width: 520px;
  height: 338px;
  background: #0A0A0A;
  border-radius: 16px;
  padding: 10px;
  box-shadow:
    0 30px 90px rgba(0, 0, 0, 0.6),
    0 0 60px rgba(16, 185, 129, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.06);
}

.laptop-notch {
  position: absolute;
  top: 10px;
  left: 50%;
  transform: translateX(-50%);
  width: 90px;
  height: 6px;
  background: #0A0A0A;
  border-radius: 0 0 8px 8px;
  z-index: 3;
  display: flex;
  align-items: center;
  justify-content: center;
}

.laptop-camera {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: rgba(16, 185, 129, 0.1);
}

.laptop-display {
  width: 100%;
  height: 100%;
  border-radius: 9px;
  overflow: hidden;
  background: #FFFFFF;
}

.laptop-screenshot {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top left;
  display: block;
}

.laptop-base {
  width: 520px;
  height: 18px;
  background: linear-gradient(180deg, #1A1A1A 0%, #111 100%);
  border-radius: 0 0 8px 8px;
  border: 1px solid rgba(255, 255, 255, 0.03);
  border-top: none;
  margin-top: -2px;
  position: relative;
  overflow: hidden;
}

.laptop-hinge {
  position: absolute;
  top: -2px;
  left: 50%;
  transform: translateX(-50%);
  width: 120%;
  height: 3px;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.02), transparent);
}

.laptop-shadow {
  position: absolute;
  bottom: -30px;
  left: 50%;
  transform: translateX(-50%) perspective(500px) rotateX(60deg);
  width: 480px;
  height: 40px;
  background: radial-gradient(ellipse, rgba(0, 0, 0, 0.3) 0%, transparent 70%);
  z-index: -1;
}

/* Phone */

.phone-mockup {
  position: relative;
  z-index: 3;
  animation: floatPhone 6s ease-in-out infinite;
  transform-style: preserve-3d;
  perspective: 800px;
  margin-left: -50px;
  margin-bottom: 60px;
}

.phone-frame {
  width: 200px;
  height: 400px;
  background: linear-gradient(180deg, #1E293B 0%, #0F172A 100%);
  border-radius: 34px;
  padding: 8px;
  box-shadow:
    0 25px 60px rgba(0, 0, 0, 0.55),
    0 0 40px rgba(16, 185, 129, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.05);
}

.phone-dynamic-island {
  position: absolute;
  top: 10px;
  left: 50%;
  transform: translateX(-50%);
  width: 70px;
  height: 18px;
  background: #0F172A;
  border-radius: 0 0 12px 12px;
  z-index: 2;
}

.phone-screen-inner {
  width: 100%;
  height: 100%;
  border-radius: 28px;
  overflow: hidden;
  background: #FFFFFF;
  display: flex;
  flex-direction: column;
}

.phone-status-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 16px 6px;
  font-size: 10px;
  font-weight: 700;
  color: #1E293B;
}

.phone-status-icons { display: flex; gap: 4px; color: #1E293B; }

.phone-app-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 6px 16px;
}

.phone-app-logo-img { height: 13px; width: auto; }

.phone-search-bar {
  display: flex;
  align-items: center;
  gap: 6px;
  margin: 6px 16px;
  padding: 8px 12px;
  background: #F1F5F9;
  border-radius: 8px;
  font-size: 10px;
  color: #94A3B8;
}

.phone-categories {
  display: flex;
  gap: 4px;
  padding: 0 16px;
  margin-bottom: 6px;
}

.phone-cat {
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 8px;
  font-weight: 600;
  color: #64748B;
  background: #F1F5F9;
  transition: all 0.3s var(--ease);
}

.phone-cat.active { background: #10B981; color: #FFFFFF; }

.phone-listing {
  display: flex;
  gap: 8px;
  padding: 6px 16px;
  border-bottom: 1px solid #F1F5F9;
}

.phone-listing:last-of-type { border-bottom: none; }

.phone-listing-img {
  width: 48px;
  height: 48px;
  border-radius: 8px;
  flex-shrink: 0;
}

.phone-listing-info { flex: 1; min-width: 0; }

.phone-listing-price {
  font-size: 12px;
  font-weight: 800;
  color: #059669;
}

.phone-listing-price span { font-size: 8px; font-weight: 500; color: #94A3B8; }

.phone-listing-title {
  font-size: 10px;
  font-weight: 600;
  color: #0F172A;
  margin-top: 2px;
}

.phone-listing-location {
  font-size: 8px;
  color: #64748B;
  margin-top: 1px;
}

.phone-bottom-nav {
  display: flex;
  justify-content: space-around;
  align-items: center;
  padding: 4px 6px;
  border-top: 1px solid #F1F5F9;
  margin-top: auto;
  background: #FAFAFA;
}

.phone-nav-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  font-size: 6px;
  color: #94A3B8;
  padding: 4px 8px;
  transition: all 0.3s var(--ease);
}

.phone-nav-item.active { color: #10B981; }

/* ---- FOOTER ---- */

.hero-footer {
  z-index: 10;
  opacity: 0;
  animation: fadeIn 1s var(--ease-out) 1.2s forwards;
}

.hero-footer-social {
  display: flex;
  justify-content: center;
  gap: 56px;
  padding: 18px 0 14px;
}

.social-link {
  display: flex;
  align-items: center;
  gap: 10px;
  color: rgba(255, 255, 255, 0.45);
  transition: all 0.35s var(--ease);
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.3px;
}

.social-link:hover {
  color: rgba(255, 255, 255, 0.85);
}

.social-link svg {
  transition: all 0.35s var(--ease);
}

.social-link:hover svg {
  stroke: var(--primary-light);
  filter: drop-shadow(0 0 10px rgba(16, 185, 129, 0.35));
}

.hero-footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 14px;
  font-size: 11px;
  color: var(--text-muted);
  border-top: 1px solid var(--border);
}

.hero-footer-links {
  display: flex;
  gap: 24px;
}

.hero-footer-links a {
  transition: color 0.3s var(--ease);
  color: var(--text-muted);
}

.hero-footer-links a:hover { color: var(--text-secondary); }

/* ---- RESPONSIVE ---- */

@media (max-width: 1300px) {
  .hero-scene { grid-template-columns: 360px 1fr; }
  .laptop-screen { width: 420px; height: 273px; }
  .laptop-base { width: 420px; }
  .laptop-shadow { width: 400px; }
  .phone-frame { width: 170px; height: 340px; }
}

@media (max-width: 1100px) {
  .hero-scene { grid-template-columns: 320px 1fr; gap: 10px; }
  .hero { padding: 24px 36px 18px; }
  .laptop-screen { width: 360px; height: 234px; border-radius: 12px; }
  .laptop-base { width: 360px; }
  .laptop-shadow { width: 340px; }
  .laptop-mockup { margin-right: -20px; margin-top: 30px; }
  .phone-frame { width: 150px; height: 300px; border-radius: 28px; }
  .phone-mockup { margin-left: -30px; margin-bottom: 40px; }
  .africa-map-wrapper { max-width: 480px; }
  .btn { padding: 12px 22px; font-size: 14px; }
}

@media (max-width: 900px) {
  body { overflow-y: auto; }
  #app { height: auto; min-height: 100vh; overflow-y: auto; }
  .hero { height: auto; min-height: 100vh; padding: 20px 28px; overflow-y: auto; }
  .hero-scene {
    grid-template-columns: 1fr;
    gap: 8px;
    padding: 10px 0;
  }
  .hero-scene-left {
    order: 1;
    align-items: center;
    text-align: center;
    padding: 8px 0 0;
  }
  .hero-badge { margin: 0 auto; }
  .hero-title { align-items: center; }
  .hero-description { margin: 2px auto 0; }
  .hero-actions { justify-content: center; }
  .hero-scene-center {
    order: 2;
    min-height: 400px;
  }
  .africa-map-wrapper { max-width: 400px; }
  .hero-devices { transform: scale(0.8); }
  .hero-footer-social { gap: 36px; }
  .social-link { font-size: 13px; }
  .social-link svg { width: 24px; height: 24px; }
}

@media (max-width: 640px) {
  .hero { padding: 14px 16px; }
  .hero-scene-center { min-height: 300px; }
  .africa-map-wrapper { max-width: 280px; }
  .hero-devices { transform: scale(0.55); transform-origin: center center; }
  .laptop-notch { display: none; }
  .phone-dynamic-island { display: none; }
  .btn { padding: 12px 20px; font-size: 13px; justify-content: center; }
  .hero-actions { flex-direction: column; align-items: stretch; }
  .hero-footer-social {
    flex-direction: column;
    align-items: center;
    gap: 16px;
    padding: 14px 0;
  }
  .hero-footer-bottom {
    flex-direction: column;
    gap: 8px;
    text-align: center;
  }
}
