/* trust.qodoonect.com — one stylesheet for the landing and the document pages.
   Served from 'self' (CSP style-src 'self': no <style> blocks, no style="" attributes).
   Palette: Group V8 (navy, cyan #00E5FF, violet, gold); light theme = the same hues as ink on paper. */

@font-face { font-family: "Inter"; font-style: normal; font-weight: 100 900; font-display: swap;
  src: url("../fonts/inter-latin-wght-normal.woff2") format("woff2-variations");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Inter"; font-style: normal; font-weight: 100 900; font-display: swap;
  src: url("../fonts/inter-latin-ext-wght-normal.woff2") format("woff2-variations");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "JetBrains Mono"; font-style: normal; font-weight: 100 800; font-display: swap;
  src: url("../fonts/jetbrains-mono-latin-wght-normal.woff2") format("woff2-variations");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "JetBrains Mono"; font-style: normal; font-weight: 100 800; font-display: swap;
  src: url("../fonts/jetbrains-mono-latin-ext-wght-normal.woff2") format("woff2-variations");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }

/* ---------- tokens ---------- */
:root, :root[data-theme="dark"] {
  color-scheme: dark;
  --bg: #04050A; --bg2: #0B0E22; --surface: #070913;
  --panel: rgba(3, 4, 10, 0.66); --panel-strong: rgba(3, 4, 10, 0.86);
  --ink: #F5F7FA; --muted: rgba(245, 247, 250, 0.76); --soft: rgba(245, 247, 250, 0.6);
  --cyan: #00E5FF; --cyan-soft: #8BEFFF; --violet: #8B5CF6; --gold: #F5C76A;
  --ok: #34D399; --warn: #F5C76A; --off: rgba(245, 247, 250, 0.6);
  --hair: rgba(0, 229, 255, 0.16); --hair-strong: rgba(0, 229, 255, 0.36);
  --btn-bg: #00E5FF; --btn-ink: #04050A; --btn-hover: #F5F7FA;
  --grid-line: rgba(0, 229, 255, 0.035); --star: rgba(255, 255, 255, 0.55); --star-tint: rgba(0, 229, 255, 0.3);
  --veil: rgba(4, 5, 10, 0.72); --focus: #8BEFFF;
  --glow: 0 0 30px rgba(0, 229, 255, 0.32);
  --logo-stroke-a: #8BEFFF; --logo-stroke-b: #00E5FF; --logo-core: #E8FDFF; --logo-word: #F5F7FA;
}
:root[data-theme="light"] {
  color-scheme: light;
  --bg: #EEF2F8; --bg2: #FFFFFF; --surface: #F8FAFD;
  --panel: rgba(255, 255, 255, 0.8); --panel-strong: rgba(255, 255, 255, 0.94);
  --ink: #0A1222; --muted: rgba(10, 18, 34, 0.78); --soft: rgba(10, 18, 34, 0.66);
  --cyan: #0B6E86; --cyan-soft: #0E5A6E; --violet: #6D28D9; --gold: #7D5B0D;
  --ok: #047857; --warn: #8A5A00; --off: rgba(10, 18, 34, 0.66);
  --hair: rgba(11, 110, 134, 0.22); --hair-strong: rgba(11, 110, 134, 0.46);
  --btn-bg: #0B6E86; --btn-ink: #FFFFFF; --btn-hover: #0A1222;
  --grid-line: rgba(11, 110, 134, 0.06); --star: rgba(10, 18, 34, 0.28); --star-tint: rgba(11, 110, 134, 0.3);
  --veil: rgba(238, 242, 248, 0.76); --focus: #0B6E86;
  --glow: 0 10px 30px -12px rgba(11, 110, 134, 0.45);
  --logo-stroke-a: #0B6E86; --logo-stroke-b: #0891B2; --logo-core: #0B6E86; --logo-word: #0A1222;
}

/* ---------- base ---------- */
* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 96px; background: var(--bg); -webkit-text-size-adjust: 100%; }
body { background: radial-gradient(ellipse at 50% 30%, var(--bg2) 0%, var(--bg) 78%) fixed; color: var(--ink);
  font-family: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif; font-weight: 300; min-height: 100vh; overflow-x: hidden; }
