/* ──────────────────────────────────────────────────────────────
   VedicGate — devotional editorial.
   Cream paper, saffron ink, slate type, hairline rules.
   ────────────────────────────────────────────────────────────── */

:root {
  --saffron:        #F07A3D;
  --saffron-deep:   #D8602A;
  --honey:          #F6DAA6;
  --cream:          #FBF6EE;
  --cream-2:        #F5EDDF;
  --paper:          #FFFCF6;
  --ink:            #110726;
  --ink-soft:       #2B1B45;
  --slate:          #758BBF;
  --slate-soft:     #B6C2DE;
  --card:           #F2F7FF;
  --rule:           rgba(17, 7, 38, 0.12);
  --rule-strong:    rgba(17, 7, 38, 0.28);

  --serif:    "Playfair Display", "EB Garamond", Georgia, serif;
  --sans:     "Nunito", -apple-system, BlinkMacSystemFont, sans-serif;
  --dev:      "Noto Serif Devanagari", "Playfair Display", serif;

  --container: 1240px;
  --radius: 22px;
  --radius-sm: 12px;

  --ease: cubic-bezier(.2,.7,.2,1);
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

body {
  font-family: var(--sans);
  font-weight: 400;
  color: var(--ink);
  background: var(--cream);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  font-feature-settings: "kern", "liga", "calt";
  line-height: 1.55;
  overflow-x: hidden;
}

a { color: inherit; text-decoration: none; }
img, svg { display: block; max-width: 100%; }
button { font: inherit; cursor: pointer; }

/* paper grain — sits *behind* content, very subtle */
.grain {
  position: fixed; inset: 0; pointer-events: none; z-index: 0;
  opacity: .12;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='220' height='220'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 0.55  0 0 0 0 0.45  0 0 0 0 0.30  0 0 0 0.5 0'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
}

.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 32px;
  position: relative;
  z-index: 2;
}

/* Anything that paints a background should sit above the grain layer */
.nav, .hero, .section, .footer { position: relative; z-index: 1; }

/* ─── Typography ─── */
.eyebrow {
  font-family: var(--sans);
  font-size: 12px;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--slate);
  font-weight: 600;
  margin: 0 0 28px;
  display: inline-flex;
  align-items: center;
  gap: 10px;
}
.eyebrow-mark { color: var(--saffron); font-size: 16px; }

.section-kicker {
  display: inline-block;
  font-family: var(--serif);
  font-style: italic;
  font-weight: 400;
  color: var(--saffron-deep);
  font-size: 16px;
  letter-spacing: .02em;
  margin-bottom: 18px;
}
.section-kicker-light { color: var(--honey); }

.section-title {
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(34px, 4.4vw, 60px);
  line-height: 1.05;
  letter-spacing: -0.01em;
  color: var(--ink);
  margin: 0 0 24px;
}
.section-title em {
  font-style: italic;
  color: var(--saffron-deep);
}
.section-lede {
  font-size: 18px;
  color: var(--ink-soft);
  max-width: 60ch;
  margin: 0 0 28px;
  line-height: 1.6;
}

