/* mcp cloud page
   developer:   rmiske
   requires:    /common/framework/css/framework.ja.css
                /ai/shared.css
                /ai/mcp/styles.css
   ========================================================================== */


/* ==================================================
   SETUP
   ================================================== */



/* ==================================================
   Hero
   ================================================== */
.hero {
    background:
        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%),
        radial-gradient(circle at 22% 55%, rgba(43, 192, 224, 0.16) 0%, transparent 50%),
        radial-gradient(circle at 12% 65%, rgba(31, 160, 184, 0.20) 0%, transparent 55%),
        #040714;
}

.mcp-cloud-hero-bg {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 0;
}

.mcp-cloud-hero-halo {
    position: absolute;
    right: 9%;
    top: 0;
    bottom: 0;
    width: 65%;
    z-index: 1;
    pointer-events: none;
    background: radial-gradient(ellipse 40% 78% at 56% 50%, rgba(80, 178, 236, 0.32) 0%, rgba(43, 170, 224, 0.16) 40%, rgba(43, 192, 224, 0.05) 72%, transparent 100%);
}

.mcp-cloud-hero-fancy {
    position: absolute;
    right: 9%;
    top: 0;
    bottom: 0;
    width: 65%;
    z-index: 2;
    background-image: url('/ai/mcp/img/mcp-cloud-hero-fancy.png');
    background-position: right center;
    background-repeat: no-repeat;
    background-size: 104%;
    pointer-events: none;
    mix-blend-mode: screen;
    -webkit-mask-image: radial-gradient(ellipse 85% 95% at 60% 50%, #000 15%, rgba(0, 0, 0, 0.5) 55%, transparent 100%), linear-gradient(to right, #000 54%, transparent 94%);
    -webkit-mask-composite: source-in;
    mask-image: radial-gradient(ellipse 85% 95% at 60% 50%, #000 15%, rgba(0, 0, 0, 0.5) 55%, transparent 100%), linear-gradient(to right, #000 54%, transparent 94%);
    mask-composite: intersect;
}

.mcp-cloud-hero-safe {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 2;
}

.mcp-cloud-hero-visual {
    position: absolute;
    right: 0%;
    top: 50%;
    transform: translateY(-50%);
    height: min(100%, 480px);
    aspect-ratio: 1200 / 553;
    z-index: 4;
    pointer-events: none;
}

.mcp-cloud-hero-visual>div {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    width: 50%;
    aspect-ratio: 1/1;
    pointer-events: none;
    z-index: 0;
    background: radial-gradient(circle at center,
            rgba(168, 232, 244, 0.30) 0%,
            rgba(111, 216, 238, 0.18) 22%,
            rgba(43, 192, 224, 0.08) 45%,
            transparent 72%);
    filter: blur(12px);
}

.mcp-cloud-hero-visual svg {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    transform: translateX(-40px);
}

/* ---------- 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);
}

#popup .copy-box {
    background: rgb(3 63 89 / 95%);
}
#popup .top {
    background: rgb(20 114 146 / 92%);
}
#popup .bottom {
    background: rgb(23 87 115 / 95%);
}

/* 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 {
    margin: 0 0 14px;
    font-size: 1.35rem;
    font-weight: 600;
}

#popup p {
    margin: 0 0 18px;
    line-height: 1.55;
}

/* Box with the copy icon */
.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;
}

.footer a {
    color: #b0dcf3;
    font-weight: 700;
    font-size: .9rem;
    text-decoration: none;
}

.footer a:hover {
    color: #fff;
}

.done-btn {
    border-radius: 20px;
    border: solid 1px #236176;
    background-color: #1a2c36;
    color: #e4f1f6;
    padding: 8px 20px;
    font-size: 1rem;
    cursor: pointer;
}

.done-btn:hover {
    background: #0a1e28;
    border-color: #438093;
} 

/*let's keep these close*/
@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: 1199px) {
    .mcp-cloud-hero-visual {
        height: calc(66vw * 553 / 1200) !important;
        /* was 72.4vw â€” pulled back from the text column */
        right: 0.5% !important;
    }

    .mcp-cloud-hero-visual svg {
        transform: none !important;
    }

    .mcp-cloud-hero-png,
    .mcp-cloud-hero-halo {
        right: 3.8% !important;
    }
}

@media (max-width: 1023px) {
    .mcp-cloud-hero-png {
        opacity: 0.75;
    }

    .mcp-cloud-hero-halo {
        opacity: 0.65;
    }

    .mcp-cloud-hero-visual {
        opacity: 0.8;
    }
}

@media (max-width: 599px) {
    .hero {
        background:
            radial-gradient(170% 130% at 50% 45%, rgba(43, 192, 224, 0.16) 0%, rgba(31, 160, 184, 0.09) 60%, rgba(31, 160, 184, 0.04) 100%),
            var(--bg);
    }

    .mcp-cloud-hero-png {
        opacity: 0.45;
        left: 0 !important;
        right: 0 !important;
        width: auto !important;
        background-size: 175% auto !important;
        background-position: 63% 45% !important;
    }

    .mcp-cloud-hero-halo {
        opacity: 0.25;
    }

    .mcp-cloud-hero-visual {
        opacity: 0.18;
        height: 100vw !important;
        top: 50% !important;
        left: 42% !important;
        right: auto !important;
        transform: translate(-50%, -50%) !important;
    }
}


