/* ============================================
   CINEMATIC INSTAGRAM REEL — PREMIUM STYLES
   ============================================ */

@import url('https://fonts.googleapis.com/css2?family=Tiro+Devanagari+Hindi:ital@0;1&family=Noto+Sans+Devanagari:wght@300;400;500;600;700;900&display=swap');

:root {
  --saffron:      #E8722A;
  --saffron-l:    #F5A05A;
  --saffron-d:    #A84E18;
  --teal:         #3ECFBF;
  --teal-l:       #7EEEE6;
  --teal-d:       #1A8A80;
  --gold:         #D4A843;
  --gold-l:       #F0C96A;
  --white:        #F5EFE6;
  --white2:       #C8B8A0;
  --dark:         #060410;
  --font-d:       'Tiro Devanagari Hindi', serif;
  --font-b:       'Noto Sans Devanagari', sans-serif;
}

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

html, body {
  width: 100%; height: 100%;
  background: #000;
  display: flex; align-items: center; justify-content: center;
  overflow: hidden;
  font-family: var(--font-b);
}

/* ══ STAGE ══ */
.stage {
  position: relative;
  width: min(390px, 100vw);
  height: min(692px, 100vh);
  overflow: hidden;
  border-radius: 24px;
  box-shadow: 0 0 0 1px rgba(255,255,255,0.06), 0 40px 100px rgba(0,0,0,0.95);
  background: var(--dark);
}

#bg-canvas {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  z-index: 0; pointer-events: none;
}

/* ══ SLIDES ══ */
.slide {
  position: absolute; inset: 0;
  display: flex; align-items: center; justify-content: center;
  opacity: 0;
  pointer-events: none;
  z-index: 1;
  transition: opacity 0s;
}

.slide.active   { opacity: 1; pointer-events: all; z-index: 2; }
.slide.entering { animation: slideEnter 0.65s cubic-bezier(0.22,1,0.36,1) forwards; }
.slide.leaving  { animation: slideLeave 0.5s cubic-bezier(0.4,0,1,1) forwards; }

@keyframes slideEnter {
  from { opacity: 0; transform: scale(1.04) translateY(20px); }
  to   { opacity: 1; transform: scale(1) translateY(0); }
}
@keyframes slideLeave {
  from { opacity: 1; transform: scale(1) translateY(0); }
  to   { opacity: 0; transform: scale(0.96) translateY(-20px); }
}

/* ══ ANIMATION HELPERS ══ */
.anim-up   { opacity: 0; transform: translateY(32px); }
.anim-left { opacity: 0; transform: translateX(-40px); }
.anim-right{ opacity: 0; transform: translateX(40px); }
.anim-scale{ opacity: 0; transform: scale(0.7); }
.anim-fade { opacity: 0; }

.slide.active .anim-up,
.slide.active .anim-left,
.slide.active .anim-right,
.slide.active .anim-scale,
.slide.active .anim-fade {
  animation: revealEl 0.7s cubic-bezier(0.22,1,0.36,1) forwards;
}

@keyframes revealEl {
  to { opacity: 1; transform: none; }
}

.d1 { animation-delay: 0.1s !important; }
.d2 { animation-delay: 0.25s !important; }
.d3 { animation-delay: 0.4s !important; }
.d4 { animation-delay: 0.55s !important; }
.d5 { animation-delay: 0.7s !important; }
.d6 { animation-delay: 0.9s !important; }

