/* =========================================================
   Featured Case Studies
   Section Key: featured-case-studies
   ========================================================= */

.tw-featured-case-studies {
    --fcs-blue: #1769e8;
    --fcs-blue-dark: #123a86;
    --fcs-pink: #f52263;
    --fcs-green: #12a86b;
    --fcs-orange: #f59a23;
    --fcs-ink: #102b61;
    --fcs-muted: #63779c;
    --fcs-border: rgba(24, 88, 174, .12);
    position: relative;
    isolation: isolate;
    overflow: hidden;
    padding: 105px 0 95px;
    background:
        radial-gradient(circle at 8% 20%, rgba(47, 126, 255, .10), transparent 27%),
        radial-gradient(circle at 92% 70%, rgba(23, 195, 132, .10), transparent 25%),
        linear-gradient(180deg, #f9fcff 0%, #ffffff 55%, #f7fbff 100%);
}

.tw-featured-case-studies::before {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    opacity: .5;
    background-image: radial-gradient(rgba(32, 103, 218, .13) 1px, transparent 1px);
    background-size: 24px 24px;
    mask-image: linear-gradient(to bottom, transparent 0%, #000 15%, #000 85%, transparent 100%);
    z-index: -2;
}

.tw-fcs-bg-shape {
    position: absolute;
    border-radius: 50%;
    pointer-events: none;
    z-index: -1;
    filter: blur(.2px);
}

.tw-fcs-bg-shape-one {
    width: 410px;
    height: 410px;
    left: -230px;
    top: 190px;
    border: 1px solid rgba(31, 112, 234, .10);
    box-shadow: inset 0 0 80px rgba(31, 112, 234, .06);
}

.tw-fcs-bg-shape-two {
    width: 360px;
    height: 360px;
    right: -205px;
    bottom: 90px;
    border: 1px solid rgba(18, 168, 107, .10);
    box-shadow: inset 0 0 80px rgba(18, 168, 107, .05);
}

.tw-fcs-header {
    max-width: 900px;
    margin: 0 auto 55px;
    text-align: center;
}

.tw-fcs-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 13px;
    margin-bottom: 16px;
    color: var(--fcs-blue);
    font-size: 12px;
    font-weight: 800;
    letter-spacing: .18em;
    text-transform: uppercase;
}

.tw-fcs-eyebrow-line {
    width: 35px;
    height: 2px;
    border-radius: 99px;
    background: currentColor;
    opacity: .65;
}

.tw-fcs-title {
    margin: 0;
    color: var(--fcs-ink);
    font-size: clamp(36px, 4.2vw, 62px);
    line-height: 1.03;
    letter-spacing: -.045em;
    font-weight: 900;
}

.tw-fcs-intro {
    max-width: 720px;
    margin: 20px auto 0;
    color: var(--fcs-muted);
    font-size: 16px;
    line-height: 1.75;
}

.tw-fcs-mini-flow {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    margin-top: 23px;
    padding: 8px 14px;
    border: 1px solid rgba(29, 103, 220, .10);
    border-radius: 999px;
    background: rgba(255, 255, 255, .82);
    box-shadow: 0 10px 30px rgba(35, 84, 150, .08);
    color: #1c5fbd;
    font-size: 11px;
    font-weight: 800;
}

.tw-fcs-mini-flow i {
    font-size: 9px;
    opacity: .55;
}

.tw-fcs-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 28px;
    align-items: stretch;
}

.tw-fcs-card {
    position: relative;
    overflow: hidden;
    min-width: 0;
    border: 1px solid var(--fcs-border);
    border-radius: 27px;
    background: #fff;
    box-shadow:
        0 24px 60px rgba(27, 73, 133, .10),
        0 5px 18px rgba(27, 73, 133, .05);
    transition: transform .35s ease, box-shadow .35s ease;
}

.tw-fcs-card:hover {
    transform: translateY(-9px);
    box-shadow:
        0 34px 75px rgba(27, 73, 133, .15),
        0 8px 24px rgba(27, 73, 133, .07);
}

