/* ==========================================================================
   BroadInfinity - 6-Month SDE Internship Preparation Roadmap 2027
   Styles matching the exact reference design with high-fidelity visual finish
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@300;400;500;600;700;800&family=Caveat:wght@600;700&display=swap');

:root {
  --font-main: 'Plus Jakarta Sans', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-hand: 'Caveat', cursive;

  /* Colors sampled directly from reference */
  --bg-dark-base: #02071e;
  --bg-dark-hero: #020b2d;
  --bg-dark-nav: #030a24;
  --bg-dark-bar: #07133b;
  --bg-dark-card: #091746;
  --bg-dark-card-border: rgba(56, 189, 248, 0.15);

  --bg-light-base: #f4f7fe;
  --bg-light-card: #ffffff;
  --bg-light-border: #e2e8f0;

  --text-white: #ffffff;
  --text-heading-dark: #0b132b;
  --text-muted-dark: #94a3b8;
  --text-muted-light: #64748b;

  --primary-purple: #7c3aed;
  --primary-indigo: #6366f1;
  --primary-blue: #3b82f6;
  --primary-cyan: #38bdf8;
  --accent-green: #22c55e;
  --accent-yellow: #fbbf24;

  --btn-gradient: linear-gradient(135deg, #7c3aed 0%, #4f46e5 100%);
  --btn-gradient-hover: linear-gradient(135deg, #8b5cf6 0%, #6366f1 100%);
  --cta-banner-gradient: linear-gradient(90deg, #4f46e5 0%, #2563eb 50%, #3b82f6 100%);
  --purple-text-gradient: linear-gradient(135deg, #c084fc 0%, #818cf8 100%);
}

/* Base Reset & Typography */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  font-family: var(--font-main);
  background-color: var(--bg-dark-base);
  color: var(--text-white);
  -webkit-font-smoothing: antialiased;
}

body {
  overflow-x: hidden;
  line-height: 1.5;
}

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

/* Container */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* ==========================================================================
   Header / Navbar
   ========================================================================== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background-color: rgba(3, 10, 36, 0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  padding: 0.85rem 0;
}

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

/* Brand Logo */
.brand-logo {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 1.35rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: #ffffff;
}

.brand-logo-img {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  object-fit: cover;
  filter: drop-shadow(0 0 10px rgba(56, 189, 248, 0.6)) drop-shadow(0 0 15px rgba(168, 85, 247, 0.4));
  transition: transform 0.25s ease;
}

.brand-logo:hover .brand-logo-img {
  transform: rotate(15deg) scale(1.08);
}

.brand-text .infinity-highlight {
  color: #40a9ff;
  font-weight: 700;
}

/* Navigation Links */
.nav-links {
  display: flex;
  align-items: center;
  gap: 2rem;
  list-style: none;
}

.nav-link {
  font-size: 0.95rem;
  font-weight: 500;
  color: #94a3b8;
  transition: color 0.2s ease;
  position: relative;
  padding: 0.25rem 0;
}

.nav-link:hover {
  color: #ffffff;
}

.nav-link.active {
  color: #ffffff;
  font-weight: 600;
}

.nav-link.active::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  right: 0;
  height: 2px;
  background: #38bdf8;
  border-radius: 9999px;
}

/* Nav Actions */
.nav-actions {
  display: flex;
  align-items: center;
  gap: 1rem;
}

/* Gradient Pill Buttons */
.btn-pill-gradient {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  background: var(--btn-gradient);
  color: #ffffff;
  font-weight: 600;
  font-size: 0.95rem;
  padding: 0.6rem 1.4rem;
  border-radius: 9999px;
  border: none;
  cursor: pointer;
  box-shadow: 0 4px 15px rgba(124, 58, 237, 0.45);
  transition: all 0.25s ease;
}

.btn-pill-gradient:hover {
  background: var(--btn-gradient-hover);
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(124, 58, 237, 0.6);
}

.btn-pill-gradient:active {
  transform: translateY(0);
}

/* Mobile Nav Toggle & Drawer */
.mobile-nav-toggle {
  display: none;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: #ffffff;
  padding: 0.45rem;
  border-radius: 10px;
  cursor: pointer;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
  line-height: 1;
}

.mobile-nav-toggle:hover {
  background: rgba(255, 255, 255, 0.16);
}

.mobile-menu-drawer {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background-color: rgba(3, 10, 36, 0.98);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.5);
  padding: 1.25rem 1.5rem;
  flex-direction: column;
  gap: 1rem;
  transform: translateY(-8px);
  opacity: 0;
  visibility: hidden;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.mobile-menu-drawer.open {
  display: flex;
  transform: translateY(0);
  opacity: 1;
  visibility: visible;
}

.mobile-menu-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.mobile-nav-link {
  display: block;
  font-size: 1.05rem;
  font-weight: 600;
  color: #cbd5e1;
  padding: 0.65rem 0.6rem;
  border-radius: 8px;
  transition: all 0.2s ease;
}

.mobile-nav-link:hover,
.mobile-nav-link.active {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.08);
  padding-left: 0.9rem;
}

