/* ==========================================================================
   Ratan Matka - Premium APK Landing Page Stylesheet
   Designed for Meta Ads (Facebook/Instagram Ads) High-Conversion Campaigns
   Color Palette: Deep Midnight Navy, Electric Blue, Platinum Silver, Diamond White
   Mobile-Optimized & Compact Layout (All Sections Retained)
   ========================================================================== */

:root {
  /* Color Palette matching Ratan Matka Logo */
  --bg-dark: #070d1e;
  --bg-card: rgba(13, 27, 62, 0.75);
  --bg-card-border: rgba(0, 132, 255, 0.28);
  --primary-blue: #0084ff;
  --primary-blue-glow: rgba(0, 132, 255, 0.4);
  --cyan-accent: #00c6ff;
  --silver-light: #e2e8f0;
  --silver-mid: #94a3b8;
  --text-white: #ffffff;
  --text-muted: #cbd5e1;
  --gold-accent: #ffb703;
  --whatsapp-green: #25d366;
  --whatsapp-hover: #1ebd56;

  /* Fonts & Shadows */
  --font-heading: 'Rajdhani', sans-serif;
  --font-body: 'Poppins', sans-serif;
  --shadow-glow: 0 0 20px rgba(0, 132, 255, 0.35);
  --shadow-card: 0 8px 24px rgba(0, 0, 0, 0.5);
  --radius-sm: 6px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Reset & Base Setup */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

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

body {
  font-family: var(--font-body);
  background-color: var(--bg-dark);
  background-image: 
    radial-gradient(circle at 50% 0%, rgba(0, 132, 255, 0.18) 0%, transparent 45%),
    radial-gradient(circle at 100% 40%, rgba(0, 198, 255, 0.08) 0%, transparent 40%),
    radial-gradient(circle at 0% 80%, rgba(13, 27, 62, 0.5) 0%, transparent 50%);
  color: var(--text-white);
  line-height: 1.5;
  min-height: 100vh;
  overflow-x: hidden;
}

.container {
  width: 100%;
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 1rem;
}

/* Typography */
h1, h2, h3, h4, .brand-title {
  font-family: var(--font-heading);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.gradient-text {
  background: linear-gradient(135deg, #ffffff 0%, var(--cyan-accent) 50%, var(--primary-blue) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.gold-text {
  color: var(--gold-accent);
}

/* Header Navbar */
.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(7, 13, 30, 0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--bg-card-border);
  padding: 0.5rem 0;
}

.header-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.brand-logo-container {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}

.brand-logo-img {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--cyan-accent);
  box-shadow: 0 0 10px var(--primary-blue-glow);
}

.brand-name {
  font-size: 1.25rem;
  font-weight: 700;
  color: #ffffff;
  line-height: 1.1;
}

.brand-sub {
  font-size: 0.7rem;
  color: var(--cyan-accent);
  letter-spacing: 1.2px;
  display: block;
}

.header-cta {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 0.4rem 0.9rem;
  background: linear-gradient(135deg, var(--primary-blue), var(--cyan-accent));
  color: #ffffff;
  border-radius: 30px;
  font-weight: 600;
  font-size: 0.825rem;
  text-decoration: none;
  box-shadow: var(--shadow-glow);
  transition: var(--transition);
}

.header-cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 0 25px rgba(0, 198, 255, 0.6);
}

/* Hero Section */
.hero-section {
  padding: 1.8rem 0 1.5rem;
  text-align: center;
  position: relative;
}

.badge-top {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(0, 132, 255, 0.12);
  border: 1px solid rgba(0, 198, 255, 0.3);
  padding: 0.3rem 0.8rem;
  border-radius: 50px;
  font-size: 0.78rem;
  color: var(--cyan-accent);
  margin-bottom: 1rem;
  font-weight: 500;
}

.badge-pulse {
  width: 7px;
  height: 7px;
  background-color: #00ff88;
  border-radius: 50%;
  box-shadow: 0 0 8px #00ff88;
  animation: pulse-ring 1.5s infinite;
}

@keyframes pulse-ring {
  0% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(0, 255, 136, 0.7); }
  70% { transform: scale(1); box-shadow: 0 0 0 6px rgba(0, 255, 136, 0); }
  100% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(0, 255, 136, 0); }
}

.hero-title {
  font-size: clamp(1.6rem, 5vw, 2.4rem);
  line-height: 1.15;
  margin-bottom: 0.6rem;
}

.hero-subtitle {
  font-size: 0.9rem;
  color: var(--text-muted);
  max-width: 600px;
  margin: 0 auto 1.4rem;
  font-weight: 400;
  line-height: 1.45;
}

