/* ==========================================================================
   Proxmox Academy — design system
   ========================================================================== */

:root {
  --bg: #0a0c10;
  --bg-alt: #0f1319;
  --surface: #131820;
  --surface-2: #1a212c;
  --border: rgba(255, 255, 255, 0.08);
  --border-strong: rgba(255, 255, 255, 0.16);
  --text: #e8ecf1;
  --text-dim: #98a2b3;
  --text-faint: #62697a;

  --orange: #f28a1e;
  --orange-strong: #ff9d2e;
  --orange-dim: rgba(242, 138, 30, 0.14);
  --cyan: #2dd4e8;
  --cyan-dim: rgba(45, 212, 232, 0.14);
  --green: #33d17a;
  --green-dim: rgba(51, 209, 122, 0.14);
  --amber: #f5b83d;
  --amber-dim: rgba(245, 184, 61, 0.14);
  --red: #f2544a;
  --red-dim: rgba(242, 84, 74, 0.14);
  --purple: #a78bfa;

  --mono: "JetBrains Mono", "Fira Code", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  --sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;

  --radius: 14px;
  --radius-sm: 8px;
  --sidebar-w: 264px;
  --shadow: 0 12px 40px rgba(0, 0, 0, 0.45);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

::selection { background: var(--orange-dim); color: var(--orange-strong); }

::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: var(--surface-2); border-radius: 10px; border: 2px solid var(--bg); }
::-webkit-scrollbar-thumb:hover { background: var(--border-strong); }

a { color: inherit; text-decoration: none; }
h1, h2, h3, h4 { font-weight: 700; letter-spacing: -0.01em; margin: 0; }
p { margin: 0 0 1em; color: var(--text-dim); }
code, pre { font-family: var(--mono); }
img, svg { max-width: 100%; }

.mono { font-family: var(--mono); }
.accent { color: var(--orange-strong); }
.cyan { color: var(--cyan); }

/* -------------------------------------------------------------------- */
/* Top progress bar                                                     */
/* -------------------------------------------------------------------- */
#scroll-progress {
  position: fixed; top: 0; left: 0; height: 3px; width: 0%;
  background: linear-gradient(90deg, var(--orange), var(--cyan));
  z-index: 1000; transition: width 80ms linear;
}

/* -------------------------------------------------------------------- */
/* Sidebar navigation                                                   */
/* -------------------------------------------------------------------- */
#sidebar {
  position: fixed; top: 0; left: 0; bottom: 0; width: var(--sidebar-w);
  background: var(--bg-alt); border-right: 1px solid var(--border);
  display: flex; flex-direction: column; z-index: 900;
  transition: transform .25s ease;
}

.brand {
  display: flex; align-items: center; gap: 10px;
  padding: 20px 20px 16px; border-bottom: 1px solid var(--border);
}
.brand-mark {
  width: 34px; height: 34px; border-radius: 9px;
  background: linear-gradient(135deg, var(--orange), #c85c00);
  display: flex; align-items: center; justify-content: center;
  font-weight: 800; font-size: 15px; color: #100900;
  box-shadow: 0 4px 14px rgba(242, 138, 30, 0.35);
}
.brand-text { display: flex; flex-direction: column; line-height: 1.15; }
.brand-text strong { font-size: 14.5px; letter-spacing: -.01em; }
.brand-text span { font-size: 11px; color: var(--text-faint); text-transform: uppercase; letter-spacing: .08em; }

#nav-links {
  flex: 1; overflow-y: auto; padding: 14px 10px 20px;
}
.nav-group { margin-bottom: 4px; }
.nav-group-label {
  font-size: 10.5px; text-transform: uppercase; letter-spacing: .1em;
  color: var(--text-faint); padding: 14px 12px 6px;
}
.nav-link {
  display: flex; align-items: center; gap: 10px;
  padding: 8px 12px; border-radius: var(--radius-sm);
  font-size: 13.5px; color: var(--text-dim); cursor: pointer;
  border-left: 2px solid transparent; margin: 1px 0;
}
.nav-link .ico { width: 16px; text-align: center; opacity: .8; font-size: 13px; }
.nav-link:hover { background: var(--surface); color: var(--text); }
.nav-link.active {
  background: var(--orange-dim); color: var(--orange-strong);
  border-left-color: var(--orange);
}
.nav-progress-dot {
  margin-left: auto; width: 6px; height: 6px; border-radius: 50%;
  background: var(--text-faint); flex: none;
}
.nav-link.visited .nav-progress-dot { background: var(--green); }

