/* ═══════════════ OS-ERP — Investor Site · Notion-style ═══════════════ */
:root {
  --bg: #ffffff;
  --bg-soft: #f7f6f3;
  --bg-hover: #efefed;
  --sidebar-bg: #f7f6f3;
  --text: #37352f;
  --muted: #73726c;
  --faint: #9b9a97;
  --line: #e9e9e7;
  --dark: #37352f;
  --accent: #2383e2;
  --green: #0f7b4c;
  --green-bg: #e7f6ee;
  --red: #d44c47;
  --amber: #cb912f;
  --amber-bg: #faf3dd;
  --mono: "JetBrains Mono", ui-monospace, monospace;
  --sans: "Inter", ui-sans-serif, system-ui, -apple-system, sans-serif;
  --radius: 8px;
  --sidebar-w: 264px;
  --doc-w: 860px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 70px; }
body {
  background: var(--bg); color: var(--text);
  font-family: var(--sans); font-size: 16px; line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}
code { font-family: var(--mono); font-size: .84em; background: var(--bg-soft); color: #b3554e; padding: 1px 6px; border-radius: 5px; border: 1px solid var(--line); }
kbd { font-family: var(--mono); font-size: .78em; background: #fff; border: 1px solid var(--line); border-bottom-width: 2px; border-radius: 5px; padding: 1px 6px; color: var(--text); }
.muted { color: var(--muted); }
.small { font-size: .8rem; }
hr { border: 0; border-top: 1px solid var(--line); margin: 44px 0; }

/* ───────────── Sidebar ───────────── */
.sidebar {
  position: fixed; top: 0; left: 0; bottom: 0; width: var(--sidebar-w);
  background: var(--sidebar-bg); border-right: 1px solid var(--line);
  display: flex; flex-direction: column; padding: 14px 10px; z-index: 200;
  overflow-y: auto; transition: transform .25s ease;
}
.sb-workspace { display: flex; align-items: center; gap: 10px; padding: 8px 10px; border-radius: var(--radius); }
.sb-icon { font-size: 1.4rem; }
.sb-name { font-weight: 700; font-size: .92rem; }
.sb-sub { font-size: .72rem; color: var(--faint); }
.sb-search {
  display: flex; align-items: center; gap: 8px; margin: 10px 4px 14px;
  padding: 7px 10px; border-radius: var(--radius); color: var(--faint); font-size: .82rem;
  border: 1px solid var(--line); background: #fff; cursor: text;
}
.sb-search kbd { margin-left: auto; font-size: .68rem; color: var(--faint); }
.sb-toc { display: flex; flex-direction: column; gap: 1px; flex: 1; }
.sb-group { font-size: .68rem; font-weight: 700; letter-spacing: 1.2px; text-transform: uppercase; color: var(--faint); padding: 14px 10px 5px; }
.sb-toc a {
  display: block; padding: 5px 10px; border-radius: 6px; text-decoration: none;
  color: var(--muted); font-size: .86rem; font-weight: 500; transition: background .12s, color .12s;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.sb-toc a:hover { background: var(--bg-hover); color: var(--text); }
.sb-toc a.active { background: #e6e6e3; color: var(--text); font-weight: 600; }
.sb-foot { font-size: .7rem; color: var(--faint); padding: 12px 10px 4px; border-top: 1px solid var(--line); }
.sb-overlay { display: none; }
.sb-toggle { display: none; }

/* ───────────── Page frame ───────────── */
.page { margin-left: var(--sidebar-w); min-height: 100vh; display: flex; flex-direction: column; }
.topbar {
  position: sticky; top: 0; z-index: 100; display: flex; align-items: center; gap: 12px;
  height: 46px; padding: 0 20px; background: rgba(255,255,255,.85); backdrop-filter: blur(10px);
  border-bottom: 1px solid transparent; font-size: .82rem; color: var(--muted);
}
.crumb b { color: var(--text); font-weight: 600; }
.topbar-cta {
  margin-left: auto; text-decoration: none; font-size: .78rem; font-weight: 600;
  color: #fff; background: var(--dark); padding: 5px 14px; border-radius: 6px; transition: opacity .15s;
}
.topbar-cta:hover { opacity: .82; }

.cover {
  height: 170px; flex-shrink: 0;
  background:
    radial-gradient(600px 200px at 15% 120%, rgba(35,131,226,.28), transparent 60%),
    radial-gradient(500px 200px at 55% -20%, rgba(203,145,47,.30), transparent 60%),
    radial-gradient(500px 220px at 90% 120%, rgba(15,123,76,.24), transparent 60%),
    linear-gradient(120deg, #e8ecf3, #f3efe6 55%, #e7eef0);
}

.doc { width: 100%; max-width: var(--doc-w); margin: 0 auto; padding: 0 48px 60px; flex: 1; }
.page-icon { font-size: 4.4rem; margin-top: -46px; position: relative; line-height: 1; text-shadow: 0 2px 8px rgba(0,0,0,.12); }
.page-title { font-size: 2.5rem; font-weight: 800; letter-spacing: -.8px; margin-top: 10px; line-height: 1.2; }
.page-byline {
  margin-top: 12px; font-size: .92rem; color: var(--muted);
  background: var(--bg-soft); border: 1px solid var(--line); border-radius: 8px;
  display: inline-block; padding: 8px 16px;
}
.page-byline b { color: var(--text); }
.page-meta { display: flex; flex-wrap: wrap; gap: 18px; color: var(--faint); font-size: .82rem; padding: 12px 0 6px; border-bottom: 1px solid var(--line); margin-bottom: 34px; }

/* ───────────── Main hero card ───────────── */
.hero-card {
  position: relative; border-radius: 16px; overflow: hidden; margin-bottom: 46px;
  background: #232320; color: #f5f4f0;
  box-shadow: 0 18px 50px -18px rgba(35,35,32,.45);
}
.hero-card-glow {
  position: absolute; inset: 0; pointer-events: none;
  background:
    radial-gradient(500px 260px at 85% -10%, rgba(203,145,47,.30), transparent 60%),
    radial-gradient(500px 300px at -5% 110%, rgba(35,131,226,.25), transparent 60%);
}
.hero-card-inner { position: relative; padding: 46px 48px 42px; }
.hc-eyebrow {
  display: inline-block; font-size: .7rem; letter-spacing: 2.4px; text-transform: uppercase;
  color: #e8c98a; border: 1px solid rgba(232,201,138,.35); padding: 5px 14px; border-radius: 99px; margin-bottom: 22px;
}
.hero-card h2 { font-size: clamp(1.9rem, 4.4vw, 2.9rem); font-weight: 800; letter-spacing: -.8px; line-height: 1.15; }
.hc-brand { color: #e8c98a; }
.hc-sub { color: #b8b6b0; max-width: 520px; margin-top: 16px; font-size: 1.02rem; }
.hc-quote {
  margin-top: 22px; padding: 3px 0 3px 16px; border-left: 3px solid #e8c98a;
  color: #e8e6e1; font-style: italic; font-size: .98rem;
}
.hc-actions { display: flex; gap: 12px; margin-top: 28px; flex-wrap: wrap; }
.btn { display: inline-block; text-decoration: none; font-weight: 600; font-size: .9rem; padding: 11px 22px; border-radius: 8px; transition: all .15s; }
.btn:active { transform: scale(.97); }
.btn-dark { background: #f5f4f0; color: #232320; }
.btn-dark:hover { background: #fff; transform: translateY(-1px); }
.btn-light { border: 1px solid rgba(245,244,240,.3); color: #f5f4f0; }
.btn-light:hover { border-color: #f5f4f0; }
.btn-lg { padding: 14px 30px; font-size: 1rem; }
.hc-stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin-top: 36px; }
.hc-stat { background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.09); border-radius: 10px; padding: 16px 14px; }
.hc-stat b { display: block; font-family: var(--mono); font-size: 1.7rem; font-weight: 700; color: #e8c98a; }
.hc-stat span { font-size: .72rem; color: #a3a19b; line-height: 1.45; display: block; margin-top: 4px; }

/* ───────────── Doc typography ───────────── */
.doc section { margin-bottom: 10px; }
.doc h2 { font-size: 1.55rem; font-weight: 750; letter-spacing: -.3px; margin-bottom: 14px; padding-top: 6px; }
.doc h3 { font-size: 1.08rem; font-weight: 700; margin: 30px 0 12px; }
.doc p { margin-bottom: 12px; }
.lead { color: var(--muted); font-size: 1.04rem; }

/* ───────────── Callout (Notion block) ───────────── */
.callout {
  display: flex; gap: 14px; background: var(--bg-soft); border: 1px solid var(--line);
  border-radius: 10px; padding: 18px 20px; margin: 20px 0; font-size: .94rem;
}
.co-icon { font-size: 1.15rem; line-height: 1.5; }
.callout b { color: var(--text); }

/* ───────────── Toggles (Notion block) ───────────── */
.toggle-list { display: flex; flex-direction: column; gap: 4px; }
.toggle { border-radius: 8px; padding: 2px 0; }
.toggle summary {
  cursor: pointer; list-style: none; padding: 9px 12px; border-radius: 8px;
  font-weight: 600; font-size: .98rem; transition: background .12s; user-select: none;
}
.toggle summary::before { content: "▸"; display: inline-block; margin-right: 9px; color: var(--faint); transition: transform .18s; font-size: .8rem; }
.toggle[open] summary::before { transform: rotate(90deg); }
.toggle summary:hover { background: var(--bg-soft); }
.toggle summary::-webkit-details-marker { display: none; }
.toggle p { padding: 2px 12px 14px 33px; color: var(--muted); font-size: .92rem; }

/* ───────────── Architecture stack ───────────── */
.arch-stack { display: flex; flex-direction: column; gap: 8px; margin: 16px 0; }
.arch-layer {
  display: flex; align-items: center; gap: 16px; background: var(--bg-soft);
  border: 1px solid var(--line); border-radius: 10px; padding: 14px 18px; font-size: .92rem; color: var(--muted);
}
.arch-tag { font-family: var(--mono); font-size: .7rem; font-weight: 700; letter-spacing: 1.1px; color: var(--amber); min-width: 140px; flex-shrink: 0; }
.arch-kernel { background: var(--amber-bg); border-color: #e8d9ae; color: var(--text); }

/* ───────────── Industries ───────────── */
.ind-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin: 18px 0; }
.ind {
  display: flex; align-items: center; gap: 10px; background: #fff; border: 1px solid var(--line);
  border-radius: 8px; padding: 11px 14px; font-size: .88rem; font-weight: 500;
  transition: all .15s; cursor: default;
}
.ind:hover { background: var(--bg-soft); transform: translateY(-1px); box-shadow: 0 3px 10px rgba(0,0,0,.05); }
.ind span { font-size: 1.1rem; }

/* ───────────── Feature grids ───────────── */
.feature-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; margin: 18px 0; }
.feat { background: #fff; border: 1px solid var(--line); border-radius: 10px; padding: 16px 18px; transition: all .15s; }
.feat:hover { border-color: #d4d4d0; box-shadow: 0 4px 14px rgba(0,0,0,.05); }
.feat b { display: block; font-size: .92rem; margin-bottom: 5px; }
.feat span { font-size: .84rem; color: var(--muted); line-height: 1.55; }

/* ───────────── Flow explorer ───────────── */
.flow-explorer { border: 1px solid var(--line); border-radius: 12px; overflow: hidden; margin: 18px 0; background: #fff; }
.stage-rail { display: flex; overflow-x: auto; border-bottom: 1px solid var(--line); background: var(--bg-soft); scrollbar-width: thin; }
.stage-btn {
  flex: 1 0 auto; min-width: 126px; background: none; border: 0; border-right: 1px solid var(--line);
  color: var(--muted); font-family: var(--sans); cursor: pointer; padding: 13px 10px;
  display: flex; flex-direction: column; gap: 3px; align-items: center; transition: background .12s, color .12s;
  position: relative; font-size: .82rem;
}
.stage-btn:hover { background: var(--bg-hover); color: var(--text); }
.stage-btn.active { background: #fff; color: var(--text); font-weight: 700; }
.stage-btn.active::after { content: ""; position: absolute; bottom: -1px; left: 0; right: 0; height: 2px; background: var(--dark); }
.stage-name { font-weight: 600; font-size: .82rem; }
.stage-doc { font-family: var(--mono); font-size: .66rem; opacity: .75; }
.flow-detail { padding: 24px 26px 28px; min-height: 260px; }
.fd-head { display: flex; align-items: baseline; gap: 12px; flex-wrap: wrap; margin-bottom: 4px; }
.fd-head h3 { font-size: 1.1rem; margin: 0; }
.fd-doc { font-family: var(--mono); font-size: .76rem; color: var(--accent); }
.fd-desc { color: var(--muted); font-size: .9rem; max-width: 700px; margin-bottom: 16px; }
.fd-nopost {
  display: inline-flex; gap: 10px; background: var(--bg-soft); border: 1px dashed #d4d4d0;
  border-radius: 8px; padding: 13px 16px; color: var(--muted); font-size: .88rem; max-width: 640px;
}
.je { border: 1px solid var(--line); border-radius: 10px; overflow: hidden; max-width: 620px; }
.je-head { background: var(--bg-soft); color: var(--muted); font-size: .68rem; font-weight: 700; letter-spacing: 1.4px; text-transform: uppercase; padding: 9px 16px; border-bottom: 1px solid var(--line); }
.je table { width: 100%; border-collapse: collapse; font-size: .88rem; }
.je td { padding: 9px 16px; border-top: 1px solid var(--bg-soft); }
.je .drcr { font-family: var(--mono); font-size: .68rem; font-weight: 700; width: 42px; }
.je .dr { color: var(--green); }
.je .cr { color: var(--amber); padding-left: 20px; }
.je .amt { font-family: var(--mono); text-align: right; white-space: nowrap; }
.je-total td { background: var(--bg-soft); font-weight: 700; font-size: .8rem; color: var(--muted) !important; }
.fd-meta { margin-top: 14px; font-size: .76rem; color: var(--faint); font-family: var(--mono); }

/* ───────────── GL engine ───────────── */
.rule-list { list-style: none; display: flex; flex-direction: column; gap: 8px; margin: 14px 0; }
.rule-list li {
  background: #fff; border: 1px solid var(--line); border-left: 3px solid var(--amber);
  border-radius: 8px; padding: 12px 15px; font-size: .88rem; color: var(--muted);
}
.rule-list b { color: var(--text); }
.book-row { display: flex; gap: 8px; flex-wrap: wrap; margin: 10px 0; }
.book { font-family: var(--mono); font-size: .78rem; font-weight: 700; padding: 7px 15px; border: 1px solid #e8d9ae; border-radius: 8px; color: var(--amber); background: var(--amber-bg); }
.book em { font-style: normal; font-size: .64rem; margin-left: 5px; opacity: .75; }
.fallback-chain { list-style: none; counter-reset: fb; display: flex; flex-direction: column; gap: 6px; margin: 14px 0; }
.fb-item {
  counter-increment: fb; background: #fff; border: 1px solid var(--line); border-radius: 8px;
  padding: 10px 14px; font-size: .86rem; color: var(--muted); cursor: pointer;
  display: flex; align-items: center; gap: 12px; transition: all .14s;
}
.fb-item::before {
  content: counter(fb); font-family: var(--mono); font-size: .7rem; font-weight: 700;
  width: 23px; height: 23px; border-radius: 6px; display: grid; place-items: center;
  background: var(--bg-soft); color: var(--muted); flex-shrink: 0;
}
.fb-item:hover { background: var(--bg-soft); color: var(--text); }
.fb-item.active { border-color: var(--dark); background: var(--bg-soft); color: var(--text); font-weight: 600; }
.fb-item.suspense { border-style: dashed; }
.fallback-note { background: var(--amber-bg); border: 1px solid #e8d9ae; border-radius: 8px; padding: 13px 16px; font-size: .85rem; color: #7a5c1e; min-height: 62px; margin-bottom: 10px; }

/* ───────────── AI guard ───────────── */
.ai-guard { display: flex; align-items: stretch; gap: 10px; margin: 22px 0; flex-wrap: wrap; }
.ai-step { flex: 1; min-width: 200px; background: #fff; border: 1px solid var(--line); border-radius: 10px; padding: 18px; display: flex; flex-direction: column; gap: 7px; }
.ai-step-num { width: 28px; height: 28px; border-radius: 7px; display: grid; place-items: center; background: var(--dark); color: #fff; font-weight: 700; font-size: .85rem; }
.ai-step b { font-size: .94rem; }
.ai-step span:last-child { color: var(--muted); font-size: .82rem; }
.ai-arrow { align-self: center; color: var(--faint); font-size: 1.3rem; font-weight: 700; }

/* ───────────── Module directory ───────────── */
.mod-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 9px; margin: 12px 0 6px; }
.mod {
  position: relative; background: #fff; border: 1px solid var(--line); border-radius: 9px;
  padding: 13px 14px 12px; transition: all .14s;
}
.mod:hover { border-color: #d4d4d0; box-shadow: 0 3px 10px rgba(0,0,0,.05); transform: translateY(-1px); }
.mod b { display: block; font-size: .83rem; padding-right: 16px; line-height: 1.35; }
.mod p { font-size: .72rem; color: var(--muted); margin: 5px 0 0; line-height: 1.5; }
.mod-dot { position: absolute; top: 13px; right: 13px; width: 9px; height: 9px; border-radius: 50%; }
.mod-dot.live { background: var(--green); box-shadow: 0 0 0 3px var(--green-bg); }
.mod-dot.soon { background: var(--amber); box-shadow: 0 0 0 3px var(--amber-bg); }

/* ───────────── Competition table ───────────── */
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: 10px; margin: 16px 0; }
.comp-table { width: 100%; border-collapse: collapse; font-size: .86rem; min-width: 720px; }
.comp-table th, .comp-table td { padding: 11px 16px; text-align: left; border-bottom: 1px solid var(--bg-soft); }
.comp-table thead th { background: var(--bg-soft); font-size: .72rem; letter-spacing: 1.1px; text-transform: uppercase; color: var(--muted); }
.comp-table tbody tr:hover { background: var(--bg-soft); }
.comp-table td:first-child { font-weight: 500; }
.comp-table .yes { color: var(--green); font-weight: 600; }
.comp-table .no { color: var(--red); }
.comp-table .mid { color: var(--amber); }
.comp-table tbody td:nth-child(2) { background: var(--green-bg); font-weight: 700; }

/* ───────────── Editions ───────────── */
.edition-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; margin: 18px 0; }
.edition { background: #fff; border: 1px solid var(--line); border-radius: 10px; padding: 18px; text-align: center; }
.edition b { font-size: 1.05rem; }
.ed-for { display: block; font-family: var(--mono); font-size: .7rem; color: var(--faint); margin: 4px 0 10px; }
.edition p { font-size: .82rem; color: var(--muted); margin: 0; }
.ed-flag { border-color: var(--dark); box-shadow: 0 4px 16px rgba(0,0,0,.07); }

/* ───────────── Badges / timeline ───────────── */
.badge { display: inline-block; font-size: .64rem; font-weight: 700; letter-spacing: 1px; text-transform: uppercase; padding: 2px 9px; border-radius: 99px; vertical-align: 2px; }
.badge-live { background: var(--green-bg); color: var(--green); }
.badge-now { background: var(--amber-bg); color: var(--amber); }
.timeline { position: relative; padding-left: 30px; margin-top: 18px; }
.timeline::before { content: ""; position: absolute; left: 7px; top: 8px; bottom: 8px; width: 2px; background: var(--line); }
.tl-item { position: relative; padding-bottom: 26px; }
.tl-dot { position: absolute; left: -29px; top: 6px; width: 12px; height: 12px; border-radius: 50%; background: #fff; border: 2px solid #d4d4d0; }
.tl-item.done .tl-dot { background: var(--green); border-color: var(--green); }
.tl-item.active .tl-dot { background: var(--amber); border-color: var(--amber); box-shadow: 0 0 0 4px var(--amber-bg); }
.tl-item b { font-size: .96rem; margin-right: 8px; }
.tl-item p { color: var(--muted); font-size: .87rem; margin: 5px 0 0; }
.tl-sub { font-size: .8rem; font-weight: 700; color: var(--text); margin: 14px 0 7px !important; }
.tl-toggle summary { font-size: .86rem; padding: 7px 10px; }
.tl-toggle p, .tl-toggle ul { padding-left: 30px; }
.shipped-list { list-style: none; padding: 2px 10px 12px 30px; display: flex; flex-direction: column; gap: 6px; }
.shipped-list li { font-size: .84rem; color: var(--muted); position: relative; padding-left: 18px; }
.shipped-list li::before { content: "✓"; position: absolute; left: 0; color: var(--green); font-weight: 700; font-size: .76rem; }
.stage-chain { display: flex; flex-wrap: wrap; align-items: center; gap: 5px; margin: 4px 0 6px; }
.stage-chain span {
  font-size: .72rem; font-weight: 600; background: var(--green-bg); color: var(--green);
  border: 1px solid #c8e6d4; border-radius: 6px; padding: 3px 9px; white-space: nowrap;
}
.stage-chain i { font-style: normal; color: var(--faint); font-size: .72rem; }

/* ───────────── Proof ───────────── */
.tb-wrap { display: grid; grid-template-columns: 1fr 1.15fr; gap: 14px; margin: 18px 0; }
.tb-card { background: #fff; border: 1px solid var(--line); border-radius: 10px; padding: 22px; }
.tb-card h4 { color: var(--muted); font-size: .72rem; letter-spacing: 1.5px; text-transform: uppercase; margin-bottom: 14px; }
.mini-table { width: 100%; border-collapse: collapse; font-size: .86rem; }
.mini-table td { padding: 8px 0; border-bottom: 1px solid var(--bg-soft); color: var(--muted); }
.mini-table .num { font-family: var(--mono); text-align: right; color: var(--text); }
.tb-hero { background: var(--green-bg); border-color: #c8e6d4; display: flex; flex-direction: column; justify-content: center; }
.tb-big { font-family: var(--mono); font-size: clamp(1.05rem, 2.2vw, 1.5rem); font-weight: 700; color: var(--green); margin-bottom: 12px; }
.tb-hero p { color: #3d6b52; font-size: .86rem; margin: 0; }
.proof-stats .hc-stat { background: #fff; border-color: var(--line); }
.proof-stats .hc-stat b { color: var(--dark); }
.proof-stats .hc-stat span { color: var(--muted); }

/* ───────────── Credits ───────────── */
.credit-feature {
  display: flex; align-items: center; gap: 22px; margin-top: 18px;
  background: linear-gradient(135deg, #fdf8ec, #faf3dd);
  border: 1px solid #e8d9ae; border-radius: 14px; padding: 28px 30px;
  box-shadow: 0 10px 30px -12px rgba(138,92,20,.25);
  transition: all .18s;
}
.credit-feature:hover { transform: translateY(-2px); box-shadow: 0 16px 38px -12px rgba(138,92,20,.32); }
.credit-crown {
  display: inline-block; font-size: .66rem; font-weight: 800; letter-spacing: 1.6px;
  text-transform: uppercase; color: #8a5c14; background: rgba(203,145,47,.18);
  border: 1px solid rgba(203,145,47,.4); border-radius: 99px; padding: 3px 12px; width: fit-content;
}
.credit-name-xl { font-size: 1.5rem; font-weight: 800; letter-spacing: -.3px; margin-top: 4px; }
.avatar-xl { width: 84px; height: 84px; font-size: 1.8rem; box-shadow: 0 8px 22px rgba(138,92,20,.35); }
.credit-feature .credit-note { font-size: .9rem; line-height: 1.65; max-width: 560px; }
.credit-grid-single { grid-template-columns: 1fr; max-width: 460px; margin-top: 12px; }
.credit-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; margin-top: 18px; }
.credit-card {
  display: flex; align-items: center; gap: 16px; background: #fff;
  border: 1px solid var(--line); border-radius: 12px; padding: 20px 22px;
  transition: all .18s;
}
.credit-card:hover { transform: translateY(-2px); box-shadow: 0 8px 24px rgba(0,0,0,.07); border-color: #d4d4d0; }
.credit-avatar {
  width: 54px; height: 54px; border-radius: 50%; display: grid; place-items: center;
  font-weight: 800; font-size: 1.15rem; color: #fff; flex-shrink: 0;
  box-shadow: 0 4px 12px rgba(0,0,0,.15);
}
.avatar-gold { background: linear-gradient(135deg, #cb912f, #8a5c14); }
.avatar-blue { background: linear-gradient(135deg, #2383e2, #14518f); }
.credit-info { display: flex; flex-direction: column; gap: 2px; }
.credit-info b { font-size: 1.02rem; }
.credit-role { font-size: .76rem; font-weight: 700; letter-spacing: .6px; text-transform: uppercase; color: var(--amber); }
.avatar-blue + .credit-info .credit-role { color: var(--accent); }
.credit-note { font-size: .8rem; color: var(--muted); margin-top: 3px; }

/* ───────────── Footer ───────────── */
.footer {
  margin-left: 0; border-top: 1px solid var(--line); padding: 22px 48px;
  display: flex; justify-content: space-between; gap: 14px; flex-wrap: wrap;
  font-size: .78rem; color: var(--faint);
}

/* ───────────── Reveal ───────────── */
.doc section, .hero-card { opacity: 0; transform: translateY(18px); transition: opacity .55s ease, transform .55s ease; }
.doc section.visible, .hero-card.visible { opacity: 1; transform: none; }

/* ───────────── Responsive ───────────── */
@media (max-width: 1024px) {
  .ind-grid { grid-template-columns: repeat(2, 1fr); }
  .edition-grid { grid-template-columns: repeat(2, 1fr); }
  .mod-grid { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 860px) {
  .sidebar { transform: translateX(-100%); width: 280px; box-shadow: 8px 0 30px rgba(0,0,0,.12); }
  .sidebar.open { transform: none; }
  .sb-overlay.show { display: block; position: fixed; inset: 0; background: rgba(15,15,15,.4); z-index: 150; }
  .sb-toggle { display: block; background: none; border: 0; font-size: 1.15rem; cursor: pointer; color: var(--muted); padding: 4px 8px 4px 0; }
  .page { margin-left: 0; }
  .doc { padding: 0 24px 50px; }
  .feature-grid, .tb-wrap, .credit-grid { grid-template-columns: 1fr; }
  .credit-feature { flex-direction: column; align-items: flex-start; padding: 24px 22px; }
  .hc-stats { grid-template-columns: repeat(2, 1fr); }
  .hero-card-inner { padding: 34px 26px 30px; }
  .cover { height: 120px; }
  .page-title { font-size: 1.9rem; }
}
@media (max-width: 560px) {
  .ind-grid, .edition-grid, .mod-grid { grid-template-columns: 1fr; }
  .ai-arrow { transform: rotate(90deg); }
  .flow-detail { padding: 18px 16px; }
  .footer { padding: 20px 24px; }
}