a { color: inherit; }
:focus-visible { outline: 2px solid var(--focus); outline-offset: 3px; }
.mono { font-family: "JetBrains Mono", ui-monospace, Consolas, monospace; }
.skip { position: absolute; left: 12px; top: -60px; z-index: 100; padding: 10px 14px; background: var(--btn-bg); color: var(--btn-ink); text-decoration: none; font-family: "JetBrains Mono", monospace; font-size: 0.75rem; }
.skip:focus { top: 12px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------- background (canvas lattice + CSS stars and grid) ---------- */
.stage { position: fixed; inset: 0; z-index: 0; pointer-events: none; }
.stage canvas { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; transition: opacity 1.2s ease; }
.stage canvas.on { opacity: 1; }
.stars { position: absolute; inset: 0;
  background-image: radial-gradient(1px 1px at 20% 30%, var(--star), transparent), radial-gradient(2px 2px at 30% 80%, var(--star-tint), transparent),
    radial-gradient(1px 1px at 90% 50%, var(--star-tint), transparent), radial-gradient(1px 1px at 60% 70%, var(--star), transparent),
    radial-gradient(1px 1px at 80% 20%, var(--star), transparent), radial-gradient(1px 1px at 8% 64%, var(--star), transparent);
  opacity: 0.6; }
.grid-overlay { position: absolute; inset: 0;
  background-image: linear-gradient(var(--grid-line) 1px, transparent 1px), linear-gradient(90deg, var(--grid-line) 1px, transparent 1px);
  background-size: 80px 80px; -webkit-mask-image: radial-gradient(ellipse at center, transparent 30%, #000 90%); mask-image: radial-gradient(ellipse at center, transparent 30%, #000 90%); }
.corner { position: fixed; width: 32px; height: 32px; border: 1px solid var(--hair-strong); z-index: 2; pointer-events: none; }
.corner.tl { top: 1.2rem; left: 1.2rem; border-right: 0; border-bottom: 0; }
.corner.tr { top: 1.2rem; right: 1.2rem; border-left: 0; border-bottom: 0; }
.corner.bl { bottom: 1.2rem; left: 1.2rem; border-right: 0; border-top: 0; }
.corner.br { bottom: 1.2rem; right: 1.2rem; border-left: 0; border-top: 0; }
@media (max-width: 640px) { .corner { display: none; } }

/* ---------- logo ---------- */
.logo { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; color: var(--logo-word); }
.logo svg.sigil { width: 34px; height: 36px; flex: none; overflow: visible; }
.logo .sg-shield { fill: none; stroke: url(#tq-stroke); stroke-width: 1.9; stroke-linejoin: round; }
.logo .sg-inner { fill: none; stroke: var(--logo-stroke-b); stroke-width: 0.8; opacity: 0.55; }
.logo .sg-star { fill: url(#tq-core); stroke: var(--logo-stroke-a); stroke-width: 0.7; stroke-linejoin: round; }
.logo .sg-dot { fill: var(--logo-core); }
.logo .sg-ray { stroke: var(--logo-stroke-a); stroke-width: 1; opacity: 0.85; }
.logo .st-a { stop-color: var(--logo-stroke-a); } .logo .st-b { stop-color: var(--logo-stroke-b); }
.logo .st-core { stop-color: var(--logo-core); } .logo .st-mid { stop-color: var(--logo-stroke-b); } .logo .st-out { stop-color: var(--logo-stroke-b); stop-opacity: 0.15; }
.logo .sg-glow { filter: drop-shadow(0 0 3px rgba(0, 229, 255, 0.65)); }
:root[data-theme="light"] .logo .sg-glow { filter: none; }
.logo .word { display: flex; flex-direction: column; line-height: 1; }
.logo .word b { font-weight: 600; font-size: 1.02rem; letter-spacing: 0.01em; }
.logo .word span { margin-top: 4px; font-family: "JetBrains Mono", monospace; font-weight: 600; font-size: 0.62rem; letter-spacing: 0.42em; color: var(--cyan); }

/* ---------- top nav ---------- */
.topnav { position: fixed; top: 16px; left: 50%; transform: translateX(-50%); z-index: 60; width: min(1200px, calc(100% - 24px));
  display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 10px 14px 10px 16px;
  border: 1px solid var(--hair-strong); background: var(--panel-strong); -webkit-backdrop-filter: blur(18px); backdrop-filter: blur(18px); }
.topnav .links { display: flex; gap: 22px; font-family: "JetBrains Mono", monospace; font-size: 0.66rem; letter-spacing: 0.2em; text-transform: uppercase; }
.topnav .links a { color: var(--muted); text-decoration: none; padding: 6px 0; }
.topnav .links a:hover, .topnav .links a[aria-current] { color: var(--cyan); }
.topnav .right { display: flex; align-items: center; gap: 10px; }
.chip { display: inline-flex; align-items: center; gap: 8px; height: 36px; padding: 0 12px; border: 1px solid var(--hair-strong); background: transparent; color: var(--muted);
  font-family: "JetBrains Mono", monospace; font-size: 0.64rem; letter-spacing: 0.16em; text-transform: uppercase; cursor: pointer; text-decoration: none; }
.chip:hover { color: var(--cyan); border-color: var(--cyan); }
.chip svg { width: 15px; height: 15px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; }
.chip .ic-sun { display: none; }
:root[data-theme="light"] .chip .ic-sun { display: block; }
:root[data-theme="light"] .chip .ic-moon { display: none; }
.cta { display: inline-flex; align-items: center; height: 36px; padding: 0 14px; border: 1px solid var(--cyan); background: var(--btn-bg); color: var(--btn-ink);
  font-family: "JetBrains Mono", monospace; font-size: 0.66rem; font-weight: 600; letter-spacing: 0.18em; text-transform: uppercase; text-decoration: none; white-space: nowrap; }
.cta:hover { background: var(--btn-hover); border-color: var(--btn-hover); color: var(--bg); }
.menu-btn { display: none; }
:root:not(.js) .js-only { display: none !important; }
.menu { display: none; }
@media (max-width: 960px) {
  .topnav .links { display: none; }
  .menu-btn { display: inline-flex; }
  .menu:not([hidden]) { display: grid; position: fixed; top: 76px; left: 12px; right: 12px; z-index: 59; padding: 10px; gap: 2px;
    border: 1px solid var(--hair-strong); background: var(--panel-strong); -webkit-backdrop-filter: blur(18px); backdrop-filter: blur(18px); }
  .menu a { display: block; padding: 12px; color: var(--ink); text-decoration: none; font-family: "JetBrains Mono", monospace; font-size: 0.74rem; letter-spacing: 0.16em; text-transform: uppercase; border-bottom: 1px solid var(--hair); }
  .menu a:last-child { border-bottom: 0; }
}
@media (max-width: 520px) {
  .logo .word b { font-size: 0.92rem; }
  .chip .label { display: none; }
  .chip { padding: 0 10px; }
  .topnav { gap: 8px; padding: 8px 8px 8px 12px; }
  .topnav .right { gap: 6px; }
  .cta { padding: 0 10px; letter-spacing: 0.12em; }
}

/* ---------- HUD (wide screens only; scrolls with the hero) ---------- */
.hud { position: relative; z-index: 3; width: max-content; margin: 0 0 18px auto; padding: 0.8rem 1rem; border: 1px solid var(--hair-strong); background: var(--panel); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
  font-family: "JetBrains Mono", monospace; font-size: 0.62rem; letter-spacing: 0.14em; color: var(--muted); line-height: 1.8; min-width: 236px; }
/* In the right column above the status card, so it can never cover the hero text or the card. */
.hud .t { color: var(--cyan); letter-spacing: 0.22em; margin-bottom: 0.4rem; padding-bottom: 0.4rem; border-bottom: 1px solid var(--hair); display: flex; justify-content: space-between; gap: 1rem; }
.hud .row { display: flex; justify-content: space-between; gap: 1.2rem; }
.hud .k { color: var(--soft); } .hud .v { color: var(--ink); }
@media (max-width: 1359px) { .hud { display: none; } }

/* ---------- layout ---------- */
main, footer { position: relative; z-index: 4; }
.container { position: relative; max-width: 1240px; margin: 0 auto; padding: 0 24px; }
.hero { position: relative; min-height: 100vh; display: flex; align-items: center; padding: 150px 0 70px; }
.hero-grid { width: 100%; display: grid; grid-template-columns: 1.08fr 0.92fr; gap: 56px; align-items: center; }
@media (max-width: 1040px) { .hero-grid { grid-template-columns: 1fr; gap: 40px; } .hero { min-height: 0; padding-top: 128px; } }
.eyebrow { display: inline-flex; align-items: center; gap: 10px; font-family: "JetBrains Mono", monospace; font-size: 0.66rem; letter-spacing: 0.26em; color: var(--cyan); text-transform: uppercase;
  padding: 7px 12px; border: 1px solid var(--hair-strong); background: var(--panel); margin-bottom: 26px; }
.eyebrow::before { content: ""; width: 6px; height: 6px; background: var(--cyan); box-shadow: 0 0 8px var(--cyan); flex: none; }
h1 { font-weight: 200; font-size: clamp(2.5rem, 6vw, 4.8rem); line-height: 1; letter-spacing: 0.005em; overflow-wrap: break-word; }
h1 .accent, h2 .accent-grad { background: linear-gradient(90deg, var(--cyan), var(--violet) 85%); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; color: var(--cyan); font-weight: 300; }
.tagline { margin-top: 22px; font-family: "JetBrains Mono", monospace; font-size: clamp(0.72rem, 1.1vw, 0.9rem); letter-spacing: 0.24em; color: var(--cyan-soft); text-transform: uppercase; line-height: 1.7; }
.lead { margin-top: 28px; max-width: 600px; font-size: 1.06rem; line-height: 1.75; color: var(--muted); font-weight: 400; }
.lead strong { color: var(--ink); font-weight: 500; }
.actions { margin-top: 34px; display: flex; gap: 12px; flex-wrap: wrap; }
.btn { display: inline-flex; align-items: center; gap: 10px; min-height: 48px; padding: 0 20px; font-family: "JetBrains Mono", monospace; font-size: 0.72rem; letter-spacing: 0.2em; text-transform: uppercase;
  border: 1px solid transparent; text-decoration: none; transition: background 0.25s, color 0.25s, border-color 0.25s; }
.btn.primary { background: var(--btn-bg); color: var(--btn-ink); font-weight: 600; box-shadow: var(--glow); }
.btn.primary:hover { background: var(--btn-hover); color: var(--bg); }
.btn.secondary { border-color: var(--hair-strong); background: var(--panel); color: var(--ink); }
.btn.secondary:hover { border-color: var(--cyan); color: var(--cyan); }

/* ---------- live status card ---------- */
.status-card { border: 1px solid var(--hair-strong); background: var(--panel-strong); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); padding: 26px; }
.status-card .head { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding-bottom: 14px; border-bottom: 1px solid var(--hair);
  font-family: "JetBrains Mono", monospace; font-size: 0.64rem; letter-spacing: 0.2em; color: var(--muted); text-transform: uppercase; }
.status-card .state { display: inline-flex; align-items: center; gap: 8px; color: var(--soft); white-space: nowrap; }
.status-card .state::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--off); }
.status-card .state.live { color: var(--ok); }
.status-card .state.live::before { background: var(--ok); box-shadow: 0 0 8px var(--ok); animation: blink 2s ease-in-out infinite; }
.status-card .state.down { color: var(--warn); }
.status-card .state.down::before { background: var(--warn); }
@keyframes blink { 0%, 100% { opacity: 1; } 50% { opacity: 0.3; } }
.status-card dl { margin-top: 6px; }
.status-card dl > div { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr); gap: 14px; padding: 11px 0; border-bottom: 1px dashed var(--hair); }
.status-card dt { font-size: 0.86rem; color: var(--muted); font-weight: 400; }
.status-card dd { font-family: "JetBrains Mono", monospace; font-size: 0.74rem; line-height: 1.55; color: var(--ink); text-align: right; overflow-wrap: anywhere; }
.status-card dd.ok { color: var(--ok); } .status-card dd.warn { color: var(--warn); } .status-card dd.off { color: var(--soft); }
.status-card .foot { margin-top: 14px; font-size: 0.82rem; line-height: 1.6; color: var(--soft); }
.status-card .foot a { color: var(--cyan); }
@media (max-width: 520px) { .status-card { padding: 18px; } .status-card dl > div { grid-template-columns: 1fr; gap: 4px; } .status-card dd { text-align: left; } }

/* ---------- sections ---------- */
section.body { position: relative; padding: 120px 0; z-index: 4; background: var(--surface); }
section.body.alt { background: var(--bg); }
section.body::before { content: ""; position: absolute; top: 0; left: 0; right: 0; height: 1px; background: linear-gradient(90deg, transparent, var(--hair-strong), transparent); }
.section-head { margin-bottom: 56px; }
.section-head .se { font-family: "JetBrains Mono", monospace; font-size: 0.66rem; letter-spacing: 0.28em; color: var(--cyan); text-transform: uppercase; margin-bottom: 16px; }
.section-head h2 { font-weight: 200; font-size: clamp(1.9rem, 4.2vw, 3.4rem); line-height: 1.08; max-width: 860px; }
.section-head h2 .accent { color: var(--cyan); }
.section-head p { margin-top: 20px; max-width: 760px; font-size: 1.04rem; line-height: 1.75; color: var(--muted); font-weight: 400; }
.section-head p a, .note a, .card p a { color: var(--cyan); }
.grid { display: grid; gap: 1px; background: var(--hair); border: 1px solid var(--hair); }
.grid.c3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid.c4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.grid.spaced { margin-top: 24px; }
.card { background: var(--surface); padding: 30px 24px; min-height: 220px; display: flex; flex-direction: column; transition: background 0.3s; }
section.body.alt .card { background: var(--bg); }
.card:hover { background: var(--panel); }
.card .num { font-family: "JetBrains Mono", monospace; font-size: 0.64rem; letter-spacing: 0.28em; color: var(--cyan); margin-bottom: 20px; text-transform: uppercase; }
.card h3 { font-weight: 400; font-size: 1.16rem; letter-spacing: 0.01em; margin-bottom: 12px; }
.card p { font-size: 0.94rem; line-height: 1.7; color: var(--muted); font-weight: 400; }
.card p + p { margin-top: 10px; }
.card code, .note code, .flow code { font-family: "JetBrains Mono", monospace; font-size: 0.86em; color: var(--cyan); }
@media (max-width: 1040px) { .grid.c4, .grid.c3 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 640px) { .grid.c4, .grid.c3 { grid-template-columns: 1fr; } .card { min-height: 0; } section.body { padding: 84px 0; } }
.note { margin-top: 28px; padding: 16px 18px; border: 1px dashed var(--hair-strong); background: var(--panel); font-size: 0.92rem; line-height: 1.7; color: var(--muted); font-weight: 400; }
.note b { color: var(--ink); font-weight: 500; }

/* anchoring flow (the original "blocks" strip, now the real algorithm) */
.flow { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 1px; padding: 22px; border: 1px solid var(--hair); background: var(--panel); list-style: none; counter-reset: step; }
.flow li { position: relative; padding: 20px 18px; border: 1px solid var(--hair); background: var(--surface); }
section.body.alt .flow li { background: var(--bg); }
.flow li::after { content: "→"; position: absolute; right: -13px; top: 50%; transform: translateY(-50%); z-index: 1; color: var(--cyan); font-family: "JetBrains Mono", monospace; }
.flow li:last-child::after { content: none; }
.flow .h { font-family: "JetBrains Mono", monospace; font-size: 0.62rem; letter-spacing: 0.2em; color: var(--cyan); text-transform: uppercase; margin-bottom: 10px; }
.flow .b { font-size: 0.98rem; color: var(--ink); font-weight: 400; }
.flow .t { margin-top: 10px; font-size: 0.84rem; line-height: 1.6; color: var(--muted); font-weight: 400; }
@media (max-width: 1040px) { .flow { grid-template-columns: 1fr; } .flow li::after { content: "↓"; right: auto; left: 50%; top: auto; bottom: -15px; transform: translateX(-50%); } }

/* platform + group band */
.band { display: grid; grid-template-columns: 1.2fr 1fr; gap: 40px; align-items: start; }
@media (max-width: 1040px) { .band { grid-template-columns: 1fr; } }
.linklist { list-style: none; border: 1px solid var(--hair); }
.linklist li + li { border-top: 1px solid var(--hair); }
.linklist a { display: flex; justify-content: space-between; gap: 16px; padding: 16px 18px; text-decoration: none; background: var(--panel); }
.linklist a:hover { background: var(--surface); }
.linklist a:hover .dest { color: var(--cyan); }
.linklist .name { font-weight: 500; }
.linklist .desc { display: block; margin-top: 4px; font-size: 0.86rem; color: var(--muted); font-weight: 400; }
.linklist .dest { font-family: "JetBrains Mono", monospace; font-size: 0.7rem; letter-spacing: 0.06em; color: var(--soft); white-space: nowrap; align-self: center; }
.linklist a[aria-current] .name::after { content: " · you are here"; font-family: "JetBrains Mono", monospace; font-size: 0.62rem; letter-spacing: 0.14em; color: var(--cyan); text-transform: uppercase; }
@media (max-width: 520px) { .linklist a { flex-direction: column; gap: 6px; } .linklist .dest { align-self: flex-start; white-space: normal; overflow-wrap: anywhere; } }

/* ---------- footer ---------- */
footer { border-top: 1px solid var(--hair); padding: 56px 0 34px; background: var(--bg); }
.foot-grid { display: grid; grid-template-columns: 1.4fr repeat(4, minmax(0, 1fr)); gap: 32px; }
.foot-grid h4 { font-family: "JetBrains Mono", monospace; font-weight: 500; font-size: 0.64rem; letter-spacing: 0.24em; text-transform: uppercase; color: var(--cyan); margin-bottom: 14px; }
.foot-grid ul { list-style: none; }
.foot-grid li { margin: 9px 0; font-size: 0.9rem; }
.foot-grid li a { color: var(--muted); text-decoration: none; }
.foot-grid li a:hover { color: var(--cyan); text-decoration: underline; }
.foot-grid p { margin-top: 14px; font-size: 0.88rem; line-height: 1.7; color: var(--muted); max-width: 340px; font-weight: 400; }
.foot-grid .small { font-size: 0.78rem; color: var(--soft); }
.foot-bottom { margin-top: 40px; padding-top: 20px; border-top: 1px solid var(--hair); display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px;
  font-family: "JetBrains Mono", monospace; font-size: 0.66rem; letter-spacing: 0.16em; color: var(--soft); text-transform: uppercase; }
.foot-bottom a { color: var(--muted); }
@media (max-width: 1040px) { .foot-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } .foot-grid .about { grid-column: 1 / -1; } }
@media (max-width: 420px) { .foot-grid { grid-template-columns: 1fr; } }

/* ---------- document pages ---------- */
.doc { position: relative; z-index: 4; max-width: 920px; margin: 0 auto; padding: 120px 24px 72px; }
.doc .banner { margin-bottom: 28px; padding: 14px 16px; border: 1px solid var(--hair-strong); background: var(--panel-strong); font-size: 0.92rem; line-height: 1.65; color: var(--muted); font-weight: 400; }
.doc .banner b { color: var(--warn); font-weight: 600; }
.doc .banner a { color: var(--cyan); }
.doc article { background: var(--panel-strong); border: 1px solid var(--hair); padding: 36px 36px 44px; font-size: 1rem; line-height: 1.75; font-weight: 400; color: var(--ink); overflow-wrap: anywhere; }
.doc article h1 { font-size: clamp(1.7rem, 4vw, 2.4rem); font-weight: 300; line-height: 1.2; border-bottom: 1px solid var(--hair-strong); padding-bottom: 14px; margin-bottom: 18px; overflow-wrap: normal; }
.doc article h2 { font-size: 1.5rem; font-weight: 400; margin: 40px 0 12px; padding-bottom: 8px; border-bottom: 1px solid var(--hair); }
.doc article h3 { font-size: 1.16rem; font-weight: 500; margin: 28px 0 8px; }
.doc article h4 { font-size: 1rem; font-weight: 600; margin: 22px 0 6px; }
.doc article p, .doc article ul, .doc article ol, .doc article table, .doc article pre, .doc article blockquote { margin: 12px 0; }
.doc article ul, .doc article ol { padding-left: 24px; }
.doc article li { margin: 4px 0; }
.doc article a { color: var(--cyan); }
.doc article strong { font-weight: 600; }
.doc article code { font-family: "JetBrains Mono", monospace; font-size: 0.86em; background: var(--surface); border: 1px solid var(--hair); padding: 1px 5px; }
.doc article pre { background: var(--surface); border: 1px solid var(--hair); padding: 14px; overflow-x: auto; }
.doc article pre code { border: 0; padding: 0; background: transparent; }
.doc article blockquote { border-left: 3px solid var(--cyan); padding: 6px 16px; color: var(--muted); background: var(--surface); }
.doc article table { border-collapse: collapse; width: 100%; display: block; overflow-x: auto; font-size: 0.9rem; }
.doc article th, .doc article td { border: 1px solid var(--hair-strong); padding: 8px 12px; text-align: left; vertical-align: top; }
.doc article th { background: var(--surface); font-family: "JetBrains Mono", monospace; font-size: 0.68rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); }
.doc article hr { border: 0; border-top: 1px solid var(--hair); margin: 32px 0; }
@media (max-width: 640px) { .doc { padding-top: 104px; } .doc article { padding: 22px 18px 30px; } }

/* ---------- 404 ---------- */
.lost { position: relative; z-index: 4; min-height: 100vh; display: grid; place-items: center; text-align: center; padding: 120px 24px; }
.lost h1 { font-size: clamp(2.2rem, 6vw, 4rem); }
.lost p { margin: 18px auto 30px; max-width: 520px; color: var(--muted); line-height: 1.7; font-weight: 400; }
.lost .actions { justify-content: center; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