.mobile-menu-cta {
  padding-top: 0.5rem;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

/* ==========================================================================
   Hero Section
   ========================================================================== */
.hero-section {
  position: relative;
  padding: 3.5rem 0 3rem 0;
  background: radial-gradient(circle at 75% 25%, rgba(49, 130, 246, 0.18) 0%, transparent 45%),
              radial-gradient(circle at 20% 40%, rgba(139, 92, 246, 0.15) 0%, transparent 40%),
              var(--bg-dark-base);
  overflow: hidden;
}

/* Background grid glow overlay */
.hero-ambient-glow {
  position: absolute;
  top: 10%;
  right: 15%;
  width: 480px;
  height: 480px;
  background: radial-gradient(circle, rgba(56, 189, 248, 0.22) 0%, rgba(99, 102, 241, 0.1) 50%, transparent 70%);
  filter: blur(60px);
  pointer-events: none;
  z-index: 1;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  align-items: center;
  gap: 2.5rem;
  position: relative;
  z-index: 2;
}

/* Hero Left Content */
.hero-badge-pill {
  display: inline-flex;
  align-items: center;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: #cbd5e1;
  font-size: 0.85rem;
  font-weight: 500;
  padding: 0.35rem 1rem;
  border-radius: 9999px;
  margin-bottom: 1.25rem;
}

.hero-title {
  font-size: 3.25rem;
  line-height: 1.12;
  font-weight: 800;
  letter-spacing: -0.03em;
  margin-bottom: 1rem;
  color: #ffffff;
}

.hero-brand-line {
  display: block;
}

.hero-brand-name {
  color: #ffffff;
}

.hero-infinity-purple {
  background: linear-gradient(135deg, #a855f7 0%, #6366f1 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  display: inline-block;
}

.hero-subhead {
  font-size: 1.35rem;
  font-weight: 700;
  margin-bottom: 0.9rem;
  color: #ffffff;
}

.text-purple-highlight {
  color: #c084fc;
}

.text-cyan-highlight {
  color: #38bdf8;
}

.hero-desc {
  font-size: 1.05rem;
  line-height: 1.6;
  color: #94a3b8;
  max-width: 540px;
  margin-bottom: 1.75rem;
}

/* Feature Checkmarks Grid */
.hero-check-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.85rem 1.5rem;
  margin-bottom: 2.25rem;
  max-width: 520px;
}

.check-item {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  font-size: 0.95rem;
  font-weight: 500;
  color: #e2e8f0;
}

.check-icon-circle {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background-color: var(--accent-green);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: #022c22;
  font-weight: 800;
  font-size: 0.75rem;
}

/* Hero CTA Area */
.hero-cta-group {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.65rem;
}

.hero-btn-large {
  font-size: 1.05rem;
  padding: 0.85rem 2rem;
  box-shadow: 0 10px 25px -4px rgba(124, 58, 237, 0.65);
}

.hero-trust-note {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  font-size: 0.8rem;
  color: #64748b;
  margin-left: 0.5rem;
}

.hero-trust-note svg {
  color: #22c55e;
}

/* Hero Right Visual: Book Mockup */
.hero-visual-wrapper {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
}

.hero-book-container {
  position: relative;
  max-width: 420px;
  width: 100%;
  animation: floatBook 5s ease-in-out infinite;
}

@keyframes floatBook {
  0%, 100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-8px);
  }
}

