/* ============================================================
   EcoLag AI — Global Stylesheet
   Organic-tech editorial aesthetic
   Syne (display) + DM Sans (body)
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Syne:wght@400;500;600;700;800&family=DM+Sans:ital,opsz,wght@0,9..40,300;0,9..40,400;0,9..40,500;0,9..40,600;1,9..40,300&display=swap');

/* ── VARIABLES ────────────────────────────────────────────── */
:root {
  --g1:      #005C38;
  --g2:      #008753;
  --g3:      #00A859;
  --g4:      #00D46E;
  --gold:    #FFC72C;
  --gold2:   #FFD95A;
  --dark:    #040D06;
  --dark2:   #071209;
  --dark3:   #0C1E0F;
  --dark4:   #132918;
  --card:    rgba(255,255,255,0.04);
  --border:  rgba(255,255,255,0.08);
  --border2: rgba(0,135,83,0.25);
  --muted:   #7A9E83;
  --white:   #FFFFFF;
  --cream:   #F5F0E8;

  --font-head: 'Syne', sans-serif;
  --font-body: 'DM Sans', sans-serif;

  --nav-h:   72px;
  --max-w:   1200px;
  --r:       20px;
  --r2:      32px;
}

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

html { scroll-behavior: smooth; font-size: 16px; }

body {
  font-family: var(--font-body);
  background: var(--dark);
  color: var(--white);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

img { display: block; max-width: 100%; }
a   { text-decoration: none; color: inherit; }

/* ── GRAIN OVERLAY ────────────────────────────────────────── */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)' opacity='0.04'/%3E%3C/svg%3E");
  pointer-events: none;
  z-index: 9999;
  opacity: 0.35;
}

/* ── CONTAINER ────────────────────────────────────────────── */
.container {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 32px;
}
@media (max-width: 768px) { .container { padding: 0 20px; } }

/* ── NAVIGATION ───────────────────────────────────────────── */
#nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: var(--nav-h);
  z-index: 1000;
  transition: all 0.4s ease;
}

#nav.scrolled {
  background: rgba(4,13,6,0.92);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
}

.nav-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 32px;
  height: 100%;
  display: flex;
  align-items: center;
  gap: 48px;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}

.nav-logo img {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  object-fit: cover;
}

.nav-brand {
  font-family: var(--font-head);
  font-weight: 800;
  font-size: 18px;
  letter-spacing: 1px;
}
.nav-brand span.y { color: var(--gold); }
.nav-brand span.g { color: var(--g3); }

.nav-links {
  display: flex;
  align-items: center;
  gap: 36px;
  list-style: none;
  flex: 1;
}

.nav-links a {
  font-size: 14px;
  font-weight: 500;
  color: rgba(255,255,255,0.65);
  transition: color 0.2s;
  position: relative;
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -3px; left: 0;
  width: 0; height: 2px;
  background: var(--g3);
  transition: width 0.3s ease;
  border-radius: 2px;
}

.nav-links a:hover       { color: white; }
.nav-links a:hover::after { width: 100%; }
.nav-links a.active      { color: var(--g3); }
.nav-links a.active::after { width: 100%; }

.nav-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-left: auto;
}

.btn-ghost-nav {
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 600;
  color: rgba(255,255,255,0.7);
  padding: 8px 18px;
  border-radius: 100px;
  border: 1px solid var(--border);
  background: transparent;
  cursor: pointer;
  transition: all 0.2s;
}
.btn-ghost-nav:hover { color: white; border-color: rgba(255,255,255,0.25); }

.btn-nav-cta {
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 600;
  color: var(--dark);
  padding: 9px 22px;
  border-radius: 100px;
  background: var(--g3);
  border: none;
  cursor: pointer;
  transition: all 0.25s;
  box-shadow: 0 4px 16px rgba(0,168,89,0.35);
}
.btn-nav-cta:hover {
  background: var(--g4);
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(0,168,89,0.45);
}

