@font-face {
  font-family: "Geist";
  src: url("fonts/geist-latin.woff2") format("woff2");
  font-display: swap;
  font-style: normal;
  font-weight: 100 900;
}

:root {
  color-scheme: dark;
  font-family: "Geist", "Segoe UI Variable", "Segoe UI", sans-serif;
  background: #050506;
  color: #f7f7f8;
}

* { box-sizing: border-box; }

body {
  min-width: 320px;
  min-height: 100vh;
  margin: 0;
  background:
    radial-gradient(circle at 50% 28%, rgba(154, 134, 255, .13), transparent 27rem),
    radial-gradient(circle at 22% 72%, rgba(61, 155, 255, .08), transparent 24rem),
    #050506;
}

body::before {
  position: fixed;
  inset: 0;
  content: "";
  pointer-events: none;
  opacity: .3;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 160 160' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.12'/%3E%3C/svg%3E");
}

a { color: inherit; }

.download-shell {
  position: relative;
  z-index: 1;
  display: grid;
  min-height: 100vh;
  place-items: center;
  padding: 96px 24px 48px;
}

.download-brand {
  position: absolute;
  top: 28px;
  left: 36px;
  display: inline-flex;
  align-items: center;
  gap: 11px;
  color: #f4f4f5;
  font-size: 15px;
  font-weight: 720;
  text-decoration: none;
}

.download-brand__wave {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  height: 16px;
}

.download-brand__wave i {
  width: 2px;
  height: 7px;
  border-radius: 99px;
  background: #fff;
  animation: wave 1s ease-in-out infinite alternate;
}

.download-brand__wave i:nth-child(2), .download-brand__wave i:nth-child(4) { height: 13px; animation-delay: -.4s; }
.download-brand__wave i:nth-child(3) { height: 16px; animation-delay: -.7s; }

.download-card {
  width: min(100%, 640px);
  padding: clamp(38px, 7vw, 68px);
  text-align: center;
  border: 1px solid rgba(255, 255, 255, .12);
  border-radius: 32px;
  background: linear-gradient(145deg, rgba(255, 255, 255, .075), rgba(255, 255, 255, .025));
  box-shadow: 0 32px 100px rgba(0, 0, 0, .5), inset 0 1px rgba(255, 255, 255, .05);
  backdrop-filter: blur(24px);
}

.download-orb {
  display: grid;
  width: 76px;
  height: 76px;
  margin: 0 auto 28px;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, .18);
  border-radius: 50%;
  background: rgba(255, 255, 255, .045);
  box-shadow: 0 0 60px rgba(154, 134, 255, .17);
}

.download-orb span {
  width: 24px;
  height: 24px;
  border: 2px solid rgba(255, 255, 255, .24);
  border-top-color: #fff;
  border-radius: 50%;
  animation: spin .9s linear infinite;
}

.download-kicker {
  margin: 0 0 12px;
  color: rgba(255, 255, 255, .5);
  font-size: 12px;
  font-weight: 720;
  letter-spacing: .14em;
  text-transform: uppercase;
}

h1 {
  max-width: 500px;
  margin: 0 auto 14px;
  font-size: clamp(32px, 6vw, 54px);
  line-height: 1;
  letter-spacing: -.055em;
}

#download-status {
  min-height: 24px;
  margin: 0;
  color: rgba(255, 255, 255, .62);
  font-size: 16px;
}

.download-progress {
  height: 2px;
  margin: 34px 0 30px;
  overflow: hidden;
  border-radius: 99px;
  background: rgba(255, 255, 255, .08);
}

.download-progress i {
  display: block;
  width: 42%;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #3d9bff, #9a86ff, #37c489, #f5a623, #ff6b8b);
  animation: progress 1.35s ease-in-out infinite;
}

.download-actions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 22px;
}

.download-button, .download-home {
  font-size: 14px;
  font-weight: 680;
  text-decoration: none;
}

.download-button {
  padding: 13px 20px;
  border: 1px solid rgba(255, 255, 255, .16);
  border-radius: 999px;
  background: rgba(255, 255, 255, .07);
}

.download-home { color: rgba(255, 255, 255, .6); }

.download-button:hover, .download-home:hover { color: #fff; }

.download-note {
  max-width: 470px;
  margin: 30px auto 0;
  color: rgba(255, 255, 255, .35);
  font-size: 12px;
  line-height: 1.55;
}

@keyframes spin { to { transform: rotate(1turn); } }
@keyframes wave { to { transform: scaleY(.55); opacity: .45; } }
@keyframes progress { from { transform: translateX(-110%); } to { transform: translateX(350%); } }

@media (max-width: 560px) {
  .download-shell { padding-inline: 16px; }
  .download-brand { left: 22px; }
  .download-card { border-radius: 24px; }
  .download-actions { flex-direction: column; gap: 16px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; }
}
