/* ============================================================================
   Default home product showcase
   A focused bento presentation for the product ecosystem section.
   ============================================================================ */

.banner-menu {
    --showcase-menu-overlap: 60px;
    background: linear-gradient(180deg, transparent var(--showcase-menu-overlap), #edf3fc var(--showcase-menu-overlap));
}

.product-showcase {
    --showcase-radius: 18px;
    --showcase-blue: var(--primary-blue, #006eff);
    --showcase-blue-deep: var(--primary-dark, #0056cc);
    --showcase-ink: var(--text-main, #1d2129);
    --showcase-muted: var(--text-sub, #4e5969);
    --showcase-line: rgba(28, 86, 173, .12);
    --showcase-surface: rgba(255, 255, 255, .86);
    position: relative;
    isolation: isolate;
    overflow: hidden;
    padding: 84px 0 104px !important;
    background:
        linear-gradient(180deg, #edf3fc, rgba(237, 243, 252, 0) 180px),
        radial-gradient(circle at 8% 18%, rgba(77, 145, 255, .08), transparent 32%),
        radial-gradient(circle at 92% 86%, rgba(59, 126, 232, .06), transparent 32%),
        linear-gradient(180deg, #edf3fc 0%, #f4f7fc 100%);
}

.product-showcase::before {
    position: absolute;
    content: '';
    z-index: -2;
    top: 12%;
    right: -110px;
    width: 520px;
    height: 520px;
    border: 1px solid rgba(23, 105, 232, .1);
    border-radius: 42% 58% 56% 44%;
    background: radial-gradient(circle at 30% 30%, rgba(255, 255, 255, .7), rgba(255, 255, 255, 0) 68%);
    transform: rotate(18deg);
    animation: home-product-orbit 16s ease-in-out infinite alternate;
    pointer-events: none;
}

.product-showcase::after {
    position: absolute;
    content: '';
    z-index: -1;
    inset: 0;
    opacity: .34;
    background-image: radial-gradient(rgba(23, 105, 232, .18) 1px, transparent 1px);
    background-size: 28px 28px;
    mask-image: linear-gradient(90deg, transparent, #000 18%, #000 82%, transparent);
    pointer-events: none;
}

.product-showcase__header {
    position: relative;
    z-index: 1;
    margin: 0 auto 54px;
    padding: 0 20px;
}

.product-showcase__eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    margin-bottom: 18px;
    color: var(--showcase-blue);
    font-size: 12px;
    font-weight: 600;
    letter-spacing: .18em;
    line-height: 1.4;
}

.product-showcase__eyebrow > span {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--showcase-blue);
    box-shadow: 0 0 0 5px rgba(23, 105, 232, .11), 0 0 18px rgba(23, 105, 232, .38);
    animation: home-product-ping 2.4s ease-in-out infinite;
}

.product-showcase__eyebrow b {
    color: var(--showcase-muted);
    font-size: 11px;
    font-weight: 600;
    letter-spacing: .08em;
}

/* Reuse the live homepage typography from index-modern.css. */
.product-showcase .product-title1 {
    margin-top: 0;
    margin-bottom: 15px;
    color: var(--showcase-ink);
}

.product-showcase .product-showcase__title-accent {
    color: var(--showcase-blue) !important;
}

.product-showcase .product-title1-text {
    max-width: 720px;
    margin: 0 auto;
    color: var(--showcase-muted);
}

.product-showcase__header-line {
    position: relative;
    width: min(116px, 30vw);
    height: 3px;
    margin: 25px auto 0;
    overflow: hidden;
    border-radius: 999px;
    background: rgba(23, 105, 232, .15);
}

.product-showcase__header-line::after {
    position: absolute;
    content: '';
    inset: 0 auto 0 0;
    width: 42%;
    border-radius: inherit;
    background: var(--showcase-blue);
    animation: home-product-line 2.8s ease-in-out infinite;
}

.product-showcase__body {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: minmax(270px, 300px) minmax(0, 1fr);
    align-items: stretch;
    gap: 24px;
}

.product-showcase__featured {
    display: grid;
    grid-template-rows: repeat(3, minmax(0, 1fr));
    gap: 16px;
    width: auto;
    min-width: 0;
}

.product-showcase__featured:focus-visible {
    outline: 2px solid var(--showcase-blue);
    outline-offset: 4px;
    border-radius: var(--showcase-radius);
}

.product-showcase__feature {
    position: relative;
    min-width: 0;
    min-height: 216px;
    overflow: hidden;
    padding: 28px 26px 24px;
    border: 1px solid rgba(255, 255, 255, .9);
    border-radius: var(--showcase-radius);
    background: linear-gradient(145deg, rgba(255, 255, 255, .97), rgba(240, 247, 255, .83));
    box-shadow: 0 16px 38px rgba(27, 71, 137, .08), inset 0 1px 0 rgba(255, 255, 255, .9);
    transition: transform .28s cubic-bezier(.2, .8, .2, 1), box-shadow .28s ease, border-color .28s ease;
}

.product-showcase__feature::before {
    position: absolute;
    content: '';
    top: -45px;
    right: -42px;
    width: 150px;
    height: 150px;
    border: 1px solid rgba(23, 105, 232, .14);
    border-radius: 50%;
    box-shadow: 0 0 0 18px rgba(23, 105, 232, .035), 0 0 0 38px rgba(23, 105, 232, .025);
    pointer-events: none;
}

.product-showcase__feature::after {
    position: absolute;
    content: '';
    right: 24px;
    bottom: 23px;
    width: 58px;
    height: 2px;
    border-radius: 999px;
    background: linear-gradient(90deg, rgba(23, 105, 232, 0), rgba(23, 105, 232, .55));
    transform-origin: right center;
    transform: scaleX(.52);
    transition: transform .28s ease;
}

.product-showcase__feature:hover {
    border-color: rgba(23, 105, 232, .26);
    box-shadow: 0 22px 46px rgba(22, 81, 165, .14), 0 0 0 4px rgba(23, 105, 232, .045);
    transform: translate3d(0, -6px, 0);
}

.product-showcase__feature:hover::after {
    transform: scaleX(1);
}

.product-showcase__feature .product-recommend-title {
    position: relative;
    z-index: 1;
    margin-bottom: 15px;
    color: var(--showcase-ink);
}

.product-showcase__feature .product-recommend-text {
    position: relative;
    z-index: 1;
    margin-bottom: 18px;
    color: var(--showcase-muted);
    text-wrap: pretty;
}

.product-showcase__feature .product-recommend-gap {
    position: relative;
    z-index: 1;
    gap: 8px;
    padding-top: 0;
}

.product-showcase__feature .product-recommend-it,
.product-showcase__catalog .product-recommend-it {
    --tag-ink: #285ca5;
    --tag-start: #eaf3ff;
    --tag-end: #f4f8ff;
    --tag-border: #d2e2fa;
    min-width: 0;
    max-width: 100%;
    height: auto;
    border: 1px solid var(--tag-border);
    border-radius: 999px;
    background: linear-gradient(135deg, var(--tag-start), var(--tag-end));
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, .85);
    color: var(--tag-ink);
    font-size: 12px;
    font-weight: 500;
    line-height: 1.5;
    white-space: normal;
    overflow-wrap: anywhere;
}

.product-showcase .product-recommend-it:nth-child(5n + 2) {
    --tag-ink: #216d63;
    --tag-start: #e6f7f4;
    --tag-end: #f2fbf9;
    --tag-border: #cceae3;
}

.product-showcase .product-recommend-it:nth-child(5n + 3) {
    --tag-ink: #936020;
    --tag-start: #fff1df;
    --tag-end: #fff8ee;
    --tag-border: #f4dfba;
}

.product-showcase .product-recommend-it:nth-child(5n + 4) {
    --tag-ink: #67509d;
    --tag-start: #f0ebff;
    --tag-end: #f8f5ff;
    --tag-border: #e0d6f5;
}

.product-showcase .product-recommend-it:nth-child(5n + 5) {
    --tag-ink: #3e6482;
    --tag-start: #e9f3fb;
    --tag-end: #f4f9fd;
    --tag-border: #d4e4f0;
}

.product-showcase__feature .product-recommend-it {
    padding: 4px 9px;
}

.product-showcase__feature .badge-hot::before,
.product-showcase__feature .badge-new::before,
.product-showcase__feature .badge-sale::before {
    display: inline-block;
    width: 5px;
    height: 5px;
    margin-right: 5px;
    border-radius: 50%;
    background: currentColor;
    content: '';
}

.product-showcase__catalogs {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    align-items: stretch;
    gap: 16px;
    width: auto;
}

.product-showcase__catalog {
    position: relative;
    display: flex;
    flex-direction: column;
    min-width: 0;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, .95);
    border-radius: var(--showcase-radius);
    background: var(--showcase-surface);
    box-shadow: 0 16px 38px rgba(27, 71, 137, .08), inset 0 1px 0 rgba(255, 255, 255, .95);
    transition: transform .3s cubic-bezier(.2, .8, .2, 1), box-shadow .3s ease, border-color .3s ease;
}

.product-showcase__catalog::before {
    position: absolute;
    z-index: 3;
    content: '';
    top: 0;
    bottom: 0;
    left: 0;
    width: 35%;
    opacity: 0;
    background: linear-gradient(105deg, transparent, rgba(255, 255, 255, .68), transparent);
    transform: translateX(-180%) skewX(-18deg);
    pointer-events: none;
}

.product-showcase__catalog:hover {
    border-color: rgba(23, 105, 232, .22);
    box-shadow: 0 24px 52px rgba(22, 81, 165, .14), 0 0 0 4px rgba(23, 105, 232, .035);
    transform: translate3d(0, -7px, 0);
}

.product-showcase__catalog:hover::before {
    opacity: 1;
    animation: home-product-shine 1.15s ease both;
}

.product-showcase__catalog > .cloud-server,
.product-showcase__catalog > .cloud-server1,
.product-showcase__catalog > .cloud-server2 {
    flex: 0 0 auto;
    min-height: 148px;
    height: auto;
    padding: 28px 26px !important;
    overflow: hidden;
    border-bottom: 1px solid rgba(23, 105, 232, .1);
    background:
        linear-gradient(140deg, rgba(228, 240, 255, .9), rgba(255, 255, 255, .8)),
        radial-gradient(circle at 88% 18%, rgba(23, 105, 232, .2), transparent 42%);
}

.product-showcase__catalog > .cloud-server1 {
    background:
        linear-gradient(140deg, rgba(226, 248, 255, .9), rgba(255, 255, 255, .8)),
        radial-gradient(circle at 88% 18%, rgba(0, 161, 219, .2), transparent 42%);
}

.product-showcase__catalog > .cloud-server2 {
    background:
        linear-gradient(140deg, rgba(238, 232, 255, .9), rgba(255, 255, 255, .8)),
        radial-gradient(circle at 88% 18%, rgba(121, 78, 219, .18), transparent 42%);
}

.product-showcase__catalog .cloud-server > div,
.product-showcase__catalog .cloud-server1 > div,
.product-showcase__catalog .cloud-server2 > div {
    position: relative;
    z-index: 1;
    padding: 0 !important;
}

.product-showcase__catalog .cloud-server-title {
    max-width: 100%;
    margin-bottom: 9px;
    color: var(--showcase-ink);
}

.product-showcase__catalog .cloud-server > div > div:last-child,
.product-showcase__catalog .cloud-server1 > div > div:last-child,
.product-showcase__catalog .cloud-server2 > div > div:last-child {
    max-width: calc(100% - 64px);
    color: var(--showcase-muted);
    font-size: 14px;
    font-weight: 400;
    line-height: 1.55;
    text-wrap: pretty;
}

.product-showcase__catalog .cloud-server img,
.product-showcase__catalog .cloud-server1 img,
.product-showcase__catalog .cloud-server2 img {
    right: 19px;
    bottom: 19px;
    width: 64px;
    opacity: .92;
    filter: drop-shadow(0 12px 12px rgba(31, 100, 201, .15));
    animation: home-product-float 4.8s ease-in-out infinite;
}

.product-showcase__catalog .product-line1,
.product-showcase__catalog .product-line2,
.product-showcase__catalog .product-line3 {
    display: none;
}

.product-showcase__catalog > a {
    position: relative;
    display: block;
    color: inherit;
    cursor: pointer;
    text-decoration: none;
    transition: background-color .24s ease;
}

.product-showcase__catalog > a::after {
    position: absolute;
    content: '\f105';
    top: 50%;
    right: 23px;
    color: var(--showcase-blue);
    font-family: FontAwesome;
    font-size: 17px;
    opacity: 0;
    transform: translate(-6px, -50%);
    transition: opacity .24s ease, transform .24s ease;
}

.product-showcase__catalog > a:hover,
.product-showcase__catalog > a:focus-visible {
    background: rgba(232, 242, 255, .48);
    outline: none;
}

.product-showcase__catalog > a:hover::after,
.product-showcase__catalog > a:focus-visible::after {
    opacity: 1;
    transform: translate(0, -50%);
}

.product-showcase__catalog > a:focus-visible {
    box-shadow: inset 0 0 0 3px rgba(23, 105, 232, .22);
}

.product-showcase__catalog .cloud-server-item {
    min-height: 102px;
    padding: 22px 26px;
    border-top: 1px solid rgba(23, 105, 232, .09);
    transition: background-color .24s ease;
}

.product-showcase__catalog .cloud-server-item .product-recommend-title {
    margin-bottom: 8px;
    color: var(--showcase-ink);
    transition: color .24s ease;
}

.product-showcase__catalog > a:hover .cloud-server-item .product-recommend-title,
.product-showcase__catalog > a:focus-visible .cloud-server-item .product-recommend-title {
    color: var(--showcase-blue-deep);
}

.product-showcase__catalog .cloud-server-item > div:not(.product-recommend-title) {
    color: var(--showcase-muted);
    font-size: 14px;
    font-weight: 400;
    line-height: 1.6;
    text-wrap: pretty;
}

.product-showcase__catalog .cloud-server-item .product-recommend-gap {
    gap: 7px;
    padding-top: 10px;
}

.product-showcase__catalog .cloud-server-item .product-recommend-it {
    padding: 4px 9px;
}

.product-showcase__reveal {
    opacity: 1;
    transform: none;
    animation: none;
}

.product-showcase.is-reveal-ready .product-showcase__reveal:not(.is-visible) {
    opacity: 0;
}

.product-showcase.is-reveal-ready .product-showcase__reveal.is-visible {
    animation: home-product-fade .42s ease var(--product-reveal-delay, 0s) both;
}

.product-showcase.is-reveal-ready .product-showcase__reveal:focus-within {
    opacity: 1 !important;
}

.product-showcase__feature:nth-child(2),
.product-showcase__catalog:nth-child(2) {
    --product-reveal-delay: .08s;
}

.product-showcase__feature:nth-child(3),
.product-showcase__catalog:nth-child(3) {
    --product-reveal-delay: .16s;
}

.product-showcase__catalog:nth-child(4) {
    --product-reveal-delay: .24s;
}

@keyframes home-product-fade {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes home-product-orbit {
    from { transform: translate3d(0, 0, 0) rotate(18deg); }
    to { transform: translate3d(-34px, 22px, 0) rotate(32deg); }
}

@keyframes home-product-float {
    0%, 100% { transform: translate3d(0, 0, 0) rotate(0deg); }
    50% { transform: translate3d(0, -5px, 0) rotate(2deg); }
}

@keyframes home-product-ping {
    0%, 100% { box-shadow: 0 0 0 5px rgba(23, 105, 232, .11), 0 0 18px rgba(23, 105, 232, .38); }
    50% { box-shadow: 0 0 0 9px rgba(23, 105, 232, .02), 0 0 24px rgba(23, 105, 232, .2); }
}

@keyframes home-product-line {
    0%, 100% { transform: translateX(0); }
    50% { transform: translateX(138%); }
}

@keyframes home-product-shine {
    from { transform: translateX(-180%) skewX(-18deg); }
    to { transform: translateX(440%) skewX(-18deg); }
}

@media (max-width: 1200px) {
    .product-showcase__body {
        grid-template-columns: minmax(0, 1fr);
    }

    .product-showcase__featured {
        grid-template-columns: repeat(3, minmax(0, 1fr));
        grid-template-rows: none;
    }

    .product-showcase__catalogs {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media (max-width: 900px) {
    .banner-menu {
        --showcase-menu-overlap: 42px;
    }
}

@media (max-width: 768px) {
    .product-showcase {
        padding: 58px 0 72px !important;
    }

    .product-showcase__header {
        margin-bottom: 34px;
        padding: 0 16px;
    }

    .product-showcase__eyebrow {
        margin-bottom: 13px;
        font-size: 10px;
        letter-spacing: .13em;
    }

    .product-showcase__body {
        width: calc(100% - 32px);
        margin-inline: auto;
        gap: 16px;
    }

    .product-showcase__catalogs {
        grid-template-columns: minmax(0, 1fr);
        gap: 14px;
    }

    .product-showcase__featured {
        grid-template-columns: none;
        grid-template-rows: none;
        grid-auto-flow: column;
        grid-auto-columns: min(84%, 320px);
        align-items: stretch;
        gap: 14px;
        padding: 8px 0 16px;
        overflow-x: auto;
        overflow-y: hidden;
        overscroll-behavior-x: contain;
        scroll-snap-type: x mandatory;
        scrollbar-width: thin;
        scrollbar-color: rgba(23, 105, 232, .3) transparent;
        cursor: grab;
    }

    .product-showcase__featured::-webkit-scrollbar {
        display: block;
        height: 4px;
    }

    .product-showcase__featured::-webkit-scrollbar-thumb {
        border-radius: 4px;
        background: rgba(23, 105, 232, .3);
    }

    .product-showcase__featured.is-dragging {
        scroll-snap-type: none;
        cursor: grabbing;
        user-select: none;
    }

    .product-showcase__feature {
        min-height: 0;
        padding: 24px 22px;
        scroll-snap-align: start;
        scroll-snap-stop: always;
    }

    .product-showcase__feature:hover {
        transform: none;
    }

    .product-showcase__catalog > .cloud-server,
    .product-showcase__catalog > .cloud-server1,
    .product-showcase__catalog > .cloud-server2 {
        min-height: 132px;
        padding: 24px 22px !important;
    }

    .product-showcase__catalog .cloud-server-item {
        min-height: 0;
        padding: 20px 22px;
    }

    .product-showcase__catalog > a::after {
        right: 19px;
    }

    .product-showcase__catalog > a:focus-visible {
        box-shadow: inset 0 0 0 3px rgba(23, 105, 232, .22);
    }
}

@media (prefers-reduced-motion: reduce) {
    .product-showcase.is-reveal-ready .product-showcase__reveal:not(.is-visible) {
        opacity: 1;
    }

    .product-showcase *,
    .product-showcase::before,
    .product-showcase::after,
    .product-showcase *::before,
    .product-showcase *::after {
        animation: none !important;
        transition: none !important;
    }
}