.tw-fcs-card-1 {
    --card-accent: #f52263;
    --card-soft: #fff0f5;
    --card-deep: #e91d5b;
}

.tw-fcs-card-2 {
    --card-accent: #1769e8;
    --card-soft: #edf5ff;
    --card-deep: #0f5dce;
}

.tw-fcs-card-3 {
    --card-accent: #12a86b;
    --card-soft: #ecfbf5;
    --card-deep: #078c59;
}

.tw-fcs-card-visual {
    position: relative;
    height: 310px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    background:
        radial-gradient(circle at 50% 42%, rgba(255,255,255,.98), rgba(255,255,255,.15) 56%, transparent 70%),
        linear-gradient(145deg, var(--card-soft), #ffffff);
}

.tw-fcs-card-visual::after {
    content: "";
    position: absolute;
    left: 10%;
    right: 10%;
    bottom: 25px;
    height: 32px;
    border-radius: 50%;
    background: rgba(23, 105, 232, .13);
    filter: blur(10px);
}

.tw-fcs-card-1 .tw-fcs-card-visual::after {
    background: rgba(245, 34, 99, .13);
}

.tw-fcs-card-3 .tw-fcs-card-visual::after {
    background: rgba(18, 168, 107, .14);
}

.tw-fcs-orbit {
    position: absolute;
    border: 1px dashed currentColor;
    border-radius: 50%;
    opacity: .15;
    pointer-events: none;
}

.tw-fcs-orbit-one {
    width: 245px;
    height: 245px;
    color: var(--card-accent);
}

.tw-fcs-orbit-two {
    width: 285px;
    height: 150px;
    color: var(--card-accent);
    transform: rotate(-18deg);
}

.tw-fcs-step {
    position: absolute;
    top: 18px;
    left: 18px;
    z-index: 4;
    display: grid;
    width: 49px;
    height: 49px;
    place-items: center;
    border: 4px solid #fff;
    border-radius: 50%;
    background: var(--card-accent);
    color: #fff;
    font-size: 13px;
    font-weight: 900;
    box-shadow: 0 9px 22px rgba(22, 63, 121, .18);
}

.tw-fcs-case-image {
    position: relative;
    z-index: 3;
    display: block;
    width: 90%;
    max-width: 480px;
    max-height: 285px;
    object-fit: contain;
    filter: drop-shadow(0 18px 18px rgba(18, 56, 111, .14));
    transition: transform .45s ease;
}

.tw-fcs-card:hover .tw-fcs-case-image {
    transform: translateY(-5px) scale(1.025);
}

/* ---------- CSS fallback illustrations ---------- */

.tw-fcs-fallback {
    position: relative;
    z-index: 2;
    width: 84%;
    height: 235px;
}

/* E-commerce */
.tw-fcs-shop-window {
    position: absolute;
    left: 9%;
    top: 29px;
    width: 74%;
    height: 148px;
    padding: 23px 17px 13px;
    border: 6px solid #dbe8f9;
    border-radius: 13px;
    background: #fff;
    box-shadow: 0 17px 28px rgba(32, 79, 143, .18);
    transform: perspective(700px) rotateY(5deg);
}

.tw-fcs-window-bar {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 20px;
    background: #f7faff;
    border-bottom: 1px solid #e2ebf8;
}

.tw-fcs-window-bar::before {
    content: "●  ●  ●";
    position: absolute;
    left: 8px;
    top: 2px;
    color: #a9bddb;
    font-size: 7px;
    letter-spacing: 2px;
}

.tw-fcs-product-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 8px;
    margin-top: 19px;
}

