:root {
  color-scheme: dark;
  --bg: #0b0f14;
  --bg-soft: #111822;
  --panel: #151d28;
  --panel-2: #1a2431;
  --border: #2a3645;
  --text: #f4f7fb;
  --muted: #aab6c5;
  --accent: #f35623;
  --accent-2: #ff7a45;
  --shadow: 0 18px 50px rgba(0, 0, 0, 0.28);
  --radius: 18px;
}
* {
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
  background: var(--bg);
}
body {
  margin: 0;
  font-family:
    system-ui,
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    sans-serif;
  line-height: 1.75;
  background:
    radial-gradient(
      circle at top right,
      rgba(243, 86, 35, 0.08),
      transparent 32%
    ),
    var(--bg);
  color: var(--text);
  -webkit-font-smoothing: antialiased;
}
a {
  color: #fff;
  text-decoration-color: rgba(255, 255, 255, 0.3);
  text-underline-offset: 3px;
}
a:hover {
  color: #fff;
  text-decoration-color: var(--accent);
}
.container {
  width: min(1120px, calc(100% - 32px));
  margin-inline: auto;
}
header {
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  background: rgba(11, 15, 20, 0.82);
  backdrop-filter: blur(14px);
  position: sticky;
  top: 0;
  z-index: 50;
}
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 16px 0;
}
.brand {
  font-weight: 900;
  font-size: 1.12rem;
  text-decoration: none;
  letter-spacing: 0.02em;
}
.brand::after {
  content: "";
  display: inline-block;
  width: 7px;
  height: 7px;
  background: var(--accent);
  border-radius: 50%;
  margin-inline-start: 7px;
  vertical-align: middle;
}
.nav nav {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  align-items: center;
}
.nav nav a {
  font-weight: 700;
  text-decoration: none;
  color: var(--muted);
  padding: 8px 11px;
  border-radius: 10px;
  transition:
    background 0.18s ease,
    color 0.18s ease,
    transform 0.18s ease;
}
.nav nav a:hover,
.nav nav a.active,
.nav nav a[aria-current="page"] {
  background: rgba(243, 86, 35, 0.1);
  color: #fff;
}
.nav nav a:hover {
  transform: translateY(-1px);
}
.page-head,
.hero {
  padding: 88px 0 62px;
}
.page-head {
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}
.page-head::after {
  content: "";
  display: block;
  width: 74px;
  height: 4px;
  border-radius: 99px;
  background: linear-gradient(90deg, var(--accent), var(--accent-2));
  margin-top: 30px;
}
.hero-grid,
.split {
  display: grid;
  grid-template-columns: 1.35fr 1fr;
  gap: 46px;
  align-items: center;
}
.section {
  padding: 62px 0;
}
.muted {
  background: linear-gradient(
    180deg,
    rgba(255, 255, 255, 0.018),
    rgba(255, 255, 255, 0.035)
  );
  border-block: 1px solid rgba(255, 255, 255, 0.05);
}
.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}
.card {
  padding: 26px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: linear-gradient(180deg, var(--panel), var(--panel-2));
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.16);
}
.card:hover {
  border-color: #39485b;
  transform: translateY(-2px);
}
.card,
.button {
  transition:
    border-color 0.18s ease,
    transform 0.18s ease,
    box-shadow 0.18s ease;
}
.card h2,
.card h3 {
  margin-top: 0;
}
.eyebrow {
  font-size: 0.78rem;
  letter-spacing: 0.1em;
  font-weight: 900;
  text-transform: uppercase;
  color: var(--accent-2);
  margin-bottom: 10px;
}
.lead {
  font-size: 1.2rem;
  color: #d6dee8;
}
.narrow {
  max-width: 760px;
}
.prose {
  max-width: 820px;
}
.prose h2 {
  margin-top: 2em;
  line-height: 1.3;
}
.prose h3 {
  line-height: 1.35;
}
.prose p,
.prose li {
  color: #c6d0dc;
}
.prose ul,
.prose ol {
  padding-inline-start: 1.35rem;
}
.button {
  display: inline-block;
  padding: 11px 17px;
  border: 1px solid #3a4655;
  border-radius: 11px;
  text-decoration: none;
  font-weight: 800;
  margin: 4px 5px 4px 0;
  color: #fff;
  background: #1b2430;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.16);
}
.button:hover {
  color: #fff;
  border-color: #4b5a6e;
  box-shadow: 0 10px 26px rgba(0, 0, 0, 0.22);
  transform: translateY(-1px);
  text-decoration: none;
}
.button.primary {
  background: linear-gradient(135deg, var(--accent), #d94218);
  border-color: transparent;
  color: #fff;
}
.button.primary:hover {
  background: linear-gradient(135deg, var(--accent-2), var(--accent));
}
.wallet {
  display: flex;
  gap: 8px;
  align-items: center;
  flex-wrap: wrap;
}
.wallet code {
  word-break: break-all;
  flex: 1;
}
button {
  border: 1px solid #3a4655;
  border-radius: 9px;
  padding: 8px 12px;
  background: #18212d;
  color: #fff;
  cursor: pointer;
  font: inherit;
}
button:hover {
  border-color: #58687a;
  background: #202b38;
}
:focus-visible {
  outline: 3px solid rgba(243, 86, 35, 0.6);
  outline-offset: 3px;
}
code {
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 0.92em;
  background: #0d131a;
  border: 1px solid #273241;
  border-radius: 8px;
  padding: 2px 7px;
  color: #e9eef5;
}
code:has(> *) {
  padding: 0;
  background: transparent;
  border: 0;
}
footer {
  border-top: 1px solid rgba(255, 255, 255, 0.07);
  padding: 38px 0;
  margin-top: 36px;
  background: #090d12;
}
.footer-grid {
  display: flex;
  justify-content: space-between;
  gap: 24px;
}
.footer-grid a {
  margin-inline-end: 18px;
  color: var(--muted);
}
.footer-bottom {
  font-size: 0.9rem;
  color: #7f8b9b;
  margin-top: 24px;
}
.error {
  min-height: 70vh;
  display: grid;
  place-items: center;
  padding: 48px 16px;
  text-align: center;
}
.error > div {
  max-width: 620px;
}
@media (max-width: 760px) {
  .hero-grid,
  .split,
  .grid-3 {
    grid-template-columns: 1fr;
  }
  .nav {
    align-items: flex-start;
    flex-direction: column;
    padding: 13px 0;
  }
  .nav nav {
    width: 100%;
    gap: 4px;
  }
  .nav nav a {
    padding: 7px 9px;
  }
  .page-head,
  .hero {
    padding: 60px 0 46px;
  }
  .section {
    padding: 46px 0;
  }
  .footer-grid {
    flex-direction: column;
  }
}
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  .card,
  .button,
  .nav nav a {
    transition: none;
  }
}

