@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&display=swap');
:root {
  --bg: #0B0F1A;
  --surface: #141927;
  --ink: #F3F5FB;
  --muted: #8A92A8;
  --accent: #5B8CFF;
  --accent-2: #7AA8FF;
  --border: #242A3E;
  --on-accent: #0B0F1A;
  --fh: 'Inter', system-ui, sans-serif;
  --fb: 'Inter', system-ui, sans-serif;
}
*,*::before,*::after { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
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;
}
a { color: inherit; text-decoration: none; }
button { font-family: inherit; }

.top {
  padding: 24px clamp(20px, 5vw, 44px);
  display: flex; justify-content: space-between; align-items: baseline;
  border-bottom: 1px solid var(--border);
}
.brand { font-family: var(--fh); font-weight: 700; font-size: 1rem; color: var(--ink); letter-spacing: -0.01em; }
.top__link { font-size: 0.9rem; color: var(--muted); }
.top__link:hover { color: var(--ink); }

.page {
  flex: 1;
  max-width: 640px;
  width: 100%;
  margin: 0 auto;
  padding: clamp(48px, 8vw, 96px) clamp(20px, 5vw, 44px);
  animation: rise .8s ease .1s backwards;
}

.title {
  font-family: var(--fh); font-weight: 700;
  font-size: clamp(2.6rem, 6vw, 4.4rem);
  line-height: 1;
  letter-spacing: -0.04em;
  margin: 0 0 12px;
  color: var(--ink);
}
.line { color: var(--muted); margin: 0 0 48px; font-size: 1.05rem; }

.stack { display: grid; gap: 28px; }
.row { display: grid; gap: 8px; }
.row label {
  font-family: var(--fh); font-size: 0.78rem;
  letter-spacing: 0.18em; text-transform: uppercase; font-weight: 600;
  color: var(--muted);
}
.row input, .row textarea {
  width: 100%;
  padding: 14px 0;
  font: inherit;
  color: var(--ink);
  background: transparent;
  border: 0;
  border-bottom: 2px solid var(--border);
  border-radius: 0;
  transition: border-color .15s;
}
.row textarea { resize: vertical; min-height: 120px; }
.row input::placeholder, .row textarea::placeholder { color: var(--muted); }
.row input:focus, .row textarea:focus { outline: none; border-bottom-color: var(--accent); }
.row input[aria-invalid=true], .row textarea[aria-invalid=true] { border-bottom-color: #d9534f; }

.err { display: block; min-height: 18px; font-size: 0.82rem; color: #d9534f; }

.row--actions { display: flex; align-items: center; gap: 20px; flex-wrap: wrap; margin-top: 8px; }

.send {
  padding: 14px 26px;
  border: 0; border-radius: 999px;
  background: var(--ink); color: var(--bg);
  font-family: var(--fh); font-weight: 600; font-size: 1rem;
  letter-spacing: -0.005em;
  cursor: pointer;
  transition: transform .18s, background .18s;
}
.send:hover:not(:disabled) { transform: translateY(-1px); background: var(--accent); color: var(--on-accent); }
.send:disabled { opacity: 0.6; cursor: default; }

.alt { font-size: 0.9rem; color: var(--muted); }
.alt a { color: var(--accent); border-bottom: 1px solid color-mix(in srgb, var(--accent) 50%, transparent); padding-bottom: 1px; }
.alt a:hover { border-bottom-color: var(--accent); }
.stat { min-height: 20px; margin: 0; font-size: 0.88rem; color: var(--muted); width: 100%; }

.ok { padding: 24px 0; border-top: 2px solid var(--accent); }
.ok h2 { font-family: var(--fh); margin: 0 0 8px; font-size: 1.8rem; color: var(--ink); letter-spacing: -0.02em; }
.ok p { color: var(--muted); margin: 0; }
.ok strong { color: var(--ink); }

.bot {
  padding: 18px clamp(20px, 5vw, 44px);
  display: flex; gap: 10px; align-items: center;
  font-size: 0.86rem; color: var(--muted);
  border-top: 1px solid var(--border);
}
.bot a:hover { color: var(--ink); }

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

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