/* =========================================================
   Imago — Teaser Landing Page
   Dark · Mystical · Iridescent · Premium
   ========================================================= */

:root {
  --black: #07070a;
  --dark: #0d0d14;
  --surface: #12121d;
  --border: rgba(255, 255, 255, 0.07);
  --text: #e8e8f0;
  --muted: #6b6b8a;
  --iridescent-1: #8b5cf6;
  --iridescent-2: #06b6d4;
  --iridescent-3: #ec4899;
  --iridescent-4: #10b981;
  --gold: #d4af6e;
  --font-serif: 'Playfair Display', Georgia, serif;
  --font-sans: 'Inter', system-ui, sans-serif;
}

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

html {
  scroll-behavior: smooth;
}

body {
  background-color: var(--black);
  color: var(--text);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.6;
  min-height: 100dvh;
  overflow-x: hidden;
  position: relative;
}

/* =========================================================
   Background — Wings & Particles
   ========================================================= */

.bg-layer {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
}

/* Moth wing silhouettes */
.wing {
  position: absolute;
  top: 50%;
  width: 45vw;
  height: 75vh;
  transform-origin: center right;
  opacity: 0.035;
  background: radial-gradient(ellipse 80% 60% at 60% 40%,
    var(--iridescent-1) 0%,
    var(--iridescent-2) 35%,
    transparent 70%
  );
  border-radius: 60% 40% 55% 45% / 50% 60% 40% 50%;
  animation: wingFloat 12s ease-in-out infinite alternate;
}

.wing-left {
  right: 50%;
  transform: translateY(-50%) scaleX(-1);
  animation-delay: 0s;
}

.wing-right {
  left: 50%;
  transform: translateY(-50%);
  animation-delay: 1.5s;
}

@keyframes wingFloat {
  0%   { opacity: 0.030; transform: translateY(-50%) scaleY(1) rotate(-2deg); }
  50%  { opacity: 0.050; transform: translateY(-52%) scaleY(1.03) rotate(0deg); }
  100% { opacity: 0.035; transform: translateY(-48%) scaleY(0.97) rotate(2deg); }
}

.wing-right {
  transform: translateY(-50%);
}
.wing-right.wing {
  animation: wingFloatR 12s ease-in-out infinite alternate;
  animation-delay: 1.5s;
}

@keyframes wingFloatR {
  0%   { opacity: 0.030; transform: translateY(-50%) scaleY(1) rotate(2deg); }
  50%  { opacity: 0.050; transform: translateY(-52%) scaleY(1.03) rotate(0deg); }
  100% { opacity: 0.035; transform: translateY(-48%) scaleY(0.97) rotate(-2deg); }
}

/* Particle dots */
.particles {
  position: absolute;
  inset: 0;
}

/* =========================================================
   Iridescent Orb
   ========================================================= */

.orb {
  position: fixed;
  top: 55%;
  left: 50%;
  width: 600px;
  height: 600px;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  background: conic-gradient(
    from 0deg,
    rgba(139, 92, 246, 0.12),
    rgba(6, 182, 212, 0.10),
    rgba(236, 72, 153, 0.08),
    rgba(16, 185, 129, 0.10),
    rgba(139, 92, 246, 0.12)
  );
  filter: blur(80px);
  animation: orbPulse 8s ease-in-out infinite alternate;
  pointer-events: none;
  z-index: 0;
}

@keyframes orbPulse {
  0%   { opacity: 0.6; transform: translate(-50%, -50%) scale(1); }
  50%  { opacity: 0.9; transform: translate(-50%, -52%) scale(1.05); }
  100% { opacity: 0.6; transform: translate(-50%, -50%) scale(0.97); }
}

/* =========================================================
   Layout
   ========================================================= */

.container {
  position: relative;
  z-index: 1;
  max-width: 780px;
  margin: 0 auto;
  padding: 0 24px;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 56px;
  padding-top: 80px;
  padding-bottom: 60px;
}

/* =========================================================
   Header / Logo
   ========================================================= */

.header {
  display: flex;
  justify-content: center;
}

.logo-wrap {
  position: relative;
}

.logo {
  width: 72px;
  height: 72px;
  object-fit: contain;
  border-radius: 18px;
  animation: logoGlow 6s ease-in-out infinite alternate;
  filter: drop-shadow(0 0 20px rgba(139, 92, 246, 0.4));
}

@keyframes logoGlow {
  0%   { filter: drop-shadow(0 0 16px rgba(139, 92, 246, 0.35)); }
  33%  { filter: drop-shadow(0 0 24px rgba(6, 182, 212, 0.45)); }
  66%  { filter: drop-shadow(0 0 20px rgba(236, 72, 153, 0.40)); }
  100% { filter: drop-shadow(0 0 16px rgba(139, 92, 246, 0.35)); }
}

/* =========================================================
   Hero
   ========================================================= */

.hero {
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
}

.badge {
  display: inline-block;
  padding: 5px 16px;
  border: 1px solid rgba(139, 92, 246, 0.35);
  border-radius: 100px;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: rgba(139, 92, 246, 0.9);
  background: rgba(139, 92, 246, 0.07);
  animation: badgeFade 1s ease both;
}

@keyframes badgeFade {
  from { opacity: 0; transform: translateY(-8px); }
  to   { opacity: 1; transform: translateY(0); }
}

