:root {
  --blue-deep: #1a3a8f;
  --blue-mid: #1e5dcc;
  --blue-bright: #2979ff;
  --teal: #00c9b1;
  --orange: #ff6b1a;
  --yellow: #ffd600;
  --purple: #8c2be3;
  --pink: #ffcb3d;
  --white: #ffffff;
  --black: black;
  --off-white: #f5f8ff;
  --dark: #0d1b4b;
  --shadow: 0 8px 32px rgba(26,58,143,0.18);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: "Noto Sans Malayalam", sans-serif;
  background: var(--off-white);
  color: var(--dark);
  overflow-x: hidden;
}

/* ===== NAVIGATION ===== */
nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  padding: 1rem 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  transition: background 0.3s, box-shadow 0.3s;
}
nav.scrolled {
  background: rgba(13,27,75,0.96);
  backdrop-filter: blur(12px);
  box-shadow: 0 2px 20px rgba(0,0,0,0.3);
}

.nav-logo {
  display: flex; align-items: center; gap: 0.6rem;
  text-decoration: none;
}
.nav-logo-icon {
  width: 38px; height: 38px;
  background: linear-gradient(135deg, var(--teal), var(--blue-bright));
  border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.2rem;
}
.nav-logo-text { font-size: 1.1rem; font-weight: 800; color: var(--white); }
.nav-logo-text span { color: var(--teal); }

.nav-cta {
  background: linear-gradient(135deg, var(--orange), var(--pink));
  color: var(--black);
  font-weight: 700;
  font-size: 0.9rem;
  padding: 0.55rem 1.4rem;
  border: none;
  border-radius: 100px;
  cursor: pointer;
  text-decoration: none;
  transition: transform 0.2s;
}
.nav-cta:hover { transform: scale(1.05); }

/* ===== HERO SECTION ===== */
.hero {
  position: relative;
  min-height: 100vh;
  background: linear-gradient(135deg, #0d1b4b 0%, #1a3a8f 40%, #1e5dcc 70%, #00c9b1 100%);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 2rem 1rem 4rem;
  overflow: hidden;
  z-index: 1;
}

.hero::before {
  content: '';
  position: absolute;
  width: 500px; height: 500px;
  background: radial-gradient(circle, rgba(0,201,177,0.25) 0%, transparent 70%);
  top: -120px; right: -120px;
  border-radius: 50%;
  animation: pulse 6s ease-in-out infinite;
  pointer-events: none;
}
.hero::after {
  content: '';
  position: absolute;
  width: 400px; height: 400px;
  background: radial-gradient(circle, rgba(140,43,227,0.2) 0%, transparent 70%);
  bottom: -100px; left: -100px;
  border-radius: 50%;
  animation: pulse 8s ease-in-out infinite reverse;
  pointer-events: none;
}

@keyframes pulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.12); }
}

.shape {
  position: absolute;
  border-radius: 4px;
  opacity: 0.55;
  animation: float 4s ease-in-out infinite;
  pointer-events: none;
}
.shape-1 { width: 22px; height: 22px; background: var(--teal); top: 12%; left: 8%; animation-delay: 0s; transform: rotate(45deg); }
.shape-2 { width: 14px; height: 14px; background: var(--orange); top: 20%; right: 10%; animation-delay: 1s; border-radius: 50%; }
.shape-3 { width: 18px; height: 18px; background: var(--yellow); top: 60%; left: 5%; animation-delay: 2s; border-radius: 50%; }
.shape-4 { width: 12px; height: 12px; background: var(--pink); bottom: 20%; right: 8%; animation-delay: 0.5s; transform: rotate(30deg); }
.shape-5 { width: 26px; height: 26px; background: var(--purple); bottom: 30%; left: 12%; animation-delay: 1.5s; transform: rotate(20deg); }

@keyframes float {
  0%, 100% { transform: translateY(0) rotate(var(--r, 45deg)); }
  50% { transform: translateY(-14px) rotate(var(--r, 45deg)); }
}

.hero-badge {
  display: inline-block;
  background: rgba(255,255,255,0.15);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255,255,255,0.3);
  color: var(--teal);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 0.4rem 1.2rem;
  border-radius: 100px;
  margin-bottom: 1.4rem;
  animation: fadeDown 0.6s ease both;
}

.hero-title {
  font-size: clamp(2rem, 7vw, 3.8rem);
  font-weight: 600;
  color: var(--white);
  line-height: 1.2;
  margin-bottom: 1rem;
  animation: fadeDown 0.7s 0.1s ease both;
  position: relative;
  z-index: 15;
}
.hero-title span { color: var(--teal); }