/* Mobile nav */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  margin-left: auto;
  padding: 4px;
}
.hamburger span {
  width: 24px; height: 2px;
  background: white;
  border-radius: 2px;
  transition: all 0.3s;
}

.mobile-menu {
  display: none;
  position: fixed;
  top: var(--nav-h); left: 0; right: 0;
  background: rgba(4,13,6,0.98);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
  padding: 24px 32px;
  z-index: 999;
  flex-direction: column;
  gap: 20px;
}
.mobile-menu.open { display: flex; }
.mobile-menu a {
  font-size: 16px;
  font-weight: 500;
  color: rgba(255,255,255,0.7);
  padding: 8px 0;
  border-bottom: 1px solid var(--border);
}
.mobile-menu a:last-child { border-bottom: none; }

@media (max-width: 768px) {
  .nav-links, .nav-actions { display: none; }
  .hamburger { display: flex; }
}

/* ── BUTTONS ──────────────────────────────────────────────── */
.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-body);
  font-size: 15px;
  font-weight: 600;
  color: var(--dark);
  padding: 14px 32px;
  border-radius: 100px;
  background: linear-gradient(135deg, var(--g3), var(--g4));
  border: none;
  cursor: pointer;
  transition: all 0.3s;
  box-shadow: 0 8px 24px rgba(0,168,89,0.35);
  text-decoration: none;
}
.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 32px rgba(0,168,89,0.5);
}

.btn-secondary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-body);
  font-size: 15px;
  font-weight: 600;
  color: white;
  padding: 13px 32px;
  border-radius: 100px;
  background: transparent;
  border: 1px solid rgba(255,255,255,0.2);
  cursor: pointer;
  transition: all 0.3s;
  text-decoration: none;
}
.btn-secondary:hover {
  background: rgba(255,255,255,0.06);
  border-color: rgba(255,255,255,0.4);
}

.btn-gold {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-body);
  font-size: 15px;
  font-weight: 700;
  color: var(--dark);
  padding: 14px 32px;
  border-radius: 100px;
  background: linear-gradient(135deg, var(--gold), var(--gold2));
  border: none;
  cursor: pointer;
  transition: all 0.3s;
  box-shadow: 0 8px 24px rgba(255,199,44,0.3);
  text-decoration: none;
}
.btn-gold:hover { transform: translateY(-2px); box-shadow: 0 12px 32px rgba(255,199,44,0.45); }

/* ── SECTION LABELS ───────────────────────────────────────── */
.section-tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-head);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--g3);
  background: rgba(0,168,89,0.1);
  border: 1px solid rgba(0,168,89,0.2);
  padding: 6px 16px;
  border-radius: 100px;
  margin-bottom: 20px;
}

/* ── TYPOGRAPHY ───────────────────────────────────────────── */
.display-xl {
  font-family: var(--font-head);
  font-size: clamp(48px, 7vw, 96px);
  font-weight: 800;
  line-height: 1.0;
  letter-spacing: -2px;
}

.display-lg {
  font-family: var(--font-head);
  font-size: clamp(36px, 5vw, 64px);
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: -1.5px;
}

.display-md {
  font-family: var(--font-head);
  font-size: clamp(28px, 4vw, 48px);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -1px;
}

.body-lg { font-size: 18px; line-height: 1.7; color: rgba(255,255,255,0.65); }
.body-md { font-size: 15px; line-height: 1.7; color: rgba(255,255,255,0.55); }

.text-green { color: var(--g3); }
.text-gold  { color: var(--gold); }
.text-muted { color: var(--muted); }

/* ── CARDS ────────────────────────────────────────────────── */
.glass-card {
  background: rgba(255,255,255,0.03);
  border: 1px solid var(--border);
  border-radius: var(--r2);
  backdrop-filter: blur(12px);
  transition: all 0.3s;
}
.glass-card:hover {
  background: rgba(255,255,255,0.055);
  border-color: rgba(0,135,83,0.3);
  transform: translateY(-4px);
}

