:root {
  --bg: #f8faf9;
  --fg: #0a1f16;
  --muted: #64748b;
  --card: #ffffff;
  --border: #e2e8f0;
  --primary: #10b981;
  --primary-dark: #059669;
  --primary-glow: rgba(16, 185, 129, 0.2);
  --primary-fg: #ffffff;
  --radius-sm: 8px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.1);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
  --gradient-hero: linear-gradient(135deg, #10b981 0%, #3b82f6 100%);

  --mtn: #fbbf24;
  --airtel: #ef4444;
  --glo: #22c55e;
  --ninem: #065f46;
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  background: var(--bg);
  color: var(--fg);
  line-height: 1.6;
  overflow-x: hidden;
}

a {
  color: inherit;
  text-decoration: none;
}

ul {
  list-style: none;
}

button {
  font: inherit;
  cursor: pointer;
  border: none;
  background: none;
}

/* REUSABLE COMPONENTS */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

.section {
  padding: 80px 0;
}

.section-header {
  text-align: center;
  margin-bottom: 48px;
}

.section-title {
  font-size: 32px;
  font-weight: 800;
  margin-bottom: 12px;
  letter-spacing: -0.02em;
}

.section-subtitle {
  color: var(--muted);
  font-size: 18px;
  max-width: 600px;
  margin: 0 auto;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 24px;
  border-radius: var(--radius-sm);
  font-weight: 600;
  transition: all 0.2s;
  gap: 8px;
}

.btn-primary {
  background: var(--primary);
  color: white;
}

.btn-primary:hover {
  background: var(--primary-dark);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px var(--primary-glow);
}

.btn-outline {
  border: 1px solid var(--border);
  background: white;
}

.btn-outline:hover {
  background: #f1f5f9;
}

/* HEADER */
.header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.8);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}

.header-inner {
  height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo {
  display: flex;
  align-items: center;
  gap: 8px;
}

.logo img {
  height: 40px;
  width: auto;
}

.logo-icon {
  width: 32px;
  height: 32px;
  background: var(--primary);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
}

.nav {
  display: none;
  gap: 32px;
}

@media (min-width: 768px) {
  .nav {
    display: flex;
  }
}

.nav-link {
  font-weight: 500;
  color: var(--muted);
  transition: color 0.2s;
}

.nav-link:hover {
  color: var(--primary);
}

/* HERO */
.hero {
  padding: 100px 0 60px;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: -10%;
  right: -10%;
  width: 40%;
  height: 80%;
  background: var(--primary-glow);
  filter: blur(100px);
  z-index: -1;
  border-radius: 50%;
}

.hero-content {
  text-align: center;
  max-width: 800px;
  margin: 0 auto;
}

.badge {
  display: inline-block;
  padding: 6px 16px;
  background: var(--primary-glow);
  color: var(--primary-dark);
  border-radius: 99px;
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 24px;
}

.hero-title {
  font-size: 48px;
  font-weight: 900;
  line-height: 1.1;
  margin-bottom: 24px;
  letter-spacing: -0.04em;
}

@media (min-width: 768px) {
  .hero-title {
    font-size: 64px;
  }
}

.hero-title span {
  color: var(--primary);
}

.hero-desc {
  font-size: 20px;
  color: var(--muted);
  margin-bottom: 32px;
}

.hero-btns {
  display: flex;
  gap: 16px;
  justify-content: center;
}

/* OPERATOR CARDS */
.operator-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 24px;
  margin-top: 40px;
}

.op-card {
  background: white;
  padding: 32px;
  border-radius: var(--radius-md);
  border: 1px solid var(--border);
  transition: all 0.3s;
  position: relative;
  overflow: hidden;
}

.op-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-lg);
  border-color: var(--primary);
}

.op-logo {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  color: white;
}

.op-card h3 {
  margin-bottom: 8px;
}

.op-card p {
  color: var(--muted);
  font-size: 14px;
  margin-bottom: 20px;
}

.op-link {
  font-weight: 600;
  color: var(--primary);
  display: flex;
  align-items: center;
  gap: 4px;
}

/* FEATURES */
.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 32px;
}

.feature-item {
  background: white;
  padding: 40px;
  border-radius: var(--radius-md);
  border: 1px solid var(--border);
}

.feat-icon {
  font-size: 32px;
  margin-bottom: 24px;
}

/* HOW IT WORKS */
.steps-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 48px;
  position: relative;
}

.step-item {
  text-align: center;
  position: relative;
}

.step-num {
  width: 48px;
  height: 48px;
  background: var(--primary);
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  margin: 0 auto 24px;
  font-size: 20px;
  box-shadow: 0 0 0 8px var(--primary-glow);
}

/* SERVICES */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 20px;
}

.service-card {
  background: white;
  padding: 24px;
  border-radius: var(--radius-md);
  text-align: center;
  border: 1px solid var(--border);
  transition: all 0.2s;
}

.service-card:hover {
  border-color: var(--primary);
  background: #f8fafc;
}

.service-icon {
  font-size: 28px;
  margin-bottom: 12px;
  display: block;
}

.service-card h4 {
  font-size: 16px;
  font-weight: 700;
}

/* DATA PLANS TABLE */
.plans-section {
  background: #f1f5f9;
}

.tabs {
  display: flex;
  justify-content: center;
  gap: 12px;
  margin-bottom: 40px;
  flex-wrap: wrap;
}

.tab {
  padding: 10px 24px;
  background: white;
  border: 1px solid var(--border);
  border-radius: 99px;
  font-weight: 600;
  transition: all 0.2s;
}

.tab.active {
  background: var(--primary);
  color: white;
  border-color: var(--primary);
}