/* Download / address blocks */
.download-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(0, 0.92fr);
  gap: 24px;
  align-items: stretch;
}
.download-card,
.checksum-card {
  height: 100%;
  display: flex;
  flex-direction: column;
}
.release-icon {
  width: 52px;
  height: 52px;
  border-radius: 15px;
  display: grid;
  place-items: center;
  background: rgba(243, 86, 35, 0.12);
  border: 1px solid rgba(243, 86, 35, 0.25);
  color: var(--accent-2);
  font-size: 1.7rem;
  font-weight: 900;
  margin-bottom: 20px;
}
.download-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  margin: 20px 0 24px;
}
.download-button {
  min-height: 48px;
  padding: 12px 20px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-align: center;
}
.secondary-link {
  font-weight: 800;
  color: var(--muted);
  text-underline-offset: 4px;
}
.secondary-link:hover {
  color: #fff;
}
.file-meta {
  margin-top: auto;
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 10px 18px;
  padding-top: 20px;
  border-top: 1px solid var(--border);
  font-size: 0.95rem;
}
.file-meta span {
  color: var(--muted);
}
.file-meta strong {
  font-weight: 800;
  text-align: end;
}
.checksum-box {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 18px;
  padding: 14px;
  border: 1px solid var(--border);
  border-radius: 14px;
  background: #0d131a;
  min-width: 0;
}
.checksum-box code {
  display: block;
  padding: 0;
  border: 0;
  background: transparent;
  line-height: 1.7;
  font-size: 0.78rem;
  word-break: break-all;
  overflow-wrap: anywhere;
  direction: ltr;
  text-align: left;
}
.copy-checksum {
  align-self: flex-start;
  padding: 9px 13px;
  border-radius: 9px;
}
.checksum-hint {
  margin-top: 14px;
  font-size: 0.9rem;
  color: var(--muted);
}
.wallet {
  width: 100%;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
  align-items: stretch;
}
.wallet code {
  display: flex;
  align-items: center;
  min-width: 0;
  min-height: 46px;
  padding: 10px 12px;
  line-height: 1.55;
  word-break: break-all;
  overflow-wrap: anywhere;
  direction: ltr;
  text-align: left;
}
.wallet button {
  min-width: 74px;
  align-self: stretch;
}
@media (max-width: 820px) {
  .download-grid {
    grid-template-columns: 1fr;
  }
}
@media (max-width: 560px) {
  .container {
    width: min(100% - 22px, 1120px);
  }
  .download-actions {
    align-items: stretch;
    flex-direction: column;
  }
  .download-button,
  .secondary-link {
    width: 100%;
    text-align: center;
  }
  .wallet {
    grid-template-columns: 1fr;
  }
  .wallet button {
    width: 100%;
    min-height: 44px;
  }
  .checksum-box {
    padding: 12px;
  }
  .checksum-box code {
    font-size: 0.72rem;
  }
  .card {
    padding: 21px;
  }
}

