:root {
  --bg: #050505;
  --bg-soft: #0a0a0a;
  --panel: #111111;
  --panel-2: #181818;
  --orange: #f97316;
  --amber: #f59e0b;
  --text: #f5f5f5;
  --muted: #a3a3a3;
  --line: rgba(245, 158, 11, 0.16);
  --shadow: 0 22px 90px rgba(249, 115, 22, 0.14);
  --radius: 8px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-width: 320px;
  background: var(--bg);
  color: var(--text);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.6;
  overflow-x: hidden;
}

body.menu-open {
  overflow: hidden;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

.site-bg {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background:
    radial-gradient(circle at 50% 0%, rgba(249, 115, 22, 0.16), transparent 32rem),
    linear-gradient(180deg, #070707 0%, #050505 48%, #090909 100%);
}

.site-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  opacity: 0.18;
  background-image:
    linear-gradient(rgba(245, 158, 11, 0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(245, 158, 11, 0.05) 1px, transparent 1px);
  background-size: 72px 72px;
  mask-image: linear-gradient(to bottom, transparent, black 18%, black 78%, transparent);
}

.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 18px clamp(18px, 4vw, 56px);
  border-bottom: 1px solid transparent;
  background: rgba(5, 5, 5, 0.62);
  backdrop-filter: blur(18px);
  transition: border-color 180ms ease, background 180ms ease;
}

.header.is-scrolled {
  border-color: rgba(245, 158, 11, 0.13);
  background: rgba(5, 5, 5, 0.86);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  letter-spacing: 0;
}

.brand__mark {
  width: 34px;
  height: 34px;
  object-fit: contain;
  filter: drop-shadow(0 0 18px rgba(249, 115, 22, 0.35));
}

.brand__text {
  font-size: 1rem;
}

.nav {
  display: flex;
  align-items: center;
  gap: 8px;
}

.nav a {
  border: 1px solid transparent;
  border-radius: 999px;
  padding: 9px 13px;
  color: var(--muted);
  font-size: 0.92rem;
  transition: color 180ms ease, border-color 180ms ease, background 180ms ease;
}

.nav a:hover,
.nav a:focus-visible {
  color: var(--text);
  border-color: rgba(249, 115, 22, 0.24);
  background: rgba(249, 115, 22, 0.08);
  outline: none;
}

.menu-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border: 1px solid rgba(245, 158, 11, 0.24);
  border-radius: var(--radius);
  background: rgba(17, 17, 17, 0.92);
  cursor: pointer;
}

.menu-toggle span {
  display: block;
  width: 18px;
  height: 2px;
  margin: 4px auto;
  border-radius: 2px;
  background: var(--text);
  transition: transform 180ms ease, opacity 180ms ease;
}

.menu-open .menu-toggle span:nth-child(1) {
  transform: translateY(6px) rotate(45deg);
}

.menu-open .menu-toggle span:nth-child(2) {
  opacity: 0;
}

.menu-open .menu-toggle span:nth-child(3) {
  transform: translateY(-6px) rotate(-45deg);
}

.section {
  padding: 104px clamp(18px, 4vw, 56px);
}

.section--tight {
  padding-top: 72px;
  padding-bottom: 72px;
}

.container {
  width: min(1120px, 100%);
  margin: 0 auto;
}

.hero {
  display: grid;
  min-height: 100svh;
  place-items: center;
  padding-top: 104px;
  padding-bottom: 70px;
}

.hero__grid {
  display: grid;
  width: min(900px, 100%);
  grid-template-columns: 1fr;
  align-items: center;
}

.hero__main {
  min-width: 0;
  text-align: center;
}

.hero__logo-wrap {
  position: relative;
  width: min(280px, 62vw);
  height: min(280px, 62vw);
  margin: 0 auto 24px;
}

.hero__logo-wrap::before {
  content: "";
  position: absolute;
  inset: 10%;
  border-radius: 50%;
  background: rgba(249, 115, 22, 0.16);
  filter: blur(42px);
}

.hero__logo {
  position: relative;
  width: 100%;
  height: 100%;
  object-fit: contain;
  filter: drop-shadow(0 0 34px rgba(249, 115, 22, 0.32));
}

.eyebrow {
  margin: 0 0 10px;
  color: var(--amber);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  overflow-wrap: anywhere;
}

