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

html {
  height: 100%;
  color-scheme: dark;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  margin: 0;
  min-height: 100%;
  font-family: "Plus Jakarta Sans", "Helvetica Neue", system-ui, sans-serif;
  line-height: 1.5;
  background: #060410;
}

/* ─── Canvas particles ─────────────────────────────────────── */
#particles {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
}

/* ─── Hero ─────────────────────────────────────────────────── */
.hero {
  position: relative;
  min-height: 100dvh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: clamp(1.5rem, 4vw, 2.5rem);
  overflow: hidden;
  background-color: #060410;
  background-image:
    radial-gradient(ellipse 110% 65% at 50% 115%,  rgba(255, 110, 50, 0.28) 0%, transparent 55%),
    radial-gradient(ellipse 80% 55% at 20% 80%,    rgba(120, 40, 220, 0.18) 0%, transparent 50%),
    radial-gradient(ellipse 70% 50% at 80% 75%,    rgba(30, 80, 255, 0.14)  0%, transparent 50%),
    linear-gradient(180deg, rgba(6,4,16,0.92) 0%, rgba(8,6,22,0.45) 40%, rgba(4,4,12,0.30) 60%, rgba(0,0,0,0.82) 100%),
    url("https://images.unsplash.com/photo-1519681393784-d120267933ba?auto=format&fit=crop&w=2200&q=80");
  background-size: cover;
  background-position: center bottom;
  background-repeat: no-repeat;
}

/* Animated aurora blobs */
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  background:
    radial-gradient(ellipse 55% 40% at 15% 30%, rgba(130, 50, 255, 0.12) 0%, transparent 60%),
    radial-gradient(ellipse 45% 35% at 85% 25%, rgba(50, 130, 255, 0.10) 0%, transparent 60%);
  animation: auroraShift 12s ease-in-out infinite alternate;
  pointer-events: none;
}

@keyframes auroraShift {
  0%   { opacity: 0.6; transform: scale(1)    translateY(0); }
  50%  { opacity: 1;   transform: scale(1.06) translateY(-12px); }
  100% { opacity: 0.7; transform: scale(0.97) translateY(8px); }
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 70% 60% at 50% 50%, transparent 35%, rgba(0,0,0,0.55) 100%);
  pointer-events: none;
  z-index: 0;
}

/* ─── Glass card ───────────────────────────────────────────── */
.card {
  position: relative;
  z-index: 1;
  width: min(46rem, 100%);
  text-align: center;
  color: #fff;
  animation: cardEnter 1s cubic-bezier(0.16, 1, 0.3, 1) forwards;
  opacity: 0;
  transform: translate3d(0, 24px, 0);

  background: rgba(255, 255, 255, 0.04);
  backdrop-filter: blur(22px) saturate(150%);
  -webkit-backdrop-filter: blur(22px) saturate(150%);
  border: 1px solid rgba(255, 255, 255, 0.10);
  border-radius: 28px;
  padding: clamp(2rem, 6vw, 3.5rem) clamp(1.5rem, 6vw, 3.5rem);
  box-shadow:
    0 0 0 1px rgba(255,255,255,0.04) inset,
    0 32px 80px rgba(0, 0, 0, 0.55),
    0 0 60px rgba(130, 50, 255, 0.08);
}

/* Glowing border animation */
.card::before {
  content: "";
  position: absolute;
  inset: -1px;
  border-radius: 29px;
  background: linear-gradient(135deg,
    rgba(180, 100, 255, 0.35),
    rgba(80, 140, 255, 0.20),
    rgba(255, 120, 60, 0.30),
    rgba(180, 100, 255, 0.35)
  );
  background-size: 300% 300%;
  animation: borderGlow 6s ease infinite;
  z-index: -1;
  pointer-events: none;
}

@keyframes borderGlow {
  0%   { background-position: 0% 50%;   opacity: 0.7; }
  50%  { background-position: 100% 50%; opacity: 1; }
  100% { background-position: 0% 50%;   opacity: 0.7; }
}

@keyframes cardEnter {
  to { opacity: 1; transform: translate3d(0, 0, 0); }
}

@media (prefers-reduced-motion: reduce) {
  .card, .hero::before { animation: none; opacity: 1; transform: none; }
}

/* ─── Badge ────────────────────────────────────────────────── */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.35rem 0.9rem;
  border-radius: 100px;
  background: rgba(180, 100, 255, 0.15);
  border: 1px solid rgba(180, 100, 255, 0.35);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(200, 160, 255, 0.95);
  margin-bottom: 2rem;
}

.badge-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: rgba(200, 150, 255, 0.9);
  box-shadow: 0 0 8px rgba(180, 100, 255, 0.8);
  animation: pulse 2s ease-in-out infinite;
}

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