/* Main CTA Box */
.cta-box {
  background: var(--bg-card);
  border: 1px solid var(--bg-card-border);
  border-radius: var(--radius-md);
  padding: 1.25rem 1rem;
  max-width: 480px;
  margin: 0 auto 1.4rem;
  box-shadow: var(--shadow-card);
  backdrop-filter: blur(10px);
  position: relative;
  overflow: hidden;
}

.cta-box::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, transparent, var(--cyan-accent), transparent);
}

.btn-download-main {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  width: 100%;
  padding: 0.95rem 1.2rem;
  background: linear-gradient(135deg, #0066ff 0%, #00c6ff 100%);
  color: #ffffff;
  font-size: 1.15rem;
  font-family: var(--font-heading);
  font-weight: 700;
  text-decoration: none;
  border-radius: var(--radius-sm);
  box-shadow: 0 6px 20px rgba(0, 132, 255, 0.45);
  transition: var(--transition);
  border: none;
  cursor: pointer;
}

.btn-download-main:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 28px rgba(0, 198, 255, 0.65);
}

.btn-download-main i {
  font-size: 1.6rem;
}

.btn-subtext {
  font-size: 0.72rem;
  display: block;
  font-weight: 400;
  opacity: 0.9;
  font-family: var(--font-body);
  margin-top: 1px;
}

.meta-info-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 0.8rem;
  padding-top: 0.7rem;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  font-size: 0.78rem;
  color: var(--text-muted);
}

.meta-info-item {
  display: flex;
  align-items: center;
  gap: 4px;
}

.meta-info-item i {
  color: var(--cyan-accent);
}

/* Secondary WhatsApp Button */
.btn-whatsapp-hero {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 0.65rem 1.4rem;
  background: var(--whatsapp-green);
  color: #ffffff;
  border-radius: 30px;
  font-weight: 600;
  text-decoration: none;
  font-size: 0.9rem;
  box-shadow: 0 4px 16px rgba(37, 211, 102, 0.3);
  transition: var(--transition);
}

.btn-whatsapp-hero:hover {
  background: var(--whatsapp-hover);
  transform: translateY(-2px);
  box-shadow: 0 6px 22px rgba(37, 211, 102, 0.45);
}

/* Stats Counter Grid */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.6rem;
  max-width: 650px;
  margin: 0 auto;
}

.stat-card {
  background: rgba(13, 27, 62, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.08);
  padding: 0.75rem 0.5rem;
  border-radius: var(--radius-sm);
  text-align: center;
}

.stat-number {
  font-family: var(--font-heading);
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--cyan-accent);
  line-height: 1.1;
}

.stat-label {
  font-size: 0.72rem;
  color: var(--text-muted);
  margin-top: 2px;
}

/* App Features Section */
.features-section {
  padding: 2.2rem 0;
  position: relative;
}

.section-header {
  text-align: center;
  margin-bottom: 1.5rem;
}

.section-title {
  font-size: clamp(1.4rem, 4vw, 1.8rem);
  margin-bottom: 0.3rem;
}

.section-subtitle {
  color: var(--text-muted);
  font-size: 0.85rem;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 0.85rem;
}

.feature-card {
  background: var(--bg-card);
  border: 1px solid var(--bg-card-border);
  padding: 1.1rem 0.9rem;
  border-radius: var(--radius-md);
  transition: var(--transition);
  position: relative;
}

.feature-card:hover {
  transform: translateY(-3px);
  border-color: var(--cyan-accent);
  box-shadow: var(--shadow-glow);
}

.feature-icon {
  width: 42px;
  height: 42px;
  background: rgba(0, 132, 255, 0.15);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  color: var(--cyan-accent);
  margin-bottom: 0.8rem;
  border: 1px solid rgba(0, 198, 255, 0.3);
}

.feature-card h3 {
  font-size: 1rem;
  margin-bottom: 0.4rem;
  color: #ffffff;
}

.feature-card p {
  font-size: 0.8rem;
  color: var(--text-muted);
  line-height: 1.35;
}

/* How to Install Guide */
.install-section {
  padding: 2.2rem 0;
  background: rgba(0, 0, 0, 0.22);
  border-top: 1px solid var(--bg-card-border);
  border-bottom: 1px solid var(--bg-card-border);
}

.steps-container {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.9rem;
  margin-top: 1.5rem;
}

.step-card {
  background: var(--bg-card);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-md);
  padding: 1.4rem 0.85rem 1rem;
  text-align: center;
  position: relative;
}

.step-num {
  position: absolute;
  top: -14px;
  left: 50%;
  transform: translateX(-50%);
  width: 30px;
  height: 30px;
  background: linear-gradient(135deg, var(--primary-blue), var(--cyan-accent));
  color: #ffffff;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 0.9rem;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 3px 8px rgba(0, 132, 255, 0.4);
}

.step-card h4 {
  font-size: 0.95rem;
  margin: 0.4rem 0 0.3rem;
  color: #ffffff;
}

