/* mcp landing page
   developer:   rmiske
   requires:    /common/framework/css/framework.zh.css
                /ai/shared.css
   ========================================================================== */


/* ==================================================
   SETUP
   ================================================== */
main h2 {
    text-align: center;
}



/* ==================================================
   Hero
   ================================================== */
.hero {
    background:
        radial-gradient(circle at 22% 50%, rgba(139, 92, 246, 0.22) 0%, transparent 35%),
        radial-gradient(circle at 12% 60%, rgba(109, 40, 217, 0.30) 0%, transparent 45%),
        radial-gradient(circle at 30% 40%, rgba(196, 181, 253, 0.10) 0%, transparent 55%),
        radial-gradient(900px 600px at 15% 5%, rgba(139, 92, 246, 0.10), transparent 60%),
        radial-gradient(circle at 78% 50%, rgba(43, 192, 224, 0.22) 0%, transparent 35%),
        radial-gradient(circle at 88% 60%, rgba(31, 160, 184, 0.30) 0%, transparent 45%),
        radial-gradient(circle at 70% 40%, rgba(111, 216, 238, 0.10) 0%, transparent 55%),
        radial-gradient(900px 600px at 85% 5%, rgba(43, 192, 224, 0.10), transparent 60%),
        #040714;
}

.mcp-hero-bg {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 0;
}

.mcp-hero-visual {
    position: absolute;
    right: 0%;
    top: 50%;
    transform: translateY(-50%);
    height: 450px;
    aspect-ratio: 1200 / 553;
    z-index: 1;
    pointer-events: none;
}

.mcp-hero-scene {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    opacity: 0.8;
    transform: translateY(16px) scale(0.94);
}

.mcp-hero-spikey {
    position: absolute;
    inset: 0;
    pointer-events: none;
    z-index: 2;
    transform: translateX(-40px);
    opacity: 0.92;
}

.mcp-hero-spikey img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
}

iframe.mfp-iframe {
    max-height: 360px;
}

.terminal-code-wrapper.wolfram-c2c-wrapper {
    line-height: unset !important;
    margin: 27px 9px 0 1px !important;
    padding: 8px 10px 17px 15px !important;
    background: url('img/icon-clipboard.png') no-repeat center left;
    background-size: contain;
    display: inline-block;
    height: 0;
    margin: -3px 4px 0 0;
    vertical-align: middle;
    width: 0;
    pointer-events: none;
}

.terminal-code-wrapper.wolfram-c2c-wrapper {
    line-height: unset !important;
    margin: 27px 9px 0 1px !important;
    padding: 8px 10px 17px 15px !important;
}


/* ---------- Popup ---------- */
#popup {
    position: fixed;
    inset: 0;
    margin: auto;
    height: fit-content;
    max-height: 90vh;
    width: min(630px, 92vw);
    padding: 0;
    border: 1px solid rgba(120, 200, 220, .35);
    border-radius: 18px;
    overflow: hidden;
    color: #e4f1f6;
    font-family: inherit;
    background: transparent;
    box-shadow: 0 20px 60px rgba(0, 0, 0, .5);
}

/* Dark, dimmed background behind the popup */
#popup::backdrop {
    background: rgba(2, 12, 20, .7);
    backdrop-filter: blur(2px);
}

/* Color 1: top section (lighter teal) */
#popup .top {
    background: rgba(38, 104, 126, .92);
    padding: 28px 32px 30px;
}

/* Color 2: bottom section (darker teal) */
#popup .bottom {
    background: rgba(20, 62, 80, .95);
    padding: 26px 32px 26px;
}

#popup h2 {
    font-weight: 400;
    font-size: 18px;
    color: #fff;
    text-align: left;
    margin-bottom: 22px;
}

#popup span.paste {
    font-weight: 600;
    color: #fff;
}

#popup p:last-of-type {
    margin: 0 0 6px;
    line-height: 1.55;
    font-size: 15px;
    color: #d5dcea;
}

#popup ul li::before {
    content: "";
    display: inline-block;
    width: 6px;
    height: 6px;
    background-color: #d5dcea;
    border-radius: 50%;
    margin-right: 9px;
    position: absolute;
    top: 9px;
    left: 0;
}