.sidebar-foot {
  padding: 14px 20px 18px; border-top: 1px solid var(--border);
  font-size: 11.5px; color: var(--text-faint);
}
.sidebar-foot .progress-track {
  height: 5px; border-radius: 3px; background: var(--surface-2); overflow: hidden; margin-top: 8px;
}
.sidebar-foot .progress-fill {
  height: 100%; width: 0%; background: linear-gradient(90deg, var(--orange), var(--cyan));
  transition: width .3s ease;
}

#menu-toggle {
  display: none; position: fixed; top: 14px; left: 14px; z-index: 1100;
  width: 40px; height: 40px; border-radius: 10px; background: var(--surface);
  border: 1px solid var(--border); color: var(--text); align-items: center; justify-content: center;
  cursor: pointer;
}

/* -------------------------------------------------------------------- */
/* Main layout                                                          */
/* -------------------------------------------------------------------- */
#main {
  margin-left: var(--sidebar-w);
  min-height: 100vh;
}

.section {
  padding: 90px 56px 70px;
  max-width: 1180px;
  border-bottom: 1px solid var(--border);
}
.section:last-of-type { border-bottom: none; }

.section-kicker {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 11.5px; text-transform: uppercase; letter-spacing: .12em;
  color: var(--cyan); background: var(--cyan-dim);
  padding: 5px 11px; border-radius: 100px; margin-bottom: 16px; font-weight: 600;
}
.section h2 { font-size: clamp(26px, 3.2vw, 38px); margin-bottom: 10px; }
.section .lede { font-size: 16.5px; color: var(--text-dim); max-width: 760px; margin-bottom: 36px; }

.reveal { opacity: 0; transform: translateY(18px); transition: opacity .6s ease, transform .6s ease; }
.reveal.in { opacity: 1; transform: translateY(0); }

/* -------------------------------------------------------------------- */
/* Hero                                                                  */
/* -------------------------------------------------------------------- */
#hero {
  position: relative; padding: 0; height: 100vh; min-height: 640px;
  display: flex; align-items: center; overflow: hidden; border-bottom: 1px solid var(--border);
}
#hero-canvas { position: absolute; inset: 0; z-index: 0; opacity: .8; }
#hero::after {
  content: ""; position: absolute; inset: 0;
  background: radial-gradient(ellipse at 30% 40%, transparent 0%, var(--bg) 78%);
  pointer-events: none;
}
.hero-inner { position: relative; z-index: 2; padding: 0 56px; max-width: 880px; }
.hero-badge {
  display: inline-flex; align-items: center; gap: 8px; font-size: 12.5px;
  color: var(--orange-strong); background: var(--orange-dim); border: 1px solid rgba(242,138,30,.25);
  padding: 6px 14px; border-radius: 100px; margin-bottom: 22px; font-weight: 600;
}
.hero-badge .dot { width: 6px; height: 6px; border-radius: 50%; background: var(--green); box-shadow: 0 0 0 3px var(--green-dim); }
#hero h1 { font-size: clamp(36px, 6vw, 64px); line-height: 1.05; margin-bottom: 20px; }
#hero h1 em { font-style: normal; color: var(--orange-strong); }
#hero .lede { font-size: 18px; max-width: 620px; margin-bottom: 34px; }
.hero-cta { display: flex; gap: 14px; flex-wrap: wrap; margin-bottom: 54px; }

