.hp-carousel,
.hp-features,
.hp-planning,
.hp-metrics {
    --marca: #1d4ed8;
    --marca-hover: #1e40af;
    --marca-sutil: rgba(29, 78, 216, 0.12);
    --borda-foco: var(--marca);
    --borda-foco-sombra: 0 0 0 3px rgba(29, 78, 216, 0.25);
    --sombra-card-hover: 0 20px 50px rgba(29, 78, 216, 0.15);
}

.hp-carousel {
    position: relative;
    width: 100%;
    height: 100vh;
    overflow: hidden;
    background: var(--fundo-escuro);
    z-index: var(--z-base);
}

.hp-carousel::before {
    content: '';
    position: absolute;
    inset: 0;
    z-index: 0;
    opacity: 0.08;
    background-image: linear-gradient(var(--borda-sutil-escuro) 1px, transparent 1px),
                      linear-gradient(90deg, var(--borda-sutil-escuro) 1px, transparent 1px);
    background-size: 60px 60px;
    animation: hp-gridMove 20s linear infinite;
}

@keyframes hp-gridMove {
    0% {
        background-position: 0 0;
    }

    100% {
        background-position: 60px 60px;
    }
}

.hp-slide {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    clip-path: circle(0% at 100% 50%);
    opacity: 0;
    z-index: 1;
    display: flex;
    align-items: center;
    transition: clip-path 1.1s cubic-bezier(0.77, 0, 0.175, 1),
                opacity 0.4s ease;
    will-change: clip-path, opacity;
}

.hp-slide.active {
    clip-path: circle(150% at 100% 50%);
    opacity: 1;
    z-index: 10;
}

.slide-bg {
    position: absolute;
    inset: 0;
    background: var(--slide-color);
    z-index: -1;
}

.hp-slide-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: center;
    width: 100%;
    height: 100%;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 clamp(1rem, 3vw, 3rem);
    gap: clamp(1rem, 3vw, 2rem);
    position: relative;
    z-index: 5;
}

.hp-img-wrap {
    width: 100%;
    height: 100%;
    overflow: hidden;
    opacity: 0;
    transition: opacity 0.45s ease;
    position: relative;
    background-color: var(--slide-color);
    transform: translateZ(0);
    display: flex;
    align-items: center;
    justify-content: center;
}

.hp-img-ken {
    width: 100%;
    height: 100%;
    animation: none;
    transform: none;
    display: block;
}

.hp-slide.active .hp-img-wrap {
    opacity: 1;
    transition: opacity 0.7s ease 0.6s;
}

.hp-carousel:hover .hp-slide.active .hp-img-ken,
.hp-carousel:focus-within .hp-slide.active .hp-img-ken {
    animation-play-state: paused;
}

.hp-img-ken img {
    width: 100%;
    height: 100%;
    max-width: none;
    max-height: none;
    object-fit: contain;
    object-position: center;
    display: block;
    margin: 0 auto;
    filter: none;
}

.hp-text-block {
    display: flex;
    flex-direction: column;
    gap: 1.2rem;
    opacity: 0;
    transform: translateX(10px);
    transition: opacity 0.5s ease,
                transform 0.5s ease;
    transition-delay: 0.8s;
}

.hp-slide.active .hp-text-block {
    opacity: 1;
    transform: translateX(0);
}

.hp-title {
    font-size: clamp(2rem, 4vw, 3.5rem);
    font-weight: 800;
    line-height: 1.08;
    letter-spacing: -0.025em;
    color: var(--texto-claro);
    text-shadow: 0 4px 30px rgba(0, 0, 0, 0.5);
    background: linear-gradient(135deg, var(--texto-claro) 0%, var(--marca) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    background-size: 200% 200%;
    animation: hp-gradientShift 8s ease infinite;
}

@keyframes hp-gradientShift {
    0%, 100% {
        background-position: 0% 50%;
    }

    50% {
        background-position: 100% 50%;
    }
}

.hp-subtitle {
    font-size: clamp(0.95rem, 1.2vw, 1.1rem);
    font-weight: 400;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.9);
    max-width: 420px;
    position: relative;
}

.hp-subtitle::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 0;
    width: 60px;
    height: 2px;
    background: var(--marca);
    border-radius: var(--raio-completo);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.6s ease;
}

.hp-slide.active .hp-subtitle::after {
    transition-delay: 1.1s;
    transform: scaleX(1);
}

