/* ---------- Base / reset ---------- */
.mcp-section *, .mcp-section *::before, .mcp-section *::after { padding: 0; margin: 0;box-sizing: border-box; }

.mcp-section img, svg { display: block; max-width: 100%; }
.mcp-section img { height: auto; }

.mcp-section code { font-family: "IBM Plex Mono", ui-monospace, SFMono-Regular, Consolas, monospace; }

.mcp-sr-only {
    position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
    overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}
.menu-wrap{
    background-color: #fdfdff;
}
@media (min-width: 1440px) {
    .menu-wrap.desktop-view .nav-menu .container {
        max-width: 1440px;
    }
}
.nav-menu .main-menu a{
    color: #2f0648;
}

.nav-menu.stylized {
    position: sticky;
    top: 10px;
    z-index: 1000;
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.52);
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.82) 0%, rgba(243, 239, 252, 0.78) 100%);
    -webkit-backdrop-filter: blur(14px) saturate(165%);
    backdrop-filter: blur(14px) saturate(165%);
    box-shadow: 0 14px 40px rgba(28, 17, 38, 0.12), inset 0 1px 0 rgba(255, 255, 255, 0.45);
    transition: background-color 250ms ease, box-shadow 250ms ease, border-color 250ms ease;
}

/* =====================================================================
   SHARED LAYOUT PRIMITIVES
   ===================================================================== */