.hero-book-img {
  width: 100%;
  height: auto;
  display: block;
  filter: drop-shadow(0 25px 35px rgba(2, 6, 23, 0.85)) drop-shadow(0 0 45px rgba(56, 189, 248, 0.25));
  border-radius: 12px;
}

/* ==========================================================================
   4-Cards Feature Bar (Beneath Hero)
   ========================================================================== */
.feature-bar-section {
  background-color: var(--bg-dark-bar);
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  padding: 1.5rem 0;
}

.feature-bar-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.25rem;
}

.feature-bar-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 0.5rem 1rem;
  position: relative;
}

.feature-bar-item:not(:last-child)::after {
  content: '';
  position: absolute;
  right: 0;
  top: 15%;
  height: 70%;
  width: 1px;
  background-color: rgba(255, 255, 255, 0.08);
}

.bar-icon {
  font-size: 1.4rem;
  margin-bottom: 0.5rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.bar-title {
  font-size: 1rem;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 0.25rem;
}

.bar-desc {
  font-size: 0.8rem;
  color: #94a3b8;
  line-height: 1.35;
}

/* ==========================================================================
   "What's Inside?" Section (Clean Light Section)
   ========================================================================== */
.whats-inside-section {
  background-color: var(--bg-light-base);
  color: var(--text-heading-dark);
  padding: 5rem 0;
}

.whats-inside-grid {
  display: grid;
  grid-template-columns: 0.95fr 1.65fr;
  gap: 3.5rem;
  align-items: flex-start;
}

/* Left Column */
.whats-inside-left {
  position: sticky;
  top: 6rem;
}

.accent-pill-bar {
  width: 38px;
  height: 4px;
  background-color: var(--primary-purple);
  border-radius: 9999px;
  margin-bottom: 1.25rem;
}

.section-heading-dark {
  font-size: 2.75rem;
  font-weight: 800;
  color: #0b132b;
  letter-spacing: -0.02em;
  margin-bottom: 0.85rem;
}

.section-desc-light {
  font-size: 1.05rem;
  color: #475569;
  line-height: 1.55;
  margin-bottom: 1.75rem;
  max-width: 380px;
}

.complete-guide-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background-color: var(--primary-purple);
  color: #ffffff;
  font-size: 0.9rem;
  font-weight: 600;
  padding: 0.65rem 1.4rem;
  border-radius: 9999px;
  box-shadow: 0 4px 12px rgba(124, 58, 237, 0.25);
}

/* Right Cards Grid */
.inside-cards-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
}

.inside-card {
  background-color: #ffffff;
  border: 1px solid #eef2f6;
  border-radius: 16px;
  padding: 1.6rem 1.2rem;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.03);
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.inside-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.06);
  border-color: #cbd5e1;
}

.card-icon-wrap {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1rem;
}

.card-title-dark {
  font-size: 1rem;
  font-weight: 700;
  color: #0f172a;
  margin-bottom: 0.35rem;
  line-height: 1.3;
}

.card-desc-muted {
  font-size: 0.82rem;
  color: #64748b;
  line-height: 1.35;
}

/* ==========================================================================
   "Trusted by Aspiring Developers" (Dark Section)
   ========================================================================== */