.hp-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.8rem 2rem;
    background: var(--fundo-claro);
    color: var(--texto-escuro);
    font-weight: 700;
    font-size: 0.9rem;
    border-radius: var(--raio-pequeno);
    text-decoration: none;
    transition: all 0.2s ease;
    width: fit-content;
    border: 2px solid transparent;
    margin-top: 0.5rem;
    position: relative;
    overflow: hidden;
    cursor: pointer;
    user-select: none;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.hp-btn:hover {
    color: var(--texto-claro);
    border-color: var(--marca);
    background: var(--marca);
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(29, 78, 216, 0.35);
}

.hp-controls {
    position: absolute;
    bottom: 2.5rem;
    left: 0;
    right: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    z-index: 20;
    padding: 0 2rem;
    max-width: 800px;
    margin: 0 auto;
    width: 100%;
}

.hp-navigation-btn {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, 0.3);
    background: rgba(0, 0, 0, 0.2);
    color: var(--texto-claro);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    backdrop-filter: blur(4px);
    transition: all 0.2s ease;
    flex-shrink: 0;
    position: relative;
}

.hp-navigation-btn::after {
    content: '';
    position: absolute;
    inset: -2px;
    border-radius: 50%;
    background: var(--marca);
    opacity: 0;
    transition: opacity 0.2s ease;
    z-index: -1;
    filter: blur(8px);
}

.hp-navigation-btn:hover {
    background: var(--texto-claro);
    color: var(--texto-escuro);
    border-color: var(--texto-claro);
    transform: scale(1.1);
}

.hp-navigation-btn:hover::after {
    opacity: 0.4;
}

.hp-progress-track {
    flex: 1;
    height: 3px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: var(--raio-completo);
    overflow: hidden;
    position: relative;
}

.hp-progress-track::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, transparent, var(--marca), transparent);
    opacity: 0.5;
    animation: hp-progressGlow 2s ease-in-out infinite;
}

@keyframes hp-progressGlow {
    0%, 100% {
        transform: translateX(-100%);
    }

    50% {
        transform: translateX(100%);
    }
}

.hp-progress-fill {
    height: 100%;
    width: 0%;
    background: var(--texto-claro);
    border-radius: var(--raio-completo);
    transition: width linear;
    will-change: width;
}

.hp-reveal {
    opacity: 0;
    transform: translateY(25px);
    transition: opacity 0.5s cubic-bezier(0.4, 0, 0.2, 1),
                transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    will-change: opacity, transform;
}

.hp-reveal.hp-reveal-visible {
    opacity: 1;
    transform: translateY(0);
}

.hp-reveal > * {
    transition-delay: calc(var(--stagger-index, 0) * 0.1s);
}

.hp-features {
    background: var(--fundo-claro);
    color: var(--texto-escuro);
    padding: 4rem 0;
    border-top: 1px solid var(--borda-sutil-claro);
    position: relative;
}

.hp-features::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--marca), transparent);
    opacity: 0.5;
}

.hp-features-header {
    text-align: center;
    max-width: 700px;
    margin: 0 auto 4rem;
    padding: 0 1.5rem;
}

.hp-features-header h2 {
    font-size: clamp(1.8rem, 4vw, 2.5rem);
    font-weight: 600;
    margin-bottom: 1rem;
    line-height: 1.2;
    background: linear-gradient(135deg, var(--texto-escuro) 0%, var(--marca) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hp-features-header p {
    font-size: 1.1rem;
    color: var(--texto-escuro-sec);
    line-height: 1.7;
}

.hp-features-col {
    display: flex;
    flex-direction: column;
    gap: 4rem;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

.hp-feature-card {
    display: flex;
    align-items: stretch;
    padding: 0;
    border-radius: 1rem;
    background: var(--fundo-claro);
    border: 1px solid var(--borda-sutil-claro);
    transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    position: relative;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
}

.hp-feature-card::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: inherit;
    padding: 1px;
    background: linear-gradient(135deg, var(--marca), transparent 40%, var(--marca));
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
}

.hp-feature-card:hover {
    border-color: var(--marca);
    box-shadow: 0 20px 50px rgba(29, 78, 216, 0.12);
    transform: translateY(-4px);
}

.hp-feature-card:hover::before {
    opacity: 1;
}

.hp-feature-img-wrap {
    flex: 0 0 40%;
    max-width: 40%;
    height: 100%;
    align-self: stretch;
    display: block;
    overflow: hidden;
}

.hp-feature-img-box {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 1rem 0 0 1rem;
    position: relative;
}

.hp-feature-img-box::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(0, 0, 0, 0.1) 0%, transparent 50%);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.hp-feature-card:hover .hp-feature-img-box::after {
    opacity: 1;
}

.hp-feature-img-box img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.4s ease;
    filter: grayscale(0.1);
}

