/* Devotion Journal Sidebar — marketing site.
   Vrindavan candlelight: deep indigo night + warm candle gold + parchment.
   Display: Fraunces (characterful serif). Body: Hanken Grotesk. */

:root {
  --night: #0b0d28;
  --night-2: #141743;
  --indigo: #1d2150;
  --gold: #e8b75c;
  --gold-hi: #f3d08a;
  --gold-deep: #c9962f;
  --parchment: #f6efe0;
  --ink: #efe9da;
  --ink-soft: #c4c0dc;
  --ink-faint: #9a96bf;
  --rose: #e3a6b6;
  --serif: "Fraunces", Georgia, serif;
  --sans: "Hanken Grotesk", system-ui, sans-serif;
  --maxw: 1180px;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: var(--sans);
  color: var(--ink);
  background: var(--night);
  min-height: 100vh;
  position: relative;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  line-height: 1.6;
}

/* Atmospheric candlelit background built from layered radial glows + grain. */
.bg {
  position: fixed;
  inset: 0;
  z-index: -2;
  background:
    radial-gradient(900px 700px at 78% -8%, rgba(232,183,92,0.18), transparent 60%),
    radial-gradient(700px 600px at 12% 110%, rgba(99,86,200,0.22), transparent 60%),
    radial-gradient(500px 400px at 50% 50%, rgba(29,33,80,0.5), transparent 70%),
    linear-gradient(180deg, #0b0d28 0%, #0e1030 45%, #090a22 100%);
}
.bg::after {
  /* faint grain */
  content: "";
  position: absolute;
  inset: 0;
  opacity: 0.04;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.8' numOctaves='2'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* Floating diya glows */
.diya {
  position: fixed;
  width: 220px; height: 220px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(243,208,138,0.22), transparent 70%);
  z-index: -1;
  filter: blur(8px);
  animation: float 11s ease-in-out infinite;
}
.diya.d1 { top: 12%; right: 8%; }
.diya.d2 { bottom: 6%; left: 4%; width: 300px; height: 300px; animation-delay: -4s; background: radial-gradient(circle, rgba(140,120,230,0.18), transparent 70%); }
@keyframes float {
  0%,100% { transform: translateY(0) scale(1); opacity: 0.8; }
  50% { transform: translateY(-22px) scale(1.06); opacity: 1; }
}

/* ── Layout shell ── */
.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 28px; }

/* ── Navbar ── */
nav {
  position: sticky;
  top: 0;
  z-index: 10;
  backdrop-filter: blur(10px);
  background: linear-gradient(180deg, rgba(11,13,40,0.7), rgba(11,13,40,0));
}
nav .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 76px;
}
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; }
.brand svg { width: 34px; height: 34px; filter: drop-shadow(0 0 10px rgba(243,208,138,0.5)); }
.brand b {
  font-family: var(--serif);
  font-weight: 500;
  font-size: 20px;
  color: var(--ink);
  letter-spacing: 0.2px;
}
.nav-links { display: flex; align-items: center; gap: 30px; }
.nav-links a {
  color: var(--ink-soft);
  text-decoration: none;
  font-size: 15px;
  transition: color 0.25s;
}
.nav-links a:hover { color: var(--gold-hi); }

.cta {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-family: var(--sans);
  font-weight: 600;
  font-size: 15px;
  color: #2a1d05;
  background: linear-gradient(180deg, var(--gold-hi), var(--gold-deep));
  padding: 11px 20px;
  border-radius: 999px;
  text-decoration: none;
  border: none;
  cursor: pointer;
  box-shadow: 0 6px 22px -8px rgba(232,183,92,0.7);
  transition: transform 0.18s ease, filter 0.2s ease;
}
.cta:hover { transform: translateY(-2px); filter: brightness(1.05); }
.cta svg { width: 17px; height: 17px; }

/* ── Hero ── */
.hero {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 50px;
  align-items: center;
  min-height: calc(100vh - 76px - 64px);
  padding: 40px 0;
}
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  letter-spacing: 1.6px;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 22px;
}
.eyebrow::before { content: "✦"; }
h1 {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(38px, 5.4vw, 64px);
  line-height: 1.06;
  letter-spacing: -0.5px;
  color: var(--parchment);
  margin-bottom: 22px;
}
h1 em { font-style: italic; color: var(--gold-hi); }
.lede {
  font-size: clamp(16px, 1.5vw, 19px);
  color: var(--ink-soft);
  max-width: 30em;
  margin-bottom: 30px;
}
.hero-actions { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; }
.assurance { font-size: 14px; color: var(--ink-faint); display: flex; align-items: center; gap: 7px; }
.assurance::before { content: "🪔"; }

