@import url("../../../../styles/colors.css");

/* Container */
.sf-container {
    width: min(
        calc(100% - var(--sf-page-padding) * 2),
        var(--sf-page-width)
    );
    margin-inline: auto;
}

/* =========================
   HERO LAYOUT
========================= */
.sf-hero {
    padding-bottom: 24px;
}

.sf-hero__layout {
    display: flex;
    gap: 16px;
}

.sf-hero__content,
.sf-hero__visual {
    position: relative;
    min-height: 692px;
    overflow: hidden;
    border-radius: var(--sf-hero-radius);
}

/* =========================
   HERO LEFT SIDE
========================= */
.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:
        radial-gradient(
            ellipse 900px 760px at 100% 0%,
            var(--color-primary-alt) 0%,
            var(--color-primary-30) 22%,
            rgba(32, 45, 78, 0) 55%
        ),
        radial-gradient(
            ellipse at 50% 50%,
            #202d4e 0%,
            #18223b 59%,
            #101727 100%
        );
    flex: 1;
    overflow: hidden;
    border-radius: 24px;
}

.sf-hero__bg-video {
    position: absolute;
    inset: 0;
    z-index: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    pointer-events: none;
}

/* Concentric circles decoration */
.sf-hero__content::before {
    content: "";
    position: absolute;
    left: 538.43px;
    top: -159.52px;
    width: 365px;
    height: 880px;
    background: url("img/hero-rings.svg") no-repeat center / contain;
    transform: rotate(-14.66deg);
    pointer-events: none;
}

/* Small background dots */
.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: 69px 80px;
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    min-height: 692px;
}

/* HERO COPY */
.sf-hero__title {
    margin: 0 0 16px;
    font-size: 70px;
    font-weight: 700;
    line-height: 1.12;
    letter-spacing: -1.05px;
    background: linear-gradient(111deg, #F0F5FA 58.5%, #DCE3F3 86.86%);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;

}

.sf-hero__description {
    max-width: 562px;
    margin: 0 0 32px;
    font-size: 24px;
    font-weight: 500;
    line-height: 1.5;
    color: var(--BG-White, #FFF);
}

.sf-hero__description strong {
    color: var(--sf-color-white);
    font-weight: 700;
}

/* BUTTONS */
.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: 258px;
}

.sf-hero__button--secondary {
    width: 148px;
    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;
}

/* TRUST PANEL */
.sf-hero-trust {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 34px;
    width: min(100%, 602px);
    min-height: 66px;
    padding: 17px 24px;
    color: rgba(255, 255, 255, 0.78);
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 15px;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.sf-hero-trust__customers,
.sf-hero-trust__rating {
    display: flex;
    align-items: center;
}

.sf-hero-trust__customers {
    gap: 16px;
    min-width: 0;
}

.sf-hero-trust__avatars {
    flex: 0 0 auto;
    width: 81px;
    height: 30px;
    object-fit: contain;
}

.sf-hero-trust__text {
    font-size: 18px;
    font-weight: 500;
    line-height: 1.44;
    white-space: nowrap;
}

.sf-hero-trust__rating {
    flex: 0 0 auto;
    gap: 8px;
    white-space: nowrap;
}

.sf-hero-trust__stars {
    flex: 0 0 auto;
    width: 80px;
    height: 16px;
}

.sf-hero-trust__score {
    font-size: 18px;
    font-weight: 500;
    line-height: 1.44;
}

/* HERO RIGHT SIDE */
.sf-hero__visual {
    width: 550px;
}
.sf-hero__visual img {
    width: auto;
    height: 100%;
}

.sf-hero__dashboard--right-desktop {
    display: block;
}

.sf-hero__dashboard--right-tablet {
    display: none;
}

.sf-hero__dashboard--right-mobile {
    display: none;
}
/* Tablet */
@media (max-width: 1200px) {
    .sf-hero__layout {
    flex-wrap: wrap;
        flex-direction: column;
        gap: 8px;
    }

    .sf-hero__content-inner {
        padding: 56px;
    }

    .sf-hero__title {
        font-size: 62px;
    }

    .sf-hero-trust {
        align-items: flex-start;
        flex-direction: column;
        gap: 12px;
    }
    .sf-hero__dashboard--right-desktop {
        display: none;
    }

    .sf-hero__dashboard--right-tablet {
        display: block;
    }
    .sf-hero__visual {
        width: initial;
    }

    .sf-hero__visual img {
        width: 100%;
        height: auto;
    }
}

/* Stacked layout */
@media (max-width: 900px) {
    .sf-hero__layout {
        grid-template-columns: 1fr;
    }

    .sf-hero__content,
    .sf-hero__content-inner {
        min-height: auto;
    }

    .sf-hero__visual {
        min-height: auto;
    }

    .sf-hero-trust {
        align-items: center;
        flex-direction: row;
    }
}

/* Mobile */
@media (max-width: 640px) {
    :root {
        --sf-page-padding: 8px;
        --sf-hero-radius: 20px;
    }

    .sf-hero {
        padding-bottom: 8px;
    }

    .sf-hero__content-inner {
        padding: 32px 24px 36px;
    }

    .sf-hero__breadcrumbs {
        min-height: 38px;
        margin-bottom: 24px;
        padding: 7px 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-trust {
        align-items: flex-start;
        flex-direction: column;
        width: 100%;
        gap: 12px;
        padding: 16px 18px;
    }

    .sf-hero-trust__customers {
        align-items: flex-start;
    }

    .sf-hero-trust__text {
        font-size: 15px;
        white-space: normal;
    }

    .sf-hero-trust__score {
        font-size: 16px;
    }

    .sf-hero__dashboard--chart {
        top: 8.2%;
        left: 17.35%;
        width: 82.86%;
    }


    .sf-hero__dashboard--right-tablet {
        display: none;
    }

    .sf-hero__dashboard--right-mobile {
        display: block;
    }
}