:root {
  color-scheme: dark;
  --bg: #090711;
  --text: #f5f3ff;
  --muted: #aaa3ba;
  --violet: #a855f7;
  --deep: #7c3aed;
  --soft: #d8b4fe;
  font-family: Manrope, "Segoe UI Variable Text", "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }

html, body { margin: 0; min-height: 100%; }

body {
  background: var(--bg);
  color: var(--text);
}

a { color: inherit; }

.atmosphere {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
  background:
    radial-gradient(125% 125% at 78% 42%, #3b0764 0%, #090711 42%);
}

.grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(to right, rgba(168, 85, 247, 0.16) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(168, 85, 247, 0.16) 1px, transparent 1px);
  background-size: 14px 24px;
  mask-image: radial-gradient(ellipse 90% 80% at 62% 48%, #000 28%, transparent 82%);
}

.bloom {
  position: absolute;
  border-radius: 50%;
}

.bloom-a {
  width: 560px;
  height: 560px;
  right: 8%;
  top: 12%;
  background: radial-gradient(circle, rgba(168, 85, 247, 0.42), transparent 68%);
}

.bloom-b {
  width: 380px;
  height: 380px;
  left: -90px;
  bottom: -70px;
  background: radial-gradient(circle, rgba(124, 58, 237, 0.28), transparent 70%);
}

.stage {
  position: relative;
  z-index: 1;
  width: min(1160px, calc(100% - 72px));
  min-height: 100dvh;
  margin: 0 auto;
  display: flex;
  align-items: center;
}

.hero {
  width: 100%;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(340px, 500px);
  gap: 36px;
  align-items: center;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 18px;
  color: var(--soft);
  text-decoration: none;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.brand img {
  width: 28px;
  height: 28px;
  display: block;
  border-radius: 8px;
}

h1 {
  margin: 0;
  font-family: Unbounded, Manrope, sans-serif;
  font-size: clamp(52px, 5.6vw, 78px);
  font-weight: 700;
  line-height: 0.94;
  letter-spacing: -0.045em;
}

.lead {
  max-width: 30rem;
  margin: 18px 0 0;
  color: var(--muted);
  font-size: 1.08rem;
  line-height: 1.5;
}

.editions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 18px 0 0;
  padding: 0;
  list-style: none;
}

.editions li {
  padding: 7px 12px;
  border: 1px solid rgba(216, 180, 254, 0.38);
  border-radius: 999px;
  color: var(--soft);
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.06em;
}

.download {
  position: relative;
  isolation: isolate;
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  width: min(100%, 440px);
  margin-top: 26px;
  padding: 16px 18px 16px 22px;
  overflow: hidden;
  border-radius: 16px;
  background: linear-gradient(115deg, #efe7ff 0%, #d8b4fe 46%, #c084fc 100%);
  color: #1e1033;
  text-decoration: none;
  font-size: 1.12rem;
  font-weight: 800;
  letter-spacing: -0.01em;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.72),
    inset 0 -1px 0 rgba(76, 29, 149, 0.35),
    0 0 0 1px rgba(216, 180, 254, 0.45),
    0 14px 34px rgba(124, 58, 237, 0.38);
  transition: transform 180ms cubic-bezier(0.22, 1, 0.36, 1), filter 180ms ease, box-shadow 180ms ease;
}

.download svg {
  width: 22px;
  height: 22px;
  flex: none;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.download::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(100deg, transparent 18%, rgba(255, 255, 255, 0.55) 46%, transparent 68%);
  transform: translateX(-130%);
  pointer-events: none;
}

.download:hover {
  transform: translateY(-2px);
  filter: brightness(1.05);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.8),
    0 0 0 1px rgba(245, 243, 255, 0.55),
    0 18px 40px rgba(124, 58, 237, 0.5);
}

.download:hover::before { animation: sheen 720ms cubic-bezier(0.22, 1, 0.36, 1); }

.download:active {
  transform: translateY(1px) scale(0.985);
  filter: brightness(0.94);
}

.download:focus-visible {
  outline: 2px solid var(--text);
  outline-offset: 4px;
}

.download[aria-disabled="true"] {
  filter: saturate(0.3) brightness(0.72);
  pointer-events: none;
  box-shadow: none;
}

.version {
  min-height: 1.2em;
  margin: 12px 0 0;
  color: var(--muted);
  font-size: 0.92rem;
}

.emblem {
  position: relative;
  margin: 0;
  aspect-ratio: 1;
  display: grid;
  place-items: center;
}

.accents {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.accents path,
.accents circle {
  fill: none;
  stroke: url(#line);
  stroke-width: 1.6;
}

.mark {
  position: relative;
  z-index: 1;
  width: 66%;
  height: auto;
  display: block;
  filter: drop-shadow(0 28px 42px rgba(49, 10, 90, 0.62));
  animation: rise 880ms cubic-bezier(0.22, 1, 0.36, 1) both;
}

.copy { animation: rise 700ms cubic-bezier(0.22, 1, 0.36, 1) both; }

.legal-top, .doc { width: min(40rem, calc(100% - 40px)); margin-left: auto; margin-right: auto; }
.legal-top { padding-top: 22px; }
.doc { margin-top: 28px; margin-bottom: 48px; }
.doc h1 { font-size: clamp(32px, 5vw, 48px); }
.doc .lead { margin-top: 16px; }
.doc a { color: var(--soft); }

@keyframes sheen {
  from { transform: translateX(-130%); }
  to { transform: translateX(130%); }
}

@keyframes rise {
  from { opacity: 0; transform: translateY(16px); }
  to { opacity: 1; transform: none; }
}

@media (max-width: 980px) {
  .stage { width: min(100% - 36px, 680px); align-items: flex-start; padding: 22px 0 32px; }
  .hero { grid-template-columns: 1fr; gap: 4px; }
  .emblem { width: min(100%, 300px); margin: 6px auto 0; }
  .download { width: 100%; }
  h1 { font-size: clamp(42px, 11vw, 60px); }
}

@media (max-width: 380px) {
  .stage { width: calc(100% - 20px); padding-top: 16px; }
  h1 { font-size: 36px; }
  .lead { font-size: 0.98rem; }
  .editions li { letter-spacing: 0.02em; }
  .download { margin-top: 18px; padding-inline: 14px; font-size: 1rem; }
  .emblem { width: min(100%, 220px); }
}

@media (max-height: 760px) and (min-width: 981px) {
  h1 { font-size: 56px; }
  .emblem { width: min(100%, 420px); justify-self: end; }
}

@media (prefers-reduced-motion: reduce) {
  .copy, .mark, .download, .download::before {
    animation: none;
    transition: none;
  }
}
