/* Safe Fleet hero. */

.sf-hero {
    padding-bottom: 24px;
}

.sf-hero__layout {
    display: grid;
    grid-template-columns:
        minmax(0, 931fr)
        minmax(380px, 461fr);

    gap: 16px;
}

.sf-hero__content,
.sf-hero__visual {
    position: relative;

    min-height: 692px;
    overflow: hidden;

    border-radius: var(--sf-hero-radius);
}

.sf-hero__breadcrumbs {
    align-items: center;
    display: flex;
    gap: 8px;
    max-width: fit-content;
    margin-bottom: 24px;
    min-height: 42px;
    padding: 8px 16px;
    border-radius: 50px;
    background: rgba(255, 255, 255, 0.06);

    color: rgba(255, 255, 255, 0.6);
    font-size: 18px;
    font-weight: 500;
    line-height: 1.44;
}

.sf-hero__breadcrumbs--active {
    color: #ffffff;
}

.sf-hero__content {
    color: var(--sf-color-white);

    background:
        url("../../images/savings-rings.svg") left 234.8px top -778.2px / 1435.4px 1435.4px no-repeat,
        radial-gradient(
            ellipse 48.43% 48.43% at 50% 50%,
            rgba(32, 45, 78, 0.5) 0%,
            rgba(32, 45, 78, 0.5) 18.22%,
            rgba(24, 34, 59, 0.5) 59.11%,
            rgba(16, 23, 39, 0.5) 100%
        ),
        #202d4e;
}

.sf-hero__content::before {
    content: "";

    position: absolute;
    top: -159.177px;
    left: 537.984px;

    width: 364.663px;
    height: 880px;

    background: url("../../images/savings-lines-bottom.svg") center / 100% 100% no-repeat;
    transform: rotate(-14.66deg);
    transform-origin: center;

    pointer-events: none;
}

.sf-hero__content::after {
    content: "";

    position: absolute;
    inset: 0;

    background-image:
        radial-gradient(
            circle,
            rgba(255, 255, 255, 0.14) 0 1.5px,
            transparent 2px
        );

    background-size: 116px 116px;
    background-position: 58px 58px;

    opacity: 0.55;
    pointer-events: none;
}

.sf-hero__content-inner {
    padding: 80px;
    position: relative;
    z-index: 1;

    display: flex;
    flex-direction: column;

    min-height: 692px;
}

.sf-breadcrumbs {
    margin-bottom: 42px;
}

.sf-breadcrumbs__list {
    display: inline-flex;
    align-items: center;
    flex-wrap: wrap;

    padding: 10px 18px;

    color: rgba(255, 255, 255, 0.64);
    background: rgba(255, 255, 255, 0.07);

    border: 1px solid rgba(255, 255, 255, 0.09);
    border-radius: 999px;

    font-size: 18px;
    line-height: 1.2;
}

.sf-breadcrumbs__item {
    display: inline-flex;
    align-items: center;
}

.sf-breadcrumbs__item:not(:last-child)::after {
    content: "/";

    margin-inline: 7px;

    color: rgba(255, 255, 255, 0.46);
}

.sf-breadcrumbs__item[aria-current="page"] {
    color: #ffffff;
}

.sf-breadcrumbs__link {
    transition: color 160ms ease;
}

.sf-breadcrumbs__link:hover {
    color: #ffffff;
}

.sf-hero__title {
    margin: 0 0 16px;

    color: var(--sf-color-white);
    font-size: 70px;
    font-weight: 700;
    line-height: 1.12;
    letter-spacing: -1.05px;
}

.sf-hero__description {
    max-width: 653px;
    margin: 0 0 32px;

    color: var(--sf-color-text-muted);

    font-size: 24px;
    font-weight: 500;
    line-height: 1.5;
}

.sf-hero__description strong {
    color: var(--sf-color-white);
    font-weight: 700;
}

.sf-hero__actions {
    display: flex;
    align-items: center;
    flex-wrap: wrap;

    gap: 16px;
    margin-bottom: 48px;
}

.sf-hero__button {
    min-height: 62px;
    max-height: none;
    padding: 18px 28px;
    border-radius: 12px;
}

.sf-hero__button--primary {
    width: 242px;
}

.sf-hero__button--secondary {
    width: 226px;
    padding-inline: 22px;
    border-color: rgba(255, 255, 255, 0.6);
    color: #ffffff;
}

