:root {
  --bg: #0b0b12;
  --bg-2: #11111b;
  --card: #15151f;
  --card-2: #1b1b28;
  --line: rgba(255, 255, 255, 0.08);
  --line-2: rgba(255, 255, 255, 0.14);
  --text: #ececf3;
  --muted: #9a9ab0;
  --dim: #6c6c82;
  --accent: #7c3aed;
  --accent-hover: #6d28d9;
  --accent-text: #a78bfa;
  --accent-soft: rgba(124, 58, 237, 0.14);
  --warn: #f87171;
  --accent-glow: rgba(124, 58, 237, 0.35);
  --blue: #3b82f6;
  --green: #10b981;
  --amber: #f59e0b;
  --caddy: #1f88c0;
  --podman: #892ca0;
  --code-bg: #0f0f18;
  --shadow: 0 30px 80px -30px rgba(0, 0, 0, 0.7);
  --mono: ui-monospace, "SF Mono", "JetBrains Mono", Menlo, Consolas, monospace;
  --sans: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  color-scheme: dark;
}
@media (prefers-color-scheme: light) {
  :root:not([data-theme="dark"]) {
    --bg: #f6f6fa;
    --bg-2: #eeeef5;
    --card: #ffffff;
    --card-2: #f4f3fb;
    --line: rgba(20, 20, 40, 0.08);
    --line-2: rgba(20, 20, 40, 0.14);
    --text: #16161f;
    --muted: #55556a;
    --dim: #8a8aa0;
    --accent-text: #6d28d9;
    --accent-soft: rgba(124, 58, 237, 0.08);
    --accent-glow: rgba(124, 58, 237, 0.22);
    --warn: #dc2626;
    --code-bg: #14141f;
    --shadow: 0 30px 70px -35px rgba(40, 20, 90, 0.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 var(--sans);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
a { color: inherit; text-decoration: none; }
code, pre { font-family: var(--mono); }
.wrap { max-width: 1160px; margin: 0 auto; padding: 0 24px; }
@media (max-width: 600px) { .wrap { padding: 0 16px; } }

/* ---------- Navigace ---------- */
.nav {
  position: sticky; top: 0; z-index: 50;
  /* Bez rozostření pozadí (invariant 23e webu), proto skoro neprůhledná. */
  background: color-mix(in srgb, var(--bg) 95%, transparent);
  border-bottom: 1px solid var(--line);
}
/* Lišta a patička jdou přes celé okno (produktová stránka i dokumentace). */
.nav .wrap, footer .wrap { max-width: none; }
.nav .wrap { display: flex; align-items: center; gap: 28px; height: 64px; }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 700; font-size: 19px; letter-spacing: -0.01em; }
.brand svg { width: 30px; height: 30px; color: var(--text); }
.nav-links { display: flex; gap: 22px; margin-left: auto; font-size: 14.5px; color: var(--muted); }
.nav-links a:hover { color: var(--text); }
.nav .btn { margin-left: 6px; }
.nav-toggle {
  display: none; align-items: center; justify-content: center;
  width: 40px; height: 40px; padding: 0; flex-shrink: 0;
  border: 1px solid var(--line-2); border-radius: 10px;
  background: transparent; color: var(--text); cursor: pointer;
}
.nav-toggle svg { width: 22px; height: 22px; }
.nav-toggle .i-close, .nav.open .nav-toggle .i-menu { display: none; }
.nav.open .nav-toggle .i-close { display: block; }
/* Na úzké obrazovce jsou odkazy v rozbalovacím menu pod lištou
   (tlačítko .nav-toggle, přepíná podberth.js třídou .open na .nav). */
@media (max-width: 860px) {
  .nav .wrap { gap: 12px; }
  .nav-links { display: none; }
  .nav .btn { margin-left: auto; }
  .nav-toggle { display: inline-flex; }
  .nav.open .nav-links {
    display: flex; flex-direction: column; gap: 0;
    position: absolute; top: 64px; left: 0; right: 0; margin: 0;
    padding: 4px 24px 12px; font-size: 16px;
    background: var(--bg); border-bottom: 1px solid var(--line);
    box-shadow: var(--shadow);
  }
  .nav.open .nav-links a { padding: 12px 0; border-bottom: 1px solid var(--line); }
  .nav.open .nav-links a:last-child { border-bottom: 0; }
}
@media (max-width: 600px) { .nav.open .nav-links { padding: 4px 16px 12px; } }

.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 10px 18px; border-radius: 10px;
  font-weight: 600; font-size: 14.5px; line-height: 1;
  border: 1px solid transparent; cursor: pointer; transition: .2s;
  white-space: nowrap;
}
.btn-primary { background: var(--accent); color: #fff; box-shadow: 0 8px 24px -8px var(--accent-glow); }
.btn-primary:hover { background: var(--accent-hover); transform: translateY(-1px); }
.btn-ghost { border-color: var(--line-2); color: var(--text); background: transparent; }
.btn-ghost:hover { border-color: var(--accent); color: var(--accent-text); }
.btn svg { width: 16px; height: 16px; }

/* ---------- Hero ---------- */
.hero { position: relative; padding: 88px 0 72px; overflow: hidden; }
.hero::before {
  content: ""; position: absolute; inset: -20% -10% auto -10%; height: 760px; z-index: -1;
  background:
    radial-gradient(600px 380px at 18% 30%, rgba(124, 58, 237, 0.28), transparent 70%),
    radial-gradient(520px 340px at 85% 10%, rgba(31, 136, 192, 0.16), transparent 70%),
    radial-gradient(500px 300px at 70% 80%, rgba(137, 44, 160, 0.16), transparent 70%);
}
.hero::after {
  content: ""; position: absolute; inset: 0; z-index: -1; opacity: .5;
  background-image: linear-gradient(var(--line) 1px, transparent 1px), linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: radial-gradient(ellipse 70% 60% at 50% 30%, #000 30%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse 70% 60% at 50% 30%, #000 30%, transparent 75%);
}
.hero-grid { display: grid; grid-template-columns: 1.02fr 1fr; gap: 56px; align-items: center; }
@media (max-width: 980px) { .hero-grid { grid-template-columns: 1fr; gap: 44px; } }
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 5px 12px 5px 6px; border-radius: 999px;
  background: var(--accent-soft); border: 1px solid color-mix(in srgb, var(--accent) 35%, transparent);
  color: var(--accent-text); font-size: 13px; font-weight: 600;
}
.eyebrow b { background: var(--accent); color: #fff; padding: 2px 8px; border-radius: 999px; font-size: 11.5px; }
h1 {
  font-size: clamp(38px, 5.6vw, 64px); line-height: 1.04; letter-spacing: -0.035em;
  margin: 20px 0 18px; font-weight: 800;
}
.grad {
  background: linear-gradient(100deg, #c4b5fd 0%, #a78bfa 30%, #7c3aed 60%, #d946ef 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
@media (prefers-color-scheme: light) {
  :root:not([data-theme="dark"]) .grad { background: linear-gradient(100deg, #7c3aed 0%, #6d28d9 45%, #a21caf 100%); -webkit-background-clip: text; background-clip: text; }
}
.lead { font-size: 18.5px; color: var(--muted); max-width: 560px; margin: 0 0 30px; }
.cta-row { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.install {
  display: flex; align-items: center; gap: 12px;
  background: var(--code-bg); border: 1px solid var(--line-2); border-radius: 12px;
  padding: 6px 6px 6px 16px; font: 14px var(--mono); color: #e9e7f5;
  max-width: 100%;
}
.install .p { color: var(--accent-text); user-select: none; }
.install code { overflow-x: auto; white-space: nowrap; scrollbar-width: none; }
.install code::-webkit-scrollbar { display: none; }
.copy {
  border: 0; background: rgba(255, 255, 255, 0.07); color: #c9c7d8;
  width: 34px; height: 34px; border-radius: 8px; cursor: pointer; flex: none;
  display: grid; place-items: center; transition: .2s;
}
.copy:hover { background: var(--accent); color: #fff; }
.copy svg { width: 16px; height: 16px; }
.hero-note { margin-top: 16px; font-size: 13.5px; color: var(--dim); display: flex; flex-wrap: wrap; gap: 6px 18px; }
.hero-note span::before { content: "✓"; color: var(--green); margin-right: 6px; font-weight: 700; }

/* Terminál */
.term {
  background: var(--code-bg); border: 1px solid var(--line-2); border-radius: 16px;
  box-shadow: var(--shadow), 0 0 0 1px rgba(124, 58, 237, 0.08), 0 0 80px -20px var(--accent-glow);
  overflow: hidden; color: #dcdaea;
}
.term-bar { display: flex; align-items: center; gap: 8px; padding: 12px 14px; border-bottom: 1px solid rgba(255, 255, 255, 0.06); background: rgba(255, 255, 255, 0.02); }
.term-bar i { width: 11px; height: 11px; border-radius: 50%; background: #3a3a4c; }
.term-bar i:nth-child(1) { background: #ff5f57; } .term-bar i:nth-child(2) { background: #febc2e; } .term-bar i:nth-child(3) { background: #28c840; }
.term-bar span { margin-left: 10px; font: 12.5px var(--mono); color: #8d8ba2; }
.term-body { padding: 18px 18px 22px; font: 13.5px/1.75 var(--mono); min-height: 330px; overflow-x: auto; }
.term-body .ln { white-space: pre; opacity: 0; transform: translateY(4px); transition: opacity .35s, transform .35s; }
.term-body .ln.on { opacity: 1; transform: none; }
.c-p { color: #a78bfa; } .c-ok { color: #34d399; } .c-ar { color: #60a5fa; } .c-dim { color: #78768e; } .c-url { color: #c4b5fd; text-decoration: underline; text-underline-offset: 3px; }
.c-y { color: #fbbf24; }
.cursor { display: inline-block; width: 8px; height: 16px; background: #a78bfa; vertical-align: -3px; animation: blink 1s steps(1) infinite; }
@keyframes blink { 50% { opacity: 0; } }
.term-progress { height: 3px; background: rgba(255, 255, 255, 0.05); }
.term-progress div { height: 100%; width: 0; background: linear-gradient(90deg, #7c3aed, #d946ef); transition: width .4s; }

/* ---------- Pás technologií ---------- */
.stack-strip { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); background: var(--bg-2); }
.stack-strip .wrap { max-width: 1280px; display: grid; gap: 14px; padding-top: 22px; padding-bottom: 22px; }
.strip-row { display: flex; align-items: center; gap: 12px 22px; flex-wrap: wrap; justify-content: center; }
.stack-strip .lbl { font-size: 12px; text-transform: uppercase; letter-spacing: .14em; color: var(--dim); font-weight: 600; }
.tech { display: inline-flex; align-items: center; gap: 8px; font-weight: 600; font-size: 14.5px; color: var(--muted); }
.tech i { width: 9px; height: 9px; border-radius: 3px; display: inline-block; }

/* ---------- Sekce ---------- */
section { padding: 104px 0; position: relative; scroll-margin-top: 64px; }
@media (max-width: 700px) { section { padding: 72px 0; } }
.sec-head { max-width: 720px; margin-bottom: 52px; }
.sec-head.center { margin-left: auto; margin-right: auto; text-align: center; }
.kicker { font-size: 13px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--accent-text); }
h2 { font-size: clamp(30px, 4vw, 44px); line-height: 1.1; letter-spacing: -0.03em; margin: 12px 0 16px; font-weight: 800; }
.sec-head p { font-size: 17.5px; color: var(--muted); margin: 0; }

/* ---------- Workflow ---------- */
.flow { display: grid; grid-template-columns: repeat(6, 1fr); gap: 0; position: relative; }
.step { position: relative; padding: 0 10px; text-align: center; }
.step .node {
  width: 74px; height: 74px; margin: 0 auto 18px; border-radius: 20px;
  display: grid; place-items: center; position: relative; z-index: 2;
  background: var(--card); border: 1px solid var(--line-2);
  box-shadow: 0 10px 30px -12px rgba(0, 0, 0, 0.5);
  transition: .4s;
}
.step .node svg { width: 32px; height: 32px; color: var(--muted); transition: .4s; }
.step.active .node { border-color: var(--accent); box-shadow: 0 0 0 6px var(--accent-soft), 0 0 40px -6px var(--accent-glow); transform: translateY(-3px); }
.step.active .node svg { color: var(--accent-text); }
.step.done .node svg { color: var(--accent-text); }
.step .num { position: absolute; top: -8px; right: -8px; width: 22px; height: 22px; border-radius: 50%; background: var(--bg); border: 1px solid var(--line-2); font-size: 11.5px; font-weight: 700; display: grid; place-items: center; color: var(--muted); }
.step.active .num, .step.done .num { background: var(--accent); border-color: var(--accent); color: #fff; }
.step h3 { margin: 0 0 6px; font-size: 16px; }
.step p { margin: 0; font-size: 13.5px; color: var(--muted); line-height: 1.5; }
.step .tag { display: inline-block; margin-top: 10px; font: 11.5px var(--mono); color: var(--accent-text); background: var(--accent-soft); padding: 3px 8px; border-radius: 6px; }
.flow-line { position: absolute; top: 37px; left: calc(100% / 12); right: calc(100% / 12); height: 2px; background: var(--line-2); z-index: 1; }
.flow-line .fill { position: absolute; inset: 0 auto 0 0; width: 0; background: linear-gradient(90deg, var(--accent), #d946ef); transition: width .6s ease; box-shadow: 0 0 12px var(--accent-glow); }
.flow-line .pkt { position: absolute; top: 50%; width: 12px; height: 12px; margin: -6px 0 0 -6px; border-radius: 50%; background: #fff; box-shadow: 0 0 0 4px var(--accent), 0 0 24px 6px var(--accent-glow); left: 0; transition: left .6s ease; }
@media (max-width: 900px) {
  .flow { grid-template-columns: 1fr; gap: 26px; }
  .step { display: grid; grid-template-columns: 74px 1fr; gap: 18px; text-align: left; align-items: center; padding: 0; }
  .step .node { margin: 0; }
  .flow-line { top: 37px; bottom: 37px; left: 36px; right: auto; width: 2px; height: auto; }
  .flow-line .fill { inset: 0 0 auto 0; width: 100% !important; height: var(--h, 0); transition: height .6s ease; }
  .flow-line .pkt { display: none; }
}
.flow-caption {
  margin: 48px auto 0; max-width: 760px; text-align: center; min-height: 54px;
  font-size: 16px; color: var(--muted);
}
.flow-caption b { color: var(--text); }

/* ---------- Blue/green ---------- */
.split { display: grid; grid-template-columns: 1fr 1.15fr; gap: 56px; align-items: center; }
@media (max-width: 980px) { .split { grid-template-columns: 1fr; gap: 40px; } }
.checks { list-style: none; padding: 0; margin: 26px 0 0; display: grid; gap: 14px; }
.checks li { display: grid; grid-template-columns: 26px 1fr; gap: 12px; color: var(--muted); font-size: 15.5px; }
.checks li b { color: var(--text); font-weight: 600; }
.checks li::before { content: ""; width: 26px; height: 26px; border-radius: 8px; background: var(--accent-soft) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23a78bfa' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12l5 5L20 7'/%3E%3C/svg%3E") center/14px no-repeat; }

.bg-stage {
  position: relative; border-radius: 20px; padding: 26px;
  background: linear-gradient(180deg, var(--card), var(--card-2));
  border: 1px solid var(--line-2); box-shadow: var(--shadow);
}
.bg-stage svg { width: 100%; height: auto; display: block; }
.bg-status { display: flex; align-items: center; gap: 10px; margin-top: 18px; padding: 12px 14px; border-radius: 12px; background: var(--bg); border: 1px solid var(--line); font-size: 14px; color: var(--muted); min-height: 48px; }
.bg-status .dot { width: 9px; height: 9px; border-radius: 50%; background: var(--amber); flex: none; box-shadow: 0 0 10px currentColor; }
.bg-steps { display: flex; gap: 6px; margin-top: 12px; }
.bg-steps i { flex: 1; height: 4px; border-radius: 2px; background: var(--line-2); transition: .4s; }
.bg-steps i.on { background: var(--accent); }

/* ---------- Server: vrstvy ---------- */
.server-grid { display: grid; grid-template-columns: 1.05fr 1fr; gap: 40px; align-items: start; }
@media (max-width: 980px) { .server-grid { grid-template-columns: 1fr; } }
.layers { display: grid; gap: 10px; }
.layer {
  position: relative; border-radius: 14px; padding: 16px 18px;
  background: var(--card); border: 1px solid var(--line-2);
  display: grid; grid-template-columns: 44px 1fr auto; gap: 14px; align-items: center;
  transition: .25s;
}
.layer:hover { border-color: color-mix(in srgb, var(--c, var(--accent)) 60%, transparent); transform: translateX(4px); }
.layer .ic { width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; background: color-mix(in srgb, var(--c, var(--accent)) 18%, transparent); color: var(--c, var(--accent)); }
.layer .ic svg { width: 22px; height: 22px; }
.layer h4 { margin: 0; font-size: 15.5px; }
.layer p { margin: 2px 0 0; font-size: 13.5px; color: var(--muted); line-height: 1.45; }
.layer .pill { font: 11.5px var(--mono); padding: 4px 8px; border-radius: 6px; background: var(--bg); border: 1px solid var(--line); color: var(--muted); white-space: nowrap; }
@media (max-width: 520px) { .layer { grid-template-columns: 40px 1fr; } .layer .pill { display: none; } }
.containers { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin: 4px 0; }
.ctr {
  border-radius: 12px; padding: 12px; font-size: 13px; text-align: center;
  border: 1px dashed color-mix(in srgb, var(--podman) 55%, transparent);
  background: color-mix(in srgb, var(--podman) 9%, transparent);
}
.ctr b { display: block; font-size: 14px; margin-bottom: 2px; }
.ctr span { color: var(--muted); font: 11.5px var(--mono); }
.ctr.db { border-color: color-mix(in srgb, var(--blue) 55%, transparent); background: color-mix(in srgb, var(--blue) 9%, transparent); }
.layers-cap { font-size: 12px; text-transform: uppercase; letter-spacing: .12em; color: var(--dim); font-weight: 700; margin: 6px 2px 0; }

.code {
  background: var(--code-bg); border: 1px solid var(--line-2); border-radius: 16px; overflow: hidden;
  box-shadow: var(--shadow); color: #d8d6e8;
}
.code-head { display: flex; align-items: center; gap: 10px; padding: 11px 16px; border-bottom: 1px solid rgba(255, 255, 255, 0.06); font: 12.5px var(--mono); color: #8d8ba2; }
.code-head .badge { margin-left: auto; font: 600 11px var(--sans); text-transform: uppercase; letter-spacing: .08em; color: #c4b5fd; background: rgba(124, 58, 237, 0.2); padding: 3px 8px; border-radius: 6px; }
.code pre { margin: 0; padding: 16px 18px 20px; font-size: 13px; line-height: 1.7; overflow-x: auto; }
.k { color: #c4b5fd; } .s { color: #86efac; } .n { color: #fbbf24; } .cm { color: #6f6d86; font-style: italic; } .sec { color: #f472b6; font-weight: 600; }

/* ---------- Napojení: DNS a S3 ---------- */
.integr { display: grid; gap: 28px; }
.conn { min-width: 0; background: var(--card); border: 1px solid var(--line); border-radius: 22px; padding: 32px 36px;
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 22px 48px; align-items: start;
  grid-template-areas: "head head" "chips chips" "mock mock" "code list"; }
.conn-head { grid-area: head; } .conn .chips { grid-area: chips; }
.conn .mock { grid-area: mock; } .conn .code { grid-area: code; } .conn .checks { grid-area: list; }
@media (max-width: 900px) {
  .conn { grid-template-columns: minmax(0, 1fr); grid-template-areas: "head" "chips" "mock" "code" "list"; padding: 28px; }
}
@media (max-width: 600px) { .conn { padding: 22px 18px; } }
.conn-head { display: grid; grid-template-columns: 46px 1fr; gap: 16px; align-items: center; }
.conn-head .ic { width: 46px; height: 46px; border-radius: 13px; display: grid; place-items: center; background: linear-gradient(140deg, rgba(124, 58, 237, 0.25), rgba(217, 70, 239, 0.12)); color: var(--accent-text); border: 1px solid color-mix(in srgb, var(--accent) 30%, transparent); }
.conn-head .ic svg { width: 23px; height: 23px; }
.conn-head h3 { margin: 0; font-size: 20px; letter-spacing: -0.01em; }
.conn-head p { margin: 2px 0 0; color: var(--muted); font-size: 14.5px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.chips-label { font-size: 12px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--dim); margin-right: 4px; }
.chip { font-size: 12.5px; padding: 4px 11px; border-radius: 999px; border: 1px solid var(--line-2); color: var(--muted); white-space: nowrap; }
.chip.on { background: var(--accent-soft); color: var(--accent-text); border-color: color-mix(in srgb, var(--accent) 40%, transparent); font-weight: 600; }
.chip.soon { border-style: dashed; color: var(--dim); }
.mock { border: 1px solid var(--line-2); border-radius: 14px; overflow: hidden; background: var(--bg-2); }
.mock-head, .mock-row { display: grid; grid-template-columns: minmax(150px, 0.7fr) minmax(0, 1.3fr) minmax(0, 1.6fr) 120px; gap: 6px 20px; align-items: center; padding: 12px 18px; }
.mock-head { font-size: 11.5px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--dim); padding-top: 10px; padding-bottom: 10px; }
.mock-head span:last-child { text-align: right; }
.mock-row { border-top: 1px solid var(--line); }
.mock-row b { grid-column: 1; grid-row: 1; font: 600 13.5px var(--mono); color: var(--text); overflow-wrap: anywhere; }
.mock-row small { grid-column: 2; grid-row: 1; color: var(--muted); font-size: 13px; }
.mock-row .use { grid-column: 3; grid-row: 1; display: flex; flex-wrap: wrap; gap: 6px; }
.mock-row .use span { font: 11.5px var(--mono); padding: 2px 8px; border-radius: 6px; background: var(--accent-soft); color: var(--accent-text); white-space: nowrap; }
.mock-row .ok { grid-column: 4; grid-row: 1; justify-self: end; font-size: 12px; font-weight: 600; color: var(--green); white-space: nowrap; }
.mock-row.add { display: block; color: var(--dim); font-size: 13px; border-top-style: dashed; }
@media (max-width: 900px) {
  .mock-head { display: flex; justify-content: space-between; }
  .mock-head span:nth-child(2), .mock-head span:nth-child(3) { display: none; }
  .mock-row { grid-template-columns: minmax(0, 1fr) auto; gap: 4px 12px; padding: 12px 14px; }
  .mock-row small, .mock-row .use { grid-column: 1 / -1; grid-row: auto; }
  .mock-row .use { margin-top: 4px; }
  .mock-row .ok { grid-column: 2; grid-row: 1; }
}
.conn .code { box-shadow: none; border-radius: 12px; }
.conn .code pre { font-size: 12.5px; padding: 12px 16px 14px; }
.conn .checks { margin: 0; gap: 18px; }

/* ---------- Manifest ---------- */
.manifest-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; align-items: stretch; }
@media (max-width: 980px) { .manifest-grid { grid-template-columns: 1fr; } }
.outcomes { display: grid; gap: 12px; align-content: start; }
.outcome { display: grid; grid-template-columns: 38px 1fr; gap: 14px; padding: 16px; border-radius: 14px; background: var(--card); border: 1px solid var(--line); }
.outcome .ic { width: 38px; height: 38px; border-radius: 10px; display: grid; place-items: center; background: var(--accent-soft); color: var(--accent-text); }
.outcome .ic svg { width: 19px; height: 19px; }
.outcome h4 { margin: 0 0 2px; font-size: 15px; }
.outcome p { margin: 0; font-size: 13.5px; color: var(--muted); line-height: 1.5; }
.outcome code { font-size: 12.5px; color: var(--accent-text); }

/* ---------- Funkce ---------- */
.features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
@media (max-width: 980px) { .features { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .features { grid-template-columns: 1fr; } }
.feat {
  position: relative; padding: 26px; border-radius: 18px;
  background: var(--card); border: 1px solid var(--line);
  overflow: hidden; transition: .3s;
}
.feat::before {
  content: ""; position: absolute; inset: 0; opacity: 0; transition: .3s;
  background: radial-gradient(400px 200px at var(--mx, 50%) var(--my, 0%), var(--accent-soft), transparent 70%);
}
.feat:hover { border-color: color-mix(in srgb, var(--accent) 45%, transparent); transform: translateY(-3px); }
.feat:hover::before { opacity: 1; }
.feat > * { position: relative; }
.feat .ic { width: 46px; height: 46px; border-radius: 13px; display: grid; place-items: center; margin-bottom: 18px; background: linear-gradient(140deg, rgba(124, 58, 237, 0.25), rgba(217, 70, 239, 0.12)); color: var(--accent-text); border: 1px solid color-mix(in srgb, var(--accent) 30%, transparent); }
.feat .ic svg { width: 23px; height: 23px; }
.feat h3 { margin: 0 0 8px; font-size: 18px; letter-spacing: -0.01em; }
.feat p { margin: 0; color: var(--muted); font-size: 14.5px; line-height: 1.55; }
.feat ul { margin: 14px 0 0; padding: 0; list-style: none; display: grid; gap: 6px; }
.feat li { font-size: 13.5px; color: var(--muted); padding-left: 16px; position: relative; }
.feat li::before { content: ""; position: absolute; left: 0; top: 9px; width: 6px; height: 6px; border-radius: 2px; background: var(--accent); }

/* ---------- Víc serverů ---------- */
.topo { border-radius: 20px; background: linear-gradient(180deg, var(--card), var(--card-2)); border: 1px solid var(--line-2); padding: 20px; box-shadow: var(--shadow); }
.topo svg { width: 100%; height: auto; display: block; }
.wire { stroke-dasharray: 6 8; animation: dash 1.6s linear infinite; }
@keyframes dash { to { stroke-dashoffset: -28; } }

/* ---------- Nezávislost ---------- */
.callout {
  position: relative; overflow: hidden;
  border-radius: 24px; padding: 48px;
  background: linear-gradient(130deg, #2e1065 0%, #4c1d95 45%, #5b21b6 70%, #701a75 100%);
  color: #f3f0ff; display: grid; grid-template-columns: 1.3fr 1fr; gap: 36px; align-items: center;
}
.callout::after { content: ""; position: absolute; right: -120px; top: -120px; width: 420px; height: 420px; border-radius: 50%; background: radial-gradient(circle, rgba(255, 255, 255, 0.16), transparent 65%); }
.callout h2 { color: #fff; margin-top: 0; }
.callout p { color: #ddd6fe; font-size: 17px; margin: 0; }
.callout .pills { display: grid; gap: 10px; position: relative; z-index: 1; }
.callout .pills div { display: flex; align-items: center; gap: 12px; background: rgba(255, 255, 255, 0.1); border: 1px solid rgba(255, 255, 255, 0.16); padding: 12px 16px; border-radius: 12px; font-weight: 600; font-size: 15px; }
.callout .pills i { width: 10px; height: 10px; border-radius: 50%; background: #34d399; box-shadow: 0 0 0 4px rgba(52, 211, 153, 0.2); animation: pulse 2s infinite; }
@keyframes pulse { 50% { box-shadow: 0 0 0 8px rgba(52, 211, 153, 0); } }
@media (max-width: 860px) { .callout { grid-template-columns: 1fr; padding: 32px 22px; } }

/* ---------- CLI ---------- */
.tabs { display: flex; gap: 6px; margin-bottom: 14px; flex-wrap: wrap; }
.tab { border: 1px solid var(--line-2); background: transparent; color: var(--muted); padding: 8px 14px; border-radius: 9px; font: 600 13.5px var(--sans); cursor: pointer; transition: .2s; }
.tab:hover { color: var(--text); }
.tab.on { background: var(--accent); border-color: var(--accent); color: #fff; }
.cli pre[hidden] { display: none; }

/* ---------- Závěr ---------- */
.final { text-align: center; padding: 110px 0 120px; position: relative; overflow: hidden; }
.final::before { content: ""; position: absolute; left: 50%; top: 40%; width: 900px; height: 500px; transform: translate(-50%, -50%); background: radial-gradient(closest-side, rgba(124, 58, 237, 0.28), transparent); z-index: -1; }
.final .logo-big { width: 92px; height: 92px; margin: 0 auto 24px; color: var(--text); }
.final .install { justify-content: space-between; margin: 30px auto 0; max-width: 520px; }
.final .cta-row { justify-content: center; margin-top: 20px; }
footer { border-top: 1px solid var(--line); padding: 30px 0; color: var(--dim); font-size: 13.5px; }
footer .wrap { display: flex; flex-wrap: wrap; gap: 12px 24px; align-items: center; }
footer .brand { font-size: 15px; color: var(--muted); }
footer .brand svg { width: 22px; height: 22px; color: var(--muted); }
footer nav { margin-left: auto; display: flex; gap: 20px; flex-wrap: wrap; }
footer a:hover { color: var(--text); }

.hero-grid > *, .split > *, .server-grid > *, .manifest-grid > *, .install, .cta-row { min-width: 0; }
.install code { min-width: 0; }

/* Odhalení při rolování */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .7s ease, transform .7s ease; }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .reveal { opacity: 1; transform: none; }
}

/* Světlý motiv zvolený přepínačem webu Linuxáku (data-theme z theme-init.js) */
:root[data-theme="light"] {
    --bg: #f6f6fa;
    --bg-2: #eeeef5;
    --card: #ffffff;
    --card-2: #f4f3fb;
    --line: rgba(20, 20, 40, 0.08);
    --line-2: rgba(20, 20, 40, 0.14);
    --text: #16161f;
    --muted: #55556a;
    --dim: #8a8aa0;
    --accent-text: #6d28d9;
    --accent-soft: rgba(124, 58, 237, 0.08);
    --accent-glow: rgba(124, 58, 237, 0.22);
    --code-bg: #14141f;
    --shadow: 0 30px 70px -35px rgba(40, 20, 90, 0.35);
    color-scheme: light;
  }
:root[data-theme="light"] .grad { background: linear-gradient(100deg, #7c3aed 0%, #6d28d9 45%, #a21caf 100%); -webkit-background-clip: text; background-clip: text; }

/* Třídy místo atributů style= (CSP webu je nepouští) */
.sub { color:var(--muted) !important; font-size:17px !important; margin:0 !important; }
section.alt { background:var(--bg-2) !important; border-top:1px solid var(--line) !important; border-bottom:1px solid var(--line) !important; }
section.pt0 { padding-top:0 !important; }
.sprite { position:absolute !important; }
section.hero-top { padding-top:88px !important; }
.mt14 { margin-top:14px !important; }
.mt0 { margin-top:0 !important; }
.fs80 { font-size:.8em !important; }
.fs78 { font-size:.78em !important; }
.final-lead { color:var(--muted) !important; font-size:18px !important; max-width:600px !important; margin:0 auto !important; }
.note { color:var(--muted) !important; font-size:15px !important; margin:16px 0 0 !important; }
svg use.c-white { color:#fff !important; }
.c-blue { color:#60a5fa !important; }
.tech i.d-podman { background:var(--podman) !important; }
.tech i.d-caddy { background:var(--caddy) !important; }
.tech i.d-zot { background:#f59e0b !important; }
.tech i.d-vlogs { background:#8b5cf6 !important; }
.tech i.d-wg { background:#88171a !important; }
.tech i.d-vm { background:#6d28d9 !important; }
.tech i.d-systemd { background:#64748b !important; }
.tech i.d-vue { background:#42b883 !important; }
.tech i.d-pg { background:#336791 !important; }
.tech i.d-sops { background:#10b981 !important; }
.tech i.d-go { background:#00add8 !important; }
.layer.l-podman { --c:var(--podman) !important; }
.layer.l-caddy { --c:var(--caddy) !important; }
.layer.l-accent { --c:var(--accent) !important; }
.layer.l-systemd { --c:#64748b !important; }
.layer.l-green { --c:#10b981 !important; }
footer .by a { color: var(--muted); font-weight: 600; transition: color .15s; }
footer .by a:hover { color: var(--accent-text); }

/* ===== Dokumentace (/podberth/docs) ===== */
.nav-links a[aria-current="page"] { color: var(--text); }
.docs-layout {
  display: grid; grid-template-columns: 220px minmax(0, 1fr) 200px; gap: 40px;
  align-items: start; padding-top: 40px; padding-bottom: 80px;
  max-width: none;
}
.docs-side, .docs-toc {
  position: sticky; top: 88px; max-height: calc(100vh - 110px); overflow-y: auto; font-size: 14px;
}
.docs-nav p, .docs-toc p {
  margin: 22px 0 6px; font-size: 12px; font-weight: 700; letter-spacing: .06em;
  text-transform: uppercase; color: var(--dim);
}
.docs-nav p:first-child, .docs-toc p { margin-top: 0; }
.docs-nav ul, .docs-toc ul { list-style: none; margin: 0; padding: 0; }
.docs-nav a { display: block; padding: 5px 10px; border-radius: 8px; color: var(--muted); line-height: 1.4; }
.docs-nav a:hover { color: var(--text); background: var(--card); }
.docs-nav a[aria-current="page"] { color: var(--accent-text); background: var(--accent-soft); font-weight: 600; }
.docs-toc a { display: block; padding: 4px 0; color: var(--muted); line-height: 1.4; }
.docs-toc li.sub a { padding-left: 12px; font-size: 13px; }
.docs-toc a:hover { color: var(--text); }
.docs-menu { display: none; }

.docs { min-width: 0; font-size: 16px; line-height: 1.7; }
.docs-section { margin: 0 0 4px; font-size: 13px; font-weight: 600; color: var(--accent-text); }
.docs h1 { margin: 0 0 20px; font-size: clamp(30px, 4vw, 40px); line-height: 1.15; letter-spacing: -.02em; }
.docs h2 {
  margin: 48px 0 14px; padding-top: 24px; border-top: 1px solid var(--line);
  font-size: 25px; line-height: 1.25; letter-spacing: -.01em;
}
.docs h3 { margin: 32px 0 10px; font-size: 19px; line-height: 1.3; }
.docs h2, .docs h3 { scroll-margin-top: 88px; }
.docs p, .docs ul, .docs ol, .docs blockquote, .docs .table, .docs .code { margin: 0 0 16px; }
.docs ul, .docs ol { padding-left: 22px; }
.docs li { margin: 4px 0; }
.docs li > p { margin: 0; }
/* Ukázka kódu v odrážce: odstup od textu odrážky nad ní i od další odrážky. */
.docs li > .code { margin: 10px 0 14px; }
.docs :is(p, li, td, blockquote) a:not(.docs-nav a) {
  color: var(--accent-text); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px;
}
.docs strong { color: var(--text); }
.docs :not(pre) > code {
  font-size: .87em; padding: 2px 6px; border-radius: 6px; background: var(--card-2);
  border: 1px solid var(--line); overflow-wrap: anywhere;
}
.docs blockquote {
  padding: 10px 16px; border-left: 3px solid var(--accent); border-radius: 0 10px 10px 0;
  background: var(--accent-soft);
}
.docs blockquote > :last-child { margin-bottom: 0; }
.docs blockquote.alert-warning { border-left-color: var(--warn); background: color-mix(in srgb, var(--warn) 10%, transparent); }
.docs blockquote.alert-warning strong { color: var(--warn); }
.docs .table { overflow-x: auto; border: 1px solid var(--line); border-radius: 12px; }
.docs table { width: 100%; border-collapse: collapse; font-size: 14.5px; line-height: 1.55; }
.docs th, .docs td { padding: 9px 14px; text-align: left; vertical-align: top; border-bottom: 1px solid var(--line); }
.docs th { background: var(--card); font-weight: 600; white-space: nowrap; }
.docs :is(th, td)[align="center"] { text-align: center; }
.docs tr:last-child td { border-bottom: 0; }

/* Bloky kódu: chroma píše třídy (CSP), podklad --code-bg je tmavý v obou
   režimech, proto mají tokeny jednu sadu barev. */
.docs .code { position: relative; }
.docs .code pre {
  margin: 0; padding: 16px 18px; overflow-x: auto; background: var(--code-bg); color: #e4e4ef;
  border: 1px solid var(--line); border-radius: 12px; font-size: 13.5px; line-height: 1.6;
}
.code-copy {
  position: absolute; top: 8px; right: 8px; padding: 4px 10px; cursor: pointer;
  font: 600 12px var(--sans); color: #c9c9d8; background: rgba(255, 255, 255, .06);
  border: 1px solid rgba(255, 255, 255, .14); border-radius: 8px; opacity: 0; transition: opacity .15s;
}
.docs .code:hover .code-copy, .code-copy:focus-visible { opacity: 1; }
@media (hover: none) { .code-copy { opacity: 1; } }
.chroma :is(.c, .c1, .cm, .ch, .cs, .cp) { color: #7f7f98; font-style: italic; }
.chroma :is(.k, .kd, .kn, .kc, .kr, .kt, .kp) { color: #c4a5ff; }
.chroma :is(.s, .s1, .s2, .sb, .sc, .se, .sh, .si, .sx, .sd, .dl) { color: #86e1b0; }
.chroma :is(.m, .mi, .mf, .mh, .mo, .il) { color: #f5c26b; }
.chroma :is(.nt, .na, .py) { color: #7cc4ff; }
.chroma :is(.nb, .nf, .bp, .fm) { color: #f0a0d8; }
.chroma :is(.nv, .vg, .vi, .vc) { color: #ffb38a; }
.chroma :is(.o, .ow, .p) { color: #a3a3b8; }
.chroma .gd { color: #ff8a8a; }
.chroma .gi { color: #86e1b0; }

.docs-pager { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 56px; }
.docs-pager a {
  display: block; padding: 14px 18px; border: 1px solid var(--line-2); border-radius: 12px;
  color: var(--text); font-weight: 600; line-height: 1.4; transition: border-color .15s;
}
.docs-pager a:hover { border-color: var(--accent); }
.docs-pager span { display: block; margin-bottom: 2px; font-size: 12.5px; font-weight: 500; color: var(--dim); }
.docs-pager .next { grid-column: 2; text-align: right; }

@media (max-width: 1199px) {
  .docs-layout { grid-template-columns: 220px minmax(0, 1fr); }
  .docs-toc { display: none; }
}
@media (max-width: 959px) {
  .docs-layout { grid-template-columns: minmax(0, 1fr); gap: 0; padding-top: 20px; }
  .docs-side { display: none; }
  .docs-menu {
    display: block; margin-bottom: 24px; padding: 10px 14px; border: 1px solid var(--line-2);
    border-radius: 12px; background: var(--card); font-size: 15px;
  }
  .docs-menu summary { cursor: pointer; font-weight: 600; }
  .docs-menu .docs-nav { margin-top: 12px; }
}
@media (max-width: 600px) {
  .docs h2 { font-size: 22px; }
  .docs-pager { grid-template-columns: 1fr; }
  .docs-pager .next { grid-column: 1; }
}
.step-link { color: var(--accent-text); white-space: nowrap; }
.step-link:hover { text-decoration: underline; }