/* ─── Buttons ─── */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 12px 20px;
  border-radius: 999px;
  font-family: var(--sans);
  font-weight: 600; font-size: 14px;
  letter-spacing: .02em;
  border: 1px solid transparent;
  transition: transform .35s var(--ease), background .25s var(--ease), color .25s var(--ease), border-color .25s var(--ease);
  white-space: nowrap;
}
.btn-lg { padding: 16px 26px; font-size: 15px; border-radius: 999px; }
.btn-primary { background: var(--ink); color: var(--paper); }
.btn-primary:hover { background: var(--saffron-deep); transform: translateY(-1px); }
.btn-ghost {
  background: transparent; color: var(--ink);
  border-color: var(--rule-strong);
}
.btn-ghost:hover { border-color: var(--ink); background: rgba(17,7,38,.04); }
.btn-cream {
  background: var(--cream); color: var(--ink); border-color: transparent;
  padding: 14px 22px;
}
.btn-cream:hover { background: var(--paper); transform: translateY(-1px); }
.btn-outline-light {
  background: transparent; color: var(--cream);
  border-color: rgba(251,246,238,.35);
  padding: 14px 22px;
}
.btn-outline-light:hover { border-color: var(--cream); background: rgba(251,246,238,.06); }
.btn-cream span, .btn-outline-light span {
  display: flex; flex-direction: column; align-items: flex-start; line-height: 1.1; gap: 3px;
}
.btn-cream small, .btn-outline-light small {
  font-size: 10px; letter-spacing: .18em; text-transform: uppercase; opacity: .65; font-weight: 600;
}
.btn-cream strong, .btn-outline-light strong {
  font-family: var(--serif); font-weight: 600; font-size: 17px; letter-spacing: -.005em;
}

/* ─── Nav ─── */
.nav {
  display: flex; align-items: center; justify-content: space-between;
  padding-top: 26px; padding-bottom: 26px;
  position: sticky; top: 0; z-index: 50;
  background: linear-gradient(to bottom, var(--cream) 60%, rgba(251,246,238,0));
}
.nav-brand { display: inline-flex; align-items: center; gap: 12px; }
.nav-brand img { width: 34px; height: 34px; filter: drop-shadow(0 2px 4px rgba(240,122,61,.3)); }
.nav-brand-text {
  font-family: var(--serif); font-weight: 700; font-size: 22px; letter-spacing: -.01em;
}
.nav-links {
  display: flex; gap: 32px; font-size: 14px; font-weight: 500; color: var(--ink-soft);
}
.nav-links a { position: relative; padding: 4px 0; }
.nav-links a:hover { color: var(--saffron-deep); }
.nav-links a::after {
  content: ""; position: absolute; left: 0; right: 100%; bottom: 0; height: 1px;
  background: var(--saffron); transition: right .35s var(--ease);
}
.nav-links a:hover::after { right: 0; }

/* ─── Hero ─── */
.hero {
  position: relative;
  padding-bottom: 64px;
}
.hero-ribbon {
  margin-top: 10px;
  border-top: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
  background: linear-gradient(90deg, rgba(246,218,166,.4), rgba(251,246,238,.0) 30%, rgba(251,246,238,0) 70%, rgba(246,218,166,.4));
  padding: 14px 0;
  overflow: hidden;
}
.hero-ribbon-track {
  display: inline-flex; align-items: center; gap: 28px;
  white-space: nowrap;
  animation: marquee 60s linear infinite;
  font-family: var(--dev);
  font-size: 20px;
  color: var(--ink-soft);
}
.hero-ribbon-track .dot { color: var(--saffron); font-size: 12px; }
@keyframes marquee {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: 56px;
  padding-top: 80px;
  align-items: center;
}
.hero-copy { max-width: 620px; }
.hero-headline {
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(48px, 7.4vw, 104px);
  line-height: 0.98;
  letter-spacing: -0.025em;
  margin: 0 0 32px;
  color: var(--ink);
}
.hero-headline em {
  font-style: italic;
  color: var(--saffron-deep);
  font-weight: 500;
}
.hero-amp {
  font-family: var(--serif); font-style: italic;
  color: var(--saffron); font-weight: 400;
  font-size: 1.1em;
  padding-right: 6px;
}
.hero-lede {
  font-size: 19px; line-height: 1.6; color: var(--ink-soft);
  max-width: 52ch; margin: 0 0 36px;
}
.hero-cta-row { display: flex; gap: 14px; flex-wrap: wrap; margin-bottom: 28px; }
.hero-meta {
  font-size: 13px; color: var(--slate); font-weight: 600;
  letter-spacing: .03em;
  display: flex; flex-wrap: wrap; gap: 12px; align-items: center;
  margin: 0;
}
.hero-meta em { font-style: italic; color: var(--saffron-deep); font-weight: 600; }
.hero-meta strong { color: var(--ink); font-weight: 700; }
.hero-meta .sep { color: var(--slate-soft); }

