:root {
  --bg: #03020c;
  --bg-2: #080624;
  --ink: #eaf6ff;
  --muted: #9fb3d9;
  --cyan: #5ee7ff;
  --blue: #2f7bff;
  --violet: #8b5cff;
  --gold: #ffe08a;
  --green: #3dff9a;
  --line: rgba(94, 231, 255, 0.22);
  --card: rgba(12, 18, 52, 0.55);
  --glow: 0 0 24px rgba(94, 231, 255, 0.55), 0 0 64px rgba(47, 123, 255, 0.35);
  --radius: 18px;
  --serif: "Cinzel", Georgia, serif;
  --meme: "Anton", Impact, "Arial Black", sans-serif;
  --sans: "Inter", system-ui, -apple-system, Segoe UI, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; overflow-x: clip; }
.hero > *, .prayer > * { min-width: 0; }
body {
  margin: 0;
  background: radial-gradient(1200px 800px at 75% 10%, #10125a 0%, transparent 60%),
              radial-gradient(900px 700px at 0% 60%, #2a0e5e 0%, transparent 60%),
              var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  line-height: 1.6;
  overflow-x: hidden;
}
img, video { max-width: 100%; display: block; }
a { color: var(--cyan); }

#stars, #sparkles { position: fixed; inset: 0; width: 100%; height: 100%; pointer-events: none; }
#stars { z-index: 0; }
#sparkles { z-index: 60; }
main, .footer, .nav { position: relative; z-index: 2; }

/* ---------- nav ---------- */
.nav {
  position: sticky; top: 0; z-index: 50;
  display: flex; align-items: center; gap: 24px;
  padding: 14px clamp(16px, 4vw, 48px);
  background: linear-gradient(to bottom, rgba(3, 2, 12, 0.85), rgba(3, 2, 12, 0));
  backdrop-filter: blur(8px);
}
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); font-family: var(--meme); font-size: 20px; letter-spacing: 1px; }
.brand img { width: 38px; height: 38px; border-radius: 50%; object-fit: cover; box-shadow: var(--glow); }
.nav nav { display: flex; gap: 22px; margin-left: auto; }
.nav nav a { color: var(--muted); text-decoration: none; font-weight: 600; transition: color .2s, text-shadow .2s; }
.nav nav a:hover { color: var(--cyan); text-shadow: var(--glow); }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 14px 24px; border-radius: 999px; border: 0; cursor: pointer;
  font: 700 15px var(--sans); text-decoration: none; color: var(--ink);
  transition: transform .2s, box-shadow .2s, background .2s;
}
.btn:hover { transform: translateY(-2px) scale(1.03); }
.btn:active { transform: scale(.97); }
.btn-holy {
  color: #02121c;
  background: linear-gradient(120deg, #bff6ff, var(--cyan) 40%, #7aa8ff 70%, #c9b5ff);
  background-size: 200% 100%;
  box-shadow: var(--glow);
  animation: shimmer 4s linear infinite, pulse 2.4s ease-in-out infinite;
}
.btn-ghost { background: rgba(94, 231, 255, 0.08); border: 1px solid var(--line); }
.btn-ghost:hover { background: rgba(94, 231, 255, 0.16); box-shadow: var(--glow); }
.wallet-btn { padding: 10px 18px; font-size: 14px; }
.wallet-btn.connected { border-color: var(--green); color: var(--green); }
@keyframes shimmer { to { background-position: -200% 0; } }
@keyframes pulse { 50% { box-shadow: 0 0 36px rgba(94, 231, 255, .8), 0 0 90px rgba(139, 92, 255, .5); } }

/* ---------- hero ---------- */
.hero {
  min-height: calc(100vh - 70px);
  display: grid; grid-template-columns: 1.05fr 1fr; align-items: center; gap: clamp(24px, 4vw, 64px);
  padding: 20px clamp(16px, 5vw, 72px) 60px;
}
.hero-art { position: relative; aspect-ratio: 1; max-width: 640px; width: 100%; margin: 0 auto; }
.hero-art video {
  position: relative; z-index: 1; width: 100%; height: 100%; object-fit: cover;
  /* feather only the outer edges: the head sits near the top of the clip, so a round mask hides the face */
  -webkit-mask-image: linear-gradient(to right, transparent, #000 10%, #000 92%, transparent),
                      linear-gradient(to bottom, transparent, #000 4%, #000 82%, transparent);
  -webkit-mask-composite: source-in;
          mask-image: linear-gradient(to right, transparent, #000 10%, #000 92%, transparent),
                      linear-gradient(to bottom, transparent, #000 4%, #000 82%, transparent);
          mask-composite: intersect;
  animation: float 7s ease-in-out infinite;
}
.halo {
  position: absolute; inset: -6%; border-radius: 50%;
  background: conic-gradient(from 0deg, transparent, rgba(94, 231, 255, .55), transparent 30%, rgba(139, 92, 255, .5), transparent 60%, rgba(94, 231, 255, .45), transparent);
  filter: blur(28px);
  animation: spin 14s linear infinite;
}
.bolts { position: absolute; inset: 0; z-index: 2; width: 100%; height: 100%; pointer-events: none; overflow: visible; }
.bolts path { fill: none; stroke: #e6fbff; stroke-width: .5; filter: drop-shadow(0 0 2px var(--cyan)) drop-shadow(0 0 6px var(--blue)); }
@keyframes float { 50% { transform: translateY(-14px) rotate(-1deg); } }
@keyframes spin { to { transform: rotate(360deg); } }

.eyebrow { margin: 0 0 8px; color: var(--cyan); text-transform: uppercase; letter-spacing: .3em; font-size: 13px; font-weight: 700; }
.title {
  margin: 0; font-family: var(--serif); font-weight: 900; line-height: 1;
  font-size: clamp(42px, 7vw, 96px);
  background: linear-gradient(180deg, #fff, #bff3ff 45%, #6fa6ff);
  -webkit-background-clip: text; background-clip: text; color: transparent;
  filter: drop-shadow(0 0 18px rgba(94, 231, 255, .45));
}
.title { container-type: inline-size; }
.title span { display: block; }
.title .t1 { font-size: 1em; }
/* "Accelerationism" always fits its column on one line */
.title .t2 { font-size: min(1em, 10.2cqw); }
.ticker-big { margin: 14px 0 6px; font-family: var(--meme); font-size: clamp(28px, 4vw, 44px); color: var(--gold); letter-spacing: 2px; text-shadow: 0 0 18px rgba(255, 224, 138, .55); }
.lead { color: var(--muted); font-size: 18px; max-width: 520px; }

.ca {
  display: flex; align-items: center; gap: 10px; margin: 22px 0;
  padding: 8px 8px 8px 16px; border: 1px solid var(--line); border-radius: 14px;
  background: var(--card); max-width: 560px;
}
.ca-label { font-family: var(--meme); color: var(--gold); letter-spacing: 1px; }
.ca code { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 14px; color: var(--ink); }
.ca-copy { border: 0; border-radius: 10px; padding: 8px 14px; cursor: pointer; font-weight: 700; color: #02121c; background: var(--cyan); }
.cta { display: flex; flex-wrap: wrap; gap: 12px; }

/* ---------- marquee ---------- */
.marquee { overflow: hidden; border-block: 1px solid var(--line); background: rgba(47, 123, 255, .08); transform: rotate(-1.5deg); margin: 10px -10px 60px; }
.marquee-track { display: flex; gap: 48px; width: max-content; padding: 14px 0; animation: scroll 30s linear infinite; font-family: var(--meme); font-size: 22px; letter-spacing: 2px; white-space: nowrap; }
.marquee-track span:nth-child(odd) { color: var(--cyan); }
.marquee-track span:nth-child(even) { color: var(--gold); }
@keyframes scroll { to { transform: translateX(-50%); } }

/* ---------- sections ---------- */
section { padding: 70px clamp(16px, 5vw, 72px); }
.section-title { font-family: var(--serif); font-weight: 900; line-height: 1.15; font-size: clamp(30px, 4.5vw, 54px); margin: 0 0 6px; text-align: center; text-shadow: var(--glow); }
.section-sub { text-align: center; color: var(--muted); margin: 0 auto 36px; max-width: 560px; }

/* ---------- prayer ---------- */
.prayer { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 32px; align-items: start; max-width: 1200px; margin: 0 auto; }
.prayer-card { padding: 32px; border-radius: var(--radius); background: var(--card); border: 1px solid var(--line); box-shadow: inset 0 0 60px rgba(47, 123, 255, .12); }
.prayer-card .section-title { text-align: left; font-size: clamp(26px, 3vw, 38px); }
.heaven { font-size: 18px; color: var(--gold); margin: 4px 0 20px; }
.heaven strong { color: var(--ink); }
textarea {
  width: 100%; resize: none; padding: 14px 16px; border-radius: 14px;
  background: rgba(3, 2, 12, .6); color: var(--ink); border: 1px solid var(--line);
  font: 16px var(--sans);
}
textarea:focus { outline: none; border-color: var(--cyan); box-shadow: var(--glow); }
.prayer-row { display: flex; justify-content: space-between; align-items: center; margin-top: 12px; gap: 12px; }
.counter { color: var(--muted); font-size: 13px; }
.prayer-hint { color: var(--muted); font-size: 13px; margin: 10px 0 0; }
.prayer-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-top: 24px; text-align: center; }
.prayer-stats div { padding: 14px 6px; border-radius: 12px; background: rgba(94, 231, 255, .06); }
.prayer-stats b { display: block; font-family: var(--meme); font-size: 28px; color: var(--cyan); }
.prayer-stats span { font-size: 12px; color: var(--muted); }

.prayer-wall { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 12px; max-height: 470px; overflow: hidden; -webkit-mask-image: linear-gradient(#000 70%, transparent); mask-image: linear-gradient(#000 70%, transparent); }
.prayer-wall li { padding: 14px 18px; border-radius: 14px; background: linear-gradient(90deg, rgba(94, 231, 255, .12), rgba(139, 92, 255, .08)); border: 1px solid var(--line); animation: drop .6s cubic-bezier(.2, .9, .3, 1.3); }
.prayer-wall li small { display: block; color: var(--cyan); font-size: 12px; margin-bottom: 2px; }
@keyframes drop { from { opacity: 0; transform: translateY(-20px) scale(.95); } }

.orb {
  position: fixed; z-index: 70; width: 22px; height: 22px; border-radius: 50%; pointer-events: none;
  background: radial-gradient(circle, #fff 0%, var(--cyan) 40%, rgba(47, 123, 255, 0) 70%);
  box-shadow: 0 0 30px 10px rgba(94, 231, 255, .7);
}
.orb-text { position: fixed; z-index: 70; pointer-events: none; font-family: var(--serif); font-weight: 700; color: #fff; text-shadow: var(--glow); max-width: 260px; text-align: center; font-size: 14px; }
.flash { position: fixed; inset: 0; z-index: 65; pointer-events: none; background: radial-gradient(circle at 50% 0%, rgba(255, 255, 255, .55), transparent 60%); animation: flash 1.2s ease-out forwards; }
@keyframes flash { from { opacity: 1; } to { opacity: 0; } }

/* ---------- chart ---------- */
.chart-frame { max-width: 1200px; margin: 0 auto; height: min(78vh, 720px); border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); box-shadow: var(--glow); background: var(--card); }
.chart-frame iframe { width: 100%; height: 100%; border: 0; }
.chart-empty { height: 100%; display: grid; place-content: center; text-align: center; gap: 10px; padding: 24px; }
.chart-empty .bars { display: flex; gap: 10px; align-items: flex-end; justify-content: center; height: 160px; }
.chart-empty .bars i { width: 22px; border-radius: 4px; background: var(--green); box-shadow: 0 0 16px rgba(61, 255, 154, .6); animation: grow 1.8s ease-in-out infinite alternate; }
@keyframes grow { from { transform: scaleY(.3); } }
.chart-empty .bars i { transform-origin: bottom; }
.chart-empty h3 { font-family: var(--serif); font-size: 28px; margin: 12px 0 0; }
.chart-empty p { color: var(--muted); margin: 0; }

/* ---------- lore ---------- */
.timeline { list-style: none; margin: 0 auto; padding: 0 0 0 28px; max-width: 760px; position: relative; }
.timeline::before { content: ""; position: absolute; left: 6px; top: 6px; bottom: 6px; width: 2px; background: linear-gradient(var(--cyan), var(--violet), transparent); box-shadow: var(--glow); }
.timeline li { position: relative; padding: 0 0 36px 20px; }
.timeline li::before { content: ""; position: absolute; left: -28px; top: 8px; width: 16px; height: 16px; border-radius: 50%; background: #fff; box-shadow: 0 0 0 4px rgba(94, 231, 255, .3), var(--glow); }
.verse { font-family: var(--meme); color: var(--gold); letter-spacing: 1px; }
.timeline h3 { font-family: var(--serif); font-size: 24px; margin: 2px 0 6px; }
.timeline p { margin: 0; color: var(--muted); }

/* ---------- memes ---------- */
.meme-grid { max-width: 1240px; margin: 0 auto; display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 22px; }
.meme-card { cursor: zoom-in; border-radius: var(--radius); padding: 0; border: 1px solid var(--line); background: var(--card); overflow: hidden; transform-style: preserve-3d; transition: transform .25s ease, box-shadow .25s; color: inherit; font: inherit; text-align: inherit; }
.meme-card:hover { box-shadow: var(--glow); }
.meme { position: relative; aspect-ratio: 1; overflow: hidden; container-type: inline-size; }
.meme img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s; }
.meme-card:hover .meme img { transform: scale(1.06); }
.meme .cap {
  position: absolute; left: 4%; right: 4%; text-align: center; text-transform: uppercase;
  font-family: var(--meme); font-size: 9cqw; line-height: 1.05; color: #fff; letter-spacing: .02em;
  -webkit-text-stroke: .5cqw #000; paint-order: stroke fill;
  text-shadow: 0 0 1.5cqw rgba(0, 0, 0, .9);
}
.meme .cap.top { top: 3.5%; }
.meme .cap.bottom { bottom: 3.5%; }
.meme-placeholder { width: 100%; height: 100%; display: grid; place-content: center; background: radial-gradient(circle, #1a2a7a, #05041a); color: var(--muted); }

.lightbox { position: fixed; inset: 0; z-index: 80; display: grid; place-items: center; padding: 16px; background: rgba(3, 2, 12, .9); backdrop-filter: blur(6px); }
.lightbox[hidden] { display: none; }
.lightbox figure { margin: 0; width: min(92vw, 80vh, 760px); }
.lb-meme { border-radius: var(--radius); box-shadow: var(--glow); }
.lightbox figcaption { display: flex; justify-content: center; margin-top: 14px; }
.lb-close { position: absolute; top: 14px; right: 18px; font-size: 40px; line-height: 1; background: none; border: 0; color: var(--ink); cursor: pointer; }

/* ---------- footer ---------- */
.footer { text-align: center; padding: 60px 16px 40px; border-top: 1px solid var(--line); }
.footer img { width: 72px; height: 72px; margin: 0 auto 10px; border-radius: 50%; object-fit: cover; box-shadow: var(--glow); }
.footer-name { font-family: var(--serif); font-weight: 700; font-size: 20px; margin: 0; }
.footer-links a { color: var(--cyan); }
.disclaimer { color: var(--muted); font-size: 12px; max-width: 640px; margin: 18px auto 0; }

.toast { position: fixed; left: 50%; bottom: 24px; z-index: 90; transform: translate(-50%, 140%); padding: 12px 20px; border-radius: 12px; background: #0b1440; border: 1px solid var(--cyan); box-shadow: var(--glow); transition: transform .35s; font-weight: 600; }
.toast.show { transform: translate(-50%, 0); }

/* ---------- reveal ---------- */
.reveal { opacity: 0; transform: translateY(36px); transition: opacity .9s ease, transform .9s cubic-bezier(.2, .8, .2, 1); }
.reveal.in { opacity: 1; transform: none; }

/* ---------- responsive ---------- */
@media (max-width: 900px) {
  .hero { grid-template-columns: 1fr; text-align: center; min-height: auto; padding-top: 10px; }
  .hero-art { max-width: 420px; }
  .lead, .ca { margin-left: auto; margin-right: auto; }
  .cta { justify-content: center; }
  .prayer { grid-template-columns: 1fr; }
  .nav nav { display: none; }
  .wallet-btn { margin-left: auto; }
}
@media (max-width: 520px) {
  .prayer-card { padding: 22px; }
  .prayer-row { flex-direction: column; align-items: stretch; }
  .cta .btn { flex: 1 1 100%; }
  .marquee-track { font-size: 18px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .reveal { opacity: 1; transform: none; }
}
