.mcp-hero .mcp-demo {
  --demo-ink: #101f3c;
  --demo-text: #4f6080;
  --demo-line: #d9e3f2;
  --demo-accent: #184dd1;
  --demo-accent-bg: #edf3ff;
  --demo-amber: #795010;
  --demo-amber-bg: #fff0cf;
  color: var(--demo-ink);
  background: #fff;
  border: 1px solid #dce8ff;
  border-radius: 22px;
  box-shadow: 0 20px 64px #030d3560, 0 0 0 6px #96b6ff1a;
  padding: clamp(13px, 2.2vw, 27px);
  container-type: inline-size;
}

.mcp-demo > .demo-top {
  display: flex;
  align-items: center;
  gap: 11px;
  color: var(--demo-text);
  font-size: .72rem;
  line-height: 1.2;
}

.mcp-demo > .demo-top img {
  background: var(--demo-accent-bg);
  padding: 6px;
  border-radius: 10px;
}

.demo-top #demo-title {
  margin: 3px 0 0;
  color: var(--demo-ink);
  font-size: clamp(1rem, 2vw, 1.3rem);
  letter-spacing: -.035em;
}

.mcp-demo .demo-tabs {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 3px;
  background: #f2f6fd;
  border: 1px solid var(--demo-line);
  border-radius: 11px;
  padding: 3px;
  margin: 16px 0;
}

.mcp-demo .demo-tabs a {
  display: grid;
  place-items: center;
  min-height: 44px;
  padding: 4px 2px;
  border: 0;
  border-radius: 8px;
  color: var(--demo-text);
  font-size: clamp(.69rem, 3.8cqi, .84rem);
  font-weight: 650;
  line-height: 1.12;
  text-align: center;
  text-decoration: none;
}

