/* ============================================
   WEBINAR LANDING PAGE — Commodity Samachar
   Dark Charcoal + Molten Gold Theme
   ============================================ */

@import url('https://fonts.googleapis.com/css2?family=Yatra+One&family=Outfit:wght@300;400;500;600;700;800&family=Noto+Sans+Devanagari:wght@400;500;600;700;800&display=swap');

/* --- Design Tokens --- */
:root {
  --bg-deep: #0a0b0f;
  --bg-card: rgba(255, 255, 255, 0.04);
  --bg-card-hover: rgba(255, 255, 255, 0.08);
  --gold-primary: #f5a623;
  --gold-light: #ffd97d;
  --gold-glow: rgba(245, 166, 35, 0.35);
  --gold-dim: #b8860b;
  --text-primary: #f0ece2;
  --text-secondary: rgba(240, 236, 226, 0.65);
  --text-muted: rgba(240, 236, 226, 0.4);
  --accent-red: #e74c3c;
  --accent-green: #2ecc71;
  --glass-border: rgba(245, 166, 35, 0.15);
  --glass-bg: rgba(15, 16, 22, 0.75);
  --radius-sm: 8px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --radius-xl: 32px;
  --font-display: 'Yatra One', 'Noto Sans Devanagari', cursive;
  --font-body: 'Outfit', 'Noto Sans Devanagari', sans-serif;
  --font-hindi: 'Noto Sans Devanagari', sans-serif;
  --transition-smooth: cubic-bezier(0.22, 1, 0.36, 1);
}

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

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
}

body {
  font-family: var(--font-body);
  background: var(--bg-deep);
  color: var(--text-primary);
  min-height: 100vh;
  overflow-x: hidden;
  position: relative;
}

/* --- Animated Background --- */
.bg-canvas {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
}

.bg-canvas::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background:
    radial-gradient(ellipse 600px 600px at 20% 30%, rgba(245, 166, 35, 0.07) 0%, transparent 70%),
    radial-gradient(ellipse 500px 500px at 80% 20%, rgba(184, 134, 11, 0.05) 0%, transparent 60%),
    radial-gradient(ellipse 400px 400px at 50% 80%, rgba(245, 166, 35, 0.04) 0%, transparent 50%);
  animation: bgDrift 25s ease-in-out infinite alternate;
}

.bg-canvas::after {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(1px 1px at 10% 20%, rgba(245, 166, 35, 0.3), transparent),
    radial-gradient(1px 1px at 30% 60%, rgba(255, 217, 125, 0.2), transparent),
    radial-gradient(1px 1px at 70% 40%, rgba(245, 166, 35, 0.25), transparent),
    radial-gradient(1px 1px at 90% 80%, rgba(255, 217, 125, 0.15), transparent),
    radial-gradient(1.5px 1.5px at 50% 10%, rgba(245, 166, 35, 0.35), transparent),
    radial-gradient(1px 1px at 15% 85%, rgba(255, 217, 125, 0.2), transparent),
    radial-gradient(1px 1px at 85% 15%, rgba(245, 166, 35, 0.2), transparent);
  animation: starsTwinkle 8s ease-in-out infinite alternate;
}

@keyframes bgDrift {
  0% {
    transform: translate(0, 0) rotate(0deg);
  }

  100% {
    transform: translate(3%, -2%) rotate(2deg);
  }
}

@keyframes starsTwinkle {
  0% {
    opacity: 0.6;
  }

  50% {
    opacity: 1;
  }

  100% {
    opacity: 0.7;
  }
}

/* --- Grid Overlay (subtle) --- */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  z-index: 0;
  background-image:
    linear-gradient(rgba(245, 166, 35, 0.02) 1px, transparent 1px),
    linear-gradient(90deg, rgba(245, 166, 35, 0.02) 1px, transparent 1px);
  background-size: 60px 60px;
  pointer-events: none;
}

/* --- Main Layout --- */
.page-wrapper {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

/* --- Navbar --- */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  padding: 16px 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  backdrop-filter: blur(20px);
  background: rgba(10, 11, 15, 0.8);
  border-bottom: 1px solid var(--glass-border);
  transition: all 0.4s var(--transition-smooth);
}

.navbar.scrolled {
  padding: 10px 32px;
  background: rgba(10, 11, 15, 0.95);
}

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

.nav-logo {
  object-fit: cover;
  flex-shrink: 0;
}

.nav-brand-text {
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 1.1rem;
  color: var(--gold-primary);
  letter-spacing: 0.5px;
}

.nav-brand-sub {
  font-size: 0.7rem;
  color: var(--text-muted);
  font-weight: 400;
  display: block;
  letter-spacing: 1.5px;
  text-transform: uppercase;
}

