/* Shared welcome and illustrated demo. No remote fonts, media or services. */
.home-page .mb-project-masthead { padding: clamp(24px, 3.5vw, 38px); gap: 24px 42px; }
.home-page .mb-project-masthead h1 { font-size: clamp(2.6rem, 4vw, 3.8rem); }
.home-page .mb-project-masthead__lead { max-width: 30ch; color: #eff5ff; font-size: clamp(1.2rem, 2.2vw, 1.65rem); font-weight: 650; line-height: 1.3; }
.home-page .mb-project-masthead__detail { color: #b7c6dc; max-width: 54ch; }
.home-page .mb-project-masthead__actions { align-items: stretch; }
.home-page .mb-project-action { min-height: 48px; }
.home-page .mb-project-action small { color: #b9d3ed; font-size: .67rem; letter-spacing: .03em; text-transform: none; font-weight: 450; }
.home-page .mb-project-masthead__links { gap: 16px; }
.mb-welcome {
  --mb-ink: #edf4ff;
  --mb-muted: #afc0d9;
  --mb-cyan: #8de8de;
  display: grid;
  grid-template-columns: minmax(210px, .78fr) minmax(0, 1.7fr);
  gap: 24px 30px;
  margin: 24px 0;
  padding: clamp(22px, 3vw, 32px);
  border: 1px solid #2c4058;
  border-radius: 18px;
  color: var(--mb-ink);
  background: radial-gradient(ellipse at 0 0, rgba(50, 111, 118, .14), transparent 55%), #0b1524;
  scroll-margin-top: 90px;
}
.mb-welcome [hidden] { display: none !important; }
.mb-welcome__intro { min-width: 0; }
.mb-welcome__eyebrow { display: block; color: var(--mb-cyan); font-size: .64rem; line-height: 1.6; font-weight: 750; letter-spacing: .1em; text-transform: uppercase; }
.mb-welcome h2 { margin: 12px 0 14px; color: var(--mb-ink); font-size: clamp(1.7rem, 2.4vw, 2rem); font-weight: 750; letter-spacing: -.04em; line-height: 1.12; }
.mb-welcome__intro > p { max-width: 32ch; color: var(--mb-muted); font-size: .9rem; line-height: 1.65; margin: 0 0 20px; }
.mb-demo__play { display: flex; align-items: center; justify-content: space-between; gap: 15px; width: 100%; padding: 11px 13px; border: 1px solid #437d80; border-radius: 9px; background: #13373d; color: #d8fff4; font: inherit; font-size: .78rem; font-weight: 650; cursor: pointer; }
.mb-demo__play:hover { background: #1c4950; }
.mb-demo__choices { display: grid; gap: 5px; margin-top: 15px; }
.mb-demo__choices button { display: flex; gap: 12px; align-items: baseline; padding: 9px 10px; border: 1px solid transparent; border-radius: 8px; background: transparent; color: #93a8c3; text-align: left; font: inherit; font-size: .68rem; cursor: pointer; }
.mb-demo__choices button span { font-size: .82rem; }
.mb-demo__choices button[aria-selected="true"] { border-color: #304b5d; background: #152b38; color: #acf0e9; }
.mb-demo__choices button:hover { color: #efffff; background: #172737; }
.mb-demo__terminal { display: flex; flex-direction: column; min-width: 0; align-self: stretch; overflow: hidden; border: 1px solid #304455; border-radius: 12px; background: #070f1b; box-shadow: 0 16px 34px rgba(0, 0, 0, .15); }
.mb-demo__bar { display: flex; align-items: center; gap: 12px; padding: 13px 15px; border-bottom: 1px solid #263648; background: #132133; font: 600 .75rem/1.5 ui-monospace, SFMono-Regular, Consolas, monospace; color: #d6e4f5; }
.mb-demo__lights { display: flex; gap: 5px; }
.mb-demo__lights i { width: 6px; height: 6px; border-radius: 50%; background: #4a647a; }
.mb-demo__lights i:last-child { background: #5da69b; }
.mb-demo__network { color: #9eb0c8; font-weight: 450; }
.mb-demo__sample { margin-left: auto; color: #bfc9e3; font: 500 .61rem/1.4 system-ui, sans-serif; white-space: nowrap; }
.mb-demo__screen { flex: 1; padding: 10px 18px 18px; }
.mb-demo__scene { padding: 8px 0; }
.mb-demo__scene + .mb-demo__scene { border-top: 1px solid #293b4f; }
.mb-demo--enhanced .mb-demo__scene { border: 0; min-height: 240px; }
.mb-demo__scene h3 { margin: 8px 0 22px; color: #91a9c4; font: 500 .68rem/1.4 ui-monospace, SFMono-Regular, Consolas, monospace; }
.mb-demo__scene p { display: grid; grid-template-columns: 11ch minmax(0, 1fr); gap: 10px; margin: 0 0 14px; color: #d4deed; font: .77rem/1.65 ui-monospace, SFMono-Regular, Consolas, monospace; overflow-wrap: anywhere; }
.mb-demo__nick { color: #c8afff; text-align: right; }
.mb-demo__nick--bot { color: #85e2cf; }
.mb-demo__command { color: #f4db9d; }
.mb-demo__takeaway { margin: 23px 0 0; padding: 13px 0 0; border-top: 1px solid #223345; color: #a1b4cd; font-size: .72rem; line-height: 1.5; }
.mb-demo__footer { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 7px 15px; padding: 11px 16px; border-top: 1px solid #263648; color: #9bafc8; font-size: .61rem; line-height: 1.6; }
.mb-welcome__join { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(210px, .8fr); gap: 22px 32px; grid-column: 1 / -1; align-items: center; padding-top: 24px; border-top: 1px solid #293c51; scroll-margin-top: 90px; }
.mb-welcome__join h3 { margin: 7px 0 10px; color: var(--mb-ink); font-size: 1.12rem; line-height: 1.4; letter-spacing: -.02em; }
.mb-welcome__join p { margin: 0; color: #bac9dd; font-size: .84rem; line-height: 1.65; max-width: 66ch; }
.mb-welcome__join p.mb-welcome__quiet { margin-top: 9px; color: #9eafc9; font-size: .74rem; }
.mb-welcome code { color: #d4e8f3; font: .83rem/1.5 ui-monospace, SFMono-Regular, Consolas, monospace; }
.mb-welcome__join-actions { display: grid; gap: 10px; min-width: 0; }
.mb-welcome__join-link { display: flex; justify-content: space-between; align-items: center; gap: 14px; border: 1px solid #79c7c1; border-radius: 10px; background: #a7eee0; padding: 13px 15px; color: #092a2d; text-decoration: none; font-size: .85rem; font-weight: 750; line-height: 1.5; }
.mb-welcome__join-link:hover { background: #cbfff4; color: #092a2d; }
.mb-welcome__client { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 6px; color: #9eafc9; font-size: .69rem; }
.mb-welcome__client a { color: #b9ddf5; text-underline-offset: 3px; }
.mb-welcome__copy { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 7px 10px; border: 1px solid #304455; border-radius: 8px; background: #0a1120; }
.mb-welcome__copy button { padding: 5px 10px; border: 1px solid #465d75; border-radius: 6px; background: #182a3d; color: #dae6f5; font: 500 .7rem/1.4 system-ui, sans-serif; cursor: pointer; }
.mb-welcome__copy-status { min-height: 1.4em; color: #b7d8d2; font-size: .66rem; line-height: 1.4; }
.mb-welcome__caption { grid-column: 1 / -1; margin: -12px 0 0; color: #97aac4; font-size: .66rem; line-height: 1.6; }
.mb-welcome :is(a, button):focus-visible { outline: 2px solid #a3eee7; outline-offset: 4px; }
@media (min-width: 761px) {
  .home-page .mb-project-masthead { grid-template-columns: minmax(0, 1.5fr) minmax(240px, .85fr); }
}
@media (max-width: 760px) {
  .mb-welcome { grid-template-columns: minmax(0, 1fr); padding: 20px; gap: 20px; }
  .mb-welcome h2 br { display: none; }
  .mb-welcome h2 br::after { content: ' '; }
  .mb-welcome__intro > p { max-width: none; margin-bottom: 15px; }
  .mb-demo__choices { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 4px; margin-top: 10px; }
  .mb-demo__choices button { flex-direction: column; gap: 4px; padding: 8px 6px; }
  .mb-demo__choices button span { font-size: .72rem; line-height: 1.4; }
  .mb-demo__screen { padding: 10px 12px 14px; }
  .mb-demo__scene p { grid-template-columns: minmax(0, 1fr); gap: 2px; font-size: .74rem; margin-bottom: 15px; }
  .mb-demo__nick { text-align: left; }
  .mb-demo--enhanced .mb-demo__scene { min-height: 350px; }
  .mb-demo__bar { flex-wrap: wrap; gap: 6px 10px; padding: 11px 12px; }
  .mb-demo__network { font-size: .68rem; }
  .mb-welcome__join { grid-template-columns: minmax(0, 1fr); gap: 18px; padding-top: 20px; }
  .mb-welcome__join h3 { font-size: 1.06rem; }
}
@media (prefers-reduced-motion: reduce) {
  .mb-welcome *, .home-page .mb-project-action { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}
