/* ============================================
   Bhagwan Bharose — Tadpatri Modern
   Palm-leaf manuscript aesthetic
   ============================================ */

:root {
  /* Colors — from Tadpatri Modern design system */
  --surface: #fff8f1;
  --surface-low: #fff2dc;
  --surface-mid: #ffecc6;
  --surface-high: #f5e0b6;
  --surface-dim: #ecd8ae;
  --parchment-1: #E6D2A8;
  --parchment-2: #D9BE8E;
  --ink: #3B2A1A;
  --ink-soft: #4e453e;
  --ink-mute: #745142;
  --gold: #C9A227;
  --gold-soft: #E0BE56;
  --maroon: #7B2D26;
  --maroon-deep: #591410;
  --teal: #155E63;
  --tulasi: #5A6B3B;
  --inverse-surface: #3b2f11;
  --inverse-on-surface: #ffefd1;
  --outline: #80756d;
  --outline-soft: #d1c4ba;

  /* Typography */
  --font-display: "EB Garamond", "Cormorant Garamond", Georgia, serif;
  --font-body: "Literata", Georgia, serif;
  --font-deva: "Tiro Devanagari Sanskrit", "Noto Sans Devanagari", "Nirmala UI", serif;

  /* Layout */
  --max: 1200px;
  --gutter: 24px;
  --margin-mobile: 20px;
  --margin-desktop: 64px;

  /* Radii */
  --r-sm: 0.25rem;
  --r-md: 0.5rem;
  --r-lg: 0.75rem;
  --r-xl: 1.25rem;

  /* Motion */
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
}

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

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.75;
  color: var(--ink);
  background: var(--surface);
  background-image:
    radial-gradient(ellipse at top, rgba(201, 162, 39, 0.05), transparent 50%),
    radial-gradient(ellipse at bottom, rgba(123, 45, 38, 0.04), transparent 50%);
  overflow-x: hidden;
}

img { max-width: 100%; height: auto; display: block; }

a {
  color: var(--maroon);
  text-decoration: none;
  transition: color 200ms var(--ease);
}
a:hover { color: var(--gold); }

::selection { background: var(--gold); color: var(--ink); }

/* ============================================
   Typography
   ============================================ */
.display {
  font-family: var(--font-display);
  font-weight: 500;
  line-height: 1.12;
  letter-spacing: -0.01em;
  color: var(--ink);
}
.headline {
  font-family: var(--font-display);
  font-weight: 500;
  letter-spacing: -0.005em;
  color: var(--ink);
}
.deva {
  font-family: var(--font-deva);
  font-weight: 400;
  color: var(--maroon);
}
.eyebrow {
  font-family: var(--font-body);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold);
}

/* Bilingual heading pattern */
.bilingual-h {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  align-items: center;
  text-align: center;
}
.bilingual-h .en {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  line-height: 1.15;
  color: var(--ink);
}
.bilingual-h .hi {
  font-family: var(--font-deva);
  font-weight: 400;
  font-size: clamp(1rem, 2vw, 1.25rem);
  color: var(--maroon);
}

/* Language-swap behavior */
html[data-lang="hi"] .bilingual-h .en {
  font-size: clamp(1rem, 2vw, 1.25rem);
  color: var(--maroon);
  order: 2;
  font-family: var(--font-body);
  font-style: italic;
  font-weight: 400;
}
html[data-lang="hi"] .bilingual-h .hi {
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  font-weight: 500;
  color: var(--ink);
  order: 1;
}

/* ============================================
   Layout primitives
   ============================================ */
.container {
  width: 100%;
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 var(--margin-mobile);
}
@media (min-width: 768px) {
  .container { padding: 0 var(--margin-desktop); }
}

.section {
  padding: clamp(64px, 10vw, 120px) 0;
  position: relative;
}

/* Subtle parchment texture overlay — toggle on body */
.parchment-bg {
  background-image: url('../assets/textures/parchment.webp');
  background-blend-mode: multiply;
  background-size: 800px auto;
}

/* Thin gold rule, optionally with lotus break */
.rule {
  display: block;
  width: 100%;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--gold) 20%, var(--gold) 80%, transparent);
  border: 0;
}
.rule-fancy {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 18px;
  width: 100%;
  max-width: 480px;
  margin: 32px auto;
  color: var(--gold);
}
.rule-fancy::before, .rule-fancy::after {
  content: '';
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--gold) 50%);
}
.rule-fancy::after {
  background: linear-gradient(90deg, var(--gold) 50%, transparent);
}
.rule-fancy .lotus {
  width: 16px;
  height: 16px;
  display: block;
}

/* ============================================
   Navigation
   ============================================ */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  padding: 14px var(--margin-mobile);
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: rgba(255, 248, 241, 0.78);
  backdrop-filter: blur(14px) saturate(1.05);
  -webkit-backdrop-filter: blur(14px) saturate(1.05);
  border-bottom: 1px solid transparent;
  transition: border-color 300ms var(--ease), background 300ms var(--ease);
}
.nav.scrolled {
  border-bottom-color: rgba(201, 162, 39, 0.35);
  background: rgba(255, 248, 241, 0.92);
}
@media (min-width: 768px) {
  .nav { padding: 16px var(--margin-desktop); }
}

.nav-brand {
  display: flex;
  align-items: center;
  gap: 12px;
}
.nav-brand img {
  width: 40px;
  height: 40px;
  border-radius: 8px;
}
.nav-brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
}
.nav-brand-text .en {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 1.15rem;
  color: var(--ink);
}
.nav-brand-text .hi {
  font-family: var(--font-deva);
  font-size: 0.78rem;
  color: var(--maroon);
}

.nav-links {
  display: none;
  gap: 28px;
  align-items: center;
}
@media (min-width: 900px) {
  .nav-links { display: flex; }
}
.nav-links a {
  font-family: var(--font-body);
  font-size: 0.95rem;
  color: var(--ink);
  position: relative;
}
.nav-links a::after {
  content: '';
  position: absolute;
  left: 50%;
  bottom: -6px;
  width: 0;
  height: 1px;
  background: var(--gold);
  transition: width 250ms var(--ease), left 250ms var(--ease);
}
.nav-links a:hover { color: var(--maroon); }
.nav-links a:hover::after { width: 100%; left: 0; }