.nav-badge {
  background: linear-gradient(135deg, var(--gold-primary), var(--gold-dim));
  color: var(--bg-deep);
  font-weight: 700;
  font-size: 0.65rem;
  padding: 4px 10px;
  border-radius: 20px;
  text-transform: uppercase;
  letter-spacing: 1px;
  animation: badgePulse 2s ease-in-out infinite;
}

@keyframes badgePulse {

  0%,
  100% {
    box-shadow: 0 0 0 0 var(--gold-glow);
  }

  50% {
    box-shadow: 0 0 0 8px rgba(245, 166, 35, 0);
  }
}

/* --- Hero Section --- */
.hero {
  padding: 120px 24px 60px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  max-width: 1200px;
  margin: 0 auto;
  align-items: start;
}

.hero-content {
  padding-top: 20px;
}

.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--gold-primary);
  text-transform: uppercase;
  letter-spacing: 2px;
  margin-bottom: 20px;
  opacity: 0;
  transform: translateY(20px);
  animation: fadeUp 0.6s var(--transition-smooth) 0.2s forwards;
}

.hero-eyebrow::before {
  content: '';
  width: 24px;
  height: 2px;
  background: var(--gold-primary);
}

.hero-title {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 3.2rem);
  line-height: 1.3;
  color: var(--text-primary);
  margin-bottom: 16px;
  opacity: 0;
  transform: translateY(20px);
  animation: fadeUp 0.6s var(--transition-smooth) 0.35s forwards;
}

.hero-title .gold {
  color: var(--gold-primary);
  position: relative;
}

.hero-title .gold::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 100%;
  height: 3px;
  background: linear-gradient(90deg, var(--gold-primary), transparent);
  border-radius: 2px;
}

.hero-subtitle {
  font-family: var(--font-hindi);
  font-size: 1.05rem;
  color: var(--text-secondary);
  line-height: 1.8;
  margin-bottom: 28px;
  max-width: 500px;
  opacity: 0;
  transform: translateY(20px);
  animation: fadeUp 0.6s var(--transition-smooth) 0.5s forwards;
}

/* Webinar meta badges */
.webinar-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 32px;
  opacity: 0;
  transform: translateY(20px);
  animation: fadeUp 0.6s var(--transition-smooth) 0.65s forwards;
}

.meta-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 18px;
  background: var(--bg-card);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-xl);
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-primary);
  backdrop-filter: blur(10px);
}

.meta-chip .icon {
  font-size: 1.1rem;
}

.meta-chip.free {
  background: linear-gradient(135deg, rgba(46, 204, 113, 0.15), rgba(46, 204, 113, 0.05));
  border-color: rgba(46, 204, 113, 0.3);
  color: var(--accent-green);
  font-weight: 700;
}

/* Mentor card */
.mentor-card {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 16px 20px;
  background: var(--bg-card);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-md);
  backdrop-filter: blur(10px);
  max-width: 360px;
  opacity: 0;
  transform: translateY(20px);
  animation: fadeUp 0.6s var(--transition-smooth) 0.8s forwards;
}

.mentor-avatar {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--gold-primary), var(--gold-dim));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  font-weight: 800;
  color: var(--bg-deep);
  flex-shrink: 0;
}

.mentor-info h4 {
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 700;
  color: var(--text-primary);
}

.mentor-info p {
  font-size: 0.8rem;
  color: var(--text-secondary);
  margin-top: 2px;
}

/* --- Registration Form Card --- */
.form-card {
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-lg);
  padding: 40px 32px;
  backdrop-filter: blur(30px);
  position: relative;
  overflow: hidden;
  opacity: 0;
  transform: translateY(30px) scale(0.97);
  animation: formReveal 0.8s var(--transition-smooth) 0.4s forwards;
}

.form-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, transparent, var(--gold-primary), transparent);
}

.form-card::after {
  content: '';
  position: absolute;
  top: -80px;
  right: -80px;
  width: 200px;
  height: 200px;
  background: radial-gradient(circle, var(--gold-glow), transparent 70%);
  pointer-events: none;
}

@keyframes formReveal {
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.form-header {
  text-align: center;
  margin-bottom: 32px;
  position: relative;
  z-index: 1;
}

.form-header h2 {
  font-family: var(--font-hindi);
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--text-primary);
  margin-bottom: 8px;
}

.form-header p {
  font-family: var(--font-hindi);
  font-size: 0.9rem;
  color: var(--text-secondary);
}

.form-group {
  margin-bottom: 20px;
  position: relative;
  z-index: 1;
}

.form-group label {
  display: block;
  font-family: var(--font-hindi);
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-secondary);
  margin-bottom: 8px;
  transition: color 0.3s;
}