/*other hero stuff*/
#hero p:last-of-type a {
    font-weight: bold;
}

#hero .pod-label {
    background-color: rgba(43, 192, 224, 0.10);
    background-image: url('/ai/mcp/img/icon-cloud.svg');
    background-repeat: no-repeat;
    background-position: 0.75rem center;
    background-size: 16px;
    border: 1px solid;
    border-color: rgba(43, 192, 224, 0.40);
    border-radius: 10rem;
    color: #6FD8EE;
    display: inline-block;
    font-size: 0.875rem;
    font-weight: 600;
    margin-bottom: 1rem;
    padding: 0.375rem 0.75rem 0.375rem 36px;
}



/* ==================================================
   using
   ================================================== */
#using {
    text-align: center;
}

#using h2 {
    margin-bottom: 1.25rem;
}

#using .items {
    border: solid 1px #8be3f25c;
    border-radius: 10px;
    padding: 1rem 1rem;
    color: white;
    margin: 0 auto 1.5rem;
    max-width: 800px;
    font-weight: 600;
    background: 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%);
}

#using .items strong {
    color: #a2e5f3;
    font-weight: 400;
    /*padding-right: 0.1875rem;*/
}

#using .items span+span::before {
    color: var(--body);
    content: '\25AA\0020';
    /*margin-left: 0.1875rem;
    margin-right: 0.25rem;*/
}

#using .items a {
    color: #fff;
}

#using .items a:hover {
    color: var(--link);
}

#using p:last-child {
    border-top: 1px solid rgba(43, 192, 224, 0.18);
    display: inline-block;
    padding: 1.25rem 2rem 0;
    margin-top: 2rem;
}

#using p:last-child strong {
    color: #fff;
}



/* ==================================================
   access options (use cases)
   ================================================== */
#access-options .item {
    display: grid;
    gap: 1rem;
    grid-template-columns: 24px 1fr;
}



/* ==================================================
   examples
   ================================================== */
#examples .content {
    display: grid;
    gap: 1.5rem;
    grid-template-columns: 1fr 1fr;
}

#examples h2 {
    grid-column-end: span 2;
}

#examples .pod {
    border: 1px solid rgba(43, 192, 224, 0.30);
    box-shadow: 0 0 32px rgba(43, 192, 224, 0.06);
    display: flex;
    padding: 1.25rem;
}

.flex.justify-end {
    display: flex;
    justify-content: end;
}

/* ==================================================
   Hero glow button
   ================================================== */
#hero .buttons .open-btn.button {
    background: transparent;
    border: 2.0px solid #2BC0E0;
    color: #fff;
}

#hero .buttons .open-btn.button:hover {
    background: #002740;
    color: #fff;
    transform: none;
}

@property --glow-angle {
    syntax: '<angle>';
    initial-value: 0deg;
    inherits: false;
}

#hero .buttons .open-btn.button.glow:not(:has(~ #popup[open])) {
    --glow-angle: 0deg;
    background:
        linear-gradient(#070b16, #070b16) padding-box,
        conic-gradient(from var(--glow-angle),
            rgba(255, 255, 255, 0.12) 0deg,
            #2BC0E0 40deg,
            #6FD8EE 70deg,
            rgba(255, 255, 255, 0.12) 120deg,
            rgba(255, 255, 255, 0.12) 180deg,
            #5B8CFF 220deg,
            #C9D6E8 250deg,
            rgba(255, 255, 255, 0.12) 300deg) border-box;
    border: 2.0px solid transparent;
    box-shadow: 0 0 14px rgba(43, 192, 224, 0.18), 0 6px 18px rgba(0, 0, 0, 0.4);
    color: #fff;
    animation: hero-glow-spin 4s linear infinite;
}

#hero .buttons .open-btn.button.glow:not(:has(~ #popup[open])):hover {
    box-shadow: 0 0 22px rgba(43, 192, 224, 0.35), 0 14px 40px rgba(0, 0, 0, 0.5);
    color: #fff;
}

@keyframes hero-glow-spin {
    to {
        --glow-angle: 360deg;
    }
}

@media (prefers-reduced-motion: reduce) {
    #hero .buttons .open-btn.button.glow:not(:has(~ #popup[open])) {
        animation: none;
    }
}

/* ==================================================
   responsive
   ================================================== */
@media (max-width: 1200px) {}


@media (max-width: 900px) {

    /*examples*/
    #examples .content {
        grid-template-columns: 1fr;
    }

    #examples h2 {
        grid-column-end: span 1;
    }
}


@media (max-width: 600px) {}


@media (max-width: 320px) {}


@media print {}
