:root {
  color-scheme: dark;
  --ink: #fff3cf;
  --muted: #c7b895;
  --panel: #21130e;
  --panel-light: #321b12;
  --red: #c92319;
  --red-bright: #ef3d25;
  --gold: #ffbd32;
  --gold-soft: #f4d083;
  --blue: #164bab;
  --line: rgba(255, 189, 50, 0.34);
  --max: 1120px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-width: 320px;
  color: var(--ink);
  background:
    radial-gradient(circle at 15% 10%, rgba(201, 35, 25, 0.18), transparent 32rem),
    radial-gradient(circle at 85% 22%, rgba(22, 75, 171, 0.14), transparent 30rem),
    repeating-linear-gradient(0deg, rgba(255,255,255,0.018) 0 1px, transparent 1px 5px),
    #100b09;
  font-family: ui-rounded, "Arial Rounded MT Bold", system-ui, -apple-system, sans-serif;
  line-height: 1.6;
}

a {
  color: var(--gold);
}

a:hover {
  color: #ffd970;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  border-bottom: 1px solid var(--line);
  background: rgba(16, 11, 9, 0.9);
  backdrop-filter: blur(14px);
}

.nav {
  width: min(calc(100% - 32px), var(--max));
  min-height: 72px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: var(--ink);
  text-decoration: none;
  font-weight: 900;
  letter-spacing: 0.04em;
}

.brand img {
  width: 46px;
  height: 46px;
  border-radius: 12px;
  object-fit: cover;
  box-shadow: 0 0 0 2px rgba(255, 189, 50, 0.35);
}

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

.nav-links a {
  color: var(--muted);
  text-decoration: none;
  font-size: 0.92rem;
  font-weight: 800;
}

.nav-links a:hover,
.nav-links a[aria-current="page"] {
  color: var(--gold);
}

.hero {
  width: min(calc(100% - 32px), var(--max));
  min-height: 690px;
  margin: 0 auto;
  padding: 88px 0 72px;
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(280px, 0.92fr);
  align-items: center;
  gap: clamp(38px, 7vw, 96px);
}

