* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family:
    -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen, Ubuntu,
    sans-serif;
  background: linear-gradient(135deg, #0a0a0a 0%, #1a1a2e 50%, #16213e 100%);
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
}

.container {
  text-align: center;
  padding: 40px 20px;
  max-width: 400px;
}

/* Logo */
.logo {
  width: 80px;
  height: 80px;
  margin: 0 auto 24px;
  border-radius: 20px;
  box-shadow: 0 8px 32px rgba(138, 43, 226, 0.3);
}

h1 {
  font-size: 28px;
  margin-bottom: 8px;
  font-weight: 700;
  background: linear-gradient(90deg, #fff 0%, #e0e0e0 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.tagline {
  font-size: 14px;
  color: rgba(255, 255, 255, 0.6);
  margin-bottom: 24px;
}

#status {
  font-size: 16px;
  opacity: 0.9;
  margin-bottom: 30px;
  color: rgba(255, 255, 255, 0.8);
}

/* Loading spinner */
.loader {
  width: 50px;
  height: 50px;
  border: 4px solid rgba(138, 43, 226, 0.2);
  border-top-color: #8a2be2;
  border-radius: 50%;
  animation: spin 1s linear infinite;
  margin: 0 auto 30px;
}

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

/* Buttons */
.buttons {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 24px;
}

.btn {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px 24px;
  border-radius: 12px;
  text-decoration: none;
  font-weight: 600;
  font-size: 16px;
  transition:
    transform 0.2s,
    box-shadow 0.2s,
    opacity 0.2s;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(138, 43, 226, 0.4);
}

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

.btn.ios {
  background: linear-gradient(135deg, #1a1a2e 0%, #0f0f1a 100%);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.15);
}

.btn.ios:hover {
  background: linear-gradient(135deg, #2a2a3e 0%, #1a1a2e 100%);
}

.btn.android {
  background: linear-gradient(135deg, #8a2be2 0%, #6b21a8 100%);
  color: #fff;
  border: none;
}

.btn.android:hover {
  background: linear-gradient(135deg, #9b4dca 0%, #7c3aed 100%);
}

.btn.secondary {
  opacity: 0.7;
  transform: scale(0.95);
}

.btn.secondary:hover {
  opacity: 1;
  transform: scale(1);
}

/* App selection buttons */
.btn.app-btn {
  background: linear-gradient(135deg, #8a2be2 0%, #6b21a8 100%);
  color: #fff;
  border: none;
}

.btn.app-btn:hover {
  background: linear-gradient(135deg, #9b4dca 0%, #7c3aed 100%);
}

/* Fallback link */
.fallback {
  margin-top: 20px;
}

.fallback a {
  color: rgba(255, 255, 255, 0.6);
  text-decoration: none;
  font-size: 14px;
  transition: color 0.2s;
}

.fallback a:hover {
  color: #8a2be2;
}

/* Background decoration */
body::before {
  content: "";
  position: fixed;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background:
    radial-gradient(
      circle at 30% 20%,
      rgba(138, 43, 226, 0.15) 0%,
      transparent 50%
    ),
    radial-gradient(
      circle at 70% 80%,
      rgba(99, 102, 241, 0.1) 0%,
      transparent 50%
    );
  z-index: -1;
  animation: float 20s ease-in-out infinite;
}

@keyframes float {
  0%,
  100% {
    transform: translate(0, 0);
  }
  50% {
    transform: translate(-2%, -2%);
  }
}

/* Responsive */
@media (max-width: 480px) {
  h1 {
    font-size: 24px;
  }

  .btn {
    padding: 14px 20px;
    font-size: 15px;
  }

  .logo {
    width: 64px;
    height: 64px;
  }
}