.lang-toggle {
  display: inline-flex;
  padding: 4px;
  background: rgba(201, 162, 39, 0.14);
  border: 1px solid rgba(201, 162, 39, 0.28);
  border-radius: 999px;
  gap: 2px;
}
.lang-toggle button {
  appearance: none;
  border: 0;
  background: transparent;
  font-family: var(--font-body);
  font-size: 0.82rem;
  font-weight: 600;
  padding: 6px 12px;
  border-radius: 999px;
  cursor: pointer;
  color: var(--ink-mute);
  transition: all 200ms var(--ease);
}
.lang-toggle button.active {
  background: var(--maroon);
  color: var(--surface);
  box-shadow: 0 2px 6px rgba(123, 45, 38, 0.25);
}
.lang-toggle button.deva { font-family: var(--font-deva); }

.nav-menu-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border: 1px solid rgba(201, 162, 39, 0.3);
  background: transparent;
  border-radius: 8px;
  cursor: pointer;
  color: var(--ink);
}
@media (min-width: 900px) { .nav-menu-btn { display: none; } }

/* Mobile drawer */
.nav-drawer {
  position: fixed;
  inset: 0;
  background: var(--surface);
  z-index: 99;
  display: none;
  flex-direction: column;
  padding: 80px 32px 32px;
  gap: 4px;
}
.nav-drawer.open { display: flex; }
.nav-drawer a {
  font-family: var(--font-display);
  font-size: 1.5rem;
  padding: 12px 0;
  border-bottom: 1px solid rgba(201, 162, 39, 0.2);
  color: var(--ink);
}

/* ============================================
   Buttons — "Inked Stamps"
   ============================================ */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 24px;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.95rem;
  border-radius: var(--r-md);
  border: 0;
  cursor: pointer;
  transition: transform 200ms var(--ease), box-shadow 200ms var(--ease), background 200ms var(--ease);
  text-decoration: none;
  position: relative;
  overflow: hidden;
}
.btn-primary {
  background: var(--maroon);
  color: var(--surface);
  box-shadow: 0 4px 14px rgba(123, 45, 38, 0.25), inset 0 -1px 0 rgba(0,0,0,0.18);
}
.btn-primary:hover {
  background: var(--maroon-deep);
  transform: translateY(-1px);
  box-shadow: 0 8px 22px rgba(123, 45, 38, 0.32), inset 0 -1px 0 rgba(0,0,0,0.18);
  color: var(--gold-soft);
}
.btn-ghost {
  background: transparent;
  color: var(--ink);
  border: 1px solid var(--gold);
}
.btn-ghost:hover { background: rgba(201, 162, 39, 0.12); color: var(--maroon); }

.coming-soon-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  background: rgba(201, 162, 39, 0.15);
  border: 1px solid rgba(201, 162, 39, 0.4);
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--gold);
}
.coming-soon-pill::before {
  content: '';
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--gold);
  animation: pulse 2s ease-in-out infinite;
}
@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.5; transform: scale(0.9); }
}

/* ============================================
   HERO — scroll-scrubbed manuscript
   ============================================ */
.hero {
  position: relative;
  height: 300vh; /* tall section to allow scroll-scrub */
}
.hero-pin {
  position: sticky;
  top: 0;
  height: 100vh;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
.hero-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 1;
  transform-origin: center center;
  animation: heroBreathe 18s ease-in-out infinite alternate;
  will-change: transform;
}
/* Slow, continuous life so the hero never reads as a frozen photo.
   Scaling up only (>=1) keeps object-fit:cover edges covered. */
@keyframes heroBreathe {
  0%   { transform: scale(1.04) translate3d(0, 0, 0); }
  100% { transform: scale(1.10) translate3d(0, -1.2%, 0); }
}
.hero-vignette {
  position: absolute;
  inset: 0;
  /* Darkening scrim: pools shade behind the centered copy and along the
     top/bottom edges so the light hero text stays legible over the busy
     manuscript footage, while the mid-frame still reads as the photo. */
  background:
    radial-gradient(ellipse 75% 65% at 50% 46%, rgba(33, 19, 9, 0.62) 0%, rgba(33, 19, 9, 0.34) 50%, rgba(50, 32, 18, 0.16) 76%, transparent 100%),
    linear-gradient(180deg, rgba(26, 15, 7, 0.55) 0%, rgba(26, 15, 7, 0.12) 22%, transparent 46%, transparent 60%, rgba(26, 15, 7, 0.5) 100%);
  z-index: 2;
  pointer-events: none;
}
.hero-content {
  position: relative;
  z-index: 3;
  text-align: center;
  padding: 0 var(--margin-mobile);
  max-width: 900px;
  opacity: 0;
  transition: opacity 800ms var(--ease);
}
.hero-content.visible { opacity: 1; }

.hero-eyebrow {
  display: inline-block;
  margin-bottom: 20px;
  padding: 6px 16px;
  background: rgba(255, 248, 241, 0.7);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(201, 162, 39, 0.4);
  border-radius: 999px;
  color: var(--maroon);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}
.hero-title {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(2.5rem, 7vw, 4.5rem);
  line-height: 1.05;
  color: var(--inverse-on-surface);
  margin-bottom: 14px;
  text-shadow: 0 2px 18px rgba(0, 0, 0, 0.55), 0 1px 3px rgba(0, 0, 0, 0.45);
}
.hero-title-hi {
  font-family: var(--font-deva);
  font-size: clamp(1.25rem, 3vw, 1.75rem);
  color: var(--gold-soft);
  margin-bottom: 28px;
  text-shadow: 0 2px 16px rgba(0, 0, 0, 0.55), 0 1px 3px rgba(0, 0, 0, 0.45);
}
.hero-tagline {
  font-family: var(--font-display);
  font-style: italic;
  font-size: clamp(1.1rem, 2.2vw, 1.4rem);
  color: rgba(255, 239, 209, 0.94);
  margin-bottom: 8px;
  text-shadow: 0 1px 12px rgba(0, 0, 0, 0.5), 0 1px 2px rgba(0, 0, 0, 0.4);
}
.hero-tagline-hi {
  font-family: var(--font-deva);
  font-size: clamp(0.95rem, 1.8vw, 1.15rem);
  color: var(--gold-soft);
  margin-bottom: 36px;
  text-shadow: 0 1px 12px rgba(0, 0, 0, 0.5), 0 1px 2px rgba(0, 0, 0, 0.4);
}
.hero-actions {
  display: flex;
  gap: 14px;
  justify-content: center;
  flex-wrap: wrap;
}
/* The ghost button's default dark ink is invisible against the hero scrim,
   so lighten it just here (the global .btn-ghost stays dark for light sections). */
