:root {
  --bg-0: #060814;
  --bg-1: #0b0f1a;
  --bg-2: #121828;
  --fg: #f5f7ff;
  --fg-muted: #9aa3bf;
  --accent: #ffcb05; /* Pikachu yellow */
  --accent-2: #3b4cca; /* Classic Pokémon blue */
  --danger: #ee1515; /* Poké Ball red */
  --radius: 18px;
  --shadow: 0 20px 60px rgba(0, 0, 0, 0.45);
}

* {
  box-sizing: border-box;
}

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

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
    "Helvetica Neue", Arial, sans-serif;
  color: var(--fg);
  background:
    radial-gradient(1200px 600px at 50% -10%,
      rgba(59, 76, 202, 0.35), transparent 60%),
    radial-gradient(800px 500px at 100% 100%,
      rgba(255, 203, 5, 0.15), transparent 55%),
    linear-gradient(180deg, var(--bg-0), var(--bg-1));
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

.shell {
  max-width: 720px;
  margin: 0 auto;
  padding: 32px 20px 48px;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  gap: 36px;
}

.hero {
  text-align: center;
  padding-top: 12px;
}

.logo-wrap {
  width: 104px;
  height: 104px;
  margin: 0 auto 18px;
  border-radius: 28px;
  background: linear-gradient(135deg, #ffe27a, #ffcb05 40%, #f2b705);
  box-shadow: var(--shadow), inset 0 1px 0 rgba(255, 255, 255, 0.5);
  display: grid;
  place-items: center;
  animation: float 6s ease-in-out infinite;
}

.logo {
  width: 68px;
  height: 68px;
  filter: drop-shadow(0 2px 6px rgba(0, 0, 0, 0.25));
}

.title {
  font-size: 44px;
  margin: 0 0 6px;
  letter-spacing: -0.5px;
  background: linear-gradient(180deg, #fff, #d7dcf2);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  font-weight: 800;
}

.tagline {
  margin: 0 0 28px;
  color: var(--fg-muted);
  font-size: 16px;
}

.detecting {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 10px 16px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
  color: var(--fg-muted);
  font-size: 14px;
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.spinner {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, 0.25);
  border-top-color: var(--accent);
  animation: spin 0.9s linear infinite;
}

.cta-area {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
}

.store-btn {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: var(--fg);
  background: #000;
  padding: 12px 22px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  min-width: 220px;
  transition: transform 0.18s ease, box-shadow 0.18s ease,
    background 0.18s ease;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.35);
}

.store-btn:hover {
  transform: translateY(-1px);
  background: #111;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.5);
}

.store-btn.primary {
  background: linear-gradient(180deg, #1a1f36, #0b0f1a);
  border-color: rgba(255, 203, 5, 0.35);
  min-width: 260px;
  padding: 14px 26px;
}

.btn-icon {
  width: 28px;
  height: 28px;
  background-repeat: no-repeat;
  background-position: center;
  background-size: contain;
  flex-shrink: 0;
}

.btn-icon.apple {
  background-image: url("/apple.svg");
}

.btn-icon.google {
  background-image: url("/google-play.svg");
}

.btn-label {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  line-height: 1.1;
}

.btn-label .small {
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--fg-muted);
}

.btn-label .big {
  font-size: 16px;
  font-weight: 700;
}

.badges {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  justify-content: center;
}

.redirect-hint {
  margin-top: 14px;
  color: var(--fg-muted);
  font-size: 13px;
}

.cancel-redirect {
  background: transparent;
  color: var(--accent);
  border: none;
  font: inherit;
  cursor: pointer;
  text-decoration: underline;
  padding: 0 4px;
}

.features {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 14px;
  margin-top: 8px;
}

.feature {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius);
  padding: 18px;
  text-align: left;
  backdrop-filter: blur(8px);
}

.feature .emoji {
  font-size: 28px;
  display: block;
  margin-bottom: 8px;
}

.feature h3 {
  margin: 0 0 4px;
  font-size: 16px;
}

.feature p {
  margin: 0;
  color: var(--fg-muted);
  font-size: 13.5px;
  line-height: 1.45;
}

.footer {
  text-align: center;
  margin-top: auto;
  color: var(--fg-muted);
  font-size: 11.5px;
  line-height: 1.5;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

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

@media (max-width: 480px) {
  .title {
    font-size: 36px;
  }
}