.hero-apk-link {
  color: var(--slate);
  border-bottom: 1px dashed transparent;
  transition: color .25s var(--ease), border-color .25s var(--ease);
}
.hero-apk-link span {
  color: var(--saffron-deep);
  font-weight: 700;
  border-bottom: 1px solid currentColor;
  padding-bottom: 1px;
  margin-left: 4px;
}
.hero-apk-link:hover { color: var(--ink); }
.hero-apk-link:hover span { color: var(--ink); }

/* Hero stage — phone in the arch */
.hero-stage {
  position: relative;
  display: flex; justify-content: center; align-items: center;
  min-height: 580px;
}
.hero-arch {
  position: relative;
  width: 100%; max-width: 460px;
  aspect-ratio: 285 / 526;
  filter: drop-shadow(0 40px 80px rgba(216, 96, 42, .18));
}
.hero-arch-bg {
  position: absolute; inset: 0; width: 100%; height: 100%;
  z-index: 1;
}
.hero-phone {
  position: absolute;
  top: 12%; left: 50%;
  transform: translateX(-50%);
  width: 60%;
  z-index: 2;
  animation: hover 6s ease-in-out infinite;
  filter: drop-shadow(0 20px 30px rgba(17,7,38,.25));
}
@keyframes hover {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50%      { transform: translateX(-50%) translateY(-10px); }
}

.hero-orbit {
  position: absolute; z-index: 3;
  width: 64px; height: 64px;
  background: var(--paper);
  border-radius: 50%;
  padding: 4px;
  box-shadow: 0 14px 30px rgba(17,7,38,.18), inset 0 0 0 1px rgba(117,139,191,.15);
  animation: orbitFloat 7s ease-in-out infinite;
}
.hero-orbit img { width: 100%; height: 100%; border-radius: 50%; object-fit: cover; }
.hero-orbit-1 { top: 6%;  right: -20px; animation-delay: 0s; }
.hero-orbit-2 { bottom: 22%; left: -30px; animation-delay: -2.3s; width: 72px; height: 72px; }
.hero-orbit-3 { bottom: 4%; right: 8%; animation-delay: -4.6s; width: 56px; height: 56px; }
@keyframes orbitFloat {
  0%, 100% { transform: translateY(0) rotate(0); }
  50%      { transform: translateY(-12px) rotate(2deg); }
}

.hero-stats {
  display: grid; grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  margin-top: 56px;
  padding-top: 32px;
  border-top: 1px solid var(--rule);
}
.stat { display: flex; flex-direction: column; gap: 4px; }
.stat-num {
  font-family: var(--serif); font-weight: 500;
  font-size: clamp(28px, 3vw, 44px);
  color: var(--ink); line-height: 1;
}
.stat-label {
  font-size: 12px; letter-spacing: .18em; text-transform: uppercase;
  color: var(--slate); font-weight: 600;
}

/* ─── Sections (generic) ─── */
.section { padding: 110px 0; position: relative; }
.section-head { max-width: 760px; margin-bottom: 64px; }
.section-head-center { margin: 0 auto 64px; text-align: center; }
.section-head-center .section-lede { margin-left: auto; margin-right: auto; }

/* ─── How it works ─── */
.how {
  background:
    radial-gradient(800px 400px at 80% 0%, rgba(246,218,166,.45), transparent 60%),
    var(--cream);
  border-top: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
}
.steps {
  list-style: none; padding: 0; margin: 0;
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 0;
  border-top: 1px solid var(--rule);
}
.step {
  padding: 56px 36px 56px 0;
  border-right: 1px solid var(--rule);
  position: relative;
}
.step:last-child { border-right: none; }
.step:nth-child(n+2) { padding-left: 36px; }
.step-num {
  font-family: var(--serif); font-style: italic; font-weight: 400;
  color: var(--saffron); font-size: 42px; display: block; margin-bottom: 18px;
  line-height: 1;
}
.step-title {
  font-family: var(--serif); font-weight: 600; font-size: 24px;
  margin: 0 0 12px; color: var(--ink);
  letter-spacing: -.01em;
}
.step p { margin: 0; color: var(--ink-soft); font-size: 16px; line-height: 1.6; max-width: 32ch; }

