:root {
  --bg: #0b0b0f; --card: #15151c; --line: #26262f; --text: #f3f3f6; --dim: #9a9aa8;
  --accent: #a78bfa; --accent-ink: #14101f; --ok: #4ade80; --bad: #fb7185;
}
@media (prefers-color-scheme: light) {
  :root { --bg: #fafafb; --card: #ffffff; --line: #e6e6ec; --text: #15151c; --dim: #62626f;
          --accent: #6d4fe0; --accent-ink: #ffffff; --ok: #15803d; --bad: #be123c; }
}
* { box-sizing: border-box; }
html, body { margin: 0; min-height: 100%; }
body { background: var(--bg); color: var(--text); font: 16px/1.5 -apple-system, BlinkMacSystemFont, "SF Pro Text", "Inter", system-ui, sans-serif;
       -webkit-font-smoothing: antialiased; display: flex; flex-direction: column; min-height: 100vh; }
a { color: inherit; }
header { display: flex; align-items: center; justify-content: space-between; padding: 20px 24px; max-width: 1040px; width: 100%; margin: 0 auto; }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 650; letter-spacing: -0.01em; text-decoration: none; }
.spark { width: 26px; height: 26px; border-radius: 8px; background: var(--accent); display: grid; place-items: center; color: var(--accent-ink); font-size: 15px; }
main { flex: 1; display: grid; place-items: center; padding: 24px 16px 64px; }
.card { width: 100%; max-width: 400px; background: var(--card); border: 1px solid var(--line); border-radius: 18px; padding: 28px; }
h1 { font-size: 24px; line-height: 1.2; letter-spacing: -0.02em; margin: 0 0 6px; }
p { margin: 0 0 18px; color: var(--dim); }
label { display: block; font-size: 13px; color: var(--dim); margin-bottom: 6px; }
input { width: 100%; padding: 12px 14px; border-radius: 11px; border: 1px solid var(--line); background: var(--bg); color: var(--text); font: inherit; outline: none; }
input:focus { border-color: var(--accent); }
input.code { font-size: 26px; letter-spacing: 0.35em; text-align: center; font-variant-numeric: tabular-nums; }
button, .button { display: inline-flex; justify-content: center; align-items: center; width: 100%; margin-top: 14px; padding: 12px 16px; border: 0; border-radius: 11px;
         background: var(--accent); color: var(--accent-ink); font: inherit; font-weight: 600; cursor: pointer; text-decoration: none; }
button:disabled { opacity: 0.55; cursor: default; }
button.quiet { background: transparent; color: var(--dim); font-weight: 500; margin-top: 6px; }
.note { font-size: 13px; min-height: 20px; margin: 12px 0 0; }
.note.bad { color: var(--bad); } .note.ok { color: var(--ok); }
.row { display: flex; justify-content: space-between; padding: 11px 0; border-top: 1px solid var(--line); font-size: 15px; }
.row span:first-child { color: var(--dim); }
.big { font-size: 40px; margin-bottom: 10px; }
[hidden] { display: none !important; }
.hero { text-align: center; max-width: 640px; }
.hero h1 { font-size: clamp(34px, 6vw, 54px); margin-bottom: 14px; }
.hero p { font-size: 18px; }
.hero .button { width: auto; padding: 13px 22px; }
footer { text-align: center; color: var(--dim); font-size: 13px; padding: 20px; }
