:root {
  color-scheme: dark;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: #080b16;
  color: #f7f8ff;
  -webkit-font-smoothing: antialiased;
}

* { box-sizing: border-box; }

body { margin: 0; }

main {
  min-height: 100svh;
  display: grid;
  place-items: center;
  padding: 56px 24px;
  overflow: hidden;
  background: radial-gradient(ellipse at 50% 46%, #191c3b 0%, #0e1124 30%, #080b16 65%);
}

.app {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 42px;
  color: inherit;
  text-decoration: none;
  border-radius: 44px;
  -webkit-tap-highlight-color: transparent;
  animation: arrive 900ms ease-out both;
}

.icon-wrap {
  position: relative;
  display: block;
  animation: float 5s ease-in-out infinite;
}

.icon-wrap::before {
  content: "";
  position: absolute;
  inset: 8%;
  border-radius: 32%;
  background: #444ce3;
  filter: blur(48px);
  opacity: 0.32;
  animation: glow 5s ease-in-out infinite;
}

.icon {
  position: relative;
  display: block;
  width: clamp(152px, 42vw, 192px);
  height: auto;
  aspect-ratio: 1;
  border-radius: 23%;
  box-shadow: 0 22px 50px #00000050, 0 0 0 1px #ffffff10;
  transition: transform 250ms ease;
}

.store-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  min-height: 50px;
  padding: 13px 24px;
  border: 1px solid #ffffff25;
  border-radius: 999px;
  background: #ffffff09;
  font-size: 16px;
  font-weight: 500;
  letter-spacing: 0.01em;
  transition: background 250ms ease, border-color 250ms ease;
}

.arrow { transition: transform 250ms ease; }

@media (hover: hover) {
  .app:hover .icon { transform: scale(1.035) rotate(-2deg); }
  .app:hover .store-link { background: #ffffff14; border-color: #ffffff50; }
  .app:hover .arrow { transform: translate(2px, -2px); }
}

.app:focus-visible { outline: 2px solid #aeb4ff; outline-offset: 14px; }
.app:active .icon { transform: scale(0.97); }

@keyframes arrive {
  from { opacity: 0; transform: translateY(14px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}

@keyframes glow {
  0%, 100% { opacity: 0.25; }
  50% { opacity: 0.4; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before { animation: none !important; transition: none !important; }
}