/* ─── Pantheon ─── */
.pantheon { background: var(--paper); }
.pantheon-grid {
  list-style: none; padding: 0; margin: 0;
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 28px;
}
.pantheon-grid figure {
  margin: 0; display: flex; flex-direction: column; align-items: center; gap: 16px;
  padding: 28px 12px 24px;
  background:
    radial-gradient(120px 80px at 50% 100%, rgba(246,218,166,.4), transparent 70%),
    linear-gradient(180deg, rgba(242,247,255,.7), rgba(242,247,255,0));
  border-radius: 999px 999px 18px 18px; /* arched alcove */
  border: 1px solid var(--rule);
  border-bottom: 2px solid var(--rule-strong);
  transition: transform .4s var(--ease), border-color .25s var(--ease), background .35s var(--ease);
  position: relative;
}
.pantheon-grid figure::before {
  content: "";
  position: absolute; top: 12px; left: 12px; right: 12px; height: 1px;
  background: linear-gradient(90deg, transparent, var(--saffron), transparent);
  opacity: .25;
}
.pantheon-grid figure:hover {
  transform: translateY(-6px);
  border-color: var(--saffron);
  background:
    radial-gradient(180px 100px at 50% 100%, rgba(240,122,61,.16), transparent 70%),
    linear-gradient(180deg, rgba(246,218,166,.35), rgba(242,247,255,0));
}
.pantheon-grid img {
  width: 88px; height: 88px; border-radius: 50%; object-fit: cover;
  box-shadow: 0 10px 28px rgba(17,7,38,.22);
  background: var(--ink);
}
.pantheon-grid figcaption {
  font-family: var(--serif); font-weight: 500; font-size: 17px; color: var(--ink);
  letter-spacing: -.005em;
}

/* ─── Showcase ─── */
.showcase {
  background:
    radial-gradient(600px 320px at 8% 92%, rgba(117,139,191,.16), transparent 70%),
    var(--cream);
  border-top: 1px solid var(--rule);
}
.showcase-grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: 80px; align-items: center;
}
.showcase-list { list-style: none; padding: 0; margin: 24px 0 0; }
.showcase-list li {
  padding: 14px 0; border-top: 1px solid var(--rule);
  font-size: 16px; color: var(--ink-soft); display: flex; gap: 12px;
}
.showcase-list li:last-child { border-bottom: 1px solid var(--rule); }
.showcase-list li span { color: var(--saffron); }
.showcase-list em { font-family: var(--serif); font-style: italic; color: var(--ink); font-weight: 500; }

.showcase-mocks {
  position: relative;
  height: 540px;
  display: flex; align-items: center; justify-content: center;
}
.mock {
  position: absolute;
  border-radius: 28px;
  box-shadow: 0 40px 80px rgba(17,7,38,.22), 0 8px 20px rgba(17,7,38,.12);
}
.mock-a {
  width: 260px;
  top: 0; left: 10%;
  transform: rotate(-5deg);
  z-index: 1;
}
.mock-b {
  width: 240px;
  bottom: 0; right: 8%;
  transform: rotate(4deg);
  z-index: 2;
  border: 8px solid #1d1d1f;
}