.hero-actions .btn-ghost {
  color: var(--inverse-on-surface);
  border-color: rgba(224, 190, 86, 0.7);
}
.hero-actions .btn-ghost:hover {
  background: rgba(224, 190, 86, 0.16);
  color: #fff;
}

/* Scroll cue */
.scroll-cue {
  position: absolute;
  bottom: 32px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 4;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  color: var(--ink-mute);
  font-size: 0.78rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  opacity: 0.7;
  animation: scrollPulse 2.4s ease-in-out infinite;
}
.scroll-cue-line {
  width: 1px;
  height: 32px;
  background: linear-gradient(180deg, var(--gold), transparent);
}
@keyframes scrollPulse {
  0%, 100% { transform: translate(-50%, 0); opacity: 0.5; }
  50% { transform: translate(-50%, 6px); opacity: 0.9; }
}

/* ============================================
   SHLOKA BAND
   ============================================ */
.shloka-band {
  background: var(--surface-low);
  padding: 64px 0;
  position: relative;
  border-top: 1px solid rgba(201, 162, 39, 0.3);
  border-bottom: 1px solid rgba(201, 162, 39, 0.3);
}
.shloka-band::before, .shloka-band::after {
  content: '';
  position: absolute;
  left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, transparent, var(--gold) 50%, transparent);
  opacity: 0.4;
}
.shloka-band::before { top: 6px; }
.shloka-band::after { bottom: 6px; }

.shloka-card {
  max-width: 720px;
  margin: 0 auto;
  text-align: center;
  padding: 0 var(--margin-mobile);
}
.shloka-sanskrit {
  font-family: var(--font-deva);
  font-size: clamp(1.5rem, 3.5vw, 2rem);
  line-height: 1.6;
  color: var(--ink);
  margin-bottom: 14px;
}
.shloka-translit {
  font-family: var(--font-display);
  font-style: italic;
  font-size: clamp(1rem, 2vw, 1.15rem);
  color: var(--maroon);
  margin-bottom: 18px;
}
.shloka-meaning {
  font-family: var(--font-body);
  font-size: clamp(0.95rem, 1.8vw, 1.05rem);
  color: var(--ink-soft);
  font-style: italic;
}
.shloka-ref {
  display: inline-block;
  margin-top: 18px;
  font-family: var(--font-body);
  font-size: 0.78rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold);
}

/* ============================================
   FEATURES GRID — manuscript cards
   ============================================ */
.features {
  background: var(--surface);
}
.features-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 18px;
  margin-top: 64px;
}
@media (min-width: 600px) {
  .features-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 1000px) {
  .features-grid { grid-template-columns: repeat(4, 1fr); }
}

.feature-card {
  position: relative;
  padding: 28px 22px;
  background: var(--surface-low);
  border: 1px solid rgba(201, 162, 39, 0.32);
  border-radius: var(--r-lg);
  transition: transform 350ms var(--ease), border-color 350ms var(--ease), box-shadow 350ms var(--ease);
  overflow: hidden;
}
.feature-card::before {
  content: '';
  position: absolute;
  top: -1px; left: -1px; right: -1px;
  height: 3px;
  background: linear-gradient(90deg, var(--gold-soft), var(--gold), var(--gold-soft));
  border-radius: var(--r-lg) var(--r-lg) 0 0;
  opacity: 0.65;
}
.feature-card::after {
  content: '';
  position: absolute;
  top: 8px; right: 8px;
  width: 38px;
  height: 38px;
  background-image: url('../assets/motifs/corner.webp');
  background-size: contain;
  background-repeat: no-repeat;
  background-position: top right;
  opacity: 0.18;
  transform: rotate(90deg);
  pointer-events: none;
}
.feature-card:hover {
  transform: translateY(-4px);
  border-color: rgba(123, 45, 38, 0.4);
  box-shadow: 0 12px 32px rgba(59, 42, 26, 0.08);
}
.feature-icon {
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(123, 45, 38, 0.08);
  border-radius: 50%;
  margin-bottom: 18px;
  color: var(--maroon);
}
.feature-icon svg { width: 22px; height: 22px; }
.feature-title-en {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 1.15rem;
  color: var(--ink);
  margin-bottom: 2px;
}
.feature-title-hi {
  font-family: var(--font-deva);
  font-size: 0.85rem;
  color: var(--maroon);
  margin-bottom: 10px;
}
.feature-body {
  font-size: 0.92rem;
  color: var(--ink-soft);
  line-height: 1.6;
}

/* ============================================
   SCRIPTURE SHOWCASE
   ============================================ */
.scripture {
  background: var(--surface-low);
}
.scripture-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 40px;
  margin-top: 56px;
  align-items: stretch;
}
@media (min-width: 880px) {
  .scripture-grid { grid-template-columns: 1.1fr 0.9fr; gap: 56px; }
}