.hero-subtitle {
  font-size: clamp(1rem, 3vw, 1.25rem);
  color: rgba(255,255,255,0.82);
  max-width: 520px;
  margin: 0 auto 2rem;
  line-height: 1.7;
  animation: fadeDown 0.7s 0.2s ease both;
  position: relative;
  z-index: 15;
}

.hero-illustration {
  width: 40vw !important;
  max-width: 380px;
  aspect-ratio: 1 / 1;
  position: relative;
  z-index: 2;
  margin: 0 auto 2.5rem;
  animation: fadeUp 0.8s 0.3s ease both;
  background-image: url('img/hero-bg.png');
  background-size: cover;
  background-repeat: no-repeat;
  background-position: center center;
  pointer-events: none;
}

.hero-svg-wrap {
  position: relative;
}
.hero-svg-wrap svg { 
  width: 100%; 
  height: auto;
  pointer-events: none;
}

.icon-float {
  position: absolute;
  width: 44px; height: 44px;
  background: rgba(255,255,255,0.15);
  backdrop-filter: blur(6px);
  border: 1px solid rgba(255,255,255,0.25);
  border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.3rem;
  animation: float 3.5s ease-in-out infinite;
  box-shadow: 0 4px 16px rgba(0,0,0,0.2);
  pointer-events: none;
}
.icon-float.f1 { top: 0%; left: -8%; animation-delay: 0s; }
.icon-float.f2 { top: 10%; right: -6%; animation-delay: 0.8s; }
.icon-float.f3 { bottom: 25%; left: -10%; animation-delay: 1.4s; }
.icon-float.f4 { bottom: 15%; right: -8%; animation-delay: 0.4s; }

.hero-cta-group {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  justify-content: center;
  animation: fadeUp 0.8s 0.4s ease both;
  position: relative;
  z-index: 20;
}

/* Buttons */
.btn-primary {
  background: linear-gradient(135deg, var(--orange), var(--pink));
  color: var(--black);
  font-size: 1.05rem;
  font-weight: 700;
  padding: 0.9rem 2.2rem;
  border: none;
  border-radius: 100px;
  cursor: pointer;
  box-shadow: 0 6px 24px rgba(255,107,26,0.45);
  transition: transform 0.2s, box-shadow 0.2s;
  text-decoration: none;
  display: inline-block;
  position: relative;
  z-index: 30;
  -webkit-tap-highlight-color: transparent;
}
.btn-primary:hover { transform: translateY(-3px) scale(1.04); box-shadow: 0 10px 32px rgba(255,107,26,0.55); }

.btn-secondary {
  background: rgba(255,255,255,0.12);
  backdrop-filter: blur(8px);
  color: var(--white);
  font-size: 1.05rem;
  font-weight: 600;
  padding: 0.9rem 2rem;
  border: 2px solid rgba(255,255,255,0.35);
  border-radius: 100px;
  cursor: pointer;
  transition: all 0.2s;
  text-decoration: none;
  display: inline-block;
  position: relative;
  z-index: 30;
  -webkit-tap-highlight-color: transparent;
}
.btn-secondary:hover { background: rgba(255,255,255,0.22); transform: translateY(-2px); }

/* ===== WHAT IS MI SECTION ===== */
.section { padding: 4.5rem 1.5rem; }

.section-label {
  text-align: center;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--blue-mid);
  margin-bottom: 0.6rem;
}
.section-title {
  text-align: center;
  font-size: clamp(1.6rem, 5vw, 2.6rem);
  font-weight: 600;
  color: var(--dark);
  margin-bottom: 0.7rem;
  line-height: 1.25;
}
.section-title span { color: var(--blue-bright); }
.section-desc {
  text-align: center;
  max-width: 560px;
  margin: 0 auto 3rem;
  color: #4a5568;
  font-size: 1.05rem;
  line-height: 1.8;
}

.mi-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: 1rem;
  max-width: 900px;
  margin: 0 auto;
}

.mi-card {
  background: var(--white);
  border-radius: 20px;
  padding: 1.5rem 1rem;
  text-align: center;
  box-shadow: 0 4px 20px rgba(26,58,143,0.08);
  border: 2px solid transparent;
  transition: all 0.3s;
  cursor: default;
  position: relative;
  overflow: hidden;
}
.mi-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--card-gradient, linear-gradient(135deg, #e8f0ff, #fff));
  opacity: 0;
  transition: opacity 0.3s;
  z-index: 0;
}
.mi-card:hover::before { opacity: 1; }
.mi-card:hover { transform: translateY(-6px); border-color: var(--card-color, var(--blue-bright)); box-shadow: 0 12px 32px rgba(26,58,143,0.16); }

.mi-card > * { position: relative; z-index: 1; }