/* ─── Verse feature card ─── */
.verse-feature { padding: 60px 0 110px; }
.verse-card {
  position: relative;
  max-width: 720px;
  margin: 0 auto;
  padding: 40px 60px 70px;
  background:
    radial-gradient(circle at 50% 18%, rgba(246,218,166,.55), transparent 45%),
    linear-gradient(180deg, var(--paper), var(--cream-2));
  border-radius: 200px 200px 28px 28px;
  border: 1px solid var(--rule);
  text-align: center;
  overflow: hidden;
  box-shadow: 0 30px 60px rgba(17,7,38,.08);
}
.verse-card::before {
  /* subtle inner arched outline that hugs the top dome */
  content: "";
  position: absolute;
  top: 18px; left: 18px; right: 18px; bottom: 18px;
  border: 1px solid rgba(240,122,61,.22);
  border-radius: 186px 186px 18px 18px;
  pointer-events: none;
}
.verse-card > * { position: relative; z-index: 1; }

.verse-ornament {
  display: block;
  font-family: var(--dev);
  font-size: 28px;
  color: var(--saffron);
  margin: 0 auto 14px;
  line-height: 1;
  opacity: .8;
}

.verse-deity {
  width: 168px; height: 168px;
  margin: 0 auto 32px;
  border-radius: 50%;
  overflow: hidden;
  box-shadow:
    0 18px 36px rgba(17,7,38,.22),
    inset 0 0 0 5px rgba(251,246,238,.95),
    0 0 0 6px rgba(240,122,61,.18);
  background: var(--ink);
}
.verse-deity img { width: 100%; height: 100%; object-fit: cover; display: block; }

.verse-cite {
  font-family: var(--sans); font-size: 12px; letter-spacing: .25em; text-transform: uppercase;
  color: var(--slate); font-weight: 700; margin: 0 0 32px;
}
.verse-sanskrit {
  font-family: var(--dev); font-size: clamp(28px, 3.4vw, 44px);
  color: var(--ink); margin: 0 0 14px; line-height: 1.3;
}
.verse-translit {
  font-family: var(--serif); font-style: italic; font-size: 22px; color: var(--saffron-deep);
  margin: 0 0 22px;
}
.verse-meaning {
  font-family: var(--serif); font-size: 24px; color: var(--ink); line-height: 1.4;
  max-width: 50ch; margin: 0 auto 28px;
}
.verse-foot { font-size: 13px; color: var(--slate); margin: 0; letter-spacing: .04em; }

/* ─── Privacy ─── */
.privacy {
  background: var(--paper);
  border-top: 1px solid var(--rule);
}
.privacy-grid {
  display: grid; grid-template-columns: 220px 1fr; gap: 64px; align-items: center;
}
.privacy-badge img { width: 220px; height: auto; filter: drop-shadow(0 20px 40px rgba(117,139,191,.25)); }

