/* ============================================================================
 * LarkMentor v-c · Editorial-Pro 主样式
 * 浅色 + 暗色双主题；主色取飞书蓝；强调色琥珀
 * ========================================================================== */

:root {
  --bg: #fafaf9;
  --bg2: #ffffff;
  --bg3: #f4f4f3;
  --fg: #0a0a09;
  --fg2: #4a4a48;
  --fg3: #8a8a87;
  --line: #e7e7e4;
  --line2: #d6d6d2;
  --accent: #3370FF;        /* 飞书蓝 */
  --accent-soft: #e8f0ff;
  --warn: #F59E0B;
  --warn-soft: #fef3c7;
  --ok: #10B981;
  --bad: #EF4444;
  --p0: #DC2626;
  --p1: #F59E0B;
  --p2: #10B981;
  --p3: #94A3B8;

  --font: 'Inter', -apple-system, BlinkMacSystemFont, 'PingFang SC', 'Microsoft YaHei', sans-serif;
  --mono: 'JetBrains Mono', ui-monospace, SFMono-Regular, Menlo, monospace;
}
[data-theme="dark"] {
  --bg: #0a0a09;
  --bg2: #131311;
  --bg3: #1c1c1a;
  --fg: #f5f5f3;
  --fg2: #b9b9b3;
  --fg3: #767672;
  --line: #2a2a27;
  --line2: #3a3a36;
  --accent: #6699FF;
  --accent-soft: rgba(102,153,255,0.12);
  --warn: #FBBF24;
  --warn-soft: rgba(251,191,36,0.12);
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--fg);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; cursor: pointer; background: none; border: 0; }
code, pre { font-family: var(--mono); }

/* ====== Layout ====== */
.container { max-width: 1100px; margin: 0 auto; padding: 80px 28px; }
.narrow    { max-width: 760px;  margin: 0 auto; padding: 80px 28px; }
.divider   { height: 1px; background: var(--line); width: min(900px, calc(100% - 56px)); margin: 0 auto; }

/* ====== Top nav ====== */
.topbar {
  position: sticky; top: 0; z-index: 100;
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: saturate(180%) blur(14px);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid var(--line);
}
.topbar .inner {
  max-width: 1180px; margin: 0 auto; padding: 14px 28px;
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
}
.topbar .logo {
  display: inline-flex; align-items: center; gap: 9px;
  font-weight: 800; font-size: 1.02rem; letter-spacing: -.01em;
}
.topbar .logo .dot {
  width: 9px; height: 9px; border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 4px color-mix(in srgb, var(--accent) 22%, transparent);
  animation: pulseDot 2.4s ease-in-out infinite;
}
.topbar .links { display: flex; align-items: center; gap: 6px; }
.topbar .links a {
  font-size: .82rem; color: var(--fg2); padding: 8px 11px; border-radius: 6px;
  transition: all .15s;
}
.topbar .links a:hover { background: var(--bg3); color: var(--fg); }
.theme-btn {
  margin-left: 6px; width: 32px; height: 32px; border-radius: 50%;
  display: inline-flex; align-items: center; justify-content: center;
  background: var(--bg3); color: var(--fg2); font-size: 1rem; transition: all .15s;
}
.theme-btn:hover { color: var(--accent); }