.scripture-leaf {
  position: relative;
  padding: 40px 28px;
  background: var(--parchment-1);
  background-image: url('../assets/textures/parchment.webp');
  background-size: cover;
  background-blend-mode: multiply;
  border-radius: var(--r-md);
  box-shadow: inset 0 0 60px rgba(59, 42, 26, 0.18), 0 4px 24px rgba(59, 42, 26, 0.1);
  border: 1px solid rgba(123, 45, 38, 0.18);
}
.scripture-leaf::before, .scripture-leaf::after {
  content: '';
  position: absolute;
  width: 80px;
  height: 80px;
  background-image: url('../assets/motifs/corner.webp');
  background-size: contain;
  background-repeat: no-repeat;
  opacity: 0.5;
  pointer-events: none;
}
.scripture-leaf::before { top: 6px; left: 6px; }
.scripture-leaf::after { bottom: 6px; right: 6px; transform: rotate(180deg); }

.scripture-verse-label {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--maroon);
  margin-bottom: 18px;
}
.scripture-verse-sanskrit {
  font-family: var(--font-deva);
  font-size: clamp(1.05rem, 2vw, 1.25rem);
  line-height: 1.7;
  color: var(--ink);
  margin-bottom: 14px;
}
.scripture-verse-translit {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 0.92rem;
  color: var(--maroon-deep);
  margin-bottom: 14px;
}
.scripture-verse-meaning {
  font-family: var(--font-body);
  font-size: 0.95rem;
  color: var(--ink-soft);
  line-height: 1.7;
}

.scripture-list h3 {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 1.5rem;
  color: var(--ink);
  margin-bottom: 24px;
}
.scripture-book {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 16px 0;
  border-bottom: 1px solid rgba(201, 162, 39, 0.25);
}
.scripture-book:last-child { border-bottom: 0; }
.scripture-book-num {
  font-family: var(--font-display);
  font-size: 1.4rem;
  color: var(--gold);
  font-weight: 500;
  min-width: 28px;
}
.scripture-book-name {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 1.1rem;
  color: var(--ink);
}
.scripture-book-meta {
  font-size: 0.85rem;
  color: var(--ink-mute);
}
.scripture-coming {
  margin-top: 24px;
  padding: 16px 18px;
  background: rgba(201, 162, 39, 0.08);
  border-left: 3px solid var(--gold);
  font-size: 0.88rem;
  color: var(--ink-soft);
  font-style: italic;
}

/* ============================================
   DARSHAN GALLERY
   ============================================ */
.darshan {
  background: var(--surface);
  overflow: hidden;
}
.darshan-strip {
  margin-top: 64px;
  overflow: hidden;
  padding: 12px 0 24px;
  /* Soft fade at both edges so cards glide in and out instead of clipping. */
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent);
          mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent);
}
.darshan-track {
  display: flex;
  width: max-content;
  will-change: transform;
}

.darshan-card {
  flex: 0 0 auto;
  width: 260px;
  aspect-ratio: 9 / 16;
  position: relative;
  margin-right: 24px; /* uniform spacing on every card keeps the -50% loop seamless */
  border-radius: var(--r-md);
  overflow: hidden;
  background: var(--ink);
  transition: transform 350ms var(--ease);
}
.darshan-card:hover { transform: scale(1.02); }
.darshan-card-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.darshan-card-frame {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image: url('../assets/motifs/frame.webp?v=2');
  background-size: 100% 100%;
  mix-blend-mode: normal;
}

/* ============================================
   PANCHANG + JAPA
   ============================================ */
.panchang-japa {
  background: var(--surface-low);
}
.pj-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 32px;
  margin-top: 56px;
}
@media (min-width: 900px) {
  .pj-grid { grid-template-columns: 1fr 1fr; gap: 48px; }
}

.panchang-card {
  background: var(--surface);
  border: 1px solid rgba(201, 162, 39, 0.32);
  border-radius: var(--r-lg);
  padding: 32px 28px;
  position: relative;
  overflow: hidden;
}
.panchang-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
}
.panchang-date {
  font-size: 0.8rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 8px;
  font-weight: 700;
}
.panchang-title {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 1.6rem;
  color: var(--ink);
  margin-bottom: 24px;
}
.panchang-rows {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px 24px;
}
.panchang-row {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 10px 0;
  border-bottom: 1px solid rgba(201, 162, 39, 0.2);
}
.panchang-row-label {
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-mute);
}
.panchang-row-value {
  font-family: var(--font-display);
  font-size: 1.05rem;
  color: var(--ink);
}
.panchang-row-value .hi {
  font-family: var(--font-deva);
  font-size: 0.85rem;
  color: var(--maroon);
  margin-left: 6px;
}

.japa-card {
  background: var(--surface);
  border: 1px solid rgba(201, 162, 39, 0.32);
  border-radius: var(--r-lg);
  padding: 32px 28px;
  display: flex;
  flex-direction: column;
  align-items: center;
  position: relative;
  overflow: hidden;
}
.japa-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, transparent, var(--maroon), transparent);
}
.japa-eyebrow {
  font-size: 0.72rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--maroon);
  margin-bottom: 6px;
  font-weight: 700;
}
.japa-title {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 1.5rem;
  color: var(--ink);
  margin-bottom: 6px;
}
.japa-sub {
  font-size: 0.92rem;
  color: var(--ink-mute);
  margin-bottom: 24px;
  text-align: center;
}
.japa-mala-container {
  width: 100%;
  aspect-ratio: 1 / 1;
  max-width: 360px;
  position: relative;
  cursor: pointer;
}
.japa-mala-canvas {
  width: 100%;
  height: 100%;
  display: block;
  outline: none;
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
}
.japa-mala-canvas:focus-visible { outline: 2px dashed var(--gold); outline-offset: 4px; border-radius: 50%; }

/* ---- Interactive japa mala ---- */
.mala-cord { fill: none; stroke: rgba(123, 45, 38, 0.22); stroke-width: 2; }
.mala-bead {
  fill: #7B2D26;
  stroke: #3B2A1A;
  stroke-width: 0.5;
  transform-box: fill-box;
  transform-origin: center;
  transition: fill 240ms ease, stroke 240ms ease;
}
.mala-bead.lit { fill: var(--gold); stroke: var(--gold-soft); }
.mala-bead.active {
  fill: #a93c33;
  animation: malaPulse 1.15s ease-in-out infinite;
}
.mala-bead.pop { animation: malaPop 440ms cubic-bezier(.34, 1.56, .64, 1); }
.mala-bead.flash { fill: var(--gold-soft); filter: drop-shadow(0 0 4px rgba(224, 190, 86, 0.95)); }
@keyframes malaPulse { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.55); } }
@keyframes malaPop { 0% { transform: scale(1); } 45% { transform: scale(2); } 100% { transform: scale(1.1); } }