h1 {
  margin: 0;
  font-size: clamp(3.1rem, 10vw, 7.4rem);
  line-height: 0.92;
  letter-spacing: 0;
}

h2 {
  margin: 0;
  font-size: clamp(2rem, 5vw, 3.65rem);
  line-height: 1.05;
  letter-spacing: 0;
}

h3 {
  margin: 0 0 10px;
  font-size: 1.08rem;
  line-height: 1.25;
  letter-spacing: 0;
}

.hero__lead {
  max-width: 620px;
  margin: 22px auto 0;
  color: var(--muted);
  font-size: clamp(1.06rem, 2.4vw, 1.3rem);
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  margin-top: 34px;
}

.button {
  display: inline-flex;
  min-height: 46px;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(245, 158, 11, 0.24);
  border-radius: var(--radius);
  padding: 12px 18px;
  font: inherit;
  font-weight: 800;
  line-height: 1;
  cursor: pointer;
  transition: transform 180ms ease, border-color 180ms ease, background 180ms ease, box-shadow 180ms ease;
}

.button:hover,
.button:focus-visible {
  transform: translateY(-2px);
  outline: none;
}

.button--primary {
  border-color: rgba(249, 115, 22, 0.84);
  background: linear-gradient(135deg, var(--orange), var(--amber));
  color: #120700;
  box-shadow: 0 14px 36px rgba(249, 115, 22, 0.24);
}

.button--primary:hover,
.button--primary:focus-visible {
  box-shadow: 0 18px 44px rgba(249, 115, 22, 0.34);
}

.button--ghost {
  background: rgba(17, 17, 17, 0.72);
  color: var(--text);
}

.button--ghost:hover,
.button--ghost:focus-visible {
  border-color: rgba(249, 115, 22, 0.44);
  background: rgba(249, 115, 22, 0.1);
}

.donate-panel,
.story__inner {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: linear-gradient(135deg, rgba(24, 24, 24, 0.92), rgba(8, 8, 8, 0.94));
  box-shadow: var(--shadow);
}

.donate-panel {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 28px;
  align-items: center;
  padding: clamp(24px, 4vw, 42px);
}

.muted,
.section-text,
.card p,
.story p {
  color: var(--muted);
}

.muted {
  margin: 12px 0 0;
}

.donate-box {
  display: grid;
  gap: 14px;
  justify-items: start;
  border: 1px solid rgba(245, 158, 11, 0.15);
  border-radius: var(--radius);
  padding: 18px;
  background: rgba(5, 5, 5, 0.54);
}

.donate-amounts {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  width: 100%;
}

.amount-button {
  min-height: 44px;
  border: 1px solid rgba(245, 158, 11, 0.2);
  border-radius: var(--radius);
  background: rgba(17, 17, 17, 0.94);
  color: var(--text);
  font: inherit;
  font-weight: 800;
  cursor: pointer;
  transition: transform 180ms ease, border-color 180ms ease, background 180ms ease;
}

.amount-button:hover,
.amount-button:focus-visible,
.amount-button.is-active {
  border-color: rgba(249, 115, 22, 0.72);
  background: rgba(249, 115, 22, 0.14);
  outline: none;
}

.amount-button:hover,
.amount-button:focus-visible {
  transform: translateY(-2px);
}

.donate-link {
  width: 100%;
}

.donate-note {
  color: var(--text);
  opacity: 0.62;
  font-size: 0.86rem;
}

.donate-note code {
  color: var(--amber);
}

.split {
  display: grid;
  grid-template-columns: 0.95fr 1.05fr;
  gap: clamp(28px, 7vw, 76px);
  align-items: start;
}

.section-text {
  margin: 0;
  font-size: clamp(1.08rem, 2.2vw, 1.32rem);
}

.section-head {
  max-width: 730px;
  margin-bottom: 30px;
}

