:root {
  --bg: #0b0b14;
  --bg-2: #11111d;
  --card: rgba(255, 255, 255, .04);
  --card-border: rgba(255, 255, 255, .08);
  --text: #ecebf5;
  --muted: #a3a1b8;
  --accent: #7c5cff;
  --accent-2: #22d3ee;
  --grad: linear-gradient(120deg, var(--accent), var(--accent-2));
  --code-bg: #07070d;
  --radius: 18px;
  --shadow: 0 30px 80px -20px rgba(0, 0, 0, .6);
  color-scheme: dark;
}
@media (prefers-color-scheme: light) {
  :root {
    --bg: #f7f7fb;
    --bg-2: #ffffff;
    --card: #ffffff;
    --card-border: rgba(20, 20, 50, .09);
    --text: #15142b;
    --muted: #5c5a75;
    --code-bg: #15142b;
    --shadow: 0 30px 70px -25px rgba(40, 30, 120, .35);
    color-scheme: light;
  }
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 16px/1.6 Inter, ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, Ubuntu, Cantarell, sans-serif;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
a { color: inherit; }
img { max-width: 100%; height: auto; display: block; }
.wrap { width: min(1160px, 100% - 32px); margin-inline: auto; }
.grad-text { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }

/* nav */
nav {
  position: sticky; top: 0; z-index: 10;
  backdrop-filter: saturate(160%) blur(14px);
  background: color-mix(in srgb, var(--bg) 72%, transparent);
  border-bottom: 1px solid var(--card-border);
}
nav .wrap { display: flex; align-items: center; gap: 28px; height: 64px; }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 800; font-size: 19px; text-decoration: none; letter-spacing: -.02em; }
.brand img { width: 32px; height: 32px; }
.nav-links { display: flex; gap: 22px; margin-left: auto; }
.nav-links a { text-decoration: none; color: var(--muted); font-size: 15px; font-weight: 500; }
.nav-links a:hover { color: var(--text); }
.lang { display: flex; border: 1px solid var(--card-border); border-radius: 999px; padding: 3px; }
.lang button {
  border: 0; background: none; color: var(--muted); font: inherit; font-size: 13px; font-weight: 600;
  padding: 4px 10px; border-radius: 999px; cursor: pointer;
}
.lang button[aria-pressed="true"] { background: var(--card-border); color: var(--text); }

/* buttons */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 14px 24px; border-radius: 14px; font-weight: 700; text-decoration: none;
  transition: transform .15s ease, box-shadow .15s ease, background .15s;
}
.btn svg { width: 20px; height: 20px; }
.btn-primary { background: var(--grad); color: #fff; box-shadow: 0 12px 30px -10px rgba(124, 92, 255, .7); }
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 18px 40px -12px rgba(124, 92, 255, .85); }
.btn-ghost { border: 1px solid var(--card-border); background: var(--card); }
.btn-ghost:hover { transform: translateY(-2px); }
.btn-sm { padding: 8px 14px; border-radius: 10px; font-size: 14px; }