.mala-guru {
  fill: var(--gold);
  stroke: #3B2A1A;
  stroke-width: 0.5;
  cursor: pointer;
  transform-box: fill-box;
  transform-origin: center;
  transition: fill 200ms ease;
  animation: malaGuruBreathe 3.2s ease-in-out infinite;
}
.mala-guru:hover { fill: var(--gold-soft); }
@keyframes malaGuruBreathe { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.12); } }
.mala-tassel { stroke: var(--maroon); stroke-width: 2; fill: none; opacity: 0.65; stroke-linecap: round; }

.mala-disc { fill: rgba(224, 190, 86, 0); }
.japa-mala-canvas.celebrate .mala-disc { animation: malaGlow 1.3s ease; }
@keyframes malaGlow { 0% { fill: rgba(224, 190, 86, 0); } 40% { fill: rgba(224, 190, 86, 0.32); } 100% { fill: rgba(224, 190, 86, 0); } }

.mala-word {
  font-family: var(--font-deva), var(--font-display);
  font-size: 30px;
  font-weight: 600;
  fill: var(--maroon);
  transform-box: fill-box;
  transform-origin: center;
}
.mala-word.flip { animation: malaWord 380ms ease; }
@keyframes malaWord { 0% { opacity: 0; transform: translateY(7px); } 100% { opacity: 1; transform: translateY(0); } }
.mala-tap-hint {
  font-size: 9px;
  letter-spacing: 0.22em;
  fill: var(--ink-mute);
  transition: opacity 400ms ease;
}

.japa-toast {
  position: absolute;
  left: 50%; top: 50%;
  transform: translate(-50%, -50%) scale(0.8);
  background: var(--maroon);
  color: var(--inverse-on-surface);
  padding: 10px 18px;
  border-radius: 999px;
  font-size: 0.88rem;
  font-weight: 600;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.28);
  z-index: 5;
}
.japa-toast.show { animation: japaToast 1.5s ease forwards; }
@keyframes japaToast {
  0% { opacity: 0; transform: translate(-50%, -50%) scale(0.8); }
  15% { opacity: 1; transform: translate(-50%, -62%) scale(1); }
  78% { opacity: 1; transform: translate(-50%, -62%) scale(1); }
  100% { opacity: 0; transform: translate(-50%, -74%) scale(0.95); }
}

