/* ===========================
   RESET & BASE
   =========================== */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  --brand-purple: #7C3AED;
  --brand-indigo: #4F46E5;
  --brand-violet: #8B5CF6;
  --text-primary: #F8FAFC;
  --text-secondary: #94A3B8;
  --text-muted: #64748B;
  --surface: rgba(255, 255, 255, 0.04);
  --surface-hover: rgba(255, 255, 255, 0.08);
  --border: rgba(255, 255, 255, 0.08);
  --bg: #060612;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Outfit', system-ui, sans-serif;
  background-color: var(--bg);
  color: var(--text-primary);
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow-x: hidden;
  position: relative;
}

/* ===========================
   BACKGROUND BLOBS
   =========================== */
.bg-blob {
  position: fixed;
  border-radius: 50%;
  filter: blur(90px);
  opacity: 0.35;
  animation: floatBlob 12s ease-in-out infinite alternate;
  pointer-events: none;
  z-index: 0;
}

.blob-1 {
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, #7C3AED, transparent 70%);
  top: -200px;
  left: -200px;
  animation-delay: 0s;
}

.blob-2 {
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, #4F46E5, transparent 70%);
  bottom: -150px;
  right: -150px;
  animation-delay: -4s;
}

.blob-3 {
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, #0EA5E9, transparent 70%);
  top: 50%;
  left: 60%;
  animation-delay: -8s;
  opacity: 0.2;
}

@keyframes floatBlob {
  0%   { transform: translate(0, 0) scale(1); }
  100% { transform: translate(40px, 30px) scale(1.08); }
}

/* ===========================
   NOISE OVERLAY
   =========================== */
.noise {
  position: fixed;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)' opacity='1'/%3E%3C/svg%3E");
  opacity: 0.03;
  pointer-events: none;
  z-index: 1;
}

/* ===========================
   LAYOUT
   =========================== */
.container {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: 680px;
  padding: 2rem 1.5rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3.5rem;
  min-height: 100vh;
  justify-content: center;
}

/* ===========================
   BRAND / LOGO
   =========================== */
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  animation: fadeDown 0.7s ease both;
}

.logo-mark {
  display: flex;
  align-items: center;
  justify-content: center;
  filter: drop-shadow(0 0 16px rgba(124, 58, 237, 0.6));
}

.brand-name {
  font-size: 1.35rem;
  font-weight: 700;
  letter-spacing: -0.5px;
  background: linear-gradient(135deg, #a78bfa, #818cf8);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ===========================
   HERO
   =========================== */
.hero {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 1.75rem;
  animation: fadeUp 0.8s ease 0.2s both;
}

/* Badge */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 16px;
  background: rgba(124, 58, 237, 0.12);
  border: 1px solid rgba(124, 58, 237, 0.3);
  border-radius: 999px;
  font-size: 0.8rem;
  font-weight: 500;
  color: #a78bfa;
  letter-spacing: 0.4px;
}

.badge-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #a78bfa;
  animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50%       { opacity: 0.5; transform: scale(0.75); }
}

/* Headline */
.headline {
  font-size: clamp(2.8rem, 8vw, 4.5rem);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -2px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.gradient-text {
  background: linear-gradient(135deg, #a78bfa 0%, #818cf8 50%, #38bdf8 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* Subtext */
.subtext {
  font-size: 1.05rem;
  font-weight: 300;
  color: var(--text-secondary);
  line-height: 1.7;
  max-width: 420px;
}

/* ===========================
   EMAIL FORM
   =========================== */
.email-form {
  display: flex;
  width: 100%;
  max-width: 480px;
  gap: 10px;
  flex-wrap: wrap;
}

.input-wrapper {
  flex: 1;
  min-width: 220px;
  position: relative;
  display: flex;
  align-items: center;
}

.input-icon {
  position: absolute;
  left: 14px;
  color: var(--text-muted);
  pointer-events: none;
  flex-shrink: 0;
}

.input-wrapper input {
  width: 100%;
  padding: 14px 16px 14px 44px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  color: var(--text-primary);
  font-family: 'Outfit', sans-serif;
  font-size: 0.95rem;
  outline: none;
  transition: border-color 0.2s, background 0.2s, box-shadow 0.2s;
}

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

.input-wrapper input:focus {
  border-color: rgba(124, 58, 237, 0.6);
  background: rgba(255, 255, 255, 0.06);
  box-shadow: 0 0 0 3px rgba(124, 58, 237, 0.15);
}

/* CTA button */
.cta-btn {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 14px 24px;
  background: linear-gradient(135deg, var(--brand-purple), var(--brand-indigo));
  border: none;
  border-radius: 12px;
  color: #fff;
  font-family: 'Outfit', sans-serif;
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  transition: transform 0.2s, box-shadow 0.2s, background 0.2s;
  white-space: nowrap;
  box-shadow: 0 4px 24px rgba(124, 58, 237, 0.4);
  position: relative;
  overflow: hidden;
}

.cta-btn::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(255,255,255,0.15), transparent);
  opacity: 0;
  transition: opacity 0.2s;
}

.cta-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 32px rgba(124, 58, 237, 0.55);
}

.cta-btn:hover::before {
  opacity: 1;
}

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

.cta-btn.success {
  background: linear-gradient(135deg, #059669, #10B981);
  box-shadow: 0 4px 24px rgba(16, 185, 129, 0.4);
}

.btn-arrow {
  transition: transform 0.2s;
}

.cta-btn:hover .btn-arrow {
  transform: translateX(3px);
}

/* Form note */
.form-note {
  font-size: 0.78rem;
  color: var(--text-muted);
  transition: all 0.3s ease;
}

.form-note.success-msg {
  color: #34D399;
}

/* ===========================
   FOOTER
   =========================== */
.footer {
  margin-top: auto;
  padding-top: 1rem;
  font-size: 0.78rem;
  color: var(--text-muted);
  animation: fadeUp 0.8s ease 0.5s both;
}

/* ===========================
   ANIMATIONS
   =========================== */
@keyframes fadeDown {
  from { opacity: 0; transform: translateY(-20px); }
  to   { opacity: 1; transform: translateY(0); }
}

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

/* ===========================
   RESPONSIVE
   =========================== */
@media (max-width: 520px) {
  .email-form {
    flex-direction: column;
  }

  .cta-btn {
    width: 100%;
    justify-content: center;
  }

  .headline {
    letter-spacing: -1.5px;
  }
}
