:root {
  color-scheme: dark;
  --ink: #f6f7f8;
  --muted: #a8adb4;
  --line: rgba(255, 255, 255, .12);
  --surface: rgba(19, 20, 22, .82);
  --surface-strong: rgba(34, 35, 38, .9);
  --soft: rgba(255, 255, 255, .06);
  --white: #ffffff;
  --green: #6bdd7f;
  --green-deep: #2aae4a;
  --silver: #d5d8dc;
  --shadow: 0 28px 80px rgba(0, 0, 0, .55);
  font-family: "Segoe UI", Tahoma, Arial, sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  min-width: 320px;
}

body {
  margin: 0;
  min-height: 100svh;
  background:
    linear-gradient(rgba(255, 255, 255, .035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, .035) 1px, transparent 1px),
    radial-gradient(circle at 72% 28%, rgba(170, 178, 188, .16), transparent 24rem),
    radial-gradient(circle at 18% 78%, rgba(107, 221, 127, .12), transparent 20rem),
    #030303;
  background-size: 32px 32px, 32px 32px, auto, auto, auto;
  color: var(--ink);
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(135deg, rgba(255, 255, 255, .08), transparent 28%, rgba(255, 255, 255, .04) 52%, transparent 76%);
  opacity: .35;
}

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

.page-shell {
  position: relative;
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 28px 0;
}

.hero {
  min-height: calc(100svh - 56px);
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(300px, 470px);
  gap: clamp(28px, 6vw, 76px);
  align-items: center;
  padding: clamp(22px, 5vw, 54px) 0 24px;
}

.hero-content {
  display: flex;
  flex-direction: column;
  gap: 28px;
}

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}

.brand {
  width: fit-content;
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: var(--white);
  font-size: 1.1rem;
  font-weight: 900;
  letter-spacing: 0;
}

.brand img {
  width: 44px;
  height: 44px;
  border-radius: 8px;
  object-fit: cover;
  image-rendering: pixelated;
  box-shadow: 0 0 0 1px var(--line), 0 14px 30px rgba(0, 0, 0, .45);
}

.donate-button {
  min-height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 0 14px;
  border: 1px solid rgba(255, 255, 255, .16);
  border-radius: 8px;
  color: var(--white);
  background: rgba(255, 255, 255, .07);
  font-weight: 900;
  transition: transform .18s ease, background .18s ease, border-color .18s ease;
}

.donate-button svg {
  width: 18px;
  height: 18px;
  fill: var(--green);
}

.donate-button:hover {
  transform: translateY(-2px);
  border-color: rgba(107, 221, 127, .38);
  background: rgba(107, 221, 127, .1);
}

.donate-button:focus-visible {
  outline: 3px solid rgba(107, 221, 127, .32);
  outline-offset: 3px;
}

.copy-block {
  max-width: 670px;
}

.eyebrow {
  width: fit-content;
  margin: 0 0 14px;
  padding: 8px 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, .05);
  color: var(--silver);
  font-size: .92rem;
  font-weight: 800;
}

h1 {
  margin: 0;
  color: var(--white);
  font-size: clamp(3rem, 8vw, 6.5rem);
  line-height: .95;
  letter-spacing: 0;
  text-shadow: 0 20px 50px rgba(0, 0, 0, .55);
}

.lead {
  max-width: 600px;
  margin: 22px 0 0;
  color: var(--muted);
  font-size: clamp(1.04rem, 2vw, 1.24rem);
  line-height: 1.9;
}

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

.feature-strip div {
  min-width: 0;
  padding: 14px;
  border: 1px solid rgba(255, 255, 255, .09);
  border-radius: 8px;
  background: rgba(255, 255, 255, .045);
}

.feature-strip strong {
  display: block;
  margin-bottom: 6px;
  color: var(--white);
  font-size: .96rem;
}

.feature-strip span {
  display: block;
  color: var(--muted);
  font-size: .88rem;
  line-height: 1.65;
}

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

.download-card {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 18px;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  box-shadow: 0 18px 46px rgba(0, 0, 0, .32);
  backdrop-filter: blur(18px);
}

.active-card {
  border-color: rgba(107, 221, 127, .42);
}

.platform {
  display: flex;
  align-items: center;
  gap: 12px;
}

