/* Docker.guide — static stylesheet, no external dependencies */
:root {
  --blue: #1d63ed;
  --blue-600: #1551c7;
  --blue-50: #eaf1ff;
  --navy: #0b1b3a;
  --bg: #ffffff;
  --bg-alt: #f4f7fc;
  --surface: #ffffff;
  --text: #0f1b33;
  --muted: #55627a;
  --border: #dfe6f2;
  --code-bg: #0d1a33;
  --code-text: #dbe6ff;
  --shadow: 0 1px 2px rgba(15, 27, 51, .06), 0 8px 24px rgba(15, 27, 51, .06);
  --shadow-hover: 0 2px 4px rgba(15, 27, 51, .08), 0 16px 40px rgba(29, 99, 237, .16);
  --radius: 16px;
  --font: system-ui, -apple-system, "Segoe UI", Roboto, "Noto Sans", Ubuntu, "Helvetica Neue", Arial, sans-serif;
  --mono: ui-monospace, "SFMono-Regular", "JetBrains Mono", Menlo, Consolas, "Liberation Mono", monospace;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --blue: #4b8bff; --blue-600: #6b9fff; --blue-50: rgba(75, 139, 255, .12);
    --bg: #0a1224; --bg-alt: #0e1830; --surface: #111d38; --text: #e7edf9; --muted: #9aa8c3;
    --border: #1f2d4d; --code-bg: #060d1c;
    --shadow: 0 1px 2px rgba(0, 0, 0, .3), 0 8px 24px rgba(0, 0, 0, .25);
    --shadow-hover: 0 2px 4px rgba(0, 0, 0, .3), 0 16px 40px rgba(75, 139, 255, .18);
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --blue: #4b8bff; --blue-600: #6b9fff; --blue-50: rgba(75, 139, 255, .12);
  --bg: #0a1224; --bg-alt: #0e1830; --surface: #111d38; --text: #e7edf9; --muted: #9aa8c3;
  --border: #1f2d4d; --code-bg: #060d1c;
  --shadow: 0 1px 2px rgba(0, 0, 0, .3), 0 8px 24px rgba(0, 0, 0, .25);
  --shadow-hover: 0 2px 4px rgba(0, 0, 0, .3), 0 16px 40px rgba(75, 139, 255, .18);
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 80px; -webkit-text-size-adjust: 100%; }
body {
  margin: 0; font-family: var(--font); font-size: 17px; line-height: 1.65;
  color: var(--text); background: var(--bg);
  transition: background-color .25s, color .25s;
}
img, svg { display: block; max-width: 100%; }
a { color: var(--blue); text-decoration: none; }
a:hover { text-decoration: underline; }
h1, h2, h3 { line-height: 1.2; margin: 0 0 .6em; letter-spacing: -.015em; }
h1 { font-size: clamp(2.1rem, 4.6vw, 3.5rem); font-weight: 800; }
h2 { font-size: clamp(1.7rem, 3vw, 2.4rem); font-weight: 750; }
h3 { font-size: 1.15rem; font-weight: 700; }
p { margin: 0 0 1em; }
code { font-family: var(--mono); font-size: .92em; }
:focus-visible { outline: 3px solid var(--blue); outline-offset: 2px; border-radius: 6px; }

.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
.ico { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; flex: none; }
.ico--sm { width: 18px; height: 18px; }
.ico--lg { width: 34px; height: 34px; }

.wrap { width: 100%; max-width: 1160px; margin: 0 auto; padding: 0 16px; }
@media (min-width: 640px) { .wrap { padding: 0 28px; } }

