:root {
  color-scheme: dark;
  --bg-top: #0f1620;
  --bg-bottom: #05080d;
  --halo-a: rgba(255, 203, 127, 0.34);
  --halo-b: rgba(123, 197, 255, 0.24);
  --button-top: #ffc98e;
  --button-bottom: #ffae67;
  --button-text: #23140f;
  --shadow: 0 24px 60px rgba(0, 0, 0, 0.35);
}

* {
  box-sizing: border-box;
}

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

body {
  min-height: 100vh;
  overflow: hidden;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background:
    radial-gradient(circle at 18% 18%, var(--halo-a), transparent 24%),
    radial-gradient(circle at 82% 14%, var(--halo-b), transparent 28%),
    linear-gradient(180deg, var(--bg-top) 0%, #09111a 48%, var(--bg-bottom) 100%);
}

.landing {
  position: relative;
  width: 100vw;
  min-height: 100vh;
  display: grid;
  place-items: center;
  isolation: isolate;
}

.landing::before,
.landing::after {
  content: "";
  position: absolute;
  inset: auto;
  border-radius: 50%;
  filter: blur(22px);
  pointer-events: none;
}

.landing::before {
  width: min(70vw, 720px);
  height: min(70vw, 720px);
  background: radial-gradient(circle, rgba(255, 214, 156, 0.34) 0, rgba(255, 214, 156, 0.08) 55%, transparent 78%);
  z-index: -2;
}

.landing::after {
  width: min(100vw, 1200px);
  height: 40vh;
  bottom: -18vh;
  background: radial-gradient(circle, rgba(0, 0, 0, 0.48) 0, rgba(0, 0, 0, 0.12) 52%, transparent 74%);
  z-index: -3;
}

.cat {
  width: min(86vw, 920px);
  max-height: 76vh;
  object-fit: contain;
  user-select: none;
  -webkit-user-drag: none;
  filter: drop-shadow(0 28px 52px rgba(0, 0, 0, 0.42));
  animation:
    drift-x 16s ease-in-out infinite,
    drift-y 7.5s ease-in-out infinite,
    tilt 9s ease-in-out infinite;
}

.download-button {
  position: fixed;
  left: 50%;
  bottom: clamp(20px, 5vh, 44px);
  transform: translateX(-50%);
  min-width: min(92vw, 360px);
  min-height: 58px;
  padding: 0 28px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: clamp(1rem, 2.4vw, 1.2rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--button-text);
  text-decoration: none;
  background: linear-gradient(180deg, var(--button-top) 0%, var(--button-bottom) 100%);
  box-shadow: 0 18px 40px rgba(255, 171, 102, 0.34);
  transition: transform 180ms ease, box-shadow 180ms ease;
  z-index: 2;
}

.download-button:hover {
  transform: translateX(-50%) translateY(-1px);
  box-shadow: 0 22px 48px rgba(255, 171, 102, 0.4);
}

.download-button:focus-visible {
  outline: 3px solid rgba(125, 190, 255, 0.4);
  outline-offset: 3px;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

@keyframes drift-x {
  0%,
  100% { transform: translateX(-2vw); }
  50% { transform: translateX(2vw); }
}

@keyframes drift-y {
  0%,
  100% { margin-top: 2vh; }
  50% { margin-top: -2vh; }
}

@keyframes tilt {
  0%,
  100% { rotate: -2deg; }
  50% { rotate: 2deg; }
}

@media (max-width: 700px) {
  .cat {
    width: min(96vw, 720px);
    max-height: 68vh;
  }

  .download-button {
    min-width: min(94vw, 340px);
    min-height: 56px;
    bottom: max(18px, env(safe-area-inset-bottom, 0px) + 12px);
  }
}