/* Box with the copy icon */
.copy-box {
    position: relative;
    background: #133b4d;
    border: 2px solid rgba(130, 205, 225, .55);
    border-radius: 6px;
    padding: 16px 48px 16px 16px;
    font-family: 'Source Code Pro', Consolas, monospace;
    font-size: 14px;
    opacity: 0.75;
    word-break: break-all;
    line-height: 1.29;
    color: rgb(255 255 255 / 90%);
}

.copy-btn {
    position: absolute;
    top: 6px;
    right: 6px;
    width: 21px;
    height: 26px;
    border: 0;
    border-radius: 4px;
    background: none;
    color: #cfe6ee;
    cursor: pointer;
    display: grid;
    place-items: center;
}

.copy-btn:hover {
    background: rgba(255, 255, 255, .12);
}

.copy-btn img {
    width: 13px;
    height: 17px;
    filter: brightness(1.5);
}

/* "Copied!" tooltip above the copy icon */
.copy-tooltip {
    position: absolute;
    bottom: calc(100% + 8px);
    left: 50%;
    transform: translate(-50%, 4px);
    background: #0a1e28;
    color: #fff;
    font-family: "Source Sans 3", "Segoe UI", system-ui, sans-serif;
    font-size: .8rem;
    white-space: nowrap;
    padding: 5px 10px;
    border-radius: 6px;
    pointer-events: none;
    opacity: 0;
    transition: opacity .15s ease, transform .15s ease;
}

.copy-tooltip::after {
    /* small arrow */
    content: "";
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    border: 5px solid transparent;
    border-top-color: #0a1e28;
}

.copy-tooltip.show {
    opacity: 1;
    transform: translate(-50%, 0);
}

@media (prefers-reduced-motion: reduce) {
    .copy-tooltip {
        transition: none;
    }
}

.learn-more {
    color: #e4f1f6;
    font-weight: 700;
    font-size: .9rem;
    text-decoration: none;
}

.learn-more:hover {
    text-decoration: underline;
}

.footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 6px;
}

.done-btn {
    background: rgba(10, 30, 40, .9);
    color: #e4f1f6;
    border: 1.5px solid rgba(220, 240, 245, .8);
    border-radius: 999px;
    padding: 8px 20px;
    font-size: 1rem;
    cursor: pointer;
}

.done-btn:hover {
    background: #0a1e28;
    border-color: #fff;
}

/* Close X */
.close-btn {
    position: absolute;
    top: 14px;
    right: 16px;
    background: none;
    border: 0;
    color: #fff;
    font-size: 30px;
    line-height: 1;
    cursor: pointer;
}
a.chevron-after.open-popup-link {
    margin-right:2rem;
}
button:focus-visible,
a:focus-visible {
    outline: 2px solid #9fe0f0;
    outline-offset: 2px;
}

/* Fade-in when opening */
#popup[open],
#popup[open]::backdrop {
    animation: fade .2s ease;
}

@keyframes fade {
    from {
        opacity: 0;
    }
}

@media (prefers-reduced-motion: reduce) {

    #popup[open],
    #popup[open]::backdrop {
        animation: none;
    }
}

/* Bullet list in the bottom section */
#popup .bottom {
    font-size: 14px;
    font-weight: 400;
    line-height: 1.5;
    letter-spacing: 0.07px;
    text-align: left;
    color: #d5dcea;
}

#popup .bottom ul {
    margin: 8px 0 18px;
    padding-left: 18px;
    line-height: 1.55;
}

#popup .bottom ul li {
    margin-bottom: 6px;
    padding-left: 15px;
    position:relative;
}

#popup .bottom .list-title {
    margin-bottom: 8px;
}


/* Stop page scrolling while open */
body:has(dialog[open]) {
    overflow: hidden;
}
h3.quick-start .open-btn{
    background:none;
    color:#fff;
    border:none;
}
h3.quick-start .open-btn::hover{
    background:none;
    color:#fff;
}
h3.quick-start .open-btn::after {
  content: "";
  display: inline-block;
  width: 0.4em;
  height: 0.4em;
  margin-left: 0.4em;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: rotate(45deg);
  vertical-align: 0.2em;
  transition: transform 0.2s ease;
}

/* Flip the chevron up when the popup is open */
h3.quick-start .open-btn[aria-expanded="true"]::after {
  transform: rotate(-135deg);
  vertical-align: 0;
}

/*let's keep these close by*/
@media (max-width: 1199px) {
    .mcp-hero-visual {
        height: calc(66vw * 553 / 1200) !important;
        right: 0.5% !important;
    }
}