.testimonials-section {
  background-color: var(--bg-dark-base);
  padding: 5rem 0 3.5rem 0;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.testimonials-grid {
  display: grid;
  grid-template-columns: 0.85fr 1.75fr;
  gap: 3rem;
  align-items: center;
}

.section-heading-white {
  font-size: 2.25rem;
  font-weight: 800;
  color: #ffffff;
  line-height: 1.2;
  margin-bottom: 0.9rem;
  letter-spacing: -0.02em;
}

.section-desc-dark {
  font-size: 1rem;
  color: #94a3b8;
  line-height: 1.5;
  margin-bottom: 1.75rem;
  max-width: 320px;
}

.btn-pill-outline {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: transparent;
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.85);
  padding: 0.65rem 1.4rem;
  border-radius: 9999px;
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
}

.btn-pill-outline:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: #ffffff;
  transform: translateY(-1px);
}

/* 3 Testimonials Cards */
.testimonials-cards-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
}

.test-card {
  background-color: rgba(9, 23, 70, 0.8);
  border: 1px solid rgba(56, 189, 248, 0.18);
  border-radius: 16px;
  padding: 1.4rem 1.2rem;
  display: flex;
  flex-direction: column;
  backdrop-filter: blur(8px);
  transition: transform 0.2s ease, border-color 0.2s ease;
}

.test-card:hover {
  transform: translateY(-3px);
  border-color: rgba(56, 189, 248, 0.4);
}

.test-avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid rgba(56, 189, 248, 0.3);
  margin-bottom: 0.9rem;
}

.test-quote {
  font-size: 0.82rem;
  color: #e2e8f0;
  line-height: 1.45;
  margin-bottom: 1rem;
  flex-grow: 1;
}

.test-author-name {
  font-size: 0.88rem;
  font-weight: 700;
  color: #ffffff;
}

.test-author-college {
  font-size: 0.75rem;
  color: #94a3b8;
  margin-bottom: 0.5rem;
}

.test-stars {
  display: flex;
  gap: 0.15rem;
  color: #fbbf24;
  font-size: 0.75rem;
}

/* ==========================================================================
   Bottom CTA Banner
   ========================================================================== */
.cta-banner-wrapper {
  padding: 2rem 0;
  background-color: var(--bg-dark-base);
}

.cta-banner-card {
  background: var(--cta-banner-gradient);
  border-radius: 16px;
  padding: 1.25rem 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  box-shadow: 0 10px 30px rgba(37, 99, 235, 0.35);
}

.cta-banner-left {
  display: flex;
  align-items: center;
  gap: 1.25rem;
}

.cta-banner-icon-bubble {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(6px);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  flex-shrink: 0;
}

.cta-banner-title {
  font-size: 1.15rem;
  font-weight: 800;
  color: #ffffff;
  margin-bottom: 0.2rem;
}

.cta-banner-sub {
  font-size: 0.88rem;
  color: #e0e7ff;
}

.btn-white-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background-color: #ffffff;
  color: #0f172a;
  font-weight: 700;
  font-size: 0.92rem;
  padding: 0.75rem 1.6rem;
  border-radius: 9999px;
  border: none;
  cursor: pointer;
  white-space: nowrap;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
  transition: all 0.2s ease;
}

.btn-white-pill:hover {
  background-color: #f8fafc;
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.2);
}

/* ==========================================================================
   Footer
   ========================================================================== */
.site-footer {
  background-color: #02071a;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  padding: 2.5rem 0 1.5rem 0;
  font-size: 0.85rem;
  color: #64748b;
}

.footer-top-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 2rem;
}

.footer-nav-links {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  list-style: none;
}

.footer-nav-link {
  color: #94a3b8;
  transition: color 0.2s ease;
}

.footer-nav-link:hover {
  color: #ffffff;
}