@media (prefers-reduced-motion: reduce) {
  .mala-bead { transition: fill 120ms linear; }
  .mala-bead.active { animation: none; fill: #c14a40; }
  .mala-bead.pop, .mala-bead.flash, .mala-word.flip,
  .mala-guru, .japa-mala-canvas.celebrate .mala-disc { animation: none; }
  .japa-toast.show { animation: none; opacity: 1; transform: translate(-50%, -60%); }
}
.japa-hint {
  margin-top: 16px;
  font-size: 0.82rem;
  color: var(--ink-mute);
  display: flex;
  align-items: center;
  gap: 8px;
}
.japa-hint svg { width: 16px; height: 16px; }

/* ============================================
   SCREENSHOTS
   ============================================ */
.screenshots {
  background: var(--surface);
  overflow: hidden;
}
.ss-shelf {
  display: flex;
  gap: 28px;
  justify-content: flex-start;
  align-items: flex-end;
  margin-top: 64px;
  padding: 24px var(--margin-mobile);
  overflow-x: auto;
  scrollbar-width: thin;
  scrollbar-color: var(--gold) transparent;
}
@media (min-width: 1000px) {
  .ss-shelf {
    justify-content: center;
    padding: 24px var(--margin-desktop);
    overflow: visible;
  }
}
.ss-phone {
  flex: 0 0 auto;
  width: 220px;
  position: relative;
  filter: drop-shadow(0 12px 24px rgba(59, 42, 26, 0.18));
}
.ss-phone:nth-child(odd) { transform: translateY(-12px); }
.ss-phone img {
  width: 100%;
  border-radius: 28px;
  border: 8px solid var(--ink);
  background: var(--ink);
  box-shadow: inset 0 0 0 2px var(--gold);
}
.ss-phone-caption {
  margin-top: 14px;
  text-align: center;
  font-family: var(--font-display);
  font-size: 0.95rem;
  color: var(--ink);
}
.ss-phone-caption .hi {
  display: block;
  font-family: var(--font-deva);
  font-size: 0.78rem;
  color: var(--maroon);
  margin-top: 2px;
}

/* ============================================
   DOWNLOAD CTA
   ============================================ */
.download {
  background: var(--maroon);
  background-image:
    radial-gradient(ellipse at top left, rgba(201, 162, 39, 0.18), transparent 60%),
    radial-gradient(ellipse at bottom right, rgba(201, 162, 39, 0.12), transparent 60%);
  color: var(--surface);
  padding: clamp(72px, 12vw, 120px) 0;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.download::before, .download::after {
  content: '';
  position: absolute;
  width: 240px;
  height: 240px;
  background-image: url('../assets/motifs/corner.webp');
  background-size: contain;
  background-repeat: no-repeat;
  opacity: 0.14;
  pointer-events: none;
}
.download::before { top: 0; left: 0; }
.download::after { bottom: 0; right: 0; transform: rotate(180deg); }

.download-eyebrow {
  color: var(--gold-soft);
  margin-bottom: 14px;
}
.download h2 {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(2rem, 5vw, 3rem);
  color: var(--surface);
  margin-bottom: 8px;
}
.download h2 + .hi {
  font-family: var(--font-deva);
  font-size: clamp(1.1rem, 2.5vw, 1.4rem);
  color: var(--gold-soft);
  margin-bottom: 28px;
}
.download-sub {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 1.15rem;
  color: var(--gold-soft);
  margin-bottom: 36px;
  opacity: 0.9;
}
.download-meta {
  display: flex;
  gap: 24px;
  justify-content: center;
  flex-wrap: wrap;
  margin-top: 28px;
  font-size: 0.85rem;
  color: rgba(255, 248, 241, 0.7);
}
.download-meta span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.gp-badge {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  padding: 14px 28px;
  background: var(--inverse-surface);
  color: var(--surface);
  border: 1px solid var(--gold);
  border-radius: var(--r-md);
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 1rem;
  letter-spacing: 0.02em;
  cursor: not-allowed;
  position: relative;
}
.gp-badge svg { width: 28px; height: 28px; }
.gp-badge::after {
  content: 'Coming Soon';
  position: absolute;
  top: -12px;
  right: -12px;
  background: var(--gold);
  color: var(--ink);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  padding: 3px 8px;
  border-radius: 999px;
  text-transform: uppercase;
}

/* ============================================
   FOOTER
   ============================================ */
.footer {
  background: var(--inverse-surface);
  color: var(--inverse-on-surface);
  padding: 64px 0 32px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 40px;
}
@media (min-width: 768px) {
  .footer-grid { grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 48px; }
}

.footer-brand {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.footer-brand-row {
  display: flex;
  align-items: center;
  gap: 12px;
}
.footer-brand-row img { width: 40px; height: 40px; border-radius: 8px; }
.footer-brand h3 {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 1.4rem;
  color: var(--inverse-on-surface);
}
.footer-brand h3 + .hi {
  font-family: var(--font-deva);
  color: var(--gold-soft);
  font-size: 0.95rem;
  margin-top: -4px;
}
.footer-tagline {
  font-family: var(--font-display);
  font-style: italic;
  color: rgba(255, 239, 209, 0.7);
  font-size: 0.95rem;
  max-width: 320px;
  line-height: 1.6;
  margin-top: 8px;
}
.footer-col h4 {
  font-family: var(--font-body);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gold-soft);
  margin-bottom: 18px;
}
.footer-col a, .footer-col span {
  display: block;
  font-size: 0.92rem;
  color: rgba(255, 239, 209, 0.78);
  padding: 5px 0;
  transition: color 200ms var(--ease);
}
.footer-col a:hover { color: var(--gold); }

.footer-bottom {
  margin-top: 56px;
  padding-top: 24px;
  border-top: 1px solid rgba(201, 162, 39, 0.18);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
  font-size: 0.82rem;
  color: rgba(255, 239, 209, 0.5);
}
.footer-bottom .grievance {
  font-size: 0.78rem;
  color: rgba(255, 239, 209, 0.55);
  text-align: right;
}
@media (max-width: 600px) {
  .footer-bottom { flex-direction: column; align-items: flex-start; }
  .footer-bottom .grievance { text-align: left; }
}

/* ============================================
   Reveal animations (used by ScrollReveal-lite)
   ============================================ */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 800ms var(--ease), transform 800ms var(--ease);
}
.reveal.in {
  opacity: 1;
  transform: translateY(0);
}

/* ============================================
   Ambient loops (background videos)
   ============================================ */
.ambient {
  position: absolute;
  pointer-events: none;
  opacity: 0.35;
  mix-blend-mode: multiply;
  z-index: 0;
}
.ambient video { width: 100%; height: 100%; object-fit: contain; }

/* ============================================
   Reduced motion fallback
   ============================================ */
@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;
  }
  .hero { height: 100vh; }
  .reveal { opacity: 1; transform: none; }
}

/* ============================================
   LEGAL PAGES — Privacy / Terms / Delete Account
   ============================================ */
.legal-page {
  padding-top: 100px; /* nav clearance */
  padding-bottom: 80px;
  background: var(--surface);
}
.legal-hero {
  text-align: center;
  padding: 56px var(--margin-mobile);
  max-width: 800px;
  margin: 0 auto 32px;
}
.legal-hero h1 {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(2rem, 5vw, 3rem);
  color: var(--ink);
  margin-bottom: 6px;
}
.legal-hero .hi {
  font-family: var(--font-deva);
  font-size: clamp(1.1rem, 2.5vw, 1.4rem);
  color: var(--maroon);
  margin-bottom: 18px;
  display: block;
}
.legal-meta {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 20px;
  font-size: 0.82rem;
  color: var(--ink-mute);
  letter-spacing: 0.05em;
  margin-top: 12px;
}
.legal-meta span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.legal-doc {
  max-width: 820px;
  margin: 0 auto;
  padding: 48px clamp(20px, 5vw, 56px);
  background: var(--parchment-1);
  background-image: url('../assets/textures/parchment.webp');
  background-size: cover;
  background-blend-mode: multiply;
  border: 1px solid rgba(123, 45, 38, 0.18);
  border-radius: var(--r-md);
  box-shadow: 0 4px 32px rgba(59, 42, 26, 0.08), inset 0 0 60px rgba(59, 42, 26, 0.06);
  position: relative;
}
.legal-doc::before, .legal-doc::after {
  content: '';
  position: absolute;
  width: 90px;
  height: 90px;
  background-image: url('../assets/motifs/corner.webp');
  background-size: contain;
  background-repeat: no-repeat;
  opacity: 0.4;
  pointer-events: none;
}
.legal-doc::before { top: 8px; left: 8px; }
.legal-doc::after { bottom: 8px; right: 8px; transform: rotate(180deg); }

.legal-doc h2 {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 1.5rem;
  color: var(--ink);
  margin: 36px 0 14px;
  padding-bottom: 8px;
  border-bottom: 1px solid rgba(201, 162, 39, 0.4);
}
.legal-doc h2:first-of-type { margin-top: 0; }
.legal-doc h3 {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 1.15rem;
  color: var(--maroon-deep);
  margin: 24px 0 10px;
}
.legal-doc p, .legal-doc li {
  font-family: var(--font-body);
  font-size: 0.98rem;
  line-height: 1.8;
  color: var(--ink);
  margin-bottom: 12px;
}
.legal-doc ul, .legal-doc ol {
  margin: 12px 0 20px 24px;
}
.legal-doc li { margin-bottom: 6px; }
.legal-doc strong { color: var(--maroon-deep); }
.legal-doc a { color: var(--maroon); text-decoration: underline; text-decoration-color: var(--gold); text-underline-offset: 3px; }
.legal-doc a:hover { color: var(--maroon-deep); }

