*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --red: #E23636;
  --dark-red: #9B1B1B;
  --blue: #1a0a2e;
  --blue-mid: #2d1b5e;
  --white: #f5f0ff;
  --gold: #FFD700;
  --card-bg: rgba(255,255,255,0.06);
  --card-border: rgba(226,54,54,0.3);
}

html { scroll-behavior: smooth; }

body {
  font-family: 'Nunito', sans-serif;
  background: var(--blue);
  color: var(--white);
  overflow-x: hidden;
  min-height: 100vh;
}

/* WEB BACKGROUND */
.web-bg { position: fixed; inset: 0; pointer-events: none; z-index: 0; }
.web-svg { position: absolute; width: 500px; height: 500px; }
.web-svg.top-left { top: -100px; left: -100px; }
.web-svg.bottom-right { bottom: -100px; right: -100px; }

/* NAVBAR */
.navbar {
  position: sticky; top: 0; z-index: 100;
  display: flex; justify-content: space-between; align-items: center;
  padding: 16px 40px;
  background: rgba(26,10,46,0.92);
  backdrop-filter: blur(12px);
  border-bottom: 2px solid rgba(226,54,54,0.4);
}
.nav-logo {
  font-family: 'Bangers', cursive;
  font-size: 1.8rem; letter-spacing: 2px;
  color: var(--red);
  display: flex; align-items: center; gap: 10px;
}
.spider-icon { font-size: 1.5rem; animation: spin 4s linear infinite; display: inline-block; }
@keyframes spin { 0%,100%{transform:rotate(0deg)} 50%{transform:rotate(15deg)} }
.nav-badge {
  background: var(--red); color: white;
  font-family: 'Bangers', cursive; font-size: 1.1rem; letter-spacing: 1px;
  padding: 6px 18px; border-radius: 50px;
  box-shadow: 0 0 20px rgba(226,54,54,0.6);
  animation: pulse 2s ease-in-out infinite;
}
@keyframes pulse { 0%,100%{box-shadow:0 0 20px rgba(226,54,54,0.6)} 50%{box-shadow:0 0 35px rgba(226,54,54,0.9)} }

/* HERO */
.hero {
  position: relative; z-index: 1;
  display: flex; align-items: center; justify-content: space-between;
  padding: 80px 60px 60px;
  min-height: 90vh;
  background: radial-gradient(ellipse at 30% 50%, rgba(226,54,54,0.15) 0%, transparent 60%),
              radial-gradient(ellipse at 80% 20%, rgba(100,50,200,0.2) 0%, transparent 50%);
}
.hero-content { max-width: 560px; }
.hero-tag {
  display: inline-block;
  background: rgba(226,54,54,0.2); border: 1px solid var(--red);
  color: var(--red); font-weight: 700; font-size: 0.9rem;
  padding: 6px 16px; border-radius: 50px; margin-bottom: 20px;
  letter-spacing: 1px;
}
.hero-title {
  font-family: 'Bangers', cursive;
  font-size: clamp(2.8rem, 6vw, 5rem);
  line-height: 1.05; letter-spacing: 3px;
  color: white; margin-bottom: 20px;
  text-shadow: 3px 3px 0 rgba(0,0,0,0.5);
}
.hero-title .red { color: var(--red); }
.hero-sub {
  font-size: 1.1rem; line-height: 1.7;
  color: rgba(245,240,255,0.8); margin-bottom: 36px;
}
.hero-sub strong { color: var(--gold); }
.btn-hero {
  display: inline-block;
  background: var(--red); color: white;
  font-family: 'Bangers', cursive; font-size: 1.3rem; letter-spacing: 2px;
  padding: 14px 36px; border-radius: 50px;
  text-decoration: none;
  box-shadow: 0 8px 30px rgba(226,54,54,0.5);
  transition: all 0.3s ease;
  border: 2px solid transparent;
}
.btn-hero:hover {
  background: transparent; border-color: var(--red);
  transform: translateY(-3px);
  box-shadow: 0 12px 40px rgba(226,54,54,0.7);
}

