/* ============================================= */
/* =============== CASE STUDY ================== */
/* ============================================= */

.case-study-container {
    max-width: 1120px;
    margin: 0 auto;
}

.case-study-hero {
    min-height: 72vh;
    padding: 150px 8% 90px;

    display: flex;
    align-items: center;

    background:
        radial-gradient(circle at top left, rgba(126, 87, 194, 0.36), transparent 35%),
        radial-gradient(circle at bottom right, rgba(97, 218, 251, 0.2), transparent 30%),
        #101014;

    color: #ffffff;
}

.case-study-hero h1 {
    max-width: 980px;
    margin-bottom: 26px;

    font-size: clamp(3rem, 7vw, 5.6rem);
    line-height: 1;
    letter-spacing: -0.06em;
}

.case-study-intro {
    max-width: 850px;
    margin-bottom: 34px;

    color: #c7c7d1;

    font-size: 1.2rem;
    line-height: 1.8;
}

.case-study-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.case-study-tags span {
    padding: 10px 16px;

    border-radius: 999px;

    background: rgba(167, 139, 250, 0.14);
    border: 1px solid rgba(167, 139, 250, 0.24);

    color: #d8ccff;

    font-size: 0.9rem;
    font-weight: 700;
}


/* ============================================= */
/* =============== SECTIONS ==================== */
/* ============================================= */

.case-study-section {
    padding: 100px 8%;

    background: #f7f7fb;
    color: #101014;
}

.case-study-section.dark {
    background: #101014;
    color: #ffffff;
}

.case-study-section h2 {
    max-width: 860px;
    margin-bottom: 38px;

    font-size: clamp(2rem, 4vw, 3.2rem);
    line-height: 1.1;
    letter-spacing: -0.04em;
}


/* ============================================= */
/* ================ CARDS ====================== */
/* ============================================= */

.case-study-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 28px;
}

.case-study-card {
    padding: 34px;

    border-radius: 28px;

    background: #ffffff;
    border: 1px solid #e5e7eb;

    box-shadow: 0 18px 50px rgba(16, 16, 20, 0.06);
}

.case-study-card h2 {
    margin-bottom: 18px;

    font-size: 1.8rem;
}

.case-study-card p,
.case-study-wide-text {
    color: #4b5563;

    line-height: 1.8;
    font-size: 1.05rem;
}

.case-study-card p + p {
    margin-top: 16px;
}


/* ============================================= */
/* ============== FEATURE GRID ================= */
/* ============================================= */

.case-study-feature-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
}

.case-study-feature {
    padding: 30px;

    border-radius: 28px;

    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);

    backdrop-filter: blur(10px);
}

.case-study-feature span {
    display: inline-block;
    margin-bottom: 22px;

    color: #a78bfa;

    font-weight: 800;
    letter-spacing: 0.08em;
}

.case-study-feature h3 {
    margin-bottom: 14px;

    font-size: 1.25rem;
}

.case-study-feature p {
    color: #c7c7d1;

    line-height: 1.7;
}


/* ============================================= */
/* ================ LIST ======================= */
/* ============================================= */

.case-study-list {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
}

.case-study-list div {
    padding: 30px;

    border-radius: 24px;

    background: #ffffff;
    border: 1px solid #e5e7eb;

    box-shadow: 0 18px 50px rgba(16, 16, 20, 0.05);
}

.case-study-list h3 {
    margin-bottom: 12px;

    font-size: 1.25rem;
}

.case-study-list p {
    color: #4b5563;

    line-height: 1.75;
}


/* ============================================= */
/* ================ IMPACT ===================== */
/* ============================================= */

.impact-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
}

.impact-grid article {
    padding: 28px;

    border-radius: 24px;

    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.impact-grid h3 {
    margin-bottom: 12px;

    color: #ffffff;

    font-size: 1.2rem;
}

.impact-grid p {
    color: #c7c7d1;

    line-height: 1.7;
}


/* ============================================= */
/* ================ ACTIONS ==================== */
/* ============================================= */

.case-study-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;

    margin-top: 34px;
}

.dark-button {
    color: #101014;
    border-color: rgba(16, 16, 20, 0.2);
}

.dark-button:hover {
    color: #101014;
    background: rgba(167, 139, 250, 0.18);
}


/* ============================================= */
/* ============== RESPONSIVE =================== */
/* ============================================= */

@media (max-width: 1100px) {

    .case-study-feature-grid,
    .impact-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 800px) {

    .case-study-hero {
        min-height: auto;
        padding: 140px 24px 80px;
    }

    .case-study-section {
        padding: 80px 24px;
    }

    .case-study-grid,
    .case-study-list,
    .case-study-feature-grid,
    .impact-grid {
        grid-template-columns: 1fr;
    }
}