@media (min-width: 1024px) {
    .hero::after {
        content: '';
        position: absolute;
        inset: 0;
        z-index: 2;
        pointer-events: none;
        background:
            linear-gradient(to right,
                var(--bg) 0%,
                color-mix(in srgb, var(--bg) 75%, transparent) 30%,
                transparent 55%,
                rgba(4, 7, 20, 0.25) 100%),
            linear-gradient(to bottom, transparent 50%, var(--bg) 100%);
    }
}

@media (max-width: 1023px) {
    .mcp-hero-visual {
        opacity: 0.8;
    }
}

@media (max-width: 599px) {
    #hero {
        background:
            radial-gradient(170% 130% at 50% 45%, rgba(59, 130, 246, 0.14) 0%, rgba(43, 192, 224, 0.07) 60%, rgba(43, 192, 224, 0.03) 100%),
            var(--bg);
    }

    body:not(.subpage) #hero .button {
        background: rgba(8, 12, 22, 0.55);
        -webkit-backdrop-filter: blur(5px);
        backdrop-filter: blur(5px);
    }

    .mcp-hero-visual {
        opacity: 0.18;
        height: 100vw !important;
        top: 50% !important;
        left: 42% !important;
        right: auto !important;
        transform: translate(-50%, -50%) !important;
    }

    .mcp-hero-spikey {
        transform: none !important;
        opacity: 1 !important;
    }

    .mcp-hero-scene {
        transform: none !important;
        opacity: 1 !important;
    }
}


/*buttons*/
#hero .btn-outline span {
    background-repeat: no-repeat;
    background-position: left center;
    background-size: 16px;
    padding-left: 24px;
}

#hero .btn-outline.local {
    color: #C4B5FD;
    border: 1.5px solid #8B5CF6;
    box-shadow: none;
}

#hero .btn-outline.local:hover {
    background: rgba(139, 92, 246, 0.10);
    border-color: #C4B5FD;
}

#hero .btn-outline.local span {
    background-image: url('/ai/mcp/img/icon-local.svg');
}

#hero .btn-outline.cloud {
    color: #6FD8EE;
    border: 1.5px solid #2BC0E0;
    box-shadow: none;
}

#hero .btn-outline.cloud:hover {
    background: rgba(43, 192, 224, 0.10);
    border-color: #6FD8EE;
}

#hero .btn-outline.cloud span {
    background-image: url('/ai/mcp/img/icon-cloud.svg');
}

#hero .btn-outline.enterprise {
    color: #F58A7E;
    border: 1.5px solid #EF4A3C;
    box-shadow: none;
}

#hero .btn-outline.enterprise:hover {
    background: rgba(239, 74, 60, 0.10);
    border-color: #F58A7E;
}

#hero .btn-outline.enterprise span {
    background-image: url('/ai/mcp/img/icon-enterprise.svg');
}


/* ==================================================
   access options
   ================================================== */
#access-options {
    background: var(--bg-grad-cyan);
}

#access-options .content {
    display: grid;
    gap: 1.25rem;
    grid-template-columns: repeat(3, 1fr);
}

#access-options h2 {
    grid-column-end: span 3;
}

#access-options .pod {
    padding: 1.25rem 2rem 2rem;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

#access-options .pod-label {
    background-repeat: no-repeat;
    background-position: 0.75rem center;
    background-size: 16px;
    border: 1px solid;
    border-radius: 10rem;
    display: inline-block;
    font-size: 0.875rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
    padding: 0.375rem 0.75rem 0.375rem 36px;
}

#access-options h3 {
    color: #fff;
    font-size: 1.35rem;
}

#access-options h4 {
    font-size: 1rem;
    color: #fff;
    margin-bottom: 0.75rem;
}

#access-options p {
    padding-bottom: 1.25rem
}

#access-options div.included {
    border: 1px solid;
    border-radius: 0.625rem;
    font-size: 0.9rem;
    line-height: 1.3;
    margin-bottom: 2.5rem;
    padding: 0.75rem 0.875rem;
    align-items: center;
    display: grid;
    gap: 0.5rem;
    grid-template-columns: 36px 1fr;
}

#access-options .included a {
    text-decoration: underline;
    color: inherit;
}

#access-options .button {
    font-size: 0.9rem;
    margin-bottom: 0;
}


