:root {
  --bg:          #000000;   /* page background */
  --bg-glow:     #0A1026;   /* faint blue glow at top */
  --ink:         #F4F4F5;   /* soft off-white text */
  --muted:       rgba(244,244,245,0.62);
  --accent:      #1E40AF;   /* accent (deep blue) */
  --accent-soft: #2E55CF;   /* accent hover */
  --field-bg:    rgba(255,255,255,0.04);
  --field-border:rgba(255,255,255,0.12);
  --field-focus: rgba(30,64,175,0.65);
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  min-height: 100%;
}

body {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 48px 22px;
  background:
    radial-gradient(120% 85% at 50% 0%, var(--bg-glow) 0%, #05060F 42%, var(--bg) 100%);
  color: var(--ink);
  font-family: 'Inter', system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

.wrap {
  width: 100%;
  max-width: 460px;
  text-align: center;
  animation: rise 0.7s ease both;
}

@keyframes rise {
  from { opacity: 0; transform: translateY(14px); }
  to   { opacity: 1; transform: none; }
}
@media (prefers-reduced-motion: reduce) {
  .wrap { animation: none; }
}

/* ---- Identity ---- */
.avatar {
  width: 92px;
  height: 92px;
  margin: 0 auto 26px;
  border-radius: 50%;
  border: 1px solid rgba(30,64,175,0.5);
  background: rgba(255,255,255,0.04);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  box-shadow: 0 0 0 6px rgba(30,64,175,0.06);
}
.avatar img { width: 100%; height: 100%; object-fit: cover; display: block; }

h1 {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-weight: 600;
  font-size: clamp(2.6rem, 9vw, 3.9rem);
  letter-spacing: 0.01em;
  line-height: 1.05;
  margin: 0;
}

.tagline {
  margin: 16px auto 0;
  max-width: 33ch;
  font-size: 1.02rem;
  line-height: 1.55;
  color: var(--muted);
}
.tagline .accent { color: var(--accent); }

.rule {
  width: 46px;
  height: 1px;
  margin: 30px auto 34px;
  background: linear-gradient(90deg, transparent, rgba(30,64,175,0.7), transparent);
}

/* ---- Form ---- */
form { text-align: left; }

.field { margin-bottom: 16px; }

label {
  display: block;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 7px;
}

input, textarea {
  width: 100%;
  padding: 12px 14px;
  font: inherit;
  font-size: 0.97rem;
  color: var(--ink);
  background: var(--field-bg);
  border: 1px solid var(--field-border);
  border-radius: 10px;
  transition: border-color 0.18s, box-shadow 0.18s, background 0.18s;
}
input::placeholder, textarea::placeholder { color: rgba(244,244,245,0.34); }

input:focus, textarea:focus {
  outline: none;
  border-color: var(--field-focus);
  background: rgba(255,255,255,0.07);
  box-shadow: 0 0 0 3px rgba(30,64,175,0.16);
}

textarea { min-height: 122px; resize: vertical; }

/* Honeypot — hidden from humans, bots fill it. Worker rejects when non-empty. */
.hp { position: absolute; left: -9999px; height: 0; width: 0; overflow: hidden; }

.submit-btn {
  width: 100%;
  margin-top: 6px;
  padding: 13px 18px;
  font: inherit;
  font-size: 0.98rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: #fff;
  background: var(--accent);
  border: none;
  border-radius: 10px;
  cursor: pointer;
  transition: background 0.18s, transform 0.08s, opacity 0.18s;
}
.submit-btn:hover:not(:disabled) { background: var(--accent-soft); }
.submit-btn:active:not(:disabled) { transform: translateY(1px); }
.submit-btn:focus-visible { outline: 2px solid var(--accent-soft); outline-offset: 3px; }
.submit-btn:disabled { cursor: default; }

/* ---- Footer ---- */
footer {
  margin-top: 34px;
  font-size: 0.78rem;
  color: rgba(244,244,245,0.38);
}
