:root {
  --bg: #0a0c10;
  --surface: #11151c;
  --border: #232a36;
  --text: #e8ecf2;
  --muted: #8b94a3;
  --accent: #4ee0a0;
  --accent-dim: #2da873;
  --error: #ff7a7a;
}

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

html { -webkit-text-size-adjust: 100%; }

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  background: var(--bg);
  color: var(--text);
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 24px 20px;
  position: relative;
  overflow-x: hidden;
}

.glow {
  position: fixed;
  top: -30vh;
  left: 50%;
  transform: translateX(-50%);
  width: 90vw;
  max-width: 900px;
  height: 70vh;
  background: radial-gradient(ellipse at center, rgba(78, 224, 160, 0.10) 0%, rgba(78, 224, 160, 0.03) 45%, transparent 70%);
  pointer-events: none;
  z-index: 0;
}

.hero {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 620px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
}

.wordmark {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: ui-monospace, "SF Mono", SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 1.25rem;
  font-weight: 600;
  letter-spacing: 0.02em;
}

.lock {
  width: 22px;
  height: 22px;
}

.lock rect { fill: var(--accent); }

.lock .shackle {
  fill: none;
  stroke: var(--accent);
  stroke-width: 2.5;
}

.badge {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--accent);
  border: 1px solid rgba(78, 224, 160, 0.35);
  background: rgba(78, 224, 160, 0.07);
  border-radius: 999px;
  padding: 6px 14px;
}

h1 {
  font-size: clamp(2rem, 6.5vw, 3.4rem);
  line-height: 1.12;
  font-weight: 750;
  letter-spacing: -0.02em;
}

.promise {
  font-size: clamp(1rem, 3.2vw, 1.15rem);
  line-height: 1.6;
  color: var(--muted);
  max-width: 52ch;
}

#waitlist-form {
  width: 100%;
  max-width: 480px;
  margin-top: 6px;
}

.field-row {
  display: flex;
  gap: 10px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 8px;
}

.field-row:focus-within {
  border-color: var(--accent-dim);
  box-shadow: 0 0 0 3px rgba(78, 224, 160, 0.12);
}

input[type="email"] {
  flex: 1;
  min-width: 0;
  background: transparent;
  border: none;
  outline: none;
  color: var(--text);
  font-size: 1rem;
  padding: 10px 12px;
}

input[type="email"]::placeholder { color: #5b6472; }

button[type="submit"] {
  flex-shrink: 0;
  background: var(--accent);
  color: #06281a;
  border: none;
  border-radius: 10px;
  font-size: 0.95rem;
  font-weight: 650;
  padding: 12px 20px;
  cursor: pointer;
  transition: background 0.15s ease, transform 0.1s ease;
}

button[type="submit"]:hover { background: #65e9af; }
button[type="submit"]:active { transform: scale(0.98); }
button[type="submit"]:disabled { opacity: 0.6; cursor: wait; }

#form-msg {
  min-height: 1.4em;
  margin-top: 12px;
  font-size: 0.95rem;
}

#form-msg.success { color: var(--accent); font-weight: 550; }
#form-msg.error { color: var(--error); }

.microcopy {
  font-size: 0.85rem;
  color: #5b6472;
}

/* Honeypot — visually removed, still in the accessibility-hidden DOM for bots */
.hp-field {
  position: absolute;
  left: -9999px;
  top: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

footer {
  position: relative;
  z-index: 1;
  margin-top: 48px;
  font-size: 0.8rem;
  color: #4a5260;
}

/* Small screens: stack the form */
@media (max-width: 480px) {
  .field-row {
    flex-direction: column;
    padding: 10px;
  }

  input[type="email"] {
    padding: 12px 10px;
    text-align: center;
  }

  button[type="submit"] {
    width: 100%;
    padding: 14px 20px;
  }

  footer { margin-top: 36px; }
}
