/* ============================================================
   EcoLag AI — home.css
   Home page specific styles
   ============================================================ */

/* ── SECTION PADDING ─────────────────────────────────────── */
.section-pad { padding: 100px 0; }

.section-header {
  text-align: center;
  margin-bottom: 60px;
}
.section-header h2 { margin-bottom: 16px; }

/* ── HERO ────────────────────────────────────────────────── */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding-top: var(--nav-h);
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
}
.orb-1 {
  width: 600px; height: 600px;
  top: -200px; left: -200px;
  background: radial-gradient(circle, rgba(0,135,83,0.18) 0%, transparent 70%);
}
.orb-2 {
  width: 500px; height: 500px;
  bottom: -100px; right: -100px;
  background: radial-gradient(circle, rgba(0,168,89,0.12) 0%, transparent 70%);
}
.orb-3 {
  width: 300px; height: 300px;
  top: 30%; right: 20%;
  background: radial-gradient(circle, rgba(255,199,44,0.08) 0%, transparent 70%);
}

.hero-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(0,135,83,0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0,135,83,0.04) 1px, transparent 1px);
  background-size: 60px 60px;
  mask-image: radial-gradient(ellipse at center, black 0%, transparent 70%);
}

.hero-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
  padding: 80px 0 60px;
  width: 100%;
}
.hero-content {
  min-width: 0;  /* prevent overflow */
}
.hero-visual {
  min-width: 0;
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
}

/* Hero content */
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 1px;
  color: var(--g3);
  background: rgba(0,135,83,0.1);
  border: 1px solid rgba(0,135,83,0.25);
  padding: 7px 16px;
  border-radius: 100px;
  margin-bottom: 28px;
}

.badge-dot {
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--g3);
  animation: pulse-green 2s ease infinite;
}

.hero-title {
  margin-bottom: 24px;
  animation: fadeUp 0.8s ease both;
}
.hero-title-green { color: var(--g3); }
.hero-title-gold  {
  color: var(--gold);
  position: relative;
}

.hero-desc {
  max-width: 460px;
  margin-bottom: 36px;
  animation: fadeUp 0.8s ease 0.15s both;
}

.hero-actions {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 48px;
  animation: fadeUp 0.8s ease 0.25s both;
}







/* Hero visual */
.hero-visual {
  position: relative;
  display: flex;
  justify-content: center;
  animation: fadeIn 1s ease 0.4s both;
}

.phone-mockup {
  position: relative;
  z-index: 2;
}

