:root {
  color-scheme: dark;
  --ink: #f7f4ec;
  --muted: #b8c5cf;
  --panel: rgba(12, 31, 48, 0.92);
  --line: rgba(255, 255, 255, 0.12);
  --blue: #4f91c9;
  --blue-strong: #72b7ee;
  --red: #e32636;
}

* { box-sizing: border-box; }

html { min-height: 100%; }

body {
  min-height: 100vh;
  margin: 0;
  color: var(--ink);
  background:
    radial-gradient(circle at 15% 0%, rgba(79, 145, 201, 0.25), transparent 34rem),
    linear-gradient(145deg, #07131d, #102a3d 58%, #081722);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.65;
}

a { color: var(--blue-strong); }
a:hover { color: #a5d8ff; }

.shell {
  width: min(760px, calc(100% - 32px));
  margin: 0 auto;
  padding: 32px 0 56px;
}

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 24px;
}

.brand {
  color: var(--ink);
  font-size: 1.25rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-decoration: none;
  text-transform: uppercase;
}

.brand-mark { color: var(--red); }

.language-switch {
  display: inline-flex;
  padding: 3px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.22);
}

.language-switch button {
  min-width: 48px;
  padding: 7px 12px;
  border: 0;
  border-radius: 999px;
  color: var(--muted);
  background: transparent;
  cursor: pointer;
  font: inherit;
  font-weight: 700;
}

.language-switch button[aria-pressed="true"] {
  color: #06131e;
  background: var(--blue-strong);
}

.card {
  padding: clamp(24px, 5vw, 48px);
  border: 1px solid var(--line);
  border-radius: 24px;
  background: var(--panel);
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.32);
  backdrop-filter: blur(12px);
}

h1, h2 { line-height: 1.2; }
h1 { margin: 0 0 12px; font-size: clamp(2rem, 7vw, 3.3rem); }
h2 { margin: 32px 0 8px; font-size: 1.18rem; }
p, ul { color: var(--muted); }
ul { padding-left: 1.25rem; }

.eyebrow {
  margin: 0 0 10px;
  color: var(--blue-strong);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.updated { font-size: 0.9rem; }

.notice, .tip-display {
  margin: 22px 0;
  padding: 14px 16px;
  border-left: 3px solid var(--blue);
  border-radius: 8px;
  background: rgba(79, 145, 201, 0.1);
  color: var(--muted);
}

.tip-value { color: var(--ink); font-size: 1.3rem; font-weight: 800; }

form { display: grid; gap: 16px; margin-top: 26px; }
.bot-field { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
label { display: grid; gap: 7px; font-weight: 700; }

input, textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 12px;
  outline: none;
  color: var(--ink);
  background: rgba(0, 0, 0, 0.24);
  font: inherit;
}

input { padding: 12px 14px; }
textarea { min-height: 150px; padding: 13px 14px; resize: vertical; }
input:focus, textarea:focus { border-color: var(--blue-strong); box-shadow: 0 0 0 3px rgba(114, 183, 238, 0.14); }

.field-note { margin: -2px 0 0; font-size: 0.84rem; font-weight: 400; }

.button {
  justify-self: start;
  min-width: 140px;
  padding: 12px 20px;
  border: 0;
  border-radius: 999px;
  color: #06131e;
  background: var(--blue-strong);
  cursor: pointer;
  font: inherit;
  font-weight: 800;
}

.button:disabled { cursor: not-allowed; opacity: 0.55; }
.form-status { min-height: 1.6em; margin: 0; font-weight: 700; }
.form-status[data-state="success"] { color: #73df9b; }
.form-status[data-state="error"] { color: #ff9ba3; }

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 22px;
  margin-top: 28px;
}

[hidden] { display: none !important; }

@media (max-width: 520px) {
  .shell { width: min(100% - 20px, 760px); padding-top: 18px; }
  .card { border-radius: 18px; }
  .topbar { align-items: flex-start; }
}