.skip { position: absolute; left: -999px; top: 8px; background: var(--blue); color: #fff; padding: 8px 14px; border-radius: 8px; z-index: 100; }
.skip:focus { left: 8px; }

/* Top bar */
.topbar {
  position: sticky; top: 0; z-index: 50;
  background: color-mix(in srgb, var(--bg) 82%, transparent);
  backdrop-filter: saturate(1.6) blur(12px); -webkit-backdrop-filter: saturate(1.6) blur(12px);
  border-bottom: 1px solid var(--border);
}
.topbar__in { display: flex; align-items: center; gap: 20px; height: 66px; }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 800; font-size: 1.15rem; color: var(--text); }
.brand:hover { text-decoration: none; }
.brand__muted { color: var(--blue); }
.nav { display: flex; gap: 4px; margin-left: auto; }
.nav a { color: var(--muted); font-size: .94rem; font-weight: 550; padding: 8px 12px; border-radius: 10px; transition: color .2s, background .2s; }
.nav a:hover { color: var(--text); background: var(--blue-50); text-decoration: none; }
.topbar__actions { display: flex; gap: 6px; }
.icon-btn {
  display: inline-grid; place-items: center; width: 40px; height: 40px; border-radius: 10px;
  border: 1px solid var(--border); background: var(--surface); color: var(--text); cursor: pointer;
  transition: border-color .2s, transform .15s;
}
.icon-btn:hover { border-color: var(--blue); }
.icon-btn:active { transform: scale(.95); }
.ico--moon { display: none; }
:root[data-theme="dark"] .ico--sun { display: none; }
:root[data-theme="dark"] .ico--moon { display: block; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .ico--sun { display: none; }
  :root:not([data-theme="light"]) .ico--moon { display: block; }
}
.nav-toggle { display: none; }
@media (max-width: 920px) {
  .nav-toggle { display: inline-grid; }
  .topbar__actions { margin-left: auto; }
  .nav {
    position: absolute; left: 0; right: 0; top: 66px; flex-direction: column; gap: 2px;
    padding: 10px 16px 16px; background: var(--bg); border-bottom: 1px solid var(--border);
    box-shadow: var(--shadow); display: none;
  }
  .nav.is-open { display: flex; }
  .nav a { padding: 12px; }
}