.phone-frame {
  width: 260px;
  height: 520px;
  background: linear-gradient(160deg, #1a2e1a, #0c1e0f);
  border: 2px solid rgba(0,135,83,0.3);
  border-radius: 44px;
  padding: 14px;
  box-shadow:
    0 40px 80px rgba(0,0,0,0.6),
    0 0 60px rgba(0,135,83,0.1),
    inset 0 1px 0 rgba(255,255,255,0.06);
  animation: float 6s ease-in-out infinite;
}

.phone-screen {
  width: 100%;
  height: 100%;
  border-radius: 32px;
  background: var(--dark);
  overflow: hidden;
  position: relative;
}

.phone-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.phone-placeholder {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  height: 100%;
  gap: 12px;
}
.pp-badge { font-size: 48px; }
.pp-text  { font-family: var(--font-head); font-weight: 700; font-size: 18px; text-align: center; line-height: 1.3; }
.pp-sub   { font-size: 11px; color: var(--muted); }

.phone-glow {
  position: absolute;
  bottom: -40px;
  left: 50%;
  transform: translateX(-50%);
  width: 200px;
  height: 80px;
  background: radial-gradient(ellipse, rgba(0,168,89,0.4) 0%, transparent 70%);
  filter: blur(20px);
  z-index: 1;
}

/* Floating cards */
.float-card {
  position: absolute;
  display: flex;
  align-items: center;
  gap: 10px;
  background: rgba(255,255,255,0.06);
  backdrop-filter: blur(16px);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 16px;
  padding: 12px 16px;
  z-index: 3;
  white-space: nowrap;
  box-shadow: 0 8px 32px rgba(0,0,0,0.4);
}

.fc-icon { font-size: 20px; }
.fc-title { font-size: 12px; font-weight: 600; color: white; }
.fc-sub   { font-size: 10px; color: var(--muted); }

.fc-1 { top: 60px;  left: -80px;  animation: float 5s ease-in-out 0.5s infinite; }
.fc-2 { bottom: 120px; left: -90px; animation: float 6s ease-in-out 1s infinite; }
.fc-3 { top: 180px; right: -100px; animation: float 7s ease-in-out 0.2s infinite; }

/* Scroll hint */
.scroll-hint {
  position: absolute;
  bottom: 32px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  opacity: 0.5;
}
.scroll-mouse {
  width: 22px; height: 36px;
  border: 2px solid rgba(255,255,255,0.4);
  border-radius: 11px;
  display: flex;
  justify-content: center;
  padding-top: 6px;
}
.scroll-wheel {
  width: 3px; height: 8px;
  background: white;
  border-radius: 2px;
  animation: float 1.5s ease-in-out infinite;
}
.scroll-hint span { font-size: 11px; color: var(--muted); letter-spacing: 1px; }

/* ── STATS BAR ────────────────────────────────────────────── */
.stats-bar {
  background: rgba(0,135,83,0.06);
  border-top: 1px solid rgba(0,135,83,0.15);
  border-bottom: 1px solid rgba(0,135,83,0.15);
  padding: 40px 0;
  overflow: hidden;
}

.stats-inner {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  align-items: center;
}

.stat-item {
  text-align: center;
  padding: 20px 16px;
  border-right: 1px solid var(--border);
}
.stat-item:last-child { border-right: none; }

.stat-num {
  font-family: var(--font-head);
  font-weight: 800;
  font-size: clamp(24px, 3.5vw, 40px);
  background: linear-gradient(135deg, var(--g3), var(--gold));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1;
  margin-bottom: 6px;
}
.stat-num span { font-size: 0.7em; }
.stat-lbl { font-size: clamp(11px, 1.5vw, 13px); color: var(--muted); }
.stat-sep { display: none; }

@media (max-width: 640px) {
  .stats-inner {
    grid-template-columns: 1fr 1fr;
  }
  .stat-item:nth-child(2) { border-right: none; }
  .stat-item:nth-child(1),
  .stat-item:nth-child(2) { border-bottom: 1px solid var(--border); }
}
@media (max-width: 380px) {
  .stats-inner { grid-template-columns: 1fr; }
  .stat-item   { border-right: none; border-bottom: 1px solid var(--border); }
  .stat-item:last-child { border-bottom: none; }
}

/* ── SLIDER 1 — STEPS ─────────────────────────────────────── */
.slider-wrap {
  position: relative;
  overflow: hidden;
  border-radius: var(--r2);
}

.slider-track { display: flex; }

/* Step slider */
.steps-track { transition: none; }

.step-slide {
  min-width: 100%;
  display: none;
  grid-template-columns: auto 1fr 2fr;
  gap: 48px;
  align-items: center;
  padding: 56px 60px;
  background: rgba(255,255,255,0.03);
  border: 1px solid var(--border);
  border-radius: var(--r2);
}
.step-slide.slide-active { display: grid; animation: fadeIn 0.5s ease; }

.step-num {
  font-family: var(--font-head);
  font-size: 120px;
  font-weight: 800;
  color: rgba(0,168,89,0.12);
  line-height: 1;
  min-width: 120px;
}

.step-icon-wrap {
  width: 200px;
  height: 200px;
  border-radius: 32px;
  overflow: hidden;
  background: rgba(0,135,83,0.1);
  border: 1px solid rgba(0,135,83,0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.step-img { width: 100%; height: 100%; object-fit: cover; }
.step-img-fallback {
  display: none;
  font-size: 64px;
  align-items: center;
  justify-content: center;
  width: 100%; height: 100%;
  flex-direction: column;
  gap: 10px;
}
.step-img-fallback svg {
  width: 64px; height: 64px;
}

.step-body h3 { margin-bottom: 14px; }
.step-body p  { margin-bottom: 20px; }

.step-tags { display: flex; gap: 10px; flex-wrap: wrap; }
.stag {
  font-size: 11px;
  font-weight: 600;
  color: var(--g3);
  background: rgba(0,135,83,0.1);
  border: 1px solid rgba(0,135,83,0.2);
  padding: 5px 14px;
  border-radius: 100px;
}

/* ── FEATURES GRID ────────────────────────────────────────── */
.features-section { background: var(--dark2); }

.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.feat-card {
  padding: 32px;
}
.feat-icon { font-size: 36px; margin-bottom: 18px; }
.feat-card h3 {
  font-family: var(--font-head);
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 12px;
}
.feat-card p { font-size: 14px; color: rgba(255,255,255,0.55); line-height: 1.7; }

/* ── SLIDER 2 — REWARDS ───────────────────────────────────── */
.rewards-section { background: var(--dark3); }

.rewards-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}

.points-table { margin-top: 28px; }
.pt-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 14px 0;
  border-bottom: 1px solid var(--border);
}
.pt-action { font-size: 14px; color: rgba(255,255,255,0.7); }
.pt-pts {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 14px;
  color: var(--g3);
}

/* Reward slides */
.rewards-track { gap: 0; }

.reward-slide {
  min-width: 100%;
  display: none;
  gap: 20px;
  grid-template-columns: 1fr 1fr;
}
.reward-slide.slide-active { display: grid; animation: fadeIn 0.5s ease; }

.reward-card {
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--border);
  border-radius: 24px;
  padding: 28px 24px;
  position: relative;
  transition: all 0.3s;
}
.reward-card:hover { border-color: rgba(0,168,89,0.3); transform: translateY(-4px); }

