/* Reset & base */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html, body {
  height: 100%;
  background: #000;
  color: #fff;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

body {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  position: relative;
}

/* Background gradient orbs */
.bg-orbs {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
}

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

.orb-1 {
  top: -10%;
  left: 50%;
  transform: translateX(-50%);
  width: 900px;
  height: 500px;
  background: rgba(0, 33, 196, 0.18);
}

.orb-2 {
  bottom: 10%;
  left: 15%;
  width: 500px;
  height: 350px;
  background: rgba(112, 64, 168, 0.12);
}

.orb-3 {
  top: 40%;
  right: 10%;
  width: 400px;
  height: 300px;
  background: rgba(93, 89, 255, 0.10);
}

/* Header */
.nav {
  position: relative;
  z-index: 10;
  padding: 32px 48px;
}

.logo {
  font-size: 20px;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: #fff;
}

/* Hero */
.hero {
  position: relative;
  z-index: 1;
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 40px 24px 80px;
  max-width: 720px;
  margin: 0 auto;
  width: 100%;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 16px;
  border-radius: 999px;
  border: 1px solid rgba(93, 89, 255, 0.25);
  background: rgba(93, 89, 255, 0.06);
  font-size: 12px;
  color: #a3a3a3;
  margin-bottom: 32px;
}

.dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #CAFF59;
  box-shadow: 0 0 8px rgba(202, 255, 89, 0.6);
}

.title {
  font-size: clamp(36px, 7vw, 72px);
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: -0.03em;
  margin-bottom: 24px;
}

.gradient-text {
  background: linear-gradient(90deg, #5D59FF, #7040A8);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}

.subtitle {
  font-size: clamp(15px, 1.5vw, 18px);
  color: #9ca3af;
  line-height: 1.6;
  max-width: 540px;
  margin-bottom: 40px;
}

/* Form */
.waitlist-form {
  display: flex;
  gap: 8px;
  width: 100%;
  max-width: 480px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 14px;
  padding: 6px;
  transition: border-color 0.2s, background 0.2s;
}

.waitlist-form:focus-within {
  border-color: rgba(93, 89, 255, 0.5);
  background: rgba(93, 89, 255, 0.04);
}

.waitlist-form input {
  flex: 1;
  background: transparent;
  border: none;
  outline: none;
  padding: 12px 16px;
  font-size: 15px;
  color: #fff;
  font-family: inherit;
}

.waitlist-form input::placeholder {
  color: #6b7280;
}

.waitlist-form button {
  position: relative;
  background: #fff;
  color: #000;
  border: none;
  border-radius: 10px;
  padding: 12px 24px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s, transform 0.1s;
  font-family: inherit;
  min-width: 140px;
}

.waitlist-form button:hover:not(:disabled) {
  background: #e5e5e5;
}

.waitlist-form button:active:not(:disabled) {
  transform: scale(0.98);
}

.waitlist-form button:disabled {
  cursor: not-allowed;
  opacity: 0.7;
}

.btn-loader {
  display: none;
  width: 16px;
  height: 16px;
  border: 2px solid rgba(0, 0, 0, 0.2);
  border-top-color: #000;
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

.waitlist-form button.loading .btn-text {
  display: none;
}

.waitlist-form button.loading .btn-loader {
  display: inline-block;
}

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

/* Form message */
.form-message {
  margin-top: 16px;
  font-size: 14px;
  min-height: 20px;
  color: #9ca3af;
  transition: color 0.2s;
}

.form-message.success {
  color: #CAFF59;
}

.form-message.error {
  color: #ef4444;
}

/* Waveform */
.waveform {
  margin-top: 64px;
  width: 100%;
  max-width: 600px;
  height: 80px;
  position: relative;
}

.wave-bars {
  display: flex;
  align-items: flex-end;
  justify-content: center;
  gap: 3px;
  height: 100%;
}

.wave-bar {
  width: 3px;
  border-radius: 2px;
  background: linear-gradient(to top, #0021C4, #5D59FF, #7040A8);
  transition: height 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Footer */
.footer {
  position: relative;
  z-index: 1;
  text-align: center;
  padding: 24px;
  font-size: 12px;
  color: #525252;
}

/* Mobile */
@media (max-width: 640px) {
  .nav {
    padding: 24px 24px;
  }

  .waitlist-form {
    flex-direction: column;
    padding: 8px;
  }

  .waitlist-form button {
    width: 100%;
  }

  .waveform {
    margin-top: 48px;
    height: 60px;
  }
}