.feature-row {
  display: flex;
  gap: 26px;
  margin-top: 44px;
  flex-wrap: wrap;
}
.feature {
  max-width: 220px;
}
.feature .f-title {
  font-family: var(--serif);
  font-size: 17px;
  color: var(--gold-hi);
  margin-bottom: 4px;
}
.feature p { font-size: 14px; color: var(--ink-faint); }

/* ── Panel mockup ── */
.panel-stage {
  position: relative;
  display: flex;
  justify-content: center;
}
.glow-ring {
  position: absolute;
  inset: -30px;
  background: radial-gradient(circle at 50% 35%, rgba(232,183,92,0.28), transparent 60%);
  filter: blur(10px);
}
.panel {
  position: relative;
  width: 340px;
  background: linear-gradient(180deg, rgba(34,38,84,0.92), rgba(14,16,48,0.96));
  border: 1px solid rgba(232,183,92,0.22);
  border-radius: 22px;
  padding: 22px 20px 26px;
  box-shadow: 0 40px 80px -30px rgba(0,0,0,0.8), inset 0 1px 0 rgba(255,255,255,0.05);
  animation: rise 1s cubic-bezier(0.2,0.8,0.2,1) both;
}
@keyframes rise { from { opacity: 0; transform: translateY(26px); } to { opacity: 1; transform: translateY(0); } }
.panel-head { display: flex; align-items: center; gap: 9px; margin-bottom: 16px; }
.panel-head svg { width: 22px; height: 22px; }
.panel-head b { font-family: var(--serif); font-weight: 500; font-size: 15px; color: var(--ink); }
.panel-tabs { display: flex; gap: 4px; margin-bottom: 16px; }
.panel-tabs span { flex: 1; text-align: center; font-size: 11px; color: var(--ink-faint); padding-bottom: 7px; }
.panel-tabs span.on { color: var(--ink); border-bottom: 2px solid var(--gold); }
.prompt {
  background: rgba(48,53,104,0.5);
  border: 1px solid rgba(232,183,92,0.22);
  border-radius: 13px;
  padding: 15px;
  margin-bottom: 14px;
  box-shadow: 0 0 18px -8px rgba(243,208,138,0.5);
}
.prompt .pe { font-size: 9.5px; letter-spacing: 1.4px; text-transform: uppercase; color: var(--gold); margin-bottom: 6px; }
.prompt .pt { font-family: var(--serif); font-size: 16px; color: var(--ink); line-height: 1.3; }
.note {
  background: rgba(12,14,38,0.5);
  border: 1px solid rgba(232,183,92,0.14);
  border-radius: 13px;
  padding: 14px;
  font-family: var(--serif);
  font-size: 13.5px;
  color: var(--ink-soft);
  line-height: 1.55;
}
.note .chips { display: flex; gap: 5px; margin-top: 10px; }
.note .chips i {
  font-style: normal;
  font-family: var(--sans);
  font-size: 10px;
  color: var(--gold-hi);
  background: rgba(232,183,92,0.12);
  border-radius: 999px;
  padding: 2px 9px;
}

/* ── Footer ── */
footer {
  border-top: 1px solid rgba(232,183,92,0.14);
}
footer .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
  flex-wrap: wrap;
  gap: 10px;
}
footer .copy { font-size: 14px; color: var(--ink-faint); }
footer .f-links { display: flex; gap: 22px; }
footer a { color: var(--ink-soft); text-decoration: none; font-size: 14px; }
footer a:hover { color: var(--gold-hi); }

/* ── Privacy page ── */
.doc { padding: 60px 0 80px; max-width: 760px; }
.doc h1 { font-size: clamp(32px, 4vw, 46px); margin-bottom: 10px; }
.doc .updated { color: var(--ink-faint); font-size: 14px; margin-bottom: 36px; }
.doc h2 {
  font-family: var(--serif);
  font-weight: 500;
  font-size: 24px;
  color: var(--gold-hi);
  margin: 34px 0 12px;
}
.doc p, .doc li { color: var(--ink-soft); font-size: 16px; margin-bottom: 12px; }
.doc ul { padding-left: 22px; margin-bottom: 12px; }
.doc li { margin-bottom: 7px; }
.doc a { color: var(--gold); }
.doc strong { color: var(--ink); }

@media (max-width: 860px) {
  .hero { grid-template-columns: 1fr; gap: 40px; text-align: center; padding: 30px 0 50px; }
  .hero-actions, .feature-row, .eyebrow { justify-content: center; }
  .lede { margin-left: auto; margin-right: auto; }
  .nav-links a:not(.cta) { display: none; }
  .panel-stage { order: -1; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto; }
}
