.hero { padding: 64px 0 40px; }
.hero-badge {
  display: inline-block; font-size: 12px; font-weight: 700; color: var(--accent);
  background: #eff6ff; border: 1px solid #bfdbfe; border-radius: 20px;
  padding: 3px 14px; margin-bottom: 20px; letter-spacing: .5px;
}
.hero h1 { font-size: 40px; line-height: 1.22; font-weight: 800; letter-spacing: -.02em; margin-bottom: 16px; }
.hero h1 .hl { color: var(--accent); }
.hero-tagline { font-size: 16px; color: var(--muted); max-width: 720px; margin-bottom: 30px; }
.cap-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.cap-card { border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; background: #fff; }
.cap-card .cap-icon { font-size: 22px; margin-bottom: 8px; }
.cap-card .cap-title { font-weight: 700; font-size: 14.5px; margin-bottom: 4px; }
.cap-card .cap-desc { font-size: 12.5px; color: var(--muted); line-height: 1.5; }
.section { padding: 52px 0; border-top: 1px solid var(--line); }
.section-title { font-size: 26px; font-weight: 800; letter-spacing: -.01em; margin-bottom: 6px; }
.section-title .accent { color: var(--accent); }
.section-sub { color: var(--muted); font-size: 14.5px; margin-bottom: 26px; max-width: 760px; }
.memory-flow {
  display: grid; grid-template-columns: 1fr 40px 1fr 40px 1fr;
  align-items: stretch; border: 1px solid var(--line);
  border-radius: 12px; overflow: hidden;
}
.mf-col { padding: 18px; }
.mf-col:not(:last-child) { border-right: 1px solid var(--line); }
.mf-arrow { display: flex; align-items: center; justify-content: center; font-size: 20px; color: var(--accent); background: #fafbfc; }
.ms-head { font-size: 12px; font-weight: 700; color: var(--accent); text-transform: uppercase; letter-spacing: 1px; margin-bottom: 14px; }
.ms-source { display: flex; align-items: center; gap: 8px; border: 1px solid var(--line); border-radius: 8px; padding: 10px 12px; margin-bottom: 8px; background: #fff; }
.ms-source:last-child { margin-bottom: 0; }
.ms-src-icon { font-size: 16px; }
.ms-src-type { font-size: 13px; font-weight: 600; }
.mf-normalize { border: 1px dashed var(--accent); border-radius: 8px; padding: 14px; font-size: 12.5px; color: var(--ink); background: #eff6ff; line-height: 1.6; }
.ms-sum {
  border: 1px solid var(--line); border-radius: 8px; padding: 12px;
  margin-bottom: 10px; display: flex; flex-direction: column; gap: 6px;
}
.ms-sum-text { font-size: 13px; font-weight: 600; }
.ms-sum-ref { font-size: 11.5px; color: var(--accent); font-weight: 600; }
.ms-note { margin-top: 14px; font-size: 12.5px; color: var(--muted); line-height: 1.6; }
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: 12px; }
.agents-table { width: 100%; border-collapse: collapse; font-size: 13.5px; background: #fff; }
.agents-table th {
  text-align: left; font-weight: 700; color: var(--muted);
  padding: 13px 16px; border-bottom: 2px solid var(--line);
  font-size: 12px; text-transform: uppercase; letter-spacing: .5px; white-space: nowrap;
}
.agents-table td { padding: 14px 16px; border-bottom: 1px solid var(--line); vertical-align: top; }
.agents-table tr:last-child td { border-bottom: none; }
.agent-cell { white-space: nowrap; font-weight: 600; }
.agent-id { font-weight: 800; }
tr.agent .agent-id { color: var(--agent); }
tr.accent .agent-id { color: var(--accent); }
tr.human .agent-id { color: var(--human); }
tr.reviewer .agent-id { color: var(--reviewer); }
tr.agent-e .agent-id { color: var(--muted); }
.goal-cell { font-weight: 700; color: var(--ok); white-space: nowrap; }
tr.agent-e td { color: var(--muted); }
.storage-box { border: 1px solid var(--line); border-radius: 12px; overflow: hidden; }
.storage-layer { padding: 18px; border-bottom: 1px solid var(--line); }
.storage-layer:last-child { border-bottom: none; }
.storage-layer:nth-child(2) { background: #fafbfc; }
.layer-title { font-size: 13px; font-weight: 700; color: var(--accent); margin-bottom: 12px; }
.layer-files { display: flex; gap: 8px; flex-wrap: wrap; }
.file-tag { font-size: 12.5px; border: 1px solid var(--line); border-radius: 6px; padding: 5px 12px; background: #fff; }
.storage-table-wrap { overflow-x: auto; }
.storage-table { width: 100%; border-collapse: collapse; font-size: 13px; }
.storage-table th {
  text-align: left; font-weight: 600; color: var(--muted);
  padding: 8px 12px; border-bottom: 1px solid var(--line);
  font-size: 11.5px; text-transform: uppercase; letter-spacing: .5px; white-space: nowrap;
}
.storage-table td { padding: 8px 12px; border-bottom: 1px solid var(--line); }
.storage-table tr:last-child td { border-bottom: none; }
.next-card {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  border: 1px solid var(--line); border-radius: 12px; padding: 20px 24px;
  text-decoration: none; color: var(--ink); background: #fff;
  transition: border-color .2s, box-shadow .2s, transform .2s;
}
.next-card:hover { border-color: var(--accent); box-shadow: 0 10px 28px rgba(37,99,235,.12); transform: translateY(-2px); }
.next-main { display: flex; flex-direction: column; gap: 4px; }
.next-name { font-weight: 800; font-size: 16px; }
.next-desc { font-size: 13px; color: var(--muted); }
.next-go { font-size: 14px; color: var(--accent); font-weight: 700; white-space: nowrap; }
.example-selector { display: flex; gap: 10px; margin-bottom: 20px; flex-wrap: wrap; }
.example-btn {
  background: #fff; border: 1px solid var(--line); border-radius: 8px;
  color: var(--muted); padding: 8px 18px; font-size: 13.5px;
  cursor: pointer; font-family: inherit; font-weight: 600;
}
.example-btn:hover { border-color: #bfdbfe; color: var(--ink); }
.example-btn.active { border-color: var(--accent); color: var(--accent); background: #eff6ff; }
.chat { border: 1px solid var(--line); border-radius: 12px; overflow: hidden; background: #fff; }
.chat-head {
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
  padding: 13px 18px; border-bottom: 1px solid var(--line);
  background: #fafbfc; flex-wrap: wrap;
}
.chat-title { font-weight: 700; font-size: 14px; }
.chat-sources { display: flex; gap: 6px; flex-wrap: wrap; }
.src-tag { font-size: 11.5px; color: var(--muted); border: 1px solid var(--line); border-radius: 5px; padding: 2px 8px; background: #fff; }
.chat-body { max-height: 480px; overflow-y: auto; background: #f5f6f8; }
.chat-msg { display: flex; gap: 10px; padding: 12px 16px; align-items: flex-start; }
.chat-msg .msg-avatar {
  flex: 0 0 36px; width: 36px; height: 36px; border-radius: 6px;
  display: flex; align-items: center; justify-content: center;
  background: #e5e7eb; font-size: 18px;
}
.chat-msg.pm .msg-avatar { background: #fce7f3; }
.chat-msg.agent .msg-avatar { background: #ede9fe; }
.chat-msg.accent .msg-avatar { background: #dbeafe; }
.chat-msg.reviewer .msg-avatar { background: #ccfbf1; }
.chat-msg.human .msg-avatar { background: #fef3c7; }
.chat-msg .msg-main { flex: 1; min-width: 0; }
.chat-msg .msg-name { font-size: 12px; color: var(--muted); margin-bottom: 4px; }
.chat-msg.pm .msg-name { color: var(--pm); }
.chat-msg.agent .msg-name { color: var(--agent); }
.chat-msg.accent .msg-name { color: var(--accent); }
.chat-msg.reviewer .msg-name { color: var(--reviewer); }
.chat-msg.human .msg-name { color: var(--human); }
.chat-msg .msg-attach { margin-bottom: 6px; display: flex; gap: 6px; flex-wrap: wrap; }
.attach-tag {
  font-size: 11px; color: var(--muted); border: 1px solid var(--line);
  border-radius: 5px; padding: 2px 8px; background: #fff;
}
.chat-msg .msg-bubble {
  display: inline-block; max-width: 100%;
  background: #fff; border-radius: 4px 12px 12px 12px;
  padding: 9px 13px; font-size: 14px; line-height: 1.6;
  box-shadow: 0 1px 2px rgba(0,0,0,.04);
}
.chat-msg .mention { color: var(--accent); font-weight: 600; }
.chat-msg .msg-punch {
  margin-top: 6px; padding: 6px 10px; border-radius: 6px;
  background: #fef3c7; border: 1px solid #fde68a;
  font-size: 12px; font-weight: 600; color: #92400e;
}
.chat-msg.tool { justify-content: center; padding: 12px 16px; }
.chat-msg.tool .msg-text { font-size: 13px; color: var(--muted); }
.chat-ctrl { display: flex; align-items: center; gap: 14px; padding: 14px 18px; border-top: 1px solid var(--line); background: #fafbfc; }
.next-btn { background: var(--accent); color: #fff; border: none; border-radius: 8px; padding: 10px 24px; font-size: 14px; font-weight: 700; cursor: pointer; font-family: inherit; }
.next-btn:hover { filter: brightness(1.06); }
.round-progress { font-size: 12.5px; color: var(--muted); }
.sub-title { font-size: 17px; font-weight: 700; margin: 28px 0 14px; }
.doc-card { border: 1px solid var(--line); border-radius: 12px; overflow: hidden; background: #fff; }
.doc-head {
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
  padding: 18px 20px; border-bottom: 1px solid var(--line);
  background: #fafbfc; flex-wrap: wrap;
}
.doc-title { font-weight: 800; font-size: 16px; }
.doc-req { font-size: 12px; color: var(--accent); font-weight: 700; }
.doc-meta-row { display: flex; border-bottom: 1px solid var(--line); }
.doc-meta { flex: 1; padding: 14px 16px; border-right: 1px solid var(--line); text-align: center; }
.doc-meta:last-child { border-right: none; }
.doc-meta .dm-v { font-size: 19px; font-weight: 800; color: var(--accent); }
.doc-meta .dm-k { font-size: 11.5px; color: var(--muted); margin-top: 2px; }
.doc-table { width: 100%; border-collapse: collapse; font-size: 13.5px; }
.doc-table th {
  text-align: left; width: 110px; padding: 12px 18px;
  border-bottom: 1px solid var(--line); color: var(--muted);
  font-weight: 600; font-size: 12px; vertical-align: top;
}
.doc-table td { padding: 12px 18px; border-bottom: 1px solid var(--line); }
.doc-table tr:last-child th, .doc-table tr:last-child td { border-bottom: none; }
.doc-feed { padding: 13px 20px; font-size: 13px; color: var(--ok); background: #f0fdf4; border-top: 1px solid #dcfce7; }
.review-panel { border: 1px solid var(--line); border-radius: 12px; padding: 18px 20px; background: #fff; margin-top: 14px; }
.review-actions { display: flex; gap: 10px; margin-bottom: 12px; flex-wrap: wrap; }
.review-btn {
  border: 1px solid var(--line); border-radius: 8px;
  background: #fff; color: var(--ink); padding: 9px 20px;
  font-size: 13.5px; font-weight: 600; cursor: pointer; font-family: inherit;
}
.review-btn.approve { border-color: #bbf7d0; color: var(--ok); }
.review-btn.approve:hover { background: #f0fdf4; }
.review-btn.reject { border-color: #fecaca; color: #b91c1c; }
.review-btn.reject:hover { background: #fef2f2; }
.review-status { font-size: 13px; color: var(--muted); }
.review-status.ok { color: var(--ok); }
.review-status.no { color: #b91c1c; }
.footer { padding: 32px 0; text-align: center; color: var(--muted); font-size: 13px; border-top: 1px solid var(--line); }
.footer .accent { color: var(--accent); font-weight: 700; }
@media (max-width: 860px) {
  .memory-flow { grid-template-columns: 1fr; }
  .mf-col:not(:last-child) { border-right: none; border-bottom: 1px solid var(--line); }
  .mf-arrow { padding: 8px 0; }

}
@media (max-width: 620px) {
  .hero h1 { font-size: 28px; }
  .cap-grid { grid-template-columns: 1fr; }
  .nav-links { display: none; }
}
.norm-title { font-size: 12px; color: var(--muted); margin-bottom: 10px; line-height: 1.6; }
.norm-item { display: flex; align-items: center; gap: 8px; font-size: 13px; margin-bottom: 6px; }
.norm-from { font-weight: 600; color: var(--ink); }
.norm-arrow { color: var(--accent); }
.norm-to { color: var(--accent); font-weight: 600; }
.platform-box { display: flex; flex-direction: column; gap: 12px; }
.arch-layer {
  display: grid;
  grid-template-columns: 52px 1fr;
  background: var(--lb, #f9fafb);
  border: 1px solid var(--line);
  border-left: 3px solid var(--la, #6b7280);
  border-radius: 10px;
  overflow: hidden;
}
.arch-layer.external { border-style: dashed; border-left-style: dashed; }
.arch-label {
  writing-mode: vertical-rl;
  text-orientation: upright;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 14px;
  letter-spacing: 3px;
  color: var(--la, #6b7280);
  padding: 14px 0;
  background: rgba(255, 255, 255, .55);
}
.arch-items {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  gap: 10px;
  padding: 16px 20px;
}
.arch-item {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 10px 12px;
  font-size: 13px;
  font-weight: 600;
  color: var(--ink);
  text-align: center;
  box-shadow: 0 1px 2px rgba(16, 24, 40, .05);
}

.roadmap { display: flex; flex-direction: column; gap: 20px; }
.rm-phase { border: 1px solid var(--line); border-radius: 12px; padding: 20px; }
.rm-head { display: flex; align-items: center; gap: 12px; margin-bottom: 14px; flex-wrap: wrap; }
.rm-name { font-size: 16px; font-weight: 800; }
.rm-span { font-size: 13px; color: var(--muted); }
.rm-tag { font-size: 11px; font-weight: 700; color: var(--accent); border: 1px solid #bfdbfe; border-radius: 12px; padding: 2px 10px; background: #eff6ff; }
.rm-items { display: flex; flex-direction: column; gap: 10px; }
.rm-item { display: flex; gap: 14px; align-items: baseline; }
.rm-time { flex: 0 0 96px; font-size: 13px; font-weight: 700; color: var(--accent); }
.rm-title { font-size: 14px; }

.chat-msg .msg-main { display: flex; flex-direction: column; align-items: flex-start; }
.chat-msg.human { flex-direction: row-reverse; }
.chat-msg.human .msg-main { align-items: flex-end; }
.chat-msg.human .msg-name { text-align: right; }
.chat-msg.human .msg-bubble { background: #dbeafe; border-radius: 12px 4px 12px 12px; }