/* =========================================
   FORTUNE E-COMMERCE SHOWCASE
========================================= */

.fortune-ecom-showcase {
    background-position: bottom center;
    background-repeat: no-repeat;
    background-size: cover;
    position: relative;
    overflow: hidden;
    padding: 100px 0 70px 0;
    margin: 30px 30px 0 30px;
    border-radius: 30px;
    background-color: #061943;
}

.fortune-ecom-container {
    width: min(1600px, calc(100% - 80px));
    margin: 0 auto;

    display: grid;
    grid-template-columns: 0.9fr 1.1fr;
    align-items: center;
    gap: 60px;
}


/* =========================================
   LEFT CONTENT
========================================= */

.fortune-ecom-content {
    position: relative;
    z-index: 5;
}

.fortune-ecom-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;

    padding: 8px 16px;

    border: 1px solid rgba(255,255,255,.25);
    border-radius: 30px;

    color: #fff;

    font-size: 13px;
    font-weight: 600;
    letter-spacing: .4px;

    margin-bottom: 25px;
}

.fortune-ecom-eyebrow::before {
    content: "";
    width: 7px;
    height: 7px;
    background: #1677ff;
    border-radius: 50%;
}

.fortune-ecom-content h2 {
    margin: 0 0 25px;

    color: #fff;

    font-size: clamp(42px, 4vw, 65px);
    line-height: 1;

    font-weight: 600;
    letter-spacing: -2.5px;
}

.fortune-ecom-content h2 span {
    display: block;
    color: #1680ff;
}

.fortune-ecom-content p {
    max-width: 570px;

    margin: 0 0 35px;

    color: rgba(255,255,255,.72);

    font-size: 17px;
    line-height: 1.7;
}


/* =========================================
   BUTTONS
========================================= */

.fortune-ecom-buttons {
    display: flex;
    align-items: center;
    gap: 14px;
    flex-wrap: wrap;
}

.fortune-btn {
    min-height: 54px;

    padding: 0 25px;

    display: inline-flex;
    align-items: center;
    gap: 12px;

    border-radius: 30px;

    text-decoration: none;

    font-size: 14px;
    font-weight: 600;

    transition: .3s ease;
}

.fortune-btn-primary {
    background: #126ff2;
    color: #fff;
}

.fortune-btn-primary:hover {
    background: #fff;
    color: #061943;
}

.fortune-btn-outline {
    border: 1px solid rgba(255,255,255,.45);
    color: #fff;
}

.fortune-btn-outline:hover {
    background: #fff;
    color: #061943;
}


/* =========================================
   VISUAL AREA
========================================= */

.fortune-ecom-visual {
    position: relative;
    min-height: 650px;

    display: flex;
    align-items: center;
    justify-content: center;

    /* reference jaisa subtle left-facing feel */
    transform: skewY(-1.5deg);

    transform-origin: center center;
}


/* =========================================
   LAPTOP
========================================= */

.fortune-laptop {
    position: relative;

    width: min(700px, 90%);

    z-index: 3;

    /*
     * No individual rotation.
     * Parent .fortune-ecom-visual handles
     * the complete perspective.
     */
    transform: none;

    transform-style: preserve-3d;
}


/* =========================================
   LAPTOP SCREEN
========================================= */

.fortune-laptop-screen {
    position: relative;

    padding: 9px;

    background: #11151d;

    border-radius: 17px 17px 9px 9px;

    /*
     * Small depth so screen doesn't look flat
     */
    transform: translateZ(8px);

    box-shadow:
        0 40px 90px rgba(0,0,0,.4);
}


/* =========================================
   BROWSER BAR
========================================= */

.fortune-browser-bar {
    height: 30px;

    display: flex;
    align-items: center;

    padding: 0 12px;

    background: #151a22;

    border-radius: 9px 9px 0 0;
}

.fortune-browser-dots {
    display: flex;
    gap: 5px;
}

.fortune-browser-dots span {
    width: 7px;
    height: 7px;

    border-radius: 50%;

    background: #777;
}

.fortune-browser-url {
    margin-left: 18px;

    color: #8d94a0;

    font-size: 9px;
}


/* =========================================
   WEBSITE SCREEN
========================================= */

.fortune-screen-content {
    width: 100%;
    height: 410px;

    overflow: hidden;

    border-radius: 0 0 8px 8px;

    background: #fff;
}

.fortune-screen-content img {
    width: 100%;
    height: 380px;

    display: block;

    /*
     * Keep website proportions natural.
     */
    object-fit: cover;
    object-position: top center;
}


/* =========================================
   LAPTOP BASE
========================================= */

.fortune-laptop-base {
    position: relative;

    width: 112%;
    height: 19px;

    margin-left: -6%;

    background: linear-gradient(
        to bottom,
        #87909b,
        #343b44
    );

    border-radius: 0 0 25px 25px;

    /*
     * Slight depth
     */
    transform: translateZ(2px);

    box-shadow:
        0 15px 30px rgba(0,0,0,.3);
}

.fortune-laptop-notch {
    width: 80px;
    height: 5px;

    margin: auto;

    background: #565d66;

    border-radius: 0 0 8px 8px;
}


/* =========================================
   FLOATING CARDS
========================================= */

.fortune-float-card {
    position: absolute;

    z-index: 6;

    padding: 17px 19px;

    background: rgba(255,255,255,.97);

    border-radius: 15px;

    box-shadow:
        0 20px 50px rgba(0,0,0,.25);

    color: #061943;

    /*
     * Keep cards straight/readable.
     * Only laptop is tilted.
     */
    transform-style: flat;
}