.mcp-section { padding-block: clamp(72px, 9vw, 120px); }
.mcp-section--surface-2 { background: #f7f4fc; }
.mcp-section--white { background: #ffffff; }

.mcp-container {
    max-width: 1200px;
    margin-inline: auto;
    padding-inline: 16px;
}

.mcp-section-head {
    max-width: 720px;
    margin-inline: auto;
    display: flex;
    flex-direction: column;
    gap: 16px;
    text-align: center;
}

.mcp-eyebrow {
    display: inline-block;
    margin-bottom: 14px;
    font-family: "Euclid Circular B", "Inter", system-ui, sans-serif;
    font-size: 0.8125rem;
    font-weight: 600;
    line-height: 1.625;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: #5531c4;
}

.mcp-h2 {
    font-family: "Euclid Circular B", "Inter", system-ui, sans-serif;
    font-size: clamp(1.875rem, 1.35rem + 2vw, 2.75rem);
    line-height: 1.12;
    font-weight: 600;
    letter-spacing: -0.015em;
    color: #2e0645;
    text-wrap: balance;
}

.mcp-lead {
    max-width: 60ch;
    margin-inline: auto;
    margin-top: 16px;
    font-size: clamp(1.0625rem, 1rem + 0.3vw, 1.1875rem);
    line-height: 1.6;
    color: #5b5675;
}

/* =====================================================================
   BUTTONS
   ===================================================================== */
.mcp-btn {
    display: flex;
    width: 100%;
    align-items: center;
    justify-content: center;
    gap: 10px;
    border: 0;
    border-radius: 999px;
    padding: 16px 26px;
    font-family: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
    font-size: 1.0625rem;
    letter-spacing: 0.01em;
    text-decoration: none;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease, color 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}
.mcp-btn__ico { width: 20px; height: 20px; flex: none; transition: transform 0.2s ease; }

.mcp-btn--primary { background: linear-gradient(100deg, #f2709c 0%, #ff9472 100%); color: #fff; box-shadow: 0 1px 0 rgba(255, 255, 255, 0.45) inset, 0 10px 24px -12px rgba(242, 112, 156, 0.75); }
.mcp-btn--primary:hover { color: white; text-decoration: none; transform: translateY(-1px); box-shadow: 0 1px 0 rgba(255, 255, 255, 0.45) inset, 0 14px 30px -12px rgba(242, 112, 156, 0.85); }
.mcp-btn--primary:hover .mcp-btn__ico { transform: translateX(3px); }

.mcp-btn--ghost { color: #2e0645; background: transparent; }
.mcp-btn--ghost:hover { color: #6840db;text-decoration: none; }

.mcp-btn--outline { background: #fff; border: 1px solid #e7e1f1; color: #2e0645; }
.mcp-btn--outline:hover { border-color: #6840db; color: #6840db;text-decoration: none; }
.mcp-btn--outline:hover .mcp-btn__ico { transform: translateX(3px); }

/* inline = never full width (used inside CTA cards) */
.mcp-btn--inline { width: auto; align-self: flex-start; }

@media (min-width: 1024px) {
    .mcp-btn { width: auto; }
}

/* button rows */
.mcp-actions {
    margin-top: clamp(36px, 4vw, 52px);
    display: flex;
    flex-direction: column;
    flex-wrap: wrap;
    align-items: center;
    gap: 12px 8px;
}
.mcp-actions--tight { margin-top: 24px; }       /* hero spacing (mt-6) */
@media (min-width: 1024px) {
    .mcp-actions { flex-direction: row; justify-content: center; }
    .mcp-actions--start { justify-content: flex-start; }
}

/* =====================================================================
   COPY-URL BOX
   ===================================================================== */
.mcp-copy {
    flex-direction: column;
    display: flex;
    align-items: stretch;
    gap: 10px;
    border: 1.5px solid #d6cce8;
    border-radius: 16px;
    background: #fff;
    padding: 12px;
    box-shadow: 0 1px 2px rgba(46, 6, 69, 0.05), 0 12px 32px -18px rgba(46, 6, 69, 0.22);
}
.mcp-copy--stack { flex-direction: column; }
@media (min-width: 1024px) {
    .mcp-copy {flex-direction: row; align-items: center;}
    .mcp-copy--stack { flex-direction: row; }
}

.mcp-copy__code {
    min-width: 0;
    flex: 1;
    user-select: all;
    overflow-x: auto;
    white-space: nowrap;
    font-family: "IBM Plex Mono", ui-monospace, SFMono-Regular, Consolas, monospace;
    font-size: 14px;
    line-height: 23px;
    font-weight: 400;
    color: #2e0645;
    scrollbar-width: none;
}
.mcp-copy__code::-webkit-scrollbar { display: none; }
.mcp-copy__code--hero { font-size: 1rem; font-weight: 500; }
.mcp-copy__code--pre { white-space: pre; }

.mcp-copy__btn {
    display: flex;
    width: 100%;
    align-items: center;
    justify-content: center;
    gap: 8px;
    border: 0;
    border-radius: 12px;
    background: #1e1846;
    padding: 10px 16px;
    font-family: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
    font-size: 0.9375rem;
    font-weight: 600;
    color: #fff;
    cursor: pointer;
    transition: background-color 0.2s ease;
}
.mcp-copy__btn:hover { background: #2e0645; }
.mcp-copy__btn.is-copied { background: #6840db; }
.mcp-copy__btn--block { width: 100%; color: #fff; }

@media (min-width: 768px){
    .mcp-copy__btn {
        width: auto;
    }
}
@media (min-width: 1024px) {
    .mcp-copy__btn--block { width: auto; }
}
.mcp-copy__ico { width: 16px; height: 16px; flex: none; }
.mcp-copy__ico--done { display: none; }
.mcp-copy__btn.is-copied .mcp-copy__ico--copy { display: none; }
.mcp-copy__btn.is-copied .mcp-copy__ico--done { display: block; }

/* =====================================================================
   CHAT PRIMITIVES (hero card, capability panels, action panels)
   ===================================================================== */
.mcp-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    border-radius: 999px;
    background: #efeafd;
    padding: 5px 10px 5px 8px;
}
.mcp-badge__logo { width: 18px; height: 11px; }
.mcp-badge__text { font-size: 12px; font-weight: 600; line-height: 19.5px; color: #5531c4; }

.mcp-chat__head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 14px 18px;
    border-bottom: 1px solid #e7e1f1;
}
.mcp-chat__label { font-size: 13px; font-weight: 600; line-height: 21.125px; color: #5b5675; }

.mcp-chat__body {
    display: flex;
    flex-direction: column;
    gap: 14px;
    padding: 10px;
}

@media (min-width: 768px) {
    .mcp-chat__body {
        padding: 16px;
    }
}

.mcp-bubble { font-size: 15px; line-height: 23px; }
.mcp-bubble--user {
    align-self: flex-end;
    max-width: 86%;
    background: #2e0645;
    color: #fff;
    border-radius: 18px 18px 6px 18px;
    padding: 5px 8px;
    text-wrap: pretty;
}


.mcp-bubble--ai {
    display: inline-block;
    background: rgba(239, 234, 253, 0.8);
    color: #1e1846;
    border-radius: 18px 18px 18px 6px;
    padding: 5px 8px;
}

@media (min-width: 768px) {
    .mcp-bubble--user, .mcp-bubble--ai {
        padding: 11px 16px;
    }
}

.mcp-msg { display: flex; gap: 6px; }
.mcp-msg__body { min-width: 0; }
.mcp-msg__body--fill { flex: 1; }
.mcp-avatar {
    flex: none;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: conic-gradient(from 210deg, #6840db, #f2709c, #ff9472, #6840db);
}

@media (min-width: 768px) {
    .mcp-avatar {
        width: 28px;
        height: 28px;
    }
    .mcp-msg { gap: 12px; }
}

/* mini record card inside a chat bubble group */
.mcp-mini {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    border: 1px solid #e7e1f1;
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.88);
    padding: 11px 16px;
}
.mcp-mini--mt { margin-top: 10px; }
.mcp-mini__title { font-size: 0.875rem; font-weight: 600; color: #2e0645; }
.mcp-mini__sub { font-size: 0.8125rem; color: #5b5675; }
.mcp-mini__meta { display: flex; flex-direction: column; gap: 9px; }
.mcp-mini__meta--tight { gap: 4px; }

.mcp-tag {
    white-space: nowrap;
    border-radius: 999px;
    padding: 5px 9px;
    font-size: 0.75rem;
    font-weight: 600;
}
.mcp-tag--amber { background: #fdebc4; color: #7a4a00; }
.mcp-tag--violet { background: #efeafd; color: #5531c4; }
.mcp-tag--self-center { align-self: center; }

/* =====================================================================
   SELECT (mobile pickers, shared)
   ===================================================================== */
.mcp-select-wrap { position: relative; }
.mcp-select {
    width: 100%;
    appearance: none;
    -webkit-appearance: none;
    border: 1px solid #d6cce8;
    border-radius: 16px;
    background: #fff;
    padding: 14px 44px 14px 16px;
    font-family: "Euclid Circular B", "Inter", system-ui, sans-serif;
    font-size: 16px;
    font-weight: 600;
    color: #2e0645;
    box-shadow: 0 1px 2px rgba(46, 6, 69, 0.05), 0 12px 32px -18px rgba(46, 6, 69, 0.22);
}
.mcp-select:focus { outline: none; border-color: #6840db; box-shadow: 0 0 0 2px rgba(104, 64, 219, 0.3); }
.mcp-select__icon {
    pointer-events: none;
    position: absolute;
    right: 16px;
    top: 50%;
    transform: translateY(-50%);
    width: 18px;
    height: 18px;
    color: #6840db;
}

/* =====================================================================
   HERO
   ===================================================================== */
.mcp-hero {
    position: relative;
    isolation: isolate;
    overflow: clip;
    padding-top: clamp(48px, 7vw, 104px);
    padding-bottom: clamp(72px, 9vw, 128px);
}
.mcp-hero__bg {
    pointer-events: none;
    position: absolute;
    inset: 0;
    z-index: -1;
    background: radial-gradient(42% 58% at 88% 18%, rgba(104, 64, 219, 0.24) 0%, transparent 70%),
    radial-gradient(34% 48% at 92% 88%, rgba(255, 148, 114, 0.26) 0%, transparent 70%),
    radial-gradient(30% 42% at 58% 62%, rgba(242, 112, 156, 0.14) 0%, transparent 70%),
    linear-gradient(180deg, #faf7ff 0%, #fefeff 100%);
}
.mcp-hero__inner {
    max-width: 1440px;
    margin-inline: auto;
    min-height: 580px;
    display: flex;
    flex-direction: column;
    gap: 24px;
    padding-inline: 16px;
}
@media (min-width: 1024px) {
    .mcp-hero__inner { display: grid; grid-template-columns: 1fr 1.1fr; }
}

.mcp-hero__eyebrow {
    font-family: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
    font-size: 13px;
    font-weight: 700;
    line-height: 21.125px;
    letter-spacing: 0.78px;
    text-transform: uppercase;
    color: #5531c4;
}
.mcp-hero__title {
    padding-top: 14px;
    font-family: "Euclid Circular B", "Inter", system-ui, sans-serif;
    font-size: clamp(2.375rem, 1.55rem + 3.3vw, 3.5rem);
    line-height: 1.06;
    font-weight: 700;
    letter-spacing: -0.022em;
    color: #2e0645;
    text-wrap: balance;
}
.mcp-hero__title em { font-style: normal; color: #fa8681; }
.mcp-hero__lead {
    padding-top: 22px;
    font-size: 19px;
    line-height: 30.4px;
    color: #5b5675;
    text-wrap: pretty;
}
.mcp-hero__urlwrap { margin-top: 28px; }
.mcp-hero__urllabel { display: block; margin-bottom: 8px; font-size: 0.8125rem; font-weight: 600; color: #5b5675; }

.mcp-hero__micro {
    margin-top: 12px;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 4px 8px;
    font-size: 0.875rem;
    line-height: 1.625;
    color: #5b5675;
}
.mcp-hero__micro-ico { width: 16px; height: 16px; flex: none; color: #6840db; }
.mcp-hero__micro-link {
    display: inline-flex;
    min-height: 44px;
    align-items: center;
    padding-inline: 4px;
    font-weight: 600;
    color: #6840db;
    text-decoration: underline;
    text-underline-offset: 3px;
}
.mcp-hero__micro-link:hover { color: #5531c4; }

.mcp-hero__visual { position: relative; }
.mcp-hero__img {
    width: 100%;
    height: 100%;
    border-radius: 28px;
    object-fit: cover;
    box-shadow: 0 2px 4px rgba(46, 6, 69, 0.05), 0 28px 60px -28px rgba(46, 6, 69, 0.38);
}
@media (min-width: 1024px) {
    .mcp-hero__img { width: 90%; height: 90%; transform: scaleX(-1); }
}

.mcp-hero__chat {
    margin-top: -90px;
    width: 92%;
    border-radius: 28px;
    border: 1px solid rgba(255, 255, 255, 0.85);
    background: rgba(255, 255, 255, 0.6);
    box-shadow: 0 1px 0 rgba(255, 255, 255, 0.6) inset, 0 40px 80px -40px rgba(46, 6, 69, 0.45);
    backdrop-filter: blur(22px) saturate(1.5);
    -webkit-backdrop-filter: blur(22px) saturate(1.5);
}
@media (min-width: 1024px) {
    .mcp-hero__chat { position: absolute; bottom: 0; right: 0; margin-top: 0; width: auto; max-width: 350px; }
}
.mcp-hero__chat-head { display: flex; justify-content: space-between; padding: 10px 16px; }
.mcp-hero__chat-body { display: flex; flex-direction: column; gap: 8px; padding: 12px 14px 14px; }
@media (min-width: 1024px) {
    /* hero bubbles stretch full width of the narrow card */
    .mcp-hero__chat .mcp-bubble--user { width: 100%; }
    .mcp-hero__chat .mcp-bubble--ai { width: 100%; }
    .mcp-hero__chat .mcp-msg__body { align-self: flex-end; }
}
.mcp-hero__chat .mcp-msg__body { width: fit-content; }
.mcp-hero__chat .mcp-avatar-slot { width: 28px; height: 28px; flex: none; }

/* =====================================================================
   CONNECT
   ===================================================================== */
.mcp-connect__card {
    margin-top: 40px;
    /* Mobile: flex column so the app picker — a direct child — gets the whole
       card as its containing block and can stay sticky while you scroll past the
       guides. overflow:hidden would trap it, so corners are clipped per-child
       here (see __other below); grid + overflow:hidden return on desktop where
       the picker is hidden. */
    display: flex;
    flex-direction: column;
    border: 1px solid #e7e1f1;
    border-radius: 28px;
    background: #ffffff;
    box-shadow: 0 2px 4px rgba(46, 6, 69, 0.05), 0 28px 60px -28px rgba(46, 6, 69, 0.38);
}
/* mobile: last child carries the card's rounded bottom corners */
.mcp-connect__other { border-bottom-left-radius: 27px; border-bottom-right-radius: 27px; }
@media (min-width: 1024px) {
    .mcp-connect__card { display: grid; grid-template-columns: 5fr 7fr; grid-template-rows: auto 1fr; overflow: hidden; }
    .mcp-connect__other { border-radius: 0; }
}

/* Grid children default to min-width:auto, which lets a wide min-content
   (the non-wrapping server URL) blow the 1fr column past the card and clip
   the right edge. min-width:0 lets the track honor the card width. */
.mcp-connect__pick,
.mcp-connect__picker,
.mcp-connect__other,
.mcp-connect__guides { min-width: 0; }
.mcp-connect__pick {
    order: 1;
    padding: clamp(22px, 3vw, 36px);
    padding-bottom: 0;
}
.mcp-connect__other {
    order: 4;
    background: #fff;
    padding: clamp(22px, 3vw, 36px);
    border-top: 1px solid #e7e1f1;
}
.mcp-connect__guides {
    order: 3;
    min-height: 400px;
    background: #f7f4fc;
    padding: 22px;
}
@media (min-width: 1024px) {
    .mcp-connect__pick   { order: 0; grid-column: 1; grid-row: 1; min-height: 400px; padding-bottom: clamp(22px, 3vw, 36px); }
    .mcp-connect__other  { order: 0; grid-column: 1; grid-row: 2; align-self: end; }
    .mcp-connect__guides { order: 0; grid-column: 2; grid-row: 1 / span 2; padding: 38px; }
}

.mcp-connect__pick-title { font-size: 1.125rem; font-weight: 600; color: #2e0645; text-wrap: balance; }
.mcp-connect__picker {                   /* mobile select wrapper — sticky bar */
    order: 2;
    display: block;
    position: sticky;
    top: 0;
    z-index: 30;
    background: #fff;
    border-bottom: 1px solid #e7e1f1;
    padding: 12px clamp(22px, 3vw, 36px);
}
@media (min-width: 1024px) { .mcp-connect__picker { display: none; } }
.mcp-connect__other-text { font-size: 0.9375rem; line-height: 1.6; color: #5b5675; }
.mcp-connect__other-text strong { font-weight: 600; color: #2e0645; }
.mcp-connect__other-text code { color: #2e0645; }

/* desktop app button grid (hidden on mobile; the select replaces it) */
.mcp-apps {
    margin-top: 20px;
    display: none;
    grid-template-columns: 1fr;
    gap: 8px;
}
@media (min-width: 1024px) { .mcp-apps { display: grid; grid-template-columns: 1fr 1fr; } }
.mcp-apps__group {
    grid-column: 1 / -1;
    margin: 10px 2px 0;
    font-size: 0.8125rem;
    font-weight: 600;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: #5b5675;
}
.mcp-apps__btn {
    display: flex;
    align-items: center;
    gap: 12px;
    min-height: 56px;
    border: 1px solid #e7e1f1;
    border-radius: 16px;
    background: #ffffff;
    padding: 8px 12px;
    text-align: left;
    font-size: 0.9375rem;
    font-weight: 600;
    color: #2e0645;
    cursor: pointer;
    transition: border-color 0.2s ease, background 0.2s ease, color 0.2s ease, box-shadow 0.2s ease;
}
.mcp-apps__btn:hover { border-color: #d6cce8; box-shadow: 0 1px 2px rgba(46, 6, 69, 0.05), 0 12px 32px -18px rgba(46, 6, 69, 0.22); }
.mcp-apps__btn[aria-selected="true"] {
    border-color: #5531c4;
    background: #efeafd;
    color: #5531c4;
    box-shadow: 0 1px 2px rgba(46, 6, 69, 0.05), 0 12px 32px -18px rgba(46, 6, 69, 0.22);
}
.mcp-apps__btn img { width: 28px; height: 28px; }

/* a single guide (tab panel) */
.mcp-guide[hidden] { display: none; }
.mcp-guide__head { display: flex; align-items: start; gap: 16px; }
.mcp-guide__icon {
    display: grid;
    place-items: center;
    flex: none;
    width: 56px;
    height: 56px;
    border-radius: 16px;
    background: #fff;
    box-shadow: 0 1px 3px 0 rgba(46, 6, 69, 0.12);
}
@media (min-width: 768px) {
    .mcp-guide__head {
        align-items: center;
    }
}
.mcp-guide__icon img { width: 28px; height: 28px; }
.mcp-guide__title { font-size: 1.5rem; font-weight: 600; line-height: 39px; color: #2e0645; text-wrap: balance; }
.mcp-guide__desc { font-size: 15px; font-weight: 400; line-height: 24px; color: #5b5675; text-wrap: pretty; }
.mcp-guide__desc code, .mcp-guide__desc .mcp-mono { font-family: "IBM Plex Mono", ui-monospace, SFMono-Regular, Consolas, monospace; font-size: 13px; line-height: 21px; }
.mcp-guide__steps { margin-top: 24px; display: flex; flex-direction: column; }

/* numbered step */
.mcp-step { display: flex; flex-direction: row; gap: 20px; }
.mcp-step--last { align-items: flex-start; }
.mcp-step__rail {
    position: relative;
    display: none;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}
.mcp-step__num {
    display: flex;
    flex: none;
    width: 34px;
    height: 34px;
    align-items: center;
    justify-content: center;
    border: 1px solid #d6cce8;
    border-radius: 50%;
    background: #fff;
    font-size: 0.9375rem;
    font-weight: 600;
    color: #5531c4;
}
.mcp-step__line { display: inline-block; width: 1px; height: 100%; flex-grow: 1; background: #d5cce8; }
.mcp-step__body { flex: 1; min-width: 0; padding-bottom: 30px; }
.mcp-step__body_content {
    display: flex;
    gap: 10px;
    align-items: center;
    margin-bottom: 10px;
}
.mcp-step__title { font-size: 1rem; font-weight: 600; color: #2e0645; text-wrap: balance; }
.mcp-step__text { margin-top: 4px; font-size: 0.9375rem; color: #1e1846; text-wrap: pretty; }
.mcp-step__text strong { font-weight: 600; color: #2e0645; }
.mcp-step .mcp-copy { margin-top: 12px; }

.mcp-guide__link {
    margin-top: 24px;
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 16px;
    line-height: 26px;
    font-weight: 600;
    color: #5531c4;
    text-decoration: none;
}
.mcp-guide__link:hover { text-decoration: underline; text-underline-offset: 3px; }
.mcp-guide__link svg { width: 16px; height: 16px; }

/* =====================================================================
   SECURITY AND CONTROL
   ===================================================================== */
.mcp-security__grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: clamp(28px, 4vw, 56px);
}

@media (min-width: 768px) {
    .mcp-step__body_content {
        gap: 0;
        display: block;
    }

    .mcp-step__body_content .mcp-step__num {
        display: none;
    }
    .mcp-step__rail {
        display: flex;
    }
}
@media (min-width: 1024px) {
    .mcp-security__grid { grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr); }
}
.mcp-security__left { display: flex; flex-direction: column; gap: 28px; }
@media (min-width: 1024px) { .mcp-security__left { gap: clamp(75px, 4vw, 56px); } }
.mcp-security__intro { max-width: 720px; }
.mcp-security__intro .mcp-lead { margin-inline: 0; }
.mcp-security__img {
    border-radius: 28px;
    object-fit: cover;
    object-position: 50% 30%;
    aspect-ratio: 4 / 3;
}
@media (min-width: 1024px) { .mcp-security__img { aspect-ratio: auto; flex: 1; } }

.mcp-promises { display: flex; flex-direction: column; }
.mcp-promise { display: flex; gap: 40px; padding-block: 26px; }
.mcp-promise + .mcp-promise { border-top: 1px solid #d6cce8; }
.mcp-promise__num { font-size: 1.125rem; line-height: 29px; font-weight: 600; color: #5531c4; }
.mcp-promise__body { flex: 1; }
.mcp-promise__title {
    font-size: clamp(1.25rem, 1rem + 0.8vw, 1.625rem);
    line-height: 1.25;
    font-weight: 600;
    letter-spacing: -0.01em;
    color: #2e0645;
    text-wrap: balance;
}
.mcp-promise__text { margin-top: 8px; max-width: 52ch; font-size: 15px; line-height: 24px; color: #5b5675; }
.mcp-promise__tag {
    display: inline-flex;
    width: fit-content;
    align-items: center;
    gap: 6px;
    margin-top: 8px;
    padding: 8px 12px;
    line-height: 21px;
    font-size: 0.8125rem;
    font-weight: 600;
    border-radius: 999px;
}
.mcp-promise__tag svg { width: 16px; height: 16px; }
.mcp-promise__tag--violet { background: #efeafd; color: #5531c4; }
.mcp-promise__tag--solid { background: #1e1846; color: #fff; }
.mcp-promise__tag--amber { background: #fdebc4; color: #7a4a00; }

/* =====================================================================
   WHAT YOU CAN DO (capabilities)
   ===================================================================== */
.mcp-caps__head { margin-bottom: clamp(36px, 4vw, 56px); }
.mcp-caps__grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 56px;
}
@media (min-width: 1024px) {
    .mcp-caps__grid { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); }
}

/* mobile area picker */
.mcp-caps__picker {
    display: block;
    position: sticky;
    top: 0;
    z-index: 30;
    background: #fff;
    border-bottom: 1px solid #e7e1f1;
    padding-block: 12px;
}
@media (min-width: 1024px) { .mcp-caps__picker { display: none; } }

/* desktop vertical area list */
.mcp-areas {
    display: none;
    padding: 10px;
}
@media (min-width: 1024px) {
    .mcp-areas {
        display: flex;
        flex-direction: column;
        gap: 4px;
        border: 1px solid #e7e1f1;
        border-radius: 28px;
        box-shadow: 0 2px 4px rgba(46, 6, 69, 0.05), 0 28px 60px -28px rgba(46, 6, 69, 0.38);
    }
}
.mcp-areas__group {
    padding: 6px 12px;
    color: #5531c4;
    text-transform: uppercase;
    font-size: 12px;
    line-height: 15px;
    letter-spacing: 0.72px;
    font-weight: 600;
}
.mcp-areas__group--gap { padding-top: 16px; }
.mcp-areas__btn {
    display: flex;
    align-items: center;
    gap: 14px;
    border: 0;
    border-radius: 16px;
    padding: 16px 10px;
    background: transparent;
    cursor: pointer;
    text-align: left;
}
.mcp-areas__btn:hover { background: #f7f4fc; }
.mcp-areas__btn[aria-selected="true"] { background: #6840db; }
.mcp-areas__icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 12px;
    background: #efeafd;
    color: #6840db;
}
.mcp-areas__icon svg { width: 18px; height: 18px; }
.mcp-areas__btn[aria-selected="true"] .mcp-areas__icon { background: #8264e0; color: #fff; }
.mcp-areas__label { flex: 1; font-size: 17px; line-height: 21px; font-weight: 600; color: #2e0645; }
.mcp-areas__btn[aria-selected="true"] .mcp-areas__label { color: #fff; }
.mcp-areas__count {
    padding: 6px 9px;
    border-radius: 999px;
    background: #f7f4fc;
    color: #5b5675;
    font-size: 12px;
    line-height: 15px;
    font-weight: 600;
    opacity: 0.7;
}
.mcp-areas__btn[aria-selected="true"] .mcp-areas__count { background: #8264e0; color: #fff; }
.mcp-areas__arrow {
    width: 18px;
    height: 18px;
    flex: none;
    color: #fff;
    opacity: 0;
    transform: translateX(-8px);
    transition: opacity 0.3s ease-out, transform 0.3s ease-out;
}
.mcp-areas__btn[aria-selected="true"] .mcp-areas__arrow { opacity: 1; transform: translateX(0); }

/* a capability chat panel */
.mcp-cap-panel {
    min-height: 200px;
    border: 1px solid #e7e1f1;
    border-radius: 28px;
    box-shadow: 0 2px 4px rgba(46, 6, 69, 0.05), 0 28px 60px -28px rgba(46, 6, 69, 0.38);
    background: #fff;
}
.mcp-cap-panel[hidden] { display: none; }

/* chips */
.mcp-chips { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }
.mcp-chip {
    padding: 6px 12px;
    border-radius: 999px;
    background: #f7f4fc;
    color: #2e0645;
    font-size: 15px;
    line-height: 20px;
    font-weight: 400;
}
.mcp-chip--active {
    background: #efeafd;
    color: #5531c4;
    box-shadow: inset 0 0 0 1px color-mix(in srgb, #6840db 35%, transparent);
}

/* inline disk meter (capabilities) */
.mcp-cap-meter {
    display: block;
    height: 8px;
    width: 100%;
    margin-top: 10px;
    border-radius: 999px;
    background: #f7f4fc;
    overflow: hidden;
}
.mcp-cap-meter__fill { display: block; height: 100%; border-radius: 999px; background: #6840db; }

/* desktop: clip + pin chat to the bottom so switching areas keeps height */
@media (min-width: 1024px) {
    .mcp-caps__grid .mcp-cap-panel:not([hidden]) { display: flex; flex-direction: column; contain: size; }
    .mcp-caps__grid [data-g-body] {
        flex: 1 1 auto;
        min-height: 0;
        justify-content: flex-end;
        overflow: hidden;
        -webkit-mask-image: linear-gradient(to bottom, transparent 0, #000 20px);
        mask-image: linear-gradient(to bottom, transparent 0, #000 20px);
    }
}

/* =====================================================================
   SEE IT IN ACTION
   ===================================================================== */
.mcp-action__picker {
    display: block;
    position: sticky;
    top: 0;
    z-index: 30;
    background: #f7f4fc;
    border-bottom: 1px solid #e7e1f1;
    padding-block: 12px;
    margin-top: clamp(36px, 4vw, 56px);
    margin-bottom: 24px;
}
@media (min-width: 1024px) { .mcp-action__picker { display: none; } }

.mcp-action__tabs {
    display: none;
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px;
    margin-top: clamp(36px, 4vw, 56px);
    margin-bottom: 24px;
}
.mcp-action__tab {
    padding: 10px 18px;
    border: 1px solid #d6cce8;
    border-radius: 999px;
    background: #fff;
    color: #1e1846;
    font-size: 15px;
    line-height: 24px;
    font-weight: 600;
    cursor: pointer;
    transition: border-color 0.2s ease, color 0.2s ease, background 0.2s ease;
}
.mcp-action__tab[aria-selected="false"]:hover { border-color: #6840db; color: #2e0645; }
.mcp-action__tab[aria-selected="true"] { background: #1e1846; color: #fff; border-color: #1e1846; }
@media (min-width: 1024px) { .mcp-action__tabs { display: flex; } }

/* panel stacking: inactive panels collapse on mobile, overlay on desktop */
.mcp-action__panels { display: grid; }
.mcp-action__panels > [role="tabpanel"][hidden] { display: none; }

.mcp-action__panel {
    display: grid;
    grid-template-columns: 1fr;
    gap: 20px;
}
@media (min-width: 1024px) {
    .mcp-action__panels > [role="tabpanel"] { grid-area: 1 / 1; }
    .mcp-action__panels > [role="tabpanel"][hidden] { display: grid; visibility: hidden; }
    .mcp-action__panel {
        grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.6fr);
        grid-template-rows: minmax(0, 1fr);
        align-items: start;
    }
}

.mcp-action__aside {
    order: 2;
    overflow: hidden;
    border: 1px solid #e7e1f1;
    border-radius: 28px;
    box-shadow: 0 2px 4px rgba(46, 6, 69, 0.05), 0 28px 60px -28px rgba(46, 6, 69, 0.38);
}
.mcp-action__aside-img {
    width: 100%;
    aspect-ratio: 16 / 9;
    object-fit: cover;
    object-position: 50% 28%;
}
.mcp-action__note { background: #fff; padding: 26px; display: flex; flex-direction: column; gap: 16px; }
.mcp-action__note h3 { font-size: 18px; line-height: 29px; font-weight: 600; color: #2e0645; }
.mcp-action__note p { font-size: 15px; line-height: 24px; color: #5b5675; }

.mcp-action__chat {
    order: 1;
    min-height: 200px;
    background: #fff;
    border: 1px solid #e7e1f1;
    border-radius: 28px;
    box-shadow: 0 2px 4px rgba(46, 6, 69, 0.05), 0 28px 60px -28px rgba(46, 6, 69, 0.38);
}
@media (min-width: 1024px) {
    .mcp-action__aside { order: 1; align-self: stretch; display: flex; flex-direction: column; }
    .mcp-action__aside-img { aspect-ratio: auto; flex: 1; min-height: 0; }
    .mcp-action__chat { order: 2; align-self: stretch; display: flex; flex-direction: column; }
}

.mcp-action__seq {
    padding: 10px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    gap: 14px;
}

@media (min-width: 768px) {
    .mcp-action__seq {
        padding: 16px;
    }
}

@media (min-width: 1024px) { .mcp-action__seq { flex: 1;padding: 26px; } }

/* account overview key/value table */
.mcp-kv {
    border: 1px solid #e7e1f1;
    border-radius: 14px;
    overflow: hidden;
    background: #ffffff;
    margin-block: 10px;
}
.mcp-kv__row { display: flex; gap: 12px; padding: 11px 14px; }

@media (min-width: 1024px) { .mcp-kv__row { justify-content: space-between; } }

.mcp-kv__row + .mcp-kv__row { border-top: 1px solid #e7e1f1; }
.mcp-kv__k { font-size: 13px; line-height: 20px; color: #5b5675; }
.mcp-kv__v { font-size: 14px; line-height: 22px; font-weight: 600; color: #2e0645;overflow-wrap: anywhere; }

/* invoice quick-action pills */
.mcp-pillbtns { display: flex; gap: 8px; margin-block: 10px; flex-wrap: wrap; }
.mcp-pillbtn {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 7px 12px;
    border: 1px solid #d6cce8;
    border-radius: 999px;
    background: #ffffff;
    color: #5531c4;
}
.mcp-pillbtn svg { width: 16px; height: 16px; }
.mcp-pillbtn span { font-size: 13px; line-height: 20px; font-weight: 600; }

/* disk usage meter (action) */
.mcp-usage { display: flex; flex-direction: column; gap: 8px; margin-block: 10px; }
.mcp-usage__row { display: flex; justify-content: space-between; }
.mcp-usage__row span { font-size: 14px; line-height: 22px; }
.mcp-usage__row span:last-child { font-weight: 700; }
.mcp-usage__bar { width: 100%; height: 8px; border-radius: 999px; background: #efeaf7; overflow: hidden; }
.mcp-usage__fill { height: 8px; border-radius: 999px; background: linear-gradient(90deg, #6840db, #f2709c); }
.mcp-usage__caption { color: #5b5675; font-size: 13px; line-height: 20px; }

/* ticket draft card */
.mcp-draft { margin-block: 10px; background: #f7f4fc; border: 1px solid #e7e1f1; border-radius: 14px; padding: 14px 16px; }
.mcp-draft__dl { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 6px 14px; margin: 0; }
.mcp-draft__dl dt { color: #5b5675; font-size: 14px; line-height: 22px; }
.mcp-draft__dl dd { margin: 0; color: #2e0645; font-size: 14px; line-height: 22px; font-weight: 600; }
.mcp-draft__body { margin-top: 10px; padding-top: 10px; border-top: 1px solid #e7e1f1; color: #1e1846; font-size: 14px; line-height: 22px; }

/* composer */
.mcp-composer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 14px;
    padding: 8px 8px 8px 16px;
    border: 1px solid #e7e1f1;
    border-radius: 999px;
    background: #f8f5fc;
    color: #5b5675;
}
@media (min-width: 1024px) { .mcp-composer { margin-top: auto; } }
.mcp-composer__btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    border-radius: 999px;
    background: #d6cce8;
}
.mcp-composer__btn svg { width: 16px; height: 16px; color: #fff; }

/* =====================================================================
   FAQ
   ===================================================================== */
.mcp-faq { max-width: 860px; margin-inline: auto; padding-inline: 16px; margin-top: clamp(36px, 4vw, 56px); }
.mcp-faq__list { display: flex; flex-direction: column; gap: 12px; }
.mcp-faq__item {
    background: #fff;
    border: 1px solid #e7e1f1;
    border-radius: 22px;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.mcp-faq__item[open] { border-color: #d6cce8; box-shadow: 0 1px 2px rgba(46, 6, 69, 0.05), 0 12px 32px -18px rgba(46, 6, 69, 0.22); }
.mcp-faq__item { scroll-margin-top: 96px; }
.mcp-faq__q {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    min-height: 64px;
    padding: 16px 22px;
    font-weight: 600;
    color: #2e0645;
    cursor: pointer;
    user-select: none;
    list-style: none;
}
.mcp-faq__q::-webkit-details-marker { display: none; }
.mcp-faq__q::marker { content: ""; }
.mcp-faq__icon {
    flex: none;
    width: 20px;
    height: 20px;
    color: #6840db;
    transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}
.mcp-faq__item[open] .mcp-faq__icon { transform: rotate(45deg); }
.mcp-faq__a { color: #5b5675; font-size: 15px; line-height: 25px; }
.mcp-faq__a p { max-width: 68ch; padding: 0 22px 20px; }
.mcp-faq__a a { color: #6840db; text-decoration: underline; text-underline-offset: 3px; }

/* =====================================================================
   FINAL CTA
   ===================================================================== */
.mcp-cta__grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 20px;
}
@media (min-width: 1024px) { .mcp-cta__grid { grid-template-columns: 1fr 1fr; } }
.mcp-cta__media { border-radius: 28px; overflow: hidden; }
.mcp-cta__media img { width: 100%; height: 100%; object-fit: cover; }
.mcp-cta__col { display: grid; grid-template-rows: 1fr 1fr; gap: 20px; }
.mcp-cta__card {
    position: relative;
    isolation: isolate;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    gap: 14px;
    padding: clamp(26px, 3.4vw, 44px);
    border: 1px solid #e7e1f1;
    border-radius: 28px;
    box-shadow: 0 1px 2px rgba(46, 6, 69, 0.05), 0 12px 32px -18px rgba(46, 6, 69, 0.22);
    background: #fff;
}
.mcp-cta__card--feature { background: linear-gradient(135deg, #f3edff 0%, #fbeff6 60%, #fff1ea 100%); }
.mcp-cta__card h3 { font-size: 32px; line-height: 37px; font-weight: 600; color: #2e0645; }
.mcp-cta__card p { font-size: 16px; line-height: 26px; color: #5b5675; }
.mcp-cta__card .mcp-btn { margin-top: 12px; }
.mcp-cta__glow {
    position: absolute;
    z-index: -1;
    right: -120px;
    top: -120px;
    width: 360px;
    height: 360px;
    border-radius: 50%;
    background: radial-gradient(closest-side, rgba(255, 148, 114, 0.22), transparent);
}

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
    * { transition: none !important; }
}