.rc-featured {
  background: rgba(0,135,83,0.08);
  border-color: rgba(0,168,89,0.3);
}

.rc-badge {
  position: absolute;
  top: -12px; left: 50%;
  transform: translateX(-50%);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 1px;
  background: var(--gold);
  color: var(--dark);
  padding: 3px 12px;
  border-radius: 100px;
  white-space: nowrap;
}

.rc-network {
  font-family: var(--font-head);
  font-weight: 800;
  font-size: 11px;
  letter-spacing: 2px;
  padding: 4px 12px;
  border-radius: 6px;
  display: inline-block;
  margin-bottom: 16px;
}
.rc-mtn    { background: rgba(255,204,0,0.15);  color: #FFCC00; border: 1px solid rgba(255,204,0,0.3); }
.rc-airtel { background: rgba(220,38,38,0.12);  color: #F87171; border: 1px solid rgba(220,38,38,0.3); }
.rc-glo    { background: rgba(34,197,94,0.12);  color: #4ADE80; border: 1px solid rgba(34,197,94,0.3); }
.rc-9mobile{ background: rgba(34,197,94,0.1);   color: #6EE7B7; border: 1px solid rgba(34,197,94,0.2); }

.rc-title {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 22px;
  margin-bottom: 4px;
}
.rc-pts {
  font-family: var(--font-head);
  font-size: 14px;
  color: var(--g3);
  margin-bottom: 16px;
}
.rc-bar {
  height: 4px;
  background: rgba(255,255,255,0.08);
  border-radius: 2px;
  margin-bottom: 12px;
  overflow: hidden;
}
.rc-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--g1), var(--g3));
  border-radius: 2px;
}
.rc-note { font-size: 11px; color: var(--muted); line-height: 1.5; }

/* ── SLIDER 3 — TESTIMONIALS ──────────────────────────────── */
.testi-track { gap: 0; }

.testi-slide {
  min-width: 100%;
  display: none;
  padding: 0 80px;
}
.testi-slide.slide-active { display: block; animation: fadeIn 0.5s ease; }

.testi-card {
  padding: 48px;
  position: relative;
  max-width: 720px;
  margin: 0 auto;
}

.testi-quote {
  font-family: Georgia, serif;
  font-size: 80px;
  color: var(--g3);
  opacity: 0.4;
  line-height: 0.5;
  margin-bottom: 20px;
}

.testi-text {
  font-size: 18px;
  line-height: 1.8;
  color: rgba(255,255,255,0.8);
  margin-bottom: 32px;
  font-style: italic;
}

.testi-author {
  display: flex;
  align-items: center;
  gap: 14px;
}
.testi-avatar {
  width: 48px; height: 48px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-head);
  font-weight: 800;
  font-size: 20px;
  color: white;
  flex-shrink: 0;
}
.testi-name { font-weight: 600; font-size: 15px; }
.testi-loc  { font-size: 12px; color: var(--muted); margin-top: 2px; }
.testi-pts  {
  margin-left: auto;
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 14px;
  color: var(--gold);
  background: rgba(255,199,44,0.1);
  border: 1px solid rgba(255,199,44,0.2);
  padding: 5px 14px;
  border-radius: 100px;
}

/* ── CTA SECTION ──────────────────────────────────────────── */
.cta-section {
  padding: 120px 0;
  position: relative;
  overflow: hidden;
  background: linear-gradient(160deg, var(--dark2), var(--dark3));
  border-top: 1px solid var(--border);
}

.cta-inner {
  text-align: center;
  position: relative;
  z-index: 2;
}

.cta-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  pointer-events: none;
}
.cta-orb-1 {
  width: 500px; height: 500px;
  top: -150px; left: -100px;
  background: radial-gradient(circle, rgba(0,135,83,0.15) 0%, transparent 70%);
}
.cta-orb-2 {
  width: 400px; height: 400px;
  bottom: -100px; right: -100px;
  background: radial-gradient(circle, rgba(255,199,44,0.1) 0%, transparent 70%);
}

