/* ============================================================
   MAIN.CSS — Shared Design System (from index.php)
   Consistent across all public pages: about, blog, contact,
   docs, documentation, faq, pricing, Register, success, etc.
   ============================================================ */

/* ====== DESIGN TOKENS ====== */
:root {
  --ink: #0a0a0f;
  --ink-light: #1a1a2e;
  --surface: #ffffff;
  --surface-2: #f4f3ff;
  --accent: #4f35f3;
  --accent-2: #00d4aa;
  --accent-glow: rgba(79,53,243,0.18);
  --text-muted: #6b7280;
  --border: rgba(79,53,243,0.12);
  --radius: 16px;
  --radius-lg: 28px;
  --font-display: 'Syne', sans-serif;
  --font-body: 'DM Sans', sans-serif;
  --transition: cubic-bezier(0.4,0,0.2,1);
}

/* ====== RESET & BASE ====== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font-body);
  background: var(--surface);
  color: var(--ink);
  overflow-x: hidden;
  line-height: 1.6;
}
a { text-decoration: none; color: inherit; }
img { max-width: 100%; display: block; }
figure { margin: 0; }

/* ====== NOISE TEXTURE 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.03'/%3E%3C/svg%3E");
  pointer-events: none;
  z-index: 9999;
  opacity: 0.4;
}

/* ====== TYPOGRAPHY ====== */
h1, h2, h3, h4, h5, h6 { font-family: var(--font-display); line-height: 1.15; }
h1 { font-size: clamp(2.4rem, 5vw, 4rem); font-weight: 800; letter-spacing: -0.03em; }
h2 { font-size: clamp(1.8rem, 3.5vw, 2.8rem); font-weight: 700; letter-spacing: -0.02em; }
h5 { font-size: 1rem; font-weight: 600; }
p { color: var(--text-muted); font-size: 1rem; line-height: 1.7; }

/* ====== ACCENT SPANS ====== */
span.hi { color: var(--accent); }

/* ====== BUTTONS ====== */
.btn-primary-p {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--accent);
  color: #fff;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.95rem;
  padding: 14px 28px;
  border-radius: 100px;
  border: none;
  cursor: pointer;
  transition: transform 0.2s var(--transition), box-shadow 0.2s var(--transition), background 0.2s;
  box-shadow: 0 4px 24px var(--accent-glow);
  white-space: nowrap;
}
.btn-primary-p:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 36px rgba(79,53,243,0.32);
  background: #3d28d4;
  color: #fff;
}
.btn-outline-p {
  display: inline-flex; align-items: center; gap: 8px;
  background: transparent;
  color: var(--accent);
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.95rem;
  padding: 13px 26px;
  border-radius: 100px;
  border: 2px solid var(--accent);
  cursor: pointer;
  transition: all 0.2s var(--transition);
  white-space: nowrap;
}
.btn-outline-p:hover {
  background: var(--accent);
  color: #fff;
  transform: translateY(-2px);
}

/* ====== NAVBAR ====== */
.p-navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  padding: 0;
  transition: background 0.3s, box-shadow 0.3s;
}
.p-navbar.scrolled {
  background: rgba(255,255,255,0.92);
  backdrop-filter: blur(16px);
  box-shadow: 0 2px 24px rgba(0,0,0,0.07);
}
.p-navbar-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 20px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.p-navbar .nav-logo img { height: 36px; width: auto; }
.p-navbar-links {
  display: flex; align-items: center; gap: 32px;
  list-style: none;
}
.p-navbar-links a {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--ink);
  opacity: 0.7;
  transition: opacity 0.2s, color 0.2s;
  position: relative;
}
.p-navbar-links a.active { 
  opacity: 1;
  color: var(--accent);
}
.p-navbar-links a.active::after {
  width: 100% !important;
}
.p-navbar-links a::after {
  content: '';
  position: absolute;
  bottom: -4px; left: 0;
  width: 0; height: 2px;
  background: var(--accent);
  transition: width 0.2s var(--transition);
  border-radius: 2px;
}
.p-navbar-links a:hover { opacity: 1; color: var(--accent); }
.p-navbar-links a:hover::after { width: 100%; }