.step-card p {
  font-size: 0.78rem;
  color: var(--text-muted);
  line-height: 1.35;
}

/* FAQ Accordion Section */
.faq-section {
  padding: 2.2rem 0;
}

.faq-list {
  max-width: 680px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
}

.faq-item {
  background: var(--bg-card);
  border: 1px solid var(--bg-card-border);
  border-radius: var(--radius-sm);
  overflow: hidden;
  transition: var(--transition);
}

.faq-question {
  width: 100%;
  padding: 0.85rem 1.1rem;
  background: none;
  border: none;
  color: #ffffff;
  font-size: 0.9rem;
  font-weight: 600;
  text-align: left;
  display: flex;
  align-items: center;
  justify-content: space-between;
  cursor: pointer;
}

.faq-question i {
  color: var(--cyan-accent);
  font-size: 0.85rem;
  transition: var(--transition);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease-out;
  padding: 0 1.1rem;
  color: var(--text-muted);
  font-size: 0.82rem;
  line-height: 1.4;
}

.faq-item.active .faq-question i {
  transform: rotate(180deg);
}

.faq-item.active .faq-answer {
  max-height: 180px;
  padding: 0 1.1rem 0.9rem;
}

/* Bottom CTA Sticky Bar (Mobile Only) */
.mobile-sticky-bar {
  display: none;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 999;
  background: rgba(7, 13, 30, 0.96);
  backdrop-filter: blur(10px);
  padding: 0.5rem 0.85rem;
  border-top: 1px solid var(--bg-card-border);
  box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.6);
}

.mobile-sticky-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  padding: 0.75rem;
  background: linear-gradient(135deg, var(--primary-blue), var(--cyan-accent));
  color: #ffffff;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1rem;
  text-decoration: none;
  border-radius: 25px;
  box-shadow: var(--shadow-glow);
}

/* Footer & Compliance */
.site-footer {
  background: #030712;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding: 1.8rem 0 5rem; /* Bottom padding for mobile sticky bar */
  font-size: 0.78rem;
  color: var(--silver-mid);
  text-align: center;
}

.footer-logo {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-bottom: 0.9rem;
}

.footer-links {
  display: flex;
  justify-content: center;
  gap: 1.2rem;
  margin-bottom: 1rem;
  flex-wrap: wrap;
}

.footer-links a {
  color: var(--text-muted);
  text-decoration: none;
  transition: var(--transition);
}

.footer-links a:hover {
  color: var(--cyan-accent);
}

.disclaimer-box {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: var(--radius-sm);
  padding: 0.75rem;
  max-width: 750px;
  margin: 0 auto 1rem;
  line-height: 1.45;
  font-size: 0.74rem;
}

.badge-18 {
  display: inline-block;
  background: #e11d48;
  color: #ffffff;
  font-weight: 700;
  padding: 1px 5px;
  border-radius: 4px;
  font-size: 0.7rem;
  margin-right: 4px;
}

/* Modals for Privacy & Terms */
.modal-backdrop {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.8);
  backdrop-filter: blur(8px);
  z-index: 2000;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 1rem;
}

.modal-backdrop.open {
  display: flex;
}

.modal-content {
  background: var(--bg-dark);
  border: 1px solid var(--cyan-accent);
  border-radius: var(--radius-md);
  max-width: 550px;
  width: 100%;
  max-height: 80vh;
  overflow-y: auto;
  padding: 1.4rem;
  position: relative;
  box-shadow: 0 10px 35px rgba(0, 0, 0, 0.8);
}

.modal-close {
  position: absolute;
  top: 12px;
  right: 12px;
  background: none;
  border: none;
  color: var(--text-muted);
  font-size: 1.3rem;
  cursor: pointer;
}

/* Mobile Specific Optimizations (max-width: 768px) */
@media (max-width: 768px) {
  .hero-section {
    padding: 1.2rem 0 1rem;
  }

  .steps-container {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .features-grid {
    grid-template-columns: repeat(2, 1fr); /* 2 columns on mobile for compactness */
    gap: 0.65rem;
  }

  .feature-card {
    padding: 0.85rem 0.7rem;
  }

  .feature-icon {
    width: 36px;
    height: 36px;
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
  }

  .feature-card h3 {
    font-size: 0.88rem;
  }

  .feature-card p {
    font-size: 0.74rem;
  }

  .mobile-sticky-bar {
    display: block;
  }

  .cta-box {
    padding: 1rem 0.8rem;
    margin-bottom: 1.1rem;
  }

  .meta-info-bar {
    font-size: 0.7rem;
  }
}

@media (max-width: 400px) {
  .features-grid {
    grid-template-columns: 1fr; /* Single column on extremely small screens */
  }
}
