.hero-stage {
    position: relative;
    overflow: visible;
}

.hero-stage__content {
    position: relative;
    z-index: 2;
}

.hero-top {
    display: block;
    max-width: 672px;
    position: relative;
    z-index: 5;
}

.hero-copy {
    width: 100%;
    text-align: left;
}

.hero-stage__robot {
    position: absolute;
    z-index: 1;
    top: 0;
    left: 50%;
    width: min(420px, 100vw);
    height: min(480px, 70vh);
    transform: translateX(-48%);
    pointer-events: none;
}

.hero-stage__spotlight {
    display: none;
}

.hero-stage__robot {
    background: transparent;
    overflow: visible;
}

.hero-stage__viewer {
    position: relative;
    z-index: 1;
    display: block;
    width: 100%;
    height: 100%;
    pointer-events: none;
    background: transparent !important;
    background-color: transparent !important;
    border: none !important;
    box-shadow: none !important;
    overflow: visible;
}

spline-viewer.hero-stage__viewer {
    background: transparent !important;
    background-color: transparent !important;
}

.site-hero .mx-auto.max-w-7xl,
.hero-stage,
.hero-stage__content {
    overflow: visible;
}

.hero-visual {
    position: relative;
    z-index: 3;
    margin-top: clamp(-32px, -2vw, 8px);
    overflow: visible;
    padding-bottom: clamp(16px, 3vw, 32px);
}

.hero-visual .hero-dashboard {
    position: relative;
    z-index: 3;
    padding-top: 0;
    margin-top: clamp(96px, 14vw, 160px);
    isolation: isolate;
}

@media (min-width: 1024px) {
    .site-hero {
        overflow: visible;
    }

    .hero-stage__robot {
        top: -96px;
        left: auto;
        right: -24%;
        width: min(920px, 54vw);
        height: clamp(640px, 82vh, 880px);
        transform: none;
    }

    .hero-stage__viewer {
        transform: scale(1.04);
        transform-origin: 52% 78%;
    }

    .hero-top {
        max-width: 608px;
        min-height: clamp(280px, 32vh, 380px);
    }

    .hero-visual {
        margin-top: clamp(-288px, -22vw, -192px);
        padding-top: clamp(272px, 24vw, 352px);
    }

    .hero-visual .hero-dashboard {
        margin-top: clamp(40px, 4vw, 64px);
        padding-top: 0;
        max-width: 100%;
    }

}

@media (max-width: 1023px) {
    .hero-stage__robot {
        top: auto;
        bottom: 38%;
        height: min(400px, 52vh);
        transform: translateX(-50%);
        opacity: 0.85;
    }

    .hero-visual {
        margin-top: 24px;
        padding-top: 0;
    }

    .hero-visual .hero-dashboard {
        margin-top: clamp(80px, 14vw, 120px);
    }
}

.hero-stage__robot spline-viewer::part(logo),
spline-viewer.hero-stage__viewer::part(logo) {
    display: none !important;
    opacity: 0 !important;
    visibility: hidden !important;
}

/* Hero: dashboard image (front) + faixa azul (ajuste manual em px) */
.site-hero {
    --hero-to-features-gap: 88px;
}

.hero-visual {
    position: relative;
    isolation: isolate;
}

.hero-dashboard.hero-dashboard--layered {
    --hero-dashboard-overlap: 300px;
    position: relative;
    z-index: 2;
    width: 100%;
    max-width: 100%;
    margin-left: auto;
    margin-right: auto;
    margin-bottom: calc(var(--hero-dashboard-overlap) * -1);
    transform-origin: center top;
}

.hero-dashboard__image,
.hero-dashboard__frame {
    width: 100%;
}

.hero-dashboard__frame {
    overflow: hidden;
}

.hero-stats-band {
    --hero-band-inset: 26px;
    --hero-band-margin-top: 140px;
    --hero-band-margin-bottom: 0px;
    --hero-band-min-height: 500px;
    --hero-band-padding-top: 360px;
    --hero-band-padding-x: 40px;
    --hero-band-padding-bottom: 105px;
    --hero-band-radius: 24px;
    --hero-band-inner-offset: 40px;

    position: relative;
    z-index: 0;
    width: calc(100vw - (var(--hero-band-inset) * 2));
    margin-left: calc(50% - 50vw + var(--hero-band-inset));
    margin-top: calc(var(--hero-band-margin-top) * -1);
    margin-bottom: calc(var(--hero-band-margin-bottom) * -1);
    min-height: var(--hero-band-min-height);
    padding: var(--hero-band-padding-top) var(--hero-band-padding-x) var(--hero-band-padding-bottom);
    border-radius: var(--hero-band-radius);
    background: #0134fd;
}

.site-hero > .relative.z-10 {
    padding-bottom: 40px !important;
}

.site-hero + #features {
    padding-top: var(--hero-to-features-gap, 88px);
}

@media (min-width: 768px) {
    .site-hero + #features {
        padding-top: var(--hero-to-features-gap, 88px);
    }
}

