:root {
  color-scheme: dark;
  --ink: #f9f7f2;
  --muted: rgba(249, 247, 242, 0.72);
  --soft: rgba(249, 247, 242, 0.48);
  --hot: #ff3d7f;
  --acid: #8dffcf;
  --sun: #ffe27a;
  --sky: #78dcff;
  --violet: #b9a2ff;
}

* {
  box-sizing: border-box;
}

html,
body {
  min-height: 100%;
}

body {
  margin: 0;
  overflow: hidden;
  background: #000;
  color: var(--ink);
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    sans-serif;
}

body::before {
  content: none;
}

body::after {
  position: fixed;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  content: "";
  background:
    radial-gradient(circle at center, transparent 0%, rgba(0, 0, 0, 0.16) 56%, rgba(0, 0, 0, 0.64) 100%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.07), transparent 18%, rgba(0, 0, 0, 0.22));
}

#symbol-field {
  position: fixed;
  inset: 0;
  z-index: 0;
  width: 100vw;
  height: 100vh;
}

.page-shell {
  position: relative;
  z-index: 3;
  display: grid;
  min-height: 100svh;
  padding: clamp(20px, 4vw, 54px);
  place-items: center;
}

.download-panel {
  width: min(1100px, 100%);
  text-align: center;
}

h1 {
  margin: 0;
  color: var(--ink);
  font-size: clamp(2.9rem, 8.2vw, 6.45rem);
  font-weight: 1000;
  letter-spacing: 0;
  line-height: 0.9;
  text-shadow:
    0 0 28px rgba(255, 255, 255, 0.16),
    0 18px 60px rgba(0, 0, 0, 0.38);
}

.lead {
  width: min(990px, 100%);
  margin: clamp(18px, 3vw, 26px) auto 0;
  color: var(--muted);
  font-size: clamp(1.02rem, 2.15vw, 1.55rem);
  font-weight: 850;
  line-height: 1.16;
  text-wrap: balance;
}

.lead a {
  color: var(--hot);
  text-decoration-color: currentColor;
  text-decoration-thickness: 0.12em;
  text-underline-offset: 0.12em;
  transition: color 180ms ease, text-shadow 180ms ease;
}

.lead a:hover,
.lead a:focus-visible {
  color: var(--sun);
  outline: none;
  text-shadow: 0 0 22px rgba(255, 226, 122, 0.72);
}

.download-button {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: min(520px, 92vw);
  min-height: 68px;
  margin: clamp(24px, 4vw, 34px) auto 0;
  padding: 14px 30px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 999px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.98), rgba(255, 255, 255, 0.84)) padding-box,
    linear-gradient(135deg, var(--acid), var(--sky), var(--hot)) border-box;
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.07) inset,
    0 20px 60px rgba(0, 0, 0, 0.42),
    0 0 44px rgba(120, 220, 255, 0.2);
  color: #050506;
  cursor: pointer;
  font: inherit;
  font-size: clamp(1.16rem, 3.4vw, 1.92rem);
  font-weight: 1000;
  letter-spacing: 0;
  text-transform: uppercase;
  transform: translateZ(0);
  transition: transform 180ms ease, box-shadow 180ms ease, filter 180ms ease;
}

.download-button::before {
  position: absolute;
  inset: -40% -18%;
  content: "";
  background: linear-gradient(90deg, transparent 0%, rgba(255, 255, 255, 0.72) 50%, transparent 100%);
  transform: translateX(-92%) rotate(8deg);
  transition: transform 560ms ease;
}

.download-button:hover,
.download-button:focus-visible {
  outline: none;
  filter: saturate(1.12);
  transform: translateY(-3px) scale(1.015);
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.1) inset,
    0 25px 70px rgba(0, 0, 0, 0.5),
    0 0 64px rgba(141, 255, 207, 0.28);
}

.download-button:hover::before,
.download-button:focus-visible::before {
  transform: translateX(92%) rotate(8deg);
}

.download-button.is-typing {
  pointer-events: none;
}

#button-label {
  position: relative;
  z-index: 1;
  white-space: nowrap;
}

.caret {
  position: relative;
  z-index: 1;
  display: none;
  width: 0.1em;
  height: 1.08em;
  margin-left: 0.08em;
  border-radius: 2px;
  background: currentColor;
  animation: blink 650ms steps(1) infinite;
}

.download-button.is-typing .caret {
  display: inline-block;
}

.counter {
  margin: clamp(18px, 2.7vw, 24px) 0 0;
  color: var(--muted);
  font-size: clamp(1rem, 2.1vw, 1.45rem);
  font-weight: 900;
}

.shop-link {
  display: inline-block;
  margin-top: 14px;
  color: var(--muted);
  font-size: clamp(1rem, 2.2vw, 1.48rem);
  font-weight: 950;
  text-decoration-color: currentColor;
  text-decoration-thickness: 0.09em;
  text-underline-offset: 0.15em;
  transition: color 180ms ease, text-shadow 180ms ease, transform 180ms ease;
}

.shop-link:hover,
.shop-link:focus-visible {
  color: var(--acid);
  outline: none;
  text-shadow: 0 0 24px rgba(141, 255, 207, 0.62);
  transform: translateY(-1px);
}

@keyframes blink {
  50% {
    opacity: 0;
  }
}

@media (max-width: 680px) {
  body {
    overflow: auto;
  }

  .page-shell {
    align-items: center;
    padding: 26px 18px;
  }

  .lead {
    line-height: 1.2;
  }

  .download-button {
    min-height: 72px;
    padding-inline: 20px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
    transition-duration: 0.001ms !important;
  }
}