.headline {
  font-family: var(--font-serif);
  font-size: clamp(2.2rem, 6vw, 3.8rem);
  font-weight: 600;
  line-height: 1.15;
  letter-spacing: -0.02em;
  color: var(--text);
  animation: heroFade 1.1s ease 0.1s both;
}

.headline em {
  font-style: italic;
  font-weight: 400;
  background: linear-gradient(
    135deg,
    var(--iridescent-1) 0%,
    var(--iridescent-2) 35%,
    var(--iridescent-3) 65%,
    var(--iridescent-4) 100%
  );
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: iridShift 8s linear infinite;
  background-size: 300% 300%;
}

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

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

.subheadline {
  font-size: clamp(1rem, 2.5vw, 1.18rem);
  color: var(--muted);
  font-weight: 300;
  line-height: 1.7;
  max-width: 540px;
  animation: heroFade 1.2s ease 0.25s both;
}

/* =========================================================
   Waitlist Form
   ========================================================= */

.waitlist {
  width: 100%;
  max-width: 520px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  animation: heroFade 1.2s ease 0.4s both;
}

.waitlist-label {
  font-size: 0.82rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 500;
}

.form {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.input-group {
  display: flex;
  gap: 0;
  border: 1px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.03);
  backdrop-filter: blur(8px);
  transition: border-color 0.25s ease, box-shadow 0.25s ease;
}

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

.email-input {
  flex: 1;
  background: transparent;
  border: none;
  outline: none;
  padding: 14px 18px;
  color: var(--text);
  font-size: 0.95rem;
  font-family: var(--font-sans);
}

.email-input::placeholder {
  color: rgba(255, 255, 255, 0.2);
}

.submit-btn {
  background: linear-gradient(135deg, var(--iridescent-1), var(--iridescent-2));
  border: none;
  cursor: pointer;
  padding: 14px 22px;
  color: #fff;
  font-size: 0.9rem;
  font-weight: 500;
  font-family: var(--font-sans);
  display: flex;
  align-items: center;
  gap: 8px;
  transition: opacity 0.2s ease, transform 0.15s ease;
  white-space: nowrap;
  position: relative;
  overflow: hidden;
}

.submit-btn::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, var(--iridescent-3), var(--iridescent-1));
  opacity: 0;
  transition: opacity 0.3s ease;
}

.submit-btn:hover::before { opacity: 1; }
.submit-btn:hover { transform: none; }
.submit-btn:active { transform: scale(0.98); }
.submit-btn span { position: relative; z-index: 1; }

.btn-arrow {
  transition: transform 0.2s ease;
}
.submit-btn:hover .btn-arrow {
  transform: translateX(3px);
}

.form-note {
  text-align: center;
  font-size: 0.75rem;
  color: rgba(255, 255, 255, 0.2);
  letter-spacing: 0.03em;
}

.success-msg {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--iridescent-4);
  font-size: 0.95rem;
  padding: 14px 24px;
  border: 1px solid rgba(16, 185, 129, 0.25);
  border-radius: 12px;
  background: rgba(16, 185, 129, 0.06);
  animation: heroFade 0.4s ease both;
}

.success-icon {
  font-size: 1.1rem;
  animation: spin 4s linear infinite;
}

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

/* =========================================================
   Stats
   ========================================================= */

.stats {
  display: flex;
  align-items: center;
  gap: 32px;
  animation: heroFade 1.3s ease 0.6s both;
}

.stat {
  text-align: center;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.stat-num {
  font-family: var(--font-serif);
  font-size: 1.6rem;
  font-weight: 600;
  background: linear-gradient(135deg, var(--iridescent-1), var(--iridescent-2));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.stat-label {
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 500;
}

.stat-divider {
  color: rgba(139, 92, 246, 0.3);
  font-size: 0.8rem;
}

/* =========================================================
   Footer
   ========================================================= */

.footer {
  text-align: center;
  font-size: 0.78rem;
  color: rgba(255, 255, 255, 0.18);
  letter-spacing: 0.04em;
  animation: heroFade 1.4s ease 0.7s both;
}

.footer a {
  color: rgba(139, 92, 246, 0.6);
  text-decoration: none;
  transition: color 0.2s ease;
}

.footer a:hover {
  color: rgba(139, 92, 246, 0.9);
}

/* =========================================================
   Particle dots (JS-generated)
   ========================================================= */

.particle {
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
  animation: particleDrift linear infinite;
}

@keyframes particleDrift {
  0%   { opacity: 0; transform: translateY(0) scale(0); }
  10%  { opacity: 1; }
  90%  { opacity: 0.4; }
  100% { opacity: 0; transform: translateY(-120px) scale(1.5); }
}

/* =========================================================
   Mobile
   ========================================================= */

@media (max-width: 600px) {
  .container {
    gap: 40px;
    padding-top: 60px;
  }

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

  .input-group {
    flex-direction: column;
    border-radius: 14px;
  }

  .email-input {
    border-bottom: 1px solid var(--border);
    text-align: center;
  }

  .submit-btn {
    justify-content: center;
    padding: 14px;
    border-radius: 0 0 13px 13px;
  }

  .stats {
    gap: 20px;
  }

  .stat-num { font-size: 1.3rem; }
  .stat-divider { display: none; }
}

@media (max-width: 400px) {
  .stats { flex-direction: column; gap: 16px; }
  .stat-divider { display: none; }
}
