:root {
  --bg: #f4f5fb;
  --card: #ffffff;
  --ink: #111827;
  --muted: #5b6475;
  --line: #e3e6ef;
  --accent: #4338ca;
  --accent-ink: #ffffff;
  --accent-soft: #eef0ff;
  --mint: #0d9488;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0d1020;
    --card: #161a2e;
    --ink: #eef0f7;
    --muted: #a3aac0;
    --line: #262b45;
    --accent: #818cf8;
    --accent-ink: #0d1020;
    --accent-soft: #1f2445;
    --mint: #5eead4;
  }
}
* { box-sizing: border-box; }
html, body { height: 100%; }
body {
  margin: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 20px;
  padding: 24px 16px;
  background:
    radial-gradient(1200px 500px at 50% -10%, var(--accent-soft), transparent 70%),
    var(--bg);
  color: var(--ink);
  font: 16px/1.6 system-ui, -apple-system, "Segoe UI", Roboto, Ubuntu, "Helvetica Neue", Arial, sans-serif;
}
.card {
  width: 100%;
  max-width: 560px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 36px 32px;
  box-shadow: 0 1px 2px rgb(16 24 40 / 4%), 0 12px 40px -12px rgb(16 24 40 / 18%);
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: var(--ink);
  text-decoration: none;
  font-weight: 700;
  font-size: 1.15rem;
  letter-spacing: -0.01em;
}
.brand img { display: block; border-radius: 12px; }
h1 {
  margin: 28px 0 10px;
  font-size: clamp(1.5rem, 4.5vw, 2rem);
  line-height: 1.2;
  letter-spacing: -0.02em;
}
.code {
  margin: 28px 0 -18px;
  font-weight: 800;
  font-size: 0.85rem;
  letter-spacing: 0.12em;
  color: var(--mint);
}
.lead { margin: 0 0 12px; color: var(--ink); }
.hint { margin: 0; color: var(--muted); font-size: 0.95rem; }
code {
  font: 0.92em/1.4 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  background: var(--accent-soft);
  padding: 2px 6px;
  border-radius: 6px;
  word-break: break-all;
}
.actions { margin: 28px 0 0; }
.btn {
  display: inline-block;
  padding: 10px 18px;
  border-radius: 10px;
  background: var(--accent);
  color: var(--accent-ink);
  font-weight: 600;
  text-decoration: none;
  font-size: 0.95rem;
}
.btn:hover { filter: brightness(1.08); }
.btn:focus-visible { outline: 3px solid var(--mint); outline-offset: 2px; }
.foot {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 18px;
  justify-content: center;
  color: var(--muted);
  font-size: 0.85rem;
}
.foot a { color: var(--muted); }
@media (max-width: 480px) {
  .card { padding: 28px 20px; border-radius: 16px; }
}