/* Dropdown */
.p-dropdown { position: relative; }
.p-dropdown > a { cursor: pointer; display: flex; align-items: center; gap: 4px; }
.p-dropdown-menu {
  position: absolute;
  top: calc(100% + 12px);
  left: 50%; transform: translateX(-50%) translateY(-6px);
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: 0 16px 48px rgba(0,0,0,0.12);
  min-width: 200px;
  padding: 8px;
  opacity: 0; visibility: hidden;
  transition: all 0.2s var(--transition);
  list-style: none;
}
.p-dropdown:hover .p-dropdown-menu { opacity: 1; visibility: visible; transform: translateX(-50%) translateY(0); }
.p-dropdown-menu li a {
  display: block;
  padding: 10px 14px;
  border-radius: 10px;
  font-size: 0.88rem;
  opacity: 1;
  color: var(--ink);
  transition: background 0.15s;
}
.p-dropdown-menu li a:hover { background: var(--surface-2); color: var(--accent); }
.p-dropdown-menu li a::after { display: none; }

.p-navbar-actions { display: flex; align-items: center; gap: 12px; }
.p-hamburger {
  display: none;
  flex-direction: column; gap: 5px;
  cursor: pointer; padding: 6px;
  background: none; border: none;
}
.p-hamburger span {
  display: block; width: 22px; height: 2px;
  background: var(--ink); border-radius: 2px;
  transition: all 0.3s;
}

/* Mobile aside */
.p-aside {
  position: fixed;
  inset: 0;
  z-index: 2000;
  pointer-events: none;
}
.p-aside-backdrop {
  position: absolute; inset: 0;
  background: rgba(10,10,15,0.5);
  opacity: 0;
  transition: opacity 0.3s;
  backdrop-filter: blur(4px);
}
.p-aside-panel {
  position: absolute;
  top: 0; right: 0; bottom: 0;
  width: min(320px, 85vw);
  background: #fff;
  padding: 24px;
  transform: translateX(100%);
  transition: transform 0.35s var(--transition);
  display: flex; flex-direction: column; gap: 8px;
  overflow-y: auto;
}
.p-aside.open { pointer-events: all; }
.p-aside.open .p-aside-backdrop { opacity: 1; }
.p-aside.open .p-aside-panel { transform: translateX(0); }
.p-aside-close {
  align-self: flex-end;
  background: none; border: 1px solid var(--border);
  width: 36px; height: 36px;
  border-radius: 50%; cursor: pointer;
  font-size: 1.2rem; color: var(--ink);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 16px;
}
.p-aside-logo { margin-bottom: 16px; }
.p-aside-logo img { height: 32px; }
.p-aside-links { list-style: none; display: flex; flex-direction: column; gap: 4px; }
.p-aside-links li a {
  display: block;
  padding: 12px 16px;
  border-radius: 12px;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1rem;
  color: var(--ink);
  transition: background 0.15s, color 0.15s;
}
.p-aside-links li a:hover { background: var(--surface-2); color: var(--accent); }
.p-aside-cta { margin-top: auto; display: flex; flex-direction: column; gap: 10px; }

/* ====== SECTION BASE ====== */
.p-section { padding: 100px 0; }
.p-section-tag {
  display: inline-block;
  font-family: var(--font-display);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent);
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: 100px;
  padding: 4px 14px;
  margin-bottom: 16px;
}

/* ====== PAGE HERO (generic) ====== */
.p-page-hero {
  padding: 140px 0 80px;
  position: relative;
  overflow: hidden;
}
.p-page-hero::before {
  content: '';
  position: absolute;
  top: -20%; right: -10%;
  width: 50vw; height: 50vw;
  background: radial-gradient(ellipse, rgba(79,53,243,0.08) 0%, transparent 70%);
  border-radius: 50%;
  pointer-events: none;
}