/* ══════════════════════════════
   SLIDE 0 — HOOK
══════════════════════════════ */
.s0-bg {
  position: absolute; inset: 0;
  background:
    radial-gradient(ellipse 80% 60% at 50% 20%, rgba(212,168,67,0.18) 0%, transparent 70%),
    radial-gradient(ellipse 60% 50% at 20% 80%, rgba(232,114,42,0.12) 0%, transparent 60%),
    radial-gradient(ellipse 60% 50% at 80% 80%, rgba(62,207,191,0.1) 0%, transparent 60%),
    linear-gradient(160deg, #0E0818 0%, #060410 50%, #080E18 100%);
}

.s0-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(60px);
  pointer-events: none;
}
.orb-left  { width: 200px; height: 200px; background: rgba(232,114,42,0.2); top: 30%; left: -60px; animation: orbFloat 6s ease-in-out infinite; }
.orb-right { width: 180px; height: 180px; background: rgba(62,207,191,0.15); top: 40%; right: -50px; animation: orbFloat 7s ease-in-out infinite reverse; }

@keyframes orbFloat {
  0%,100% { transform: translateY(0) scale(1); }
  50%      { transform: translateY(-30px) scale(1.1); }
}

.s0-content {
  position: relative; z-index: 2;
  display: flex; flex-direction: column;
  align-items: center; gap: 16px;
  padding: 40px 32px;
  text-align: center;
}

.eyebrow {
  font-size: 11px; font-weight: 600;
  letter-spacing: 6px; text-transform: uppercase;
  color: var(--gold);
  background: rgba(212,168,67,0.1);
  border: 1px solid rgba(212,168,67,0.25);
  padding: 6px 18px; border-radius: 100px;
}

.s0-title {
  font-family: var(--font-d);
  display: flex; flex-direction: column;
  align-items: center; gap: 4px;
  line-height: 1.2;
}

.line-dharmic {
  font-size: 52px; font-weight: 400;
  color: var(--saffron-l);
  text-shadow: 0 0 40px rgba(232,114,42,0.5), 0 0 80px rgba(232,114,42,0.2);
  letter-spacing: -1px;
}

.vs-word {
  font-size: 18px; color: var(--white2);
  font-family: var(--font-b); font-weight: 300;
  letter-spacing: 4px;
}

.line-adhyatmik {
  font-size: 42px; font-weight: 400;
  color: var(--teal-l);
  text-shadow: 0 0 40px rgba(62,207,191,0.5), 0 0 80px rgba(62,207,191,0.2);
  letter-spacing: -0.5px;
}

.s0-divider {
  width: 80px; height: 1px;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
}

.s0-sub {
  font-family: var(--font-d);
  font-size: 22px; font-style: italic;
  color: var(--white); font-weight: 400;
}

.scroll-hint {
  display: flex; flex-direction: column;
  align-items: center; gap: 6px;
  margin-top: 12px;
  font-size: 10px; letter-spacing: 3px;
  color: var(--white2); text-transform: uppercase;
}

.scroll-arrow {
  width: 1px; height: 30px;
  background: linear-gradient(180deg, var(--gold), transparent);
  animation: arrowPulse 1.5s ease-in-out infinite;
}

@keyframes arrowPulse {
  0%,100% { opacity: 0.3; transform: scaleY(0.8); }
  50%      { opacity: 1;   transform: scaleY(1); }
}

/* ══════════════════════════════
   SLIDE 1 & 3 — CHARACTER INTRO
══════════════════════════════ */
.half-bg {
  position: absolute; inset: 0;
}