/*local*/
#access-options .local {
    border-color: rgba(139, 92, 246, 0.40);
}

#access-options .local h3 span {
    color: #C4B5FD;
}

#access-options .local .pod-label,
#access-options .local div.included {
    background-color: rgba(139, 92, 246, 0.10);
    border-color: rgba(139, 92, 246, 0.40);
    color: #C4B5FD;
}

#access-options .local .pod-label {
    background-image: url('/ai/mcp/img/icon-local.svg');
}

#access-options .local .button:not(.btn-outline) {
    background: #8B5CF6;
    border-color: #8B5CF6;
    color: #fff;
}

#access-options .local .button:not(.btn-outline):hover {
    background: #7C3AED;
    border-color: #7C3AED;
}

#access-options .local .btn-outline {
    border-color: #C4B5FD;
    color: #C4B5FD;
}


/*cloud*/
#access-options .cloud {
    border-color: rgba(43, 192, 224, 0.40);
}

#access-options .cloud h3 span {
    color: #6FD8EE;
}

#access-options .cloud .pod-label,
#access-options .cloud div.included {
    background-color: rgba(43, 192, 224, 0.10);
    border-color: rgba(43, 192, 224, 0.40);
    color: #6FD8EE;
}

#access-options .cloud .pod-label {
    background-image: url('/ai/mcp/img/icon-cloud.svg');
}


/*enterprise*/
#access-options .enterprise {
    border-color: rgba(239, 74, 60, 0.40);
}

#access-options .enterprise h3 span {
    color: #EF4A3C;
}

#access-options .enterprise .pod-label,
#access-options .enterprise div.included {
    background-color: rgba(239, 74, 60, 0.10);
    border-color: rgba(239, 74, 60, 0.40);
    color: #F58A7E;
}

#access-options .enterprise .pod-label {
    background-image: url('/ai/mcp/img/icon-enterprise.svg');
}

#access-options .enterprise .button:not(.btn-outline) {
    background: #A72817;
    border-color: #A72817;
    color: #fff;
}

#access-options .enterprise .button:not(.btn-outline):hover {
    background: color-mix(in srgb, #000 12%, #A72817);
    border-color: color-mix(in srgb, #000 12%, #A72817);
}


/*subpages*/
.subpage #access-options .content {
    grid-template-columns: repeat(2, 1fr);
}

.subpage #access-options h3 {
    border-bottom: 1px solid;
    margin-bottom: 1.25rem;
    padding-bottom: 1rem;
}

.subpage #access-options .local h3 {
    border-color: rgba(139, 92, 246, 0.20);
}

.subpage #access-options .cloud h3 {
    border-color: rgba(43, 192, 224, 0.20);
}

.subpage #access-options h4 {
    color: #6FD8EE;
    font-size: 1.125rem;
    margin-bottom: 0;
}

.subpage #access-options .local h4 {
    color: #C4B5FD;
}

.subpage #access-options .buttons {
    margin-top: 1.5rem;
}


/* ==================================================
   how it works
   ================================================== */
#how-it-works {
    background: var(--bg-grad-quiet);
    text-align: center;
}



/* ==================================================
   use cases
   ================================================== */
#use-cases {
    background: var(--bg-grad-cyan);
}

#use-cases .content>div {
    display: grid;
    gap: 7.625rem;
    grid-template-columns: 1fr 1fr;
    position: relative;
}

#use-cases .content>div::after {
    position: absolute;
    content: '';
    background: url('/ai/mcp/img/spikey-gradient.svg');
    background-size: cover;
    width: 180px;
    height: 190px;
    inset: 0;
    margin: auto;
    filter:
        drop-shadow(0 0 24px rgba(139, 92, 246, 0.30)) drop-shadow(0 0 32px rgba(43, 192, 224, 0.25));
}

#use-cases .pod {
    padding: 1.25rem 2rem 2rem;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

#use-cases h3 {
    border-bottom: 1px solid;
    color: #fff;
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
}

#use-cases .item {
    display: grid;
    gap: 1rem;
    grid-template-columns: 24px 1fr;
}

#use-cases .buttons {
    margin-top: 1rem;
}

#use-cases .button {
    font-size: .9rem;
    margin-bottom: 0;
}


/*local*/
#use-cases .local,
#use-cases .local h3 {
    border-color: rgba(139, 92, 246, 0.40);
}