/* SPIDER HERO IMAGE */
.hero-spider { flex-shrink: 0; }
.spider-circle {
  width: 320px; height: 320px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(226,54,54,0.2) 0%, rgba(26,10,46,0.8) 70%);
  border: 3px solid rgba(226,54,54,0.4);
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 0 60px rgba(226,54,54,0.3), inset 0 0 40px rgba(226,54,54,0.1);
  animation: float 3s ease-in-out infinite;
  position: relative;
}
.spider-circle::before {
  content: '';
  position: absolute; inset: -8px;
  border-radius: 50%;
  border: 2px dashed rgba(226,54,54,0.3);
  animation: rotateSlow 10s linear infinite;
}
@keyframes float { 0%,100%{transform:translateY(0)} 50%{transform:translateY(-16px)} }
@keyframes rotateSlow { from{transform:rotate(0deg)} to{transform:rotate(360deg)} }
.spidey-svg { width: 220px; height: 220px; filter: drop-shadow(0 0 20px rgba(226,54,54,0.5)); }

/* COURSE SECTION */
.course-section {
  position: relative; z-index: 1;
  padding: 80px 60px;
  background: rgba(0,0,0,0.3);
}
.section-header { text-align: center; margin-bottom: 50px; }
.section-header h2 {
  font-family: 'Bangers', cursive; font-size: 2.8rem; letter-spacing: 3px;
  color: white; margin-bottom: 10px;
}
.section-header p { color: rgba(245,240,255,0.6); font-size: 1.1rem; }