.tw-fcs-product-grid span {
    height: 62px;
    border-radius: 7px;
    background: linear-gradient(145deg, #f2f7ff, #dce9fb);
    border: 1px solid #d3e2f6;
}

.tw-fcs-product-grid span::after {
    content: "";
    display: block;
    width: 60%;
    height: 7px;
    margin: 43px auto 0;
    border-radius: 99px;
    background: #1769e8;
}

.tw-fcs-window-button {
    position: absolute;
    left: 17px;
    bottom: 10px;
    width: 62px;
    height: 10px;
    border-radius: 99px;
    background: #f52263;
}

.tw-fcs-bag {
    position: absolute;
    bottom: 30px;
    width: 42px;
    height: 49px;
    border-radius: 5px 5px 10px 10px;
    background: var(--card-accent);
    box-shadow: 0 8px 14px rgba(29, 54, 102, .15);
}

.tw-fcs-bag::before {
    content: "";
    position: absolute;
    left: 11px;
    top: -11px;
    width: 20px;
    height: 17px;
    border: 4px solid currentColor;
    border-bottom: 0;
    border-radius: 15px 15px 0 0;
    color: var(--card-accent);
}

.bag-one { right: 13%; transform: rotate(8deg); }
.bag-two { right: 27%; bottom: 20px; transform: rotate(-7deg); opacity: .82; }

.tw-fcs-cart {
    position: absolute;
    right: 4%;
    bottom: 20px;
    display: grid;
    width: 52px;
    height: 52px;
    place-items: center;
    border-radius: 50%;
    background: #fff;
    color: var(--card-accent);
    box-shadow: 0 8px 20px rgba(30, 72, 132, .15);
    font-size: 20px;
}

/* Real estate */
.tw-fcs-house {
    position: absolute;
    left: 15%;
    top: 48px;
    width: 68%;
    height: 125px;
}

.tw-fcs-house-roof {
    position: absolute;
    top: 0;
    left: 8%;
    width: 84%;
    height: 72px;
    background: #1c6fe7;
    clip-path: polygon(50% 0, 100% 58%, 91% 58%, 91% 100%, 9% 100%, 9% 58%, 0 58%);
    filter: drop-shadow(0 10px 7px rgba(24, 88, 174, .18));
}

.tw-fcs-house-body {
    position: absolute;
    left: 18%;
    bottom: 0;
    width: 64%;
    height: 84px;
    border-radius: 4px;
    background: linear-gradient(135deg, #fff, #e7f0fb);
    border: 3px solid #d5e4f6;
    box-shadow: 0 12px 20px rgba(24, 74, 138, .16);
}

.tw-fcs-house-body span {
    display: inline-block;
    width: 21%;
    height: 31px;
    margin: 19px 3px 0;
    border-radius: 3px;
    background: #8fc0fa;
}

.tw-fcs-screen-card {
    position: absolute;
    right: 3%;
    top: 30px;
    display: flex;
    align-items: center;
    gap: 7px;
    padding: 10px 12px;
    border-radius: 10px;
    background: #fff;
    color: #1769e8;
    box-shadow: 0 10px 22px rgba(28, 83, 150, .16);
    font-size: 11px;
}

.tw-fcs-screen-card i {
    font-size: 16px;
}

.tw-fcs-arrow-up {
    position: absolute;
    left: 3%;
    bottom: 43px;
    display: grid;
    width: 45px;
    height: 45px;
    place-items: center;
    border-radius: 50%;
    background: #fff;
    color: #12a86b;
    box-shadow: 0 10px 20px rgba(27, 83, 148, .16);
    font-size: 19px;
}

/* Education */
.tw-fcs-education-screen {
    position: absolute;
    left: 12%;
    top: 29px;
    width: 69%;
    height: 155px;
    padding: 16px;
    border: 6px solid #dce8f7;
    border-radius: 14px;
    background: #fff;
    box-shadow: 0 17px 28px rgba(25, 77, 141, .17);
}

.tw-fcs-screen-top {
    height: 42px;
    border-radius: 7px;
    background: linear-gradient(135deg, #1769e8, #58a1ff);
}

.tw-fcs-book-stack {
    position: absolute;
    left: 24px;
    bottom: 20px;
    width: 92px;
}

.tw-fcs-book-stack span {
    display: block;
    height: 12px;
    margin-top: 4px;
    border-radius: 3px;
    background: #1769e8;
}

.tw-fcs-book-stack span:nth-child(2) { width: 83%; background: #12a86b; }
.tw-fcs-book-stack span:nth-child(3) { width: 69%; background: #f59a23; }

.tw-fcs-education-screen > i {
    position: absolute;
    right: 25px;
    bottom: 22px;
    display: grid;
    width: 43px;
    height: 43px;
    place-items: center;
    border-radius: 50%;
    background: #1769e8;
    color: #fff;
    font-size: 14px;
}

.tw-fcs-lead-card {
    position: absolute;
    right: 3%;
    top: 52px;
    display: flex;
    align-items: center;
    gap: 7px;
    padding: 10px 12px;
    border-radius: 10px;
    background: #fff;
    color: #12a86b;
    box-shadow: 0 10px 22px rgba(28, 83, 150, .16);
    font-size: 11px;
}

.tw-fcs-target {
    position: absolute;
    left: 1%;
    bottom: 31px;
    display: grid;
    width: 51px;
    height: 51px;
    place-items: center;
    border-radius: 50%;
    background: #fff;
    color: #f59a23;
    box-shadow: 0 10px 20px rgba(27, 83, 148, .16);
    font-size: 21px;
}

.tw-fcs-card-body {
    position: relative;
    z-index: 5;
    padding: 25px 25px 27px;
}

.tw-fcs-industry {
    display: inline-flex;
    align-items: center;
    min-height: 27px;
    padding: 5px 12px;
    border-radius: 999px;
    background: var(--card-soft);
    color: var(--card-deep);
    font-size: 11px;
    font-weight: 800;
}

.tw-fcs-card-title {
    margin: 14px 0 0;
    color: var(--fcs-ink);
    font-size: clamp(21px, 2vw, 27px);
    line-height: 1.13;
    letter-spacing: -.025em;
    font-weight: 900;
}

.tw-fcs-card-description {
    margin: 11px 0 0;
    color: var(--fcs-muted);
    font-size: 13px;
    line-height: 1.65;
}

.tw-fcs-results {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 9px;
    margin-top: 19px;
}

.tw-fcs-result {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 7px;
    min-width: 0;
    color: #25416f;
    font-size: 10px;
    line-height: 1.3;
    font-weight: 750;
}

.tw-fcs-result-icon {
    display: grid;
    width: 34px;
    height: 34px;
    place-items: center;
    border: 1px solid var(--fcs-border);
    border-radius: 10px;
    background: var(--card-soft);
    color: var(--card-accent);
    font-size: 13px;
}

.tw-fcs-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    margin-top: 22px;
    min-height: 47px;
    padding: 0 19px;
    border-radius: 13px;
    background: var(--card-accent);
    color: #fff;
    text-decoration: none;
    font-size: 12px;
    font-weight: 850;
    box-shadow: 0 11px 23px color-mix(in srgb, var(--card-accent) 25%, transparent);
    transition: transform .25s ease, box-shadow .25s ease, filter .25s ease;
}

.tw-fcs-button:hover {
    color: #fff;
    transform: translateY(-2px);
    filter: brightness(.97);
    box-shadow: 0 15px 28px color-mix(in srgb, var(--card-accent) 31%, transparent);
}

.tw-fcs-button i {
    font-size: 11px;
    transition: transform .25s ease;
}

.tw-fcs-button:hover i {
    transform: translateX(4px);
}

.tw-fcs-bottom {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-top: 47px;
    text-align: center;
}

.tw-fcs-main-cta {
    display: inline-flex;
    align-items: center;
    gap: 13px;
    min-height: 54px;
    padding: 0 25px;
    border-radius: 15px;
    background: var(--fcs-blue);
    color: #fff;
    text-decoration: none;
    font-size: 13px;
    font-weight: 850;
    box-shadow: 0 14px 30px rgba(23, 105, 232, .23);
    transition: transform .25s ease, box-shadow .25s ease;
}

.tw-fcs-main-cta:hover {
    color: #fff;
    transform: translateY(-3px);
    box-shadow: 0 18px 35px rgba(23, 105, 232, .28);
}

.tw-fcs-main-cta i {
    font-size: 11px;
}

.tw-fcs-bottom-text {
    max-width: 700px;
    margin: 15px auto 0;
    color: #7283a2;
    font-size: 12px;
    line-height: 1.6;
}

/* ---------- Responsive ---------- */

@media (max-width: 1199.98px) {
    .tw-featured-case-studies {
        padding: 90px 0 80px;
    }

    .tw-fcs-grid {
        gap: 20px;
    }

    .tw-fcs-card-visual {
        height: 275px;
    }

    .tw-fcs-card-body {
        padding: 22px 21px 24px;
    }

    .tw-fcs-results {
        gap: 7px;
    }
}

@media (max-width: 991.98px) {
    .tw-featured-case-studies {
        padding: 80px 0 70px;
    }

    .tw-fcs-header {
        margin-bottom: 40px;
    }

    .tw-fcs-grid {
        grid-template-columns: 1fr;
        max-width: 650px;
        margin: 0 auto;
    }

    .tw-fcs-card-visual {
        height: 330px;
    }

    .tw-fcs-card-body {
        padding: 27px 28px 29px;
    }

    .tw-fcs-card-title {
        font-size: 28px;
    }

    .tw-fcs-card-description {
        font-size: 14px;
    }

    .tw-fcs-result {
        font-size: 11px;
    }
}

@media (max-width: 575.98px) {
    .tw-featured-case-studies {
        padding: 65px 0 55px;
    }

    .tw-fcs-header {
        margin-bottom: 32px;
    }

    .tw-fcs-eyebrow {
        font-size: 10px;
        gap: 9px;
    }

    .tw-fcs-eyebrow-line {
        width: 25px;
    }

    .tw-fcs-title {
        font-size: 35px;
        letter-spacing: -.04em;
    }

    .tw-fcs-intro {
        margin-top: 16px;
        font-size: 14px;
        line-height: 1.65;
    }

    .tw-fcs-mini-flow {
        gap: 8px;
        font-size: 9px;
        margin-top: 18px;
    }

    .tw-fcs-grid {
        gap: 20px;
    }

    .tw-fcs-card {
        border-radius: 22px;
    }

    .tw-fcs-card-visual {
        height: 260px;
    }

    .tw-fcs-fallback {
        transform: scale(.88);
    }

    .tw-fcs-step {
        width: 44px;
        height: 44px;
        top: 14px;
        left: 14px;
    }

    .tw-fcs-card-body {
        padding: 22px 20px 24px;
    }

    .tw-fcs-card-title {
        font-size: 23px;
    }

    .tw-fcs-card-description {
        font-size: 13px;
    }

    .tw-fcs-results {
        gap: 6px;
    }

    .tw-fcs-result {
        font-size: 9px;
    }

    .tw-fcs-result-icon {
        width: 31px;
        height: 31px;
        font-size: 11px;
    }

    .tw-fcs-button {
        width: 100%;
        margin-top: 19px;
    }

    .tw-fcs-main-cta {
        width: 100%;
        max-width: 340px;
    }

    .tw-fcs-bg-shape-one,
    .tw-fcs-bg-shape-two {
        opacity: .45;
    }
}

@media (prefers-reduced-motion: reduce) {
    .tw-fcs-card,
    .tw-fcs-case-image,
    .tw-fcs-button,
    .tw-fcs-button i,
    .tw-fcs-main-cta {
        transition: none;
    }

    .tw-fcs-card:hover,
    .tw-fcs-card:hover .tw-fcs-case-image,
    .tw-fcs-button:hover,
    .tw-fcs-main-cta:hover {
        transform: none;
    }
}