/* ─── Headline ─────────────────────────────────────────────── */
h1 {
  margin: 0;
  font-size: clamp(2rem, 5vw + 0.75rem, 3.4rem);
  font-weight: 800;
  letter-spacing: -0.01em;
  line-height: 1.15;
  background: linear-gradient(135deg, #fff 0%, rgba(210, 180, 255, 0.95) 40%, rgba(255, 160, 100, 0.9) 80%, #fff 100%);
  background-size: 200% auto;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: shimmer 5s linear infinite;
  text-shadow: none;
  filter: drop-shadow(0 0 30px rgba(180, 100, 255, 0.3));
}

@keyframes shimmer {
  0%   { background-position: 0% center; }
  100% { background-position: 200% center; }
}

/* ─── Subtitle ─────────────────────────────────────────────── */
.sub {
  margin: 1.75rem auto 0;
  max-width: 30em;
  font-size: clamp(0.9375rem, 1.5vw + 0.75rem, 1.0625rem);
  font-weight: 300;
  letter-spacing: 0.02em;
  color: rgba(255, 255, 255, 0.72);
  line-height: 1.7;
}

/* ─── Signup form ──────────────────────────────────────────── */
.signup {
  display: flex;
  flex-wrap: wrap;
  align-items: stretch;
  justify-content: center;
  gap: 0.65rem;
  max-width: 36rem;
  margin: 2.25rem auto 0;
}

.signup input[type="email"] {
  flex: 1 1 14rem;
  min-height: 3.25rem;
  padding: 0 1.25rem;
  border: 1px solid rgba(255,255,255,0.15);
  border-radius: 12px;
  font: inherit;
  font-weight: 400;
  font-size: 0.9375rem;
  color: #fff;
  background: rgba(255, 255, 255, 0.07);
  backdrop-filter: blur(12px);
  transition: border-color 0.25s, box-shadow 0.25s;
}

.signup input[type="email"]::placeholder {
  color: rgba(255,255,255,0.38);
  font-weight: 300;
}

.signup input[type="email"]:focus {
  outline: none;
  border-color: rgba(180, 100, 255, 0.7);
  box-shadow: 0 0 0 3px rgba(150, 80, 255, 0.18), 0 0 20px rgba(150, 80, 255, 0.12);
}

.signup button[type="submit"] {
  flex: 0 0 auto;
  min-height: 3.25rem;
  padding: 0 2rem;
  border: none;
  border-radius: 12px;
  font: inherit;
  font-weight: 700;
  letter-spacing: 0.03em;
  font-size: 0.9375rem;
  color: #fff;
  cursor: pointer;
  position: relative;
  overflow: hidden;
  background: linear-gradient(135deg, #8b40ff 0%, #5b8fff 50%, #ff6a3d 100%);
  background-size: 200% auto;
  transition: background-position 0.4s ease, transform 0.15s ease, box-shadow 0.3s ease;
  box-shadow: 0 4px 24px rgba(130, 60, 255, 0.45), 0 1px 0 rgba(255,255,255,0.15) inset;
}

.signup button[type="submit"]:hover {
  background-position: right center;
  box-shadow: 0 6px 32px rgba(130, 60, 255, 0.6), 0 1px 0 rgba(255,255,255,0.15) inset;
  transform: translateY(-1px);
}

.signup button[type="submit"]:active {
  transform: scale(0.97) translateY(0);
}

/* ─── Divider ──────────────────────────────────────────────── */
.divider {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin: 2.25rem auto;
  max-width: 22rem;
  color: rgba(255,255,255,0.2);
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.divider::before,
.divider::after {
  content: "";
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.12), transparent);
}

/* ─── Social ───────────────────────────────────────────────── */
.social {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
}

.social a {
  display: grid;
  place-items: center;
  width: 2.7rem;
  height: 2.7rem;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: rgba(255,255,255,0.7);
  background: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(8px);
  transition: color 0.2s, border-color 0.2s, background 0.2s, transform 0.2s, box-shadow 0.2s;
  text-decoration: none;
}

.social a:hover {
  color: #fff;
  border-color: rgba(180, 100, 255, 0.55);
  background: rgba(130, 60, 255, 0.15);
  transform: translateY(-3px);
  box-shadow: 0 8px 20px rgba(130, 60, 255, 0.25);
}

.social svg {
  width: 1.05rem;
  height: 1.05rem;
  display: block;
}

/* ─── Success state ────────────────────────────────────────── */
.success-msg {
  display: none;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  font-size: 0.9375rem;
  font-weight: 600;
  color: rgba(160, 220, 160, 0.95);
  padding: 0.85rem 1.5rem;
  background: rgba(50, 200, 100, 0.1);
  border: 1px solid rgba(80, 200, 120, 0.3);
  border-radius: 12px;
  max-width: 36rem;
  margin: 0 auto;
}

.success-msg.visible { display: flex; }

@media (max-width: 540px) {
  .signup { flex-direction: column; }
  .signup input[type="email"],
  .signup button[type="submit"] { width: 100%; }
}