.cta-title {
  margin-bottom: 20px;
  max-width: 640px;
  margin-left: auto;
  margin-right: auto;
}
.cta-desc {
  max-width: 480px;
  margin: 0 auto 40px;
}

.cta-actions {
  display: flex;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 36px;
}

.cta-logos {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
}
.cta-logos span:first-child { font-size: 13px; color: var(--muted); }

.network-badge {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1px;
  padding: 4px 14px;
  border-radius: 100px;
}
.mtn-badge { background: rgba(255,204,0,0.12); color: #FFCC00; border: 1px solid rgba(255,204,0,0.25); }
.air-badge { background: rgba(220,38,38,0.1);  color: #F87171; border: 1px solid rgba(220,38,38,0.25); }
.glo-badge { background: rgba(34,197,94,0.1);  color: #4ADE80; border: 1px solid rgba(34,197,94,0.25); }
.mob-badge { background: rgba(34,197,94,0.08); color: #6EE7B7; border: 1px solid rgba(34,197,94,0.2);  }

/* ── RESPONSIVE ───────────────────────────────────────────── */
@media (max-width: 1024px) {
  .hero-inner     { grid-template-columns: 1fr; gap: 48px; padding: 40px 0; }
  .hero-visual    { justify-content: center; }
  .fc-1, .fc-2, .fc-3 { display: none; }
  .features-grid  { grid-template-columns: 1fr 1fr; }
  .rewards-inner  { grid-template-columns: 1fr; gap: 48px; }
}

@media (max-width: 768px) {
  .section-pad    { padding: 64px 0; }
  .hero           { min-height: auto; padding-top: calc(var(--nav-h) + 20px); }
  .step-slide     { grid-template-columns: 1fr; gap: 24px; padding: 32px 24px; }
  .step-num       { font-size: 64px; min-width: auto; }
  .step-icon-wrap { width: 140px; height: 140px; }
  .features-grid  { grid-template-columns: 1fr; }
  .reward-slide   { grid-template-columns: 1fr; }
  .testi-slide    { padding: 0 16px; }
  .testi-card     { padding: 28px 24px; }
  .testi-text     { font-size: 15px; }
  .stats-inner    { gap: 24px; }
  .stat-sep       { display: none; }
}

/* ── PARTNERS ─────────────────────────────────────────────── */
.partners-section {
  padding: 60px 0;
  background: var(--dark2);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.partners-inner { }
.partners-label {
  font-family: var(--font-head);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: rgba(255,255,255,0.3);
  text-align: center;
  margin-bottom: 36px;
}

.partners-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

.partner-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 14px;
  padding: 28px 20px;
  background: rgba(255,255,255,0.02);
  border: 1px solid var(--border);
  border-radius: 20px;
  transition: all 0.3s;
}
.partner-card:hover {
  background: rgba(255,255,255,0.04);
  border-color: rgba(255,255,255,0.12);
  transform: translateY(-4px);
}

.partner-logo-wrap {
  width: 64px; height: 64px;
  border-radius: 18px;
  display: flex; align-items: center; justify-content: center;
  overflow: hidden;
}
.partner-logo-wrap svg { width: 100%; height: 100%; }

.pc-green  { background: rgba(0,135,83,0.1);   border: 1px solid rgba(0,135,83,0.2); }
.pc-blue   { background: rgba(34,211,238,0.08); border: 1px solid rgba(34,211,238,0.2); }
.pc-gold   { background: rgba(255,199,44,0.08); border: 1px solid rgba(255,199,44,0.2); }
.pc-purple { background: rgba(139,92,246,0.08); border: 1px solid rgba(139,92,246,0.2); }

.partner-name {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 15px;
  color: white;
}
.partner-desc {
  font-size: 11px;
  color: rgba(255,255,255,0.4);
  line-height: 1.4;
  margin-top: 2px;
}
.partner-tag {
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 1px;
  color: var(--g3);
  background: rgba(0,135,83,0.08);
  border: 1px solid rgba(0,135,83,0.15);
  padding: 3px 10px;
  border-radius: 100px;
}
.partner-logo-img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 6px;
  border-radius: 14px;
}

@media (max-width: 768px) {
  .partners-grid { grid-template-columns: 1fr 1fr; gap: 12px; }
}
@media (max-width: 480px) {
  .partners-grid { grid-template-columns: 1fr 1fr; }
  .partner-card  { padding: 20px 14px; }
}