.mcp-demo .demo-tabs a:hover { background: #e2ebfd; }
.mcp-demo .demo-tabs a[aria-selected=true] {
  background: #fff;
  color: var(--demo-accent);
  box-shadow: 0 1px 4px #081e4b28;
}

.mcp-demo .example { scroll-margin-block-start: 6rem; }
.mcp-demo .example + .example:not([hidden]) { margin-top: 22px; }
.mcp-demo .example[hidden] { display: none; }

.mcp-demo .demo-question {
  width: fit-content;
  color: var(--demo-ink);
  background: var(--demo-accent-bg);
  padding: 8px 11px;
  border-radius: 3px 11px 11px;
  font-size: clamp(.83rem, 3.5cqi, 1rem);
  line-height: 1.35;
  margin: 0 0 12px;
}

.demo-stage {
  display: grid;
  min-width: 0;
  border: 1px solid var(--demo-line);
  border-radius: 13px;
  overflow: hidden;
  background: #fff;
}

.demo-result {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 4px 6px;
  min-width: 0;
  padding: 12px;
  background: #f1f5ff;
  border-bottom: 1px solid var(--demo-line);
  color: var(--demo-accent);
  line-height: 1.1;
}

.demo-result > b {
  font-family: Sora, Inter, sans-serif;
  font-variant-numeric: tabular-nums;
  font-size: clamp(2.4rem, 12cqi, 3.7rem);
  letter-spacing: -.09em;
  line-height: .98;
}

.demo-result > span:not(.delivery-status) { font-weight: 700; font-size: .75rem; }
.demo-result small { color: var(--demo-text); font-size: .73rem; }

.demo-evidence { padding: 8px 10px; min-width: 0; }
.demo-evidence h4 {
  margin: 0;
  padding: 2px 0 5px;
  color: var(--demo-text);
  font-size: .73rem;
  font-weight: 650;
}

.demo-readings { list-style: none; padding: 0; margin: 0; }
.demo-reading {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 43px;
  border-top: 1px solid var(--demo-line);
  padding: 5px 0;
}

.demo-thumb {
  flex: none;
  width: 42px;
  height: 42px;
  object-fit: cover;
  border: 1px solid var(--demo-line);
  border-radius: 7px;
}

.demo-measure { width: 100%; min-width: 0; }
.demo-reading-line {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 5px;
  width: 100%;
  min-width: 0;
  font-size: .76rem;
  line-height: 1.18;
}
.demo-reading-line b { flex: none; white-space: nowrap; font-variant-numeric: tabular-nums; }
.demo-reading small { display: block; margin-top: 4px; font-size: .68rem; color: var(--demo-text); }

.demo-bar {
  display: block;
  height: 5px;
  margin-top: 5px;
  border-radius: 3px;
  overflow: hidden;
  background: repeating-linear-gradient(90deg,#e8effc 0 calc(25% - 1px),#d5e0f4 calc(25% - 1px) 25%);
}
.demo-bar i {
  display: block;
  width: calc(var(--share) * 100%);
  height: 100%;
  transform-origin: left;
  border-radius: 3px;
  background: #5b84eb;
}

.scene-1 .demo-reading:first-child .demo-bar i { background: var(--demo-accent); }
.scene-2 .demo-reading:first-child .demo-bar i { background: #b96d13; }

.scene-3 .demo-reading { position: relative; min-height: 47px; border-top-color: transparent; }
.scene-3 .demo-reading + .demo-reading::before {
  content: "";
  position: absolute;
  left: 9px;
  width: 1px;
  height: 100%;
  bottom: 50%;
  background: #bbcdee;
}
.scene-3 .demo-reading:last-child::before {
  background: repeating-linear-gradient(#bbcdee 0 3px, transparent 3px 6px);
}

.demo-event {
  position: relative;
  z-index: 1;
  display: grid;
  place-items: center;
  width: 19px;
  height: 19px;
  flex: none;
  border-radius: 50%;
  background: var(--demo-accent-bg);
  color: var(--demo-accent);
  font-size: .75rem;
  font-weight: 750;
}

.scene-3 .demo-reading:last-child .demo-event, .delivery-status {
  background: var(--demo-amber-bg);
  color: var(--demo-amber);
}
.demo-time { color: var(--demo-text); }
.delivery-status {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  border-radius: 99px;
  padding: 4px 7px;
  font-size: .66rem;
  font-weight: 750;
  white-space: nowrap;
}
.demo-result .delivery-status { font-size: .84rem; }
.delivery-status i { width: 7px; height: 7px; border: 1px solid currentColor; border-radius: 50%; }

.mcp-demo .takeaway {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 7px;
  padding: 9px 0 0;
  margin: 0;
  color: var(--demo-ink);
  font-size: .78rem;
  line-height: 1.45;
}
.mcp-demo .takeaway span { color: var(--demo-accent); font-weight: 800; }
.mcp-demo .sample-label {
  display: block;
  margin-top: 9px;
  color: var(--demo-text);
  font-size: .68rem;
}

@container (min-width: 365px) {
  .demo-stage { grid-template-columns: minmax(0, .56fr) minmax(0, 1fr); }
  .demo-evidence { padding: 11px 12px; }
  .demo-result {
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
    padding: 15px;
    border-bottom: 0;
    border-right: 1px solid var(--demo-line);
  }
  .demo-result small { margin-top: 4px; }
  .scene-2 .demo-reading { min-height: 53px; }
  .scene-3 .demo-reading { min-height: 53px; }
}

@media (prefers-reduced-motion: no-preference) {
  .mcp-demo .example:not([hidden]) { animation: none; }
  .demo-enhanced .example:not([hidden]) .demo-question { animation: demo-reveal .24s ease-out both; }
  .demo-enhanced .example:not([hidden]) .demo-reading {
    animation: demo-reveal .36s ease-out both;
    animation-delay: calc(80ms + var(--step) * 85ms);
  }
  .demo-enhanced .example:not([hidden]) .demo-bar i {
    animation: demo-grow .57s cubic-bezier(.17,.64,.24,1) both;
    animation-delay: calc(155ms + var(--step) * 85ms);
  }
  .demo-enhanced .example:not([hidden]) .demo-result { animation: demo-reveal .38s .43s ease-out both; }
  .demo-enhanced .example:not([hidden]) .takeaway { animation: demo-reveal .3s .58s ease-out both; }
  @keyframes demo-reveal {
    from { opacity: 0; transform: translateY(5px); }
    to { opacity: 1; transform: translateY(0); }
  }
  @keyframes demo-grow {
    from { transform: scaleX(0); }
    to { transform: scaleX(1); }
  }
}