#use-cases .local h4 {
    color: #C4B5FD;
}

#use-cases .local .button {
    background: #8B5CF6;
    border-color: #8B5CF6;
    color: #fff;
}


/*cloud*/
#use-cases .cloud,
#use-cases .cloud h3 {
    border-color: rgba(43, 192, 224, 0.40);
}



/* ==================================================
   set apart
   ================================================== */
#set-apart {
    background: var(--bg-grad-cyan);
}

#set-apart .content {
    display: grid;
    gap: 1.25rem;
    grid-template-columns: 1fr 1fr;
}

#set-apart h2,
#set-apart .pod.trusted,
#set-apart .buttons {
    grid-column-end: span 2;
}

#set-apart .pod {
    display: grid;
    gap: 1rem;
    grid-template-columns: 55px 1fr;
    padding: 1.5rem 2rem;
}

#set-apart .pod.trusted {
    background:
        radial-gradient(ellipse 50% 80% at 5% 50%,
            rgba(43, 192, 224, 0.22) 0%,
            transparent 60%),
        radial-gradient(ellipse 55% 80% at 100% 50%,
            rgba(31, 143, 184, 0.18) 0%,
            transparent 60%),
        linear-gradient(135deg,
            color-mix(in srgb, #1FA0B8 22%, rgba(13, 22, 44, 0.65)) 0%,
            rgba(13, 22, 44, 0.55) 55%,
            color-mix(in srgb, #1F8FB8 18%, rgba(13, 22, 44, 0.65)) 100%);
}

#set-apart p {
    padding-bottom: 0;
}

#set-apart .buttons {
    justify-content: center;
}



/* ==================================================
   examples
   ================================================== */
#examples {
    background: var(--bg-grad-cyan);
}



/* ==================================================
   cta
   ================================================== */
#cta {
    background: var(--bg-grad-quiet);
}

#cta .pod {
    border: 1px solid rgba(239, 74, 60, 0.30);
    position: relative;
    background: radial-gradient(ellipse 70% 80% at 90% 50%,
            rgba(239, 74, 60, 0.14) 0%,
            rgba(239, 74, 60, 0.05) 35%,
            transparent 65%),
        radial-gradient(ellipse 60% 60% at 5% 105%,
            rgba(77, 62, 159, 0.10) 0%,
            transparent 55%),
        linear-gradient(135deg,
            rgba(13, 22, 44, 0.75) 0%,
            rgba(13, 22, 44, 0.5) 100%);
    padding: 2rem 2.5rem;
}

#cta h2 {
    color: #fff;
    font-size: 28px;
    margin-bottom: 0.75rem;
    text-align: left;
}

#cta h2 span {
    color: #EF4A3C;
}

#cta img {
    opacity: 0.22;
    pointer-events: none;
    position: absolute;
    right: -60px;
    top: 50%;
    transform: translateY(-50%);
    z-index: 0;
    filter: drop-shadow(0 0 24px rgba(236, 72, 153, 0.35)) drop-shadow(0 0 60px rgba(236, 72, 153, 0.18))
}

#cta .button {
    background: #A72817;
    border-color: #A72817;
    color: #fff
}

#cta .button:hover {
    background: color-mix(in srgb, #000 12%, #A72817);
    border-color: color-mix(in srgb, #000 12%, #A72817);
}



/* ==================================================
   responsive
   ================================================== */
@media (max-width: 1200px) {}


@media (max-width: 900px) {

    /*access options*/
    #access-options .content {
        grid-template-columns: 1fr;
    }

    #access-options h2 {
        grid-column-end: span 1;
    }

    .subpage #access-options h2 {
        grid-column-end: span 2;
    }


    /*use cases*/
    #use-cases .content>div {
        gap: 1.25rem;
        grid-template-columns: 1fr;
    }

    #use-cases .content>div::after {
        display: none;
    }


    /*set apart*/
    #set-apart .content {
        grid-template-columns: 1fr;
    }

    #set-apart h2,
    #set-apart .buttons,
    #set-apart .pod.trusted {
        grid-column-end: span 1;
    }
}


@media (max-width: 600px) {

    /*access options*/
    .subpage #access-options .content {
        grid-template-columns: 1fr;
    }

    .subpage #access-options h2 {
        grid-column-end: span 1;
    }
}


@media (max-width: 320px) {}


@media print {}