.modules-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 24px; max-width: 1100px; margin: 0 auto;
}
.module-card {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: 16px; padding: 28px 24px;
  transition: all 0.3s ease;
  position: relative; overflow: hidden;
}
.module-card::before {
  content: ''; position: absolute; top: 0; left: 0; right: 0; height: 3px;
  background: linear-gradient(90deg, var(--red), transparent);
}
.module-card:hover {
  transform: translateY(-6px);
  border-color: var(--red);
  box-shadow: 0 12px 40px rgba(226,54,54,0.2);
}
.module-icon { font-size: 2.2rem; margin-bottom: 12px; }
.module-card h3 {
  font-family: 'Bangers', cursive; font-size: 1.4rem; letter-spacing: 1px;
  color: var(--red); margin-bottom: 8px;
}
.module-card p { color: rgba(245,240,255,0.75); font-size: 0.95rem; line-height: 1.5; margin-bottom: 14px; }
.module-tag {
  display: inline-block; font-size: 0.75rem; font-weight: 700;
  padding: 4px 12px; border-radius: 50px;
  background: rgba(226,54,54,0.2); color: var(--red); border: 1px solid var(--red);
  letter-spacing: 1px; text-transform: uppercase;
}
.module-tag.bonus { background: rgba(255,215,0,0.15); color: var(--gold); border-color: var(--gold); }
.module-tag.done { background: rgba(0,200,100,0.15); color: #00c864; border-color: #00c864; }
.locked-card { opacity: 0.6; filter: blur(0.5px); }
.locked-card:hover { transform: none; }

/* PAYMENT SECTION */
.payment-section {
  position: relative; z-index: 1;
  padding: 80px 60px;
  display: flex; justify-content: center;
}
.pay-card {
  background: linear-gradient(135deg, rgba(226,54,54,0.1), rgba(45,27,94,0.5));
  border: 2px solid rgba(226,54,54,0.4);
  border-radius: 24px; padding: 50px 40px;
  max-width: 520px; width: 100%;
  box-shadow: 0 20px 60px rgba(0,0,0,0.4);
  text-align: center;
}
.pay-header { margin-bottom: 36px; }
.pay-header .spider-icon { font-size: 3rem; display: block; margin-bottom: 12px; }
.pay-header h2 {
  font-family: 'Bangers', cursive; font-size: 2.2rem; letter-spacing: 2px;
  color: white; margin-bottom: 8px;
}
.pay-header p { color: rgba(245,240,255,0.7); font-size: 1rem; }
.price { color: var(--gold); font-family: 'Bangers', cursive; font-size: 1.6rem; }

.pay-step { padding: 20px 0; }
.step-badge {
  display: inline-block;
  background: var(--red); color: white;
  font-family: 'Bangers', cursive; font-size: 0.9rem; letter-spacing: 1px;
  padding: 4px 14px; border-radius: 50px; margin-bottom: 14px;
}
.pay-step h3 {
  font-family: 'Bangers', cursive; font-size: 1.6rem; letter-spacing: 1px;
  color: white; margin-bottom: 8px;
}
.pay-step p { color: rgba(245,240,255,0.7); margin-bottom: 20px; font-size: 0.95rem; }

.btn-pay, .btn-paid, .btn-verify {
  display: inline-block; width: 100%;
  font-family: 'Bangers', cursive; font-size: 1.3rem; letter-spacing: 2px;
  padding: 14px 28px; border-radius: 50px; border: none; cursor: pointer;
  transition: all 0.3s ease;
}
.btn-pay { background: var(--red); color: white; box-shadow: 0 6px 25px rgba(226,54,54,0.5); }
.btn-pay:hover { transform: translateY(-2px); box-shadow: 0 10px 35px rgba(226,54,54,0.7); }
.btn-paid { background: rgba(226,54,54,0.2); color: white; border: 2px solid var(--red); margin-top: 16px; }
.btn-paid:hover { background: var(--red); }
.btn-verify { background: linear-gradient(135deg, #00c864, #00a050); color: white; box-shadow: 0 6px 25px rgba(0,200,100,0.4); }
.btn-verify:hover { transform: translateY(-2px); box-shadow: 0 10px 35px rgba(0,200,100,0.6); }

.qr-wrapper { display: flex; justify-content: center; margin: 20px 0; }
.qr-placeholder { display: flex; flex-direction: column; align-items: center; gap: 10px; }
.qr-img { width: 200px; height: 200px; border-radius: 12px; border: 3px solid var(--red); }
.qr-demo-box {
  width: 200px; height: 200px;
  background: white; border-radius: 12px;
  border: 3px solid var(--red);
  display: flex; align-items: center; justify-content: center;
}
.qr-demo-inner { text-align: center; color: #333; padding: 16px; }
.qr-note { font-size: 0.75rem; color: rgba(245,240,255,0.5); font-style: italic; }
.upi-id { color: rgba(245,240,255,0.8); font-size: 0.95rem; margin: 12px 0; }
.upi-id strong { color: var(--gold); }

#utrInput {
  width: 100%; padding: 14px 20px;
  background: rgba(255,255,255,0.08); border: 2px solid rgba(226,54,54,0.4);
  border-radius: 12px; color: white; font-size: 1rem; font-family: 'Nunito', sans-serif;
  margin-bottom: 16px; text-align: center; letter-spacing: 2px;
  transition: border-color 0.3s;
}
#utrInput:focus { outline: none; border-color: var(--red); }
#utrInput::placeholder { color: rgba(245,240,255,0.3); letter-spacing: 1px; }
.verify-note { font-size: 0.75rem; color: rgba(245,240,255,0.4); margin-top: 10px; }

/* COURSE CONTENT */
.content-section {
  position: relative; z-index: 1;
  padding: 60px;
}
.unlock-banner {
  text-align: center; margin-bottom: 50px;
  background: linear-gradient(135deg, rgba(0,200,100,0.15), rgba(226,54,54,0.15));
  border: 2px solid rgba(0,200,100,0.4);
  border-radius: 20px; padding: 40px;
  animation: glowGreen 2s ease-in-out infinite;
}
@keyframes glowGreen {
  0%,100%{box-shadow:0 0 20px rgba(0,200,100,0.3)}
  50%{box-shadow:0 0 50px rgba(0,200,100,0.6)}
}
.unlock-banner h2 {
  font-family: 'Bangers', cursive; font-size: 2.5rem; letter-spacing: 3px;
  color: #00c864; margin-bottom: 10px;
}
.unlock-banner p { color: rgba(245,240,255,0.8); font-size: 1.1rem; }

.course-qr-card {
  background: var(--card-bg); border: 2px solid rgba(226,54,54,0.4);
  border-radius: 20px; padding: 40px; text-align: center;
  max-width: 500px; margin: 0 auto 50px;
}
.course-qr-card h3 {
  font-family: 'Bangers', cursive; font-size: 1.8rem; letter-spacing: 2px;
  color: white; margin-bottom: 10px;
}
.course-qr-card p { color: rgba(245,240,255,0.7); margin-bottom: 20px; }
.course-qr-box { display: flex; justify-content: center; margin: 20px 0; }
.course-qr-placeholder { display: flex; flex-direction: column; align-items: center; gap: 10px; }
.course-qr-note { color: rgba(245,240,255,0.5); font-size: 0.75rem; font-style: italic; }

.btn-course-link {
  display: inline-block;
  background: var(--red); color: white;
  font-family: 'Bangers', cursive; font-size: 1.2rem; letter-spacing: 2px;
  padding: 12px 32px; border-radius: 50px; text-decoration: none;
  box-shadow: 0 6px 25px rgba(226,54,54,0.5);
  transition: all 0.3s ease; margin-top: 16px;
}
.btn-course-link:hover { transform: translateY(-2px); box-shadow: 0 10px 35px rgba(226,54,54,0.7); }
.course-link-note { font-size: 0.75rem; color: rgba(245,240,255,0.4); margin-top: 10px; }

.unlocked .module-card { border-color: rgba(0,200,100,0.3); }
.unlocked .module-card::before { background: linear-gradient(90deg, #00c864, transparent); }
.bonus-unlocked { background: linear-gradient(135deg, rgba(255,215,0,0.1), rgba(226,54,54,0.1)); }

/* FOOTER */
.footer {
  position: relative; z-index: 1;
  text-align: center; padding: 40px;
  border-top: 1px solid rgba(226,54,54,0.2);
  background: rgba(0,0,0,0.3);
}
.footer-web { font-size: 2rem; margin-bottom: 12px; }
.footer p { color: rgba(245,240,255,0.7); margin-bottom: 6px; }
.footer strong { color: var(--red); }
.footer-sub { font-size: 0.85rem; color: rgba(245,240,255,0.4); font-style: italic; }

/* TOAST */
.toast {
  position: fixed; bottom: 30px; left: 50%; transform: translateX(-50%);
  background: rgba(26,10,46,0.95); border: 2px solid var(--red);
  color: white; font-weight: 700; font-size: 1rem;
  padding: 14px 28px; border-radius: 50px;
  box-shadow: 0 8px 30px rgba(0,0,0,0.5);
  z-index: 9999; transition: all 0.4s ease;
}
.toast.hidden { opacity: 0; pointer-events: none; transform: translateX(-50%) translateY(20px); }

/* UTILITY */
.hidden { display: none !important; }

/* RESPONSIVE */
@media (max-width: 768px) {
  .hero { flex-direction: column; padding: 50px 24px; text-align: center; gap: 40px; }
  .hero-content { max-width: 100%; }
  .spider-circle { width: 220px; height: 220px; }
  .spidey-svg { width: 160px; height: 160px; }
  .course-section, .payment-section, .content-section { padding: 50px 24px; }
  .navbar { padding: 14px 20px; }
  .pay-card { padding: 36px 24px; }
}