.platform-icon {
  flex: 0 0 auto;
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.platform-icon svg,
.download-button svg {
  width: 24px;
  height: 24px;
  fill: currentColor;
}

.android {
  color: var(--green);
  background: rgba(107, 221, 127, .1);
}

.ios {
  color: var(--silver);
  background: rgba(255, 255, 255, .06);
}

.direct-icon {
  color: var(--white);
  background: rgba(255, 255, 255, .08);
}

h2 {
  margin: 0;
  color: var(--white);
  font-size: 1.15rem;
}

.platform p {
  margin: 4px 0 0;
  color: var(--muted);
  font-size: .92rem;
}

.version-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin: 0;
}

.version-list div {
  padding: 12px;
  border: 1px solid rgba(255, 255, 255, .07);
  border-radius: 8px;
  background: var(--soft);
}

dt {
  color: var(--muted);
  font-size: .78rem;
}

dd {
  margin: 4px 0 0;
  color: var(--white);
  font-weight: 900;
}

.download-button {
  min-height: 54px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 0 18px;
  border-radius: 8px;
  font-weight: 900;
  transition: transform .18s ease, box-shadow .18s ease, background .18s ease;
}

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

.download-button.disabled {
  cursor: not-allowed;
  opacity: .62;
}

.download-card-disabled {
  opacity: .72;
}

.download-button.disabled:hover {
  transform: none;
}

.download-button:focus-visible {
  outline: 3px solid rgba(107, 221, 127, .32);
  outline-offset: 3px;
}

.primary {
  color: #071108;
  background: var(--green);
  box-shadow: 0 18px 34px rgba(107, 221, 127, .18);
}

.primary:hover {
  background: #84f094;
}

.direct {
  color: var(--white);
  border: 1px solid rgba(107, 221, 127, .34);
  background: rgba(107, 221, 127, .08);
}

.direct:hover {
  background: rgba(107, 221, 127, .14);
}

.secondary {
  color: var(--white);
  border: 1px solid var(--line);
  background: var(--surface-strong);
}

.status-bar {
  width: fit-content;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--muted);
  font-size: .95rem;
}

.status-dot {
  width: 10px;
  height: 10px;
  border-radius: 2px;
  background: var(--green);
  box-shadow: 0 0 0 6px rgba(107, 221, 127, .12);
}

.hero-visual {
  position: relative;
  min-width: 0;
}

.logo-stage {
  position: relative;
  display: grid;
  place-items: center;
  min-height: 470px;
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: hidden;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, .08), transparent 34%),
    repeating-linear-gradient(0deg, rgba(255, 255, 255, .045) 0 1px, transparent 1px 18px),
    repeating-linear-gradient(90deg, rgba(255, 255, 255, .045) 0 1px, transparent 1px 18px),
    #080808;
  box-shadow: var(--shadow);
}

.logo-stage::before,
.logo-stage::after {
  content: "";
  position: absolute;
  inset: auto;
  pointer-events: none;
}

.logo-stage::before {
  width: 62%;
  height: 62%;
  border: 1px solid rgba(255, 255, 255, .1);
  transform: rotate(45deg);
  background: rgba(255, 255, 255, .025);
}

.logo-stage::after {
  inset: 0;
  background: radial-gradient(circle at 50% 42%, rgba(255, 255, 255, .18), transparent 30rem);
}

.logo-stage img {
  position: relative;
  z-index: 1;
  width: min(78%, 360px);
  aspect-ratio: 1;
  object-fit: contain;
  image-rendering: pixelated;
  filter: drop-shadow(0 34px 34px rgba(0, 0, 0, .72));
  transform: translateY(-8px);
}

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

  .hero-visual {
    order: -1;
  }

  .logo-stage {
    min-height: 350px;
  }

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

@media (max-width: 640px) {
  .page-shell {
    width: min(100% - 22px, 1180px);
    padding: 14px 0;
  }

  .hero-content {
    gap: 22px;
  }

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

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

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

  .download-card {
    padding: 16px;
  }

  .version-list {
    grid-template-columns: 1fr 1fr;
  }

  .download-button {
    width: 100%;
  }

  .logo-stage {
    min-height: 280px;
  }
}
