.hero {
    position: relative;
    width: 100%;
    max-width: 100vw;
    min-height: 440px;
    height: clamp(440px, 28vw, 540px);
    max-height: 540px;
    display: flex;
    align-items: center;
    overflow: hidden;
    overflow-x: clip;
    background: var(--color-white, #ffffff);
}

.hero--compact {
    min-height: 360px;
    height: clamp(360px, 24vw, 440px);
    max-height: 440px;
}

.hero__inner {
    position: relative;
    z-index: 1;
    width: min(100% - 80px, var(--container, 1200px));
    margin: 0 auto;
    display: grid;
    grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
    gap: clamp(1.25rem, 2.5vw, 2.5rem);
    align-items: center;
    padding-block: clamp(1.5rem, 3vw, 2.75rem);
    box-sizing: border-box;
}

.hero--compact .hero__inner {
    gap: clamp(1rem, 2vw, 1.75rem);
    padding-block: clamp(1.25rem, 2.5vw, 2.25rem);
}

.hero__badge {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    padding: 0.35rem 0.85rem;
    border-radius: 999px;
    border: 1px solid rgba(0, 32, 104, 0.2);
    background: rgba(216, 227, 251, 0.55);
    color: var(--color-navy);
    font-size: clamp(0.62rem, 0.9vw, 0.7rem);
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.hero__title {
    margin: 1.1rem 0 0;
    max-width: 16ch;
    font-family: var(--font-display);
    font-size: clamp(2rem, 3.2vw, 3.25rem);
    line-height: 1.08;
    letter-spacing: -0.03em;
    color: var(--color-navy);
}

.hero--compact .hero__title {
    margin-top: 0.75rem;
    font-size: clamp(1.65rem, 2.6vw, 2.35rem);
    max-width: 18ch;
}

.hero__subtitle {
    margin: 1rem 0 0;
    max-width: 42ch;
    color: var(--color-muted);
    font-size: clamp(0.95rem, 1.15vw, 1.05rem);
    line-height: 1.55;
}

.hero--compact .hero__subtitle {
    margin-top: 0.75rem;
    font-size: clamp(0.9rem, 1.05vw, 0.98rem);
}

.hero__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.85rem;
    margin-top: clamp(1.25rem, 2.2vw, 1.85rem);
}

.hero--compact .hero__actions {
    margin-top: 1.15rem;
    gap: 0.7rem;
}

.hero__stats {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: clamp(0.75rem, 1.5vw, 1.15rem);
}

.hero__stat {
    background: rgba(255, 255, 255, 0.82);
    border: 1px solid rgba(196, 197, 213, 0.8);
    border-radius: 16px;
    padding: clamp(1rem, 1.8vw, 1.5rem);
    box-shadow: 0 10px 30px rgba(0, 32, 104, 0.08);
    backdrop-filter: blur(8px);
}

.hero--compact .hero__stat {
    padding: 1rem 1.1rem;
    border-radius: 14px;
}

.hero__stat strong {
    display: block;
    font-family: var(--font-display);
    font-size: clamp(1.55rem, 2.2vw, 2.05rem);
    color: var(--color-navy);
    line-height: 1;
}

.hero--compact .hero__stat strong {
    font-size: clamp(1.4rem, 1.9vw, 1.7rem);
}

.hero__stat span {
    display: block;
    margin-top: 0.45rem;
    color: var(--color-muted);
    font-size: clamp(0.72rem, 0.95vw, 0.8rem);
    text-transform: lowercase;
}

/* 1024px – 1439px: tipografia e espaçamentos menores; hero ~420–480 */
@media (min-width: 1024px) and (max-width: 1439px) {
    .hero {
        min-height: 420px;
        height: clamp(420px, 30vw, 480px);
        max-height: 480px;
    }

    .hero--compact {
        min-height: 340px;
        height: clamp(340px, 26vw, 400px);
        max-height: 400px;
    }

    .hero__inner {
        gap: 1.35rem;
        padding-block: 1.75rem;
    }

    .hero__title {
        margin-top: 0.85rem;
        font-size: clamp(1.75rem, 2.5vw, 2.45rem);
    }

    .hero--compact .hero__title {
        font-size: clamp(1.5rem, 2.2vw, 2rem);
    }

    .hero__subtitle {
        margin-top: 0.75rem;
        font-size: 0.95rem;
    }

    .hero__actions {
        margin-top: 1.15rem;
        gap: 0.7rem;
    }

    .hero__stat {
        padding: 1.05rem 1.1rem;
    }
}

/* Mobile: composição própria, sem comprimir o desktop */
@media (max-width: 767px) {
    .hero,
    .hero--compact {
        min-height: 0;
        height: auto;
        max-height: none;
        align-items: stretch;
    }

    .hero__inner,
    .hero--compact .hero__inner {
        width: min(100% - 32px, var(--container, 1200px));
        grid-template-columns: 1fr;
        gap: 1.5rem;
        padding-block: 2rem 1.75rem;
    }

    .hero__badge {
        font-size: 0.62rem;
    }

    .hero__title,
    .hero--compact .hero__title {
        max-width: none;
        margin-top: 0.75rem;
        font-size: clamp(1.65rem, 7.5vw, 2.15rem);
    }

    .hero__subtitle,
    .hero--compact .hero__subtitle {
        max-width: none;
        margin-top: 0.7rem;
        font-size: 0.95rem;
    }

    .hero__actions,
    .hero--compact .hero__actions {
        margin-top: 1.25rem;
        flex-direction: column;
        align-items: stretch;
        gap: 0.65rem;
    }

    .hero__actions .akaiito-btn {
        width: 100%;
    }

    /* Elementos decorativos secundários no mobile */
    .hero__stats {
        display: none;
    }
}

@media (min-width: 768px) and (max-width: 1023px) {
    .hero,
    .hero--compact {
        min-height: 400px;
        height: clamp(400px, 42vw, 480px);
        max-height: 480px;
    }

    .hero__inner,
    .hero--compact .hero__inner {
        width: min(100% - 80px, var(--container, 1200px));
        grid-template-columns: 1fr;
        gap: 1.5rem;
        padding-block: 2rem;
    }

    .hero__title,
    .hero--compact .hero__title {
        max-width: 20ch;
        font-size: clamp(1.7rem, 3.5vw, 2.25rem);
    }

    .hero__stats {
        grid-template-columns: repeat(4, minmax(0, 1fr));
        gap: 0.65rem;
    }

    .hero__stat {
        padding: 0.85rem 0.75rem;
    }

    .hero__stat strong {
        font-size: 1.35rem;
    }

    .hero__stat span {
        font-size: 0.68rem;
    }
}
