:root {
  --bg: #f7f7fb;
  --surface: #ffffff;
  --text: #1d1b2e;
  --muted: #5d5b72;
  --line: #e4e3ee;
  --accent: #5b4ff0;
  --accent-2: #2a9df4;
  --good: #1f9d55;
  --warn: #e07b00;
  --radius: 16px;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #121120;
    --surface: #1c1b2e;
    --text: #f1f0fa;
    --muted: #a9a7c0;
    --line: #2d2b45;
    --accent: #8b80ff;
    --accent-2: #4db3ff;
    --good: #3ccf7a;
    --warn: #ffa53d;
    color-scheme: dark;
  }
}
* { box-sizing: border-box; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 17px/1.55 -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", Roboto, sans-serif;
  -webkit-font-smoothing: antialiased;
}
a { color: var(--accent); }
.wrap { max-width: 1040px; margin: 0 auto; padding: 0 20px; }
header.top { display: flex; align-items: center; justify-content: space-between; padding: 20px 0; }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 700; font-size: 19px; color: var(--text); text-decoration: none; }
.brand img { width: 34px; height: 34px; }
nav a { color: var(--muted); text-decoration: none; margin-left: 22px; font-size: 15px; }
nav a:hover { color: var(--text); }

.hero { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 48px; align-items: center; padding: 48px 0 72px; }
.hero h1 { font-size: 50px; line-height: 1.08; letter-spacing: -0.02em; margin: 0 0 18px; }
.hero h1 span { background: linear-gradient(120deg, var(--accent), var(--accent-2)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero p.lead { font-size: 20px; color: var(--muted); margin: 0 0 30px; max-width: 520px; }
.button {
  display: inline-flex; align-items: center; gap: 10px;
  background: linear-gradient(135deg, var(--accent), #4a46e0);
  color: #fff; text-decoration: none; font-weight: 600; font-size: 18px;
  padding: 15px 26px; border-radius: 14px;
  box-shadow: 0 10px 30px -10px rgba(91, 79, 240, 0.7);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.button:hover { transform: translateY(-1px); box-shadow: 0 14px 34px -10px rgba(91, 79, 240, 0.8); }
.meta { color: var(--muted); font-size: 14px; margin-top: 14px; }

.demo {
  background: var(--surface); border: 1px solid var(--line); border-radius: 22px;
  padding: 28px; box-shadow: 0 30px 60px -30px rgba(40, 30, 120, 0.35);
}
.demo .label { font-size: 13px; color: var(--muted); margin-bottom: 12px; }
.field {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  border: 2px solid var(--line); border-radius: 14px; padding: 16px 18px;
  font: 500 24px/1.2 ui-monospace, "SF Mono", Menlo, monospace;
  transition: border-color 0.25s ease;
  min-height: 64px;
}
.field.fixed { border-color: var(--good); }
.field .text { white-space: pre; }
.field .text.fixed { color: var(--good); }
.caret { display: inline-block; width: 2px; height: 26px; background: var(--accent); vertical-align: middle; margin-left: 1px; animation: blink 1s steps(1) infinite; }
@keyframes blink { 50% { opacity: 0; } }
.pill { font: 700 12px/1 -apple-system, sans-serif; color: #fff; padding: 6px 10px; border-radius: 999px; background: var(--warn); transition: background 0.25s ease; }
.pill.hu { background: var(--good); }
.demo .hint { margin-top: 16px; font-size: 14px; color: var(--muted); }

section { padding: 56px 0; }
section h2 { font-size: 32px; letter-spacing: -0.01em; margin: 0 0 28px; }
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; }
.card .ico { font-size: 28px; margin-bottom: 10px; }
.card h3 { margin: 0 0 8px; font-size: 19px; }
.card p { margin: 0; color: var(--muted); font-size: 15px; }
kbd { font: 600 13px -apple-system, sans-serif; border: 1px solid var(--line); border-bottom-width: 2px; border-radius: 6px; padding: 1px 6px; background: var(--bg); }

.steps { counter-reset: step; display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.step { position: relative; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px 24px 24px 72px; }
.step::before {
  counter-increment: step; content: counter(step);
  position: absolute; left: 22px; top: 22px; width: 34px; height: 34px; border-radius: 50%;
  display: grid; place-items: center; font-weight: 700; color: #fff;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
}
.step h3 { margin: 4px 0 6px; font-size: 18px; }
.step p { margin: 0; color: var(--muted); font-size: 15px; }
.step b { color: var(--text); }
.notice { margin-top: 20px; background: var(--surface); border: 1px solid var(--line); border-left: 4px solid var(--warn); border-radius: var(--radius); padding: 22px 26px; }
.notice h3 { margin: 0 0 6px; font-size: 18px; }
.notice p, .notice li { color: var(--muted); font-size: 15px; }
.notice p { margin: 6px 0; }
.notice ol { margin: 10px 0; padding-left: 22px; }
.notice li { margin: 6px 0; }
.notice b { color: var(--text); }

details { background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 16px 20px; margin-bottom: 12px; }
summary { cursor: pointer; font-weight: 600; }
details p { color: var(--muted); margin: 12px 0 0; }

footer { border-top: 1px solid var(--line); padding: 28px 0 44px; color: var(--muted); font-size: 13px; }
footer a { color: var(--muted); }

.doc { max-width: 760px; padding: 24px 0 64px; }
.doc h1 { font-size: 36px; margin: 8px 0 20px; }
.doc h2 { font-size: 21px; margin: 32px 0 10px; }
.doc p, .doc li { color: var(--muted); }

@media (max-width: 820px) {
  .hero { grid-template-columns: 1fr; gap: 32px; padding-top: 24px; }
  .hero h1 { font-size: 38px; }
  .cards, .steps { grid-template-columns: 1fr; }
  nav a:not(:last-child) { display: none; }
  .field { font-size: 20px; }
}