.dharmic-bg {
  background:
    radial-gradient(ellipse 100% 70% at 20% 50%, rgba(232,114,42,0.2) 0%, transparent 60%),
    radial-gradient(ellipse 80% 80% at 80% 80%, rgba(212,168,67,0.08) 0%, transparent 60%),
    linear-gradient(135deg, #120808 0%, #060410 60%, #080C10 100%);
}

.adhyatmik-bg {
  background:
    radial-gradient(ellipse 100% 70% at 80% 50%, rgba(62,207,191,0.18) 0%, transparent 60%),
    radial-gradient(ellipse 80% 80% at 20% 80%, rgba(30,150,140,0.08) 0%, transparent 60%),
    linear-gradient(135deg, #060C10 0%, #060410 60%, #080C12 100%);
}

.slide-content {
  position: relative; z-index: 2;
  width: 100%; height: 100%;
  display: flex; flex-direction: column;
  justify-content: center;
  padding: 48px 28px;
  gap: 24px;
}

.character-block {
  display: flex; flex-direction: column;
  align-items: center; gap: 8px;
}

.char-icon {
  width: 110px; height: 110px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  position: relative;
}

.dharmic-icon {
  background: radial-gradient(circle, rgba(232,114,42,0.15), rgba(168,78,24,0.08));
  border: 1.5px solid rgba(232,114,42,0.3);
  box-shadow: 0 0 30px rgba(232,114,42,0.2), inset 0 0 20px rgba(232,114,42,0.05);
}

.adhyatmik-icon {
  background: radial-gradient(circle, rgba(62,207,191,0.12), rgba(26,138,128,0.06));
  border: 1.5px solid rgba(62,207,191,0.3);
  box-shadow: 0 0 30px rgba(62,207,191,0.2), inset 0 0 20px rgba(62,207,191,0.05);
}

.char-icon svg { width: 80px; height: 80px; }

.char-label {
  font-family: var(--font-b);
  font-size: 20px; font-weight: 700;
  letter-spacing: 1px;
}

.dharmic-label   { color: var(--saffron-l); }
.adhyatmik-label { color: var(--teal-l); }

.char-subtitle {
  font-size: 11px; letter-spacing: 4px;
  color: var(--white2); text-transform: uppercase;
}

.text-block {
  display: flex; flex-direction: column; gap: 12px;
}

.tag {
  display: inline-block;
  padding: 5px 14px; border-radius: 100px;
  font-size: 11px; font-weight: 600;
  letter-spacing: 2px; text-transform: uppercase;
  width: fit-content;
}

.dharmic-tag {
  background: rgba(232,114,42,0.12);
  border: 1px solid rgba(232,114,42,0.35);
  color: var(--saffron-l);
}

.adhyatmik-tag {
  background: rgba(62,207,191,0.1);
  border: 1px solid rgba(62,207,191,0.3);
  color: var(--teal-l);
}

.slide-heading {
  font-family: var(--font-d);
  font-size: 34px; font-weight: 400;
  color: var(--white); line-height: 1.3;
}

.highlight-d { color: var(--saffron-l); font-style: italic; }
.highlight-a { color: var(--teal-l); font-style: italic; }

.slide-body {
  font-size: 15px; line-height: 1.8;
  color: var(--white2); font-weight: 300;
}

.quote-strip {
  display: flex; align-items: flex-start; gap: 10px;
  padding: 14px 16px;
  border-radius: 12px;
  font-family: var(--font-d);
  font-size: 16px; font-style: italic;
  color: var(--white); line-height: 1.6;
}

.dharmic-strip {
  background: rgba(232,114,42,0.08);
  border-left: 3px solid var(--saffron);
}

.adhyatmik-strip {
  background: rgba(62,207,191,0.07);
  border-left: 3px solid var(--teal);
}

.qs-mark {
  font-size: 36px; line-height: 0.8;
  color: var(--saffron); opacity: 0.6;
  font-family: Georgia, serif;
}

.teal-mark { color: var(--teal); }

/* ══════════════════════════════
   SLIDE 2 & 4 — FEATURES
══════════════════════════════ */
.dharmic-full-bg {
  position: absolute; inset: 0;
  background:
    radial-gradient(ellipse 120% 60% at 50% 0%, rgba(232,114,42,0.15) 0%, transparent 50%),
    linear-gradient(180deg, #100808 0%, #060410 100%);
}

.adhyatmik-full-bg {
  position: absolute; inset: 0;
  background:
    radial-gradient(ellipse 120% 60% at 50% 0%, rgba(62,207,191,0.12) 0%, transparent 50%),
    linear-gradient(180deg, #060C10 0%, #060410 100%);
}

.col-layout {
  justify-content: flex-start;
  padding-top: 52px;
  gap: 20px;
}

.col-header {
  display: flex; align-items: center; gap: 14px;
}

.col-icon { font-size: 32px; }

.col-title {
  font-family: var(--font-d);
  font-size: 26px; font-weight: 400;
  color: var(--white); line-height: 1.3;
}

.dharmic-col-title  { color: var(--saffron-l); }
.adhyatmik-col-title { color: var(--teal-l); }

.features-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.feat-card {
  padding: 14px 14px;
  border-radius: 14px;
  display: flex; flex-direction: column; gap: 8px;
}

.dharmic-card {
  background: rgba(232,114,42,0.07);
  border: 1px solid rgba(232,114,42,0.18);
}

.adhyatmik-card {
  background: rgba(62,207,191,0.06);
  border: 1px solid rgba(62,207,191,0.16);
}

.feat-num {
  font-size: 10px; font-weight: 800;
  letter-spacing: 2px; color: var(--saffron);
}

.teal-num { color: var(--teal); }

.feat-card p {
  font-size: 12.5px; line-height: 1.6;
  color: var(--white2); font-weight: 300;
}

.example-row {
  display: flex; align-items: center; gap: 10px;
  padding: 12px 16px;
  background: rgba(255,255,255,0.03);
  border-radius: 10px;
  border: 1px solid rgba(255,255,255,0.06);
}

.eg-label {
  font-size: 10px; font-weight: 700;
  letter-spacing: 2px; color: var(--saffron);
  white-space: nowrap;
}

.teal-eg { color: var(--teal); }

.eg-text {
  font-size: 13px; color: var(--white2);
  font-weight: 300;
}

/* ══════════════════════════════
   SLIDE 5 — FACE OFF
══════════════════════════════ */
.split-bg {
  position: absolute; inset: 0;
  background:
    linear-gradient(90deg,
      rgba(232,114,42,0.12) 0%,
      transparent 45%,
      transparent 55%,
      rgba(62,207,191,0.1) 100%),
    linear-gradient(160deg, #0E0808 0%, #060410 50%, #060C10 100%);
}

.split-bg::after {
  content: '';
  position: absolute;
  top: 0; bottom: 0; left: 50%;
  width: 1px;
  background: linear-gradient(180deg, transparent, rgba(212,168,67,0.3), transparent);
}

.faceoff-layout {
  gap: 20px;
  align-items: center;
}

.faceoff-title {
  font-family: var(--font-d);
  font-size: 24px; font-weight: 400;
  color: var(--gold-l); text-align: center;
  width: 100%;
}

.faceoff-grid {
  display: grid;
  grid-template-columns: 1fr 50px 1fr;
  gap: 0; width: 100%;
  align-items: start;
}

.faceoff-col {
  display: flex; flex-direction: column; gap: 8px;
}

.faceoff-head {
  font-size: 13px; font-weight: 700;
  letter-spacing: 0.5px;
  padding-bottom: 10px;
  border-bottom: 1px solid;
  text-align: center;
  margin-bottom: 4px;
}

.dharmic-faceoff .faceoff-head {
  color: var(--saffron-l);
  border-color: rgba(232,114,42,0.3);
}

.adhyatmik-faceoff .faceoff-head {
  color: var(--teal-l);
  border-color: rgba(62,207,191,0.3);
}

.faceoff-item {
  font-size: 14px; color: var(--white2);
  text-align: center; padding: 9px 6px;
  border-radius: 8px;
  background: rgba(255,255,255,0.025);
  font-weight: 300;
  transition: all 0.3s;
}

.dharmic-faceoff .faceoff-item:hover  { background: rgba(232,114,42,0.1); color: var(--saffron-l); }
.adhyatmik-faceoff .faceoff-item:hover { background: rgba(62,207,191,0.08); color: var(--teal-l); }

.faceoff-vs {
  display: flex; align-items: center; justify-content: center;
  padding-top: 36px;
}

.vs-ring {
  width: 40px; height: 40px;
  border-radius: 50%;
  background: rgba(212,168,67,0.1);
  border: 1.5px solid rgba(212,168,67,0.4);
  display: flex; align-items: center; justify-content: center;
  font-size: 10px; font-weight: 800;
  color: var(--gold); letter-spacing: 1px;
  box-shadow: 0 0 20px rgba(212,168,67,0.15);
}

/* ══════════════════════════════
   SLIDE 6 — CLOSING
══════════════════════════════ */
.closing-bg {
  position: absolute; inset: 0;
  background:
    radial-gradient(ellipse 100% 80% at 50% 40%, rgba(212,168,67,0.15) 0%, transparent 60%),
    radial-gradient(ellipse 60% 60% at 20% 80%, rgba(232,114,42,0.1) 0%, transparent 50%),
    radial-gradient(ellipse 60% 60% at 80% 20%, rgba(62,207,191,0.08) 0%, transparent 50%),
    linear-gradient(160deg, #0E0A18 0%, #060410 100%);
}

.closing-orb {
  position: absolute;
  width: 300px; height: 300px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(212,168,67,0.08), transparent 70%);
  top: 50%; left: 50%; transform: translate(-50%,-50%);
  animation: orbFloat 5s ease-in-out infinite;
  pointer-events: none;
}

.closing-content {
  align-items: center; text-align: center;
  gap: 14px;
}

.closing-icon {
  font-size: 52px;
  filter: drop-shadow(0 0 20px rgba(212,168,67,0.4));
}

.closing-line {
  font-family: var(--font-d);
  font-size: 22px; font-weight: 400;
  color: var(--white2); line-height: 1.5;
}

.closing-highlight {
  font-family: var(--font-d);
  font-size: 26px; font-weight: 400;
  font-style: italic;
  color: var(--gold-l);
  text-shadow: 0 0 30px rgba(212,168,67,0.4);
  line-height: 1.5;
}

.closing-divider {
  width: 60px; height: 1px;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
  margin: 4px 0;
}

.closing-cta {
  display: flex; align-items: center; gap: 8px;
  font-size: 12px; letter-spacing: 2px;
  color: var(--white2); text-transform: uppercase;
}

.dot-sep { color: var(--gold); }

/* ══ PROGRESS BAR ══ */
.progress-bar {
  position: absolute; top: 0; left: 0; right: 0;
  height: 3px; z-index: 20;
  background: rgba(255,255,255,0.05);
}

.progress-fill {
  height: 100%; width: 0%;
  background: linear-gradient(90deg, var(--saffron), var(--gold), var(--teal));
  transition: width 0.3s ease;
  border-radius: 0 2px 2px 0;
}

/* ══ DOTS ══ */
.dots {
  position: absolute; bottom: 20px; left: 50%;
  transform: translateX(-50%);
  display: flex; gap: 6px; z-index: 20;
}

.dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: rgba(255,255,255,0.2);
  cursor: pointer;
  transition: all 0.35s cubic-bezier(0.22,1,0.36,1);
}

.dot.active {
  background: var(--gold);
  width: 22px; border-radius: 3px;
}

/* ══ TAP ZONES ══ */
.tap-zone {
  position: absolute; top: 0; bottom: 0;
  width: 40%; z-index: 10; cursor: pointer;
}

.tap-left  { left: 0; }
.tap-right { right: 0; }

/* ══ GLOW PULSE on active char icons ══ */
@keyframes iconGlow {
  0%,100% { box-shadow: 0 0 20px rgba(232,114,42,0.2); }
  50%      { box-shadow: 0 0 50px rgba(232,114,42,0.5); }
}

.slide.active .dharmic-icon { animation: iconGlow 3s ease-in-out infinite; }

@keyframes iconGlowTeal {
  0%,100% { box-shadow: 0 0 20px rgba(62,207,191,0.2); }
  50%      { box-shadow: 0 0 50px rgba(62,207,191,0.45); }
}

.slide.active .adhyatmik-icon { animation: iconGlowTeal 3s ease-in-out infinite; }