.hero-stats-band__inner {
    width: 100%;
    max-width: 1312px;
    margin-top: 40px;
    margin-left: auto;
    margin-right: auto;
    padding-top: var(--hero-band-inner-offset);
}

.hero-showcase__stats-head {
    display: grid;
    gap: 20px;
    margin-bottom: 24px;
}

@media (min-width: 768px) {
    .hero-showcase__stats-head {
        grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
        align-items: center;
        gap: 32px 48px;
        margin-bottom: 28px;
    }
}

.hero-showcase__heading {
    margin: 0;
    max-width: 18ch;
    font-size: clamp(40px, 4vw, 48px);
    font-weight: 500;
    line-height: 1.08;
    letter-spacing: -0.02em;
    text-wrap: balance;
    color: #fff;
}

.hero-showcase__badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    width: fit-content;
    padding: 4px 10px;
    border-radius: 9999px;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.02em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.85);
    background: rgba(0, 0, 0, 0.28);
    border: 1px solid rgba(255, 255, 255, 0.12);
}

.hero-showcase__badge::before {
    content: "";
    width: 14px;
    height: 14px;
    background: currentColor;
    opacity: 0.7;
    mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2'%3E%3Cpath d='M4 19V5M10 19V9M16 19v-6M22 19V3'/%3E%3C/svg%3E") center / contain no-repeat;
    -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2'%3E%3Cpath d='M4 19V5M10 19V9M16 19v-6M22 19V3'/%3E%3C/svg%3E") center / contain no-repeat;
}

.hero-showcase__title {
    margin: 8px 0 0;
    font-size: clamp(20px, 2.5vw, 28px);
    font-weight: 700;
    line-height: 1.15;
    letter-spacing: -0.02em;
    color: #fff;
}

.hero-showcase__desc {
    margin: 0;
    max-width: 42ch;
    font-size: clamp(16px, 1.6vw, 20px);
    line-height: 1.55;
    color: rgba(255, 255, 255, 0.78);
}

@media (min-width: 768px) {
    .hero-showcase__desc {
        justify-self: end;
        text-align: left;
    }
}

.hero-showcase__grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    margin-top: 70px;
    gap: 12px;
    border-top: none;
}

@media (min-width: 768px) {
    .hero-showcase__grid {
        grid-template-columns: repeat(4, minmax(0, 1fr));
        gap: 16px;
    }
}

.hero-showcase__stat {
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding: 24px 20px;
    background: transparent;
    border: none;
}

@media (min-width: 768px) {
    .hero-showcase__stat {
        padding: 28px 16px;
    }
}

.hero-showcase__icon {
    width: 22px;
    height: 22px;
    color: rgba(255, 255, 255, 0.55);
}

.hero-showcase__label {
    font-size: 14px;
    line-height: 1.3;
    color: rgba(255, 255, 255, 0.65);
}

.hero-showcase__value {
    font-size: clamp(32px, 4.2vw, 48px);
    font-weight: 700;
    line-height: 1.05;
    letter-spacing: -0.04em;
    color: #fff;
}

@media (max-width: 767px) {
    .site-hero {
        --hero-to-features-gap: 40px;
    }

    .hero-dashboard.hero-dashboard--layered {
        --hero-dashboard-overlap: 120px;
    }

    .hero-stats-band {
        --hero-band-inset: 10px;
        --hero-band-margin-top: 64px;
        --hero-band-min-height: 0;
        --hero-band-padding-top: clamp(140px, 38vw, 200px);
        --hero-band-padding-x: 14px;
        --hero-band-padding-bottom: 40px;
        --hero-band-radius: 14px;
        --hero-band-inner-offset: 12px;
    }

    .hero-stats-band__inner {
        margin-top: 12px;
    }

    .hero-showcase__stats-head {
        gap: 14px;
        margin-bottom: 16px;
    }

    .hero-showcase__heading {
        max-width: none;
        font-size: clamp(26px, 7.5vw, 34px);
    }

    .hero-showcase__desc {
        max-width: none;
        font-size: 0.9375rem;
        line-height: 1.5;
    }

    .hero-showcase__grid {
        margin-top: 24px;
        gap: 8px;
    }

    .hero-showcase__stat {
        padding: 14px 10px;
        gap: 6px;
    }

    .hero-showcase__label {
        font-size: 12px;
    }

    .hero-showcase__value {
        font-size: clamp(22px, 6.5vw, 30px);
    }
}

@media (min-width: 768px) and (max-width: 1023px) {
    .hero-dashboard.hero-dashboard--layered {
        --hero-dashboard-overlap: 200px;
    }

    .hero-stats-band {
        --hero-band-inset: 16px;
        --hero-band-margin-top: 100px;
        --hero-band-padding-top: 260px;
        --hero-band-padding-x: 24px;
        --hero-band-padding-bottom: 72px;
        --hero-band-inner-offset: 24px;
    }
}

