/* ============== Reset / Base ============== */
* { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --bg: #0a0e1a;
  --bg-2: #0f1424;
  --bg-card: #141a2e;
  --bg-card-2: #1a2140;
  --border: #232a45;
  --border-bright: #2f3a5f;
  --text: #e5e7eb;
  --text-dim: #9ba3b9;
  --text-faint: #6b7290;
  --accent: #7c3aed;     /* violet */
  --accent-2: #06b6d4;   /* cyan */
  --accent-3: #f59e0b;   /* amber */
  --accent-pink: #ec4899;
  --green: #10b981;
  --red: #ef4444;
  --grad: linear-gradient(135deg, #a78bfa 0%, #06b6d4 100%);
  --grad2: linear-gradient(135deg, #f59e0b 0%, #ec4899 100%);
  --shadow: 0 8px 24px rgba(0,0,0,0.4);
  --shadow-glow: 0 0 40px rgba(124, 58, 237, 0.15);
  --mono: 'JetBrains Mono', 'Fira Code', ui-monospace, monospace;
}

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: 'Inter', 'Noto Sans SC', system-ui, sans-serif;
  line-height: 1.7;
  font-size: 15.5px;
  min-height: 100vh;
  overflow-x: hidden;
}

a { color: var(--accent-2); text-decoration: none; transition: opacity 0.2s; }
a:hover { opacity: 0.75; }

code { font-family: var(--mono); background: rgba(124,58,237,0.12); padding: 1px 6px; border-radius: 4px; font-size: 0.88em; color: #c4b5fd; }
pre code { background: none; padding: 0; color: inherit; }

/* ============== Layout ============== */
.sidenav {
  position: fixed;
  top: 0; left: 0;
  width: 240px;
  height: 100vh;
  background: linear-gradient(180deg, #0c1020 0%, #0a0e1a 100%);
  border-right: 1px solid var(--border);
  padding: 28px 22px;
  display: flex;
  flex-direction: column;
  z-index: 100;
  overflow-y: auto;
}

.sidenav .logo {
  display: flex; align-items: center; gap: 10px;
  margin-bottom: 32px;
}
.logo-mark {
  width: 36px; height: 36px;
  background: var(--grad);
  border-radius: 9px;
  display: flex; align-items: center; justify-content: center;
  font-weight: 700; font-size: 17px; color: #fff;
  box-shadow: 0 4px 16px rgba(124,58,237,0.4);
}
.logo-mark sub { font-size: 0.6em; margin-left: 1px; }
.logo-text { font-weight: 600; font-size: 15px; letter-spacing: 0.3px; }

.sidenav nav { display: flex; flex-direction: column; gap: 2px; flex: 1; }
.nav-link {
  color: var(--text-dim);
  font-size: 13.5px;
  padding: 8px 10px;
  border-radius: 6px;
  display: flex; align-items: center; gap: 10px;
  transition: all 0.15s;
  border-left: 2px solid transparent;
}
.nav-link .num { color: var(--text-faint); font-family: var(--mono); font-size: 11px; }
.nav-link:hover { background: rgba(124,58,237,0.08); color: var(--text); opacity: 1; }
.nav-link.active {
  background: rgba(124,58,237,0.13);
  color: #fff;
  border-left-color: var(--accent);
}
.nav-link.active .num { color: var(--accent-2); }

.nav-foot {
  padding-top: 18px;
  border-top: 1px solid var(--border);
  margin-top: 16px;
}
.nav-foot small { color: var(--text-faint); font-size: 11px; }
.progress-track {
  height: 3px; background: var(--border);
  border-radius: 99px; margin-bottom: 8px; overflow: hidden;
}
.progress-bar {
  height: 100%;
  width: 0%;
  background: var(--grad);
  border-radius: 99px;
  transition: width 0.15s ease-out;
}

.content {
  margin-left: 240px;
  max-width: 1100px;
  padding: 0 56px;
}

/* ============== Section base ============== */
.section {
  min-height: 100vh;
  padding: 100px 0 80px;
  position: relative;
}
.sec-head { margin-bottom: 40px; }
.kicker {
  display: inline-block;
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 2.5px;
  color: var(--accent-2);
  padding: 4px 10px;
  border: 1px solid rgba(6,182,212,0.3);
  border-radius: 4px;
  margin-bottom: 18px;
}
h1 {
  font-size: clamp(34px, 5vw, 58px);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.15;
  margin-bottom: 24px;
}
h2 {
  font-size: clamp(28px, 3.5vw, 40px);
  font-weight: 700;
  letter-spacing: -0.015em;
  line-height: 1.25;
}
h4 {
  font-size: 17px;
  font-weight: 600;
  color: #fff;
  margin-bottom: 12px;
  letter-spacing: -0.005em;
}
p { color: var(--text-dim); margin-bottom: 14px; }
strong, b { color: #fff; font-weight: 600; }
em { color: var(--accent-3); font-style: normal; }
ol, ul { padding-left: 22px; color: var(--text-dim); margin-bottom: 14px; }
li { margin-bottom: 6px; }

.grad { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.grad2 { background: var(--grad2); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hl { color: var(--accent-3); font-weight: 600; }

/* ============== Hero ============== */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: 60px 0;
  overflow: hidden;
}
.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  opacity: 0.5;
}
#heroCanvas { width: 100%; height: 100%; display: block; }
.hero-inner { position: relative; z-index: 1; }

.hero .lead {
  font-size: 19px;
  line-height: 1.7;
  color: var(--text-dim);
  margin-bottom: 32px;
  max-width: 760px;
}
.hero-cta { display: flex; gap: 14px; margin-bottom: 64px; }
.btn {
  padding: 13px 28px;
  border-radius: 8px;
  font-weight: 600;
  font-size: 14px;
  letter-spacing: 0.3px;
  transition: transform 0.15s, box-shadow 0.15s;
  display: inline-flex; align-items: center; gap: 6px;
}
.btn.primary {
  background: var(--grad);
  color: #fff;
  box-shadow: 0 6px 20px rgba(124,58,237,0.35);
}
.btn.primary:hover { transform: translateY(-2px); box-shadow: 0 10px 28px rgba(124,58,237,0.5); opacity: 1; }
.btn.ghost {
  border: 1px solid var(--border-bright);
  color: var(--text);
  background: rgba(255,255,255,0.02);
}
.btn.ghost:hover { background: rgba(255,255,255,0.05); opacity: 1; }

.hero-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  max-width: 800px;
  margin-bottom: 24px;
}
.hero-stats > div {
  padding: 18px 20px;
  background: rgba(20, 26, 46, 0.6);
  border: 1px solid var(--border);
  border-radius: 10px;
  backdrop-filter: blur(8px);
}
.hero-stats b {
  display: block;
  font-size: 26px;
  background: var(--grad);
  -webkit-background-clip: text; background-clip: text; color: transparent;
  font-weight: 700;
  margin-bottom: 4px;
}
.hero-stats span { color: var(--text-faint); font-size: 12px; }
.hero-foot { color: var(--text-faint); font-size: 12px; }

/* ============== Two-col layout ============== */
.two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 36px;
  align-items: start;
  margin-bottom: 28px;
}
.two-col > div { min-width: 0; }

/* ============== Cards ============== */
.card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 24px;
  position: relative;
  transition: border-color 0.15s, transform 0.15s;
}
.card.demo {
  border-color: rgba(124,58,237,0.3);
  background: linear-gradient(180deg, rgba(124,58,237,0.05) 0%, var(--bg-card) 100%);
}
.demo-hint {
  font-size: 13px;
  color: var(--text-faint);
  background: rgba(6,182,212,0.06);
  padding: 8px 12px;
  border-left: 2px solid var(--accent-2);
  border-radius: 0 6px 6px 0;
  margin-bottom: 18px;
}

/* ============== Section 01 — pipeline ============== */
.pipeline .pipe {
  display: flex; align-items: center; justify-content: center;
  gap: 8px;
  flex-wrap: wrap;
  margin: 20px 0;
}
.pipe-stage {
  padding: 16px 14px;
  border-radius: 10px;
  font-weight: 600;
  text-align: center;
  font-size: 14px;
  min-width: 100px;
}
.pipe-stage small { display: block; font-weight: 400; color: var(--text-faint); font-size: 11px; margin-top: 4px; }
.pipe-stage.pre { background: rgba(6,182,212,0.13); border: 1px solid rgba(6,182,212,0.3); color: #67e8f9; }
.pipe-stage.sft { background: rgba(124,58,237,0.18); border: 1px solid rgba(124,58,237,0.4); color: #c4b5fd; }
.pipe-stage.rl  { background: rgba(245,158,11,0.13); border: 1px solid rgba(245,158,11,0.3); color: #fcd34d; }
.pipe-stage.highlight { box-shadow: 0 0 24px rgba(124,58,237,0.3); transform: scale(1.05); }
.arrow { color: var(--text-faint); font-size: 20px; }
.note { font-size: 13px; color: var(--text-faint); margin-top: 12px; }

.story { list-style: decimal; padding-left: 22px; }
.story li { padding-left: 4px; }

/* ============== Section 02 — Loss mask demo ============== */
.loss-mask {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  padding: 16px;
  background: var(--bg-2);
  border-radius: 8px;
  margin-bottom: 16px;
  font-family: var(--mono);
  font-size: 13.5px;
  line-height: 2;
}
.lm-tok {
  padding: 2px 7px;
  border-radius: 4px;
  cursor: pointer;
  transition: all 0.15s;
  user-select: none;
  position: relative;
}
.lm-tok.prompt {
  background: rgba(155, 163, 185, 0.12);
  color: var(--text-faint);
  text-decoration: line-through;
  text-decoration-color: rgba(155,163,185,0.4);
}
.lm-tok.response {
  background: rgba(16, 185, 129, 0.18);
  color: #6ee7b7;
  font-weight: 500;
}
.lm-tok:hover {
  outline: 1px solid var(--accent-2);
  transform: translateY(-1px);
  z-index: 2;
}
.lm-label {
  display: inline-block;
  font-family: 'Inter', sans-serif;
  font-size: 11px;
  letter-spacing: 1px;
  padding: 2px 8px;
  border-radius: 4px;
  margin-right: 4px;
  vertical-align: middle;
}
.lm-label.user { background: rgba(155,163,185,0.18); color: var(--text-dim); }
.lm-label.asst { background: rgba(16,185,129,0.2); color: #6ee7b7; }

.mini-stat {
  display: flex;
  gap: 18px;
  font-size: 13px;
  color: var(--text-dim);
  margin-bottom: 12px;
}
.mini-stat .dot {
  display: inline-block;
  width: 9px; height: 9px;
  border-radius: 50%;
  margin-right: 6px;
  vertical-align: middle;
}
.mini-stat .green { background: var(--green); }
.mini-stat .gray { background: var(--text-faint); }

.codelet {
  background: #06090e;
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 12px 14px;
  font-family: var(--mono);
  font-size: 12.5px;
  line-height: 1.6;
  overflow-x: auto;
}
.codelet code { background: none; padding: 0; color: var(--text); }

.data-format {
  margin-top: 24px;
  padding: 22px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 12px;
}
pre.json {
  background: #06090e;
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 16px 18px;
  font-family: var(--mono);
  font-size: 13px;
  line-height: 1.7;
  overflow-x: auto;
  margin: 14px 0;
}
.j-key { color: #c4b5fd; }
.j-str { color: #6ee7b7; }
.c-key { color: #f472b6; }
.c-fn { color: #60a5fa; }
.c-str { color: #6ee7b7; }
.c-num { color: #fcd34d; }
.c-com { color: var(--text-faint); font-style: italic; }

/* ============== Section 03 — bar stack ============== */
.slider-label {
  display: block;
  font-size: 13px;
  color: var(--text-dim);
  margin: 14px 0 6px;
}
.slider-label b { color: var(--accent-2); font-family: var(--mono); }
.slider-label select {
  background: var(--bg-2);
  border: 1px solid var(--border);
  color: var(--text);
  border-radius: 6px;
  padding: 6px 10px;
  font-size: 13px;
  margin-left: 8px;
  font-family: inherit;
}
input[type="range"] {
  -webkit-appearance: none;
  appearance: none;
  width: 100%;
  height: 4px;
  background: var(--border);
  border-radius: 99px;
  outline: none;
  margin-top: 8px;
}
input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 18px; height: 18px;
  background: var(--grad);
  border-radius: 50%;
  cursor: pointer;
  box-shadow: 0 2px 8px rgba(124,58,237,0.5);
  transition: transform 0.15s;
}
input[type="range"]::-webkit-slider-thumb:hover { transform: scale(1.15); }
input[type="range"]::-moz-range-thumb {
  width: 18px; height: 18px;
  background: #a78bfa;
  border: none;
  border-radius: 50%;
  cursor: pointer;
}

.bar-stack {
  display: flex;
  height: 38px;
  border-radius: 7px;
  overflow: hidden;
  margin: 20px 0 12px;
  background: var(--bg-2);
  border: 1px solid var(--border);
}
.bar {
  height: 100%;
  display: flex; align-items: center; justify-content: center;
  font-size: 11.5px;
  color: #fff;
  font-weight: 500;
  transition: flex-basis 0.3s ease;
  overflow: hidden;
  white-space: nowrap;
  min-width: 0;
}
.bar.weights { background: linear-gradient(135deg, #06b6d4, #0891b2); }
.bar.grads   { background: linear-gradient(135deg, #7c3aed, #5b21b6); }
.bar.opt     { background: linear-gradient(135deg, #f59e0b, #b45309); }
.bar.act     { background: linear-gradient(135deg, #ec4899, #9d174d); }
.bar span { padding: 0 6px; text-shadow: 0 1px 2px rgba(0,0,0,0.4); }

.cost-stat {
  font-size: 15px;
  color: var(--text);
  padding: 12px 16px;
  background: var(--bg-2);
  border-radius: 8px;
  border: 1px solid var(--border);
  margin-top: 8px;
}
.cost-stat b { color: var(--accent-3); font-family: var(--mono); font-size: 18px; }
.cost-stat.highlight-stat b { color: #6ee7b7; font-size: 20px; }
#costFit { font-size: 12px; color: var(--text-faint); margin-left: 12px; }
#costFit.ok { color: var(--green); }
#costFit.bad { color: var(--red); }

/* ============== Section 04 — rank demo ============== */
.rank-demo {
  display: flex;
  justify-content: space-around;
  gap: 12px;
  margin: 16px 0;
}
.rank-side {
  display: flex; flex-direction: column; align-items: center; gap: 8px;
}
.rank-side canvas {
  width: 128px; height: 128px;
  background: #000;
  border-radius: 6px;
  image-rendering: pixelated;
  border: 1px solid var(--border);
}
.rank-side small { color: var(--text-faint); font-size: 11.5px; }

blockquote {
  border-left: 3px solid var(--accent);
  padding: 10px 18px;
  margin: 14px 0;
  color: var(--text);
  background: rgba(124,58,237,0.06);
  border-radius: 0 6px 6px 0;
  font-style: italic;
}

/* ============== Section 05 — LoRA eq ============== */
.lora-eq {
  background: linear-gradient(180deg, rgba(124,58,237,0.08) 0%, var(--bg-card) 100%);
  border: 1px solid var(--border-bright);
  border-radius: 14px;
  padding: 32px 28px;
  margin-bottom: 32px;
  text-align: center;
}
.lora-eq mjx-container { font-size: 130% !important; margin: 8px 0 18px; }
.eq-legend {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 8px 18px;
  text-align: left;
  font-size: 13px;
  color: var(--text-dim);
  margin-top: 14px;
}
.eq-legend span { padding-left: 14px; position: relative; }
.eq-legend span::before {
  content: '';
  position: absolute;
  left: 0; top: 8px;
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--accent);
}

.big-claim {
  font-size: 16px;
  background: rgba(245,158,11,0.08);
  border-left: 3px solid var(--accent-3);
  padding: 12px 16px;
  border-radius: 0 8px 8px 0;
  color: var(--text);
  margin: 14px 0 !important;
}

.param-vis { margin: 18px 0 14px; }
.param-row { display: flex; align-items: center; gap: 12px; margin-bottom: 10px; }
.param-row .lbl {
  width: 100px;
  font-size: 13px;
  color: var(--text-dim);
}
.param-bar {
  flex: 1;
  height: 30px;
  background: var(--bg-2);
  border-radius: 6px;
  border: 1px solid var(--border);
  position: relative;
  overflow: hidden;
}
.param-bar::before {
  content: '';
  position: absolute;
  inset: 0;
  width: var(--w, 0%);
  background: linear-gradient(90deg, transparent, currentColor);
  transition: width 0.4s;
}
.param-bar.full { color: rgba(239, 68, 68, 0.6); }
.param-bar.lora { color: rgba(16, 185, 129, 0.7); }
.param-bar span {
  position: relative;
  z-index: 1;
  display: block;
  padding: 4px 12px;
  font-family: var(--mono);
  font-size: 12px;
  color: #fff;
  text-shadow: 0 1px 2px rgba(0,0,0,0.6);
  line-height: 22px;
}

.matvis { margin-top: 24px; }
.shape-vis {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  padding: 24px 12px;
  background: var(--bg-2);
  border-radius: 10px;
  margin: 14px 0;
}
.mat {
  width: calc(var(--w) * 10px);
  height: calc(var(--h) * 10px);
  background: linear-gradient(135deg, rgba(124,58,237,0.3), rgba(6,182,212,0.3));
  border: 1px solid var(--border-bright);
  border-radius: 6px;
  display: flex; align-items: center; justify-content: center;
  font-size: 11px;
  font-family: var(--mono);
  text-align: center;
  color: var(--text);
  position: relative;
  flex-shrink: 0;
}
.mat span { padding: 4px; }
.mat.W0 { background: linear-gradient(135deg, rgba(155,163,185,0.18), rgba(155,163,185,0.08)); }
.mat.B  { background: linear-gradient(135deg, rgba(245,158,11,0.3), rgba(245,158,11,0.1)); border-color: rgba(245,158,11,0.5); }
.mat.A  { background: linear-gradient(135deg, rgba(236,72,153,0.3), rgba(236,72,153,0.1)); border-color: rgba(236,72,153,0.5); }
.plus, .times {
  font-size: 22px;
  color: var(--text-faint);
  font-weight: 300;
}

/* ============== Section 06 — flow ============== */
.flow-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}
.flow-card { font-size: 13.5px; }
.flow-card ul { font-size: 13px; margin-top: 12px; }
.flow-vis {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 24px 8px;
  margin: 12px 0;
  background: var(--bg-2);
  border-radius: 10px;
  min-height: 100px;
}
.block {
  padding: 14px 12px;
  border-radius: 8px;
  text-align: center;
  font-family: var(--mono);
  font-size: 13px;
  min-width: 56px;
}
.block small { display: block; font-size: 10px; margin-top: 4px; opacity: 0.8; font-family: 'Inter', sans-serif; }
.block.frozen   { background: rgba(6,182,212,0.15);  border: 1px solid rgba(6,182,212,0.4);  color: #67e8f9; }
.block.trainable{ background: rgba(245,158,11,0.18); border: 1px solid rgba(245,158,11,0.5); color: #fcd34d; animation: pulse 2.4s ease-in-out infinite; }
.block.adapt    { background: rgba(124,58,237,0.2);  border: 1px solid rgba(124,58,237,0.5); color: #c4b5fd; }
.block.merged-block { background: var(--grad); color: #fff; padding: 18px 22px; font-size: 13px; }

@keyframes pulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(245,158,11,0.4); }
  50%      { box-shadow: 0 0 0 8px rgba(245,158,11,0); }
}

/* ============== Section 07 — code ============== */
.code-tabs {
  display: flex;
  gap: 4px;
  margin-bottom: 0;
  border-bottom: 1px solid var(--border);
}
.tab {
  padding: 10px 18px;
  background: transparent;
  border: none;
  color: var(--text-dim);
  font-family: inherit;
  font-size: 13.5px;
  cursor: pointer;
  border-radius: 8px 8px 0 0;
  transition: all 0.15s;
  position: relative;
  bottom: -1px;
}
.tab:hover { color: var(--text); }
.tab.active {
  color: #fff;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-bottom-color: var(--bg-card);
}
.code-block {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 0 10px 10px 10px;
  padding: 20px 22px;
  font-family: var(--mono);
  font-size: 13px;
  line-height: 1.75;
  overflow-x: auto;
  margin-bottom: 12px;
}
.code-block.hidden { display: none; }
.code-block code { color: var(--text); background: none; padding: 0; }

/* ============== Section 08 — hyperparams ============== */
.hyper-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
.hyper-card { font-size: 13.5px; }
.hyper-card p { font-size: 13.5px; margin-bottom: 8px; }
.hyper-key {
  display: inline-block;
  background: var(--grad);
  color: #fff;
  font-family: var(--mono);
  padding: 1px 8px;
  border-radius: 4px;
  font-size: 13px;
  margin-right: 6px;
  vertical-align: middle;
}
.hyper-card .src { font-size: 11.5px; color: var(--text-faint); margin-top: 4px; }
.hyper-card.recipe pre {
  background: #06090e;
  border-radius: 6px;
  padding: 12px;
  font-family: var(--mono);
  font-size: 12.5px;
  line-height: 1.65;
  color: #c4b5fd;
  border: 1px solid var(--border);
}

/* ============== Section 09 — zoo ============== */
.zoo-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
.zoo-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 22px;
  position: relative;
  transition: all 0.2s;
  overflow: hidden;
}
.zoo-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0;
  width: 3px; height: 100%;
  background: var(--grad);
  opacity: 0.7;
}
.zoo-card:hover {
  transform: translateY(-3px);
  border-color: var(--border-bright);
  box-shadow: 0 12px 28px rgba(0,0,0,0.3);
}
.zoo-card h4 { margin-bottom: 4px; }
.zoo-year {
  font-family: var(--mono);
  font-size: 11px;
  color: var(--accent-2);
  display: block;
  margin-bottom: 10px;
}
.zoo-card p { font-size: 13.5px; }
.zoo-card a { font-size: 12.5px; color: var(--accent-3); }

/* ============== Section 10 — TLDR ============== */
.tldr {
  background: var(--grad);
  border-radius: 16px;
  padding: 38px 32px;
  margin-bottom: 28px;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.tldr::before {
  content: '';
  position: absolute;
  inset: 1px;
  background: var(--bg-card);
  border-radius: 15px;
  z-index: 0;
}
.big-quote {
  position: relative;
  z-index: 1;
  font-size: 19px;
  line-height: 1.75;
  color: var(--text);
}
.big-quote strong { color: #c4b5fd; }

.wrap-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}
.wrap-grid li { font-size: 14px; }
.wrap-grid .links { list-style: none; padding-left: 0; }
.wrap-grid .links li { padding-left: 18px; position: relative; margin-bottom: 8px; }
.wrap-grid .links li::before {
  content: '→';
  position: absolute;
  left: 0;
  color: var(--accent-2);
}

.page-foot {
  margin-top: 56px;
  padding: 32px 0;
  border-top: 1px solid var(--border);
  text-align: center;
}
.page-foot p { color: var(--text-faint); font-size: 13px; margin-bottom: 4px; }

/* ============== Responsive ============== */
@media (max-width: 980px) {
  .sidenav { width: 60px; padding: 16px 8px; }
  .logo-text, .nav-link span:not(.num), .nav-foot { display: none; }
  .nav-link { justify-content: center; padding: 8px; font-size: 11px; }
  .nav-link .num { font-size: 12px; }
  .content { margin-left: 60px; padding: 0 24px; }
  .two-col, .flow-grid, .hyper-grid, .zoo-grid, .wrap-grid {
    grid-template-columns: 1fr;
  }
  .hero-stats { grid-template-columns: repeat(2, 1fr); }
  .section { padding: 60px 0 40px; }
}

@media (max-width: 540px) {
  .content { padding: 0 16px; }
  h1 { font-size: 32px; }
  h2 { font-size: 24px; }
  .lora-eq { padding: 20px 14px; }
  .shape-vis { transform: scale(0.7); }
}