/* ====== Hero ====== */
.hero { padding-top: 80px; padding-bottom: 56px; position: relative; overflow: hidden; }
.hero .tag {
  display: inline-block; padding: 5px 11px; border-radius: 999px;
  background: var(--accent-soft); color: var(--accent);
  font-size: .72rem; font-weight: 600; letter-spacing: .03em;
}
.hero h1 {
  font-size: clamp(2.2rem, 5.4vw, 4rem); font-weight: 800; line-height: 1.05;
  letter-spacing: -.025em; margin: 22px 0 22px;
}
.hero h1 em { font-style: normal; color: var(--accent); }
.hero .subtitle {
  font-size: clamp(1rem, 1.6vw, 1.18rem);
  color: var(--fg2); max-width: 680px; line-height: 1.6;
}
.hero .subtitle strong { color: var(--fg); font-weight: 700; }
.cta-row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }
.btn {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 11px 20px; border-radius: 8px; font-size: .88rem; font-weight: 600;
  border: 1px solid transparent; transition: all .18s; cursor: pointer;
}
.btn-primary { background: var(--accent); color: #fff; }
.btn-primary:hover { transform: translateY(-1px); box-shadow: 0 8px 22px -10px var(--accent); }
.btn-ghost { background: var(--bg2); color: var(--fg); border-color: var(--line); }
.btn-ghost:hover { border-color: var(--accent); color: var(--accent); }
.meta-row {
  margin-top: 20px; font-size: .82rem; color: var(--fg3);
  display: flex; flex-wrap: wrap; gap: 8px; align-items: center;
}
.meta-row .sep { opacity: .5; }
.meta-row strong { color: var(--fg2); font-weight: 600; }

/* Hero stats */
.stats {
  margin-top: 56px; display: grid; gap: 14px;
  grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
}
.stat {
  background: var(--bg2); border: 1px solid var(--line); border-radius: 10px;
  padding: 18px 18px;
}
.stat .v {
  font-family: var(--mono); font-size: 1.65rem; font-weight: 700;
  color: var(--accent); letter-spacing: -.02em;
}
.stat .k { margin-top: 4px; font-size: .8rem; font-weight: 600; }
.stat .n { margin-top: 2px; font-size: .7rem; color: var(--fg3); }

/* ====== Hero IM Simulator ====== */
.hero-grid {
  display: grid; gap: 36px; align-items: center;
  grid-template-columns: 1fr;
  margin-top: 30px;
}
@media (min-width: 980px) {
  .hero-grid { grid-template-columns: 1.1fr 1.05fr; }
}
.imsim-frame {
  background: var(--bg2); border: 1px solid var(--line); border-radius: 14px;
  overflow: hidden; box-shadow: 0 28px 60px -28px rgba(0,0,0,.25);
}
.imsim-bar {
  display: flex; align-items: center; gap: 8px;
  padding: 11px 14px; background: var(--bg3); border-bottom: 1px solid var(--line);
}
.imsim-bar .dot { width: 10px; height: 10px; border-radius: 50%; background: var(--line2); }
.imsim-bar .dot.r { background: #ff6058; }
.imsim-bar .dot.y { background: #ffbe2f; }
.imsim-bar .dot.g { background: #29c93f; }
.imsim-bar .title {
  margin-left: 6px; font-size: .76rem; color: var(--fg3); flex: 1;
}
.imsim-bar .badge {
  font-family: var(--mono); font-size: .68rem; padding: 3px 8px; border-radius: 4px;
  background: var(--accent-soft); color: var(--accent); font-weight: 600;
}
.imsim-body {
  position: relative; height: 480px; display: grid; grid-template-rows: 1fr auto;
  background: linear-gradient(180deg, var(--bg2), color-mix(in srgb, var(--bg2) 95%, var(--accent) 5%));
}
.imsim-stream {
  padding: 16px 18px 6px; overflow: hidden;
  display: flex; flex-direction: column; gap: 10px;
}
.imsim-msg {
  display: flex; gap: 10px; opacity: 0; transform: translateY(12px);
  animation: streamIn .55s cubic-bezier(.2,.8,.3,1) forwards;
}
.imsim-msg .av {
  width: 30px; height: 30px; border-radius: 50%;
  background: linear-gradient(135deg, var(--accent), var(--warn));
  flex-shrink: 0; display: inline-flex; align-items: center; justify-content: center;
  color: #fff; font-size: .72rem; font-weight: 700;
}
.imsim-msg .body {
  background: var(--bg3); border-radius: 10px; padding: 8px 12px;
  font-size: .82rem; max-width: 78%; position: relative;
}
.imsim-msg .body .who {
  font-size: .7rem; font-weight: 600; color: var(--fg2); margin-bottom: 2px;
  display: flex; gap: 6px; align-items: center;
}
.imsim-msg .body .text { color: var(--fg); line-height: 1.5; }
.imsim-msg.shielded .body { opacity: .55; filter: saturate(.5); }
.imsim-msg.shielded .body::after {
  content: '已为你延后'; position: absolute; right: -1px; top: -10px;
  font-size: .6rem; padding: 2px 6px; background: var(--bg3); border: 1px solid var(--line);
  color: var(--fg3); border-radius: 999px;
}
.imsim-msg.urgent .body {
  background: var(--warn-soft); border: 1px solid color-mix(in srgb, var(--warn) 50%, transparent);
}
.imsim-msg.urgent .body::after {
  content: 'P0 加急'; position: absolute; right: -1px; top: -10px;
  font-size: .6rem; padding: 2px 7px; background: var(--p0); color: #fff;
  border-radius: 999px; font-weight: 700;
}
.imsim-msg .scoreboard {
  margin-top: 6px; display: grid; grid-template-columns: repeat(6, 1fr); gap: 4px;
}
.imsim-msg .scoreboard div {
  height: 4px; border-radius: 2px; background: var(--line);
  position: relative; overflow: hidden;
}
.imsim-msg .scoreboard div::after {
  content: ''; position: absolute; left: 0; top: 0; height: 100%;
  background: var(--accent); width: 0;
  animation: scoreBar 1.1s cubic-bezier(.2,.8,.3,1) forwards;
}
.imsim-card {
  margin: 8px 0; background: var(--bg2);
  border: 1px solid var(--line); border-radius: 12px; padding: 12px 14px;
  font-size: .78rem; box-shadow: 0 18px 40px -22px rgba(0,0,0,.18);
  opacity: 0; transform: translateY(14px) scale(.96);
  animation: cardFlip .8s cubic-bezier(.2,.8,.3,1) forwards;
}
.imsim-card .ttl { font-weight: 700; color: var(--accent); font-size: .82rem; margin-bottom: 6px; }
.imsim-card .sub { color: var(--fg3); font-size: .72rem; }
.imsim-card .body { margin-top: 6px; color: var(--fg2); line-height: 1.55; font-size: .78rem; }
.imsim-card .actions {
  margin-top: 8px; display: flex; gap: 6px;
}
.imsim-card .actions span {
  font-size: .68rem; padding: 4px 9px; border-radius: 6px;
  background: var(--bg3); color: var(--fg2);
}
.imsim-card .actions span.primary {
  background: var(--accent); color: #fff;
}

.imsim-controls {
  border-top: 1px solid var(--line); padding: 8px 14px;
  display: flex; align-items: center; gap: 10px; background: var(--bg2);
}
.imsim-controls button {
  width: 28px; height: 28px; border-radius: 6px;
  display: inline-flex; align-items: center; justify-content: center;
  background: var(--bg3); color: var(--fg2); font-size: .8rem;
}
.imsim-controls button:hover { color: var(--accent); }
.imsim-controls .progress { flex: 1; position: relative; height: 4px; background: var(--bg3); border-radius: 2px; overflow: hidden; }
.imsim-controls .progress > i {
  display: block; height: 100%; background: var(--accent); width: 0%;
}
.imsim-controls .label {
  font-family: var(--mono); font-size: .68rem; color: var(--fg3);
  white-space: nowrap;
}

/* ====== Section base ====== */
.section-tag {
  font-family: var(--mono); font-size: .72rem; color: var(--accent);
  font-weight: 600; letter-spacing: .12em; text-transform: uppercase;
}
.section-title {
  font-size: clamp(1.6rem, 3.2vw, 2.4rem); font-weight: 800;
  letter-spacing: -.02em; margin: 12px 0 18px; line-height: 1.15;
}
.section-title em { font-style: normal; color: var(--accent); }
.section-desc { color: var(--fg2); font-size: 1rem; max-width: 760px; line-height: 1.7; }

.reveal { opacity: 0; transform: translateY(18px); transition: opacity .65s ease, transform .65s ease; }
.reveal.visible { opacity: 1; transform: none; }

.quote-block {
  margin-top: 38px; padding: 22px 26px;
  border-left: 3px solid var(--accent);
  background: var(--bg2); border-radius: 0 10px 10px 0;
  font-size: 1.02rem; color: var(--fg2); line-height: 1.6;
}
.quote-block .attr { display: block; margin-top: 8px; font-size: .78rem; color: var(--fg3); }

/* ====== Two Pains ====== */
.pains-grid {
  margin-top: 36px; display: grid; gap: 26px;
  grid-template-columns: 1fr; align-items: stretch;
}
@media (min-width: 880px) {
  .pains-grid { grid-template-columns: 1fr 80px 1fr; align-items: stretch; }
}
.pain-card {
  background: var(--bg2); border: 1px solid var(--line); border-radius: 14px;
  padding: 26px 24px; position: relative; overflow: hidden;
}
.pain-card .lbl {
  font-family: var(--mono); font-size: .7rem; font-weight: 600;
  letter-spacing: .1em; color: var(--accent);
}
.pain-card h3 {
  font-size: 1.15rem; font-weight: 700; margin: 8px 0 12px; letter-spacing: -.01em;
}
.pain-card p { font-size: .9rem; color: var(--fg2); line-height: 1.65; }
.pain-card .sample {
  margin-top: 14px; padding: 10px 12px; background: var(--bg3); border-radius: 8px;
  font-size: .78rem; color: var(--fg2); font-family: var(--mono);
}
.pain-merge {
  display: flex; align-items: center; justify-content: center; min-height: 80px;
  position: relative;
}
.pain-merge svg { width: 80px; height: 80px; }
.pain-merge .ring {
  position: absolute; width: 64px; height: 64px; border-radius: 50%;
  border: 2px solid var(--accent);
  animation: ringPulse 1.8s ease-out infinite;
}

/* ====== Solution / Skill cards ====== */
.solution-grid {
  margin-top: 36px; display: grid; gap: 20px;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}
.sol-card {
  background: var(--bg2); border: 1px solid var(--line); border-radius: 14px;
  padding: 24px 22px; position: relative; transition: all .2s; overflow: hidden;
}
.sol-card:hover { border-color: var(--accent); transform: translateY(-2px); }
.sol-card .meta { display: flex; justify-content: space-between; align-items: center; }
.sol-card .meta .num {
  font-family: var(--mono); font-size: .72rem; color: var(--fg3); font-weight: 600;
}
.sol-card .meta .tag {
  font-size: .68rem; padding: 3px 8px; background: var(--accent-soft);
  color: var(--accent); border-radius: 999px; font-weight: 600;
}
.sol-card h3 {
  font-size: 1.05rem; font-weight: 700; margin: 12px 0 8px; letter-spacing: -.01em;
}
.sol-card p { font-size: .84rem; color: var(--fg2); line-height: 1.6; }
.sol-card ul { margin-top: 10px; padding-left: 18px; font-size: .78rem; color: var(--fg2); }
.sol-card ul li { margin-bottom: 4px; line-height: 1.5; }
.sol-card .toolname {
  margin-top: 12px; font-family: var(--mono); font-size: .72rem;
  color: var(--fg3); padding-top: 10px; border-top: 1px dashed var(--line);
}
.sol-card .toolname code { color: var(--accent); }

/* ====== Smart Shield ====== */
.shield-wrap {
  margin-top: 36px; display: grid; gap: 24px;
  grid-template-columns: 1fr;
}
@media (min-width: 920px) {
  .shield-wrap { grid-template-columns: 1.1fr 1fr; }
}
.shield-input {
  background: var(--bg2); border: 1px solid var(--line); border-radius: 14px;
  padding: 20px;
}
.shield-input textarea {
  width: 100%; min-height: 90px; padding: 11px 12px;
  border: 1px solid var(--line); border-radius: 8px; font: inherit;
  background: var(--bg); color: var(--fg); resize: vertical;
}
.shield-input textarea:focus { outline: 0; border-color: var(--accent); }
.shield-input .row { display: flex; gap: 10px; margin-top: 10px; flex-wrap: wrap; }
.shield-input select, .shield-input input[type="text"] {
  flex: 1; min-width: 130px; padding: 8px 10px;
  border: 1px solid var(--line); border-radius: 8px; font: inherit;
  background: var(--bg); color: var(--fg);
}
.shield-input button {
  margin-top: 12px; padding: 10px 16px; background: var(--accent); color: #fff;
  border-radius: 8px; font-weight: 600; font-size: .88rem;
}
.shield-output {
  background: var(--bg2); border: 1px solid var(--line); border-radius: 14px;
  padding: 20px;
}
.shield-output .head {
  display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 12px;
}
.shield-output .verdict {
  font-family: var(--mono); font-size: 1rem; padding: 4px 12px; border-radius: 6px;
  font-weight: 700;
}
.shield-output .verdict.p0 { background: #fee2e2; color: var(--p0); }
.shield-output .verdict.p1 { background: var(--warn-soft); color: var(--warn); }
.shield-output .verdict.p2 { background: #dcfce7; color: var(--p2); }
.shield-output .verdict.p3 { background: var(--bg3); color: var(--p3); }
.shield-output .total { font-family: var(--mono); font-size: .8rem; color: var(--fg3); }
.dim-row {
  display: grid; grid-template-columns: 80px 1fr 36px;
  align-items: center; gap: 10px; margin-bottom: 9px; font-size: .8rem;
}
.dim-row .name { color: var(--fg2); font-weight: 600; }
.dim-row .bar {
  height: 8px; background: var(--bg3); border-radius: 4px; overflow: hidden;
}
.dim-row .bar > i {
  display: block; height: 100%; background: var(--accent);
  width: 0; transition: width .8s cubic-bezier(.2,.8,.3,1);
}
.dim-row .val { font-family: var(--mono); font-size: .76rem; color: var(--fg3); text-align: right; }

/* ====== Mentor Skills ====== */
.skills-grid {
  margin-top: 36px; display: grid; gap: 20px;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}
.skill-card {
  background: var(--bg2); border: 1px solid var(--line); border-radius: 14px;
  padding: 20px; min-height: 280px; display: flex; flex-direction: column;
}
.skill-card .top { display: flex; gap: 10px; align-items: center; margin-bottom: 12px; }
.skill-card .icon {
  width: 36px; height: 36px; border-radius: 8px;
  display: inline-flex; align-items: center; justify-content: center;
  background: var(--accent-soft); color: var(--accent); font-size: 1rem; font-weight: 700;
}
.skill-card .name { font-weight: 700; font-size: 1rem; }
.skill-card .desc { font-size: .82rem; color: var(--fg2); margin-bottom: 12px; line-height: 1.5; }
.skill-card .demo {
  flex: 1; background: var(--bg3); border-radius: 10px; padding: 12px;
  font-family: var(--mono); font-size: .76rem; line-height: 1.55;
  position: relative; overflow: hidden; min-height: 130px;
}
.skill-card .demo .label {
  font-size: .66rem; color: var(--fg3); margin-bottom: 4px; letter-spacing: .08em; text-transform: uppercase;
}
.skill-card .demo .typed {
  border-right: 2px solid var(--accent); padding-right: 2px;
}
.skill-card .demo .diff-add { color: var(--ok); background: color-mix(in srgb, var(--ok) 15%, transparent); padding: 1px 3px; border-radius: 3px; }
.skill-card .demo .diff-del { color: var(--bad); background: color-mix(in srgb, var(--bad) 15%, transparent); padding: 1px 3px; border-radius: 3px; text-decoration: line-through; }
.skill-card .demo .step { opacity: 0; transform: translateY(6px); animation: streamIn .5s ease forwards; }

/* ====== FlowMemory ====== */
.memory-wrap {
  margin-top: 38px; display: grid; gap: 20px;
  grid-template-columns: 1fr;
}
@media (min-width: 880px) {
  .memory-wrap { grid-template-columns: 1.4fr 1fr; }
}
.memory-pipeline {
  background: var(--bg2); border: 1px solid var(--line); border-radius: 14px;
  padding: 22px; position: relative;
}
.mem-flow { display: grid; grid-template-columns: 1fr 30px 1fr 30px 1fr; align-items: center; gap: 8px; }
.mem-node {
  background: var(--bg3); border-radius: 10px; padding: 14px 12px; text-align: center;
}
.mem-node .lvl { font-family: var(--mono); font-size: .68rem; color: var(--accent); font-weight: 600; }
.mem-node .nm { font-weight: 700; font-size: .9rem; margin: 4px 0; }
.mem-node .desc { font-size: .72rem; color: var(--fg3); }
.mem-node.active { background: var(--accent-soft); }
.mem-arrow {
  text-align: center; color: var(--fg3); font-family: var(--mono);
}
.mem-pkg {
  margin-top: 18px; background: var(--bg3); border-radius: 8px; padding: 10px;
  font-family: var(--mono); font-size: .76rem; color: var(--fg2);
  min-height: 80px;
}
.mem-pkg .line { opacity: 0; animation: streamIn .5s ease forwards; padding: 2px 0; }
.mem-md {
  background: var(--bg2); border: 1px solid var(--line); border-radius: 14px;
  padding: 18px; display: flex; flex-direction: column; gap: 6px;
}
.mem-md h4 { font-size: .9rem; margin-bottom: 6px; }
.mem-tier {
  display: flex; align-items: center; gap: 10px;
  padding: 8px 10px; border-radius: 8px; font-size: .8rem;
  background: var(--bg3);
  opacity: 0; transform: translateX(-10px);
  animation: tierFold .5s ease forwards;
}
.mem-tier .num {
  width: 22px; height: 22px; border-radius: 50%;
  display: inline-flex; align-items: center; justify-content: center;
  background: var(--accent); color: #fff; font-size: .7rem; font-weight: 700;
  flex-shrink: 0;
}
.mem-tier .nm { font-weight: 600; flex: 1; }
.mem-tier .ex { color: var(--fg3); font-size: .72rem; font-family: var(--mono); }

/* ====== Engine ====== */
.engine-wrap {
  margin-top: 36px; display: flex; flex-direction: column; gap: 12px;
  background: var(--bg2); border: 1px solid var(--line); border-radius: 14px;
  padding: 24px;
}
.layer-row { display: flex; align-items: center; gap: 14px; }
.layer-row .layer-name {
  width: 130px; flex-shrink: 0; font-family: var(--mono);
  font-size: .78rem; color: var(--accent); font-weight: 700;
}
.layer-row .nodes { display: flex; flex: 1; flex-wrap: wrap; gap: 8px; }
.layer-row .node {
  padding: 7px 12px; background: var(--bg3); border-radius: 6px;
  font-size: .76rem; font-weight: 600; color: var(--fg2);
  transition: all .15s;
}
.layer-row .node:hover { background: var(--accent-soft); color: var(--accent); }
.engine-insp {
  margin-top: 18px; padding-top: 18px; border-top: 1px dashed var(--line);
  display: flex; flex-direction: column; gap: 8px;
}
.insp-row {
  display: flex; gap: 8px; align-items: center; font-size: .8rem; flex-wrap: wrap;
}
.insp-row .from { font-family: var(--mono); color: var(--accent); font-weight: 600; }
.insp-row .arrow { color: var(--fg3); }
.insp-row .to { font-family: var(--mono); font-weight: 600; }
.insp-row .detail { color: var(--fg3); font-size: .76rem; }

/* ====== MCP Live ====== */
.mcp-grid {
  margin-top: 36px; display: grid; gap: 14px;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}
.mcp-card {
  background: var(--bg2); border: 1px solid var(--line); border-radius: 12px;
  padding: 16px; position: relative; cursor: pointer; transition: all .15s;
}
.mcp-card:hover { border-color: var(--accent); transform: translateY(-2px); }
.mcp-card .nm { font-family: var(--mono); font-weight: 700; font-size: .85rem; color: var(--accent); }
.mcp-card .doc { margin-top: 6px; font-size: .76rem; color: var(--fg2); line-height: 1.5; min-height: 48px; }
.mcp-card .badge {
  font-size: .64rem; padding: 2px 7px; border-radius: 999px;
  background: var(--accent-soft); color: var(--accent); font-weight: 700;
  position: absolute; top: 14px; right: 14px;
}
.mcp-card .badge.alias { background: var(--bg3); color: var(--fg3); }
.mcp-result {
  margin-top: 18px; background: var(--bg2); border: 1px solid var(--line);
  border-radius: 12px; padding: 16px; font-family: var(--mono); font-size: .76rem;
  color: var(--fg2); white-space: pre-wrap; max-height: 320px; overflow: auto; line-height: 1.5;
}
.mcp-result .ok { color: var(--ok); }
.mcp-result .err { color: var(--bad); }

/* ====== Security ====== */
.gate-grid {
  margin-top: 36px; display: grid; gap: 14px;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
}
.gate-card {
  background: var(--bg2); border: 1px solid var(--line); border-radius: 12px;
  padding: 18px 16px; display: flex; gap: 12px; align-items: center;
  position: relative; overflow: hidden;
}
.gate-card .ring {
  width: 38px; height: 38px; border-radius: 50%; flex-shrink: 0;
  display: inline-flex; align-items: center; justify-content: center;
  font-family: var(--mono); font-weight: 700; font-size: .82rem;
  color: var(--accent); border: 2px solid var(--accent);
  background: var(--accent-soft);
  position: relative;
}
.gate-card .ring::after {
  content: ''; position: absolute; inset: -4px; border-radius: 50%;
  border: 2px solid color-mix(in srgb, var(--accent) 35%, transparent);
  animation: ringPulse 1.6s ease-out infinite;
}
.gate-card .nm { font-weight: 700; font-size: .9rem; }
.gate-card .desc { font-size: .74rem; color: var(--fg3); margin-top: 2px; line-height: 1.45; }

.privacy-grid {
  margin-top: 22px; display: grid; gap: 14px;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}
.privacy-card {
  background: var(--bg2); border: 1px solid var(--line); border-radius: 10px;
  padding: 14px 16px; font-size: .82rem; color: var(--fg2);
}
.privacy-card strong { color: var(--fg); }

/* ====== Status ====== */
.status-grid {
  margin-top: 36px; display: grid; gap: 18px;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}
.status-col {
  background: var(--bg2); border: 1px solid var(--line); border-radius: 12px;
  padding: 18px;
}
.status-col h3 { font-size: 1rem; margin-bottom: 12px; display: flex; align-items: center; gap: 8px; }
.status-col h3 .dot { width: 8px; height: 8px; border-radius: 50%; }
.status-col.built h3 .dot { background: var(--ok); }
.status-col.lab h3 .dot { background: var(--warn); }
.status-col.planned h3 .dot { background: var(--fg3); }
.status-col ul { padding-left: 0; list-style: none; }
.status-col ul li {
  font-size: .82rem; color: var(--fg2);
  padding: 6px 0; border-bottom: 1px dashed var(--line);
}
.status-col ul li:last-child { border-bottom: 0; }

/* ====== Tracks + API ====== */
.tracks-grid {
  margin-top: 36px; display: grid; gap: 18px;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}
.track-card {
  background: var(--bg2); border: 1px solid var(--line); border-radius: 14px;
  padding: 22px; position: relative;
}
.track-card .rank {
  position: absolute; top: 18px; right: 18px;
  font-family: var(--mono); font-size: .72rem; padding: 3px 9px;
  background: var(--accent-soft); color: var(--accent); border-radius: 999px; font-weight: 700;
}
.track-card .name { font-weight: 700; font-size: 1.05rem; margin-bottom: 6px; padding-right: 70px; }
.track-card .topic { font-size: .82rem; color: var(--fg2); margin-bottom: 12px; line-height: 1.55; }
.track-card .map {
  font-size: .76rem; color: var(--fg3); padding-top: 10px; border-top: 1px dashed var(--line);
}
.track-card .map code { color: var(--accent); }

.api-cloud {
  margin-top: 28px; display: flex; flex-wrap: wrap; gap: 10px;
}
.api-chip {
  display: inline-flex; gap: 6px; align-items: center;
  padding: 7px 12px; background: var(--bg2); border: 1px solid var(--line);
  border-radius: 999px; font-family: var(--mono); font-size: .78rem;
}
.api-chip .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--ok); }
.api-chip.lab .dot { background: var(--warn); }

/* ====== Team ====== */
.team-grid {
  margin-top: 36px; display: grid; gap: 24px;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}
.team-card {
  background: var(--bg2); border: 1px solid var(--line); border-radius: 16px;
  padding: 28px 26px; position: relative; overflow: hidden;
}
.team-card .row {
  display: flex; gap: 16px; align-items: center;
}
.team-card .avatar {
  width: 64px; height: 64px; border-radius: 50%;
  background: linear-gradient(135deg, var(--accent), var(--warn));
  display: inline-flex; align-items: center; justify-content: center;
  color: #fff; font-weight: 700; font-size: 1.2rem; flex-shrink: 0;
}
.team-card h3 { font-size: 1.15rem; font-weight: 700; }
.team-card .role { font-size: .82rem; color: var(--fg2); margin-top: 2px; }
.team-card .bio { font-size: .85rem; color: var(--fg2); line-height: 1.65; margin-top: 14px; }
.team-card .links {
  margin-top: 14px; display: flex; flex-wrap: wrap; gap: 8px;
}
.team-card .links a {
  display: inline-flex; align-items: center; gap: 4px;
  padding: 6px 11px; background: var(--bg3); border-radius: 6px;
  font-size: .76rem; color: var(--fg2);
  transition: all .15s;
}
.team-card .links a:hover { background: var(--accent-soft); color: var(--accent); }

.team-narrative {
  margin-top: 28px; padding: 20px 22px;
  background: var(--bg2); border: 1px solid var(--line); border-radius: 12px;
  font-size: .92rem; color: var(--fg2); line-height: 1.7;
}

/* ====== Resources / FAQ ====== */
.res-grid {
  margin-top: 30px; display: grid; gap: 12px;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}
.res-card {
  background: var(--bg2); border: 1px solid var(--line); border-radius: 10px;
  padding: 16px; transition: all .15s; display: block;
}
.res-card:hover { border-color: var(--accent); transform: translateY(-2px); }
.res-card .ttl { font-weight: 700; color: var(--fg); font-size: .92rem; }
.res-card .url { font-family: var(--mono); font-size: .72rem; color: var(--fg3); margin-top: 4px; }

.faq-list { display: flex; flex-direction: column; gap: 10px; }
.faq-item {
  background: var(--bg2); border: 1px solid var(--line); border-radius: 10px;
  padding: 16px 18px;
}
.faq-item summary {
  cursor: pointer; font-weight: 600; font-size: .94rem;
  list-style: none; display: flex; justify-content: space-between; align-items: center;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: '+'; color: var(--fg3); }
.faq-item[open] summary::after { content: '−'; }
.faq-item p {
  margin-top: 10px; font-size: .86rem; color: var(--fg2); line-height: 1.6;
}

/* ====== Footer ====== */
.site-footer {
  border-top: 1px solid var(--line); padding: 36px 0 56px;
  background: var(--bg);
}
.site-footer p { font-size: .82rem; color: var(--fg3); }
.site-footer .links {
  margin-top: 14px; display: flex; flex-wrap: wrap; gap: 14px;
  font-size: .82rem;
}
.site-footer .links a { color: var(--accent); }
.site-footer .links a:hover { text-decoration: underline; }

/* ====== Animations ====== */
@keyframes streamIn {
  to { opacity: 1; transform: none; }
}
@keyframes tierFold {
  to { opacity: 1; transform: none; }
}
@keyframes scoreBar {
  to { width: var(--w, 75%); }
}
@keyframes cardFlip {
  to { opacity: 1; transform: none; }
}
@keyframes pulseDot {
  0%, 100% { box-shadow: 0 0 0 0 color-mix(in srgb, var(--accent) 40%, transparent); }
  50%      { box-shadow: 0 0 0 6px color-mix(in srgb, var(--accent) 0%, transparent); }
}
@keyframes ringPulse {
  0%   { transform: scale(.6); opacity: .9; }
  100% { transform: scale(1.4); opacity: 0; }
}

/* Hide scrollbar in stream */
.imsim-stream::-webkit-scrollbar { width: 0; height: 0; }
