* {
  box-sizing: border-box;
}

html, body {
  margin: 0;
  min-height: 100%;
  font-family: 'Outfit', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  background: #0f1419;
  color: #e8eaed;
  -webkit-font-smoothing: antialiased;
}

body {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  background-image:
    radial-gradient(ellipse 120% 80% at 50% -20%, rgba(99, 102, 241, 0.15), transparent),
    radial-gradient(ellipse 80% 50% at 80% 100%, rgba(236, 72, 153, 0.08), transparent),
    linear-gradient(180deg, #0f1419 0%, #131922 50%, #0d1117 100%);
}

#app {
  width: 100%;
  max-width: 24rem;
}

.card {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 1.5rem;
  padding: 2.25rem 1.75rem;
  text-align: center;
  backdrop-filter: blur(20px);
  box-shadow: 0 24px 48px rgba(0, 0, 0, 0.25);
}

.brand {
  margin-bottom: 1.75rem;
}

.logo {
  font-size: 1.375rem;
  font-weight: 700;
  letter-spacing: -0.03em;
  background: linear-gradient(135deg, #fff 0%, #a5b4fc 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.state {
  transition: opacity 0.35s ease;
}

.state.hidden {
  display: none;
}

.icon-wrap {
  width: 4rem;
  height: 4rem;
  margin: 0 auto 1.25rem;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, rgba(99, 102, 241, 0.2) 0%, rgba(236, 72, 153, 0.12) 100%);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 1rem;
}

.icon-wrap .icon {
  width: 1.75rem;
  height: 1.75rem;
  color: #a5b4fc;
}

#redirect-state .icon-wrap .icon {
  animation: tick 1.5s ease-in-out infinite;
}

@keyframes tick {
  0%, 100% { opacity: 1; transform: rotate(0deg); }
  50% { opacity: 0.7; transform: rotate(15deg); }
}

.heading {
  margin: 0 0 0.5rem;
  font-size: 1.375rem;
  font-weight: 600;
  letter-spacing: -0.02em;
  color: #f1f3f4;
  line-height: 1.3;
}

.subline {
  margin: 0 0 1.5rem;
  font-size: 0.9375rem;
  color: #9aa0a6;
  line-height: 1.45;
}

.fallback .heading {
  margin-bottom: 0.35rem;
}

.fallback .subline {
  margin-bottom: 1.5rem;
  max-width: 18rem;
  margin-left: auto;
  margin-right: auto;
}

/* Primary CTA */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.875rem 1.75rem;
  border-radius: 0.875rem;
  font-size: 1rem;
  font-weight: 600;
  font-family: inherit;
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
  border: none;
}

.btn.primary {
  background: linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%);
  color: #fff;
  box-shadow: 0 4px 20px rgba(99, 102, 241, 0.4);
}

.btn.primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 28px rgba(99, 102, 241, 0.45);
}

.btn.primary:active {
  transform: translateY(0);
}

/* App stores */
.app-stores {
  margin-top: 1.75rem;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.stores-label {
  margin: 0 0 1rem;
  font-size: 0.8125rem;
  font-weight: 500;
  color: #9aa0a6;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.store-buttons {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.store-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  padding: 0.75rem 1.25rem;
  border-radius: 0.75rem;
  font-size: 0.9375rem;
  font-weight: 500;
  font-family: inherit;
  text-decoration: none;
  color: #e8eaed;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
  transition: background 0.2s ease, border-color 0.2s ease, transform 0.15s ease;
}

.store-btn:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.15);
  transform: translateY(-1px);
}

.store-btn .store-icon {
  width: 1.25rem;
  height: 1.25rem;
  flex-shrink: 0;
  color: #a5b4fc;
}

.store-btn:first-of-type .store-icon {
  color: #fff;
}

.store-btn:last-of-type .store-icon {
  color: #81c995;
}