.mi-icon {
  font-size: 2.2rem;
  margin-bottom: 0.7rem;
  display: block;
}
.mi-name {
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--dark);
}
.mi-name-ml {
  font-size: 0.82rem;
  color: #6b7280;
  margin-top: 0.2rem;
}

/* ===== FEATURES SECTION ===== */
.features-section {
  background: linear-gradient(135deg, #0d1b4b 0%, #1a3a8f 60%, #1e5dcc 100%);
  padding: 5rem 1.5rem;
  position: relative;
  overflow: hidden;
}
.features-section::before {
  content: '';
  position: absolute;
  width: 600px; height: 600px;
  background: radial-gradient(circle, rgba(0,201,177,0.12) 0%, transparent 70%);
  top: -200px; right: -200px;
  border-radius: 50%;
  pointer-events: none;
}

.features-section .section-title { color: var(--white); }
.features-section .section-desc  { color: rgba(255,255,255,0.72); }
.features-section .section-label { color: var(--teal); }

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 1.5rem;
  max-width: 900px;
  margin: 0 auto;
}

.feature-card {
  background: rgba(255,255,255,0.08);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255,255,255,0.15);
  border-radius: 20px;
  padding: 2rem 1.5rem;
  color: var(--white);
  transition: all 0.3s;
  position: relative;
  overflow: hidden;
}
.feature-card:hover {
  background: rgba(255,255,255,0.14);
  transform: translateY(-5px);
  border-color: rgba(0,201,177,0.5);
}

.feature-icon-wrap {
  width: 56px; height: 56px;
  background: linear-gradient(135deg, var(--teal), var(--blue-bright));
  border-radius: 16px;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.6rem;
  margin-bottom: 1.2rem;
  box-shadow: 0 6px 20px rgba(0,201,177,0.35);
}

.feature-title {
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
}
.feature-desc {
  font-size: 0.9rem;
  color: rgba(255,255,255,0.7);
  line-height: 1.65;
}

/* ===== PRICING SECTION ===== */
.pricing-section {
  padding: 5rem 1.5rem;
  background: var(--off-white);
}

.price-card {
  max-width: 480px;
  margin: 0 auto;
  background: var(--white);
  border-radius: 28px;
  padding: 3rem 2.5rem;
  box-shadow: 0 20px 60px rgba(26,58,143,0.14);
  text-align: center;
  position: relative;
  overflow: hidden;
  border: 3px solid var(--blue-bright);
}
.price-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 6px;
  background: linear-gradient(90deg, var(--orange), var(--pink), var(--purple));
}

.price-badge {
  display: inline-block;
  background: linear-gradient(135deg, var(--orange), var(--pink));
  color: var(--white);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  padding: 0.35rem 1.2rem;
  border-radius: 100px;
  margin-bottom: 1.5rem;
  text-transform: uppercase;
}

.price-old {
  font-size: 1.4rem;
  color: #a0aec0;
  text-decoration: line-through;
  margin-bottom: 0.3rem;
}
.price-new {
  font-size: clamp(3rem, 10vw, 5rem);
  font-weight: 800;
  color: var(--blue-deep);
  line-height: 1;
  margin-bottom: 0.3rem;
}
.price-new sup { font-size: 0.4em; vertical-align: top; margin-top: 0.5em; }
.price-note { font-size: 1rem; color: #6b7280; margin-bottom: 2rem; }

.price-features {
  list-style: none;
  text-align: left;
  margin-bottom: 2rem;
}
.price-features li {
  display: flex; align-items: center; gap: 0.8rem;
  padding: 0.65rem 0;
  border-bottom: 1px solid #f0f4ff;
  font-size: 1rem;
  font-weight: 500;
}
.price-features li:last-child { border-bottom: none; }
.price-features .check {
  width: 24px; height: 24px; min-width: 24px;
  background: linear-gradient(135deg, var(--teal), var(--blue-bright));
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  color: var(--white);
  font-size: 0.75rem;
  font-weight: 800;
}

/* ===== TESTIMONIALS ===== */
.testimonials {
  padding: 5rem 1.5rem;
  background: var(--white);
}

.testimonial-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 1.5rem;
  max-width: 900px;
  margin: 0 auto;
}

.testimonial-card {
  background: var(--off-white);
  border-radius: 20px;
  padding: 1.8rem;
  position: relative;
  border-left: 4px solid var(--blue-bright);
  transition: transform 0.3s;
}
.testimonial-card:hover { transform: translateY(-4px); }
.testimonial-card::before {
  content: '"';
  position: absolute;
  top: 0.8rem; right: 1.2rem;
  font-size: 5rem;
  color: var(--blue-bright);
  opacity: 0.12;
  font-family: Georgia, serif;
  line-height: 1;
}

