@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:wght@600;700&family=Inter:wght@400;500;600&display=swap');
:root {
  --bg: #0B0F1A;
  --surface: #141927;
  --surface-2: #1B2235;
  --ink: #F3F5FB;
  --muted: #8A92A8;
  --accent: #5B8CFF;
  --accent-2: #7AA8FF;
  --border: #242A3E;
  --on-accent: #0B0F1A;
  --fh: 'Playfair Display', Georgia, serif;
  --fb: 'Inter', system-ui, sans-serif;
}

*,*::before,*::after { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
html { height: 100%; }
body {
  min-height: 100vh;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--fb);
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  display: flex; flex-direction: column;
  overflow-x: hidden;
}
a { color: var(--accent); text-decoration: none; transition: color .15s; }
a:hover { color: var(--accent-2); }
svg { display: block; }
button { font-family: inherit; }

/* ---- NAV ---- */
.nav {
  padding: 22px clamp(20px, 4vw, 40px);
  display: flex; justify-content: space-between; align-items: center;
}
.brand { display: inline-flex; align-items: center; gap: 10px; font-family: var(--fh); font-weight: 700; color: var(--ink); }
.brand:hover { color: var(--ink); }
.brand__mark {
  width: 32px; height: 32px; border-radius: 9px;
  display: grid; place-items: center;
  background: color-mix(in srgb, var(--accent) 15%, transparent);
  border: 1px solid color-mix(in srgb, var(--accent) 35%, transparent);
  color: var(--accent);
}
.brand__name { font-size: 1rem; }
.nav__links { display: flex; gap: 22px; }
.nav__links a { color: var(--muted); font-size: 0.9rem; }
.nav__links a:hover { color: var(--ink); }

/* ---- Ambient bg ---- */
body::before {
  content: ""; position: fixed; inset: 0;
  background:
    radial-gradient(600px 400px at 85% 10%, color-mix(in srgb, var(--accent) 18%, transparent), transparent 60%),
    radial-gradient(500px 400px at 15% 85%, color-mix(in srgb, var(--accent-2) 15%, transparent), transparent 60%);
  pointer-events: none; z-index: -1;
}

/* ---- Page ---- */
.page {
  flex: 1;
  display: grid;
  place-items: center;
  padding: clamp(32px, 6vw, 64px) clamp(20px, 4vw, 40px);
}

.card {
  width: 100%;
  max-width: 520px;
  padding: clamp(32px, 5vw, 52px);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 22px;
  box-shadow: 0 40px 100px -40px color-mix(in srgb, var(--accent) 30%, transparent);
  animation: rise .7s ease .1s backwards;
}

.badge {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 6px 14px;
  border-radius: 999px;
  background: color-mix(in srgb, var(--accent) 12%, transparent);
  border: 1px solid color-mix(in srgb, var(--accent) 30%, transparent);
  color: var(--accent);
  font-size: 0.74rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 22px;
}
.badge__dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 4px color-mix(in srgb, var(--accent) 25%, transparent);
  animation: pulse 2s ease-in-out infinite;
}
@keyframes pulse { 0%,100% { opacity: 1; } 50% { opacity: 0.4; } }

.card h1 {
  font-family: var(--fh);
  font-weight: 700;
  font-size: clamp(1.8rem, 3.2vw, 2.4rem);
  line-height: 1.1;
  letter-spacing: -0.02em;
  margin: 0 0 10px;
  color: var(--ink);
}
.sub {
  color: var(--muted);
  margin: 0 0 28px;
}

/* ---- Form ---- */
.field { margin-bottom: 16px; }
.field label {
  display: block;
  font-family: var(--fh);
  font-size: 0.84rem;
  font-weight: 600;
  margin-bottom: 6px;
  color: var(--ink);
}
.opt { color: var(--muted); font-weight: 400; }
.req { color: var(--accent); }

.field input, .field textarea {
  width: 100%;
  padding: 13px 15px;
  font: inherit;
  color: var(--ink);
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: 12px;
  transition: border-color .15s, box-shadow .15s, background .15s;
}
.field textarea { resize: vertical; min-height: 120px; }
.field input:focus, .field textarea:focus {
  outline: none;
  border-color: var(--accent);
  background: var(--surface);
  box-shadow: 0 0 0 4px color-mix(in srgb, var(--accent) 18%, transparent);
}
.field input[aria-invalid="true"], .field textarea[aria-invalid="true"] {
  border-color: #d9534f;
  background: color-mix(in srgb, #d9534f 4%, var(--surface-2));
}
.err {
  display: block;
  min-height: 18px;
  margin-top: 5px;
  font-size: 0.82rem;
  color: #d9534f;
}

/* ---- CTA ---- */
.cta {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  width: 100%;
  padding: 15px 26px;
  border: 0; border-radius: 12px;
  background: var(--accent);
  color: var(--on-accent);
  font-family: var(--fh);
  font-weight: 600;
  font-size: 1rem;
  letter-spacing: -0.005em;
  cursor: pointer;
  box-shadow: 0 12px 30px color-mix(in srgb, var(--accent) 40%, transparent);
  transition: transform .18s ease, box-shadow .18s ease, opacity .15s;
  margin-top: 8px;
}
.cta:hover:not(:disabled) {
  transform: translateY(-1px);
  box-shadow: 0 18px 40px color-mix(in srgb, var(--accent) 50%, transparent);
}
.cta:disabled { opacity: 0.6; cursor: default; transform: none; }
.cta svg { transition: transform .18s; }
.cta:hover:not(:disabled) svg { transform: translateX(3px); }

.status { min-height: 20px; margin: 14px 0 0; font-size: 0.9rem; color: var(--muted); }
.alt { margin: 26px 0 0; font-size: 0.88rem; color: var(--muted); text-align: center; }

/* ---- Success state ---- */
.ok {
  display: grid;
  gap: 12px;
  justify-items: center;
  text-align: center;
  padding: 18px 0;
  animation: rise .5s ease;
}
.ok svg { color: var(--accent); margin-bottom: 4px; }
.ok h2 { font-family: var(--fh); font-size: 1.6rem; font-weight: 700; margin: 0; color: var(--ink); }
.ok p { color: var(--muted); margin: 0; }
.ok strong { color: var(--ink); }

@keyframes rise { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }

/* ---- FOOT ---- */
.foot {
  padding: 22px clamp(24px, 6vw, 72px);
  display: flex; flex-wrap: wrap; gap: 10px; align-items: center;
  color: var(--muted);
  font-size: 0.84rem;
  border-top: 1px solid var(--border);
  background: var(--surface);
}
.foot a { color: var(--muted); }
.foot a:hover { color: var(--ink); }
.sep { opacity: 0.5; }

::selection { background: color-mix(in srgb, var(--accent) 40%, transparent); color: var(--ink); }
