@import url("https://fonts.googleapis.com/css2?family=Manrope:wght@400;500;600;700;800&family=Unbounded:wght@500;700;800&display=swap");

:root {
  --bg: #0b0b0d;
  --bg-2: #121214;
  --fg: #f7f7f8;
  --muted: #a1a1aa;
  --card: rgba(38, 38, 42, 0.72);
  --card-solid: #1a1a1e;
  --border: rgba(255, 255, 255, 0.09);
  --accent: #e5352b;
  --accent-rgb: 229, 53, 43;
  --accent-soft: rgba(229, 53, 43, 0.18);
  --gold: #e8c36a;
  --success: #34be78;
  --radius: 12px;
  --font: "Manrope", ui-sans-serif, system-ui, sans-serif;
  --display: "Unbounded", "Manrope", sans-serif;
  --shadow: 0 24px 60px -28px rgba(0, 0, 0, 0.75);
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font);
  color: var(--fg);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  line-height: 1.5;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button, input { font-family: inherit; }

.grain {
  pointer-events: none;
  position: fixed;
  inset: 0;
  z-index: 80;
  opacity: 0.045;
  mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='180' height='180' filter='url(%23n)' opacity='.55'/%3E%3C/svg%3E");
}

.wrap {
  width: min(1180px, calc(100% - 48px));
  margin: 0 auto;
}

/* ===== HEADER ===== */
.top {
  position: sticky;
  top: 0;
  z-index: 40;
  background: linear-gradient(180deg, rgba(11,11,13,0.55), rgba(11,11,13,0.12) 70%, transparent);
  backdrop-filter: blur(16px);
}
.top-inner {
  display: flex;
  align-items: center;
  gap: 36px;
  padding: 18px 0;
}
.brand {
  display: flex;
  align-items: baseline;
  gap: 7px;
  flex-shrink: 0;
}
.brand strong {
  font-family: var(--display);
  font-size: 20px;
  font-weight: 800;
  letter-spacing: -0.03em;
}
.brand span {
  font-family: var(--display);
  font-size: 20px;
  font-weight: 500;
  color: var(--muted);
  letter-spacing: -0.03em;
}
.nav {
  display: flex;
  align-items: center;
  gap: 22px;
}
.nav a {
  position: relative;
  color: var(--muted);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  padding: 4px 0 10px;
  transition: color .2s;
}
.nav a:hover, .nav a.active { color: var(--fg); }
.nav a::after {
  content: "";
  position: absolute;
  left: 0; bottom: 0;
  width: 100%; height: 2px;
  border-radius: 999px;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .28s ease;
}
.nav a.active::after, .nav a:hover::after { transform: scaleX(1); }
.nav a:hover::after { transform: scaleX(0.5); }
.nav a.active:hover::after { transform: scaleX(1); }

.top-actions {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 10px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: none;
  border-radius: 10px;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  transition: background .18s, transform .15s, border-color .18s, box-shadow .18s;
}
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(1px) scale(0.985); }
.btn-primary {
  background: var(--accent);
  color: #fff;
  box-shadow: 0 8px 18px rgba(var(--accent-rgb), 0.28);
  padding: 12px 20px;
}
.btn-primary:hover { background: #f04438; }
.btn-ghost {
  background: rgba(255,255,255,0.05);
  color: var(--fg);
  border: 1px solid var(--border);
  padding: 11px 18px;
}
.btn-ghost:hover { border-color: rgba(255,255,255,0.2); }
.btn-lg { padding: 16px 26px; font-size: 15px; border-radius: 12px; }
.btn-block { width: 100%; }

/* ===== HERO ===== */
.hero {
  position: relative;
  width: 100%;
  min-height: 100svh;
  overflow: hidden;
  margin: -74px 0 36px;
}
.hero img.hero-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 42%;
}
.hero-dim {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(8,8,10,0.22) 0%, rgba(8,8,10,0.28) 42%, rgba(11,11,13,0.94) 100%),
    radial-gradient(ellipse 80% 50% at 20% 80%, rgba(var(--accent-rgb), 0.22), transparent 60%);
}
.hero-copy {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  min-height: 100svh;
  padding: 120px 0 64px;
}
.kicker {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 18px;
}
.kicker i {
  width: 28px; height: 2px;
  background: var(--accent);
  border-radius: 99px;
  box-shadow: 0 0 12px rgba(var(--accent-rgb), 0.8);
}
.hero h1 {
  font-family: var(--display);
  font-size: clamp(42px, 7vw, 84px);
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 0.92;
  max-width: 12ch;
}
.hero h1 em {
  font-style: normal;
  color: var(--accent);
}
.hero p.lead {
  margin-top: 22px;
  max-width: 520px;
  color: rgba(247,247,248,0.82);
  font-size: 17px;
  font-weight: 500;
}
.hero-ctas {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 32px;
}
.hero-meta {
  position: absolute;
  left: 50%;
  bottom: 56px;
  z-index: 2;
  width: min(1180px, calc(100% - 48px));
  transform: translateX(-50%);
  display: flex;
  justify-content: flex-end;
  pointer-events: none;
}
.hero-meta .live {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  font-weight: 700;
  color: var(--success);
}
.live-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--success);
  box-shadow: 0 0 0 0 rgba(52,190,120,0.7);
  animation: pulse 1.8s infinite;
}
@keyframes pulse {
  70% { box-shadow: 0 0 0 10px rgba(52,190,120,0); }
}

