@font-face {
  font-family: "Space Grotesk";
  src: url("fonts/space-grotesk-latin-ext-wght-normal.woff2") format("woff2");
  font-weight: 300 700;
  font-display: swap;
  unicode-range: U+0100-02AF, U+1E00-1EFF, U+2020, U+20A0-20AB, U+20AD-20CF;
}
@font-face {
  font-family: "Space Grotesk";
  src: url("fonts/space-grotesk-latin-wght-normal.woff2") format("woff2");
  font-weight: 300 700;
  font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215;
}
@font-face {
  font-family: "JetBrains Mono";
  src: url("fonts/jetbrains-mono-latin-ext-wght-normal.woff2") format("woff2");
  font-weight: 100 800;
  font-display: swap;
  unicode-range: U+0100-02AF, U+1E00-1EFF, U+2020, U+20A0-20AB, U+20AD-20CF;
}
@font-face {
  font-family: "JetBrains Mono";
  src: url("fonts/jetbrains-mono-latin-wght-normal.woff2") format("woff2");
  font-weight: 100 800;
  font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+25CF, U+039B;
}

:root {
  --bg: #0a0c0f;
  --surface: #11141a;
  --surface-2: #171b22;
  --line: #262c36;
  --text: #eceff3;
  --muted: #98a2ae;
  --accent: #c8ff3d;
  --accent-ink: #0c1000;
  --warm: #ffb347;
  --bad: #ff6b5e;
  --good: #7be495;
  --sans: "Space Grotesk", system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: "JetBrains Mono", ui-monospace, "SFMono-Regular", Menlo, monospace;
  --wrap: 1120px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
html[lang="cs"] [data-lang="en"], html[lang="en"] [data-lang="cs"] { display: none !important; }
a { color: var(--accent); text-underline-offset: 3px; }
a:hover { text-decoration-thickness: 2px; }
h1, h2, h3 { line-height: 1.1; letter-spacing: -0.02em; margin: 0; text-wrap: balance; }
p { margin: 0 0 1em; }
code, pre, .mono { font-family: var(--mono); }
code { font-size: 0.9em; background: var(--surface-2); padding: 0.1em 0.4em; border-radius: 4px; }
pre { background: var(--surface); border: 1px solid var(--line); border-radius: 10px; padding: 16px 18px; overflow-x: auto; font-size: 14px; line-height: 1.55; margin: 0 0 1.2em; }
pre code { background: none; padding: 0; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 24px; }
.narrow { max-width: 780px; }

.top { position: sticky; top: 0; z-index: 10; backdrop-filter: blur(12px); background: rgba(10, 12, 15, 0.78); border-bottom: 1px solid var(--line); }
.top .wrap { display: flex; align-items: center; justify-content: space-between; height: 64px; gap: 16px; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--text); text-decoration: none; font-weight: 600; letter-spacing: -0.01em; }
.brand-mark { display: grid; place-items: center; width: 30px; height: 30px; border-radius: 8px; background: var(--accent); color: var(--accent-ink); font-family: var(--mono); font-weight: 700; }
.nav { display: flex; align-items: center; gap: 22px; font-size: 15px; }
.nav a { color: var(--muted); text-decoration: none; }
.nav a:hover { color: var(--text); }
.lang { display: inline-flex; border: 1px solid var(--line); border-radius: 999px; overflow: hidden; }
.lang button { background: none; border: 0; color: var(--muted); font: 600 12px var(--mono); padding: 6px 11px; cursor: pointer; }
html[lang="cs"] .lang button[data-set="cs"], html[lang="en"] .lang button[data-set="en"] { background: var(--text); color: var(--bg); }
.btn { display: inline-flex; align-items: center; gap: 8px; background: var(--accent); color: var(--accent-ink); font: 600 16px var(--sans); padding: 13px 22px; border-radius: 10px; border: 0; cursor: pointer; text-decoration: none; transition: transform 0.12s ease, box-shadow 0.12s ease; }
.btn:hover { transform: translateY(-1px); box-shadow: 0 8px 28px rgba(200, 255, 61, 0.22); }
.btn:focus-visible, .lang button:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.btn.ghost { background: transparent; color: var(--text); border: 1px solid var(--line); }
.btn.ghost:hover { box-shadow: none; border-color: var(--muted); }
.btn.small { padding: 8px 14px; font-size: 14px; }
.btn.danger { background: transparent; color: var(--bad); border: 1px solid var(--bad); }
.btn[disabled] { opacity: 0.45; cursor: not-allowed; transform: none; box-shadow: none; }

