:root {
  color-scheme: dark;
  --bg: #07080b;
  --bg-soft: #101116;
  --panel: #17191f;
  --panel-strong: #1d2028;
  --line: #2a2e38;
  --text: #f7f7fb;
  --muted: #9ca8bb;
  --accent: #f33b3d;
  --accent-strong: #ff4a4c;
  --accent-soft: rgba(243, 59, 61, 0.14);
  --shadow: rgba(0, 0, 0, 0.35);
  --max: 1212px;
}

:root[data-theme="light"] {
  color-scheme: light;
  --bg: #f7f7fa;
  --bg-soft: #ffffff;
  --panel: #ffffff;
  --panel-strong: #f1f3f7;
  --line: #dde2eb;
  --text: #171b23;
  --muted: #5d6677;
  --accent-soft: rgba(243, 59, 61, 0.1);
  --shadow: rgba(17, 22, 34, 0.08);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background:
    radial-gradient(circle at 68% 18%, rgba(243, 59, 61, 0.18), transparent 34rem),
    linear-gradient(180deg, var(--bg), #08090c 45%, var(--bg));
  color: var(--text);
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    "PingFang SC", "Microsoft YaHei", sans-serif;
  line-height: 1.6;
  letter-spacing: 0;
}

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

svg {
  display: block;
  fill: currentColor;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  border-bottom: 1px solid var(--line);
  background: rgba(7, 8, 11, 0.82);
  backdrop-filter: blur(18px);
}

:root[data-theme="light"] .site-header {
  background: rgba(255, 255, 255, 0.84);
}

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

.brand {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  font-size: 24px;
  font-weight: 800;
}

.brand-mark {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border-radius: 8px;
  background: linear-gradient(145deg, var(--accent-strong), #e9272e);
  color: #fff;
  box-shadow: 0 14px 30px rgba(243, 59, 61, 0.2);
}

.brand-mark svg {
  width: 25px;
  height: 25px;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 30px;
  color: var(--muted);
  font-weight: 700;
}

.nav-links a {
  transition: color 160ms ease;
}

.nav-links a:hover,
.nav-links a:focus-visible {
  color: var(--text);
}

.nav-links .nav-accent {
  color: var(--accent);
}

.theme-toggle {
  display: grid;
  width: 52px;
  height: 52px;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--panel);
  color: var(--text);
  cursor: pointer;
  transition:
    border-color 160ms ease,
    transform 160ms ease,
    background 160ms ease;
}

.theme-toggle:hover {
  border-color: rgba(243, 59, 61, 0.55);
  transform: translateY(-1px);
}

.theme-toggle svg {
  width: 22px;
  height: 22px;
}

.hero {
  position: relative;
  display: grid;
  min-height: calc(100svh - 180px);
  place-items: center;
  overflow: hidden;
  padding: clamp(58px, 8vw, 118px) 24px clamp(52px, 8vw, 98px);
  isolation: isolate;
}

.hero::after {
  position: absolute;
  inset: auto 0 0;
  height: 150px;
  content: "";
  background: linear-gradient(180deg, transparent, var(--bg));
  pointer-events: none;
  z-index: -1;
}

.hero-bg {
  position: absolute;
  inset: 0;
  z-index: -2;
  background:
    linear-gradient(90deg, rgba(7, 8, 11, 0.9), rgba(7, 8, 11, 0.45) 45%, rgba(7, 8, 11, 0.95)),
    linear-gradient(180deg, rgba(7, 8, 11, 0.92), rgba(7, 8, 11, 0.2) 45%, rgba(7, 8, 11, 0.94)),
    url("assets/hero-music.png") center / cover no-repeat;
  opacity: 0.92;
}

:root[data-theme="light"] .hero-bg {
  filter: contrast(1.02) brightness(1.25);
  opacity: 0.24;
}

.hero-content {
  width: min(100%, 900px);
  text-align: center;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.eyebrow,
.section-kicker {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 26px;
  padding: 9px 17px;
  border: 1px solid rgba(243, 59, 61, 0.18);
  border-radius: 8px;
  background: var(--accent-soft);
  color: var(--accent-strong);
  font-size: 15px;
  font-weight: 800;
}

.eyebrow span,
.section-kicker::before {
  display: inline-block;
  width: 7px;
  height: 7px;
  border-radius: 999px;
  background: var(--accent);
  content: "";
}

.hero-line {
  margin: 0 0 26px;
  color: var(--text);
  font-size: clamp(48px, 7vw, 94px);
  line-height: 1;
  font-weight: 900;
}

.hero-line strong {
  color: var(--accent-strong);
  font-style: normal;
}

.hero-copy {
  max-width: 760px;
  margin: 0 auto;
  color: var(--muted);
  font-size: clamp(17px, 2vw, 22px);
  font-weight: 600;
}

.hero-actions {
  display: flex;
  justify-content: center;
  gap: 18px;
  margin-top: 46px;
}

.button,
.small-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 56px;
  border-radius: 8px;
  font-weight: 850;
  transition:
    transform 160ms ease,
    border-color 160ms ease,
    background 160ms ease;
}

.button {
  min-width: 132px;
  padding: 0 26px;
  font-size: 18px;
}

.button svg {
  width: 20px;
  height: 20px;
}

.primary,
.small-button {
  border: 1px solid transparent;
  background: var(--accent);
  color: #fff;
  box-shadow: 0 18px 38px rgba(243, 59, 61, 0.22);
}

.secondary,
.small-button.muted {
  border: 1px solid var(--line);
  background: rgba(23, 25, 31, 0.72);
  color: var(--text);
  box-shadow: none;
}

.button:hover,
.small-button:hover {
  transform: translateY(-2px);
}

.secondary:hover,
.small-button.muted:hover {
  border-color: rgba(243, 59, 61, 0.55);
}

.section,
.platform-band {
  width: min(var(--max), calc(100% - 48px));
  margin: 0 auto;
  padding: 94px 0;
}

section[id] {
  scroll-margin-top: 104px;
}

.section-heading,
.platform-copy {
  max-width: 820px;
  margin: 0 auto 50px;
  text-align: center;
}

.section-heading h2,
.platform-copy h2 {
  margin: 0 0 14px;
  font-size: clamp(34px, 5vw, 56px);
  line-height: 1.08;
  font-weight: 900;
}

.section-heading p:not(.section-kicker),
.platform-copy p {
  margin: 0 auto;
  color: var(--muted);
  font-size: clamp(16px, 1.8vw, 20px);
  font-weight: 600;
}

.feature-grid,
.download-grid,
.donate-grid {
  display: grid;
  gap: 22px;
}

.feature-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.feature-card,
.download-card,
.donate-card {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: linear-gradient(180deg, var(--panel), var(--bg-soft));
  box-shadow: 0 22px 50px var(--shadow);
}

.feature-card {
  min-height: 220px;
  padding: 40px 38px;
}

.card-icon {
  display: block;
  margin-bottom: 30px;
  color: var(--accent-strong);
  font-size: 38px;
  line-height: 1;
  font-weight: 900;
}

.feature-card h3,
.download-card h3,
.donate-card h3 {
  margin: 0 0 12px;
  font-size: 22px;
  line-height: 1.25;
}

.feature-card p,
.download-card p,
.donate-card p {
  margin: 0;
  color: var(--muted);
  font-size: 17px;
  font-weight: 650;
}

.platform-band {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  padding-top: 52px;
}

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

.platform-row span {
  display: grid;
  min-height: 92px;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  color: var(--text);
  font-size: 20px;
  font-weight: 850;
}

.download-grid {
  grid-template-columns: repeat(5, minmax(0, 1fr));
}

.download-card {
  min-height: 260px;
  padding: 30px 24px;
  text-align: center;
}

.download-icon {
  display: inline-grid;
  width: 58px;
  height: 58px;
  margin-bottom: 20px;
  place-items: center;
  border-radius: 14px;
  background: var(--accent-soft);
  color: var(--accent-strong);
  font-size: 26px;
  font-weight: 900;
}

.small-button {
  min-height: 44px;
  margin-top: 22px;
  padding: 0 18px;
  font-size: 15px;
}

.support-section {
  padding-bottom: 74px;
}

.donate-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.donate-card {
  min-height: 356px;
  padding: 34px 26px;
  text-align: center;
}

.donate-symbol {
  display: inline-block;
  margin-bottom: 16px;
  font-size: 34px;
  line-height: 1;
}

.donate-card.blue .donate-symbol {
  color: #4385ff;
}

.donate-card.green .donate-symbol {
  color: #37d276;
}

.donate-card.cyan .donate-symbol {
  color: #48d6ff;
}

.qr-card {
  position: relative;
  display: grid;
  width: 150px;
  height: 150px;
  grid-template-columns: repeat(6, 1fr);
  gap: 9px;
  margin: 18px auto 20px;
  padding: 18px;
  border: 1px solid rgba(70, 130, 255, 0.55);
  border-radius: 8px;
  background: #18233a;
  overflow: hidden;
}

.green .qr-card {
  border-color: rgba(55, 210, 118, 0.55);
  background: #163425;
}

.cyan .qr-card {
  border-color: rgba(72, 214, 255, 0.45);
  background: #17243a;
}

.qr-card span {
  background: #6e7eff;
}

.green .qr-card span {
  background: #61d99a;
}

.cyan .qr-card span {
  background: #57bde4;
}

.qr-card span:nth-child(1),
.qr-card span:nth-child(4),
.qr-card span:nth-child(6) {
  border-radius: 2px;
}

.qr-card span:nth-child(2) {
  grid-row: span 2;
}

.qr-card span:nth-child(3) {
  grid-column: span 2;
}

.qr-card span:nth-child(5) {
  grid-column: span 3;
}

.qr-card.paypal::after {
  position: absolute;
  right: 18px;
  bottom: 18px;
  color: #7086ff;
  font-size: 11px;
  font-weight: 800;
  content: "PayPal";
}

.account-label {
  margin-top: 12px;
  color: var(--muted);
}

.account {
  color: var(--text) !important;
  font-family: "Cascadia Code", "SFMono-Regular", Consolas, monospace;
}

.thanks {
  width: max-content;
  max-width: 100%;
  margin: 54px auto 0;
  padding: 14px 24px;
  border-radius: 8px;
  background: var(--accent-soft);
  color: var(--accent-strong);
  font-weight: 850;
}

.site-footer {
  border-top: 1px solid var(--line);
  padding: 34px 24px;
  text-align: center;
  color: var(--muted);
  background: rgba(0, 0, 0, 0.18);
}

.site-footer p {
  margin: 0;
}

.site-footer a {
  display: inline-block;
  margin-top: 10px;
  color: var(--muted);
  font-size: 14px;
  transition: color 160ms ease;
}

.site-footer a:hover,
.site-footer a:focus-visible {
  color: var(--accent-strong);
}

@media (max-width: 980px) {
  .nav-shell,
  .section,
  .platform-band {
    width: min(100% - 32px, var(--max));
  }

  .nav-shell {
    min-height: 74px;
  }

  .nav-links {
    gap: 18px;
  }

  .feature-grid,
  .donate-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .download-grid,
  .platform-row {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 700px) {
  .brand {
    font-size: 20px;
  }

  .brand-mark {
    width: 38px;
    height: 38px;
  }

  .nav-links a {
    display: none;
  }

  .theme-toggle {
    width: 44px;
    height: 44px;
  }

  .hero {
    min-height: auto;
    padding: 58px 18px 68px;
  }

  .hero-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .button {
    width: 100%;
  }

  .section,
  .platform-band {
    padding: 68px 0;
  }

  .feature-grid,
  .download-grid,
  .donate-grid,
  .platform-row {
    grid-template-columns: 1fr;
  }

  .feature-card {
    min-height: auto;
    padding: 30px 26px;
  }
}

@media (max-height: 760px) and (min-width: 701px) {
  .hero {
    padding-top: 36px;
    padding-bottom: 36px;
  }

  .eyebrow {
    margin-bottom: 18px;
    padding: 8px 14px;
  }

  .hero-line {
    margin-bottom: 18px;
    font-size: clamp(42px, 6.25vw, 72px);
  }

  .hero-copy {
    font-size: 17px;
  }

  .hero-actions {
    margin-top: 28px;
  }

  .section,
  .platform-band {
    padding-top: 56px;
  }
}
