/* ==========================================================================
   ACX TOTALITY — Waitlist Page Styles
   Aesthetic Cosmic Dark Space Theme matching high-fidelity design
   ========================================================================== */

:root {
  --wl-bg-dark: #070512;
  --wl-card-bg: rgba(18, 14, 32, 0.92);
  --wl-card-border: rgba(255, 255, 255, 0.08);
  --wl-input-bg: rgba(30, 23, 52, 0.75);
  --wl-input-border: rgba(255, 255, 255, 0.1);
  --wl-input-focus-border: #8b5cf6;
  --wl-text-primary: #ffffff;
  --wl-text-secondary: #94a3b8;
  --wl-text-muted: #64748b;
  --wl-gradient-btn: linear-gradient(90deg, #4f46e5 0%, #7c3aed 45%, #a855f7 80%, #c084fc 100%);
  --wl-btn-glow: 0 6px 26px rgba(124, 58, 237, 0.45);
  --wl-font: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

*, *::before, *::after {
  box-sizing: border-box;
}

html, body {
  margin: 0;
  padding: 0;
  min-height: 100%;
  font-family: var(--wl-font);
  background-color: var(--wl-bg-dark);
  color: var(--wl-text-primary);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

/* Cosmic Background Wrapper */
.waitlist-page-wrapper {
  position: relative;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background: radial-gradient(circle at 50% 25%, #1d103d 0%, #0d0920 50%, #06040f 100%);
  overflow: hidden;
}

/* Subtle Matrix Dot Grid */
.waitlist-grid-matrix {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image: radial-gradient(rgba(168, 85, 247, 0.18) 1.2px, transparent 1.2px);
  background-size: 32px 32px;
  background-position: center center;
  opacity: 0.65;
  z-index: 1;
}

/* Ambient Radial Glows */
.waitlist-ambient-glow {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 2;
  overflow: hidden;
}

.ambient-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(90px);
  opacity: 0.4;
  pointer-events: none;
}

.ambient-orb-1 {
  top: 15%;
  left: 50%;
  transform: translateX(-50%);
  width: 600px;
  height: 500px;
  background: radial-gradient(circle, rgba(139, 92, 246, 0.45) 0%, rgba(217, 70, 239, 0.2) 60%, transparent 80%);
}

.ambient-orb-2 {
  top: -10%;
  left: -5%;
  width: 450px;
  height: 450px;
  background: radial-gradient(circle, rgba(99, 102, 241, 0.3) 0%, transparent 70%);
}

.ambient-orb-3 {
  bottom: -10%;
  right: -5%;
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(236, 72, 153, 0.25) 0%, transparent 70%);
}

/* Canvas for dynamic 4-point cross stars & twinkle particles */
#waitlist-stars-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 3;
}

/* Minimal Header Bar */
.waitlist-header {
  position: relative;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 32px;
  width: 100%;
}

.waitlist-header .brand-logo {
  height: 24px;
  width: auto;
  transition: opacity 0.2s ease;
}

.waitlist-header .brand-logo:hover {
  opacity: 0.85;
}

.waitlist-nav-links {
  display: flex;
  align-items: center;
  gap: 20px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.waitlist-nav-link {
  color: var(--wl-text-secondary);
  text-decoration: none;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.5px;
  transition: color 0.2s ease;
  display: flex;
  align-items: center;
  gap: 6px;
}

.waitlist-nav-link:hover {
  color: #ffffff;
}

/* Main Container: Centered Card */
.waitlist-main {
  position: relative;
  z-index: 10;
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px 20px 60px;
}

/* Card Container */
.waitlist-card {
  position: relative;
  width: 100%;
  max-width: 440px;
  background: var(--wl-card-bg);
  border: 1px solid var(--wl-card-border);
  border-radius: 24px;
  padding: 36px 32px;
  box-shadow:
    0 25px 60px -10px rgba(0, 0, 0, 0.75),
    0 0 50px -10px rgba(139, 92, 246, 0.2),
    inset 0 1px 1px rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.waitlist-card:hover {
  box-shadow:
    0 30px 70px -10px rgba(0, 0, 0, 0.85),
    0 0 60px -5px rgba(168, 85, 247, 0.25),
    inset 0 1px 1px rgba(255, 255, 255, 0.15);
}

/* Card Header Content */
.waitlist-card-header {
  text-align: center;
  margin-bottom: 26px;
}

.waitlist-logo-badge {
  display: inline-block;
  margin-bottom: 16px;
}

.waitlist-logo-img {
  height: 24px;
  width: auto;
  display: block;
  margin: 0 auto;
}

.waitlist-card-title {
  margin: 0 0 8px;
  font-size: 26px;
  font-weight: 700;
  line-height: 1.25;
  letter-spacing: -0.4px;
  color: #ffffff;
}

.waitlist-card-title .gradient-text {
  background: linear-gradient(135deg, #a855f7 0%, #ec4899 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.waitlist-card-subtitle {
  margin: 0;
  font-size: 13.5px;
  line-height: 1.5;
  color: var(--wl-text-secondary);
}

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

.form-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
  text-align: left;
}

.form-label {
  font-size: 12.5px;
  font-weight: 500;
  color: #cbd5e1;
  letter-spacing: 0.1px;
}

.form-input {
  width: 100%;
  height: 44px;
  padding: 10px 14px;
  font-family: inherit;
  font-size: 13.5px;
  color: #ffffff;
  background: var(--wl-input-bg);
  border: 1px solid var(--wl-input-border);
  border-radius: 10px;
  transition: all 0.2s ease;
  outline: none;
}

.form-input::placeholder {
  color: var(--wl-text-muted);
  font-size: 13.5px;
}

.form-input:hover {
  border-color: rgba(255, 255, 255, 0.2);
  background: rgba(36, 28, 62, 0.85);
}

.form-input:focus {
  border-color: var(--wl-input-focus-border);
  background: rgba(38, 29, 66, 0.95);
  box-shadow: 0 0 0 3px rgba(139, 92, 246, 0.25);
}

/* Submit Button */
.waitlist-submit-btn {
  width: 100%;
  height: 46px;
  margin-top: 10px;
  border: none;
  border-radius: 9999px;
  background: var(--wl-gradient-btn);
  color: #ffffff;
  font-family: inherit;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  cursor: pointer;
  box-shadow: var(--wl-btn-glow);
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.waitlist-submit-btn:hover:not(:disabled) {
  filter: brightness(1.12);
  transform: translateY(-1.5px);
  box-shadow: 0 8px 32px rgba(139, 92, 246, 0.6);
}

.waitlist-submit-btn:active:not(:disabled) {
  transform: translateY(0);
  box-shadow: 0 4px 18px rgba(139, 92, 246, 0.4);
}

.waitlist-submit-btn:disabled {
  opacity: 0.7;
  cursor: not-allowed;
  transform: none;
}

.btn-arrow {
  display: inline-block;
  font-size: 15px;
  transition: transform 0.2s ease;
}

.waitlist-submit-btn:hover:not(:disabled) .btn-arrow {
  transform: translateX(3px);
}

/* Feedback Box (Errors & Status) */
.waitlist-feedback {
  margin-top: 16px;
  padding: 12px 16px;
  border-radius: 10px;
  font-size: 13px;
  line-height: 1.4;
  text-align: center;
  display: none;
  animation: fadeIn 0.25s ease-out;
}

.waitlist-feedback.error {
  display: block;
  background: rgba(239, 68, 68, 0.15);
  border: 1px solid rgba(239, 68, 68, 0.4);
  color: #fca5a5;
}

.waitlist-feedback.warning {
  display: block;
  background: rgba(245, 158, 11, 0.15);
  border: 1px solid rgba(245, 158, 11, 0.4);
  color: #fde68a;
}

/* Success View State */
.waitlist-success-state {
  display: none;
  text-align: center;
  padding: 20px 0 10px;
  animation: fadeIn 0.4s ease-out;
}

.waitlist-success-icon {
  width: 68px;
  height: 68px;
  margin: 0 auto 20px;
  border-radius: 50%;
  background: linear-gradient(135deg, rgba(139, 92, 246, 0.2) 0%, rgba(236, 72, 153, 0.25) 100%);
  border: 1px solid rgba(168, 85, 247, 0.5);
  box-shadow: 0 0 30px rgba(168, 85, 247, 0.35);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #c084fc;
  font-size: 32px;
}

.waitlist-success-title {
  font-size: 22px;
  font-weight: 700;
  margin: 0 0 10px;
  color: #ffffff;
}

.waitlist-success-message {
  font-size: 14px;
  line-height: 1.6;
  color: var(--wl-text-secondary);
  margin-bottom: 24px;
}

.waitlist-success-home-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 24px;
  border-radius: 9999px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: #ffffff;
  text-decoration: none;
  font-size: 13px;
  font-weight: 600;
  transition: all 0.2s ease;
}

.waitlist-success-home-btn:hover {
  background: rgba(255, 255, 255, 0.15);
  border-color: rgba(255, 255, 255, 0.3);
  transform: translateY(-1px);
}

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

/* Spinner Icon */
.ti-spin {
  animation: ti-spin 1s infinite linear;
}

@keyframes ti-spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

/* Mobile Responsiveness */
@media (max-width: 480px) {
  .waitlist-header {
    padding: 16px 20px;
  }

  .waitlist-card {
    padding: 28px 20px;
    border-radius: 20px;
  }

  .waitlist-card-title {
    font-size: 22px;
  }

  .waitlist-card-subtitle {
    font-size: 12.5px;
  }

  .form-input {
    height: 42px;
    font-size: 13px;
  }

  .waitlist-submit-btn {
    height: 44px;
    font-size: 12.5px;
  }
}