/* ===== STATS ===== */
.stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  margin-bottom: 72px;
}
.stat {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px 22px;
}
.stat b {
  display: block;
  font-family: var(--display);
  font-size: 28px;
  font-weight: 700;
  letter-spacing: -0.03em;
}
.stat span {
  color: var(--muted);
  font-size: 12px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  font-weight: 600;
}

/* ===== SECTIONS ===== */
.sec { padding: 20px 0 80px; }
.sec-title {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 14px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--muted);
}
.sec-title::before {
  content: "";
  width: 6px; height: 18px;
  border-radius: 99px;
  background: var(--accent);
  box-shadow: 0 0 16px rgba(var(--accent-rgb), 0.55);
}
.sec h2 {
  font-family: var(--display);
  font-size: clamp(28px, 4vw, 42px);
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 1.1;
  margin-bottom: 16px;
}
.sec .sub {
  max-width: 620px;
  color: var(--muted);
  font-size: 16px;
  margin-bottom: 32px;
}

.split {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 48px;
  align-items: center;
}
.split p {
  color: rgba(247,247,248,0.82);
  margin-bottom: 14px;
  font-size: 16px;
}
.photo-stack {
  position: relative;
  min-height: 420px;
}
.photo-stack img {
  width: 78%;
  border-radius: 16px;
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
  object-fit: cover;
  height: 320px;
}
.photo-stack img:first-child {
  position: relative;
  z-index: 2;
}
.photo-stack img:last-child {
  position: absolute;
  right: 0;
  bottom: 0;
  width: 62%;
  height: 240px;
  z-index: 1;
  transform: rotate(3deg);
  filter: saturate(1.08);
}

.features {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  margin-top: 8px;
}
.feat {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 22px;
  transition: border-color .18s, transform .18s, box-shadow .18s;
}
.feat:hover {
  border-color: rgba(var(--accent-rgb), 0.4);
  transform: translateY(-3px);
  box-shadow: 0 12px 32px -18px rgba(var(--accent-rgb), 0.55);
}
.feat .ico {
  width: 38px; height: 38px;
  border-radius: 10px;
  display: grid; place-items: center;
  background: var(--accent-soft);
  color: var(--accent);
  font-size: 18px;
  margin-bottom: 14px;
}
.feat h3 { font-size: 16px; font-weight: 800; margin-bottom: 6px; }
.feat p { color: var(--muted); font-size: 14px; }

/* ===== GALLERY ===== */
.gallery {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  grid-template-rows: 220px 220px;
  gap: 12px;
}
.gallery figure {
  position: relative;
  overflow: hidden;
  border-radius: 16px;
  border: 1px solid var(--border);
  margin: 0;
}
.gallery figure:first-child { grid-row: 1 / 3; }
.gallery img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform .6s ease;
}
.gallery figure:hover img { transform: scale(1.06); }
.gallery figcaption {
  position: absolute;
  left: 14px; bottom: 12px;
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  font-weight: 700;
  text-shadow: 0 8px 18px #000;
}

/* ===== CTA BAND ===== */
.cta-band {
  position: relative;
  overflow: hidden;
  border-radius: 20px;
  min-height: 280px;
  display: grid;
  place-items: center;
  text-align: center;
  padding: 56px 24px;
  margin-bottom: 40px;
}
.cta-band img {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
}
.cta-band::after {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(90deg, rgba(11,11,13,0.82), rgba(11,11,13,0.55) 50%, rgba(229,53,43,0.28));
}
.cta-band .inner { position: relative; z-index: 1; }
.cta-band h2 { margin-bottom: 10px; }
.cta-band p { color: rgba(247,247,248,0.8); margin-bottom: 22px; }

/* ===== FOOTER ===== */
.foot {
  border-top: 1px solid var(--border);
  padding: 28px 0 40px;
  display: flex;
  justify-content: space-between;
  gap: 16px;
  color: var(--muted);
  font-size: 13px;
}
.foot b { color: var(--fg); font-weight: 600; }
.ver { opacity: 0.45; letter-spacing: 0.14em; font-size: 11px; }

/* ===== DONATE ===== */
.page-hero {
  position: relative;
  border-radius: 20px;
  overflow: hidden;
  min-height: 280px;
  margin-bottom: 36px;
}
.page-hero img {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
}
.page-hero .dim {
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(11,11,13,0.25), rgba(11,11,13,0.88));
}
.page-hero .copy {
  position: relative;
  z-index: 1;
  padding: 56px 48px 36px;
}
.page-hero h1 {
  font-family: var(--display);
  font-size: clamp(32px, 5vw, 52px);
  letter-spacing: -0.04em;
  font-weight: 800;
}