.hero { position: relative; overflow: hidden; border-bottom: 1px solid var(--line); }
.hero::before { content: ""; position: absolute; inset: 0; background: radial-gradient(900px 480px at 78% 30%, rgba(200, 255, 61, 0.11), transparent 62%), linear-gradient(var(--line) 1px, transparent 1px), linear-gradient(90deg, var(--line) 1px, transparent 1px); background-size: auto, 56px 56px, 56px 56px; opacity: 0.55; mask-image: linear-gradient(#000 55%, transparent); pointer-events: none; }
.hero .wrap { position: relative; display: grid; grid-template-columns: 1.15fr 0.85fr; gap: 48px; align-items: center; padding-top: 88px; padding-bottom: 96px; }
.eyebrow { font: 500 13px var(--mono); letter-spacing: 0.14em; text-transform: uppercase; color: var(--accent); margin-bottom: 22px; }
.hero h1 { font-size: clamp(42px, 6.4vw, 84px); font-weight: 600; letter-spacing: -0.04em; line-height: 0.98; }
.hero h1 em { font-style: normal; color: var(--accent); }
.lead { font-size: clamp(18px, 1.6vw, 21px); color: var(--muted); max-width: 56ch; margin: 26px 0 34px; }
.lead strong { color: var(--text); font-weight: 500; }
.cta-row { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; }
.facts { display: flex; flex-wrap: wrap; gap: 10px 28px; margin-top: 40px; font: 500 14px var(--mono); color: var(--muted); }
.facts b { color: var(--text); font-weight: 600; }

.machine { background: var(--surface); border: 1px solid var(--line); border-radius: 18px; padding: 22px; font-family: var(--mono); font-size: 14px; box-shadow: 0 30px 80px rgba(0, 0, 0, 0.5); }
.machine-head { display: flex; justify-content: space-between; color: var(--muted); font-size: 12px; margin-bottom: 18px; }
.dots { display: inline-flex; gap: 6px; }
.dots i { width: 9px; height: 9px; border-radius: 50%; background: var(--line); }
.ring { display: grid; grid-template-columns: repeat(6, 1fr); gap: 8px; margin-bottom: 16px; }
.cell { aspect-ratio: 1; display: grid; place-items: center; border: 1px solid var(--line); border-radius: 10px; font-size: 22px; font-weight: 600; background: var(--bg); transition: border-color 0.2s, color 0.2s, background 0.2s; }
.cell.on { border-color: var(--accent); color: var(--accent); }
.cell.flash { background: rgba(200, 255, 61, 0.14); }
.readout { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-bottom: 16px; }
.readout div { border: 1px solid var(--line); border-radius: 10px; padding: 9px 12px; }
.readout span { display: block; color: var(--muted); font-size: 11px; text-transform: uppercase; letter-spacing: 0.1em; }
.readout b { font-size: 18px; font-weight: 600; }
.readout .hot b { color: var(--warm); }
.tape { color: var(--muted); min-height: 66px; font-size: 13px; line-height: 1.7; white-space: pre-wrap; }
.tape .q { color: var(--accent); }

section { padding: 92px 0; border-bottom: 1px solid var(--line); }
.section-head { display: grid; grid-template-columns: 0.4fr 0.6fr; gap: 40px; margin-bottom: 52px; align-items: end; }
.section-head h2 { font-size: clamp(30px, 3.8vw, 48px); font-weight: 600; }
.section-head p { color: var(--muted); margin: 0; max-width: 58ch; }
.kicker { font: 500 12px var(--mono); letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); margin-bottom: 14px; }
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; border: 1px solid var(--line); border-radius: 16px; overflow: hidden; counter-reset: step; }
.step { padding: 28px 26px 30px; border-right: 1px solid var(--line); background: var(--surface); }
.step:last-child { border-right: 0; }
.step::before { counter-increment: step; content: "0" counter(step); display: block; font: 600 13px var(--mono); color: var(--accent); margin-bottom: 36px; }
.step h3 { font-size: 21px; margin-bottom: 10px; }
.step p { color: var(--muted); font-size: 15.5px; margin: 0; }
.rewards { display: grid; grid-template-columns: 1.2fr 1fr 1fr; gap: 18px; }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: 16px; padding: 28px; }
.card h3 { font-size: 20px; margin-bottom: 10px; }
.card p { color: var(--muted); font-size: 15.5px; margin: 0; }
.card.big { background: var(--accent); color: var(--accent-ink); border-color: var(--accent); display: flex; flex-direction: column; justify-content: space-between; min-height: 260px; }
.card.big p { color: rgba(12, 16, 0, 0.78); }
.amount { font-size: clamp(44px, 5vw, 68px); font-weight: 600; letter-spacing: -0.04em; line-height: 1; margin: 18px 0 10px; }
.amount small { font-size: 0.42em; font-weight: 500; letter-spacing: 0; }
.card .tag { font: 600 12px var(--mono); letter-spacing: 0.12em; text-transform: uppercase; }
.card .num { font: 600 30px var(--sans); letter-spacing: -0.03em; color: var(--text); display: block; margin-bottom: 8px; }
.two { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.list { list-style: none; padding: 0; margin: 0; }
.list li { padding: 14px 0 14px 30px; border-bottom: 1px solid var(--line); position: relative; color: var(--muted); }
.list li:last-child { border-bottom: 0; }
.list li::before { content: "→"; position: absolute; left: 0; color: var(--accent); font-family: var(--mono); }
.list li b { color: var(--text); font-weight: 500; }
.schools { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 22px; }
.schools span { font: 500 13px var(--mono); border: 1px solid var(--line); border-radius: 999px; padding: 6px 12px; color: var(--muted); }
details { border-bottom: 1px solid var(--line); padding: 20px 0; }
details summary { cursor: pointer; font-size: 19px; font-weight: 500; list-style: none; display: flex; justify-content: space-between; gap: 20px; }
details summary::-webkit-details-marker { display: none; }
details summary::after { content: "+"; font-family: var(--mono); color: var(--accent); }
details[open] summary::after { content: "−"; }
details p { color: var(--muted); margin: 14px 0 0; max-width: 72ch; }

.signup { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: 56px; align-items: start; }
.signup h2 { font-size: clamp(32px, 4.2vw, 54px); font-weight: 600; margin-bottom: 18px; }
.signup .muted { color: var(--muted); }
form.panel, .panel { background: var(--surface); border: 1px solid var(--line); border-radius: 18px; padding: 30px; }
label { display: block; font-size: 14px; font-weight: 500; margin-bottom: 7px; }
.field { margin-bottom: 18px; }
input[type="text"], input[type="email"], input[type="url"], select, textarea { width: 100%; background: var(--bg); border: 1px solid var(--line); border-radius: 10px; color: var(--text); font: 400 16px var(--sans); padding: 12px 14px; }
textarea { min-height: 150px; resize: vertical; line-height: 1.5; }
input[type="file"] { width: 100%; font: 400 14px var(--mono); color: var(--muted); padding: 12px; border: 1px dashed var(--line); border-radius: 10px; background: var(--bg); }
.check { display: grid; grid-template-columns: 22px 1fr; gap: 10px; align-items: start; font-size: 14px; color: var(--muted); font-weight: 400; margin-bottom: 14px; }
.check input { width: 18px; height: 18px; margin-top: 3px; accent-color: var(--accent); }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.hint { font-size: 13.5px; color: var(--muted); margin-top: 6px; }
.hidden { display: none !important; }

footer { padding: 44px 0 60px; color: var(--muted); font-size: 14px; }
footer .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 20px; }
footer a { color: var(--muted); }