.testimonial-text { font-size: 0.97rem; line-height: 1.75; color: #374151; margin-bottom: 1.2rem; }
.testimonial-author { display: flex; align-items: center; gap: 0.8rem; }
.author-avatar {
  width: 42px; height: 42px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--blue-mid), var(--teal));
  display: flex; align-items: center; justify-content: center;
  color: var(--white);
  font-weight: 700;
  font-size: 1rem;
}
.author-name { font-weight: 700; font-size: 0.95rem; color: var(--dark); }
.author-info { font-size: 0.82rem; color: #6b7280; }

/* ===== STATS SECTION ===== */
.stats-section {
  padding: 4rem 1.5rem;
  background: linear-gradient(135deg, var(--orange) 0%, var(--pink) 50%, var(--purple) 100%);
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 1.5rem;
  max-width: 800px;
  margin: 0 auto;
  text-align: center;
}

.stat-item { color: var(--white); }
.stat-number {
  font-size: clamp(2rem, 6vw, 3rem);
  font-weight: 600;
  line-height: 1;
  margin-bottom: 0.4rem;
  color: var(--dark);
}
.stat-label { 
  font-size: 0.95rem;
  opacity: 0.88;
  color: var(--dark);
}

/* ===== CONTACT BAR ===== */
.contact-bar {
  background: var(--dark);
  padding: 2rem 1.5rem;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 1.5rem;
}

.contact-item {
  display: flex; align-items: center; gap: 0.7rem;
  color: var(--white);
  font-size: 1rem;
  font-weight: 600;
  text-decoration: none;
  transition: color 0.2s;
  position: relative;
  z-index: 30;
  -webkit-tap-highlight-color: transparent;
}
.contact-item:hover { color: var(--teal); }
.contact-item .icon {
  width: 40px; height: 40px;
  background: rgba(255,255,255,0.1);
  border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.2rem;
}

/* ===== FOOTER ===== */
.footer-cta {
  background: linear-gradient(135deg, #0d1b4b, #1a3a8f);
  padding: 4rem 1.5rem;
  text-align: center;
}
.footer-cta h2 {
  font-size: clamp(1.6rem, 5vw, 2.4rem);
  font-weight: 600;
  color: var(--white);
  margin-bottom: 0.8rem;
}
.footer-cta h2 span { color: var(--teal); }
.footer-cta p { color: rgba(255,255,255,0.75); margin-bottom: 2rem; font-size: 1.05rem; }

.footer-bottom {
  background: #060e24;
  padding: 1.5rem;
  text-align: center;
  color: rgba(255,255,255,0.4);
  font-size: 0.85rem;
}
.footer-bottom strong { color: var(--teal); }

.socials {
  display: flex; gap: 0.8rem; justify-content: center; margin-top: 1.5rem;
}
.social-btn {
  width: 44px; height: 44px;
  background: rgba(255,255,255,0.1);
  border: 1px solid rgba(255,255,255,0.2);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.1rem;
  text-decoration: none;
  transition: all 0.2s;
}
.social-btn:hover { background: var(--teal); border-color: var(--teal); transform: scale(1.1); }

/* ===== ANIMATIONS ===== */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.65s ease, transform 0.65s ease;
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

@keyframes fadeDown {
  from { opacity: 0; transform: translateY(-20px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ===== RESPONSIVE DESIGN ===== */
@media (max-width: 768px) {
  .hero { padding-top: 5rem; }
  .features-grid, .testimonial-grid { grid-template-columns: 1fr; }
  .price-card { padding: 2rem 1.5rem; }
  .contact-bar { flex-direction: column; }
  
  .hero-illustration {
    width: 70vw !important;
    max-width: 320px;
    aspect-ratio: 4 / 3;
  }
  
  .btn-primary,
  .btn-secondary,
  .nav-cta {
    padding: 0.8rem 1.8rem;
    font-size: 1rem;
    min-height: 48px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }
  
  .hero-cta-group {
    gap: 0.8rem;
    width: 100%;
    padding: 0 1rem;
  }
  
  .btn-primary,
  .btn-secondary {
    flex: 1;
    min-width: 160px;
  }
}

@media (max-width: 480px) {
  .hero-illustration {
    width: 85vw !important;
    max-width: 280px;
  }
  
  .btn-primary,
  .btn-secondary {
    min-width: 140px;
    padding: 0.7rem 1.2rem;
    font-size: 0.9rem;
  }
  
  .hero-title {
    font-size: clamp(1.6rem, 6vw, 2.5rem);
  }
  
  .section {
    padding: 3rem 1rem;
  }
}