.footer-socials {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.social-link {
  color: #ffffff;
  opacity: 0.85;
  transition: opacity 0.2s ease, transform 0.2s ease;
  display: flex;
  align-items: center;
  justify-content: center;
}

.social-link:hover {
  opacity: 1;
  transform: translateY(-2px);
}

.footer-bottom-divider {
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  padding-top: 1.25rem;
  text-align: center;
  font-size: 0.75rem;
  color: #64748b;
}

/* ==========================================================================
   Checkout Modal & Razorpay Simulation
   ========================================================================== */
.modal-overlay {
  position: fixed;
  inset: 0;
  background-color: rgba(2, 6, 23, 0.8);
  backdrop-filter: blur(8px);
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
}

.modal-overlay.active {
  opacity: 1;
  visibility: visible;
}

.checkout-card {
  background-color: #ffffff;
  color: #0f172a;
  width: 100%;
  max-width: 450px;
  border-radius: 24px;
  overflow: hidden;
  border: none !important;
  box-shadow: 0 25px 60px -15px rgba(2, 6, 23, 0.35), 0 0 0 1px rgba(241, 245, 249, 0.5);
  transform: scale(0.95);
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.modal-overlay.active .checkout-card {
  transform: scale(1);
}

.checkout-header {
  background: linear-gradient(135deg, #090d1a 0%, #111827 100%);
  color: #ffffff;
  padding: 1.25rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border: none !important;
}

.checkout-header-info {
  display: flex;
  align-items: center;
  gap: 0.85rem;
}

.checkout-logo {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  object-fit: cover;
}

.checkout-modal-title {
  font-size: 1.05rem;
  font-weight: 700;
  margin: 0;
  letter-spacing: -0.01em;
  color: #ffffff;
}

.checkout-modal-sub {
  font-size: 0.74rem;
  color: #94a3b8;
  margin: 0.2rem 0 0;
}

.modal-close-btn {
  background: rgba(255, 255, 255, 0.08);
  border: none;
  color: #94a3b8;
  font-size: 1.4rem;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  line-height: 1;
  transition: all 0.2s;
}

.modal-close-btn:hover {
  background: rgba(255, 255, 255, 0.16);
  color: #ffffff;
}

.checkout-body {
  padding: 1.5rem;
}

.checkout-product-summary {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: #f8fafc;
  border: none !important;
  border-radius: 16px;
  padding: 1.1rem 1.25rem;
  margin-bottom: 1rem;
}

.prod-title {
  font-weight: 750;
  font-size: 0.98rem;
  color: #0f172a;
  letter-spacing: -0.01em;
}

.prod-sub {
  font-size: 0.78rem;
  color: #64748b;
  margin-top: 0.2rem;
}

.prod-price-wrap {
  text-align: right;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
}

.prod-original-price {
  font-size: 0.75rem;
  color: #94a3b8;
  text-decoration: line-through;
  font-weight: 500;
}

.prod-price {
  font-weight: 800;
  font-size: 1.45rem;
  color: #7c3aed;
  line-height: 1.1;
}

.checkout-features-list {
  background: #f8fafc;
  border: none !important;
  border-radius: 16px;
  padding: 1rem 1.25rem;
  margin-bottom: 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

.checkout-feature-item {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  font-size: 0.84rem;
  color: #334155;
}

.feature-icon-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: #dcfce7;
  flex-shrink: 0;
}

/* Razorpay Official Payment Button (Borderless & Centered) */
.razorpay-btn-wrapper {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
  margin: 1.25rem 0 0.5rem;
  border: none !important;
}

.razorpay-btn-wrapper form {
  width: 100%;
  display: flex;
  justify-content: center;
  border: none !important;
}

.razorpay-btn-wrapper .razorpay-payment-button {
  border: none !important;
  outline: none !important;
  cursor: pointer !important;
  border-radius: 12px !important;
  box-shadow: 0 8px 20px -4px rgba(0, 0, 0, 0.25) !important;
  transition: transform 0.2s ease, box-shadow 0.2s ease !important;
}

.razorpay-btn-wrapper .razorpay-payment-button:hover {
  transform: translateY(-2px) !important;
  box-shadow: 0 12px 28px -4px rgba(0, 0, 0, 0.35) !important;
}

.checkout-security-footer {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  margin-top: 1.1rem;
  font-size: 0.75rem;
  color: #64748b;
  font-weight: 500;
}

/* Policy Tabs Styling */
.policy-tab-btn {
  transition: all 0.2s ease;
}

.policy-tab-btn:hover {
  color: #7c3aed !important;
}

.policy-tab-btn.active {
  color: #7c3aed !important;
  border-bottom: 2px solid #7c3aed !important;
}

/* Success View in Modal */
.success-view {
  text-align: center;
  padding: 1.5rem 0;
  display: none;
}

.success-icon-wrap {
  width: 60px;
  height: 60px;
  background-color: #dcfce7;
  color: #16a34a;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1rem auto;
}

.btn-download-pdf {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  background: linear-gradient(135deg, #10b981 0%, #059669 100%);
  color: #ffffff;
  font-weight: 700;
  font-size: 1rem;
  padding: 0.9rem 1.8rem;
  border-radius: 12px;
  border: none;
  cursor: pointer;
  margin-top: 1.25rem;
  width: 100%;
  text-decoration: none;
  box-shadow: 0 4px 15px rgba(16, 185, 129, 0.4);
  transition: all 0.2s;
}

.btn-download-pdf:hover {
  background: linear-gradient(135deg, #059669 0%, #047857 100%);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(16, 185, 129, 0.5);
  color: #ffffff;
}

.razorpay-key-config {
  margin-top: 1rem;
  padding: 0.85rem;
  background-color: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  font-size: 0.8rem;
}

.rzp-status-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.5rem;
}

.rzp-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.72rem;
  font-weight: 700;
  padding: 0.2rem 0.55rem;
  border-radius: 9999px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.rzp-badge.active {
  background-color: #dcfce7;
  color: #15803d;
}

.rzp-badge.pending {
  background-color: #fef3c7;
  color: #b45309;
}

.rzp-key-display {
  font-family: monospace;
  font-size: 0.76rem;
  color: #334155;
  background-color: #ffffff;
  padding: 0.35rem 0.6rem;
  border-radius: 6px;
  border: 1px solid #cbd5e1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
}

.rzp-action-link {
  color: #6366f1;
  font-weight: 600;
  text-decoration: underline;
  cursor: pointer;
  background: none;
  border: none;
  font-size: 0.74rem;
  padding: 0;
}

.rzp-key-input-row {
  display: flex;
  gap: 0.4rem;
  margin-top: 0.4rem;
}

.rzp-key-input {
  flex: 1;
  font-size: 0.78rem;
  padding: 0.45rem 0.65rem;
  border: 1px solid #cbd5e1;
  border-radius: 6px;
  font-family: monospace;
}

.rzp-key-input:focus {
  outline: none;
  border-color: #6366f1;
}

.btn-save-key {
  background-color: #4f46e5;
  color: #ffffff;
  font-size: 0.78rem;
  font-weight: 600;
  padding: 0.45rem 0.8rem;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  white-space: nowrap;
  transition: background-color 0.2s;
}

.btn-save-key:hover {
  background-color: #4338ca;
}

.test-cards-guide {
  margin-top: 0.6rem;
  font-size: 0.72rem;
  color: #64748b;
  line-height: 1.4;
  border-top: 1px dashed #e2e8f0;
  padding-top: 0.5rem;
}

.test-cards-guide code {
  background: #e2e8f0;
  padding: 0.1rem 0.3rem;
  border-radius: 4px;
  color: #0f172a;
}

/* ==========================================================================
   Responsive Breakpoints - Mobile-First & Cross-Device Optimization
   ========================================================================== */

/* Tablet Landscape & Laptops (<= 1024px) */
@media (max-width: 1024px) {
  .hero-grid {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 2.5rem;
  }

  .hero-title {
    font-size: 2.75rem;
  }

  .hero-desc {
    margin-left: auto;
    margin-right: auto;
  }

  .hero-check-grid {
    margin-left: auto;
    margin-right: auto;
  }

  .hero-cta-group {
    align-items: center;
  }

  .hero-visual-wrapper {
    margin-top: 1rem;
  }

  .whats-inside-section {
    padding: 4rem 0;
  }

  .whats-inside-grid {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }

  .whats-inside-left {
    position: static;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
  }

  .section-desc-light {
    max-width: 100%;
    margin-left: auto;
    margin-right: auto;
  }

  .inside-cards-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .testimonials-section {
    padding: 4rem 0;
  }

  .testimonials-grid {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 2.5rem;
  }

  .testimonials-grid .testimonials-left {
    display: flex;
    flex-direction: column;
    align-items: center;
  }

  .section-desc-dark {
    max-width: 100%;
    margin-left: auto;
    margin-right: auto;
  }

  .testimonials-cards-row {
    grid-template-columns: repeat(2, 1fr);
  }

  .cta-banner-card {
    flex-direction: column;
    text-align: center;
    gap: 1.25rem;
    padding: 1.75rem 1.5rem;
  }

  .cta-banner-left {
    flex-direction: column;
    gap: 0.75rem;
  }
}

/* Tablet Portrait & Large Phones (<= 768px) */
@media (max-width: 768px) {
  .container {
    padding: 0 1.25rem;
  }

  .desktop-nav,
  .nav-links {
    display: none !important;
  }

  .mobile-nav-toggle {
    display: inline-flex;
  }

  .nav-actions {
    gap: 0.65rem;
  }

  .nav-buy-btn {
    padding: 0.45rem 1rem;
    font-size: 0.84rem;
  }

  .hero-section {
    padding: 2.75rem 0 2.25rem;
  }

  .hero-title {
    font-size: clamp(2.1rem, 7vw, 2.5rem);
    line-height: 1.15;
  }

  .hero-subhead {
    font-size: 1.2rem;
  }

  .hero-desc {
    font-size: 0.98rem;
  }

  .hero-book-container {
    max-width: 320px;
    margin: 0 auto;
  }

  .feature-bar-section {
    padding: 1.25rem 0;
  }

  .feature-bar-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 0.85rem;
  }

  .feature-bar-item {
    padding: 1rem 0.85rem;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 14px;
    border: 1px solid rgba(255, 255, 255, 0.05);
  }

  .feature-bar-item:not(:last-child)::after {
    display: none !important;
  }

  .inside-cards-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
  }

  .testimonials-cards-row {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  .footer-top-row {
    flex-direction: column;
    gap: 1.5rem;
    text-align: center;
  }

  .footer-nav-links {
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.75rem 1.25rem;
  }
}

/* Standard Mobile Devices (<= 540px) */
@media (max-width: 540px) {
  .container {
    padding: 0 1rem;
  }

  .brand-logo-img {
    width: 34px;
    height: 34px;
  }

  .brand-logo {
    font-size: 1.15rem;
    gap: 0.5rem;
  }

  .nav-buy-btn {
    padding: 0.4rem 0.8rem;
    font-size: 0.78rem;
    gap: 0.35rem;
  }

  .hero-section {
    padding: 2rem 0 1.75rem;
  }

  .hero-badge-pill {
    font-size: 0.78rem;
    padding: 0.3rem 0.85rem;
    margin-bottom: 1rem;
  }

  .hero-title {
    font-size: clamp(1.8rem, 8vw, 2.15rem);
    line-height: 1.15;
    margin-bottom: 0.75rem;
  }

  .hero-subhead {
    font-size: 1.05rem;
    margin-bottom: 0.75rem;
  }

  .hero-desc {
    font-size: 0.88rem;
    line-height: 1.55;
    margin-bottom: 1.4rem;
  }

  .hero-check-grid {
    grid-template-columns: 1fr;
    gap: 0.65rem;
    text-align: left;
    margin-bottom: 1.75rem;
    max-width: 100%;
  }

  .check-item {
    font-size: 0.88rem;
    gap: 0.55rem;
  }

  .hero-btn-large {
    width: 100%;
    max-width: 100%;
    justify-content: center;
    font-size: 1rem;
    padding: 0.9rem 1.5rem;
  }

  .hero-trust-note {
    font-size: 0.75rem;
    justify-content: center;
  }

  .hero-book-container {
    max-width: 250px;
    margin: 1.25rem auto 0;
  }

  .feature-bar-grid {
    grid-template-columns: 1fr;
    gap: 0.75rem;
  }

  .feature-bar-item {
    flex-direction: row;
    text-align: left;
    gap: 0.9rem;
    align-items: flex-start;
    padding: 0.9rem 1rem;
  }

  .bar-icon {
    font-size: 1.5rem;
    margin-bottom: 0;
    flex-shrink: 0;
  }

  .whats-inside-section {
    padding: 3rem 0;
  }

  .section-heading-dark {
    font-size: clamp(1.75rem, 7vw, 2.1rem);
  }

  .section-desc-light {
    font-size: 0.92rem;
    margin-bottom: 1.25rem;
  }

  .complete-guide-badge {
    font-size: 0.82rem;
    padding: 0.5rem 1.15rem;
  }

  .inside-cards-grid {
    grid-template-columns: 1fr;
    gap: 0.85rem;
  }

  .inside-card {
    padding: 1.25rem 1rem;
    flex-direction: row;
    text-align: left;
    gap: 1rem;
    align-items: flex-start;
  }

  .card-icon-wrap {
    margin-bottom: 0;
    flex-shrink: 0;
    width: 44px;
    height: 44px;
  }

  .testimonials-section {
    padding: 3rem 0;
  }

  .section-heading-white {
    font-size: clamp(1.65rem, 6.5vw, 1.95rem);
  }

  .section-desc-dark {
    font-size: 0.9rem;
  }

  .test-card {
    padding: 1.15rem 1rem;
  }

  .cta-banner-wrapper {
    padding: 1.25rem 0;
  }

  .cta-banner-card {
    padding: 1.35rem 1.15rem;
    border-radius: 14px;
  }

  .cta-banner-icon-bubble {
    width: 42px;
    height: 42px;
  }

  .cta-banner-title {
    font-size: 1.05rem;
  }

  .cta-banner-sub {
    font-size: 0.82rem;
  }

  .btn-white-pill {
    width: 100%;
    justify-content: center;
    padding: 0.8rem 1.4rem;
  }

  .footer-bottom-divider p {
    font-size: 0.76rem;
    line-height: 1.45;
  }

  /* Modal Mobile Optimization */
  .modal-overlay {
    padding: 0.5rem;
    align-items: flex-end;
  }

  .checkout-card {
    border-radius: 20px 20px 0 0;
    max-height: 92vh;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
  }

  .checkout-header {
    padding: 1rem 1.15rem;
  }

  .checkout-logo {
    width: 34px;
    height: 34px;
  }

  .checkout-modal-title {
    font-size: 0.96rem;
  }

  .checkout-body {
    padding: 1.15rem 1rem;
  }

  .checkout-product-summary {
    padding: 0.85rem 1rem;
  }

  .prod-title {
    font-size: 0.92rem;
  }

  .prod-price {
    font-size: 1.35rem;
  }

  .checkout-features-list {
    padding: 0.85rem 1rem;
    gap: 0.55rem;
  }

  .checkout-feature-item {
    font-size: 0.8rem;
    gap: 0.55rem;
  }

  /* Policy Modal Tabs Scrollable */
  #policyModal .checkout-card {
    border-radius: 20px;
    max-height: 88vh;
  }

  #policyModal div[style*="display: flex; gap: 0.5rem;"] {
    overflow-x: auto;
    flex-wrap: nowrap;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }
}

/* Compact Smartphones (<= 380px) */
@media (max-width: 380px) {
  .brand-text {
    font-size: 1.05rem;
  }

  .nav-buy-btn span {
    font-size: 0.74rem;
  }

  .hero-title {
    font-size: 1.65rem;
  }

  .hero-btn-large {
    font-size: 0.95rem;
    padding: 0.8rem 1.2rem;
  }

  .checkout-body {
    padding: 1rem 0.85rem;
  }
}

