:root {
  --bg: #120d1c;
  --bg-alt: #1b1430;
  --fg: #f4f1fb;
  --fg-dim: #b6aed0;
  --accent: #ff5fa2;
  --accent-2: #7c5cff;
  --ok: #4ade80;
  --error: #f87171;
  --radius: 14px;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  min-height: 100vh;
  background: radial-gradient(circle at 20% -10%, #2a1d4d 0%, var(--bg) 55%);
  color: var(--fg);
  font-family: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  display: flex;
  flex-direction: column;
  align-items: center;
}

main {
  width: 100%;
  max-width: 640px;
  padding: 48px 20px 24px;
}

main.standalone {
  text-align: center;
  padding-top: 96px;
}

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

/* --- Pixel "?" mark ----------------------------------------------------- */
.pixel-mark {
  display: inline-block;
  margin: 0 auto 24px;
}
.pixel-row { display: flex; justify-content: center; }
.pixel {
  width: 16px;
  height: 16px;
  margin: 2px;
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.06);
}
.pixel.on {
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  animation: flicker 2.6s ease-in-out infinite;
}
@keyframes flicker {
  0%, 100% { opacity: 1; transform: scale(1); }
  45% { opacity: 0.35; transform: scale(0.85); }
  55% { opacity: 1; transform: scale(1); }
}
@media (prefers-reduced-motion: reduce) {
  .pixel.on { animation: none; }
}

/* --- Hero ---------------------------------------------------------------- */
.hero { text-align: center; }

h1 {
  font-size: clamp(2rem, 6vw, 2.75rem);
  margin: 0 0 8px;
  letter-spacing: -0.02em;
}

.tagline {
  color: var(--fg-dim);
  margin: 0 0 4px;
  font-size: 1.05rem;
}

.subhead {
  color: var(--fg-dim);
  margin: 0 0 28px;
  font-size: 0.98rem;
}

/* --- Forms ---------------------------------------------------------------- */
.form { margin: 0 auto; max-width: 480px; text-align: left; }

.field-row {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

input[type="email"],
input[type="text"],
textarea,
select {
  width: 100%;
  padding: 12px 14px;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: var(--bg-alt);
  color: var(--fg);
  font-size: 1rem;
  font-family: inherit;
}
.field-row input[type="email"] { flex: 1 1 220px; }

input::placeholder, textarea::placeholder { color: #7a7193; }

input:focus, textarea:focus, select:focus {
  outline: 2px solid var(--accent-2);
  outline-offset: 1px;
}

button {
  padding: 12px 20px;
  border-radius: 10px;
  border: none;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  color: #fff;
  font-weight: 600;
  font-size: 1rem;
  cursor: pointer;
}
button:hover { filter: brightness(1.08); }
button:active { transform: translateY(1px); }
button:disabled { opacity: 0.6; cursor: wait; }

.hp { position: absolute; left: -9999px; top: -9999px; }

.fine-print {
  color: var(--fg-dim);
  font-size: 0.82rem;
  margin: 10px 0 0;
}

.form-message {
  min-height: 1.2em;
  margin: 10px 0 0;
  font-size: 0.92rem;
  display: none;
}
.form-message.show { display: block; }
.form-message.ok { color: var(--ok); }
.form-message.error { color: var(--error); }

/* --- Feedback section ----------------------------------------------------- */
.feedback {
  margin-top: 56px;
  padding-top: 36px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}
.feedback h2 { font-size: 1.3rem; margin: 0 0 6px; }
.feedback-sub { color: var(--fg-dim); margin: 0 0 18px; }
.feedback label { display: block; font-size: 0.85rem; color: var(--fg-dim); margin: 14px 0 6px; }
.feedback .optional { font-weight: 400; opacity: 0.7; }
.feedback button { margin-top: 16px; }

/* --- Footer ---------------------------------------------------------------- */
footer {
  margin-top: 48px;
  padding: 24px 20px 40px;
  color: var(--fg-dim);
  font-size: 0.82rem;
  text-align: center;
}

main.standalone a { color: var(--accent); }