.cards {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.card,
.rule,
.team-card {
  border: 1px solid rgba(245, 158, 11, 0.13);
  border-radius: var(--radius);
  background: rgba(17, 17, 17, 0.82);
  transition: transform 180ms ease, border-color 180ms ease, background 180ms ease;
}

.card:hover,
.rule:hover,
.team-card:hover {
  transform: translateY(-4px);
  border-color: rgba(249, 115, 22, 0.36);
  background: rgba(24, 24, 24, 0.92);
}

.card {
  min-height: 190px;
  padding: 22px;
}

.card__line {
  display: block;
  width: 34px;
  height: 2px;
  margin-bottom: 18px;
  border-radius: 2px;
  background: linear-gradient(90deg, var(--orange), var(--amber));
}

.card p {
  margin: 0;
}

.card--wide {
  grid-column: span 3;
  min-height: 140px;
}

.story {
  position: relative;
}

.story__inner {
  max-width: 830px;
  padding: clamp(28px, 5vw, 56px);
}

.story__inner h2 {
  color: var(--text);
}

.story__inner p:last-child {
  max-width: 690px;
  margin: 18px 0 0;
  font-size: 1.1rem;
}

.rules-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

.team-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 14px;
}

.rule {
  min-height: 92px;
  padding: 20px;
  color: var(--text);
  font-weight: 800;
}

.team-card {
  min-height: 140px;
  padding: 22px;
}

.team-card span {
  display: block;
  color: var(--muted);
  font-size: 0.92rem;
}

.team-card strong {
  display: block;
  margin-top: 12px;
  color: var(--text);
  font-size: 1.35rem;
}

.footer {
  border-top: 1px solid rgba(245, 158, 11, 0.13);
  padding: 30px clamp(18px, 4vw, 56px);
  background: #050505;
}

.footer__inner {
  display: flex;
  width: min(1120px, 100%);
  margin: 0 auto;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.footer strong,
.footer span {
  display: block;
}

.footer span {
  color: var(--muted);
  font-size: 0.94rem;
}

.footer__links {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 12px;
}

.footer__links a {
  color: var(--muted);
  transition: color 180ms ease;
}

.footer__links a:hover,
.footer__links a:focus-visible {
  color: var(--amber);
  outline: none;
}

.toast {
  position: fixed;
  left: 50%;
  bottom: 24px;
  z-index: 30;
  padding: 12px 16px;
  border: 1px solid rgba(245, 158, 11, 0.28);
  border-radius: var(--radius);
  background: rgba(17, 17, 17, 0.96);
  color: var(--text);
  box-shadow: var(--shadow);
  opacity: 0;
  pointer-events: none;
  transform: translate(-50%, 14px);
  transition: opacity 180ms ease, transform 180ms ease;
}

.toast.is-visible {
  opacity: 1;
  transform: translate(-50%, 0);
}

.reveal {
  opacity: 1;
  transform: none;
  transition: opacity 600ms ease, transform 600ms ease;
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

@media (max-width: 900px) {
  .menu-toggle {
    display: block;
  }

  .nav {
    position: fixed;
    top: 72px;
    left: 18px;
    right: 18px;
    display: grid;
    gap: 6px;
    padding: 14px;
    border: 1px solid rgba(245, 158, 11, 0.2);
    border-radius: var(--radius);
    background: rgba(10, 10, 10, 0.98);
    box-shadow: var(--shadow);
    opacity: 0;
    pointer-events: none;
    transform: translateY(-10px);
    transition: opacity 180ms ease, transform 180ms ease;
  }

  .menu-open .nav {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
  }

  .nav a {
    border-radius: var(--radius);
    padding: 13px 14px;
  }

  .donate-panel,
  .split,
  .hero__grid {
    grid-template-columns: 1fr;
  }

  .cards,
  .rules-grid,
  .team-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .card--wide {
    grid-column: span 2;
  }
}

@media (max-width: 620px) {
  .header {
    padding: 14px 16px;
  }

  .brand__text {
    font-size: 0.96rem;
  }

  .section {
    padding: 76px 16px;
  }

  .section--tight {
    padding-top: 54px;
    padding-bottom: 54px;
  }

  .hero {
    min-height: auto;
    padding-top: 112px;
  }

  .hero__actions,
  .button {
    width: 100%;
  }

  .hero__actions {
    flex-direction: column;
  }

  .cards,
  .rules-grid,
  .team-grid {
    grid-template-columns: 1fr;
  }

  .card,
  .rule,
  .team-card {
    min-height: auto;
  }

  .card--wide {
    grid-column: span 1;
  }

  .donate-box,
  .donate-box .button {
    width: 100%;
  }

  .footer__inner {
    align-items: flex-start;
    flex-direction: column;
  }

  .footer__links {
    justify-content: flex-start;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }

  .reveal {
    opacity: 1;
    transform: none;
  }
}