.legal-doc table {
  width: 100%;
  border-collapse: collapse;
  margin: 18px 0;
  font-size: 0.92rem;
}
.legal-doc th {
  text-align: left;
  font-family: var(--font-display);
  font-weight: 500;
  color: var(--ink);
  padding: 10px 14px;
  background: rgba(201, 162, 39, 0.18);
  border-bottom: 1px solid rgba(123, 45, 38, 0.25);
}
.legal-doc td {
  padding: 10px 14px;
  border-bottom: 1px solid rgba(201, 162, 39, 0.2);
  color: var(--ink-soft);
}
.legal-doc tr:last-child td { border-bottom: 0; }

.grievance-block {
  margin: 24px 0;
  padding: 22px 24px;
  background: rgba(123, 45, 38, 0.06);
  border-left: 3px solid var(--maroon);
  border-radius: 0 var(--r-md) var(--r-md) 0;
}
.grievance-block strong { color: var(--maroon-deep); }

/* Delete-account specific */
.delete-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin: 24px 0 8px;
}
.delete-note {
  margin-top: 20px;
  padding: 14px 18px;
  background: rgba(201, 162, 39, 0.12);
  border-left: 3px solid var(--gold);
  border-radius: 0 var(--r-md) var(--r-md) 0;
  font-size: 0.92rem;
  font-style: italic;
  color: var(--ink-soft);
}
.delete-cards {
  display: grid;
  grid-template-columns: 1fr;
  gap: 18px;
  margin: 24px 0;
}
@media (min-width: 700px) {
  .delete-cards { grid-template-columns: 1fr 1fr; }
}
.delete-card {
  padding: 22px 24px;
  background: rgba(255, 248, 241, 0.7);
  border: 1px solid rgba(201, 162, 39, 0.32);
  border-radius: var(--r-md);
}
.delete-card h3 { margin-top: 0; }

/* In-doc language tabs */
.doc-lang-tabs {
  display: inline-flex;
  padding: 4px;
  margin-bottom: 32px;
  background: rgba(201, 162, 39, 0.14);
  border: 1px solid rgba(201, 162, 39, 0.3);
  border-radius: 999px;
  gap: 2px;
}
.doc-lang-tabs button {
  appearance: none;
  border: 0;
  background: transparent;
  font-family: var(--font-body);
  font-size: 0.88rem;
  font-weight: 600;
  padding: 8px 18px;
  border-radius: 999px;
  cursor: pointer;
  color: var(--ink-mute);
  transition: all 200ms var(--ease);
}
.doc-lang-tabs button.active {
  background: var(--maroon);
  color: var(--surface);
}
.doc-lang-tabs button.deva { font-family: var(--font-deva); }

.lang-pane { display: none; }
.lang-pane.active { display: block; }

/* ============================================
   Utility
   ============================================ */
.sr-only {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0, 0, 0, 0);
  white-space: nowrap; border: 0;
}
.center { text-align: center; }
.mt-sm { margin-top: 18px; }
.mt-md { margin-top: 32px; }
.mt-lg { margin-top: 56px; }

/* ============================================
   Cinematic Upgrade Styles — Tadpatri Modern
   ============================================ */

/* Custom Cursor */
.custom-cursor {
  position: fixed;
  width: 6px;
  height: 6px;
  background: var(--gold);
  border-radius: 50%;
  pointer-events: none;
  z-index: 99999;
  transform: translate(-50%, -50%);
  mix-blend-mode: difference;
  opacity: 0;
  transition: opacity 300ms ease;
  will-change: top, left;
}
.custom-cursor-ring {
  position: fixed;
  width: 38px;
  height: 38px;
  border: 1px solid var(--maroon);
  border-radius: 50%;
  pointer-events: none;
  z-index: 99998;
  transform: translate(-50%, -50%);
  transition: border-color 300ms var(--ease), width 300ms var(--ease), height 300ms var(--ease), background 300ms var(--ease), opacity 300ms ease;
  opacity: 0;
  will-change: top, left, width, height;
}
.custom-cursor-ring.active {
  width: 56px;
  height: 56px;
  border-color: var(--gold-soft);
  background: rgba(201, 162, 39, 0.06);
}
.custom-cursor.visible, .custom-cursor-ring.visible {
  opacity: 1;
}

/* Scroll Progress Thread */
.scroll-thread {
  position: fixed;
  top: 0;
  right: 24px;
  width: 1px;
  height: 100vh;
  background: rgba(201, 162, 39, 0.12);
  z-index: 9999;
  pointer-events: none;
}
.scroll-thread-fill {
  width: 100%;
  height: 100%;
  background: linear-gradient(to bottom, var(--gold-soft), var(--gold));
  transform-origin: top;
  transform: scaleY(0);
  box-shadow: 0 0 6px var(--gold-soft);
}