.hp-feature-card:hover .hp-feature-img-box img {
    transform: scale(1.05);
    filter: grayscale(0);
}

.hp-feature-content-wrap {
    flex: 0 0 60%;
    max-width: 60%;
    display: flex;
    align-items: center;
    padding: 4rem;
}

.hp-feature-content h3 {
    font-size: 1.35rem;
    font-weight: 600;
    margin-bottom: 1rem;
    line-height: 1.3;
    color: var(--texto-escuro);
}

.hp-feature-content p {
    font-size: 1rem;
    color: var(--texto-escuro-sec);
    line-height: 1.7;
    margin: 0;
}

.hp-metrics {
    background: var(--fundo-escuro);
    color: var(--texto-claro);
    padding: 4rem 2rem;
    position: relative;
    overflow: hidden;
}

.hp-metrics-container {
    max-width: 1000px;
    margin: 0 auto;
    text-align: center;
}

.hp-metrics-track {
    display: flex;
    justify-content: center;
    gap: 2.5rem;
    flex-wrap: wrap;
    margin-bottom: 0;
}

.metric-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.4rem;
}

.metric-value {
    display: inline-flex;
    align-items: baseline;
    line-height: 1;
}

.metric-number {
    font-size: clamp(2rem, 3.5vw, 2.8rem);
    font-weight: 800;
    color: var(--texto-claro);
}

.metric-prefix,
.metric-suffix {
    font-size: clamp(1.2rem, 2vw, 1.6rem);
    font-weight: 700;
    color: var(--marca);
    margin-left: 0.15rem;
}

.metric-prefix {
    margin-left: 0;
    margin-right: 0.15rem;
}

.metric-label {
    font-size: 0.8rem;
    color: var(--texto-claro-sec);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.hp-metrics-divider {
    width: 100%;
    height: 4px;
    background: var(--marca);
    border-radius: 2px;
    margin: 2.5rem 0;
}

.hp-references-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
    text-align: left;
}

.reference-card {
    background: var(--fundo-escuro-sec);
    border: 1px solid var(--borda-sutil-escuro);
    border-radius: var(--raio-grande);
    padding: 1.25rem;
    transition: transform 0.3s ease,
                border-color 0.3s ease;
}

.reference-card:hover {
    transform: translateY(-4px);
    border-color: var(--marca);
}

.reference-card img {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    object-fit: cover;
    margin-bottom: 0.8rem;
    border: 2px solid var(--marca);
}

.reference-card blockquote {
    font-size: 0.88rem;
    line-height: 1.5;
    color: var(--texto-claro-sec);
    margin-bottom: 0.8rem;
    font-style: italic;
}

.ref-author {
    display: flex;
    flex-direction: column;
    gap: 0.15rem;
}

.ref-author strong {
    color: var(--texto-claro);
    font-size: 0.85rem;
}