/* ─── Download ─── */
.download {
  background: linear-gradient(135deg, #2A0F1A 0%, var(--ink) 50%, #1B0D2E 100%);
  color: var(--cream);
  padding: 120px 0;
}
.download-card {
  display: grid; grid-template-columns: 1.2fr 1fr; gap: 64px; align-items: center;
  position: relative;
  padding: 64px;
  background:
    radial-gradient(700px 300px at 100% 0%, rgba(240,122,61,.2), transparent 70%),
    radial-gradient(500px 300px at 0% 100%, rgba(117,139,191,.18), transparent 70%);
  border: 1px solid rgba(251,246,238,.12);
  border-radius: 28px;
  overflow: hidden;
}
.download-card::before {
  content: "ॐ";
  position: absolute; right: -40px; bottom: -80px;
  font-size: 360px; line-height: 1;
  color: var(--saffron); opacity: .08;
  font-family: var(--dev);
  pointer-events: none;
}
.download-title {
  font-family: var(--serif); font-weight: 500;
  font-size: clamp(32px, 4vw, 52px);
  line-height: 1.05; letter-spacing: -.015em;
  color: var(--cream);
  margin: 0 0 18px;
}
.download-sub { color: rgba(251,246,238,.7); font-size: 17px; max-width: 42ch; margin: 0; }
.download-actions { display: flex; flex-direction: column; gap: 14px; align-items: stretch; }
.download-actions .btn { justify-content: flex-start; }

.download-apk-link {
  display: inline-flex; align-items: center; gap: 4px;
  margin-top: 14px;
  padding: 4px 2px;
  font-size: 13px;
  color: rgba(251,246,238,.55);
  letter-spacing: .02em;
  transition: color .25s var(--ease);
}
.download-apk-link span {
  color: var(--honey);
  font-weight: 700;
  border-bottom: 1px solid currentColor;
  padding-bottom: 1px;
}
.download-apk-link:hover { color: var(--cream); }
.download-apk-link:hover span { color: var(--cream); }

/* ─── Footer ─── */
.footer {
  background: var(--ink);
  color: var(--slate-soft);
  padding: 80px 0 36px;
  font-size: 14px;
}
.footer-grid {
  display: grid; grid-template-columns: 1.2fr 2fr; gap: 64px;
  padding-bottom: 56px;
  border-bottom: 1px solid rgba(251,246,238,.08);
}
.footer-brand img { width: 56px; margin-bottom: 18px; }
.footer-brand p { color: var(--slate-soft); max-width: 36ch; line-height: 1.6; }
.footer-brand strong { color: var(--cream); font-family: var(--serif); font-weight: 600; }
.footer-cols { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; }
.footer-cols h4 {
  font-family: var(--sans); font-size: 12px; letter-spacing: .22em; text-transform: uppercase;
  color: var(--honey); margin: 0 0 16px; font-weight: 700;
}
.footer-cols a {
  display: block; padding: 6px 0; color: rgba(251,246,238,.72);
}
.footer-cols a:hover { color: var(--cream); }
.footer-base {
  display: flex; justify-content: space-between; align-items: center;
  padding-top: 28px; color: rgba(251,246,238,.5); font-size: 12px;
}
.footer-om { font-family: var(--dev); font-size: 28px; color: var(--saffron); margin: 0; }

/* ────────── RESPONSIVE ────────── */
@media (max-width: 1080px) {
  .hero-grid { grid-template-columns: 1fr; gap: 40px; padding-top: 56px; }
  .hero-copy { max-width: 100%; }
  .hero-stage { min-height: 480px; }
  .showcase-grid { grid-template-columns: 1fr; gap: 56px; }
  .download-card { grid-template-columns: 1fr; padding: 48px; }
  .pantheon-grid { grid-template-columns: repeat(4, 1fr); }
}

@media (max-width: 780px) {
  .container { padding: 0 22px; }
  .nav-links { display: none; }
  .hero-stats { grid-template-columns: repeat(2, 1fr); gap: 28px 16px; }
  .section { padding: 80px 0; }
  .steps { grid-template-columns: 1fr; border-top: none; }
  .step { border-right: none; border-bottom: 1px solid var(--rule); padding: 36px 0 !important; }
  .step:last-child { border-bottom: none; }
  .pantheon-grid { grid-template-columns: repeat(3, 1fr); gap: 16px; }
  .pantheon-grid img { width: 64px; height: 64px; }
  .showcase-mocks { height: 460px; }
  .mock-a { width: 200px; left: 0%; }
  .mock-b { width: 200px; right: 0%; }
  .verse-card { padding: 60px 28px 50px; }
  .privacy-grid { grid-template-columns: 1fr; gap: 32px; }
  .privacy-badge img { width: 140px; }
  .footer-grid { grid-template-columns: 1fr; gap: 40px; }
  .footer-cols { grid-template-columns: repeat(2, 1fr); }
  .download-card { padding: 36px 28px; }
  .download-card::before { font-size: 220px; right: -20px; bottom: -50px; }
}

@media (max-width: 480px) {
  .pantheon-grid { grid-template-columns: repeat(2, 1fr); }
  .hero-headline { font-size: 52px; }
  .nav-brand-text { display: none; }
  .footer-cols { grid-template-columns: 1fr; gap: 24px; }
  .footer-base { flex-direction: column; gap: 12px; }
}

/* respect reduced motion */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