/* Intro Loader */
.intro-loader {
  position: fixed;
  inset: 0;
  background: #19120b; /* Palm-leaf ink-dark background */
  z-index: 1000000;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 800ms var(--ease), visibility 800ms;
}
.intro-loader.hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}
.intro-logo-container {
  position: relative;
  width: 160px;
  height: 160px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.intro-om {
  width: 110px;
  height: 110px;
}
.intro-om path {
  stroke-dasharray: 600;
  stroke-dashoffset: 600;
  animation: drawStroke 2s cubic-bezier(0.4, 0, 0.2, 1) forwards;
  filter: drop-shadow(0 0 8px rgba(201, 162, 39, 0.65));
}
.intro-om .om-dot {
  opacity: 0;
  animation: fadeInDot 0.6s ease 1.5s forwards;
}
@keyframes drawStroke {
  to { stroke-dashoffset: 0; }
}
@keyframes fadeInDot {
  to { opacity: 1; }
}

/* Shloka Band Animated Rules & Atmosphere */
.shloka-band::before, .shloka-band::after {
  transform: scaleX(0);
  transform-origin: center;
  transition: transform 1.6s var(--ease);
}
.shloka-band.active::before, .shloka-band.active::after {
  transform: scaleX(1);
}
.shloka-ambient {
  position: absolute;
  inset: 0;
  opacity: 0.2;
  mix-blend-mode: multiply;
  pointer-events: none;
  z-index: 0;
}
.shloka-ambient video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.shloka-card {
  position: relative;
  z-index: 1;
}

/* 3D Features Grid */
.features-grid {
  perspective: 1200px;
}
.feature-card {
  transform-style: preserve-3d;
  will-change: transform;
}
.feature-card::after {
  transition: opacity 400ms var(--ease), transform 400ms var(--ease);
  transform: rotate(90deg) scale(0.9);
}
.feature-card:hover::after {
  opacity: 0.85;
  transform: rotate(90deg) scale(1.05);
}
.feature-icon svg path, 
.feature-icon svg rect, 
.feature-icon svg circle, 
.feature-icon svg polyline, 
.feature-icon svg line {
  stroke-dasharray: 120;
  stroke-dashoffset: 120;
  transition: stroke-dashoffset 1.4s var(--ease);
}
.feature-card.drawn .feature-icon svg path,
.feature-card.drawn .feature-icon svg rect,
.feature-card.drawn .feature-icon svg circle,
.feature-card.drawn .feature-icon svg polyline,
.feature-card.drawn .feature-icon svg line {
  stroke-dashoffset: 0;
}

/* Scripture Lists */
.scripture-book {
  position: relative;
  border-bottom: 0;
}
.scripture-book::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 1px;
  background: rgba(201, 162, 39, 0.25);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 1.2s var(--ease);
}
.scripture-book.drawn::after {
  transform: scaleX(1);
}

/* Wallpaper horizontal strip */
.darshan-strip {
  perspective: 1000px;
  overflow-y: hidden;
}
.darshan-card {
  transform-style: preserve-3d;
  will-change: transform;
  transition: transform 0.15s ease-out;
}

/* Lightbox Modal */
.lightbox-modal {
  position: fixed;
  inset: 0;
  background: rgba(25, 18, 11, 0.94);
  z-index: 100000;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 400ms var(--ease), visibility 400ms;
}
.lightbox-modal.open {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}
.lightbox-close {
  position: absolute;
  top: 24px;
  right: 32px;
  background: transparent;
  border: 0;
  color: var(--gold-soft);
  font-size: 3rem;
  line-height: 1;
  cursor: pointer;
  transition: color 200ms var(--ease), transform 200ms var(--ease);
  z-index: 100001;
}
.lightbox-close:hover {
  color: var(--gold);
  transform: scale(1.1);
}
.lightbox-content {
  width: 90%;
  max-width: 480px;
  aspect-ratio: 9 / 16;
  border-radius: var(--r-lg);
  overflow: hidden;
  box-shadow: 0 24px 64px rgba(0,0,0,0.5), 0 0 0 1px rgba(201,162,39,0.3);
  transform: scale(0.95);
  transition: transform 450ms var(--ease);
}
.lightbox-modal.open .lightbox-content {
  transform: scale(1);
}
.lightbox-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform-origin: center;
}
.lightbox-modal.open .lightbox-img {
  animation: kenBurns 12s linear infinite;
}
@keyframes kenBurns {
  0% { transform: scale(1.02); }
  50% { transform: scale(1.1); }
  100% { transform: scale(1.02); }
}

/* Panchang Card with Floating Particles & Ambient video */
.panchang-card {
  position: relative;
  z-index: 1;
}
.panchang-particles {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 0;
}
.panchang-date, .panchang-title, .panchang-rows {
  position: relative;
  z-index: 2;
}
.panchang-ambient {
  position: absolute;
  bottom: 14px;
  right: 14px;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  overflow: hidden;
  opacity: 0.85;
  mix-blend-mode: screen;
  border: 1px solid rgba(201, 162, 39, 0.25);
  z-index: 1;
  pointer-events: none;
}
.panchang-ambient video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Japa mala Stats Counter */
.japa-counter-stats {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 28px;
  margin-top: 24px;
  padding: 12px 32px;
  background: rgba(201, 162, 39, 0.08);
  border: 1px dashed rgba(201, 162, 39, 0.32);
  border-radius: var(--r-md);
  z-index: 5;
  box-shadow: inset 0 0 12px rgba(201, 162, 39, 0.04);
}
.japa-stat {
  display: flex;
  flex-direction: column;
  align-items: center;
}
.japa-stat-num {
  font-family: var(--font-display);
  font-size: 1.85rem;
  font-weight: 500;
  color: var(--maroon);
  line-height: 1.1;
}
.japa-stat-label {
  font-size: 0.68rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-mute);
  margin-top: 2px;
}
.japa-stat-divider {
  font-family: var(--font-display);
  font-size: 1.85rem;
  color: rgba(201, 162, 39, 0.35);
}

/* Phone screen focus effects */
.ss-shelf {
  perspective: 1000px;
}
.ss-phone {
  transition: transform 450ms var(--ease), opacity 450ms var(--ease), filter 450ms var(--ease);
  cursor: pointer;
  will-change: transform, opacity;
}
.ss-shelf:hover .ss-phone {
  opacity: 0.55;
  filter: blur(1px) grayscale(20%);
}
.ss-shelf .ss-phone:hover {
  opacity: 1;
  filter: none;
  transform: translateY(-8px) scale(1.06) rotate(0deg) !important;
  z-index: 10;
}

/* Download smoke video background */
.download-ambient {
  position: absolute;
  inset: 0;
  opacity: 0.28;
  mix-blend-mode: screen;
  pointer-events: none;
  z-index: 0;
}
.download-ambient video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.download .container {
  position: relative;
  z-index: 1;
}

/* Shloka letter animations */
.char {
  display: inline-block;
  opacity: 0;
  transform: translateY(0.12em);
  will-change: transform, opacity;
}