/* ====== Enhanced Footer Styles ====== */
.p-footer {
  background: linear-gradient(135deg, #1a1a2e 0%, #16213e 50%, #0f3460 100%);
  color: #ffffff;
  padding: 60px 0 20px;
  position: relative;
  overflow: hidden;
}
.p-footer::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grid" width="10" height="10" patternUnits="userSpaceOnUse"><path d="M 10 0 L 0 0 0 10" fill="none" stroke="rgba(255,255,255,0.05)" stroke-width="1"/></pattern></defs><rect width="100" height="100" fill="url(%23grid)"/></svg>');
  pointer-events: none;
}
.p-footer-grid {
  display: grid;
  grid-template-columns: 1fr 280px 320px;
  gap: 40px;
  margin-bottom: 40px;
  position: relative;
  z-index: 1;
}
.p-footer-logo { margin-bottom: 20px; }
.p-logo-wrapper {
  display: inline-block;
  padding: 12px 20px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  transition: all 0.3s ease;
}
.p-logo-wrapper:hover {
  background: rgba(255, 255, 255, 0.15);
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
}
.p-logo-wrapper img { height: 40px; width: auto; filter: brightness(1.2) contrast(1.1); }
.p-footer-desc {
  color: rgba(255, 255, 255, 0.8);
  line-height: 1.6;
  margin-bottom: 25px;
  font-size: 15px;
}
.p-footer-social {
  display: flex; gap: 12px; flex-wrap: wrap;
}
.p-social-link {
  display: flex; align-items: center; justify-content: center;
  width: 44px; height: 44px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 10px;
  color: #ffffff;
  text-decoration: none;
  transition: all 0.3s ease;
  border: 1px solid rgba(255, 255, 255, 0.1);
}
.p-social-link:hover {
  background: #25d366;
  color: #ffffff;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(37, 211, 102, 0.3);
}
.p-social-link i { font-size: 18px; }
.p-footer-title {
  display: flex; align-items: center; gap: 8px;
  font-size: 18px; font-weight: 600;
  margin-bottom: 25px; color: #ffffff;
}
.p-footer-title i { color: #007bff; font-size: 16px; }
.p-footer-links { list-style: none; padding: 0; margin: 0; }
.p-footer-links li { margin-bottom: 12px; }
.p-footer-link {
  display: flex; align-items: center; gap: 12px;
  color: rgba(255, 255, 255, 0.8);
  text-decoration: none;
  padding: 10px 15px;
  border-radius: 8px;
  transition: all 0.3s ease;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid transparent;
}
.p-footer-link:hover {
  color: #ffffff;
  background: rgba(0, 123, 255, 0.2);
  border-color: rgba(0, 123, 255, 0.3);
  transform: translateX(5px);
}
.p-footer-link i { font-size: 16px; width: 20px; text-align: center; color: #007bff; }
.p-whatsapp-btn:hover {
  background: rgba(37, 211, 102, 0.2) !important;
  border-color: rgba(37, 211, 102, 0.3) !important;
}
.p-whatsapp-btn i { color: #25d366 !important; }
.p-footer-cta-card {
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.1) 0%, rgba(255, 255, 255, 0.05) 100%);
  border-radius: 16px;
  padding: 25px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
}
.p-cta-content { margin-bottom: 20px; }
.p-cta-content h6 { font-size: 18px; font-weight: 600; margin-bottom: 8px; color: #ffffff; }
.p-cta-content p { color: rgba(255, 255, 255, 0.8); font-size: 14px; line-height: 1.5; margin: 0; }
.p-footer-cta-btns { display: flex; flex-direction: column; gap: 12px; }
.p-cta-btn {
  display: flex; align-items: center; gap: 12px;
  padding: 15px 20px;
  border-radius: 12px;
  text-decoration: none;
  transition: all 0.3s ease;
  border: 1px solid rgba(255, 255, 255, 0.2);
  background: rgba(255, 255, 255, 0.08);
}
.p-cta-login {
  background: linear-gradient(135deg, rgba(0, 123, 255, 0.2) 0%, rgba(0, 123, 255, 0.1) 100%);
  border-color: rgba(0, 123, 255, 0.3);
}
.p-cta-register {
  background: linear-gradient(135deg, rgba(40, 167, 69, 0.2) 0%, rgba(40, 167, 69, 0.1) 100%);
  border-color: rgba(40, 167, 69, 0.3);
}
.p-cta-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
}
.p-cta-login:hover { background: linear-gradient(135deg, rgba(0, 123, 255, 0.3) 0%, rgba(0, 123, 255, 0.2) 100%); }
.p-cta-register:hover { background: linear-gradient(135deg, rgba(40, 167, 69, 0.3) 0%, rgba(40, 167, 69, 0.2) 100%); }
.p-cta-btn i { font-size: 20px; color: #ffffff; }
.p-cta-text { display: flex; flex-direction: column; gap: 2px; }
.p-cta-label { font-size: 12px; color: rgba(255, 255, 255, 0.7); }
.p-cta-action { font-size: 16px; font-weight: 600; color: #ffffff; }
.p-footer-divider {
  height: 1px;
  background: linear-gradient(90deg, transparent 0%, rgba(255, 255, 255, 0.2) 50%, transparent 100%);
  margin: 40px 0 25px;
}
.p-footer-bottom {
  display: flex; justify-content: space-between; align-items: center;
  flex-wrap: wrap; gap: 15px; padding-top: 20px;
  position: relative; z-index: 1;
}
.p-copyright {
  display: flex; align-items: center; gap: 8px;
  color: rgba(255, 255, 255, 0.6); font-size: 14px; margin: 0;
}
.p-made-in-india {
  display: flex; align-items: center; gap: 8px;
  color: rgba(255, 255, 255, 0.6); font-size: 14px; margin: 0;
}
.p-india-flag { width: 20px; height: auto; border-radius: 2px; }

/* ====== SCROLL TO TOP ====== */
.p-scroll-top {
  position: fixed;
  bottom: 28px; right: 28px;
  width: 48px; height: 48px;
  background: var(--accent);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  color: #fff; font-size: 1rem;
  cursor: pointer;
  box-shadow: 0 4px 20px rgba(79,53,243,0.4);
  opacity: 0; transform: translateY(16px);
  transition: opacity 0.3s, transform 0.3s;
  z-index: 999;
  border: none;
}
.p-scroll-top.visible { opacity: 1; transform: translateY(0); }
.p-scroll-top:hover { transform: translateY(-3px); box-shadow: 0 8px 32px rgba(79,53,243,0.5); }

/* ====== SEARCH MODAL ====== */
.p-search-modal {
  position: fixed; inset: 0;
  background: rgba(10,10,15,0.7); backdrop-filter: blur(8px);
  z-index: 3000;
  display: flex; align-items: flex-start; justify-content: center;
  padding-top: 120px;
  opacity: 0; visibility: hidden;
  transition: all 0.3s;
}
.p-search-modal.open { opacity: 1; visibility: visible; }
.p-search-box {
  background: #fff;
  border-radius: var(--radius-lg);
  padding: 8px;
  display: flex; align-items: center; gap: 8px;
  width: min(560px, 90vw);
  box-shadow: 0 24px 80px rgba(0,0,0,0.25);
}
.p-search-box input {
  flex: 1;
  border: none; outline: none;
  font-family: var(--font-body);
  font-size: 1rem;
  padding: 12px 16px;
  background: transparent;
  color: var(--ink);
}
.p-search-close {
  background: var(--surface-2); border: none; cursor: pointer;
  width: 40px; height: 40px; border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.1rem; color: var(--text-muted);
  transition: background 0.2s;
}
.p-search-close:hover { background: var(--border); }

/* ============================================================
   RESPONSIVE — Mobile-First Optimizations
   Breakpoints: 1199 (small desktop), 991 (tablet),
   767 (phone landscape), 576 (phone), 480 (small phone), 360 (tiny)
   ============================================================ */

/* ----- 1199px: Small Desktop / Landscape Tablet ----- */
@media (max-width: 1199px) {
  .p-section { padding: 80px 0; }
  .p-page-hero { padding: 120px 0 64px; }
  .p-footer-grid { gap: 28px; }
}

/* ----- 991px: Tablet / Mobile Nav Toggle ----- */
@media (max-width: 991px) {
  /* Navbar */
  .p-navbar-links,
  .p-navbar-actions .btn-outline-p { display: none; }
  .p-hamburger { display: flex; }
  .p-navbar-inner { padding: 14px 20px; }

  /* Hero (index) */
  .p-hero { padding: 120px 0 60px; text-align: center; }
  .p-hero .row { flex-direction: column-reverse; }
  .p-hero-image-wrap { margin: 0 auto 32px; max-width: 340px; }
  .p-hero-upi { max-width: 280px; margin: 0 auto; }
  .p-hero-stats { justify-content: center; flex-wrap: wrap; gap: 12px; }
  .p-stat-card { min-width: 120px; }
  .p-hero-cta { justify-content: center; flex-wrap: wrap; }
  .p-hero-social-proof { justify-content: center; }
  .p-hero-badge { margin: 0 auto 12px; }

  /* Page hero (generic) */
  .p-page-hero { padding: 110px 0 52px; text-align: center; }
  .p-page-hero::before { width: 80vw; height: 80vw; top: -10%; right: -20%; }

  /* Section spacing */
  .p-section { padding: 64px 0; }

  /* Features grid */
  .p-features-grid { grid-template-columns: 1fr 1fr; gap: 14px; }
  .p-feature-card { padding: 20px; }

  /* Steps */
  .p-steps-visual { max-width: 400px; margin: 0 auto; }

  /* Testimonials */
  .p-testimonials-grid { grid-template-columns: 1fr 1fr; gap: 14px; }

  /* Benefits / Transfer UI */
  .p-benefits-visual { max-width: 360px; margin: 0 auto 32px; }
  .p-transfer-ui { max-width: 360px; margin: 0 auto; }
  .p-benefits .row { flex-direction: column; }

  /* Checklist grid */
  .p-checklist { grid-template-columns: 1fr; gap: 10px; }

  /* Partners */
  .p-partners-track { gap: 32px; }

  /* Footer */
  .p-footer-grid { grid-template-columns: 1fr 1fr; gap: 28px; }
  .p-footer-col:first-child { grid-column: 1 / -1; }
  .p-footer-cta-btns { flex-direction: row; }
  .p-cta-btn { flex: 1; }

  /* Bootstrap grid overrides */
  .col-lg-6, .col-lg-5, .col-lg-7,
  .col-lg-4, .col-lg-3, .col-lg-8 { margin-bottom: 16px; }

  /* Aside panel */
  .p-aside-panel { width: min(300px, 80vw); }
}

/* ----- 767px: Phone Landscape ----- */
@media (max-width: 767px) {
  /* Typography */
  h1 { font-size: clamp(1.8rem, 6vw, 2.8rem); }
  h2 { font-size: clamp(1.5rem, 5vw, 2rem); }

  /* Section */
  .p-section { padding: 52px 0; }
  .p-page-hero { padding: 96px 0 44px; }
  .p-page-hero h1 { font-size: 1.8rem; }

  /* Hero (index) */
  .p-hero { padding: 100px 0 48px; }
  .p-hero-stats { gap: 8px; }
  .p-stat-card { padding: 12px 14px; min-width: 100px; }

  /* Features grid → single col */
  .p-features-grid { grid-template-columns: 1fr; gap: 12px; }
  .p-feature-card { padding: 18px 16px; }

  /* Testimonials → single col */
  .p-testimonials-grid { grid-template-columns: 1fr; gap: 12px; }
  .p-tcard { padding: 18px; }

  /* Steps */
  .p-steps .row { flex-direction: column; text-align: center; }
  .p-mini-stats { justify-content: center; }

  /* Benefits */
  .p-benefits .row > div { text-align: center; }
  .p-benefit-item { justify-content: center; }

  /* Partners */
  .p-partners-track { gap: 24px; animation: none; flex-wrap: wrap; justify-content: center; }
  .p-partner-logo { width: 80px; height: 40px; }

  /* Footer */
  .p-footer { padding: 36px 0 16px; }
  .p-footer-grid { grid-template-columns: 1fr; gap: 24px; }
  .p-footer-bottom { flex-direction: column; text-align: center; gap: 10px; align-items: center; }
  .p-footer-cta-btns { flex-direction: column; }
  .p-footer-social { justify-content: center; }
  .p-footer-divider { margin: 24px 0 16px; }
  .p-copyright, .p-made-in-india { justify-content: center; font-size: 0.8rem; }
  .p-footer-title { font-size: 1rem; }
  .p-footer-desc { font-size: 0.85rem; }
  .p-footer-link { padding: 8px 12px; font-size: 0.84rem; }
  .p-cta-btn { padding: 12px 16px; }

  /* Cards (general) */
  .p-card, .p-feature-card, .p-tcard { border-radius: var(--radius); }

  /* Scroll to top */
  .p-scroll-top { width: 40px; height: 40px; bottom: 20px; right: 20px; font-size: 0.85rem; }

  /* Search modal */
  .p-search-modal { padding-top: 80px; }
  .p-search-box { width: 92vw; }

  /* Buttons */
  .btn-primary-p, .btn-outline-p { padding: 12px 22px; font-size: 0.88rem; width: 100%; justify-content: center; }
  .p-hero-cta { flex-direction: column; width: 100%; }
  .p-hero-cta .btn-primary-p,
  .p-hero-cta .btn-outline-p { width: 100%; }

  /* Code blocks (documentation page) */
  .code-block { padding: 14px; font-size: 0.78rem; overflow-x: auto; -webkit-overflow-scrolling: touch; }
  .code-block pre { white-space: pre-wrap; word-break: break-all; }

  /* Method badges */
  .method-badge { font-size: 0.7rem; padding: 3px 10px; }

  /* FAQ accordion */
  .accordion-button { font-size: 0.9rem; padding: 14px 16px; }
  .accordion-body { padding: 12px 16px; font-size: 0.85rem; }

  /* Pricing cards */
  .pricing-card { margin-bottom: 12px; }

  /* Blog cards */
  .blog-card img { height: 160px; }

  /* Contact form */
  .contact-form-wrap { padding: 20px 16px; }

  /* Stats card grid fixes */
  .stats-grid-2col { grid-template-columns: 1fr 1fr; gap: 10px; }

  /* Disable heavy animations on mobile for perf */
  .p-hero::before,
  .p-hero::after,
  .p-page-hero::before { opacity: 0.3; }
  body::before { opacity: 0.15; }
}

/* ----- 576px: Phone Portrait ----- */
@media (max-width: 576px) {
  .p-section { padding: 44px 0; }
  .p-page-hero { padding: 84px 0 36px; }
  .p-hero { padding: 88px 0 40px; }

  .p-navbar-inner { padding: 12px 16px; }
  .nav-logo img { height: 28px; }

  .p-section-tag { font-size: 0.72rem; padding: 3px 10px; }

  .p-hero-stats { flex-direction: column; align-items: stretch; gap: 8px; }
  .p-stat-card { min-width: unset; width: 100%; }

  .p-footer-logo-wrapper { padding: 8px 14px; }
  .p-logo-wrapper img { height: 28px; }
  .p-footer-link { padding: 8px 10px; font-size: 0.82rem; }
}

/* ----- 480px: Small Phones ----- */
@media (max-width: 480px) {
  h1 { font-size: 1.6rem; }
  h2 { font-size: 1.35rem; }
  p { font-size: 0.9rem; line-height: 1.6; }

  .p-section { padding: 36px 0; }
  .p-page-hero { padding: 76px 0 32px; }
  .p-hero { padding: 80px 0 36px; }

  .p-aside-panel { width: min(280px, 85vw); padding: 16px; }
  .p-aside-links li a { padding: 10px 12px; font-size: 0.9rem; }

  .p-hero-image-wrap { max-width: 260px; }
  .p-hero-upi { max-width: 220px; }

  .p-footer-cta-card { padding: 16px; }
  .p-cta-content h6 { font-size: 1rem; }
  .p-social-link { width: 38px; height: 38px; }

  /* Stats grid → single col */
  .stats-grid-2col { grid-template-columns: 1fr; }

  /* Buttons full width at smallest */
  .btn-primary-p, .btn-outline-p { padding: 11px 18px; font-size: 0.84rem; border-radius: 50px; }

  /* Table-like content scroll */
  .table-responsive { display: block; width: 100%; overflow-x: auto; -webkit-overflow-scrolling: touch; }

  /* Container padding */
  .container, .container-lg, .container-md, .container-sm { padding-left: 14px; padding-right: 14px; }
}

/* ----- 360px: Very Small / Feature Phones ----- */
@media (max-width: 360px) {
  .p-navbar-inner { padding: 10px 12px; }
  .nav-logo img { height: 24px; }
  .p-aside-panel { width: 85vw; }
  .p-footer { padding: 28px 0 12px; }
  .p-footer-link { font-size: 0.78rem; padding: 6px 8px; }
  .btn-primary-p, .btn-outline-p { padding: 10px 14px; font-size: 0.8rem; }
  h1 { font-size: 1.4rem; }
  h2 { font-size: 1.2rem; }
}

/* ===== REDUCED MOTION (Accessibility) ===== */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
  .p-hero-upi { animation: none !important; }
  .p-partners-track { animation: none !important; }
}
