@import url('https://fonts.googleapis.com/css2?family=Nunito:wght@400;700;800;900&display=swap');

:root {
  --bg:        #0e0a1a;
  --surface:   #1a1230;
  --card:      #221840;
  --purple:    #7c3aed;
  --purple-dk: #5b21b6;
  --lavender:  #a78bfa;
  --lavender-lt:#c4b5fd;
  --text:      #ede9fe;
  --muted:     #7c6fa0;
  --white:     #ffffff;
  --btn-shadow: 0 6px 0 #3b0764;
  --btn-shadow-hover: 0 4px 0 #3b0764;
  --btn-shadow-active: 0 2px 0 #3b0764;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

body {
  font-family: 'Nunito', sans-serif;
  background: var(--bg);
  color: var(--text);
  min-height: 100vh;
  overflow-x: hidden;
}

/* ── Background blobs ── */
body::before, body::after {
  content: '';
  position: fixed;
  border-radius: 50%;
  filter: blur(120px);
  opacity: 0.18;
  pointer-events: none;
  z-index: 0;
}
body::before {
  width: 600px; height: 600px;
  background: var(--purple);
  top: -150px; left: -150px;
}
body::after {
  width: 500px; height: 500px;
  background: var(--lavender);
  bottom: -100px; right: -100px;
}

/* ── Nav ── */
nav {
  position: relative; z-index: 10;
  display: flex; align-items: center; justify-content: space-between;
  padding: 1.25rem 2.5rem;
  border-bottom: 1px solid rgba(167,139,250,0.1);
}

.logo {
  font-size: 1.5rem;
  font-weight: 900;
  letter-spacing: -0.5px;
  color: var(--white);
}
.logo span { color: var(--lavender); }

.nav-badge {
  background: rgba(124,58,237,0.25);
  border: 1px solid rgba(167,139,250,0.3);
  color: var(--lavender-lt);
  font-size: 0.75rem;
  font-weight: 700;
  padding: 0.3rem 0.8rem;
  border-radius: 999px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

/* ── Hero ── */
.hero {
  position: relative; z-index: 1;
  display: flex; flex-direction: column; align-items: center;
  text-align: center;
  padding: 5rem 1.5rem 3rem;
  gap: 1.5rem;
}

.hero-tag {
  display: inline-flex; align-items: center; gap: 0.5rem;
  background: rgba(124,58,237,0.2);
  border: 1px solid rgba(167,139,250,0.25);
  color: var(--lavender-lt);
  font-size: 0.8rem;
  font-weight: 800;
  padding: 0.4rem 1rem;
  border-radius: 999px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}
.hero-tag .dot {
  width: 7px; height: 7px;
  background: var(--lavender);
  border-radius: 50%;
  animation: pulse 1.8s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50%       { opacity: 0.4; transform: scale(0.7); }
}

h1 {
  font-size: clamp(2.4rem, 6vw, 4.5rem);
  font-weight: 900;
  line-height: 1.1;
  letter-spacing: -1px;
  color: var(--white);
  max-width: 800px;
}
h1 .accent { color: var(--lavender); }

.subtitle {
  font-size: clamp(1rem, 2vw, 1.2rem);
  color: var(--muted);
  max-width: 520px;
  line-height: 1.7;
  font-weight: 600;
}

/* ── Counter ── */
.counter-wrap {
  display: flex; align-items: center; gap: 0.6rem;
  background: var(--surface);
  border: 1px solid rgba(167,139,250,0.15);
  border-radius: 999px;
  padding: 0.5rem 1.2rem;
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--lavender-lt);
}
.counter-wrap .num {
  font-size: 1.1rem;
  font-weight: 900;
  color: var(--white);
}

/* ── Form card ── */
.form-card {
  position: relative; z-index: 1;
  background: var(--card);
  border: 1px solid rgba(167,139,250,0.15);
  border-radius: 24px;
  padding: 2.5rem 2rem;
  width: 100%;
  max-width: 460px;
  margin: 0 auto;
  box-shadow: 0 24px 80px rgba(0,0,0,0.5), 0 0 0 1px rgba(167,139,250,0.08);
}

.form-card h2 {
  font-size: 1.3rem;
  font-weight: 900;
  color: var(--white);
  margin-bottom: 0.3rem;
}
.form-card p {
  font-size: 0.9rem;
  color: var(--muted);
  margin-bottom: 1.5rem;
  font-weight: 600;
}

.input-group {
  display: flex; flex-direction: column; gap: 0.75rem;
  margin-bottom: 1rem;
}

input[type="text"],
input[type="email"] {
  width: 100%;
  background: var(--surface);
  border: 2px solid rgba(167,139,250,0.2);
  border-radius: 14px;
  padding: 0.85rem 1.1rem;
  font-family: 'Nunito', sans-serif;
  font-size: 1rem;
  font-weight: 700;
  color: var(--text);
  outline: none;
  transition: border-color 0.2s;
}
input::placeholder { color: var(--muted); font-weight: 600; }
input:focus { border-color: var(--lavender); }

/* ── 3D Button ── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem;
  width: 100%;
  background: var(--purple);
  color: var(--white);
  font-family: 'Nunito', sans-serif;
  font-size: 1.05rem;
  font-weight: 900;
  letter-spacing: 0.02em;
  padding: 0.9rem 1.5rem;
  border: none;
  border-radius: 14px;
  cursor: pointer;
  box-shadow: var(--btn-shadow);
  transform: translateY(0);
  transition: transform 0.1s, box-shadow 0.1s, background 0.15s;
  user-select: none;
  position: relative;
  top: 0;
}
.btn:hover {
  background: #6d28d9;
  box-shadow: var(--btn-shadow-hover);
  transform: translateY(2px);
}
.btn:active {
  box-shadow: var(--btn-shadow-active);
  transform: translateY(4px);
}
.btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none;
  box-shadow: var(--btn-shadow);
}

/* ── Success state ── */
.success-msg {
  display: none;
  flex-direction: column; align-items: center; gap: 0.75rem;
  text-align: center;
  padding: 1rem 0;
}
.success-msg .check {
  width: 60px; height: 60px;
  background: rgba(124,58,237,0.2);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.8rem;
}
.success-msg h3 { font-size: 1.2rem; font-weight: 900; color: var(--white); }
.success-msg p  { font-size: 0.9rem; color: var(--muted); font-weight: 600; }

/* ── Error msg ── */
.error-msg {
  display: none;
  color: #f87171;
  font-size: 0.85rem;
  font-weight: 700;
  margin-top: 0.5rem;
  text-align: center;
}

/* ── Features strip ── */
.features {
  position: relative; z-index: 1;
  display: flex; flex-wrap: wrap; justify-content: center; gap: 1rem;
  padding: 3rem 1.5rem 5rem;
  max-width: 900px;
  margin: 0 auto;
}

.feat {
  background: var(--surface);
  border: 1px solid rgba(167,139,250,0.12);
  border-radius: 18px;
  padding: 1.4rem 1.6rem;
  flex: 1 1 220px;
  max-width: 260px;
  transition: transform 0.2s, border-color 0.2s;
}
.feat:hover {
  transform: translateY(-4px);
  border-color: rgba(167,139,250,0.35);
}
.feat .icon {
  width: 48px;
  height: 48px;
  background: rgba(124,58,237,0.15);
  border: 1px solid rgba(167,139,250,0.2);
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 0.6rem;
}
.feat h3 {
  font-size: 1rem;
  font-weight: 900;
  color: var(--white);
  margin-bottom: 0.3rem;
}
.feat p {
  font-size: 0.85rem;
  color: var(--muted);
  font-weight: 600;
  line-height: 1.5;
}

/* ── Footer ── */
footer {
  position: relative; z-index: 1;
  text-align: center;
  padding: 1.5rem;
  border-top: 1px solid rgba(167,139,250,0.08);
  color: var(--muted);
  font-size: 0.8rem;
  font-weight: 700;
}

/* ── Responsive ── */
@media (max-width: 480px) {
  nav { padding: 1rem 1.25rem; }
  .hero { padding: 3rem 1rem 2rem; }
  .form-card { padding: 1.75rem 1.25rem; border-radius: 18px; }
}