.form-group:focus-within label {
  color: var(--gold-primary);
}

.input-wrapper {
  position: relative;
}

.input-wrapper .input-icon {
  position: absolute;
  left: 16px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 1.1rem;
  color: var(--text-muted);
  transition: color 0.3s;
  pointer-events: none;
}

.form-group:focus-within .input-icon {
  color: var(--gold-primary);
}

.form-input {
  width: 100%;
  padding: 14px 16px 14px 48px;
  background: rgba(255, 255, 255, 0.04);
  border: 1.5px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-sm);
  color: var(--text-primary);
  font-family: var(--font-body);
  font-size: 1rem;
  transition: all 0.3s var(--transition-smooth);
  outline: none;
}

.form-input::placeholder {
  color: var(--text-muted);
  font-family: var(--font-hindi);
}

.form-input:focus {
  border-color: var(--gold-primary);
  background: rgba(245, 166, 35, 0.04);
  box-shadow: 0 0 0 4px rgba(245, 166, 35, 0.08);
}

.form-input.error {
  border-color: var(--accent-red);
  box-shadow: 0 0 0 4px rgba(231, 76, 60, 0.1);
}

.error-msg {
  font-size: 0.75rem;
  color: var(--accent-red);
  margin-top: 6px;
  display: none;
  font-family: var(--font-hindi);
}

.form-input.error+.error-msg,
.form-group.has-error .error-msg {
  display: block;
}

/* Submit button */
.btn-submit {
  width: 100%;
  padding: 16px;
  background: linear-gradient(135deg, var(--gold-primary), var(--gold-dim));
  border: none;
  border-radius: var(--radius-sm);
  color: var(--bg-deep);
  font-family: var(--font-hindi);
  font-size: 1.1rem;
  font-weight: 700;
  cursor: pointer;
  position: relative;
  overflow: hidden;
  transition: all 0.3s var(--transition-smooth);
  margin-top: 8px;
  z-index: 1;
}

.btn-submit:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 30px var(--gold-glow);
}

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

.btn-submit::after {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: linear-gradient(45deg,
      transparent 30%,
      rgba(255, 255, 255, 0.15) 50%,
      transparent 70%);
  transform: translateX(-100%);
  transition: transform 0.6s;
}

.btn-submit:hover::after {
  transform: translateX(100%);
}

.form-footer {
  text-align: center;
  margin-top: 16px;
  font-size: 0.75rem;
  color: var(--text-muted);
  position: relative;
  z-index: 1;
}

.form-footer svg {
  vertical-align: middle;
  margin-right: 4px;
}

/* --- Success Overlay --- */
.success-overlay {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 1000;
  background: rgba(10, 11, 15, 0.92);
  backdrop-filter: blur(20px);
  align-items: center;
  justify-content: center;
  padding: 24px;
}

.success-overlay.active {
  display: flex;
}

.success-card {
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-lg);
  padding: 48px 40px;
  max-width: 480px;
  width: 100%;
  text-align: center;
  position: relative;
  animation: successPop 0.5s var(--transition-smooth);
}

@keyframes successPop {
  from {
    transform: scale(0.85);
    opacity: 0;
  }

  to {
    transform: scale(1);
    opacity: 1;
  }
}

.success-icon {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background: linear-gradient(135deg, rgba(46, 204, 113, 0.2), rgba(46, 204, 113, 0.05));
  border: 2px solid rgba(46, 204, 113, 0.4);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.5rem;
  margin: 0 auto 24px;
}

.success-card h2 {
  font-family: var(--font-hindi);
  font-size: 1.6rem;
  font-weight: 800;
  color: var(--text-primary);
  margin-bottom: 8px;
}

.email-status {
  font-family: var(--font-body);
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 8px;
  min-height: 1.2em;
}

.success-card p {
  font-family: var(--font-hindi);
  color: var(--text-secondary);
  font-size: 0.95rem;
  margin-bottom: 28px;
  line-height: 1.7;
}

.success-actions {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.btn-wa {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 14px 24px;
  background: #25d366;
  color: #fff;
  border: none;
  border-radius: var(--radius-sm);
  font-family: var(--font-hindi);
  font-size: 1rem;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
  transition: all 0.3s;
}

.btn-wa:hover {
  background: #1da851;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(37, 211, 102, 0.3);
}

.btn-email {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 14px 24px;
  background: rgba(255, 255, 255, 0.06);
  color: var(--text-primary);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius-sm);
  font-family: var(--font-hindi);
  font-size: 1rem;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  transition: all 0.3s;
}

.btn-email:hover {
  background: rgba(255, 255, 255, 0.1);
  transform: translateY(-2px);
}