.sf-hero__button--secondary:hover {
    border-color: #ffffff;
    background: rgba(255, 255, 255, 0.08);
}

.sf-hero__button:focus-visible {
    outline: 3px solid rgba(105, 132, 255, 0.75);
    outline-offset: 3px;
}

.sf-button__icon {
    flex: 0 0 auto;
}

.sf-hero__visual {
    isolation: isolate;

    background:
        radial-gradient(
            circle at 19% 11%,
            rgba(86, 106, 255, 0.56) 0%,
            rgba(86, 106, 255, 0) 43%
        ),
        radial-gradient(
            circle at 88% 76%,
            rgba(13, 33, 153, 0.5) 0%,
            rgba(13, 33, 153, 0) 48%
        ),
        linear-gradient(
            145deg,
            #2448f1 0%,
            #1734d7 48%,
            #102197 100%
        );
}

.sf-hero__visual::before {
    content: "";

    position: absolute;
    inset: 0;
    z-index: -1;

    background-image:
        radial-gradient(
            circle,
            rgba(255, 255, 255, 0.16) 0 1.5px,
            transparent 2px
        );

    background-size: 116px 116px;
    background-position: 58px 58px;

    opacity: 0.7;
    pointer-events: none;
}

.sf-hero__dashboard {
    position: absolute;

    display: block;
    max-width: none;
    height: auto;

    filter: drop-shadow(0 24px 30px rgba(5, 12, 80, 0.22));
}

.sf-hero__dashboard--chart {
    top: 8.2%;
    right: 0;

    width: 82.86%;
}

.sf-hero__dashboard--rating {
    top: 366px;
    left: 29px;

    width: 403px;
}

@media (max-width: 1200px) {
    .sf-hero__layout {
        grid-template-columns:
            minmax(0, 1.45fr)
            minmax(390px, 1fr);
    }
    .sf-hero__content-inner {
        padding: 56px;
    }
    .sf-hero__title {
        font-size: 62px;
    }
}

@media (max-width: 900px) {
    .sf-hero__content::before {
        top: -86.518px;
        left: 378px;

        width: 372.147px;
        height: 770.325px;

        background-image: url("../../images/hero-rings-tablet.svg");
        transform: none;
    }
    .sf-hero__layout {
        grid-template-columns: 1fr;
    }
    .sf-hero__content,
    .sf-hero__content-inner {
        min-height: auto;
    }
    .sf-hero__visual {
        min-height: auto;
        aspect-ratio: 461 / 692;
    }
}

@media (max-width: 640px) {
    .sf-hero {
        padding-bottom: 16px;
    }
    .sf-hero__content::before {
        top: -287.943px;
        left: 256.573px;

        width: 445.848px;
        height: 445.852px;

        background-image: url("../../images/hero-rings-mobile.svg");
        transform: rotate(150deg);
    }
    .sf-hero__content-inner {
        padding: 32px 24px 36px;
    }
    .sf-hero__breadcrumbs {
        min-height: 38px;
        margin-bottom: 24px;
        padding: 7px 13px;
        font-size: 14px;
    }
    .sf-breadcrumbs {
        margin-bottom: 30px;
    }
    .sf-breadcrumbs__list {
        padding: 8px 13px;
        font-size: 14px;
    }
    .sf-hero__title {
        margin-bottom: 16px;

        font-size: clamp(44px, 12.2vw, 48px);
        line-height: 1.12;
        letter-spacing: -0.72px;
    }
    .sf-hero__description {
        margin-bottom: 28px;

        font-size: 18px;
        line-height: 1.44;
    }
    .sf-hero__actions {
        align-items: stretch;
        flex-direction: column;

        gap: 12px;
        margin-bottom: 32px;
    }
    .sf-hero__button,
    .sf-hero__button--primary,
    .sf-hero__button--secondary {
        width: 100%;
        min-height: 56px;

        padding: 15px 20px;

        font-size: 16px;
    }
    .sf-hero__visual {
        aspect-ratio: 377 / 566;
    }
    .sf-hero__dashboard--chart {
        top: 8.2%;
        right: 0;

        width: 82.86%;
    }
    .sf-hero__dashboard--rating {
        top: 52.9%;
        left: 6.3%;

        width: 87.42%;
    }
}

@media (prefers-reduced-motion: reduce) {
    .sf-hero__button {
        transition: none;
    }
    .sf-hero__button:hover {
        transform: none;
    }
}
