/* Home page — "AI Expertise" block (Figma: Home page AI → AI Expertise). All rules are scoped to .ai-expertise */

.ai-expertise {
    position: relative;
    z-index: 1;
    padding: 11px 80px 10px;
    background: #1c499e; /* continues the bottom colour of #what-developed */
    font-family: raleway, sans-serif;
    text-align: left;
}

.ai-expertise h2,
.ai-expertise h3,
.ai-expertise p {
    margin: 0;
    padding: 0;
    text-align: inherit;
    text-transform: none;
    letter-spacing: normal;
}

.ai-expertise__box {
    position: relative;
    max-width: 1280px;
    margin: 0 auto;
    padding: 40px;
    border: 2px solid #6cb0ff;
    border-radius: 20px;
    overflow: hidden;
    /* fallback when WebGL2 is unavailable; the shader canvas covers it */
    background: linear-gradient(to top, #2b4fb8 0%, #1a1d5e 30%, #070b26 70%);
    -webkit-mask-image: -webkit-radial-gradient(white, black); /* clip the canvas to the radius in Safari */
}

.ai-expertise__bg {
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    pointer-events: none;
}

/* the two soft blue radial lights on top of the shader, as in the design */
.ai-expertise__bg::after {
    content: "";
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    background:
        radial-gradient(63.7% 47.7% at 44.3% 100%, rgba(29, 128, 247, 0.18) 0%, rgba(29, 128, 247, 0) 70%),
        radial-gradient(80% 60% at 50% 0%, rgba(29, 128, 247, 0.18) 0%, rgba(29, 128, 247, 0) 70%);
}

.ai-expertise__shader {
    position: absolute;
    top: 0;
    left: 0;
    display: block;
    width: 100% !important;  /* main.css forces canvas {height:auto !important} */
    height: 100% !important;
    opacity: 0;
    transition: opacity .6s ease;
}

.ai-expertise__shader.is-ready {
    opacity: 1;
}

.ai-expertise__sparkle {
    position: absolute;
    top: 40px;
    right: 40px;
    width: 74px;
    height: 74px;
    pointer-events: none;
}

.ai-expertise__content {
    position: relative;
}

.ai-expertise__head {
    margin-bottom: 20px;
}

.ai-expertise__eyebrow {
    margin-bottom: 14px !important;
    font-size: 12px;
    font-weight: 600;
    line-height: 16px;
    color: #00d0ff;
    text-transform: uppercase !important;
    letter-spacing: 1.2px !important;
}

.ai-expertise__title {
    font-family: Raleway, raleway, sans-serif;
    font-size: 40px;
    font-weight: 900;
    line-height: 44px;
    color: #fff;
}

.ai-expertise__lead {
    max-width: 800px;
    font-size: 16px;
    font-weight: 400;
    line-height: 26px;
    color: #fff;
}

.ai-expertise__btn {
    display: inline-block;
    margin: 40px 0;
    padding: 12px 16px;
    min-width: 348px;
    border-radius: 8px;
    background: linear-gradient(172deg, #1d80f7 0%, #00d0ff 100%);
    font-size: 16px;
    font-weight: 600;
    line-height: 24px;
    color: #0a0535;
    text-align: center;
    text-decoration: none;
    transition: filter .2s ease, box-shadow .2s ease;
}

.ai-expertise__btn:hover,
.ai-expertise__btn:focus {
    color: #0a0535;
    text-decoration: none;
    filter: brightness(1.08);
    box-shadow: 0 6px 24px rgba(0, 208, 255, 0.35);
}

.ai-expertise__cards {
    display: flex;
    gap: 20px;
}

.ai-expertise__card {
    flex: 1 1 0;
    min-width: 0;
    padding: 32px 24px;
    border: 2px solid #6cb0ff;
    border-radius: 16px;
    background: #10102a;
}

.ai-expertise__icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    margin-bottom: 14px;
    border-radius: 12px;
    background: rgba(63, 169, 245, 0.12);
}

.ai-expertise__icon img {
    display: block;
    width: 28px;
    height: 28px;
}

.ai-expertise__card-title {
    margin-bottom: 14px !important;
    font-size: 20px;
    font-weight: 600;
    line-height: 28px;
    color: #fff;
}

.ai-expertise__card-text {
    font-size: 14px;
    font-weight: 400;
    line-height: 22px;
    color: #9ca8c1;
}

/* tablet (Figma 768) */
@media screen and (max-width: 1023px) {
    .ai-expertise {
        padding: 16px 30px 79px;
    }

    .ai-expertise__sparkle {
        width: 56px;
        height: 56px;
    }

    .ai-expertise__lead {
        max-width: none;
    }

    .ai-expertise__cards {
        flex-direction: column;
    }

    .ai-expertise__card {
        flex: none;
        padding: 32px 20px;
    }
}

/* phone (Figma 360) */
@media screen and (max-width: 767px) {
    .ai-expertise {
        padding: 47px 10px 69px;
    }

    .ai-expertise__box {
        padding: 24px 16px;
    }

    .ai-expertise__sparkle {
        top: 24px;
        right: 16px;
        width: 48px;
        height: 48px;
    }

    .ai-expertise__title {
        font-size: 32px;
        line-height: 38px;
    }

    .ai-expertise__lead {
        line-height: 24px;
    }

    .ai-expertise__btn {
        display: block;
        min-width: 0;
    }

    .ai-expertise__card-title {
        font-size: 18px;
        line-height: 26px;
    }
}
