:root {
  --ink: #060908;
  --line: rgba(232, 196, 122, 0.22);
  --gold: #e0b85a;
  --gold-hot: #f6dfa0;
  --gold-deep: #9a6f2a;
  --mist: #b7c8bb;
  --text: #f2f5f0;
  --muted: #aab9ae;
  --font-display: "IM Fell English", Palatino, serif;
  --font-body: "Manrope", "Segoe UI", sans-serif;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--text);
  background: var(--ink);
  overflow-x: hidden;
}
::selection { background: rgba(224,184,90,.4); color: #fff; }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }

.sky {
  position: fixed; inset: 0; z-index: 0; pointer-events: none;
  background: linear-gradient(180deg, #0a1018, #152018 40%, #2a1c12 70%, #0d100e);
}
.embers {
  position: fixed; inset: 0; z-index: 1; pointer-events: none; opacity: .5;
  background-image:
    radial-gradient(1.5px 1.5px at 12% 28%, rgba(246,223,160,.7), transparent),
    radial-gradient(1px 1px at 78% 18%, rgba(246,223,160,.5), transparent),
    radial-gradient(1.5px 1.5px at 62% 72%, rgba(210,100,47,.45), transparent);
  animation: drift 16s var(--ease) infinite alternate;
}
@keyframes drift { to { transform: translateY(-12px); } }

.top, main, .foot { position: relative; z-index: 2; }

.top {
  display: flex; align-items: center; gap: 1rem;
  padding: .85rem clamp(1rem,4vw,2.2rem);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(14px);
  background: rgba(6,9,8,.58);
  position: sticky; top: 0; z-index: 30;
}
.brand {
  display: inline-flex; align-items: center; gap: .65rem;
  font-family: var(--font-display); letter-spacing: .05em; font-size: 1.02rem;
}
.brand-logo {
  width: 36px; height: 36px; border-radius: 10px;
  border: 1px solid var(--line);
  box-shadow: 0 0 18px rgba(224,184,90,.25);
}
.nav { display: none; margin-left: auto; gap: 1.15rem; font-weight: 600; color: var(--muted); }
.nav a { position: relative; }
.nav a::after {
  content: ""; position: absolute; left: 0; bottom: -3px; width: 0; height: 1px;
  background: var(--gold); transition: width .25s var(--ease);
}
.nav a:hover { color: var(--gold-hot); }
.nav a:hover::after { width: 100%; }
.top-cta { display: none; margin-left: .4rem; }

.btn {
  display: inline-flex; align-items: center; justify-content: center;
  border-radius: 999px; border: 1px solid transparent;
  padding: .72rem 1.25rem; font-weight: 700; font-family: var(--font-body);
  transition: transform .2s var(--ease), box-shadow .2s var(--ease), background .2s var(--ease);
  cursor: pointer;
}
.btn:hover { transform: translateY(-2px); }
.btn-lg { padding: .95rem 1.5rem; }
.btn-gold {
  background: linear-gradient(180deg, #f3d78a, var(--gold) 45%, var(--gold-deep));
  color: #1a1206; box-shadow: 0 10px 28px rgba(224,184,90,.38);
}
.btn-ghost {
  background: rgba(255,255,255,.04); border-color: var(--line); color: var(--text);
  backdrop-filter: blur(8px);
}
.btn-ghost:hover { border-color: var(--gold); color: var(--gold-hot); }
.btn.is-disabled, .dl-tile.is-disabled { opacity: .45; pointer-events: none; }

.hero-wrap { position: relative; min-height: 86vh; display: grid; align-items: center; }
.hero-bg { position: absolute; inset: 0; overflow: hidden; }
.hero-bg img {
  width: 100%; height: 100%; object-fit: cover; opacity: .46;
  transform: scale(1.05); animation: ken 26s var(--ease) infinite alternate;
}
.hero-bg::after {
  content: ""; position: absolute; inset: 0;
  background:
    linear-gradient(90deg, rgba(6,9,8,.9), rgba(6,9,8,.4) 65%, rgba(6,9,8,.55)),
    linear-gradient(180deg, rgba(6,9,8,.25), transparent 40%, rgba(6,9,8,.92));
}
@keyframes ken { to { transform: scale(1.12) translate(-1%, -1%); } }

.hero {
  position: relative;
  display: grid; gap: 1.5rem; align-items: center;
  padding: clamp(3rem,8vw,5.5rem) clamp(1rem,4vw,2.2rem) 3rem;
}
.hero-copy h1 {
  margin: 0 0 .9rem; font-family: var(--font-display); font-weight: 400;
  font-size: clamp(2.8rem, 9vw, 5rem); line-height: .98;
  text-shadow: 0 10px 40px rgba(0,0,0,.5);
}
.hero-copy h1 span { color: var(--gold-hot); text-shadow: 0 0 36px rgba(224,184,90,.35); }
.lead { max-width: 34rem; color: var(--mist); font-size: 1.12rem; line-height: 1.55; margin: 0 0 1.5rem; }
.hero-cta { display: flex; flex-wrap: wrap; gap: .8rem; }
.hero-badge {
  justify-self: center;
  filter: drop-shadow(0 20px 40px rgba(0,0,0,.55));
  animation: float 5s var(--ease) infinite alternate;
}
.hero-badge img {
  width: min(240px, 55vw); height: auto; border-radius: 28px;
  border: 1px solid rgba(224,184,90,.35);
}
@keyframes float { to { transform: translateY(-10px); } }

.section { padding: 4rem clamp(1rem,4vw,2.2rem); }
.section-alt { border-block: 1px solid var(--line); background: rgba(18,28,23,.45); }
.section-head { max-width: 40rem; margin-bottom: 1.8rem; }
.section-head h2, .about-copy h2, .download-card h2, .donate-copy h2 {
  margin: 0 0 .75rem; font-family: var(--font-display); font-weight: 400;
  font-size: clamp(1.9rem,4vw,2.7rem);
}
.section-head p, .about-copy p, .donate-copy p {
  margin: 0; color: var(--muted); line-height: 1.6; font-size: 1.05rem;
}

.about-grid {
  display: grid; gap: 1.4rem; align-items: center;
}
.about-points {
  margin: 1.2rem 0 0; padding-left: 1.1rem; color: var(--mist); line-height: 1.7;
}
.about-points strong { color: var(--gold-hot); }
.about-art {
  margin: 0; border-radius: 18px; overflow: hidden;
  border: 1px solid var(--line);
  box-shadow: 0 24px 50px rgba(0,0,0,.4);
}
.about-art img { width: 100%; height: auto; object-fit: cover; transition: transform 1.2s var(--ease); }
.about-art:hover img { transform: scale(1.04); }

.mod-grid { display: grid; gap: 1rem; }
.mod-card {
  display: grid; gap: 0;
  border-radius: 18px; overflow: hidden;
  border: 1px solid var(--line);
  background: rgba(10,14,12,.85);
  transition: transform .25s var(--ease), border-color .25s var(--ease);
}
.mod-card:hover { transform: translateY(-4px); border-color: rgba(224,184,90,.5); }
.mod-card img {
  width: 100%; aspect-ratio: 16/10; object-fit: cover;
}
.mod-card > div { padding: 1.1rem 1.15rem 1.25rem; }
.mod-card h3 {
  margin: 0 0 .4rem; font-family: var(--font-display); font-weight: 400;
  color: var(--gold-hot); font-size: 1.35rem;
}
.mod-card p { margin: 0; color: var(--muted); line-height: 1.5; }

.download-card {
  border: 1px solid var(--line); border-radius: 18px; padding: 1.5rem;
  background:
    radial-gradient(600px 240px at 90% 0%, rgba(210,100,47,.2), transparent 55%),
    rgba(15,22,18,.85);
  box-shadow: 0 24px 60px rgba(0,0,0,.45);
}
.dl-grid { display: grid; gap: .8rem; }
.dl-tile {
  display: grid; gap: .35rem; padding: 1.15rem 1.2rem; border-radius: 14px;
  border: 1px solid var(--line); background: rgba(0,0,0,.28);
  transition: border-color .2s var(--ease), transform .2s var(--ease), background .2s var(--ease);
}
.dl-tile:hover { border-color: var(--gold); transform: translateY(-2px); background: rgba(224,184,90,.08); }
.dl-tile strong { font-size: 1.05rem; }
.dl-tile span { color: var(--muted); font-size: .9rem; }
.download-note { margin: 1rem 0 0; color: var(--muted); font-size: .92rem; }

.steps {
  margin: 0; padding-left: 1.2rem; max-width: 40rem;
  color: var(--mist); line-height: 1.65; font-size: 1.05rem;
}
.steps li { margin: 0 0 .85rem; }
.steps strong { color: var(--gold-hot); }

.donate-grid {
  display: grid; gap: 1.4rem; align-items: center;
  border: 1px solid var(--line); border-radius: 20px; padding: 1.2rem;
  background:
    radial-gradient(500px 220px at 10% 0%, rgba(224,184,90,.16), transparent 55%),
    rgba(12,18,15,.9);
}
.donate-art {
  margin: 0; border-radius: 16px; overflow: hidden; border: 1px solid var(--line);
}
.donate-art img { width: 100%; aspect-ratio: 1; object-fit: cover; }
.donate-actions { display: flex; flex-wrap: wrap; gap: .8rem; align-items: center; margin-top: 1.2rem; }
.donate-hint { color: var(--muted); font-size: .92rem; }

.foot {
  padding: 2rem clamp(1rem,4vw,2.2rem) 2.5rem;
  border-top: 1px solid var(--line); color: var(--muted); font-size: .88rem;
}
.foot-brand {
  display: inline-flex; align-items: center; gap: .5rem;
  font-family: var(--font-display); color: var(--gold); margin-bottom: .35rem;
}
.foot-brand img { border-radius: 6px; }

.reveal {
  opacity: 0; transform: translateY(18px); filter: blur(5px);
  animation: rise .9s var(--ease) forwards;
}
.reveal:nth-child(2) { animation-delay: .08s; }
.reveal:nth-child(3) { animation-delay: .14s; }
.reveal:nth-child(4) { animation-delay: .2s; }
@keyframes rise { to { opacity: 1; transform: none; filter: none; } }

@media (min-width: 820px) {
  .nav, .top-cta { display: flex; }
  .hero { grid-template-columns: 1.2fr .8fr; }
  .about-grid { grid-template-columns: 1fr 1.05fr; gap: 2rem; }
  .mod-grid { grid-template-columns: 1fr 1fr; }
  .dl-grid { grid-template-columns: 1fr 1fr; }
  .donate-grid { grid-template-columns: .85fr 1.15fr; padding: 1.5rem; }
}

@media (prefers-reduced-motion: reduce) {
  .embers, .hero-bg img, .hero-badge, .reveal { animation: none; }
  .reveal { opacity: 1; transform: none; filter: none; }
  .btn:hover, .dl-tile:hover, .mod-card:hover { transform: none; }
}