.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 12px 22px; border-radius: 10px; font-weight: 600; font-size: 14.5px;
  cursor: pointer; border: 1px solid transparent; transition: transform .15s ease, box-shadow .15s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn-primary { background: linear-gradient(135deg, var(--orange-strong), #d9660b); color: #150900; box-shadow: 0 10px 26px rgba(242,138,30,.28); }
.btn-ghost { background: var(--surface); border-color: var(--border-strong); color: var(--text); }
.btn-ghost:hover { border-color: var(--cyan); color: var(--cyan); }
.btn-sm { padding: 7px 14px; font-size: 12.5px; border-radius: 8px; }

.hero-stats { display: flex; gap: 36px; flex-wrap: wrap; }
.hero-stat strong { display: block; font-size: 24px; color: var(--text); }
.hero-stat span { font-size: 12px; color: var(--text-faint); text-transform: uppercase; letter-spacing: .06em; }

.scroll-cue {
  position: absolute; bottom: 26px; left: 56px; z-index: 2;
  display: flex; align-items: center; gap: 10px; font-size: 12px; color: var(--text-faint);
}
.scroll-cue .line { width: 1px; height: 26px; background: linear-gradient(var(--text-faint), transparent); }

/* -------------------------------------------------------------------- */
/* Cards & grids                                                        */
/* -------------------------------------------------------------------- */
.grid { display: grid; gap: 18px; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }

.card {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 22px; transition: border-color .2s ease, transform .2s ease;
}
.card:hover { border-color: var(--border-strong); }
.card h3 { font-size: 16px; margin-bottom: 8px; display: flex; align-items: center; gap: 9px; }
.card p { font-size: 13.8px; margin-bottom: 0; }
.card .icon-badge {
  width: 30px; height: 30px; border-radius: 8px; display: flex; align-items: center; justify-content: center;
  font-size: 15px; flex: none;
}

.icon-badge.o { background: var(--orange-dim); color: var(--orange-strong); }
.icon-badge.c { background: var(--cyan-dim); color: var(--cyan); }
.icon-badge.g { background: var(--green-dim); color: var(--green); }
.icon-badge.a { background: var(--amber-dim); color: var(--amber); }
.icon-badge.r { background: var(--red-dim); color: var(--red); }

.tag {
  display: inline-block; font-size: 11px; font-weight: 600; padding: 3px 9px; border-radius: 100px;
  background: var(--surface-2); color: var(--text-dim); margin: 0 6px 6px 0; border: 1px solid var(--border);
}

/* -------------------------------------------------------------------- */
/* Tables                                                                */
/* -------------------------------------------------------------------- */
.table-wrap { overflow-x: auto; border: 1px solid var(--border); border-radius: var(--radius); }
table { width: 100%; border-collapse: collapse; font-size: 13.6px; min-width: 560px; }
th, td { text-align: left; padding: 11px 16px; border-bottom: 1px solid var(--border); vertical-align: top; }
thead th { background: var(--surface); color: var(--text-faint); text-transform: uppercase; font-size: 11px; letter-spacing: .06em; }
tbody tr:hover { background: var(--surface); }
tbody tr:last-child td { border-bottom: none; }
td.good { color: var(--green); }
td.bad { color: var(--red); }
td.mid { color: var(--amber); }

/* -------------------------------------------------------------------- */
/* Comparison: VM vs Container                                          */
/* -------------------------------------------------------------------- */
.vs-wrap { display: grid; grid-template-columns: 1fr auto 1fr; gap: 20px; align-items: start; }
.vs-col { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 24px; }
.vs-col h3 { font-size: 18px; margin-bottom: 4px; }
.vs-col .sub { font-size: 12.5px; color: var(--text-faint); margin-bottom: 16px; }
.vs-col ul { margin: 0; padding-left: 0; list-style: none; }
.vs-col li { font-size: 13.6px; color: var(--text-dim); padding: 7px 0; border-top: 1px solid var(--border); display: flex; gap: 8px; }
.vs-col li:first-child { border-top: none; }
.vs-divider {
  display: flex; align-items: center; justify-content: center; align-self: center;
  width: 44px; height: 44px; border-radius: 50%; background: var(--surface-2);
  border: 1px solid var(--border-strong); font-size: 11px; font-weight: 700; color: var(--text-faint);
}

/* -------------------------------------------------------------------- */
/* Diagram / simulator panels                                           */
/* -------------------------------------------------------------------- */
.panel {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
  overflow: hidden; margin-top: 10px;
}
.panel-head {
  display: flex; align-items: center; justify-content: space-between;
  padding: 12px 18px; border-bottom: 1px solid var(--border); background: var(--bg-alt);
}
.panel-head .dots { display: flex; gap: 6px; }
.panel-head .dots span { width: 10px; height: 10px; border-radius: 50%; }
.panel-head .dots span:nth-child(1) { background: #f2544a; }
.panel-head .dots span:nth-child(2) { background: #f5b83d; }
.panel-head .dots span:nth-child(3) { background: #33d17a; }
.panel-title { font-size: 12.5px; color: var(--text-faint); font-family: var(--mono); }
.panel-body { padding: 20px; }

#arch-diagram { width: 100%; height: 460px; }
#arch-info {
  margin-top: 14px; padding: 14px 16px; background: var(--bg-alt); border-radius: var(--radius-sm);
  border: 1px solid var(--border); font-size: 13.5px; color: var(--text-dim); min-height: 46px;
}
#arch-info strong { color: var(--text); }

.node-box { cursor: pointer; }
.node-box rect { transition: filter .15s ease, stroke-width .15s ease; }
.node-box:hover rect { filter: brightness(1.25); }
.node-box text { fill: var(--text); font-size: 11.5px; font-family: var(--sans); pointer-events: none; }
.node-box .sub-label { fill: var(--text-faint); font-size: 9.5px; }
.link-line { stroke: var(--border-strong); stroke-width: 1.4; fill: none; }
.layer-label { fill: var(--text-faint); font-size: 10px; text-transform: uppercase; letter-spacing: .08em; font-family: var(--sans); }

/* -------------------------------------------------------------------- */
/* VM dashboard simulator                                               */
/* -------------------------------------------------------------------- */
.sim-shell { display: grid; grid-template-columns: 220px 1fr; min-height: 420px; }
.sim-tree { border-right: 1px solid var(--border); padding: 12px 8px; background: var(--bg-alt); overflow-y: auto; max-height: 480px; }
.sim-tree-item {
  display: flex; align-items: center; gap: 8px; padding: 7px 10px; border-radius: 7px;
  font-size: 12.8px; cursor: pointer; color: var(--text-dim); margin-bottom: 2px;
}
.sim-tree-item .depth1 { padding-left: 18px; }
.sim-tree-item .depth2 { padding-left: 34px; }
.sim-tree-item:hover { background: var(--surface); }
.sim-tree-item.active { background: var(--orange-dim); color: var(--orange-strong); }
.sim-status-dot { width: 7px; height: 7px; border-radius: 50%; flex: none; }
.sim-status-dot.running { background: var(--green); box-shadow: 0 0 0 3px var(--green-dim); }
.sim-status-dot.stopped { background: var(--text-faint); }
.sim-status-dot.paused { background: var(--amber); }

.sim-main { padding: 20px 24px; }
.sim-toolbar { display: flex; gap: 8px; margin-bottom: 18px; flex-wrap: wrap; }
.sim-toolbar button {
  font-family: var(--sans); font-size: 12.5px; font-weight: 600; padding: 7px 13px; border-radius: 8px;
  border: 1px solid var(--border-strong); background: var(--surface-2); color: var(--text); cursor: pointer;
}
.sim-toolbar button:hover { border-color: var(--cyan); }
.sim-toolbar button:disabled { opacity: .35; cursor: not-allowed; }
.sim-toolbar button.danger:hover { border-color: var(--red); color: var(--red); }
.sim-metrics { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin-bottom: 18px; }
.sim-metric { background: var(--bg-alt); border: 1px solid var(--border); border-radius: var(--radius-sm); padding: 14px; }
.sim-metric canvas { width: 100% !important; height: 70px !important; margin-top: 6px; }
.sim-metric .label { font-size: 11px; color: var(--text-faint); text-transform: uppercase; letter-spacing: .05em; }
.sim-metric .value { font-size: 20px; font-weight: 700; margin-top: 2px; }
.sim-log {
  font-family: var(--mono); font-size: 12px; background: var(--bg-alt); border: 1px solid var(--border);
  border-radius: var(--radius-sm); padding: 12px 14px; height: 130px; overflow-y: auto; color: var(--text-dim);
}
.sim-log div { padding: 2px 0; }
.sim-log .ts { color: var(--text-faint); margin-right: 8px; }

/* -------------------------------------------------------------------- */
/* Network builder                                                      */
/* -------------------------------------------------------------------- */
.netb-wrap { display: grid; grid-template-columns: 220px 1fr; gap: 0; }
.netb-palette { border-right: 1px solid var(--border); padding: 16px; background: var(--bg-alt); }
.netb-palette h4 { font-size: 11px; text-transform: uppercase; color: var(--text-faint); letter-spacing: .08em; margin-bottom: 10px; }
.netb-item {
  display: flex; align-items: center; gap: 8px; padding: 9px 10px; border-radius: 8px;
  background: var(--surface-2); border: 1px solid var(--border); font-size: 12.5px; margin-bottom: 8px; cursor: grab;
}
.netb-canvas-wrap { padding: 18px; }
#net-canvas { width: 100%; height: 380px; background: var(--bg-alt); border: 1px dashed var(--border-strong); border-radius: var(--radius-sm); }
.netb-hint { font-size: 12px; color: var(--text-faint); margin-top: 10px; }

/* -------------------------------------------------------------------- */
/* Cluster / quorum simulator                                           */
/* -------------------------------------------------------------------- */
.cluster-wrap { display: grid; grid-template-columns: 1.3fr 1fr; gap: 22px; }
.cluster-ring { display: flex; flex-wrap: wrap; gap: 16px; justify-content: center; padding: 10px; }
.cluster-node {
  width: 118px; padding: 14px 10px; border-radius: 12px; text-align: center; cursor: pointer;
  background: var(--bg-alt); border: 1.5px solid var(--border-strong); transition: all .2s ease; user-select: none;
}
.cluster-node .n-dot { width: 10px; height: 10px; border-radius: 50%; margin: 0 auto 8px; background: var(--green); box-shadow: 0 0 0 4px var(--green-dim); }
.cluster-node.offline { opacity: .4; border-style: dashed; }
.cluster-node.offline .n-dot { background: var(--text-faint); box-shadow: none; }
.cluster-node .n-name { font-size: 12.5px; font-weight: 700; }
.cluster-node .n-role { font-size: 10.5px; color: var(--text-faint); margin-top: 3px; }
.quorum-readout { background: var(--bg-alt); border: 1px solid var(--border); border-radius: var(--radius-sm); padding: 18px; }
.quorum-readout .qstat { font-size: 22px; font-weight: 800; margin-bottom: 4px; }
.quorum-readout .qstat.ok { color: var(--green); }
.quorum-readout .qstat.bad { color: var(--red); }
.quorum-bar-track { height: 8px; background: var(--surface-2); border-radius: 4px; overflow: hidden; margin: 10px 0; }
.quorum-bar-fill { height: 100%; background: linear-gradient(90deg, var(--cyan), var(--green)); transition: width .3s ease; }
.ha-log { font-family: var(--mono); font-size: 12px; color: var(--text-dim); margin-top: 10px; max-height: 160px; overflow-y: auto; }
.ha-log div { padding: 3px 0; border-top: 1px solid var(--border); }
.ha-log div:first-child { border-top: none; }

/* -------------------------------------------------------------------- */
/* Terminal                                                              */
/* -------------------------------------------------------------------- */
#terminal-container { height: 420px; padding: 10px; background: #0c0e12; }
.term-hints { display: flex; gap: 8px; flex-wrap: wrap; padding: 12px 18px; border-top: 1px solid var(--border); background: var(--bg-alt); }
.term-hint {
  font-family: var(--mono); font-size: 11.5px; padding: 5px 10px; border-radius: 6px;
  background: var(--surface-2); border: 1px solid var(--border); color: var(--cyan); cursor: pointer;
}
.term-hint:hover { border-color: var(--cyan); }

/* -------------------------------------------------------------------- */
/* CLI cheat sheet                                                       */
/* -------------------------------------------------------------------- */
.cheat-tabs { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 18px; }
.cheat-tab {
  padding: 7px 14px; border-radius: 8px; font-size: 12.8px; font-weight: 600; cursor: pointer;
  background: var(--surface); border: 1px solid var(--border); color: var(--text-dim);
}
.cheat-tab.active { background: var(--orange-dim); color: var(--orange-strong); border-color: rgba(242,138,30,.3); }
.cheat-group { display: none; }
.cheat-group.active { display: block; }
.cheat-row {
  display: flex; justify-content: space-between; align-items: center; gap: 16px;
  padding: 12px 16px; border-bottom: 1px solid var(--border);
}
.cheat-row:last-child { border-bottom: none; }
.cheat-cmd { font-family: var(--mono); font-size: 13px; color: var(--orange-strong); }
.cheat-desc { font-size: 12.8px; color: var(--text-dim); text-align: right; flex: 1; margin-left: 20px; }
.copy-btn {
  flex: none; font-size: 11px; padding: 5px 10px; border-radius: 6px; border: 1px solid var(--border-strong);
  background: var(--surface-2); color: var(--text-faint); cursor: pointer;
}
.copy-btn:hover { color: var(--cyan); border-color: var(--cyan); }
.copy-btn.copied { color: var(--green); border-color: var(--green); }

/* -------------------------------------------------------------------- */
/* Glossary                                                              */
/* -------------------------------------------------------------------- */
#glossary-search {
  width: 100%; max-width: 420px; padding: 11px 16px; border-radius: 10px; margin-bottom: 20px;
  background: var(--surface); border: 1px solid var(--border-strong); color: var(--text); font-size: 14px;
}
#glossary-search:focus { outline: none; border-color: var(--cyan); }
.glossary-item { padding: 14px 0; border-bottom: 1px solid var(--border); }
.glossary-item dt { font-weight: 700; color: var(--orange-strong); font-family: var(--mono); font-size: 13.5px; margin-bottom: 4px; }
.glossary-item dd { margin: 0; font-size: 13.6px; color: var(--text-dim); }

/* -------------------------------------------------------------------- */
/* Quiz                                                                  */
/* -------------------------------------------------------------------- */
.quiz-card { max-width: 640px; }
.quiz-progress { font-size: 12px; color: var(--text-faint); margin-bottom: 10px; }
.quiz-q { font-size: 17px; font-weight: 600; margin-bottom: 18px; }
.quiz-opts { display: flex; flex-direction: column; gap: 10px; margin-bottom: 18px; }
.quiz-opt {
  text-align: left; padding: 13px 16px; border-radius: 10px; border: 1px solid var(--border-strong);
  background: var(--surface); color: var(--text); font-size: 13.8px; cursor: pointer;
}
.quiz-opt:hover { border-color: var(--cyan); }
.quiz-opt.correct { border-color: var(--green); background: var(--green-dim); color: var(--green); }
.quiz-opt.wrong { border-color: var(--red); background: var(--red-dim); color: var(--red); }
.quiz-opt:disabled { cursor: default; }
.quiz-explain { font-size: 13px; color: var(--text-dim); background: var(--bg-alt); border-radius: var(--radius-sm); padding: 12px 14px; border: 1px solid var(--border); margin-bottom: 16px; display: none; }
.quiz-explain.show { display: block; }
.quiz-score { font-size: 13px; color: var(--text-faint); }

/* -------------------------------------------------------------------- */
/* Footer                                                                */
/* -------------------------------------------------------------------- */
#footer {
  padding: 40px 56px 60px; max-width: 1180px; color: var(--text-faint); font-size: 12.8px;
}
#footer a.accent { color: var(--orange-strong); }
.footer-links { display: flex; gap: 18px; flex-wrap: wrap; margin: 14px 0; }

/* -------------------------------------------------------------------- */
/* Responsive                                                            */
/* -------------------------------------------------------------------- */
@media (max-width: 1000px) {
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
  .cluster-wrap { grid-template-columns: 1fr; }
  .vs-wrap { grid-template-columns: 1fr; }
  .vs-divider { display: none; }
}

@media (max-width: 760px) {
  :root { --sidebar-w: 250px; }
  #sidebar { transform: translateX(-100%); box-shadow: var(--shadow); }
  #sidebar.open { transform: translateX(0); }
  #main { margin-left: 0; }
  #menu-toggle { display: flex; }
  .section { padding: 80px 20px 50px; }
  .hero-inner { padding: 0 20px; }
  .scroll-cue { left: 20px; }
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
  .sim-shell, .netb-wrap { grid-template-columns: 1fr; }
  .sim-tree { max-height: 180px; }
  .sim-metrics { grid-template-columns: 1fr; }
  #footer, .section { max-width: 100%; }
}
