.hero {
    position: relative;
    display: flex;
    align-items: center;
    min-height: 100svh;
    min-height: 100vh;
    overflow: hidden;
}

/* Video background */
.hero-video {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        105deg,
        rgba(9, 20, 40, 0.92) 0%,
        rgba(9, 20, 40, 0.70) 52%,
        rgba(9, 20, 40, 0.38) 100%
    );
}

.hero-content {
    position: relative;
    z-index: 2;
    padding-block: calc(104px + 1.75rem) 8rem;
}

.hero-rule {
    width: 2.5rem;
    height: 3px;
    background: var(--color-accent);
    margin-bottom: 1.75rem;
    border-radius: 2px;
}

.hero-label {
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.85);
    margin-bottom: 1rem;
}

.hero-title {
    font-size: clamp(2.25rem, 5vw, 4rem);
    font-weight: 800;
    color: var(--color-white);
    line-height: 1.1;
    margin-bottom: 1.25rem;
    letter-spacing: -0.025em;
    max-width: 18ch;
}

.hero-subtitle {
    font-size: 1.4rem;
    font-weight: 400;
    letter-spacing: 0.03em;
    color: rgba(255, 255, 255, 0.80);
    max-width: 50ch;
    line-height: 1.7;
    margin-bottom: 2.5rem;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.875rem;
    align-items: center;
}

.hero-btn-secondary {
    color: var(--color-white);
    border-color: rgba(255, 255, 255, 0.5);
}

.hero-btn-secondary:hover {
    background: rgba(255, 255, 255, 0.12);
    border-color: var(--color-white);
    color: var(--color-white);
}

/* Button icon wrapper */
.btn-icon-wrap {
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.22s cubic-bezier(0.22, 1, 0.36, 1);
}

.hero-btn-primary .btn-icon-wrap,
.hero-btn-secondary .btn-icon-wrap {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.18);
}

/* Scroll hint */
.hero-scroll-hint {
    position: absolute;
    bottom: 5rem;
    left: 50%;
    transform: translateX(-50%);
    color: rgba(255, 255, 255, 0.65);
    z-index: 2;
    display: block;
    text-decoration: none;
    animation: bounce 2.2s ease-in-out infinite;
    transition: color 0.2s ease;
}

.hero-scroll-hint:hover {
    color: rgba(255, 255, 255, 0.95);
}

@keyframes bounce {
    0%, 100% { transform: translateX(-50%) translateY(0); }
    50%       { transform: translateX(-50%) translateY(8px); }
}

.hero-scroll-arrow {
    animation: arrow-drop 2.2s ease-in-out infinite;
}

@keyframes arrow-drop {
    0%, 100% { transform: translateY(0);   opacity: 1;   }
    50%       { transform: translateY(7px); opacity: 0.3; }
}

/* SVG fold */
.hero-fold {
    position: absolute;
    bottom: -1px;
    left: 0;
    right: 0;
    z-index: 3;
    pointer-events: none;
}

.hero-fold svg {
    display: block;
    width: 100%;
    height: 90px;
}

.hero-favicon {
    width: 28px;
    height: 28px;
    object-fit: contain;
    margin-bottom: 1.25rem;
    opacity: 0.9;
}

/* Micro-animações — fade-up escalonado */
@keyframes heroFadeUp {
    from {
        opacity: 0;
        transform: translateY(22px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.hero-rule     { animation: heroFadeUp 0.55s cubic-bezier(0.22, 1, 0.36, 1) 0.10s backwards; }
.hero-label    { animation: heroFadeUp 0.55s cubic-bezier(0.22, 1, 0.36, 1) 0.22s backwards; }
.hero-title    { animation: heroFadeUp 0.65s cubic-bezier(0.22, 1, 0.36, 1) 0.36s backwards; }
.hero-subtitle { animation: heroFadeUp 0.55s cubic-bezier(0.22, 1, 0.36, 1) 0.52s backwards; }
.hero-actions  { animation: heroFadeUp 0.55s cubic-bezier(0.22, 1, 0.36, 1) 0.68s backwards; }

@media (max-width: 767px) {
    .hero-content {
        text-align: center;
    }
    .hero-favicon {
        margin-inline: auto;
    }
    .hero-title {
        max-width: none;
        margin-inline: auto;
    }
    .hero-subtitle {
        max-width: none;
        margin-inline: auto;
    }
    .hero-subtitle br {
        display: none;
    }
    .hero-actions {
        justify-content: center;
    }
}

@media (min-width: 900px) {
    .hero {
        min-height: 100vh;
    }
}

/* Slideshow de fundo — efeito Ken Burns */
.hero-slideshow {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
}

.hero-slideshow__slide {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    opacity: 0;
    transform: scale(1);
    transition: opacity 2.2s ease-in-out;
    will-change: opacity, transform;
}

.hero-slideshow__slide.is-active {
    opacity: 1;
    animation: heroKenBurns 7.5s ease-out forwards;
}

.hero-slideshow__slide:nth-child(even).is-active {
    animation-name: heroKenBurnsAlt;
}

@keyframes heroKenBurns {
    from { transform: scale(1) translate(0, 0); }
    to   { transform: scale(1.12) translate(-1.5%, -1%); }
}

@keyframes heroKenBurnsAlt {
    from { transform: scale(1) translate(0, 0); }
    to   { transform: scale(1.12) translate(1.5%, 1%); }
}
