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

:root {
  --fg:             #0f172a;
  --fg-muted:       #64748b;
  --border:         #e2e8f0;
  --accent:         #2563eb;
  --accent-hover:   #1d4ed8;
  --surface:        #ffffff;
  --bg:             #f8fafc;
}

html {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  font-size: 16px;
  line-height: 1.5;
  color: var(--fg);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}

.page {
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
}

main {
  flex: 1;
  max-width: 540px;
  width: 100%;
  margin: 0 auto;
  padding: 72px 24px 56px;
}

/* ── Hero ─────────────────────────────────────────────── */

.hero {
  text-align: center;
  margin-bottom: 48px;
}

.badge {
  display: inline-block;
  background: #dbeafe;
  color: #1e40af;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 4px 12px;
  border-radius: 100px;
  margin-bottom: 20px;
}

.domain {
  font-size: clamp(2rem, 9vw, 3.25rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.1;
  margin-bottom: 16px;
  color: var(--fg);
}

.tagline {
  font-size: 0.9375rem;
  color: var(--fg-muted);
  max-width: 380px;
  margin: 0 auto;
  line-height: 1.65;
}

/* ── Form card ────────────────────────────────────────── */

.form-container {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 40px;
  box-shadow: 0 1px 3px rgba(0,0,0,.05), 0 4px 20px rgba(0,0,0,.04);
}

.form-container h2 {
  font-size: 1.125rem;
  font-weight: 600;
  margin-bottom: 4px;
}

.form-intro {
  color: var(--fg-muted);
  font-size: 0.875rem;
  margin-bottom: 28px;
}

/* ── Fields ───────────────────────────────────────────── */

.field {
  margin-bottom: 18px;
}

.field label {
  display: block;
  font-size: 0.8125rem;
  font-weight: 500;
  margin-bottom: 6px;
  color: var(--fg);
}

.field input,
.field textarea {
  width: 100%;
  padding: 9px 13px;
  border: 1px solid var(--border);
  border-radius: 8px;
  font-family: inherit;
  font-size: 0.9375rem;
  color: var(--fg);
  background: var(--surface);
  outline: none;
  transition: border-color .15s, box-shadow .15s;
  appearance: none;
}

.field input::placeholder,
.field textarea::placeholder {
  color: #94a3b8;
}

.field input:focus,
.field textarea:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(37,99,235,.12);
}

.field textarea {
  resize: vertical;
  min-height: 96px;
}

/* ── Turnstile ────────────────────────────────────────── */

.cf-turnstile {
  margin: 20px 0 24px;
}

/* ── Submit button ────────────────────────────────────── */

.submit-btn {
  width: 100%;
  padding: 11px 24px;
  background: var(--accent);
  color: #fff;
  border: none;
  border-radius: 8px;
  font-family: inherit;
  font-size: 0.9375rem;
  font-weight: 600;
  cursor: pointer;
  transition: background .15s, transform .1s, opacity .15s;
}

.submit-btn:hover:not(:disabled) {
  background: var(--accent-hover);
}

.submit-btn:active:not(:disabled) {
  transform: scale(0.99);
}

.submit-btn:disabled {
  opacity: .55;
  cursor: not-allowed;
}

/* ── Alerts ───────────────────────────────────────────── */

.alert {
  padding: 14px 16px;
  border-radius: 8px;
  font-size: 0.9rem;
  margin-top: 4px;
}

.alert-success {
  background: #f0fdf4;
  border: 1px solid #86efac;
  color: #166534;
}

.alert-error {
  background: #fef2f2;
  border: 1px solid #fca5a5;
  color: #991b1b;
  margin-top: 16px;
}

/* ── Footer ───────────────────────────────────────────── */

footer {
  text-align: center;
  padding: 20px 24px 28px;
  color: #94a3b8;
  font-size: 0.8rem;
}

/* ── Responsive ───────────────────────────────────────── */

@media (max-width: 580px) {
  main {
    padding: 48px 16px 40px;
  }

  .form-container {
    padding: 28px 20px;
  }
}