.plans-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 24px;
}

.plan-card {
  background: white;
  padding: 32px;
  border-radius: var(--radius-md);
  border: 1px solid var(--border);
  transition: all 0.3s;
  position: relative;
}

.plan-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

.plan-popular {
  position: absolute;
  top: 16px;
  right: 16px;
  background: #fef3c7;
  color: #92400e;
  padding: 4px 12px;
  border-radius: 99px;
  font-size: 12px;
  font-weight: 700;
}

.plan-data {
  font-size: 32px;
  font-weight: 800;
  margin-bottom: 4px;
}

.plan-validity {
  color: var(--muted);
  font-size: 14px;
  margin-bottom: 24px;
}

.plan-price {
  font-size: 24px;
  font-weight: 800;
  color: var(--primary);
  margin-bottom: 24px;
}

/* TESTIMONIALS */
.testimonial-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 32px;
}

.testi-card {
  background: white;
  padding: 32px;
  border-radius: var(--radius-md);
  border: 1px solid var(--border);
}

.testi-quote {
  font-style: italic;
  margin-bottom: 20px;
  color: var(--muted);
}

.testi-user {
  display: flex;
  align-items: center;
  gap: 12px;
}

.user-avatar {
  width: 40px;
  height: 40px;
  background: var(--border);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
}

/* FAQ */
.faq-list {
  max-width: 800px;
  margin: 0 auto;
}

.faq-item {
  margin-bottom: 16px;
}

.faq-item summary {
  padding: 20px;
  background: white;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  cursor: pointer;
  font-weight: 600;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.faq-item summary::after {
  content: '+';
  font-size: 24px;
  color: var(--primary);
}

.faq-item[open] summary::after {
  content: '-';
}

.faq-item p {
  padding: 20px;
  background: #f8fafc;
  border: 1px solid var(--border);
  border-top: none;
  border-radius: 0 0 var(--radius-sm) var(--radius-sm);
}

/* CTA */
.cta-section {
  background: var(--primary);
  color: white;
  text-align: center;
  padding: 80px 24px;
  border-radius: var(--radius-lg);
  margin: 0 24px 80px;
}

.cta-title {
  font-size: 36px;
  font-weight: 800;
  margin-bottom: 20px;
}

/* FOOTER */
.footer {
  background: #0f172a;
  color: #94a3b8;
  padding: 80px 0 40px;
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 48px;
  margin-bottom: 60px;
}

.footer-col h4 {
  color: white;
  margin-bottom: 24px;
  font-size: 18px;
}

.footer-links li {
  margin-bottom: 12px;
}

.footer-links a:hover {
  color: white;
}

.footer-bottom {
  border-top: 1px solid #1e293b;
  padding-top: 40px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
}

@media (min-width: 768px) {
  .footer-bottom {
    flex-direction: row;
    justify-content: space-between;
  }
}

/* LOGIN PAGE SPECIFIC */
.login-container {
  display: flex;
  min-height: 100vh;
}

.login-side {
  flex: 1;
  background: var(--primary);
  color: white;
  padding: 60px;
  display: none;
  flex-direction: column;
  justify-content: center;
}

@media (min-width: 1024px) {
  .login-side {
    display: flex;
  }
}

.login-form-side {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px;
}

.login-box {
  width: 100%;
  max-width: 400px;
}

.form-group {
  margin-bottom: 20px;
}

.form-group label {
  display: block;
  font-weight: 600;
  margin-bottom: 8px;
}

.form-input {
  width: 100%;
  padding: 12px 16px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  outline: none;
}

.form-input:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 4px var(--primary-glow);
}

/* CONTACT PAGE SPECIFIC */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 60px;
}

@media (min-width: 1024px) {
  .contact-grid {
    grid-template-columns: 1fr 1.5fr;
  }
}

.contact-info {
  display: flex;
  flex-direction: column;
  gap: 32px;
}

.info-item {
  display: flex;
  gap: 20px;
}

.info-icon {
  width: 48px;
  height: 48px;
  background: var(--primary-glow);
  color: var(--primary);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
}

.contact-form {
  background: white;
  padding: 40px;
  border-radius: var(--radius-md);
  border: 1px solid var(--border);
}

/* ANIMATIONS */
[data-reveal] {
  opacity: 0;
  transform: translateY(20px);
  transition: all 0.6s ease-out;
}

[data-reveal].revealed {
  opacity: 1;
  transform: translateY(0);
}

/* ERROR STYLES */
.alert {
  padding: 12px 16px;
  border-radius: var(--radius-sm);
  margin-bottom: 24px;
  font-size: 14px;
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 10px;
  animation: slideIn 0.3s ease;
}

.alert-error {
  background: #fef2f2;
  border: 1px solid #fee2e2;
  color: #b91c1c;
}

.shake {
  animation: shake 0.5s cubic-bezier(.36, .07, .19, .97) both;
}

@keyframes slideIn {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }

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

@keyframes shake {

  10%,
  90% {
    transform: translate3d(-1px, 0, 0);
  }

  20%,
  80% {
    transform: translate3d(2px, 0, 0);
  }

  30%,
  50%,
  70% {
    transform: translate3d(-4px, 0, 0);
  }

  40%,
  60% {
    transform: translate3d(4px, 0, 0);
  }
}

/* NETWORK BRANDING */
.bg-mtn {
  background: var(--mtn);
  color: #000;
}

.bg-airtel {
  background: var(--airtel);
  color: #fff;
}

.bg-glo {
  background: var(--glo);
  color: #fff;
}

.bg-9mobile {
  background: var(--ninem);
  color: #fff;
}

.operator-hero {
  padding: 80px 0;
  text-align: center;
}