/* Reset & Base */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --primary: #0ea5e9;
  --primary-glow: rgba(14, 165, 233, 0.4);
  --bg-dark: #0a0a0a;
  --bg-accent: #0c1929;
  --text-primary: #ffffff;
  --text-secondary: rgba(255, 255, 255, 0.6);
  --text-muted: rgba(255, 255, 255, 0.4);
}

html, body {
  height: 100%;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  background: var(--bg-dark);
  color: var(--text-primary);
  overflow-x: hidden;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* Animated Background */
.background {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, var(--bg-dark) 0%, var(--bg-accent) 50%, var(--bg-dark) 100%);
  background-size: 400% 400%;
  animation: gradientShift 15s ease infinite;
  z-index: -1;
}

@keyframes gradientShift {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

/* Container */
.container {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 2rem;
  text-align: center;
  gap: 2.5rem;
}

/* Logo */
.logo-wrapper {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

.logo-glow {
  position: absolute;
  width: 120px;
  height: 120px;
  background: var(--primary);
  border-radius: 28px;
  filter: blur(40px);
  opacity: 0.5;
  animation: pulseGlow 3s ease-in-out infinite;
}

@keyframes pulseGlow {
  0%, 100% { 
    opacity: 0.3;
    transform: scale(1);
  }
  50% { 
    opacity: 0.6;
    transform: scale(1.1);
  }
}

.logo {
  width: 100px;
  height: 100px;
  background: var(--primary);
  border-radius: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  z-index: 1;
  box-shadow: 
    0 0 0 1px rgba(255, 255, 255, 0.1),
    0 20px 50px -10px rgba(14, 165, 233, 0.4);
  animation: logoFloat 6s ease-in-out infinite;
}

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

.logo-img {
  width: 100%;
  height: 100%;
  border-radius: 24px;
  object-fit: cover;
}

/* Teaser Text */
.teaser-text {
  font-size: clamp(1.5rem, 5vw, 2.5rem);
  font-weight: 600;
  letter-spacing: -0.5px;
  background: linear-gradient(to right, var(--text-primary), var(--text-secondary));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* Countdown */
.countdown {
  display: inline-flex;
  align-items: baseline;
  gap: 0.25rem;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  padding: 0.75rem 1.25rem;
  font-size: 1.1rem;
  font-weight: 500;
  color: var(--text-secondary);
  backdrop-filter: blur(10px);
}

.countdown span:not(.separator) {
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  color: var(--primary);
  font-size: 1.25rem;
}

.countdown .separator {
  color: var(--text-muted);
  margin: 0 0.15rem;
}

/* Signup Section */
.signup-section {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
  width: 100%;
  max-width: 400px;
}

.signup-text {
  color: var(--text-secondary);
  font-size: 0.95rem;
}

.signup-form {
  display: flex;
  width: 100%;
  gap: 0.5rem;
  flex-wrap: wrap;
  justify-content: center;
}

.email-input {
  flex: 1;
  min-width: 200px;
  padding: 1rem 1.25rem;
  font-size: 1rem;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  color: var(--text-primary);
  outline: none;
  transition: all 0.3s ease;
}

.email-input::placeholder {
  color: var(--text-muted);
}

.email-input:focus {
  border-color: var(--primary);
  background: rgba(14, 165, 233, 0.05);
  box-shadow: 0 0 0 3px rgba(14, 165, 233, 0.1);
}

.submit-btn {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 1rem 1.5rem;
  font-size: 1rem;
  font-weight: 600;
  background: var(--primary);
  color: white;
  border: none;
  border-radius: 12px;
  cursor: pointer;
  transition: all 0.3s ease;
}

.submit-btn:hover {
  background: #0284c7;
  transform: translateY(-2px);
  box-shadow: 0 10px 30px -10px rgba(14, 165, 233, 0.5);
}

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

.btn-arrow {
  transition: transform 0.3s ease;
}

.submit-btn:hover .btn-arrow {
  transform: translateX(4px);
}

.success-message {
  color: #22c55e;
  font-size: 0.95rem;
  opacity: 0;
  transform: translateY(10px);
  transition: all 0.4s ease;
}

.success-message.show {
  opacity: 1;
  transform: translateY(0);
}

.error-message {
  color: #ef4444;
  font-size: 0.95rem;
  opacity: 0;
  transform: translateY(10px);
  transition: all 0.4s ease;
}

.error-message.show {
  opacity: 1;
  transform: translateY(0);
}

/* Loading state */
.submit-btn.loading {
  opacity: 0.7;
  pointer-events: none;
}

.submit-btn.loading .btn-text::after {
  content: '...';
  animation: dots 1.5s steps(4, end) infinite;
}

@keyframes dots {
  0%, 20% { content: ''; }
  40% { content: '.'; }
  60% { content: '..'; }
  80%, 100% { content: '...'; }
}

/* Footer */
.footer {
  padding: 2rem;
  text-align: center;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
}

.footer a {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.85rem;
  transition: color 0.3s ease;
}

.footer a:hover {
  color: var(--text-secondary);
}

.instagram-link {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}

.instagram-link svg {
  vertical-align: middle;
}

.footer-divider {
  color: var(--text-muted);
  opacity: 0.3;
  font-size: 0.85rem;
}

/* Privacy page */
.privacy-container {
  flex: 1;
  max-width: 560px;
  margin: 0 auto;
  padding: 2rem;
  text-align: left;
}

.privacy-back {
  display: inline-block;
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.9rem;
  margin-bottom: 2rem;
  transition: color 0.3s ease;
}

.privacy-back:hover {
  color: var(--primary);
}

.privacy-title {
  font-size: 1.75rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 1rem;
}

.privacy-intro {
  color: var(--text-secondary);
  font-size: 0.95rem;
  margin-bottom: 2rem;
  line-height: 1.5;
}

.privacy-section {
  margin-bottom: 1.75rem;
}

.privacy-section h2 {
  font-size: 1rem;
  font-weight: 600;
  color: var(--primary);
  margin-bottom: 0.5rem;
}

.privacy-section p {
  color: var(--text-secondary);
  font-size: 0.95rem;
  line-height: 1.5;
}

.privacy-section a {
  color: var(--primary);
  text-decoration: underline;
}

.privacy-section a:hover {
  color: #38bdf8;
}

.privacy-updated {
  color: var(--text-muted);
  font-size: 0.85rem;
  margin-top: 2rem;
}

/* Responsive */
@media (max-width: 480px) {
  .signup-form {
    flex-direction: column;
  }
  
  .submit-btn {
    width: 100%;
    justify-content: center;
  }
}
