/* Google Font Import */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&display=swap');

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
}

html { scroll-behavior: smooth; }

body {
  background-color: #f8fafc;
  color: #1e293b;
  line-height: 1.5;
  overflow-x: hidden; /* Prevent sideways scroll */
}

img { max-width: 100%; height: auto; display: block; }

/* Container utility */
.container {
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 5%; /* fluid padding instead of 8% */
}

.contact-btn {
    position: fixed;
    left: 20px;
    bottom: 30px;
    background: #2563eb;
    color: white;
    padding: 14px 22px;
    border-radius: 30px;
    text-decoration: none;
    font-size: 15px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 8px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
    z-index: 9999;
    transition: 0.3s ease;
}

.contact-btn:hover {
    background: #1d4ed8;
    transform: translateY(-3px);
}

/* Global Button Styles */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 22px; /* bigger tap target for mobile */
  border-radius: 8px;
  font-weight: 600;
  font-size: 0.95rem;
  text-decoration: none;
  transition: all 0.2s ease-in-out;
  cursor: pointer;
  border: none;
}

.btn-primary, .btn-purple {
  background: #4f46e5;
  color: #ffffff;
}

.btn-primary:hover, .btn-purple:hover {
  background: #4338ca;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(79, 70, 229, 0.3);
}

.btn-lg {
  padding: 14px 28px;
  font-size: 1rem;
}

/* Navbar */
.navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 5%;
  background: #ffffff;
  border-bottom: 1px solid #e2e8f0;
  position: sticky;
  top: 0;
  z-index: 100;
  flex-wrap: wrap; /* allow wrapping */
  gap: 16px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  font-size: clamp(1.2rem, 3vw, 1.4rem); /* fluid font */
  letter-spacing: -0.5px;
  color: #312e81;
  text-decoration: none;
}

.logo-img {
  height: clamp(36px, 6vw, 48px); /* scales down on mobile */
  width: auto;
  object-fit: contain;
}

.nav-links {
  display: flex;
  list-style: none;
  gap: clamp(16px, 3vw, 32px);
  flex-wrap: wrap;
}

.nav-links a {
  text-decoration: none;
  color: #64748b;
  font-weight: 500;
  font-size: 0.95rem;
  padding: 6px 0;
}

.nav-links a.active, .nav-links a:hover {
  color: #4f46e5;
  border-bottom: 2px solid #4f46e5;
}

/* Hero Section */
.hero-section {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: clamp(32px, 6vw, 60px);
  padding: clamp(50px, 10vw, 80px) 5%;
  background: #ffffff;
}

.badge {
  display: inline-block;
  background: #e0e7ff;
  color: #4338ca;
  padding: 6px 14px;
  border-radius: 20px;
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 16px;
}

.hero-content h1 {
  font-size: clamp(2rem, 5vw, 3rem); /* fluid heading */
  font-weight: 800;
  line-height: 1.15;
  color: #0f172a;
  margin-bottom: 18px;
}

.hero-content p {
  font-size: clamp(1rem, 2.5vw, 1.1rem);
  color: #475569;
  margin-bottom: 28px;
  max-width: 500px;
}

/* Strict Image Containment */
.hero-image-wrapper {
  width: 100%;
  max-width: 520px;
  aspect-ratio: 16/11; /* keeps ratio instead of fixed height */
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 20px 25px -5px rgba(0,0,0,0.1);
  margin: 0 auto;
}

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

/* Partner Grid & Compact Logos */
.partners-section {
  padding: clamp(50px, 8vw, 70px) 5%;
  background: #f8fafc;
  text-align: center;
}

.section-header h2 {
  font-size: clamp(1.5rem, 4vw, 1.8rem);
  color: #0f172a;
  margin-bottom: 8px;
}

.section-header p {
  color: #64748b;
  margin-bottom: 40px;
  font-size: clamp(0.9rem, 2vw, 1rem);
}

.partner-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); /* auto responsive */
  gap: 16px;
  max-width: 1000px;
  margin: 0 auto;
}

.partner-card {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  padding: 20px 12px;
  border-radius: 10px;
  font-weight: 700;
  font-size: 0.85rem;
  color: #334155;
  box-shadow: 0 1px 3px rgba(0,0,0,0.05);
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 80px;
}

.partner-card img {
  max-width: 100%;
  max-height: 45px;
  object-fit: contain;
}

/* Rewards Section */
.rewards-section {
  padding: 40px 5% 80px;
}

.rewards-card {
  background: linear-gradient(135deg, #312e81 0%, #4338ca 100%);
  border-radius: 20px;
  padding: clamp(30px, 6vw, 50px);
  color: #ffffff;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: center;
}

.rewards-text h2 {
  font-size: clamp(1.6rem, 4vw, 2rem);
  margin-bottom: 12px;
}

.rewards-text p {
  color: #c7d2fe;
  margin-bottom: 24px;
  font-size: clamp(0.9rem, 2vw, 1rem);
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(120px, 1fr)); /* auto responsive */
  gap: 16px;
}

.stat-box {
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(8px);
  padding: 20px 14px;
  border-radius: 12px;
  text-align: center;
  border: 1px solid rgba(255, 255, 255, 0.15);
}

.stat-box h3 {
  font-size: clamp(1.2rem, 3vw, 1.4rem);
  font-weight: 700;
}

.stat-box p {
  font-size: 0.8rem;
  color: #e0e7ff;
}

/* Footer */
footer {
  background: #0f172a;
  color: #94a3b8;
  padding-top: 60px;
}

.footer-content {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); /* auto responsive */
  gap: 40px;
  padding: 0 5% 40px;
}

.footer-brand .logo {
  color: #ffffff;
  margin-bottom: 12px;
}

.footer-links h4, .footer-contact h4 {
  color: #ffffff;
  margin-bottom: 16px;
  font-size: 0.95rem;
}

.footer-links ul {
  list-style: none;
}

.footer-links a {
  color: #94a3b8;
  text-decoration: none;
  line-height: 2;
  display: inline-block;
}

.footer-links a:hover {
  color: #ffffff;
}

.copyright {
  border-top: 1px solid #1e293b;
  text-align: center;
  padding: 20px 5%;
  font-size: 0.85rem;
  color: #64748b;
}

/* ========== MOBILE BREAKPOINTS ========== */
@media (max-width: 992px) {
  .hero-section, .rewards-card {
    grid-template-columns: 1fr;
    text-align: center;
  }
  .hero-content p { margin: 0 auto 28px; }
  .hero-image-wrapper { max-width: 100%; }
}

@media (max-width: 768px) {
  .navbar { justify-content: center; }
  .nav-links { justify-content: center; gap: 20px; }
  .btn { width: 100%; } /* full width buttons on mobile */
}

@media (max-width: 480px) {
  .partner-grid { grid-template-columns: repeat(2, 1fr); }
  .stats-grid { grid-template-columns: 1fr; }
}