:root {
  --night: #0b1022;
  --night-2: #121a36;
  --slate: #2a3558;
  --gold: #f4c76a;
  --gold-2: #ffe3a3;
  --gold-deep: #b9852c;
  --silver: #e6ebf5;
  --silver-2: #aeb8cc;
  --crimson: #9e1b26;
  --text: #eef1f8;
  --muted: #a9b2c8;
  --green: #4ade80;
  --red: #f87171;
  --radius: 18px;
  --display: "Cinzel", Georgia, serif;
  --body: "Inter", system-ui, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--night);
  color: var(--text);
  font-family: var(--body);
  line-height: 1.6;
  overflow-x: hidden;
}
body.is-loading { overflow: hidden; }
img, video { display: block; max-width: 100%; }
a { color: inherit; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: .55rem;
  padding: .9rem 1.5rem; border-radius: 999px;
  font-weight: 800; font-size: .98rem; letter-spacing: .02em;
  text-decoration: none; border: 0; cursor: pointer;
  transition: transform .2s ease, box-shadow .2s ease, filter .2s ease;
}
.btn svg { width: 18px; height: 18px; fill: currentColor; }
.btn:hover { transform: translateY(-2px); }
.btn-gold {
  color: #2a1a00;
  background: linear-gradient(180deg, var(--gold-2), var(--gold) 55%, var(--gold-deep));
  box-shadow: 0 0 0 1px rgba(255,227,163,.6) inset, 0 8px 30px rgba(244,199,106,.45);
}
.btn-gold:hover { box-shadow: 0 0 0 1px rgba(255,227,163,.8) inset, 0 10px 44px rgba(244,199,106,.75); }
.btn-silver {
  color: #121a36;
  background: linear-gradient(180deg, #ffffff, var(--silver) 50%, var(--silver-2));
  box-shadow: 0 8px 26px rgba(200,215,255,.25);
}
.btn-ghost {
  color: var(--text);
  background: rgba(255,255,255,.06);
  box-shadow: 0 0 0 1px rgba(255,255,255,.25) inset;
  backdrop-filter: blur(6px);
}
.btn-ghost:hover { background: rgba(255,255,255,.12); }
.btn-sm { padding: .55rem 1.1rem; font-size: .9rem; }

.eyebrow {
  margin: 0 0 .6rem; color: var(--gold);
  font-size: .8rem; font-weight: 800; letter-spacing: .28em; text-transform: uppercase;
}

/* ---------- Loader ---------- */
#loader {
  position: fixed; inset: 0; z-index: 100;
  display: grid; place-items: center;
  background: radial-gradient(ellipse at 50% 40%, #1d2852 0%, var(--night) 70%);
  transition: opacity .9s ease, visibility .9s ease;
}
#loader.done { opacity: 0; visibility: hidden; }
.loader-rays {
  position: absolute; inset: -50%;
  background: repeating-conic-gradient(from 0deg, rgba(255,227,163,.07) 0deg 6deg, transparent 6deg 18deg);
  animation: spin 60s linear infinite;
  mask-image: radial-gradient(circle, #000 0%, transparent 55%);
  -webkit-mask-image: radial-gradient(circle, #000 0%, transparent 55%);
}
.loader-inner { position: relative; text-align: center; padding: 16px; width: min(420px, 100%); }
.loader-video-ring {
  width: min(280px, 70vw); aspect-ratio: 1; margin: 0 auto 1.6rem;
  border-radius: 50%; padding: 5px;
  background: conic-gradient(var(--gold-2), var(--gold-deep), var(--silver), var(--gold), var(--gold-2));
  box-shadow: 0 0 60px rgba(244,199,106,.55), 0 0 140px rgba(244,199,106,.25);
  animation: pulse 2.4s ease-in-out infinite;
}
.loader-video-ring video { width: 100%; height: 100%; object-fit: cover; border-radius: 50%; }
.loader-kicker { margin: 0; color: var(--gold); font-size: .78rem; font-weight: 800; letter-spacing: .3em; text-transform: uppercase; }
.loader-prayer {
  font-family: var(--display); font-size: clamp(1.1rem, 4vw, 1.45rem); margin: .4rem 0 1.2rem;
  min-height: 2.4em; transition: opacity .4s ease;
}
.loader-bar { height: 4px; border-radius: 4px; background: rgba(255,255,255,.12); overflow: hidden; margin: 0 auto 1.4rem; width: 80%; }
.loader-bar span { display: block; height: 100%; width: 0; background: linear-gradient(90deg, var(--gold-deep), var(--gold-2)); box-shadow: 0 0 12px var(--gold); transition: width .25s linear; }
.loader-amen { opacity: 0; pointer-events: none; transition: opacity .5s ease; }
.loader-amen.show { opacity: 1; pointer-events: auto; }

/* ---------- Nav ---------- */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 50;
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  padding: .8rem clamp(16px, 4vw, 48px);
  transition: background .3s ease, box-shadow .3s ease;
}
.nav.scrolled { background: rgba(11,16,34,.82); backdrop-filter: blur(12px); box-shadow: 0 1px 0 rgba(244,199,106,.2); }
.nav-brand { display: flex; align-items: center; gap: .6rem; text-decoration: none; font-family: var(--display); font-weight: 900; letter-spacing: .04em; }
.nav-brand img { border-radius: 50%; box-shadow: 0 0 0 2px var(--gold), 0 0 16px rgba(244,199,106,.6); }
.nav-links { display: flex; gap: 1.8rem; }
.nav-links a { text-decoration: none; font-weight: 700; font-size: .95rem; color: var(--silver); opacity: .85; }
.nav-links a:hover { color: var(--gold); opacity: 1; }

/* ---------- Hero ---------- */
.hero { position: relative; min-height: 100vh; min-height: 100svh; display: flex; flex-direction: column; overflow: hidden; }
.hero-bg { position: absolute; inset: 0; }
.hero-bg video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hero-rays {
  position: absolute; left: 50%; top: -30%; width: 160vmax; height: 160vmax; transform: translateX(-50%);
  background: repeating-conic-gradient(from 0deg at 50% 50%, rgba(255,240,200,.09) 0deg 4deg, transparent 4deg 14deg);
  mask-image: radial-gradient(circle, #000 0%, transparent 50%);
  -webkit-mask-image: radial-gradient(circle, #000 0%, transparent 50%);
  animation: spin 90s linear infinite;
  mix-blend-mode: screen;
}
#sparkles { position: absolute; inset: 0; width: 100%; height: 100%; }
.floating-crosses span {
  position: absolute; bottom: -10%; color: rgba(235,240,255,.55);
  text-shadow: 0 0 12px rgba(255,227,163,.9);
  animation: rise linear infinite;
}
.floating-crosses span:nth-child(1) { left: 6%;  font-size: 22px; animation-duration: 18s; }
.floating-crosses span:nth-child(2) { left: 18%; font-size: 14px; animation-duration: 24s; animation-delay: -6s; }
.floating-crosses span:nth-child(3) { left: 33%; font-size: 28px; animation-duration: 21s; animation-delay: -12s; }
.floating-crosses span:nth-child(4) { left: 52%; font-size: 16px; animation-duration: 26s; animation-delay: -3s; }
.floating-crosses span:nth-child(5) { left: 68%; font-size: 24px; animation-duration: 19s; animation-delay: -9s; }
.floating-crosses span:nth-child(6) { left: 82%; font-size: 13px; animation-duration: 23s; animation-delay: -15s; }
.floating-crosses span:nth-child(7) { left: 93%; font-size: 20px; animation-duration: 20s; animation-delay: -1s; }
.hero-shade { position: absolute; inset: 0; background: linear-gradient(90deg, rgba(11,16,34,.85) 0%, rgba(11,16,34,.45) 45%, rgba(11,16,34,.15) 100%), linear-gradient(0deg, var(--night) 0%, transparent 30%); }

.hero-grid {
  position: relative; flex: 1;
  display: grid; grid-template-columns: 1.1fr .9fr; align-items: center; gap: clamp(24px, 4vw, 64px);
  max-width: 1240px; width: 100%; margin: 0 auto;
  padding: 110px clamp(16px, 4vw, 48px) 40px;
}
.hero-title {
  font-family: var(--display); font-weight: 900; margin: 0;
  font-size: clamp(2.8rem, 8vw, 6.2rem); line-height: .98;
  background: linear-gradient(180deg, #fff 0%, var(--silver) 45%, var(--silver-2) 70%, #fff 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
  filter: drop-shadow(0 0 22px rgba(244,199,106,.55)) drop-shadow(0 4px 2px rgba(0,0,0,.4));
}
.hero-title em { font-style: normal; color: var(--gold); -webkit-text-fill-color: var(--gold); }
.hero-ticker {
  display: inline-block; margin: 1rem 0 0; padding: .35rem 1rem; border-radius: 999px;
  font-family: var(--display); font-weight: 800; font-size: clamp(1.1rem, 2.6vw, 1.5rem); letter-spacing: .06em;
  color: var(--gold-2); background: rgba(244,199,106,.12); box-shadow: 0 0 0 1px rgba(244,199,106,.45) inset;
}
.hero-sub { font-size: clamp(1rem, 1.6vw, 1.15rem); color: var(--silver); max-width: 34rem; margin: 1.2rem 0 1.8rem; }
.cta-row { display: flex; flex-wrap: wrap; gap: .8rem; }
.ca-box {
  display: flex; align-items: center; gap: .7rem; margin-top: 1.4rem; max-width: 34rem;
  padding: .5rem .5rem .5rem 1rem; border-radius: 14px;
  background: rgba(11,16,34,.6); box-shadow: 0 0 0 1px rgba(255,255,255,.15) inset; backdrop-filter: blur(8px);
}
.ca-label { font-weight: 800; color: var(--gold); font-size: .8rem; letter-spacing: .14em; }
.ca-box code { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: .9rem; color: var(--silver); }
.ca-copy { border: 0; border-radius: 10px; padding: .5rem .9rem; font-weight: 800; cursor: pointer; background: var(--gold); color: #2a1a00; }

.hero-art { position: relative; justify-self: center; width: min(460px, 100%); }
.halo {
  position: absolute; inset: -12%; border-radius: 50%;
  background: radial-gradient(circle, rgba(255,227,163,.55) 0%, rgba(244,199,106,.2) 40%, transparent 68%);
  animation: pulse 4s ease-in-out infinite;
}
.hero-frame {
  position: relative; border-radius: 28px; overflow: hidden; aspect-ratio: 1;
  box-shadow: 0 0 0 3px rgba(255,227,163,.85), 0 0 0 9px rgba(244,199,106,.18), 0 0 80px rgba(244,199,106,.55), 0 30px 60px rgba(0,0,0,.5);
  animation: float 6s ease-in-out infinite;
}
.hero-frame video { width: 100%; height: 100%; object-fit: cover; }
.sound-btn {
  position: absolute; left: 50%; bottom: 14px; transform: translateX(-50%);
  border: 0; border-radius: 999px; padding: .45rem .95rem; cursor: pointer;
  font-weight: 800; font-size: .82rem; color: #fff; background: rgba(11,16,34,.65); backdrop-filter: blur(6px);
  box-shadow: 0 0 0 1px rgba(255,255,255,.3) inset;
}
.hero-badge {
  position: absolute; right: -14px; top: -14px; width: 104px; height: 104px; border-radius: 50%;
  display: grid; place-items: center; text-align: center; line-height: 1.15;
  font-size: .72rem; font-weight: 700; color: #2a1a00; text-transform: uppercase;
  background: radial-gradient(circle at 35% 30%, var(--gold-2), var(--gold) 55%, var(--gold-deep));
  box-shadow: 0 8px 30px rgba(244,199,106,.6);
  animation: spin 22s linear infinite;
}
.hero-badge strong { font-family: var(--display); font-size: 1rem; }

.marquee { position: relative; overflow: hidden; border-block: 1px solid rgba(244,199,106,.35); background: rgba(11,16,34,.75); backdrop-filter: blur(6px); }
.marquee-track { display: flex; width: max-content; animation: marquee 40s linear infinite; }
.marquee-track span { padding: .9rem 1.6rem; white-space: nowrap; font-family: var(--display); font-weight: 800; letter-spacing: .08em; color: var(--gold-2); }

/* ---------- Sections ---------- */
.section { position: relative; padding: clamp(72px, 10vw, 120px) clamp(16px, 4vw, 48px); max-width: 1240px; margin: 0 auto; }
.section-head { text-align: center; margin-bottom: 2.6rem; }
.section-head h2 { font-family: var(--display); font-weight: 900; font-size: clamp(2.2rem, 5vw, 3.6rem); margin: 0; line-height: 1.05; }
.section-head h2 span { color: var(--gold); }
.section-sub { color: var(--muted); margin: .7rem 0 0; }

.chart::before, .gallery::before {
  content: ""; position: absolute; left: 50%; top: 0; transform: translateX(-50%);
  width: 70vw; height: 420px; pointer-events: none; z-index: -1;
  background: radial-gradient(ellipse at 50% 0%, rgba(244,199,106,.14), transparent 70%);
}

.stats { display: grid; grid-template-columns: repeat(6, 1fr); gap: 12px; margin-bottom: 18px; }
.stat {
  padding: 1rem; border-radius: 14px; text-align: center;
  background: linear-gradient(180deg, rgba(255,255,255,.06), rgba(255,255,255,.02));
  box-shadow: 0 0 0 1px rgba(255,255,255,.1) inset;
}
.stat-k { display: block; font-size: .72rem; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); font-weight: 700; }
.stat-v { display: block; margin-top: .25rem; font-size: 1.2rem; font-weight: 800; font-variant-numeric: tabular-nums; }
.stat-v.up { color: var(--green); }
.stat-v.down { color: var(--red); }

.chart-grid { display: grid; grid-template-columns: 1fr 340px; gap: 18px; }
.chart-frame {
  position: relative; min-height: 560px; border-radius: var(--radius); overflow: hidden;
  background: linear-gradient(180deg, var(--night-2), #0d1328);
  box-shadow: 0 0 0 1px rgba(244,199,106,.35) inset, 0 20px 60px rgba(0,0,0,.35);
}
.chart-frame iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.chart-empty { position: absolute; inset: 0; display: grid; place-content: center; justify-items: center; text-align: center; padding: 24px; gap: 1rem; color: var(--silver); }
.chart-empty-cross { font-size: 64px; color: var(--gold); text-shadow: 0 0 30px rgba(244,199,106,.8); animation: pulse 2.6s ease-in-out infinite; }
.chart-empty p { margin: 0; max-width: 26rem; }
.summary {
  padding: 1.6rem; border-radius: var(--radius);
  background: linear-gradient(180deg, rgba(158,27,38,.22), rgba(18,26,54,.9));
  box-shadow: 0 0 0 1px rgba(244,199,106,.3) inset;
}
.summary h3 { font-family: var(--display); margin: 0 0 .6rem; font-size: 1.5rem; color: var(--gold-2); }
.summary p { margin: 0 0 1rem; color: var(--silver); font-size: .95rem; }
.commandments { list-style: none; padding: 0; margin: 0 0 1.4rem; display: grid; gap: .5rem; }
.commandments li { padding: .55rem .8rem; border-radius: 10px; background: rgba(255,255,255,.05); font-size: .92rem; }
.commandments b { font-family: var(--display); color: var(--gold); margin-right: .35rem; }

/* ---------- Gallery ---------- */
.memes { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.meme {
  margin: 0; position: relative; border-radius: var(--radius); overflow: hidden; cursor: zoom-in;
  box-shadow: 0 0 0 1px rgba(244,199,106,.3), 0 14px 40px rgba(0,0,0,.4);
  transition: transform .3s ease, box-shadow .3s ease;
}
.meme:hover { transform: translateY(-6px) rotate(-.5deg); box-shadow: 0 0 0 2px var(--gold), 0 0 40px rgba(244,199,106,.45); }
.meme img { width: 100%; aspect-ratio: 1; object-fit: cover; transition: transform .5s ease; }
.meme:hover img { transform: scale(1.06); }
.meme figcaption {
  position: absolute; inset: auto 0 0 0; padding: 2.4rem 1rem 1rem;
  background: linear-gradient(0deg, rgba(11,16,34,.95), transparent);
}
.meme figcaption b { display: block; font-family: var(--display); font-size: 1.02rem; color: var(--gold-2); line-height: 1.2; }
.meme figcaption span { display: block; font-size: .82rem; color: var(--silver); margin-top: .2rem; }

.final-cta {
  display: grid; grid-template-columns: 220px 1fr; align-items: center; gap: 2rem; margin-top: 3.5rem;
  padding: 1.6rem; border-radius: 26px;
  background: radial-gradient(ellipse at 0% 50%, rgba(244,199,106,.2), transparent 60%), var(--night-2);
  box-shadow: 0 0 0 1px rgba(244,199,106,.35) inset;
}
.final-cta img { border-radius: 20px; box-shadow: 0 0 40px rgba(244,199,106,.45); }
.final-cta h3 { font-family: var(--display); font-size: clamp(1.5rem, 3vw, 2.2rem); margin: 0 0 .3rem; }
.final-cta p { margin: 0 0 1.2rem; color: var(--silver); }

.footer { text-align: center; padding: 3rem 16px 3.5rem; border-top: 1px solid rgba(244,199,106,.2); color: var(--muted); font-size: .85rem; }
.footer p { max-width: 46rem; margin: .4rem auto; }
.footer-brand { font-family: var(--display); font-weight: 900; color: var(--gold); font-size: 1.2rem; letter-spacing: .1em; }

/* ---------- Lightbox ---------- */
.lightbox { position: fixed; inset: 0; z-index: 90; display: grid; place-items: center; align-content: center; gap: 1rem; padding: 16px; background: rgba(5,8,18,.92); backdrop-filter: blur(8px); }
.lightbox[hidden] { display: none; }
.lightbox img { max-height: 78vh; width: auto; border-radius: 18px; box-shadow: 0 0 60px rgba(244,199,106,.4); }
.lightbox p { margin: 0; font-family: var(--display); font-size: 1.3rem; color: var(--gold-2); text-align: center; }
.lightbox-close { position: absolute; top: 14px; right: 18px; border: 0; background: none; color: #fff; font-size: 2.6rem; cursor: pointer; line-height: 1; }

/* ---------- Reveal ---------- */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity .8s ease, transform .8s ease; }
.reveal.in { opacity: 1; transform: none; }

/* ---------- Keyframes ---------- */
@keyframes spin { to { transform: translateX(-50%) rotate(360deg); } }
.loader-rays, .hero-badge { animation-name: spin-plain; }
@keyframes spin-plain { to { transform: rotate(360deg); } }
@keyframes pulse { 0%,100% { opacity: .85; transform: scale(1); } 50% { opacity: 1; transform: scale(1.04); } }
@keyframes float { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-12px); } }
@keyframes rise { 0% { transform: translateY(0) rotate(0); opacity: 0; } 10% { opacity: 1; } 100% { transform: translateY(-120vh) rotate(25deg); opacity: 0; } }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
  .stats { grid-template-columns: repeat(3, 1fr); }
  .chart-grid { grid-template-columns: minmax(0, 1fr); }
  .memes { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 820px) {
  .hero-grid { grid-template-columns: minmax(0, 1fr); text-align: center; padding-top: 96px; }
  .hero-grid > * { min-width: 0; }
  .hero-title { font-size: clamp(2.1rem, 11vw, 3.4rem); }
  .eyebrow { letter-spacing: .18em; }
  .hero-copy { order: 2; }
  .hero-art { order: 1; width: min(320px, 82%); }
  .hero-sub, .ca-box { margin-left: auto; margin-right: auto; }
  .cta-row { justify-content: center; }
  .hero-shade { background: linear-gradient(0deg, var(--night) 0%, rgba(11,16,34,.55) 50%, rgba(11,16,34,.35) 100%); }
  .nav-links { display: none; }
  .final-cta { grid-template-columns: 1fr; text-align: center; }
  .final-cta img { width: 200px; margin: 0 auto; }
  .chart-frame { min-height: 460px; }
}
@media (max-width: 520px) {
  .stats { grid-template-columns: repeat(2, 1fr); }
  .memes { grid-template-columns: 1fr; }
  .btn { padding: .8rem 1.2rem; font-size: .92rem; }
  .hero-badge { width: 80px; height: 80px; font-size: .6rem; right: -6px; top: -6px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
