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

:root {
  --purple-1: #7c3aed;
  --purple-2: #8b5cf6;
  --purple-3: #a78bfa;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, sans-serif;
  background: linear-gradient(135deg, #0a0a0a 0%, #1a1a2e 100%);
  min-height: 100vh;
  color: #fff;
}

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

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

.container {
  max-width: 800px;
  margin: 0 auto;
  padding: 2rem;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

header {
  padding: 1rem 0;
  animation: fadeIn 0.6s ease-out;
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 1.5rem;
  font-weight: 700;
}

.swift-icon {
  width: 40px;
  height: 40px;
  object-fit: contain;
}

.logo-text {
  font-size: 1.5rem;
  font-weight: 700;
  color: #8B5CF6;
}

main {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  text-align: center;
  padding: 2rem 0;
}

h1 {
  font-size: clamp(2.5rem, 8vw, 4rem);
  font-weight: 800;
  margin-bottom: 1.5rem;
  line-height: 1.1;
  background: linear-gradient(135deg, #fff 0%, #a0a0a0 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: fadeInUp 0.6s ease-out 0.1s both;
}

.tagline {
  font-size: 1.25rem;
  color: #a0a0a0;
  margin-bottom: 3rem;
  line-height: 1.6;
  animation: fadeInUp 0.6s ease-out 0.2s both;
}

.features {
  display: flex;
  justify-content: center;
  gap: 2.5rem;
  margin-bottom: 3rem;
  flex-wrap: wrap;
  animation: fadeInUp 0.6s ease-out 0.3s both;
}

.feature {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
  transition: transform 0.2s ease;
}

.feature:hover {
  transform: translateY(-4px);
}

.feature-icon {
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, rgba(124, 58, 237, 0.15), rgba(139, 92, 246, 0.1));
  border: 1px solid rgba(139, 92, 246, 0.2);
  border-radius: 12px;
  color: var(--purple-3);
  transition: all 0.2s ease;
}

.feature:hover .feature-icon {
  background: linear-gradient(135deg, rgba(124, 58, 237, 0.25), rgba(139, 92, 246, 0.2));
  border-color: rgba(167, 139, 250, 0.4);
  color: #fff;
}

.feature-icon svg {
  width: 24px;
  height: 24px;
}

.feature p {
  color: #888;
  font-size: 0.9rem;
  transition: color 0.2s ease;
}

.feature:hover p {
  color: #aaa;
}

#signup-form {
  max-width: 500px;
  margin: 0 auto;
  width: 100%;
  animation: fadeInUp 0.6s ease-out 0.4s both;
}

.form-group {
  display: flex;
  gap: 0.5rem;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  padding: 0.5rem;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.form-group:focus-within {
  border-color: rgba(139, 92, 246, 0.4);
  box-shadow: 0 0 0 3px rgba(139, 92, 246, 0.1);
}

input[type="email"] {
  flex: 1;
  background: transparent;
  border: none;
  padding: 1rem;
  color: #fff;
  font-size: 1rem;
  outline: none;
}

input[type="email"]::placeholder {
  color: #666;
}

button {
  background: linear-gradient(135deg, var(--purple-2), var(--purple-1));
  color: #fff;
  border: none;
  padding: 1rem 2rem;
  border-radius: 8px;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
  white-space: nowrap;
  position: relative;
  overflow: hidden;
}

button::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.1), transparent);
  transition: left 0.4s ease;
}

button:hover::before {
  left: 100%;
}

button:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(124, 58, 237, 0.5);
}

button:disabled {
  opacity: 0.7;
  cursor: not-allowed;
  transform: none;
}

.message {
  margin-top: 1rem;
  padding: 0.75rem;
  border-radius: 8px;
  font-size: 0.9rem;
}

.message.success {
  background: rgba(34, 197, 94, 0.2);
  color: #22c55e;
}

.message.error {
  background: rgba(239, 68, 68, 0.2);
  color: #ef4444;
}

.privacy {
  margin-top: 1.5rem;
  font-size: 0.85rem;
  color: #666;
  animation: fadeIn 0.6s ease-out 0.5s both;
}

footer {
  padding: 2rem 0;
  text-align: center;
  color: #444;
  font-size: 0.85rem;
  animation: fadeIn 0.6s ease-out 0.6s both;
}

@media (max-width: 600px) {
  .form-group {
    flex-direction: column;
  }
  
  button {
    width: 100%;
  }
  
  .features {
    gap: 1.5rem;
  }
}