.ref-author span {
    color: var(--marca);
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.hp-planning {
    background: var(--fundo-claro-sec);
    color: var(--texto-escuro);
    padding: 4rem 8%;
    border-top: 1px solid var(--borda-sutil-claro);
    position: relative;
}

.hp-planning-header {
    text-align: center;
    max-width: 700px;
    margin: 0 auto 4rem;
}

.hp-planning-header h2 {
    font-size: clamp(1.8rem, 4vw, 2.5rem);
    font-weight: 600;
    margin-bottom: 1rem;
    line-height: 1.2;
    background: linear-gradient(135deg, var(--texto-escuro) 0%, var(--marca) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hp-planning-header p {
    font-size: 1.1rem;
    color: var(--texto-escuro-sec);
    line-height: 1.7;
}

.hp-planning-steps {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 1.5rem;
    max-width: 1400px;
    margin: 0 auto;
    position: relative;
}

.hp-planning-step {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 1.5rem 1rem;
    transition: transform 0.3s ease;
}

.hp-planning-step:hover {
    transform: translateY(-6px);
}

.step-number {
    width: 3rem;
    height: 3rem;
    border-radius: 50%;
    background: var(--marca);
    color: var(--texto-claro);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1.1rem;
    margin-bottom: 1rem;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    transition: transform 0.3s ease,
                box-shadow 0.3s ease;
    position: relative;
    overflow: hidden;
}

.step-number::after {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: inherit;
    background: conic-gradient(from 0deg, var(--marca-hover), var(--marca), var(--marca-hover));
    opacity: 0;
    transition: opacity 0.3s ease;
    animation: hp-rotate 3s linear infinite;
}

@keyframes hp-rotate {
    100% {
        transform: rotate(360deg);
    }
}

.hp-planning-step:hover .step-number {
    transform: scale(1.1);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.5);
}

.hp-planning-step:hover .step-number::after {
    opacity: 0.3;
}

.step-icon {
    width: 2.5rem;
    height: 2.5rem;
    margin-bottom: 0.75rem;
    color: var(--marca);
    font-size: 1.2rem;
    transition: transform 0.3s ease;
}

.hp-planning-step:hover .step-icon {
    transform: scale(1.15) rotate(5deg);
}

.step-title {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 0.25rem;
    line-height: 1.3;
    color: var(--texto-escuro);
}

.step-desc {
    font-size: 0.85rem;
    color: var(--texto-escuro-sec);
    line-height: 1.5;
}

.hp-slide--light {
    color: var(--texto-escuro);
}

.hp-slide--light .hp-title {
    color: #000000;
    -webkit-text-fill-color: #000000;
    background: none;
    text-shadow: none;
}

.hp-slide--light .hp-subtitle {
    color: var(--texto-escuro-sec);
}

.hp-slide--light .hp-subtitle::after {
    background: #000000;
}

.hp-slide--light .hp-btn {
    background: #000000;
    color: var(--texto-claro);
    border-color: #000000;
}

.hp-slide--light .hp-btn:hover {
    color: #000000;
    border-color: var(--marca);
    background: var(--texto-claro);
}

.hp-slide--light .hp-navigation-btn {
    background: rgba(0, 0, 0, 0.05);
    border-color: rgba(0, 0, 0, 0.2);
    color: #000000;
}

.hp-slide--light .hp-navigation-btn:hover {
    background: #000000;
    color: var(--texto-claro);
    border-color: #000000;
}

.hp-slide--light .hp-progress-track {
    background: rgba(0, 0, 0, 0.1);
}

.hp-slide--light .hp-progress-fill {
    background: #000000;
}

.hp-slide--light .hp-progress-track::before {
    background: linear-gradient(90deg, transparent, #000000, transparent);
}

@media (max-width: 1024px) {
    .hp-slide-layout {
        grid-template-columns: 1fr;
        justify-items: center;
        text-align: center;
        gap: 3rem;
        padding-top: 4rem;
    }

    .hp-img-wrap {
        max-width: 90vw;
        aspect-ratio: 16 / 9;
    }

    .hp-text-block {
        align-items: center;
        transition-delay: 0.6s;
    }

    .hp-subtitle {
        max-width: 100%;
    }

    .hp-feature-card {
        flex-direction: column;
        text-align: center;
    }

    .hp-feature-img-wrap,
    .hp-feature-content-wrap {
        flex: 0 0 100%;
        max-width: 100%;
    }

    .hp-feature-img-wrap {
        height: 250px;
    }

    .hp-feature-img-box {
        border-radius: 1rem 1rem 0 0;
    }

    .hp-feature-content-wrap {
        padding: 3rem 1.5rem;
    }

    .hp-controls {
        bottom: 1.5rem;
        gap: 0.75rem;
    }

    .hp-metrics-track {
        gap: 2rem;
    }

    .hp-references-grid {
        grid-template-columns: 1fr;
    }

    .hp-planning-steps {
        grid-template-columns: 1fr;
        gap: 3rem;
    }

    .hp-planning-step {
        flex-direction: row;
        text-align: left;
        align-items: flex-start;
        padding: 1.5rem;
        background: var(--fundo-claro);
        border-radius: 0.5rem;
        border: 1px solid var(--borda-sutil-claro);
    }

    .step-number {
        margin-bottom: 0;
        margin-right: 1rem;
        flex-shrink: 0;
    }
}

@media (max-width: 640px) {
    .hp-title {
        font-size: clamp(1.6rem, 6vw, 2.4rem);
    }

    .hp-subtitle {
        font-size: 0.95rem;
    }

    .hp-btn {
        width: 100%;
        max-width: 280px;
        justify-content: center;
    }

    .hp-img-wrap {
        aspect-ratio: 4 / 3;
        max-width: 95vw;
    }

    .hp-features,
    .hp-planning,
    .hp-metrics {
        padding: 3rem 1.5rem;
    }

    .hp-navigation-btn {
        width: 38px;
        height: 38px;
        font-size: 1rem;
    }

    .hp-planning-step {
        flex-direction: column;
        text-align: center;
        align-items: center;
    }

    .step-number {
        margin-right: 0;
        margin-bottom: 1rem;
    }
}

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        transition: none !important;
        animation: none !important;
        transform: none !important;
    }

    .hp-carousel::before,
    .hp-progress-track::before,
    .step-number::after {
        display: none;
    }
}