:root {
  --bg: #07060f;
  --bg2: #120d20;
  --card: #14101f;
  --card2: #1d1730;
  --border: rgba(168, 85, 247, 0.16);
  --border2: rgba(255, 255, 255, 0.06);
  --violet: #a855f7;
  --violet2: #c084fc;
  --violet-glow: rgba(168, 85, 247, 0.18);
  --text: #ece8f5;
  --muted: rgba(236, 232, 245, 0.45);
  --success: #00c896;
  --error: #ff4d6d;
  --nav-h: 72px;
}

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

html { scroll-behavior: smooth; }

body {
  background-color: var(--bg);
  background-image:
    radial-gradient(rgba(168, 85, 247, 0.06) 1px, transparent 1px);
  background-size: 32px 32px;
  color: var(--text);
  font-family: 'Space Grotesk', sans-serif;
  overflow-x: hidden;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* Scanlines overlay */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  background: repeating-linear-gradient(
    0deg,
    transparent 0px, transparent 3px,
    rgba(0, 0, 0, 0.022) 3px, rgba(0, 0, 0, 0.022) 4px
  );
  pointer-events: none;
  z-index: 9998;
}

/* ── BACKGROUND SCENE ── */
.bg-scene {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  overflow: hidden;
}

.orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(90px);
}

.orb-1 {
  width: 700px; height: 700px;
  background: radial-gradient(circle, rgba(168, 85, 247, 0.09) 0%, transparent 70%);
  top: -250px; right: -150px;
  animation: orbDrift 18s ease-in-out infinite alternate;
}

.orb-2 {
  width: 500px; height: 500px;
  background: radial-gradient(circle, rgba(192, 132, 252, 0.06) 0%, transparent 70%);
  bottom: 100px; left: -150px;
  animation: orbDrift 24s ease-in-out infinite alternate-reverse;
}

.orb-3 {
  width: 400px; height: 400px;
  background: radial-gradient(circle, rgba(168, 85, 247, 0.05) 0%, transparent 70%);
  top: 50%; left: 40%;
  transform: translate(-50%, -50%);
  animation: orbDrift 20s ease-in-out infinite alternate;
}

@keyframes orbDrift {
  0%   { transform: translate(0, 0); }
  100% { transform: translate(40px, 30px); }
}

.sil {
  position: absolute;
  color: var(--violet);
}

.sil-1 {
  width: 360px;
  right: -40px;
  top: 8vh;
  opacity: 0.05;
  transform: rotate(4deg);
  animation: silFloat 12s ease-in-out infinite alternate;
}

.sil-2 {
  width: 260px;
  left: -50px;
  top: 45vh;
  opacity: 0.028;
  transform: rotate(-6deg) scaleX(-1);
  animation: silFloat 16s ease-in-out infinite alternate-reverse;
}

.sil-3 {
  width: 200px;
  right: 8%;
  bottom: 6vh;
  opacity: 0.022;
  transform: rotate(-3deg);
  animation: silFloat 14s ease-in-out infinite alternate;
}

@keyframes silFloat {
  0%   { transform: translateY(0) rotate(4deg); }
  100% { transform: translateY(-24px) rotate(4deg); }
}

/* ── NAV ── */
nav {
  position: relative;
  z-index: 10;
  height: var(--nav-h);
  display: flex;
  align-items: center;
  padding: 0 40px;
}

.nav-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}

.nav-logo {
  width: 34px; height: 34px;
  object-fit: contain;
}

.nav-title {
  font-weight: 700;
  font-size: 18px;
  letter-spacing: 0.12em;
  color: var(--text);
}

/* ── HERO ── */
.hero {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px 24px 80px;
  position: relative;
  z-index: 1;
}

.hero-inner {
  max-width: 640px;
  text-align: center;
}

.badge {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.25em;
  color: var(--violet2);
  border: 1px solid var(--border);
  background: var(--violet-glow);
  padding: 7px 16px;
  border-radius: 100px;
  margin-bottom: 28px;
}

.hero h1 {
  font-size: clamp(42px, 8vw, 76px);
  font-weight: 700;
  line-height: 1.02;
  letter-spacing: -0.02em;
  margin-bottom: 24px;
}

.hero h1 .accent {
  background: linear-gradient(120deg, var(--violet) 0%, var(--violet2) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-desc {
  font-size: 16px;
  line-height: 1.7;
  color: var(--muted);
  max-width: 520px;
  margin: 0 auto 40px;
}

/* ── FORM ── */
.form-wrap {
  max-width: 480px;
  margin: 0 auto;
}

.email-row {
  display: flex;
  gap: 10px;
}

.email-input {
  flex: 1;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 16px 18px;
  color: var(--text);
  font-family: inherit;
  font-size: 15px;
  outline: none;
  transition: all 0.2s;
}

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

.email-input:focus {
  border-color: var(--violet);
  box-shadow: 0 0 0 3px var(--violet-glow);
}

.btn-primary {
  background: linear-gradient(120deg, var(--violet) 0%, var(--violet2) 100%);
  color: #fff;
  border: none;
  border-radius: 12px;
  padding: 16px 26px;
  font-family: inherit;
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 0.02em;
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.2s;
  box-shadow: 0 6px 24px var(--violet-glow);
}

.btn-primary:hover:not(:disabled) {
  transform: translateY(-1px);
  box-shadow: 0 8px 30px var(--violet-glow);
}

.btn-primary:disabled {
  opacity: 0.65;
  cursor: default;
}

.form-note {
  font-size: 12px;
  color: var(--muted);
  margin-top: 14px;
}

#form-msg { min-height: 4px; }

.msg {
  margin-top: 14px;
  padding: 12px 16px;
  border-radius: 10px;
  font-size: 14px;
  font-weight: 500;
}

.msg.error {
  color: var(--error);
  background: rgba(255, 77, 109, 0.08);
  border: 1px solid rgba(255, 77, 109, 0.25);
}

.msg.success {
  color: var(--success);
  background: rgba(0, 200, 150, 0.08);
  border: 1px solid rgba(0, 200, 150, 0.25);
}

/* ── SUCCESS STATE ── */
.success-state {
  text-align: center;
  padding: 8px;
}

.success-state .success-icon {
  width: 64px; height: 64px;
  margin: 0 auto 20px;
  border-radius: 50%;
  background: var(--violet-glow);
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 30px;
  color: var(--violet2);
}

.success-state h3 {
  font-size: 22px;
  font-weight: 700;
  margin-bottom: 10px;
}

.success-state p {
  font-size: 15px;
  color: var(--muted);
  line-height: 1.6;
}

/* ── FOOTER ── */
footer {
  position: relative;
  z-index: 1;
  text-align: center;
  padding: 40px 24px;
  border-top: 1px solid var(--border2);
}

.footer-logo {
  width: 30px; height: 30px;
  object-fit: contain;
  opacity: 0.5;
  margin-bottom: 12px;
}

.footer-text {
  font-size: 12px;
  color: var(--muted);
}

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

.spinner {
  width: 18px; height: 18px;
  border: 2px solid rgba(255, 255, 255, 0.3);
  border-top-color: #fff;
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
  display: inline-block;
  vertical-align: middle;
}

/* ── RESPONSIVE ── */
@media (max-width: 560px) {
  nav { padding: 0 20px; }
  .email-row { flex-direction: column; }
  .btn-primary { width: 100%; }
}