/* =========================================
   SALES CARD
========================================= */

.fortune-sales-card {
    top: 50px;
    left: 160px;
    min-width: 175px;
}

.fortune-sales-card span,
.fortune-conversion-card span {
    display: block;

    margin-bottom: 6px;

    color: #697386;

    font-size: 11px;
}

.fortune-sales-card strong,
.fortune-conversion-card strong {
    display: block;

    font-size: 22px;
}

.fortune-sales-card small,
.fortune-orders-card small,
.fortune-conversion-card small {
    color: #13a66a;

    font-size: 11px;
}


/* =========================================
   MINI CHART
========================================= */

.fortune-mini-chart {
    height: 35px;

    margin-top: 10px;

    display: flex;
    align-items: flex-end;

    gap: 5px;
}

.fortune-mini-chart b {
    display: block;

    width: 8px;

    border-radius: 4px 4px 0 0;

    background: #1677ff;
}

.fortune-mini-chart b:nth-child(1) {
    height: 10px;
}

.fortune-mini-chart b:nth-child(2) {
    height: 18px;
}

.fortune-mini-chart b:nth-child(3) {
    height: 14px;
}

.fortune-mini-chart b:nth-child(4) {
    height: 25px;
}

.fortune-mini-chart b:nth-child(5) {
    height: 21px;
}

.fortune-mini-chart b:nth-child(6) {
    height: 32px;
}


/* =========================================
   ORDERS CARD
========================================= */

.fortune-orders-card {
    left: 130px;
    bottom: 70px;
    display: flex;
    align-items: center;
    gap: 12px;
}

.fortune-card-icon {
    width: 42px;
    height: 42px;

    display: flex;
    align-items: center;
    justify-content: center;

    background: #edf5ff;

    border-radius: 10px;

    color: #126ff2;
}

.fortune-orders-card span {
    display: block;

    color: #697386;

    font-size: 11px;
}

.fortune-orders-card strong {
    display: block;

    margin: 2px 0;

    font-size: 20px;
}


/* =========================================
   CONVERSION CARD
========================================= */

.fortune-conversion-card {
    right: -40px;
    bottom: 0px;
    min-width: 155px;
}


/* =========================================
   PLATFORM STACK
========================================= */

.fortune-platform-stack {
    position: absolute;
    right: -80px;
    top: 130px;
    z-index: 7;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.fortune-platform-card {
    min-width: 145px;

    padding: 11px 14px;

    display: flex;
    align-items: center;
    gap: 10px;

    background: rgba(255,255,255,.97);

    border-radius: 12px;

    box-shadow:
        0 15px 35px rgba(0,0,0,.2);

    color: #061943;

    font-size: 12px;
    font-weight: 600;
}

.platform-logo {
    width: 30px;
    height: 30px;

    display: flex;
    align-items: center;
    justify-content: center;

    border-radius: 8px;

    color: #fff;

    font-weight: 700;
    font-size: 16px;
}

.platform-logo.shopify {
    background: #95bf47;
}

.platform-logo.woo {
    background: #7f54b3;
}

.platform-logo.wp {
    background: #21759b;
}

.platform-logo.figma {
    background: #f24e1e;
}


/* =========================================
   RESPONSIVE
========================================= */

@media (max-width: 1199px) {

    .fortune-ecom-container {
        width: min(100% - 50px, 1100px);

        grid-template-columns: 1fr;
    }

    .fortune-ecom-content {
        text-align: center;

        max-width: 800px;

        margin: auto;
    }

    .fortune-ecom-content p {
        margin-left: auto;
        margin-right: auto;
    }

    .fortune-ecom-buttons {
        justify-content: center;
    }

    .fortune-ecom-visual {
        min-height: 600px;
    }

}


@media (max-width: 767px) {

    .fortune-ecom-showcase {
        padding: 90px 0;
    }

    .fortune-ecom-container {
        width: calc(100% - 30px);
    }

    .fortune-ecom-content h2 {
        font-size: 42px;
    }

    .fortune-ecom-visual {
        min-height: 430px;

        /*
         * Reduce perspective on tablet/mobile
         */
        perspective: 1400px;
    }

    .fortune-laptop {
        width: 92%;

        transform:
            rotateY(-6deg)
            rotateX(1deg)
            rotateZ(-0.5deg);
    }

    .fortune-screen-content {
        height: 260px;
    }

    .fortune-sales-card {
        left: -5px;
        top: 20px;

        transform: scale(.8);
        transform-origin: left top;
    }

    .fortune-orders-card {
        left: -10px;
        bottom: 70px;

        transform: scale(.8);
        transform-origin: left bottom;
    }

    .fortune-conversion-card {
        right: -5px;
        bottom: 50px;

        transform: scale(.8);
        transform-origin: right bottom;
    }

    .fortune-platform-stack {
        right: -5px;
        top: 70px;

        transform: scale(.75);
        transform-origin: right top;
    }

}


@media (max-width: 575px) {

    .fortune-ecom-content h2 {
        font-size: 36px;
    }

    .fortune-ecom-content p {
        font-size: 15px;
    }

    .fortune-ecom-visual {
        min-height: 350px;
    }

    .fortune-screen-content {
        height: 210px;
    }

    .fortune-float-card {
        display: none;
    }

    .fortune-platform-stack {
        display: none;
    }

    .fortune-laptop {
        width: 96%;

        transform:
            rotateY(-3deg)
            rotateX(1deg)
            rotateZ(0deg);
    }

}