:root {
  --bg: #0c0a08;
  --bg-2: #15110c;
  --card: #1b160f;
  --line: #3a2e1c;
  --gold: #e8c478;
  --gold-2: #c9a04f;
  --cream: #f5ecdc;
  --muted: #b3a489;
  --red: #b33a2e;
  --green: #5fbf77;
  --paper: #f3ead7;
  --ink: #2a2118;
  --radius: 14px;
  --serif: "Playfair Display", Georgia, serif;
  --sans: "Inter", system-ui, -apple-system, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, monospace;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background:
    radial-gradient(ellipse 70% 50% at 25% 0%, rgba(201,160,79,.18), transparent 70%),
    var(--bg);
  color: var(--cream);
  font-family: var(--sans);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: var(--gold); }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; border-radius: 4px; }
main:focus { outline: none; }

.skip {
  position: absolute; left: 12px; top: -60px; z-index: 30;
  background: var(--gold); color: #1a1208; font-weight: 600;
  padding: 8px 14px; border-radius: 8px; text-decoration: none;
}
.skip:focus { top: 12px; }

/* NAV */
.nav {
  position: sticky; top: 0; z-index: 10;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 12px clamp(16px, 4vw, 40px);
  background: rgba(12,10,8,.82);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--cream); font-family: var(--mono); font-weight: 600; }
.brand img { border-radius: 50%; }
.nav-links { display: flex; gap: 24px; }
.nav-links a { color: var(--muted); text-decoration: none; font-size: 14px; }
.nav-links a:hover { color: var(--gold); }
.nav-actions { display: flex; align-items: center; gap: 10px; }

/* HYMN TOGGLE */
.sound {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 7px 14px; border-radius: 999px;
  border: 1px solid var(--line); background: var(--card);
  color: var(--muted); font: 600 14px var(--sans); cursor: pointer;
  transition: border-color .15s, color .15s;
}
.sound:hover { border-color: var(--gold-2); color: var(--cream); }
.sound .icon-on { display: none; }
.sound.playing { color: var(--gold); border-color: var(--gold-2); }
.sound.playing .icon-on { display: inline; }
.sound.playing .icon-off { display: none; }

/* BUTTONS */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 12px 20px; border-radius: 999px;
  border: 1px solid var(--line); background: var(--card);
  color: var(--cream); text-decoration: none; font-family: inherit; font-weight: 600; font-size: 15px;
  cursor: pointer; transition: border-color .15s, transform .15s;
}
.btn:hover { border-color: var(--gold-2); transform: translateY(-1px); }
.btn-gold { background: linear-gradient(180deg, var(--gold), var(--gold-2)); color: #1a1208; border-color: transparent; }
.btn-sm { padding: 8px 16px; font-size: 14px; }

/* HERO */
.hero {
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr);
  align-items: center; gap: clamp(24px, 5vw, 64px);
  max-width: 1120px; margin: 0 auto;
  padding: clamp(40px, 8vw, 96px) clamp(16px, 4vw, 40px) 40px;
}
.hero-coin img {
  width: 100%; height: auto; aspect-ratio: 1; max-width: 440px; margin: 0 auto; border-radius: 50%;
  box-shadow: 0 0 80px rgba(232,196,120,.25), 0 20px 60px rgba(0,0,0,.6);
  animation: float 6s ease-in-out infinite;
}
@keyframes float { 50% { transform: translateY(-10px); } }
@media (prefers-reduced-motion: reduce) { .hero-coin img, .stat-value:empty::before { animation: none; } html { scroll-behavior: auto; } }

.eyebrow { font-family: var(--mono); font-size: 13px; color: var(--muted); letter-spacing: .08em; text-transform: uppercase; margin: 0 0 8px; }
h1 {
  font-family: var(--serif); font-weight: 800;
  font-size: clamp(44px, 7vw, 84px); line-height: 1; margin: 0;
  color: var(--gold);
}
.ticker {
  display: inline-block; vertical-align: middle; margin-left: .15em;
  font-family: var(--mono); font-weight: 600; font-size: .26em; letter-spacing: .04em;
  color: var(--cream); border: 1px solid var(--line); background: var(--card);
  border-radius: 999px; padding: .3em .7em;
}
.tagline { font-family: var(--serif); font-style: italic; font-size: clamp(20px, 2.6vw, 28px); margin: 12px 0 14px; }
.lead { color: var(--muted); font-size: 17px; max-width: 36em; margin: 0 0 24px; }
.lead a { color: var(--cream); text-decoration-color: var(--gold-2); text-underline-offset: 3px; }