/* hero */
.hero { position: relative; padding: 88px 0 72px; }
.hero::before {
  content: ""; position: absolute; inset: -200px 0 auto; height: 720px; z-index: -1;
  background:
    radial-gradient(600px 340px at 18% 30%, rgba(124, 92, 255, .32), transparent 70%),
    radial-gradient(520px 320px at 82% 20%, rgba(34, 211, 238, .22), transparent 70%);
}
.hero .wrap { display: grid; grid-template-columns: 1.1fr .9fr; gap: 56px; align-items: center; }
.badge {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 6px 14px; border-radius: 999px; font-size: 13px; font-weight: 600;
  border: 1px solid var(--card-border); background: var(--card); color: var(--muted);
}
.badge .dot { width: 8px; height: 8px; border-radius: 50%; background: #34d399; box-shadow: 0 0 10px #34d399; }
h1 { font-size: clamp(38px, 5.6vw, 64px); line-height: 1.05; letter-spacing: -.035em; margin: 22px 0 18px; font-weight: 800; }
.lead { font-size: clamp(17px, 2vw, 20px); color: var(--muted); max-width: 560px; margin: 0 0 32px; }
.cta { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; }
.meta { margin-top: 18px; font-size: 14px; color: var(--muted); display: flex; flex-wrap: wrap; gap: 6px 18px; }
.meta span::before { content: "✓"; color: #34d399; margin-right: 6px; font-weight: 700; }

.window {
  border-radius: 16px; overflow: hidden; background: #f0f0f0;
  border: 1px solid var(--card-border); box-shadow: var(--shadow);
  transform: perspective(2400px) rotateY(-4deg);
  transition: transform .5s ease;
  max-width: 400px; margin-inline: auto;
}
.window:hover { transform: none; }
.titlebar {
  display: flex; align-items: center; gap: 8px; padding: 10px 14px;
  background: #2b2a35; color: #d9d8e6; font-size: 13px; font-weight: 600;
}
.titlebar i { width: 12px; height: 12px; border-radius: 50%; background: #ff5f57; display: block; }
.titlebar i:nth-child(2) { background: #febc2e; }
.titlebar i:nth-child(3) { background: #28c840; margin-right: 8px; }

/* distro strip */
.strip { padding: 10px 0 40px; }
.strip p { text-align: center; color: var(--muted); font-size: 14px; margin: 0 0 16px; }
.chips { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; }
.chip {
  padding: 8px 16px; border-radius: 999px; font-size: 14px; font-weight: 600;
  border: 1px solid var(--card-border); background: var(--card); color: var(--muted);
}

/* sections */
section { padding: 72px 0; }
.section-head { text-align: center; max-width: 680px; margin: 0 auto 48px; }
.eyebrow { font-size: 13px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; }
h2 { font-size: clamp(30px, 4vw, 44px); letter-spacing: -.03em; line-height: 1.1; margin: 10px 0 14px; }
.section-head p { color: var(--muted); font-size: 18px; margin: 0; }

.grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.card {
  padding: 26px; border-radius: var(--radius);
  background: var(--card); border: 1px solid var(--card-border);
  transition: transform .2s ease, border-color .2s;
}
.card:hover { transform: translateY(-4px); border-color: color-mix(in srgb, var(--accent) 45%, transparent); }
.icon {
  width: 46px; height: 46px; border-radius: 12px; display: grid; place-items: center; margin-bottom: 16px;
  background: linear-gradient(135deg, rgba(124, 92, 255, .18), rgba(34, 211, 238, .14));
  color: var(--accent-2);
}
.icon svg { width: 24px; height: 24px; }
.card h3 { margin: 0 0 6px; font-size: 18px; letter-spacing: -.01em; }
.card p { margin: 0; color: var(--muted); font-size: 15px; }

/* windows block */
.win {
  display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: center;
  padding: 48px; border-radius: 28px; border: 1px solid var(--card-border);
  background:
    radial-gradient(500px 260px at 0% 0%, rgba(124, 92, 255, .18), transparent 70%),
    radial-gradient(500px 260px at 100% 100%, rgba(34, 211, 238, .12), transparent 70%),
    var(--bg-2);
}
.win h2 { text-align: left; }
.win p { color: var(--muted); }
.checks { list-style: none; padding: 0; margin: 0; display: grid; gap: 12px; }
.checks li {
  display: flex; gap: 12px; align-items: flex-start; padding: 14px 16px; border-radius: 14px;
  background: var(--card); border: 1px solid var(--card-border); font-weight: 500;
}
.checks li { position: relative; }
.checks li::before {
  content: ""; flex: none; width: 22px; height: 22px; border-radius: 50%; margin-top: 1px; background: var(--grad);
}
.checks li::after {
  content: ""; position: absolute; left: 24.5px; top: 19px; width: 6px; height: 11px;
  border: solid #fff; border-width: 0 2.5px 2.5px 0; transform: rotate(45deg);
}

/* steps */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; counter-reset: s; }
.step { padding: 28px; border-radius: var(--radius); background: var(--card); border: 1px solid var(--card-border); }
.step::before {
  counter-increment: s; content: counter(s);
  display: grid; place-items: center; width: 38px; height: 38px; border-radius: 50%;
  background: var(--grad); color: #fff; font-weight: 800; margin-bottom: 14px;
}
.step h3 { margin: 0 0 6px; font-size: 18px; }
.step p { margin: 0; color: var(--muted); font-size: 15px; }
.term {
  margin-top: 22px; border-radius: 16px; background: var(--code-bg); color: #e6e6f0;
  border: 1px solid rgba(255, 255, 255, .08); overflow: hidden; box-shadow: var(--shadow);
}
.term-head { display: flex; align-items: center; justify-content: space-between; padding: 10px 14px; background: rgba(255, 255, 255, .05); font-size: 13px; color: #a3a1b8; }
.term-head button {
  border: 1px solid rgba(255, 255, 255, .14); background: none; color: #e6e6f0; font: inherit; font-size: 12px;
  padding: 4px 10px; border-radius: 8px; cursor: pointer;
}
.term pre { margin: 0; padding: 18px 20px; overflow-x: auto; font: 14.5px/1.7 ui-monospace, "JetBrains Mono", "Fira Code", Menlo, Consolas, monospace; }
.term .c { color: #6f6d86; }
.term .p { color: #22d3ee; user-select: none; }

/* faq */
.faq { max-width: 820px; margin-inline: auto; display: grid; gap: 12px; }
details { border-radius: 14px; background: var(--card); border: 1px solid var(--card-border); padding: 4px 22px; }
summary { cursor: pointer; font-weight: 650; padding: 16px 0; list-style: none; display: flex; justify-content: space-between; gap: 16px; }
summary::-webkit-details-marker { display: none; }
summary::after { content: "+"; font-size: 22px; line-height: 1; color: var(--muted); transition: transform .2s; }
details[open] summary::after { transform: rotate(45deg); }
details p { margin: 0 0 18px; color: var(--muted); }
code { font-family: ui-monospace, Menlo, Consolas, monospace; font-size: .92em; padding: 2px 6px; border-radius: 6px; background: var(--card-border); }

/* credits + download */
.credits {
  max-width: 820px; margin-inline: auto; text-align: center; padding: 40px; border-radius: 24px;
  border: 1px dashed var(--card-border);
}
.credits p { color: var(--muted); margin: 8px 0 0; }
.final { text-align: center; padding: 96px 0; position: relative; }
.final::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: radial-gradient(520px 260px at 50% 60%, rgba(124, 92, 255, .25), transparent 70%);
}
.final p { color: var(--muted); font-size: 18px; margin: 0 0 30px; }

footer { border-top: 1px solid var(--card-border); padding: 28px 0; color: var(--muted); font-size: 14px; }
footer .wrap { display: flex; flex-wrap: wrap; gap: 12px 24px; justify-content: space-between; }

.reveal { opacity: 0; transform: translateY(18px); transition: opacity .6s ease, transform .6s ease; }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  .window { transform: none; }
}

@media (max-width: 920px) {
  .hero .wrap, .win { grid-template-columns: 1fr; }
  .hero { padding-top: 56px; }
  .grid, .steps { grid-template-columns: 1fr 1fr; }
  .nav-links { display: none; }
  .lang { margin-left: auto; }
  .window { transform: none; }
  .win { padding: 28px; }
}
@media (max-width: 600px) {
  .grid, .steps { grid-template-columns: 1fr; }
  nav .btn-sm { display: none; }
  .btn { width: 100%; justify-content: center; }
}
.center-note { text-align: center; margin: 22px 0 0; }
.center-note a { color: var(--accent-2); font-weight: 600; text-decoration: none; }
.center-note a:hover { text-decoration: underline; }

/* bilingual blocks */
html[lang="cs"] [data-lang-block="en"], html[lang="en"] [data-lang-block="cs"] { display: none !important; }

/* docs (cli.html) */
.docs { display: grid; grid-template-columns: 220px 1fr; gap: 48px; padding: 48px 0 80px; }
.toc { position: sticky; top: 88px; align-self: start; display: grid; gap: 2px; font-size: 14.5px; }
.toc b { font-size: 12px; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); margin: 14px 0 6px; }
.toc b:first-child { margin-top: 0; }
.toc a { text-decoration: none; color: var(--muted); padding: 5px 10px; border-radius: 8px; }
.toc a:hover { color: var(--text); background: var(--card); }
.doc { min-width: 0; }
.doc h1 { font-size: clamp(32px, 4.4vw, 46px); margin: 0 0 12px; }
.doc > p.lead { margin-bottom: 8px; }
.doc h2 { font-size: 28px; margin: 56px 0 12px; scroll-margin-top: 84px; display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.doc h2 code { font-size: 22px; padding: 4px 12px; border-radius: 10px; background: linear-gradient(135deg, rgba(124, 92, 255, .2), rgba(34, 211, 238, .14)); }
.doc h3 { font-size: 18px; margin: 28px 0 8px; }
.doc p, .doc li { color: var(--muted); }
.doc p strong, .doc li strong { color: var(--text); }
.doc .term { margin: 14px 0 6px; }
.opts { width: 100%; border-collapse: separate; border-spacing: 0; margin: 14px 0; font-size: 15px;
  border: 1px solid var(--card-border); border-radius: 14px; overflow: hidden; background: var(--card); }
.opts th, .opts td { text-align: left; padding: 11px 16px; vertical-align: top; border-bottom: 1px solid var(--card-border); }
.opts tr:last-child td { border-bottom: 0; }
.opts th { font-size: 12px; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); background: var(--card-border); }
.opts td:first-child { white-space: nowrap; }
.opts td:first-child code { background: none; padding: 0; color: var(--accent-2); font-weight: 600; }
.opts td { color: var(--muted); }
.note { padding: 14px 18px; border-radius: 14px; border: 1px solid color-mix(in srgb, var(--accent) 40%, transparent);
  background: color-mix(in srgb, var(--accent) 10%, transparent); color: var(--text); margin: 16px 0; }
.note.warn { border-color: rgba(251, 191, 36, .45); background: rgba(251, 191, 36, .09); }
@media (max-width: 920px) {
  .docs { grid-template-columns: 1fr; gap: 20px; padding-top: 28px; }
  .toc { position: static; display: flex; flex-wrap: wrap; gap: 6px; }
  .toc b { width: 100%; margin: 0; }
  .toc a { border: 1px solid var(--card-border); }
  .opts td:first-child { white-space: normal; }
}
@media (max-width: 600px) {
  .opts, .opts tbody, .opts tr, .opts td { display: block; width: 100%; }
  .opts thead { display: none; }
  .opts td { border-bottom: 0; padding: 4px 16px; }
  .opts td:first-child { padding-top: 12px; }
  .opts tr { border-bottom: 1px solid var(--card-border); padding-bottom: 10px; }
}

/* gallery */
.tabs { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin-bottom: 28px; }
.tabs button {
  border: 1px solid var(--card-border); background: var(--card); color: var(--muted); font: inherit; font-weight: 600;
  font-size: 15px; padding: 10px 18px; border-radius: 999px; cursor: pointer; transition: all .15s;
}
.tabs button:hover { color: var(--text); }
.tabs button[aria-selected="true"] { background: var(--grad); color: #fff; border-color: transparent; }
.gallery { position: relative; }
.gal-item { display: none; margin: 0; text-align: center; }
.gal-item.active { display: block; animation: galIn .35s ease; }
@keyframes galIn { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
.window.flat { transform: none; max-width: 420px; }
.window.wide { max-width: 560px; }
.gal-item figcaption { color: var(--muted); max-width: 560px; margin: 22px auto 0; font-size: 16px; }
.card p a { color: var(--accent-2); text-decoration: none; font-weight: 600; }
.window.modern { max-width: 480px; }