.doc { padding: 64px 0 90px; }
.doc h1 { font-size: clamp(34px, 4.6vw, 54px); font-weight: 600; margin-bottom: 14px; }
.doc h2 { font-size: 26px; margin: 52px 0 16px; padding-top: 28px; border-top: 1px solid var(--line); }
.doc h3 { font-size: 19px; margin: 28px 0 10px; }
.doc p, .doc li { color: #c5ccd5; }
.doc ul, .doc ol { padding-left: 22px; }
.doc li { margin-bottom: 7px; }
.doc .lead { margin: 0 0 30px; }
.note { border-left: 3px solid var(--accent); background: var(--surface); padding: 16px 20px; border-radius: 0 10px 10px 0; margin: 0 0 1.4em; }
.note.warn { border-color: var(--warm); }
.note.bad { border-color: var(--bad); }
.note p:last-child { margin: 0; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 1.2em; }
.chip { font: 600 15px var(--mono); border: 1px solid var(--accent); color: var(--accent); border-radius: 8px; padding: 5px 12px; }
table { width: 100%; border-collapse: collapse; font-size: 14.5px; margin: 0 0 1.4em; }
th, td { text-align: left; padding: 9px 12px; border-bottom: 1px solid var(--line); vertical-align: top; }
th { font: 500 12px var(--mono); text-transform: uppercase; letter-spacing: 0.08em; color: var(--muted); }
td.mono, td code { font-size: 13px; }
.table-scroll { overflow-x: auto; }
.status { font: 600 12px var(--mono); padding: 3px 8px; border-radius: 6px; border: 1px solid var(--line); white-space: nowrap; }
.status.ok { color: var(--good); border-color: var(--good); }
.status.bad { color: var(--bad); border-color: var(--bad); }
.status.wait { color: var(--warm); border-color: var(--warm); }
.grid-meta { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 10px; margin: 0 0 1.4em; }
.grid-meta div { background: var(--surface); border: 1px solid var(--line); border-radius: 10px; padding: 12px 14px; }
.grid-meta span { display: block; font: 500 11px var(--mono); text-transform: uppercase; letter-spacing: 0.08em; color: var(--muted); }
.grid-meta b { font-size: 18px; font-weight: 600; }
.center { min-height: 62vh; display: grid; place-items: center; text-align: center; padding: 60px 0; }
.center h1 { font-size: clamp(34px, 5vw, 60px); font-weight: 600; margin-bottom: 18px; }
.center p { color: var(--muted); max-width: 52ch; margin: 0 auto 26px; }
.flag-high { color: var(--bad); }
.flag-medium { color: var(--warm); }
.flag-low { color: var(--muted); }
.inline-form { display: inline; }
.row { display: flex; flex-wrap: wrap; gap: 12px; align-items: end; }
.row .field { flex: 1 1 130px; margin-bottom: 0; }
.pre-wrap { white-space: pre-wrap; word-break: break-word; }

@media (max-width: 900px) {
  .hero .wrap, .section-head, .signup, .two, .rewards { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr 1fr; }
  .step { border-bottom: 1px solid var(--line); }
  .hero .wrap { padding-top: 56px; padding-bottom: 64px; }
  section { padding: 64px 0; }
  .nav a.hide-s { display: none; }
}
@media (max-width: 560px) {
  .steps { grid-template-columns: 1fr; }
  .step { border-right: 0; }
  .wrap { padding: 0 16px; }
  form.panel, .panel { padding: 20px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .btn, .cell { transition: none; }
}