.ca {
  display: flex; align-items: center; gap: 10px;
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 10px 10px 10px 14px; margin-bottom: 20px;
}
.ca-label { font-family: var(--mono); font-size: 12px; color: var(--muted); }
.ca code { font-family: var(--mono); font-size: 14px; flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.copy {
  font: 600 13px var(--sans); cursor: pointer; min-width: 70px;
  background: var(--gold); color: #1a1208; border: 0; border-radius: 8px; padding: 8px 14px;
}
.copy.copied { background: var(--green); }
.cta-row { display: flex; flex-wrap: wrap; gap: 10px; }
.cta-row.center { justify-content: center; }

.facts { list-style: none; padding: 0; margin: 22px 0 0; display: flex; flex-wrap: wrap; gap: 8px 18px; font-size: 14px; color: var(--muted); }
.facts li { display: flex; align-items: center; gap: 6px; }
.facts li::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--gold-2); }
.facts strong { color: var(--cream); }

/* STATS */
.stats {
  max-width: 1120px; margin: 0 auto 24px; padding: 0 clamp(16px, 4vw, 40px);
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px;
}
.stat { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; }
.stat-label { display: block; font-size: 13px; color: var(--muted); }
.stat-value { display: block; font-family: var(--mono); font-size: clamp(20px, 2.4vw, 28px); font-weight: 600; margin-top: 4px; min-height: 1.6em; }
.stat-value:empty::before {
  content: ""; display: block; width: 70%; height: 1em; margin-top: .3em; border-radius: 6px;
  background: linear-gradient(90deg, var(--line), #4d3d25, var(--line)); background-size: 200% 100%;
  animation: shimmer 1.4s linear infinite;
}
@keyframes shimmer { to { background-position: -200% 0; } }
.stat-value.up { color: var(--green); }
.stat-value.down { color: #e07060; }
.stats-note { grid-column: 1 / -1; margin: 0; font-size: 12px; color: var(--muted); text-align: right; }
.stats-note a { color: var(--muted); }
.stats.stale .stat-value { opacity: .5; }

/* SECTIONS */
.section { max-width: 820px; margin: 0 auto; padding: clamp(48px, 8vw, 88px) clamp(16px, 4vw, 40px); scroll-margin-top: 40px; }
.section-title { font-family: var(--serif); font-size: clamp(30px, 4vw, 44px); margin: 0 0 24px; color: var(--gold); }
.section-lead { color: var(--muted); margin: -12px 0 24px; }

/* LETTER */
.letter {
  background: var(--paper); color: var(--ink);
  border-radius: 6px; padding: clamp(28px, 5vw, 56px);
  box-shadow: 0 30px 80px rgba(0,0,0,.5);
  font-family: var(--serif); font-size: 19px; line-height: 1.7;
  transform: rotate(-.6deg);
}
.letter-head { display: flex; align-items: center; gap: 14px; border-bottom: 2px solid var(--ink); padding-bottom: 14px; margin-bottom: 24px; }
.letter-head img { border-radius: 50%; }
.letter-org { margin: 0; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; font-size: 16px; }
.letter-sub { margin: 0; font-family: var(--mono); font-size: 12px; color: #6b5a44; }
.letter h2 { font-size: clamp(26px, 3.4vw, 34px); margin: 0 0 20px; }
.letter p { margin: 0 0 16px; }
.signature { font-style: italic; margin-top: 28px !important; }

/* STEPS */
.steps { list-style: none; padding: 0; margin: 0 0 28px; display: grid; gap: 14px; grid-template-columns: repeat(3, minmax(0, 1fr)); }
.steps-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.steps li { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; }
.step-n { display: inline-grid; place-items: center; width: 32px; height: 32px; border-radius: 50%; background: var(--gold); color: #1a1208; font-weight: 700; }
.steps h3 { font-size: 17px; margin: 14px 0 6px; }
.steps p { margin: 0; color: var(--muted); font-size: 15px; }
.receipts { border-left: 3px solid var(--gold); padding: 4px 0 4px 18px; }
.receipts p { margin: 0 0 14px; }

/* HOW TO BUY */
#buy .ca { margin-bottom: 12px; }
.warning { font-size: 14px; color: var(--muted); margin: 0 0 20px; }
.warning::before { content: "⚠ "; color: var(--gold); }

/* HYMN */
.hymn-intro { color: var(--muted); font-style: italic; margin: -8px 0 24px; }
.chorus {
  margin: 0 0 20px; padding: 28px; border-radius: var(--radius);
  background: linear-gradient(180deg, rgba(232,196,120,.10), rgba(232,196,120,.02));
  border: 1px solid var(--line);
  font-family: var(--serif); font-size: clamp(19px, 2.2vw, 23px); line-height: 1.7;
}
.chorus p { margin: 0; }
.lyrics { margin-bottom: 24px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--card); }
.lyrics summary { cursor: pointer; padding: 16px 20px; font-weight: 600; }
.lyrics-body { padding: 0 20px 20px; font-family: var(--serif); font-size: 17px; }
.lyrics-body h4 { font-family: var(--mono); font-size: 12px; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); margin: 22px 0 6px; }
.lyrics-body p { margin: 0; }

/* FAQ */
.faq-list { display: grid; gap: 10px; }
.faq-item { border: 1px solid var(--line); border-radius: var(--radius); background: var(--card); }
.faq-item[open] { border-color: var(--gold-2); }
.faq-item summary { position: relative; padding: 16px 52px 16px 20px; cursor: pointer; list-style: none; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: "+"; position: absolute; right: 20px; top: 50%; transform: translateY(-50%);
  color: var(--gold); font: 400 22px/1 var(--mono); transition: transform .2s;
}
.faq-item[open] summary::after { transform: translateY(-50%) rotate(45deg); }
.faq-item h3 { margin: 0; font-size: 17px; font-weight: 600; }
.faq-item p { margin: 0; padding: 0 20px 18px; color: var(--muted); }
.ca-inline { font-family: var(--mono); font-size: 14px; color: var(--cream); word-break: break-all; }

/* JOIN */
.join { text-align: center; }
.join p { color: var(--muted); margin: -8px 0 24px; }

/* FOOTER */
.footer { border-top: 1px solid var(--line); padding: 40px clamp(16px, 4vw, 40px) 48px; max-width: 820px; margin: 0 auto; font-size: 14px; color: var(--muted); }
.footer-small { font-size: 12px; }
.footer-grid { display: grid; grid-template-columns: minmax(0, 1.6fr) repeat(3, minmax(0, 1fr)); gap: 24px; margin-bottom: 28px; }
.footer-brand p { margin: 8px 0 0; }
.footer-ca code { font-family: var(--mono); font-size: 12px; color: var(--cream); word-break: break-all; }
.footer-h { margin: 0 0 8px; font-family: var(--mono); font-size: 12px; text-transform: uppercase; letter-spacing: .08em; }
.footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.footer nav a { color: var(--cream); text-decoration: none; }
.footer nav a:hover { color: var(--gold); }

/* TOAST */
.toast {
  position: fixed; left: 50%; bottom: 28px; transform: translate(-50%, 20px);
  background: var(--gold); color: #1a1208; font-weight: 600;
  padding: 10px 18px; border-radius: 999px; opacity: 0; pointer-events: none;
  transition: opacity .2s, transform .2s;
}
.toast.show { opacity: 1; transform: translate(-50%, 0); }

/* RESPONSIVE */
@media (max-width: 820px) {
  .nav { flex-wrap: wrap; row-gap: 4px; padding-bottom: 6px; }
  .nav-links {
    order: 3; width: 100%; gap: 20px; padding: 2px 0;
    overflow-x: auto; scrollbar-width: none;
  }
  .nav-links::-webkit-scrollbar { display: none; }
  .nav-links a { white-space: nowrap; font-size: 13px; }
  .nav-links a:first-child { margin-left: auto; }
  .nav-links a:last-child { margin-right: auto; }
  .section { scroll-margin-top: 72px; }
  .hero { grid-template-columns: minmax(0, 1fr); text-align: center; }
  .hero-coin img { max-width: 280px; }
  .lead { margin-left: auto; margin-right: auto; }
  .hero .cta-row, .facts { justify-content: center; }
  .stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .steps, .steps-2 { grid-template-columns: minmax(0, 1fr); }
  .stats-note { text-align: center; }
  .footer-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .footer-brand { grid-column: 1 / -1; }
}
@media (max-width: 420px) {
  .footer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 350px) {
  .nav-actions .sound span { display: none; }
}