/* Donation wallet cards */
.wallet-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
  align-items: stretch;
}
.wallet-card {
  display: flex;
  flex-direction: column;
  min-width: 0;
}
.wallet-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 14px;
  margin-bottom: 4px;
}
.wallet-head h2 {
  margin: 0;
}
.network-badge {
  flex: 0 0 auto;
  padding: 5px 9px;
  border: 1px solid rgba(243, 86, 35, 0.3);
  border-radius: 999px;
  background: rgba(243, 86, 35, 0.1);
  color: var(--accent-2);
  font-size: 0.76rem;
  font-weight: 900;
  letter-spacing: 0.06em;
}
.wallet-note {
  color: var(--muted);
  margin: 8px 0 18px;
}
.wallet-box {
  display: block;
  width: 100%;
  min-width: 0;
  padding: 16px 17px;
  border: 1px solid var(--border);
  border-radius: 14px;
  background: #0d131a;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.02);
}
.wallet-box code {
  display: block;
  width: 100%;
  padding: 0;
  border: 0;
  background: transparent;
  color: #eef3f8;
  font-size: 0.92rem;
  line-height: 1.8;
  word-break: normal;
  overflow-wrap: anywhere;
  white-space: normal;
  direction: ltr;
  text-align: left;
}
.wallet-copy {
  width: 100%;
  margin-top: 12px;
  min-height: 46px;
  background: #1b2430;
  border-color: #3a4655;
  font-weight: 800;
}
.wallet-copy:hover {
  background: #202b38;
  border-color: #58687a;
}
@media (max-width: 820px) {
  .wallet-grid {
    grid-template-columns: 1fr;
  }
}
@media (max-width: 560px) {
  .wallet-head {
    align-items: flex-start;
  }
  .wallet-box {
    padding: 14px;
  }
  .wallet-box code {
    font-size: 0.8rem;
    line-height: 1.85;
  }
  .wallet-copy {
    min-height: 44px;
  }
}
/* ================================
   Donation section
   ================================ */

.donation-section .wallet-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
}

.donation-section .wallet-card {
  height: 100%;
}

.donation-section .wallet-card .actions {
  margin-top: auto;
  padding-top: 8px;
}

.donation-section .wallet-card .button.primary {
  width: 100%;
  min-height: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.donation-section .wallet-card .micro {
  margin-top: 14px;
  color: #7f8b9b;
  font-size: 0.86rem;
}

.donation-section .wallet-card:first-child {
  border-color: rgba(243, 86, 35, 0.38);
  box-shadow:
    0 10px 35px rgba(243, 86, 35, 0.08),
    0 8px 30px rgba(0, 0, 0, 0.16);
}

.donation-section .wallet-card:first-child:hover {
  border-color: rgba(255, 122, 69, 0.58);
  box-shadow:
    0 14px 40px rgba(243, 86, 35, 0.12),
    0 10px 32px rgba(0, 0, 0, 0.2);
}

/* Keep wallet addresses readable */
.wallet-box {
  min-height: 72px;
}

.wallet-box code {
  direction: ltr;
  text-align: left;
  overflow-wrap: anywhere;
}

/* Tablet */
@media (max-width: 980px) {
  .donation-section .wallet-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

/* Mobile */
@media (max-width: 680px) {
  .donation-section .wallet-grid {
    grid-template-columns: 1fr;
  }

  .donation-section .wallet-card .button.primary {
    width: 100%;
  }
}
