/* Illustrations and infinity path from https://genla.tech/. */
.home-solutions .rf-container {
    width: min(1034px, calc(100% - 48px));
}

.home-solutions .section-heading {
    align-items: center;
    gap: 24px;
    margin-bottom: 32px;
}

.home-solutions .section-heading > p {
    max-width: 430px;
}

.home-solutions .solution-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: clamp(16px, 2vw, 24px);
}

.home-solutions .solution-card {
    --tile-fill: #fff;
    --tile-border: linear-gradient(140deg, #ff65ae, #ffc5dc 40%, #ffc7dd 62%, #ff70b3);
    gap: 16px;
    min-width: 0;
    min-height: 0;
    padding: clamp(17px, 2.1vw, 24px);
    border: 1.5px solid transparent;
    border-radius: 25px;
    background: linear-gradient(var(--tile-fill), var(--tile-fill)) padding-box, var(--tile-border) border-box;
    color: #18171e;
    box-shadow: 0 2px 8px #16161a0d;
    text-decoration: none;
}

.home-solutions .solution-card:hover {
    border-color: transparent;
    box-shadow: 0 10px 24px #32163c1c;
    transform: translateY(-4px);
}

.home-solutions .solution-card:focus-visible {
    outline: 3px solid #673bb2;
    outline-offset: 3px;
}

.home-tile-art {
    position: relative;
    display: block;
    flex: 1 0 auto;
    aspect-ratio: 1.6;
    min-height: clamp(140px, 15vw, 173px);
    border-radius: 16px;
    background: radial-gradient(120% 120% at 28% 18%, #ff5da21f 0%, transparent 58%),
        radial-gradient(120% 120% at 82% 92%, #7a5cff24 0%, transparent 58%), #f8f7fa;
    box-shadow: inset 0 0 0 1px #12101e0a;
    overflow: hidden;
}

.home-tile-art img {
    position: absolute;
    inset: 0;
    display: block;
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.home-solutions .solution-card h3 {
    flex-shrink: 0;
    margin: 0;
    font-size: clamp(21px, 2.15vw, 25px);
    font-weight: 660;
    line-height: 1.2;
    overflow-wrap: anywhere;
}

.home-solutions .solution-card p {
    flex-shrink: 0;
    margin: -8px 0 0;
    color: #6b6b7b;
    font-size: clamp(16px, 1.72vw, 20px);
    line-height: 1.3;
}

.home-solutions .home-assistant-tile {
    align-items: center;
    justify-content: center;
    gap: 12px;
    background: radial-gradient(ellipse at 18% 0%, #ffdfef, transparent 70%) padding-box,
        linear-gradient(125deg, #ffd8ec, #f3c7e9 52%, #e6d5f9) padding-box, var(--tile-border) border-box;
    box-shadow: 0 14px 40px #7a5cff19;
}

.home-assistant-infinity {
    display: block;
    width: clamp(148px, 17.5vw, 196px);
    max-width: 100%;
    height: auto;
    overflow: visible;
    stroke-width: 7px;
    stroke-linecap: round;
}

.home-infinity-track {
    stroke: #ff5da229;
}

.home-infinity-dash {
    stroke: url(#home-infinity-gradient);
    stroke-dasharray: 28 72;
    filter: drop-shadow(0 0 7px #ff4d9e8c);
    animation: home-infinity-run 1.7s linear infinite;
}

@keyframes home-infinity-run {
    to { stroke-dashoffset: -100px; }
}

.home-assistant-cta {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    max-width: 100%;
    min-height: 48px;
    padding: 12px clamp(15px, 2vw, 24px);
    border-radius: 999px;
    background: linear-gradient(105deg, #c82b7c, #774de3);
    color: #fff;
    box-shadow: 0 8px 22px #ff5da24d;
    font-size: clamp(17px, 1.75vw, 20px);
    font-weight: 670;
    line-height: 1.2;
    text-align: center;
}

@media (max-width: 1000px) {
    .home-solutions .solution-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 600px) {
    .home-solutions .rf-container {
        width: min(380px, calc(100% - 36px));
    }

    .home-solutions .solution-grid {
        grid-template-columns: minmax(0, 1fr);
    }

    .home-solutions .home-assistant-tile {
        aspect-ratio: 1;
    }
}

@media (prefers-reduced-motion: reduce) {
    .home-infinity-dash {
        animation: none;
    }

    .home-solutions .solution-card {
        transition: none;
    }

    .home-solutions .solution-card:hover {
        transform: none;
    }
}