.donate-grid {
  display: grid;
  grid-template-columns: 1fr 340px;
  gap: 28px;
  align-items: start;
  padding-bottom: 80px;
}
.nick-card, .pay-card, .pack, .vip {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}
.nick-card, .pay-card { padding: 20px; margin-bottom: 18px; }
.field-lbl {
  display: block;
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 700;
  margin-bottom: 8px;
}
.field {
  width: 100%;
  height: 48px;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: rgba(255,255,255,0.04);
  color: var(--fg);
  padding: 0 14px;
  font-size: 15px;
  font-weight: 600;
  outline: none;
}
.field:focus { border-color: rgba(var(--accent-rgb), 0.7); }

.packs {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin-bottom: 28px;
}
.pack, .vip {
  padding: 18px;
  cursor: pointer;
  text-align: left;
  color: inherit;
  width: 100%;
  transition: border-color .18s, transform .15s, background .18s;
}
.pack:hover, .vip:hover {
  border-color: rgba(var(--accent-rgb), 0.45);
  transform: translateY(-2px);
}
.pack.on, .vip.on {
  border-color: var(--accent);
  background: linear-gradient(180deg, rgba(var(--accent-rgb), 0.16), rgba(38,38,42,0.72));
  box-shadow: 0 0 0 1px rgba(var(--accent-rgb), 0.25);
}
.pack .tag, .vip .tag {
  display: inline-block;
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-weight: 800;
  color: var(--gold);
  margin-bottom: 8px;
}
.pack b {
  display: block;
  font-family: var(--display);
  font-size: 26px;
  letter-spacing: -0.03em;
}
.pack .bonus { color: var(--success); font-size: 13px; font-weight: 700; margin-top: 4px; }
.pack .price, .vip .price {
  margin-top: 10px;
  font-size: 18px;
  font-weight: 800;
}
.pack .old {
  color: var(--muted);
  text-decoration: line-through;
  font-size: 13px;
  font-weight: 600;
  margin-left: 6px;
}

.vips {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}
.vip h3 { font-size: 16px; font-weight: 800; }
.vip ul {
  margin: 10px 0 0;
  padding-left: 16px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.55;
}

.checkout {
  position: sticky;
  top: 92px;
  padding: 22px;
}
.checkout h3 { font-size: 16px; font-weight: 800; margin-bottom: 14px; }
.row {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  font-size: 14px;
  color: var(--muted);
  margin-bottom: 8px;
}
.row b { color: var(--fg); }
.total {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin: 16px 0;
  padding-top: 14px;
  border-top: 1px solid var(--border);
}
.total span { color: var(--muted); font-size: 12px; letter-spacing: 0.14em; text-transform: uppercase; font-weight: 700; }
.total b {
  font-family: var(--display);
  font-size: 28px;
  letter-spacing: -0.03em;
}
.pays {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin: 12px 0 16px;
}
.pay {
  border: 1px solid var(--border);
  background: rgba(255,255,255,0.04);
  color: var(--fg);
  border-radius: 10px;
  height: 44px;
  font-weight: 700;
  cursor: pointer;
}
.pay.on {
  border-color: var(--accent);
  background: var(--accent-soft);
}
.hint { font-size: 12px; color: var(--muted); margin-top: 12px; line-height: 1.45; }

.toast {
  position: fixed;
  left: 50%;
  bottom: 28px;
  transform: translateX(-50%) translateY(20px);
  background: #1c1c20;
  border: 1px solid var(--border);
  color: var(--fg);
  padding: 12px 18px;
  border-radius: 12px;
  font-weight: 600;
  opacity: 0;
  pointer-events: none;
  z-index: 90;
  transition: .25s ease;
}
.toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }

.burger {
  display: none;
  width: 42px; height: 42px;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: rgba(255,255,255,0.05);
  color: #fff;
  font-size: 18px;
}

@media (max-width: 900px) {
  .wrap { width: min(100% - 28px, 1180px); }
  .nav {
    display: none;
    position: absolute;
    top: 72px; left: 14px; right: 14px;
    flex-direction: column;
    align-items: stretch;
    gap: 4px;
    padding: 12px;
    background: #161618;
    border: 1px solid var(--border);
    border-radius: 14px;
  }
  .nav.open { display: flex; }
  .nav a { padding: 12px 10px; }
  .hero-meta { display: none; }
  .burger { display: grid; place-items: center; margin-left: auto; }
  .top-actions .btn-ghost { display: none; }
  .hero-copy { padding: 108px 0 48px; min-height: 100svh; }
  .stats, .features, .packs, .vips { grid-template-columns: 1fr 1fr; }
  .split, .donate-grid, .gallery { grid-template-columns: 1fr; }
  .gallery { grid-template-rows: 220px 180px 180px 180px; }
  .gallery figure:first-child { grid-row: auto; height: 240px; }
  .photo-stack { min-height: 300px; }
  .foot { flex-direction: column; }
}
@media (max-width: 560px) {
  .stats, .features, .packs, .vips { grid-template-columns: 1fr; }
}
