/* RESET */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

/* BASE */
body {
  font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
  background: #ffffff;
  color: #0f172a;
  display: flex;
  justify-content: center;
  min-height: 100vh;
}

/* CONTAINER */
.container {
  max-width: 720px;
  width: 100%;
  padding: 3.5rem 2rem 2.5rem;
  text-align: center;
}

/* HERO */
.hero {
  margin-bottom: 3.5rem;
}

.hero .logo {
  width: 200px;
  height: auto;
  margin: 0 auto 1.5rem;
  display: block;
  object-fit: contain;
}

.hero h1 {
  font-size: 3.2rem;
  font-weight: 700;
  letter-spacing: -0.03em;
}

.tagline {
  margin-top: 0.75rem;
  font-size: 1.25rem;
  color: #475569;
}

.tagline strong {
  color: #2563eb;
  font-weight: 600;
}

/* DESCRIPTION */
.description {
  margin-bottom: 4rem;
}

.description > p {
  max-width: 520px;
  margin: 0 auto 2.5rem;
  font-size: 1rem;
  line-height: 1.6;
  color: #475569;
}

/* FEATURES */
.description ul {
  list-style: none;
  max-width: 420px;
  margin: 0 auto;
}

.description li {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  font-size: 0.95rem;
  color: #334155;
  padding: 0.25rem 0;
  text-align: left;
}

.description li span {
  flex: 1;
}

.description svg {
  width: 18px;
  height: 18px;
  color: #2563eb;
  flex-shrink: 0;
  margin-top: 2px;
}

/* WAITLIST CARD */
.waitlist {
  max-width: 340px;
  margin: 0 auto 3.5rem;
  background: #ffffff;
  padding: 1.75rem;
  border-radius: 12px;
  box-shadow:
    0 1px 2px rgba(0, 0, 0, 0.04),
    0 8px 24px rgba(0, 0, 0, 0.06);
}

.waitlist h2 {
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: 1rem;
}

/* FORM */
#waitlist-form {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

#email {
  padding: 0.65rem 0.75rem;
  font-size: 0.9rem;
  border-radius: 8px;
  border: 1px solid #e2e8f0;
  outline: none;
}

#email:focus {
  border-color: #2563eb;
}

/* BUTTON */
button[type="submit"] {
  padding: 0.65rem;
  font-size: 0.9rem;
  border-radius: 8px;
  border: none;
  background: #2563eb;
  color: #ffffff;
  font-weight: 500;
  cursor: pointer;
  transition: background 0.15s ease;
}

button[type="submit"]:hover {
  background: #1d4ed8;
}

button[type="submit"]:disabled {
  background: #94a3b8;
  cursor: not-allowed;
}

/* FADE IN ANIMATION */
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* SUCCESS STATE */
.success-box {
  padding: 1.25rem;
  border-radius: 10px;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
}

/* Spark confirmation */
.spark {
  width: 42px;
  height: 42px;
  margin: 0 auto 0.6rem;
  border-radius: 50%;
  background: #dcfce7;
  color: #16a34a;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  animation: spark-pop 0.45s ease-out;
}

.spark::after {
  content: "";
  position: absolute;
  inset: -6px;
  border-radius: 50%;
  border: 2px solid #86efac;
  opacity: 0;
  animation: spark-ring 0.6s ease-out;
}

.spark svg {
  width: 20px;
  height: 20px;
}

.success-box h3 {
  font-size: 1rem;
  font-weight: 600;
  color: #16a34a;
  margin-bottom: 0.4rem;
}

.success-box p {
  font-size: 0.85rem;
  color: #475569;
  line-height: 1.5;
}

/* REFERRAL BUTTON */
.referral-button {
  margin-top: 1rem;
  padding: 0.6rem 1rem;
  font-size: 0.85rem;
  border-radius: 8px;
  border: 1px solid #e2e8f0;
  background: #ffffff;
  color: #475569;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.15s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
}

.referral-button:hover {
  background: #f8fafc;
  border-color: #cbd5e1;
}

.referral-button svg {
  width: 16px;
  height: 16px;
}

.referral-button.copied {
  background: #dcfce7;
  border-color: #86efac;
  color: #16a34a;
}

/* Spark animations */
@keyframes spark-pop {
  0% {
    transform: scale(0.6);
    opacity: 0;
  }
  100% {
    transform: scale(1);
    opacity: 1;
  }
}

@keyframes spark-ring {
  0% {
    opacity: 0.6;
    transform: scale(0.7);
  }
  100% {
    opacity: 0;
    transform: scale(1.4);
  }
}

/* FOOTER */
footer {
  font-size: 0.75rem;
  color: #94a3b8;
}

/* RESPONSIVE */
@media (max-width: 640px) {
  .hero h1 {
    font-size: 2.6rem;
  }

  .tagline {
    font-size: 1.15rem;
  }

  .container {
    padding: 3rem 1.5rem 2rem;
  }
}