:root {
  --bg-0: #0b0f28;
  --bg-1: #131845;
  --bg-2: #1b1f4b;
  --gold: #e8b85c;
  --gold-soft: #f4d58d;
  --cream: #f6f1e7;
  --cream-dim: rgba(246, 241, 231, 0.72);
  --cream-faint: rgba(246, 241, 231, 0.5);
  --rose: #d98c7a;
  --serif: "Cormorant Garamond", Georgia, serif;
  --body: "Spectral", Georgia, serif;
}

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

html, body { height: 100%; }
body {
  font-family: var(--body);
  color: var(--cream);
  background: var(--bg-0);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  overflow-x: hidden;
  position: relative;
  -webkit-font-smoothing: antialiased;
}

/* ── Atmosphere ──────────────────────────────────────────── */
.sky { position: fixed; inset: 0; z-index: -1; overflow: hidden;
  background:
    radial-gradient(120% 90% at 50% 120%, #20264f 0%, transparent 55%),
    linear-gradient(180deg, #080b22 0%, var(--bg-1) 60%, #0e1234 100%);
}
.glow {
  position: absolute; left: 50%; bottom: -22vh; width: 70vw; height: 70vw;
  transform: translateX(-50%);
  background: radial-gradient(circle, rgba(232, 184, 92, 0.22), transparent 60%);
  filter: blur(20px);
  animation: breathe 9s ease-in-out infinite;
}
@keyframes breathe { 0%, 100% { opacity: 0.8; } 50% { opacity: 1; } }
.moon {
  position: absolute; top: 12vh; right: 14vw; width: 90px; height: 90px; border-radius: 50%;
  background: radial-gradient(circle at 38% 38%, #fff7e6, #e9d39b 60%, #cdaf6b);
  box-shadow: 0 0 60px 14px rgba(244, 213, 141, 0.35);
}
.stars {
  position: absolute; inset: 0;
  background-image:
    radial-gradient(1.4px 1.4px at 12% 22%, rgba(255,255,255,0.8), transparent),
    radial-gradient(1.2px 1.2px at 28% 12%, rgba(255,255,255,0.6), transparent),
    radial-gradient(1.6px 1.6px at 62% 18%, rgba(255,255,255,0.7), transparent),
    radial-gradient(1.1px 1.1px at 78% 30%, rgba(255,255,255,0.55), transparent),
    radial-gradient(1.3px 1.3px at 88% 12%, rgba(255,255,255,0.7), transparent),
    radial-gradient(1.2px 1.2px at 42% 28%, rgba(255,255,255,0.5), transparent),
    radial-gradient(1.5px 1.5px at 8% 40%, rgba(255,255,255,0.6), transparent);
  animation: twinkle 6s ease-in-out infinite;
}
@keyframes twinkle { 0%, 100% { opacity: 0.55; } 50% { opacity: 0.95; } }

/* ── Nav ─────────────────────────────────────────────────── */
.nav {
  display: flex; align-items: center; justify-content: space-between;
  padding: 26px clamp(20px, 6vw, 80px);
}
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--cream); }
.brand-mark { font-size: 22px; filter: drop-shadow(0 0 10px rgba(232,184,92,0.6)); }
.brand-name { font-family: var(--serif); font-size: 24px; letter-spacing: 0.5px; }

.cta {
  font-family: var(--body); font-weight: 500; font-size: 15px;
  color: #2a1d05; text-decoration: none;
  background: linear-gradient(135deg, var(--gold), var(--gold-soft));
  padding: 11px 22px; border-radius: 999px;
  box-shadow: 0 6px 22px rgba(232, 184, 92, 0.28);
  transition: transform 0.2s ease, box-shadow 0.2s ease, filter 0.2s ease;
}
.cta:hover { transform: translateY(-1px); filter: brightness(1.05); box-shadow: 0 10px 28px rgba(232,184,92,0.4); }

/* ── Hero ────────────────────────────────────────────────── */
.hero {
  flex: 1;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  text-align: center;
  padding: 3vh clamp(20px, 6vw, 80px) 4vh;
  max-width: 1000px; margin: 0 auto;
}
.eyebrow {
  font-size: 14px; letter-spacing: 4px; text-transform: uppercase;
  color: var(--gold); margin-bottom: 22px;
  opacity: 0; animation: rise 0.9s ease forwards 0.1s;
}
.headline {
  font-family: var(--serif); font-weight: 500;
  font-size: clamp(44px, 8vw, 92px); line-height: 1.02; letter-spacing: 0.5px;
  text-shadow: 0 4px 40px rgba(0,0,0,0.45);
  opacity: 0; animation: rise 0.9s ease forwards 0.25s;
}
.headline .accent { color: var(--gold-soft); font-style: italic; }
.sub {
  font-size: clamp(16px, 2vw, 19px); line-height: 1.7; font-weight: 300;
  color: var(--cream-dim); max-width: 620px; margin: 26px auto 0;
  opacity: 0; animation: rise 0.9s ease forwards 0.45s;
}
.actions {
  margin-top: 38px; display: flex; flex-direction: column; align-items: center; gap: 14px;
  opacity: 0; animation: rise 0.9s ease forwards 0.6s;
}
.cta-lg { font-size: 17px; padding: 15px 34px; }
.reassure { font-size: 13.5px; color: var(--cream-faint); letter-spacing: 0.3px; }

.pillars {
  list-style: none; margin-top: 64px;
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px;
  width: 100%; max-width: 880px;
  opacity: 0; animation: rise 1s ease forwards 0.8s;
}
.pillars li {
  display: flex; flex-direction: column; align-items: center; text-align: center;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(232,184,92,0.16);
  border-radius: 18px; padding: 24px 18px;
  backdrop-filter: blur(8px);
  transition: transform 0.25s ease, border-color 0.25s ease, background 0.25s ease;
}
.pillars li:hover { transform: translateY(-4px); border-color: rgba(232,184,92,0.4); background: rgba(255,255,255,0.06); }
.p-ic { font-size: 26px; margin-bottom: 12px; filter: drop-shadow(0 0 8px rgba(232,184,92,0.4)); }
.p-t { font-family: var(--serif); font-size: 21px; color: var(--cream); margin-bottom: 7px; }
.p-d { font-size: 14px; line-height: 1.55; color: var(--cream-faint); font-weight: 300; }

/* ── Footer ──────────────────────────────────────────────── */
.footer {
  display: flex; align-items: center; justify-content: space-between;
  padding: 22px clamp(20px, 6vw, 80px);
  font-size: 13.5px; color: var(--cream-faint);
  border-top: 1px solid rgba(232,184,92,0.12);
}
.footer a { color: var(--cream-dim); text-decoration: none; }
.footer a:hover { color: var(--gold-soft); }

@keyframes rise { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }

/* ── Legal page ──────────────────────────────────────────── */
.legal {
  flex: 1; width: 100%; max-width: 760px; margin: 0 auto;
  padding: 4vh clamp(20px, 6vw, 40px) 6vh;
}
.legal h1 { font-family: var(--serif); font-weight: 500; font-size: clamp(34px, 6vw, 52px); margin-bottom: 6px; }
.legal .updated { color: var(--cream-faint); font-size: 14px; margin-bottom: 30px; }
.legal h2 { font-family: var(--serif); font-weight: 500; font-size: 26px; color: var(--gold-soft); margin: 34px 0 12px; }
.legal p, .legal li { font-size: 16px; line-height: 1.75; color: var(--cream-dim); font-weight: 300; }
.legal ul { margin: 10px 0 10px 22px; }
.legal li { margin-bottom: 8px; }
.legal a { color: var(--gold-soft); }
.legal .lead { font-size: 18px; color: var(--cream); }
.legal .back { display: inline-block; margin-bottom: 24px; color: var(--cream-dim); text-decoration: none; font-size: 14px; }
.legal .back:hover { color: var(--gold-soft); }

@media (max-width: 720px) {
  .pillars { grid-template-columns: 1fr; max-width: 420px; margin-top: 44px; }
  .moon { width: 64px; height: 64px; top: 10vh; right: 10vw; }
}
@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; }
  .eyebrow, .headline, .sub, .actions, .pillars { opacity: 1 !important; }
}