.btn-zoom {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 14px 24px;
  background: linear-gradient(135deg, #2d8cff, #0b5cff);
  color: #fff;
  border: none;
  border-radius: var(--radius-sm);
  font-family: var(--font-hindi);
  font-size: 1rem;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
  transition: all 0.3s;
}

.btn-zoom:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(45, 140, 255, 0.3);
}

/* --- Questions Section --- */
.questions-section {
  padding: 80px 24px;
  max-width: 1000px;
  margin: 0 auto;
}

.section-header {
  text-align: center;
  margin-bottom: 48px;
}

.section-header h2 {
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 3vw, 2.4rem);
  color: var(--text-primary);
  margin-bottom: 12px;
}

.section-header h2 .gold {
  color: var(--gold-primary);
}

.section-header p {
  font-family: var(--font-hindi);
  color: var(--text-secondary);
  font-size: 1rem;
}

.questions-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 16px;
}

.q-card {
  padding: 24px;
  background: var(--bg-card);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-md);
  backdrop-filter: blur(10px);
  transition: all 0.4s var(--transition-smooth);
  cursor: default;
  opacity: 0;
  transform: translateY(30px);
}

.q-card.visible {
  opacity: 1;
  transform: translateY(0);
}

.q-card:hover {
  background: var(--bg-card-hover);
  border-color: rgba(245, 166, 35, 0.25);
  transform: translateY(-4px);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.3);
}

.q-card .q-icon {
  font-size: 1.6rem;
  margin-bottom: 12px;
}

.q-card p {
  font-family: var(--font-hindi);
  font-size: 0.95rem;
  line-height: 1.7;
  color: var(--text-primary);
}

/* --- CTA Section --- */
.cta-section {
  padding: 60px 24px 80px;
  text-align: center;
  max-width: 700px;
  margin: 0 auto;
}

.cta-section .cta-box {
  background: linear-gradient(135deg, rgba(245, 166, 35, 0.1), rgba(184, 134, 11, 0.05));
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-lg);
  padding: 48px 36px;
  backdrop-filter: blur(20px);
}

.cta-section h2 {
  font-family: var(--font-display);
  font-size: clamp(1.4rem, 3vw, 2rem);
  color: var(--text-primary);
  margin-bottom: 12px;
}

.cta-section p {
  font-family: var(--font-hindi);
  color: var(--text-secondary);
  margin-bottom: 28px;
  font-size: 1rem;
  line-height: 1.7;
}

.btn-cta {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 16px 40px;
  background: linear-gradient(135deg, var(--gold-primary), var(--gold-dim));
  color: var(--bg-deep);
  border: none;
  border-radius: var(--radius-xl);
  font-family: var(--font-hindi);
  font-size: 1.1rem;
  font-weight: 700;
  cursor: pointer;
  text-decoration: none;
  transition: all 0.3s var(--transition-smooth);
}

.btn-cta:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 35px var(--gold-glow);
}

/* --- Footer --- */
.footer {
  padding: 32px 24px;
  text-align: center;
  border-top: 1px solid var(--glass-border);
}

.footer p {
  font-size: 0.8rem;
  color: var(--text-muted);
}

.footer a {
  color: var(--gold-primary);
  text-decoration: none;
}

/* --- Animations --- */
@keyframes fadeUp {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* --- Responsive --- */
@media (max-width: 900px) {
  .hero {
    grid-template-columns: 1fr;
    gap: 40px;
    padding: 100px 20px 40px;
  }

  .hero-content {
    text-align: center;
    order: 2;
  }

  .form-card {
    order: 1;
  }

  .hero-subtitle {
    max-width: 100%;
  }

  .mentor-card {
    margin: 0 auto;
  }

  .webinar-meta {
    justify-content: center;
  }

  .hero-eyebrow {
    justify-content: center;
  }
}

@media (max-width: 500px) {
  .navbar {
    padding: 12px 16px;
  }

  .nav-brand-text {
    font-size: 0.95rem;
  }

  .form-card {
    padding: 28px 20px;
  }

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

  .questions-grid {
    grid-template-columns: 1fr;
  }

  .success-card {
    padding: 32px 20px;
  }

  .meta-chip {
    font-size: 0.8rem;
    padding: 8px 14px;
  }
}

/* --- Scrollbar --- */
::-webkit-scrollbar {
  width: 6px;
}

::-webkit-scrollbar-track {
  background: var(--bg-deep);
}

::-webkit-scrollbar-thumb {
  background: rgba(245, 166, 35, 0.3);
  border-radius: 3px;
}

::-webkit-scrollbar-thumb:hover {
  background: rgba(245, 166, 35, 0.5);
}