/* Buttons */
.btn {
  display: inline-flex; align-items: center; gap: 8px; padding: 13px 22px; border-radius: 12px;
  font-weight: 650; font-size: 1rem; border: 1px solid transparent; transition: transform .15s, box-shadow .2s, background .2s;
}
.btn:hover { text-decoration: none; transform: translateY(-2px); }
.btn--primary { background: var(--blue); color: #fff; box-shadow: 0 8px 24px rgba(29, 99, 237, .32); }
.btn--primary:hover { background: var(--blue-600); }
.btn--ghost { border-color: var(--border); color: var(--text); background: var(--surface); }
.btn--ghost:hover { border-color: var(--blue); }

/* Hero */
.hero {
  position: relative; overflow: hidden; padding: 72px 0 84px;
  background:
    radial-gradient(900px 420px at 85% -10%, rgba(29, 99, 237, .18), transparent 60%),
    radial-gradient(700px 380px at -10% 110%, rgba(29, 99, 237, .10), transparent 60%),
    var(--bg);
}
.hero__grid { display: grid; gap: 48px; align-items: center; }
@media (min-width: 980px) { .hero__grid { grid-template-columns: 1.05fr 1fr; } .hero { padding: 104px 0 112px; } }
.eyebrow { color: var(--blue); font-weight: 700; text-transform: uppercase; letter-spacing: .08em; font-size: .8rem; margin-bottom: .8em; }
.lead { font-size: 1.18rem; color: var(--muted); max-width: 36em; }
.hero__cta { display: flex; flex-wrap: wrap; gap: 12px; margin: 28px 0 36px; }
.hero__stats { display: flex; flex-wrap: wrap; gap: 28px; list-style: none; padding: 0; margin: 0; }
.hero__stats li { display: flex; flex-direction: column; }
.hero__stats strong { font-size: 1.25rem; }
.hero__stats span { color: var(--muted); font-size: .9rem; }

.hero__art { position: relative; min-width: 0; }
.terminal {
  position: relative; z-index: 2; background: var(--code-bg); color: var(--code-text);
  border-radius: 14px; box-shadow: 0 30px 60px rgba(11, 27, 58, .35); overflow: hidden;
  border: 1px solid rgba(255, 255, 255, .06);
}
.terminal__bar { display: flex; align-items: center; gap: 7px; padding: 12px 14px; background: rgba(255, 255, 255, .04); }
.terminal__bar i { width: 11px; height: 11px; border-radius: 50%; background: #ff5f57; }
.terminal__bar i:nth-child(2) { background: #febc2e; }
.terminal__bar i:nth-child(3) { background: #28c840; }
.terminal__bar span { margin-left: 8px; font: 12px var(--mono); color: #7f8db0; }
.terminal__body { margin: 0; padding: 18px 20px 22px; font: 13.5px/1.7 var(--mono); white-space: pre-wrap; word-break: break-word; }
.c-prompt { color: #4b8bff; } .c-dim { color: #7383a6; } .c-ok { color: #5fd7a2; }
.cursor { display: inline-block; width: 8px; height: 1.1em; vertical-align: text-bottom; background: #dbe6ff; animation: blink 1.1s steps(1) infinite; }
@keyframes blink { 50% { opacity: 0; } }

.stack { position: absolute; z-index: 1; right: -20px; bottom: -40px; display: grid; grid-template-columns: repeat(3, 46px); gap: 6px; opacity: .9; }
.stack__box { height: 34px; border-radius: 6px; background: linear-gradient(135deg, #2f74ff, #1551c7); box-shadow: inset 0 -3px 0 rgba(0, 0, 0, .15); animation: float 6s ease-in-out infinite; }
.stack__box.s2 { animation-delay: .4s; } .stack__box.s3 { animation-delay: .8s; background: linear-gradient(135deg, #6aa1ff, #2f74ff); }
.stack__box.s4 { animation-delay: 1.2s; } .stack__box.s5 { animation-delay: 1.6s; background: linear-gradient(135deg, #6aa1ff, #2f74ff); } .stack__box.s6 { animation-delay: 2s; }
@keyframes float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-6px); } }
@media (max-width: 640px) { .stack { display: none; } }

/* Sections */
.section { padding: 88px 0; }
.section--alt { background: var(--bg-alt); }
.section__head { max-width: 680px; margin-bottom: 44px; }
.section__head p:last-child { color: var(--muted); }
.two-col { display: grid; gap: 48px; align-items: center; }
@media (min-width: 980px) { .two-col { grid-template-columns: 1.1fr 1fr; } }
.two-col p { color: var(--muted); }
.two-col b { color: var(--text); }

.compare { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.compare__col { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 18px; box-shadow: var(--shadow); display: flex; flex-direction: column; gap: 6px; justify-content: flex-end; }
.compare__col h3 { font-size: 1rem; text-align: center; margin-bottom: auto; padding-bottom: 12px; }
.compare__col--accent { border-color: var(--blue); }
.layer { text-align: center; font-size: .85rem; font-weight: 600; padding: 9px 6px; border-radius: 8px; background: var(--blue-50); color: var(--text); }
.l-app { background: var(--blue); color: #fff; }
.l-engine { background: #0db7ed; color: #04223a; }
.l-os { background: color-mix(in srgb, var(--muted) 22%, transparent); }
.l-hv, .l-host { background: color-mix(in srgb, var(--muted) 14%, transparent); }

/* Cards */
.cards { display: grid; gap: 18px; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); }
.card {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 24px; box-shadow: var(--shadow); transition: transform .2s, box-shadow .2s, border-color .2s;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-hover); border-color: color-mix(in srgb, var(--blue) 45%, var(--border)); }
.card p { color: var(--muted); font-size: .95rem; margin: 0; }
.card__icon { display: inline-grid; place-items: center; width: 48px; height: 48px; border-radius: 12px; background: var(--blue-50); color: var(--blue); margin-bottom: 16px; transition: transform .2s; }
.card:hover .card__icon { transform: rotate(-6deg) scale(1.06); }

.benefits { display: grid; gap: 18px; }
@media (min-width: 760px) { .benefits { grid-template-columns: 1fr 1fr; } }
.benefit { display: flex; gap: 18px; padding: 26px; border-radius: var(--radius); border: 1px solid var(--border); background: var(--surface); transition: border-color .2s; }
.benefit:hover { border-color: var(--blue); }
.benefit .ico { color: var(--blue); }
.benefit p { color: var(--muted); margin: 0; }

/* Flow */
.flow { list-style: none; padding: 0; margin: 0 0 40px; display: grid; gap: 14px; grid-template-columns: 1fr; counter-reset: s; }
@media (min-width: 860px) { .flow { grid-template-columns: repeat(5, 1fr); gap: 0; } }
.flow__step { position: relative; display: flex; flex-direction: column; align-items: center; text-align: center; padding: 22px 10px; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); }
@media (min-width: 860px) {
  .flow__step { margin: 0 14px; }
  .flow__step:not(:last-child)::after {
    content: ""; position: absolute; right: -24px; top: 50%; width: 20px; height: 2px; background: var(--blue);
  }
  .flow__step:not(:last-child)::before {
    content: ""; position: absolute; right: -25px; top: calc(50% - 4px); border: 5px solid transparent; border-left: 7px solid var(--blue); border-right: 0;
  }
}
@media (max-width: 859px) {
  .flow__step:not(:last-child)::after { content: "↓"; position: absolute; bottom: -19px; color: var(--blue); font-weight: 700; }
}
.flow__icon { display: grid; place-items: center; width: 52px; height: 52px; border-radius: 50%; background: var(--blue); color: #fff; margin-bottom: 10px; box-shadow: 0 6px 18px rgba(29, 99, 237, .35); }
.flow__step small { color: var(--muted); font-family: var(--mono); font-size: .8rem; }

.code-grid { display: grid; gap: 18px; }
@media (min-width: 860px) { .code-grid { grid-template-columns: 1fr 1fr; } }
.code { margin: 0; background: var(--code-bg); border-radius: 14px; overflow: hidden; border: 1px solid rgba(255, 255, 255, .06); }
.code figcaption { font: 600 12px var(--mono); color: #7f8db0; padding: 10px 16px; background: rgba(255, 255, 255, .04); }
.code pre { margin: 0; padding: 16px 18px; overflow-x: auto; color: var(--code-text); font: 13.5px/1.7 var(--mono); }
.code .k { color: #6aa1ff; } .code .s { color: #5fd7a2; }

/* Commands */
.cmds { display: grid; gap: 14px; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); }
@media (max-width: 400px) { .cmds { grid-template-columns: 1fr; } }
.cmd { position: relative; background: var(--code-bg); border-radius: 14px; padding: 18px 56px 16px 18px; border: 1px solid rgba(255, 255, 255, .06); transition: transform .2s, box-shadow .2s; }
.cmd:hover { transform: translateY(-3px); box-shadow: var(--shadow-hover); }
.cmd > code { display: block; color: #fff; font-size: .98rem; overflow-x: auto; white-space: nowrap; }
.cmd > code::before { content: "$ "; color: #4b8bff; }
.cmd p { margin: 8px 0 0; color: #93a3c4; font-size: .88rem; }
.cmd p code { color: #cfe0ff; }
.copy { position: absolute; top: 12px; right: 12px; width: 34px; height: 34px; display: grid; place-items: center; border-radius: 8px; border: 1px solid rgba(255, 255, 255, .12); background: transparent; color: #a9b8d8; cursor: pointer; transition: color .2s, border-color .2s; }
.copy:hover { color: #fff; border-color: #4b8bff; }
.copy.is-done { color: #5fd7a2; border-color: #5fd7a2; }

/* Links */
.links { display: grid; gap: 16px; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); }
.link-card { position: relative; display: flex; flex-direction: column; gap: 4px; padding: 22px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--border); color: var(--text); transition: transform .2s, box-shadow .2s, border-color .2s; }
.link-card:hover { text-decoration: none; transform: translateY(-3px); border-color: var(--blue); box-shadow: var(--shadow-hover); }
.link-card span { color: var(--muted); font-size: .92rem; }
.link-card .ico { position: absolute; top: 20px; right: 20px; color: var(--blue); }

/* Footer */
.footer { border-top: 1px solid var(--border); padding: 34px 0; color: var(--muted); font-size: .9rem; }
.footer__in p { margin: 0 0 6px; }
.footer__note { font-size: .82rem; opacity: .85; }

/* 404 */
.notfound { min-height: calc(100vh - 66px - 110px); display: grid; place-items: center; text-align: center; padding: 60px 0; }
.notfound__code { font-size: clamp(5rem, 18vw, 9rem); font-weight: 900; line-height: 1; color: var(--blue); margin: 0 0 12px; }
.notfound p { color: var(--muted); }

/* Reveal on scroll: content is visible by default; JS hides only blocks below the first screen */
.reveal { transition: opacity .6s ease, transform .6s ease; }
.reveal.is-pending { opacity: 0; transform: translateY(18px); }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .reveal.is-pending { opacity: 1; transform: none; }
}
