:root {
  --bg: #07101f;
  --bg-2: #0b1730;
  --surface: rgba(12, 19, 38, .72);
  --surface-strong: rgba(10, 16, 30, .90);
  --card: rgba(18, 28, 50, .72);
  --text: #eef4ff;
  --muted: #c4d0e8;
  --line: rgba(255,255,255,.10);
  --line-strong: rgba(255,212,106,.24);
  --primary: #ffcf61;
  --secondary: #85cbff;
  --accent: #8b71ff;
  --shadow: 0 28px 80px rgba(0,0,0,.34);
  --radius: 28px;
  --container: 1280px;
}
html[data-theme="light"] {
  --bg: #f5efe8;
  --bg-2: #ffffff;
  --surface: rgba(255,255,255,.74);
  --surface-strong: rgba(255,255,255,.92);
  --card: rgba(255,255,255,.72);
  --text: #1b2436;
  --muted: #5b6476;
  --line: rgba(22,27,39,.10);
  --line-strong: rgba(206, 142, 0, .28);
  --primary: #cf8c00;
  --secondary: #1e82cf;
  --accent: #6e5aff;
  --shadow: 0 24px 60px rgba(94,79,40,.14);
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  min-height: 100vh;
  font-family: "Inter", "Noto Sans Devanagari", sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at 12% 12%, rgba(255,207,97,.14), transparent 24%),
    radial-gradient(circle at 88% 14%, rgba(133,203,255,.14), transparent 28%),
    radial-gradient(circle at 50% 100%, rgba(139,113,255,.13), transparent 32%),
    linear-gradient(180deg, var(--bg), var(--bg-2));
  overflow-x: hidden;
}
body::before {
  content: ""; position: fixed; inset: 0; pointer-events: none; z-index: -2;
  background: linear-gradient(transparent, rgba(255,255,255,.02));
}
.site-noise {
  position: fixed; inset: 0; pointer-events: none; z-index: -1; opacity: .08;
  background-image: radial-gradient(circle at 20% 20%, rgba(255,255,255,.4) 0 1px, transparent 1px), radial-gradient(circle at 70% 40%, rgba(255,255,255,.35) 0 1px, transparent 1px);
  background-size: 180px 180px, 220px 220px;
}
.cursor-aura {
  position: fixed; width: 220px; height: 220px; border-radius: 50%; pointer-events: none; z-index: 6;
  background: radial-gradient(circle, rgba(255,207,97,.13), rgba(133,203,255,.05), transparent 68%);
  filter: blur(18px); transform: translate(-50%, -50%); opacity: 0; transition: opacity .25s ease;
}
#particleCanvas { position: fixed; inset: 0; pointer-events: none; z-index: 0; opacity: .72; }
a { color: inherit; text-decoration: none; }
button, input { font: inherit; }
img, video { display: block; max-width: 100%; }
.container { width: min(var(--container), calc(100% - 2rem)); margin-inline: auto; }
.skip-link { position: absolute; left: -999px; top: 0; }
.skip-link:focus { left: 1rem; top: 1rem; background: #fff; color: #000; padding: .85rem 1rem; z-index: 999; border-radius: 12px; }
.glass {
  background: linear-gradient(180deg, rgba(255,255,255,.07), rgba(255,255,255,.03));
  background-color: var(--surface);
  backdrop-filter: blur(18px);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}
.preloader {
  position: fixed; inset: 0; z-index: 400; display: grid; place-items: center; gap: 1rem;
  background: radial-gradient(circle at center, rgba(255,207,97,.12), transparent 35%), linear-gradient(180deg, #06101d, #0b1730);
  transition: opacity .8s ease, visibility .8s ease;
}
.preloader.is-hidden { opacity: 0; visibility: hidden; }
.preloader img { width: 92px; height: 92px; position: relative; z-index: 2; }
.preloader p { margin: 0; color: var(--muted); letter-spacing: .08em; }
.preloader__orb {
  position: absolute; width: 150px; height: 150px; border-radius: 50%;
  background: radial-gradient(circle, rgba(255,207,97,.45), rgba(133,203,255,.12), transparent 70%);
  animation: pulseGlow 2.6s ease-in-out infinite;
}
.site-header {
  position: sticky; top: 0; z-index: 120;
  background: linear-gradient(180deg, rgba(5,10,18,.82), rgba(5,10,18,.58));
  border-bottom: 1px solid rgba(255,255,255,.06);
  backdrop-filter: blur(18px);
}
html[data-theme="light"] .site-header { background: linear-gradient(180deg, rgba(255,255,255,.82), rgba(255,255,255,.60)); }
.nav-shell {
  min-height: 84px; display: flex; align-items: center; gap: 1rem; justify-content: space-between;
}
.brand { display: flex; gap: .9rem; align-items: center; min-width: 0; }
.brand img { width: 54px; height: 54px; border-radius: 18px; box-shadow: 0 10px 24px rgba(0,0,0,.20); }
.brand__copy { display: grid; }
.brand__copy strong { font-size: 1.45rem; font-weight: 800; letter-spacing: .01em; }
.brand__copy small { color: var(--muted); font-size: .92rem; }
.desktop-nav {
  display: flex; align-items: center; gap: .3rem; padding: .35rem; border: 1px solid var(--line); border-radius: 999px;
  background: rgba(255,255,255,.03);
}
.desktop-nav a, .mobile-nav a {
  padding: .78rem 1rem; border-radius: 999px; color: var(--muted); font-weight: 600; transition: .28s ease;
}
.desktop-nav a:hover, .desktop-nav a.is-active, .mobile-nav a:hover { color: var(--text); background: rgba(255,255,255,.08); }
.nav-actions { display: flex; align-items: center; gap: .55rem; }
.search-chip {
  min-width: 170px; max-width: 220px; height: 44px; display: flex; align-items: center; gap: .6rem;
  padding: 0 .9rem; border: 1px solid var(--line); border-radius: 999px; background: rgba(255,255,255,.04);
}
.search-chip input { width: 100%; border: 0; outline: 0; background: transparent; color: var(--text); }
.search-chip input::placeholder { color: var(--muted); }
.search-chip svg, .icon-chip svg { width: 18px; height: 18px; stroke: currentColor; fill: none; stroke-width: 2; }
.icon-chip, .lang-chip {
  height: 44px; border-radius: 999px; border: 1px solid var(--line); background: rgba(255,255,255,.04); color: var(--text);
  display: inline-flex; align-items: center; gap: .5rem; padding: 0 .95rem; cursor: pointer; transition: .25s ease;
}
.icon-chip:hover, .lang-chip:hover, .menu-toggle:hover { transform: translateY(-1px); box-shadow: 0 12px 30px rgba(0,0,0,.16); }
.lang-chip__bubble {
  width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center;
  background: linear-gradient(135deg, var(--primary), #ffe7a8); color: #14161b; font-weight: 800;
}
.menu-toggle {
  width: 46px; height: 46px; display: none; align-items: center; justify-content: center; flex-direction: column; gap: 5px;
  border: 1px solid var(--line); border-radius: 16px; background: rgba(255,255,255,.04); cursor: pointer;
}
.menu-toggle span { width: 18px; height: 2px; border-radius: 3px; background: var(--text); transition: .25s ease; }
.mobile-nav { display: none; flex-direction: column; padding: 0 1rem 1rem; }
.mobile-nav.open { display: flex; }
.hero {
  position: relative; min-height: 100vh; display: grid; align-items: center; overflow: hidden;
}
.hero__backdrop, .hero__wash { position: absolute; inset: 0; }
.hero__backdrop img {
  width: 100%; height: 100%; object-fit: cover; object-position: center;
  transform: scale(1.05); animation: slowZoom 18s ease-in-out infinite alternate;
}
.hero__wash {
  background:
    linear-gradient(90deg, rgba(7,16,31,.90) 0%, rgba(7,16,31,.64) 42%, rgba(7,16,31,.76) 100%),
    linear-gradient(180deg, rgba(7,16,31,.30) 0%, rgba(7,16,31,.08) 24%, rgba(7,16,31,.88) 100%);
}
html[data-theme="light"] .hero__wash {
  background:
    linear-gradient(90deg, rgba(248,242,235,.92) 0%, rgba(248,242,235,.60) 42%, rgba(248,242,235,.78) 100%),
    linear-gradient(180deg, rgba(248,242,235,.34) 0%, rgba(248,242,235,.10) 24%, rgba(248,242,235,.92) 100%);
}
.hero__grid {
  position: relative; z-index: 3; display: grid; grid-template-columns: 1.14fr .72fr; gap: 2rem; align-items: center; padding: 6.9rem 0 4.2rem;
}
.eyebrow, .section-kicker {
  display: inline-flex; align-items: center; gap: .8rem; text-transform: uppercase; letter-spacing: .12em; font-size: .84rem; font-weight: 800; color: var(--primary);
}
.eyebrow span, .section-kicker span { width: 56px; height: 1px; background: linear-gradient(90deg, transparent, var(--primary)); }
.section-kicker--center { justify-content: center; }
.hero__copy h1 {
  margin: 1rem 0 1rem; display: grid; gap: .18rem;
  font-size: clamp(2.8rem, 6vw, 5.5rem); line-height: 1.04;
  font-family: "Noto Serif Devanagari", serif;
}
.hero__copy h1 em { font-style: normal; color: var(--primary); text-shadow: 0 0 32px rgba(255,207,97,.20); }
.hero__copy p { max-width: 770px; color: var(--muted); line-height: 1.88; font-size: 1.07rem; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 1rem; margin: 1.8rem 0 1.7rem; }
.button {
  min-height: 54px; padding: 0 1.35rem; display: inline-flex; align-items: center; justify-content: center;
  border-radius: 999px; font-weight: 700; transition: transform .28s ease, box-shadow .28s ease, background .28s ease;
}
.button:hover { transform: translateY(-2px); }
.button--primary { background: linear-gradient(135deg, var(--primary), #ffe7a5); color: #141414; box-shadow: 0 16px 36px rgba(255,207,97,.24); }
.button--ghost { border: 1px solid var(--line); background: rgba(255,255,255,.05); color: var(--text); }
.hero__quick-grid { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 1rem; }
.quick-card {
  position: relative; padding: 1rem 1.05rem; border-radius: 22px; display: flex; gap: .9rem; align-items: center; overflow: hidden;
}
.quick-card::before {
  content: ""; position: absolute; inset: 0; background: linear-gradient(135deg, rgba(255,207,97,.10), transparent 50%, rgba(133,203,255,.08)); opacity: .85; pointer-events: none;
}
.quick-card i { font-style: normal; width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; background: rgba(255,255,255,.08); color: var(--primary); }
.quick-card strong { display: block; margin-bottom: .18rem; }
.quick-card small { color: var(--muted); }
.hero__poem-card {
  position: relative; padding: 1.8rem; border-radius: 28px; overflow: hidden; transform-style: preserve-3d;
}
.hero__poem-card::before {
  content: ""; position: absolute; inset: 0; background: linear-gradient(160deg, rgba(255,207,97,.10), transparent 55%, rgba(133,203,255,.08)); pointer-events: none;
}
.poem-card__header { display: flex; justify-content: space-between; gap: 1rem; align-items: flex-start; }
.poem-card__header small { color: var(--muted); display: block; margin-bottom: .3rem; }
.poem-card__header h2 { margin: 0; font-size: 2rem; line-height: 1.16; }
.quote-mark { font-size: 3.5rem; color: rgba(255,207,97,.42); line-height: 1; }
.poem-card__snippet { margin-top: .9rem; color: var(--text); line-height: 1.9; max-height: 270px; overflow: hidden; position: relative; }
.poem-card__snippet::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 70px; background: linear-gradient(180deg, transparent, rgba(12,19,38,.92));
}
html[data-theme="light"] .poem-card__snippet::after { background: linear-gradient(180deg, transparent, rgba(255,255,255,.92)); }
.text-arrow { display: inline-flex; align-items: center; gap: .45rem; margin-top: 1rem; color: var(--primary); font-weight: 700; }
.text-arrow::after { content: "→"; transform: translateX(0); transition: .2s ease; }
.text-arrow:hover::after { transform: translateX(4px); }
.poem-card__glow {
  position: absolute; inset: auto -40px -40px auto; width: 180px; height: 180px; border-radius: 50%;
  background: radial-gradient(circle, rgba(255,207,97,.20), transparent 68%); pointer-events: none;
}
.floating-orb, .floating-feather {
  position: absolute; z-index: 2; pointer-events: none;
}
.floating-orb {
  width: 320px; height: 320px; border-radius: 50%; filter: blur(24px); opacity: .38; animation: drift 12s ease-in-out infinite;
}
.floating-orb--one { left: -80px; top: 14%; background: radial-gradient(circle, rgba(255,207,97,.42), transparent 65%); }
.floating-orb--two { right: -100px; bottom: 8%; background: radial-gradient(circle, rgba(133,203,255,.26), transparent 65%); animation-delay: 2.4s; }
.floating-feather { font-size: 3rem; color: rgba(255,207,97,.40); animation: float 8s ease-in-out infinite; }
.feather-one { left: 8%; bottom: 26%; }
.feather-two { right: 18%; top: 20%; animation-delay: 2s; }
.scroll-cue {
  position: absolute; left: 50%; bottom: 24px; transform: translateX(-50%); z-index: 3;
  width: 38px; height: 58px; border-radius: 999px; border: 1px solid rgba(255,255,255,.26); display: grid; place-items: center;
}
.scroll-cue span { width: 8px; height: 8px; border-radius: 50%; background: var(--primary); animation: scrollDot 2s infinite; }
.section { position: relative; padding: 6rem 0; z-index: 1; }
.about__grid, .poem__grid, .devotion__grid, .contact__grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: 2.1rem; align-items: center;
}
.about__left h2, .section-heading h2, .poem__content h2, .devotion__copy h2, .contact__copy h2 {
  margin: .9rem 0 1rem; font-size: clamp(2.1rem, 4.2vw, 3.6rem); line-height: 1.12;
}
.about__left p, .section-heading p, .devotion__copy p, .contact__copy p { color: var(--muted); line-height: 1.9; }
.about__points { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 1rem; margin-top: 1.6rem; }
.point-card { padding: 1.15rem; border-radius: 22px; }
.point-card h3 { margin: 0 0 .45rem; font-size: 1.05rem; }
.point-card p { margin: 0; font-size: .95rem; }
.about__right { position: relative; min-height: 620px; }
.showcase-card {
  border-radius: 30px; overflow: hidden; box-shadow: var(--shadow); border: 1px solid var(--line);
}
.showcase-card img { width: 100%; height: 100%; object-fit: cover; }
.showcase-card--large { min-height: 600px; }
.showcase-card--floating {
  position: absolute; left: -8%; bottom: 8%; width: min(360px, 90%); padding: 1rem 1.1rem; display: flex; gap: 1rem; align-items: center;
}
.showcase-card--floating img { width: 56px; height: 56px; border-radius: 16px; }
.showcase-card--floating p { margin: .35rem 0 0; color: var(--muted); }
.section-heading { text-align: center; max-width: 920px; margin: 0 auto 2.4rem; }
.feature-card-grid {
  display: grid; grid-template-columns: repeat(4, minmax(0,1fr)); gap: 1.2rem;
}
.feature-card {
  position: relative; border-radius: 28px; overflow: hidden; background: linear-gradient(180deg, rgba(255,255,255,.05), rgba(255,255,255,.03));
  border: 1px solid var(--line); box-shadow: var(--shadow); transition: transform .34s ease, box-shadow .34s ease, border-color .34s ease;
  transform-style: preserve-3d;
}
.feature-card:hover { transform: translateY(-8px); border-color: var(--line-strong); box-shadow: 0 34px 90px rgba(0,0,0,.34), 0 0 0 1px rgba(255,207,97,.10), 0 0 70px rgba(255,207,97,.10); }
.feature-card::after {
  content: ""; position: absolute; inset: 0; background: linear-gradient(110deg, transparent 20%, rgba(255,255,255,.10) 50%, transparent 80%); transform: translateX(-120%); transition: .7s ease;
}
.feature-card:hover::after { transform: translateX(120%); }
.feature-card__img { aspect-ratio: 4 / 3; overflow: hidden; }
.feature-card__img img { width: 100%; height: 100%; object-fit: cover; transition: transform .7s ease; }
.feature-card:hover .feature-card__img img { transform: scale(1.08); }
.feature-card__body { padding: 1.15rem 1.15rem 1.35rem; }
.feature-card__body span { display: inline-block; margin-bottom: .55rem; color: var(--primary); font-weight: 700; }
.feature-card__body h3 { margin: 0 0 .55rem; font-size: 1.18rem; }
.feature-card__body p { margin: 0; color: var(--muted); line-height: 1.75; }
.poem__visual { position: relative; }
.poem__visual img { width: 100%; min-height: 760px; object-fit: cover; border-radius: 30px; box-shadow: var(--shadow); }
.poem__visual-meta {
  position: absolute; left: 1.2rem; right: 1.2rem; bottom: 1.2rem; padding: 1rem 1.1rem; border-radius: 22px;
}
.poem__visual-meta span { display: block; margin-bottom: .55rem; color: var(--primary); font-weight: 700; }
.poem__visual-meta div { display: flex; gap: .6rem; flex-wrap: wrap; }
.poem__visual-meta i {
  font-style: normal; padding: .52rem .76rem; border-radius: 999px; border: 1px solid var(--line); background: rgba(255,255,255,.06);
}
.poem__content { padding: 1.6rem; border-radius: 30px; }
.poem__topline { display: flex; justify-content: space-between; gap: 1rem; align-items: center; flex-wrap: wrap; }
.poem__tools { display: flex; gap: .75rem; flex-wrap: wrap; }
.poem__tools button {
  min-height: 40px; padding: 0 1rem; border-radius: 999px; border: 1px solid var(--line); background: rgba(255,255,255,.05); color: var(--text); cursor: pointer;
}
.poem-text {
  font-family: "Noto Serif Devanagari", serif; font-size: clamp(1.08rem, 1vw + 1rem, 1.34rem); line-height: 2.06; color: var(--text);
}
.poem-text p { margin: 0 0 1.4rem; }
.poem-signature { margin-top: 1rem; color: var(--primary); font-weight: 800; letter-spacing: .04em; }
.audio-banner {
  display: flex; justify-content: space-between; gap: 1.2rem; align-items: center; padding: 1.2rem 1.4rem; border-radius: 24px; margin-bottom: 1.4rem;
}
.audio-banner strong { display: block; margin-bottom: .4rem; }
.audio-banner p { margin: 0; color: var(--muted); }
.audio-banner audio { width: min(440px, 100%); }
.video-grid { display: grid; grid-template-columns: 1fr 1fr 0.9fr; gap: 1.2rem; align-items: start; }
.video-card { padding: 1rem; border-radius: 28px; }
.video-card video { width: 100%; border-radius: 24px; background: #000; border: 1px solid var(--line); box-shadow: inset 0 0 0 1px rgba(255,255,255,.03); }
.video-card__body { padding: 1rem .2rem .1rem; }
.video-card__body h3 { margin: 0 0 .4rem; font-size: 1.28rem; }
.video-card__body p { margin: 0; color: var(--muted); line-height: 1.72; }
.video-card--vertical video { max-height: 660px; object-fit: cover; }
.devotion__copy p { margin-bottom: 1.2rem; }
.devotion-list { list-style: none; padding: 0; margin: 0; display: grid; gap: .7rem; }
.devotion-list li { position: relative; padding-left: 1.35rem; color: var(--muted); }
.devotion-list li::before { content: "✦"; position: absolute; left: 0; color: var(--primary); }
.devotion__art { position: relative; }
.devotion__art img { width: 100%; min-height: 680px; object-fit: cover; border-radius: 30px; box-shadow: var(--shadow); }
.devotion__art-glow {
  position: absolute; inset: auto 10% -6% 10%; height: 130px; background: radial-gradient(circle, rgba(255,207,97,.35), transparent 70%); filter: blur(18px); pointer-events: none;
}
.contact__panel { padding: 1.4rem 1.5rem; border-radius: 28px; }
.contact__panel h3 { margin-top: 0; }
.contact__panel ul { margin: 0; padding-left: 1.1rem; color: var(--muted); line-height: 1.95; }
.site-footer { border-top: 1px solid var(--line); padding: 1.7rem 0 2.2rem; background: rgba(0,0,0,.08); }
.footer__wrap { display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.footer__wrap p { margin: .32rem 0 0; color: var(--muted); }
.footer__nav { display: flex; gap: 1rem; flex-wrap: wrap; }
.footer__nav a { color: var(--muted); }
.toast {
  position: fixed; left: 50%; bottom: 22px; transform: translate(-50%, 150%); z-index: 300;
  padding: .85rem 1rem; background: var(--surface-strong); color: var(--text); border-radius: 999px; border: 1px solid var(--line); box-shadow: var(--shadow); transition: .35s ease;
}
.toast.show { transform: translate(-50%, 0); }
.reveal { opacity: 0; transform: translateY(32px); transition: opacity .8s ease, transform .8s ease; }
.reveal.in-view { opacity: 1; transform: none; }
.reveal--delay { transition-delay: .12s; }
.reveal--delay-2 { transition-delay: .24s; }
.reveal--delay-3 { transition-delay: .36s; }
body.reading-focus .site-header,
body.reading-focus .section:not(.poem-section),
body.reading-focus .site-footer { filter: blur(4px) saturate(.8); opacity: .18; pointer-events: none; }
body.reading-focus .poem__content { position: relative; z-index: 80; box-shadow: 0 36px 100px rgba(0,0,0,.44), 0 0 0 1px rgba(255,207,97,.12); }
[data-tilt] { will-change: transform; }
@keyframes slowZoom { from { transform: scale(1.04); } to { transform: scale(1.11); } }
@keyframes drift { 0%,100% { transform: translate(0,0); } 50% { transform: translate(28px,-18px); } }
@keyframes float { 0%,100% { transform: translateY(0) rotate(0deg); } 50% { transform: translateY(-12px) rotate(8deg); } }
@keyframes pulseGlow { 0%,100% { transform: scale(.92); opacity: .55; } 50% { transform: scale(1.12); opacity: .95; } }
@keyframes scrollDot { 0% { transform: translateY(-12px); opacity: 0; } 30% { opacity: 1; } 100% { transform: translateY(10px); opacity: 0; } }
@media (max-width: 1180px) {
  .desktop-nav, .search-chip { display: none; }
  .menu-toggle { display: inline-flex; }
  .hero__grid, .about__grid, .poem__grid, .devotion__grid, .contact__grid, .video-grid, .feature-card-grid, .about__points { grid-template-columns: 1fr; }
  .showcase-card--floating { position: relative; left: auto; bottom: auto; width: 100%; margin-top: 1rem; }
  .about__right { min-height: auto; }
  .audio-banner { flex-direction: column; align-items: flex-start; }
  .video-card--vertical video { max-height: 520px; }
}
@media (max-width: 860px) {
  .hero { min-height: auto; }
  .hero__grid { padding: 6rem 0 4rem; }
  .hero__copy h1 { font-size: clamp(2.4rem, 10vw, 4rem); }
  .hero__quick-grid { grid-template-columns: 1fr; }
  .poem__visual img, .devotion__art img, .showcase-card--large { min-height: 420px; }
  .footer__wrap { flex-direction: column; align-items: flex-start; }
}
@media (max-width: 640px) {
  .nav-shell { min-height: 78px; }
  .brand__copy small { display: none; }
  .hero__actions, .poem__topline, .poem__tools { flex-direction: column; align-items: stretch; }
  .button, .poem__tools button { width: 100%; }
  .hero__poem-card, .poem__content, .video-card, .contact__panel { padding: 1.1rem; }
  .feature-card__body, .quick-card { padding: 1rem; }
}
