/* ── Variables ──────────────────────────────────────────── */
:root {
  --bg:          #0d0b1e;
  --bg-card:     #16122e;
  --bg-card-hover: #1e1840;
  --border:      rgba(255, 255, 255, 0.07);
  --accent-from: #7c3aed;
  --accent-to:   #4f46e5;
  --accent-mid:  #6d3de8;
  --text:        #f0eeff;
  --text-muted:  #9990c4;
  --radius-lg:   1.5rem;
  --radius-md:   0.75rem;
  --radius-sm:   0.4rem;
  --shadow:      0 8px 40px rgba(0, 0, 0, 0.5);
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

/* ── Layout helpers ─────────────────────────────────────── */
.container {
  width: min(100%, 960px);
  margin-inline: auto;
  padding-inline: 1.5rem;
}

.container--narrow {
  width: min(100%, 560px);
}

/* ── HERO ───────────────────────────────────────────────── */
.hero {
  min-height: 100svh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 4rem 1.5rem 3rem;
  background:
    radial-gradient(ellipse 80% 60% at 50% -10%, rgba(124, 58, 237, 0.35) 0%, transparent 70%),
    var(--bg);
}

.hero-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.25rem;
}

.logo {
  width: 120px;
  height: 120px;
  border-radius: 28px;
  box-shadow: 0 0 60px rgba(124, 58, 237, 0.4), var(--shadow);
}

.badge {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 0.3rem 0.85rem;
  border-radius: 99px;
  background: rgba(124, 58, 237, 0.25);
  border: 1px solid rgba(124, 58, 237, 0.5);
  color: #c4b5fd;
}

.hero h1 {
  font-size: clamp(2rem, 6vw, 3.5rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.1;
}

.tagline {
  font-size: clamp(1rem, 2.5vw, 1.25rem);
  color: var(--text-muted);
  max-width: 36ch;
}

.hero-pills {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.5rem;
  margin-top: 0.5rem;
}

.pill {
  font-size: 0.85rem;
  font-weight: 500;
  padding: 0.4rem 1rem;
  border-radius: 99px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--border);
  color: var(--text-muted);
}

.cta-btn {
  margin-top: 0.5rem;
  display: inline-block;
  padding: 0.85rem 2.25rem;
  border-radius: 99px;
  background: linear-gradient(135deg, var(--accent-from), var(--accent-to));
  color: #fff;
  font-weight: 600;
  font-size: 1rem;
  text-decoration: none;
  box-shadow: 0 4px 24px rgba(124, 58, 237, 0.45);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.cta-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 32px rgba(124, 58, 237, 0.6);
}

/* ── FEATURES ───────────────────────────────────────────── */
.features {
  padding: 5rem 1.5rem;
}

.features h2 {
  text-align: center;
  font-size: clamp(1.4rem, 3.5vw, 2rem);
  font-weight: 700;
  margin-bottom: 3rem;
  letter-spacing: -0.02em;
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 1.25rem;
}

.feature-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.75rem 1.5rem;
  transition: background 0.2s ease, transform 0.2s ease;
}

.feature-card:hover {
  background: var(--bg-card-hover);
  transform: translateY(-3px);
}

.feature-icon {
  font-size: 2rem;
  margin-bottom: 0.85rem;
}

.feature-card h3 {
  font-size: 1.05rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.feature-card p {
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.55;
}

/* ── WAITLIST ───────────────────────────────────────────── */
.waitlist {
  padding: 5rem 1.5rem 6rem;
  text-align: center;
  background:
    radial-gradient(ellipse 70% 50% at 50% 100%, rgba(79, 70, 229, 0.2) 0%, transparent 70%),
    var(--bg);
}

.waitlist h2 {
  font-size: clamp(1.4rem, 3.5vw, 2rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 0.75rem;
}

.waitlist-sub {
  color: var(--text-muted);
  font-size: 0.95rem;
  max-width: 40ch;
  margin-inline: auto;
  margin-bottom: 2rem;
}

.waitlist-form {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
}

.input-row {
  display: flex;
  width: 100%;
  gap: 0.5rem;
}

.input-row input[type="email"] {
  flex: 1;
  padding: 0.8rem 1.1rem;
  border-radius: var(--radius-md);
  border: 1px solid var(--border);
  background: var(--bg-card);
  color: var(--text);
  font-size: 0.95rem;
  outline: none;
  transition: border-color 0.15s;
}

.input-row input[type="email"]:focus {
  border-color: var(--accent-mid);
}

.input-row input[type="email"]::placeholder {
  color: var(--text-muted);
}

.input-row button {
  padding: 0.8rem 1.5rem;
  border-radius: var(--radius-md);
  border: none;
  background: linear-gradient(135deg, var(--accent-from), var(--accent-to));
  color: #fff;
  font-weight: 600;
  font-size: 0.95rem;
  cursor: pointer;
  white-space: nowrap;
  transition: opacity 0.15s, transform 0.15s;
}

.input-row button:hover {
  opacity: 0.9;
  transform: translateY(-1px);
}

.input-row button:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none;
}

.form-note {
  font-size: 0.78rem;
  color: var(--text-muted);
}

.form-message {
  font-size: 0.9rem;
  min-height: 1.3em;
}

.form-message.success { color: #86efac; }
.form-message.error   { color: #fca5a5; }

/* ── FOOTER ─────────────────────────────────────────────── */
.footer {
  padding: 1.5rem;
  text-align: center;
  font-size: 0.8rem;
  color: var(--text-muted);
  border-top: 1px solid var(--border);
}

/* ── Responsive ─────────────────────────────────────────── */
@media (max-width: 480px) {
  .input-row {
    flex-direction: column;
  }

  .input-row button {
    width: 100%;
  }
}
