:root {
  --primary-orange: rgb(232, 98, 42);
  --primary-orange-glow: rgba(232, 98, 42, 0.4);
  --bg-dark: #0a0a0a;
  --glass-bg: rgba(255, 255, 255, 0.03);
  --glass-border: rgba(255, 255, 255, 0.1);
  --text-main: #ffffff;
  --text-muted: rgba(255, 255, 255, 0.6);
  --font-family: 'Outfit', sans-serif;
}

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

body {
  font-family: var(--font-family);
  background-color: var(--bg-dark);
  color: var(--text-main);
  height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  position: relative;
}

/* Dynamic Animated Background */
body::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle at center, var(--primary-orange) 0%, transparent 15%),
              radial-gradient(circle at 20% 30%, rgba(232, 98, 42, 0.1) 0%, transparent 20%),
              radial-gradient(circle at 80% 70%, rgba(232, 98, 42, 0.15) 0%, transparent 25%);
  filter: blur(80px);
  animation: bgRotate 30s linear infinite;
  z-index: -1;
}

@keyframes bgRotate {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

/* Main Container */
.container {
  width: 100%;
  max-width: 440px;
  padding: 20px;
  z-index: 1;
}

/* Glassmorphic Card */
.waitlist-card {
  background: var(--glass-bg);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--glass-border);
  border-radius: 24px;
  padding: 48px 32px;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
  text-align: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.waitlist-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 30px 60px -12px rgba(232, 98, 42, 0.1);
}

/* Header Section */
.app-logo {
  font-size: 3rem;
  font-weight: 800;
  letter-spacing: -2px;
  margin-bottom: 8px;
  background: linear-gradient(135deg, #fff 0%, var(--primary-orange) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.subheadline {
  font-size: 1.1rem;
  color: var(--text-muted);
  margin-bottom: 40px;
  font-weight: 300;
}

/* Form Styles */
.waitlist-form {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.input-group {
  position: relative;
  text-align: left;
}

input {
  width: 100%;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--glass-border);
  border-radius: 12px;
  padding: 14px 16px;
  color: #fff;
  font-size: 1rem;
  font-family: var(--font-family);
  transition: all 0.3s ease;
  outline: none;
}

input:focus {
  background: rgba(255, 255, 255, 0.08);
  border-color: var(--primary-orange);
  box-shadow: 0 0 15px var(--primary-orange-glow);
}

input::placeholder {
  color: rgba(255, 255, 255, 0.3);
}

button {
  margin-top: 12px;
  background: var(--primary-orange);
  color: #fff;
  border: none;
  border-radius: 12px;
  padding: 16px;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  box-shadow: 0 10px 20px -5px var(--primary-orange-glow);
}

button:hover {
  transform: scale(1.02);
  filter: brightness(1.1);
  box-shadow: 0 15px 25px -5px var(--primary-orange-glow);
}

button:active {
  transform: scale(0.98);
}

/* Success State */
.success-message {
  display: none;
}

.success-message.active {
  display: flex;
  flex-direction: column;
  align-items: center;
  animation: fadeIn 0.5s ease forwards;
}

.checkmark {
  width: 64px;
  height: 64px;
  background: var(--primary-orange);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 24px;
  font-size: 2rem;
  box-shadow: 0 10px 20px -5px var(--primary-orange-glow);
  animation: popIn 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

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

@keyframes popIn {
  0% { transform: scale(0); }
  80% { transform: scale(1.1); }
  100% { transform: scale(1); }
}

/* Utilities */
.hidden {
  display: none;
}

@media (max-width: 480px) {
  .waitlist-card {
    padding: 32px 20px;
  }
  .app-logo {
    font-size: 2.5rem;
  }
}