.eyebrow {
  margin: 0 0 14px;
  color: var(--gold);
  font-size: 0.82rem;
  font-weight: 900;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

h1,
h2,
h3 {
  line-height: 1.08;
  margin-top: 0;
}

h1 {
  max-width: 720px;
  margin-bottom: 24px;
  font-size: clamp(3.35rem, 8vw, 6.9rem);
  letter-spacing: -0.055em;
}

.highlight {
  color: var(--gold);
  text-shadow: 4px 5px 0 rgba(137, 55, 5, 0.6);
}

.hero-copy {
  max-width: 650px;
  margin: 0 0 32px;
  color: var(--muted);
  font-size: clamp(1.05rem, 2vw, 1.25rem);
}

.button-row {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

.button {
  min-height: 50px;
  padding: 13px 20px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 2px solid var(--gold);
  border-radius: 10px;
  color: #231308;
  background: var(--gold);
  box-shadow: 0 7px 0 #7b3e08;
  text-decoration: none;
  font-weight: 950;
  letter-spacing: 0.03em;
  transition: transform 120ms ease, box-shadow 120ms ease;
}

.button:hover {
  color: #231308;
  transform: translateY(-2px);
  box-shadow: 0 9px 0 #7b3e08;
}

.button.secondary {
  color: var(--ink);
  background: transparent;
  border-color: rgba(255, 243, 207, 0.42);
  box-shadow: none;
}

.button.secondary:hover {
  color: var(--gold);
  border-color: var(--gold);
}

.hero-art {
  position: relative;
  isolation: isolate;
  min-height: 430px;
  display: grid;
  place-items: center;
}

.hero-art::before,
.hero-art::after {
  content: "";
  position: absolute;
  inset: 9% 7%;
  z-index: -2;
  border-radius: 50%;
  background: var(--red);
  clip-path: polygon(50% 0%, 59% 14%, 75% 5%, 78% 23%, 96% 20%, 87% 38%, 100% 50%, 84% 59%, 95% 77%, 76% 76%, 73% 96%, 57% 85%, 46% 100%, 39% 84%, 18% 94%, 20% 74%, 0 70%, 14% 53%, 0 40%, 19% 34%, 9% 15%, 31% 21%);
  filter: drop-shadow(0 26px 30px rgba(0,0,0,0.55));
}

.hero-art::after {
  inset: 17% 15%;
  z-index: -1;
  background: #170c08;
}

.hero-logo {
  width: min(92%, 460px);
  aspect-ratio: 1;
  border-radius: 24%;
  object-fit: cover;
  mix-blend-mode: screen;
  filter: saturate(1.12) contrast(1.05);
}

.content-section {
  padding: 78px 0;
}

.content-section.alt {
  border-block: 1px solid var(--line);
  background: rgba(49, 26, 16, 0.55);
}

.section-inner {
  width: min(calc(100% - 32px), var(--max));
  margin: 0 auto;
}

.section-heading {
  max-width: 720px;
  margin-bottom: 38px;
}

.section-heading h2 {
  margin-bottom: 15px;
  font-size: clamp(2.1rem, 5vw, 4rem);
  letter-spacing: -0.04em;
}

.section-heading p,
.card p,
.legal p,
.legal li {
  color: var(--muted);
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.download-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.download-card {
  min-height: 310px;
  padding: 28px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: linear-gradient(145deg, rgba(54, 29, 18, 0.92), rgba(27, 16, 12, 0.96));
  box-shadow: 0 18px 42px rgba(0, 0, 0, 0.23);
}

.download-card.featured {
  border-color: var(--gold);
  box-shadow: 0 8px 0 #6d2a0f, 0 18px 42px rgba(0, 0, 0, 0.28);
}

.download-platform {
  margin: 0 0 28px;
  color: var(--gold);
  font-size: 0.78rem;
  font-weight: 950;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.download-card h3 {
  margin-bottom: 12px;
  font-size: 1.45rem;
}

.download-card > p:not(.download-platform) {
  margin: 0 0 28px;
  color: var(--muted);
}

.download-card .button {
  width: 100%;
  height: 64px;
  margin-top: auto;
  padding: 10px 16px;
  line-height: 1.15;
  text-align: center;
}

.download-card.beta-card {
  border-color: rgba(244, 208, 131, 0.55);
}

.beta-badge {
  display: inline-block;
  margin-left: 5px;
  padding: 2px 7px;
  border: 1px solid var(--gold);
  border-radius: 999px;
  color: #231308;
  background: var(--gold);
  font-size: 0.66rem;
  letter-spacing: 0.08em;
  vertical-align: 1px;
}

.download-note {
  max-width: 880px;
  margin: 26px 0 0;
  color: var(--muted);
  font-size: 0.94rem;
}

.downloads-page-link {
  margin: 28px 0 0;
}

.download-hero {
  padding-bottom: 58px;
}

.download-page-section {
  padding: 32px 0 86px;
}

.compact-heading {
  max-width: 820px;
}

.compact-heading h2 {
  font-size: clamp(2rem, 4.5vw, 3.55rem);
}

.file-detail {
  width: 100%;
  margin: 18px 0 0 !important;
  color: var(--gold-soft) !important;
  font-size: 0.84rem;
  font-weight: 900;
  letter-spacing: 0.05em;
  text-align: center;
}

.setup-grid .card {
  min-height: 260px;
}

.download-help {
  margin-top: 28px;
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: rgba(16, 11, 9, 0.58);
}

.download-help h3 {
  margin-bottom: 10px;
  font-size: 1.35rem;
}

.download-help p {
  max-width: 820px;
  margin: 0 0 22px;
  color: var(--muted);
}

.card {
  min-height: 230px;
  padding: 26px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: linear-gradient(145deg, rgba(54, 29, 18, 0.9), rgba(27, 16, 12, 0.94));
  box-shadow: 0 18px 42px rgba(0, 0, 0, 0.23);
}

.card-number {
  width: 42px;
  height: 42px;
  margin-bottom: 34px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(255, 189, 50, 0.48);
  border-radius: 50%;
  color: var(--gold);
  font-weight: 950;
}

.card h3 {
  margin-bottom: 10px;
  font-size: 1.35rem;
}

.support-panel {
  position: relative;
  overflow: hidden;
  padding: clamp(32px, 7vw, 68px);
  border: 2px solid var(--gold);
  border-radius: 22px;
  background: linear-gradient(120deg, #27130d, #3c1712);
  box-shadow: 0 14px 0 #6d2a0f;
}

.support-panel::after {
  content: "64";
  position: absolute;
  right: -20px;
  bottom: -80px;
  color: rgba(255, 189, 50, 0.07);
  font-size: 20rem;
  font-weight: 1000;
  line-height: 1;
}

.support-panel > * {
  position: relative;
  z-index: 1;
}

.support-panel h2 {
  max-width: 700px;
  margin-bottom: 16px;
  font-size: clamp(2.15rem, 5vw, 4.2rem);
}

.support-panel p {
  max-width: 640px;
  margin-bottom: 28px;
  color: var(--gold-soft);
}

.page-hero {
  width: min(calc(100% - 32px), 850px);
  margin: 0 auto;
  padding: 96px 0 35px;
}

.page-hero h1 {
  margin-bottom: 18px;
  font-size: clamp(3rem, 8vw, 5.5rem);
}

.page-hero .lead {
  color: var(--muted);
  font-size: 1.15rem;
}

.crew-hero {
  width: min(calc(100% - 32px), var(--max));
  padding-bottom: 84px;
}

.crew-hero h1 {
  max-width: 920px;
}

.crew-hero .lead {
  max-width: 790px;
  margin-bottom: 30px;
}

.crew-donate-panel::after {
  content: "CREW";
  right: -30px;
  bottom: -22px;
  font-size: clamp(7rem, 20vw, 15rem);
}

.donation-grid {
  position: relative;
  z-index: 1;
  margin: 26px 0 30px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.donation-card {
  padding: 20px;
  border: 1px solid rgba(255, 189, 50, 0.5);
  border-radius: 12px;
  background: rgba(12, 8, 7, 0.78);
}

.donation-card .donation-service {
  margin: 0 0 7px;
  color: var(--gold);
  font-size: 0.75rem;
  font-weight: 950;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.donation-card strong {
  display: block;
  overflow-wrap: anywhere;
  color: var(--ink);
  font-size: clamp(1rem, 2vw, 1.25rem);
}

.legal {
  width: min(calc(100% - 32px), 850px);
  margin: 0 auto;
  padding: 24px 0 100px;
}

.legal section {
  padding: 28px 0;
  border-top: 1px solid var(--line);
}

.legal h2 {
  margin-bottom: 12px;
  font-size: 1.6rem;
}

.legal ul {
  padding-left: 1.25rem;
}

.contact-card {
  margin-top: 28px;
  padding: 30px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--panel);
}

.contact-card a {
  overflow-wrap: anywhere;
  font-size: clamp(1.05rem, 4vw, 1.4rem);
  font-weight: 900;
}

.site-footer {
  border-top: 1px solid var(--line);
  background: #0c0807;
}

.footer-inner {
  width: min(calc(100% - 32px), var(--max));
  min-height: 110px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 22px;
  color: #8f836a;
  font-size: 0.9rem;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
}

.footer-links a {
  color: var(--muted);
  text-decoration: none;
}

@media (max-width: 820px) {
  .hero {
    min-height: auto;
    grid-template-columns: 1fr;
    padding-top: 58px;
  }

  .hero-art {
    min-height: 340px;
    order: -1;
  }

  .feature-grid {
    grid-template-columns: 1fr;
  }

  .download-grid {
    grid-template-columns: 1fr;
  }

  .donation-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 620px) {
  .nav {
    min-height: 64px;
    padding: 8px 0;
  }

  .brand span {
    display: none;
  }

  .nav-links {
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 5px 12px;
  }

  .nav-links a {
    font-size: 0.76rem;
  }

  .hero-art {
    min-height: 280px;
  }

  .button-row,
  .button {
    width: 100%;
  }

  .footer-inner {
    padding: 24px 0;
    align-items: flex-start;
    flex-direction: column;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *, *::before, *::after {
    transition-duration: 0.01ms !important;
  }
}