/* ── SLIDER DOTS ──────────────────────────────────────────── */
.slider-dots {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-top: 32px;
}
.dot {
  width: 8px; height: 8px;
  border-radius: 100px;
  background: rgba(255,255,255,0.2);
  cursor: pointer;
  transition: all 0.4s ease;
}
.dot.active {
  width: 28px;
  background: var(--g3);
}

/* ── STAT COUNTER ─────────────────────────────────────────── */
.stat-num {
  font-family: var(--font-head);
  font-weight: 800;
  font-size: clamp(36px, 5vw, 56px);
  line-height: 1;
  background: linear-gradient(135deg, var(--g3), var(--g4), var(--gold));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ── FOOTER ───────────────────────────────────────────────── */
footer {
  background: var(--dark2);
  border-top: 1px solid var(--border);
  padding: 64px 0 32px;
  margin-top: 0;
}

.footer-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 32px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 48px;
  margin-bottom: 48px;
}

.footer-brand-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
}

.footer-brand-logo img {
  width: 40px; height: 40px;
  border-radius: 11px;
  object-fit: cover;
}

.footer-desc {
  font-size: 14px;
  color: var(--muted);
  line-height: 1.7;
  max-width: 280px;
  margin-bottom: 24px;
}

.footer-col-title {
  font-family: var(--font-head);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: rgba(255,255,255,0.4);
  margin-bottom: 20px;
}

.footer-links { list-style: none; display: flex; flex-direction: column; gap: 12px; }
.footer-links a {
  font-size: 14px;
  color: var(--muted);
  transition: color 0.2s;
}
.footer-links a:hover { color: var(--g3); }

.footer-bottom {
  border-top: 1px solid var(--border);
  padding-top: 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
}

.footer-bottom p { font-size: 13px; color: rgba(255,255,255,0.3); }
.footer-badge {
  font-size: 12px;
  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;
}

@media (max-width: 768px) {
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; }
  .footer-bottom { flex-direction: column; text-align: center; }
}
@media (max-width: 480px) {
  .footer-grid { grid-template-columns: 1fr; }
}

/* ── ANIMATIONS ───────────────────────────────────────────── */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(30px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes fadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}
@keyframes float {
  0%, 100% { transform: translateY(0px); }
  50%       { transform: translateY(-16px); }
}
@keyframes pulse-green {
  0%, 100% { box-shadow: 0 0 0 0 rgba(0,168,89,0.4); }
  50%       { box-shadow: 0 0 0 20px rgba(0,168,89,0); }
}
@keyframes spin {
  to { transform: rotate(360deg); }
}
@keyframes shimmer {
  0%   { background-position: -200% center; }
  100% { background-position: 200% center; }
}
@keyframes countUp {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* Scroll reveal */
.reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: all 0.7s cubic-bezier(0.16, 1, 0.3, 1);
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}
.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }
.reveal-delay-4 { transition-delay: 0.4s; }

/* ── FOOTER NETWORKS ────────────────────────────────────────── */
.footer-brand-col { }
.footer-networks {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 16px;
}
.fn-badge {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 1px;
  padding: 3px 10px;
  border-radius: 100px;
}
.fn-mtn    { background: rgba(255,204,0,0.1);  color: #FFCC00; border: 1px solid rgba(255,204,0,0.2); }
.fn-airtel { background: rgba(220,38,38,0.08); color: #F87171; border: 1px solid rgba(220,38,38,0.2); }
.fn-glo    { background: rgba(34,197,94,0.08); color: #4ADE80; border: 1px solid rgba(34,197,94,0.2); }
.fn-9m     { background: rgba(34,197,94,0.06); color: #6EE7B7; border: 1px solid rgba(34,197,94,0.15);}
