:root {
  --purple: #a855f7;
  --purple-dark: #7c3aed;
  --bg: #08080f;
  --text: #f0e6ff;
  --text-muted: #9a8ab8;
}
* { box-sizing: border-box; margin: 0; padding: 0; }

/* === SKIP LINK === */
.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 9999;
  padding: 12px 20px;
  background: #111118;
  color: var(--text);
  font-family: 'Syne', sans-serif;
  font-weight: 600;
  font-size: 14px;
  text-decoration: none;
  border-radius: 0 0 8px 0;
}
.skip-link:focus,
.skip-link:focus-visible {
  left: 0;
}

/* === FOCUS VISIBLE === */
:focus-visible { outline: none; }
a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible,
[tabindex]:focus-visible {
  outline: 2px solid var(--purple);
  outline-offset: 2px;
}
body {
  font-family: 'DM Sans', sans-serif;
  background: var(--bg);
  color: var(--text);
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
}
.waitlist-container {
  width: 100%;
  max-width: 480px;
  background: #111118;
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: 20px;
  padding: 40px 36px;
}
.auth-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: 'Syne', sans-serif;
  font-weight: 700;
  font-size: 20px;
  margin-bottom: 28px;
}
h1 { font-family: 'Syne', sans-serif; font-size: 26px; font-weight: 700; line-height: 1.25; }
.auth-subtitle { color: var(--text-muted); font-size: 14px; margin-top: 8px; margin-bottom: 28px; }
.auth-error {
  background: rgba(239,68,68,0.1);
  border: 1px solid rgba(239,68,68,0.3);
  color: #ef4444;
  padding: 10px 14px;
  border-radius: 8px;
  font-size: 13px;
  margin-bottom: 16px;
}
.success-banner {
  background: rgba(34,197,94,0.1);
  border: 1px solid rgba(34,197,94,0.3);
  color: #22c55e;
  padding: 14px;
  border-radius: 8px;
  font-size: 14px;
  margin-bottom: 16px;
}
.info-banner {
  background: rgba(59,130,246,0.1);
  border: 1px solid rgba(59,130,246,0.3);
  color: #60a5fa;
  padding: 14px;
  border-radius: 8px;
  font-size: 14px;
  margin-bottom: 16px;
}
form { display: flex; flex-direction: column; gap: 12px; }
input[type="email"] {
  width: 100%;
  padding: 12px 16px;
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 10px;
  background: rgba(255,255,255,0.05);
  color: var(--text);
  font-size: 15px;
  font-family: 'DM Sans', sans-serif;
  outline: none;
  transition: border-color 0.2s;
}
input[type="email"]:focus { border-color: var(--purple); }
button[type="submit"] {
  background: linear-gradient(135deg, var(--purple-dark), var(--purple));
  color: #fff;
  font-size: 15px;
  font-weight: 600;
  font-family: 'DM Sans', sans-serif;
  border: none;
  border-radius: 10px;
  padding: 13px;
  cursor: pointer;
  box-shadow: 0 4px 16px rgba(168,85,247,0.3);
  transition: transform 0.15s, box-shadow 0.15s;
}
button[type="submit"]:hover { transform: translateY(-1px); box-shadow: 0 6px 20px rgba(168,85,247,0.4); }
.back-link { text-align: center; margin-top: 20px; }
.back-link a { color: var(--text-muted); font-size: 13px; text-decoration: none; }
.back-link a:hover { color: var(--text); }

/* Honeypot — keeps hidden field off-screen without display:none (bots
   that skip display:none still leave tabindex=-1 + aria-hidden alone). */
.hp-field {
  position: absolute;
  left: -9999px;
  top: -9999px;
  height: 0;
  width: 0;
  opacity: 0;
  pointer-events: none;
}
textarea[name="use_case"] {
  width: 100%;
  padding: 12px 16px;
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 10px;
  background: rgba(255,255,255,0.05);
  color: var(--text);
  font-size: 15px;
  font-family: 'DM Sans', sans-serif;
  outline: none;
  resize: vertical;
  min-height: 88px;
  transition: border-color 0.2s;
}
textarea[name="use_case"]:focus { border-color: var(--purple); }
textarea[name="use_case"]::placeholder { color: var(--text-muted); }
.form-stack > * + * { margin-top: 12px; }

/* === REDUCED MOTION === */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
  html { scroll-behavior: auto !important; }
}
