.hero {
    padding: 3rem 0 5rem;
    background: linear-gradient(165deg, #faf9ff 0%, #f5f2ff 30%, #ffffff 100%);
    position: relative;
    overflow: hidden;
}

.hero__grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.hero__content {
    position: relative;
    z-index: 1;
}

.hero__chip {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-family: var(--font-heading);
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--primary);
    background: rgba(var(--primary-rgb), 0.06);
    padding: 0.45rem 1rem;
    border-radius: 50px;
    margin-bottom: 1.5rem;
}

.hero__chip-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--primary);
    animation: pulse-dot 2s infinite;
}

@keyframes pulse-dot {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.5; transform: scale(1.3); }
}

.hero__title {
    font-size: clamp(2.4rem, 6vw, 3.8rem);
    font-weight: 800;
    line-height: 1.1;
    color: var(--dark);
    margin-bottom: 1.25rem;
    letter-spacing: -0.03em;
}

.hero__title .hero__rotating-word {
    display: inline-grid;
    grid-template-columns: var(--rotating-width, max-content);
    vertical-align: baseline;
    color: var(--primary);
    position: relative;
    white-space: nowrap;
    transition: grid-template-columns .32s ease;
}

.hero__title .hero__rotating-word::after {
    content: '';
    position: absolute;
    bottom: 4px;
    left: 0;
    width: 100%;
    height: 8px;
    background: rgba(var(--primary-rgb), 0.12);
    border-radius: 4px;
    z-index: -1;
}

.hero__rotating-word [data-rotating-item] {
    grid-area: 1 / 1;
    visibility: hidden;
    opacity: 0;
    transition: opacity .28s ease;
}

.hero__rotating-word [data-rotating-item].is-active {
    visibility: visible;
    opacity: 1;
}

.hero__description {
    font-size: 1.1rem;
    color: var(--medium-gray);
    line-height: 1.8;
    margin-bottom: 2.5rem;
    max-width: 480px;
}

.hero__buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
}

/* ============ HERO VISUAL (apenas desktop) ============ */
.hero__visual {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    width: min(100%, 480px);
    height: 320px;
    justify-self: center;
}

.hero__visual-orb {
    width: 320px;
    height: 320px;
    border-radius: 50%;
    background: radial-gradient(circle at 40% 40%, rgba(var(--primary-rgb), 0.12) 0%, rgba(var(--primary-rgb), 0.03) 60%, transparent 70%);
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero__visual-orb::before {
    content: '';
    position: absolute;
    inset: 30px;
    border-radius: 50%;
    border: 2px dashed rgba(var(--primary-rgb), 0.2);
    animation: spin-slow 25s linear infinite;
}

.hero__visual-orb::after {
    content: '';
    position: absolute;
    inset: 80px;
    border-radius: 50%;
    background: rgba(var(--primary-rgb), 0.06);
}

.hero__visual-icon-img {
    width: 250px;
    height: 250px;
    object-fit: contain;
    position: relative;
    z-index: 1;
    opacity: 0.8;
}

@keyframes spin-slow {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.hero__floating-card {
    position: absolute;
    overflow: hidden;
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    padding: 0.65rem 0.9rem;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-md);
    font-family: var(--font-heading);
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--dark);
    display: flex;
    align-items: center;
    gap: 0.4rem;
    animation: float 5s ease-in-out infinite;
    white-space: nowrap;
}

.hero__floating-card i {
    color: var(--primary);
    font-size: 0.9rem;
}

.hero__floating-card > * {
    position: relative;
    z-index: 1;
}

.hero__floating-card::after {
    content: '';
    position: absolute;
    z-index: 0;
    top: -40%;
    bottom: -40%;
    left: -55%;
    width: 48%;
    pointer-events: none;
    opacity: 0;
    background: linear-gradient(105deg, transparent 0%, rgba(255,255,255,.06) 24%, rgba(255,255,255,.72) 50%, rgba(255,255,255,.12) 76%, transparent 100%);
    transform: translateX(0) skewX(-18deg);
    animation: hero-card-glint 9s ease-in-out infinite;
}

.hero__floating-card--1::after { animation-delay: 0s; }
.hero__floating-card--2::after { animation-delay: 2.1s; }
.hero__floating-card--3::after { animation-delay: 4.2s; }
.hero__floating-card--4::after { animation-delay: 6.3s; }

@keyframes hero-card-glint {
    0%, 5%, 100% { opacity: 0; transform: translateX(0) skewX(-18deg); }
    8% { opacity: .85; }
    18% { opacity: 0; transform: translateX(330%) skewX(-18deg); }
}

.hero__floating-card--1 { top: 22%; right: 0; animation-delay: 0s; }
.hero__floating-card--2 { top: 42%; right: 0; animation-delay: 1.2s; }
.hero__floating-card--3 { bottom: 42%; left: 0; animation-delay: 2.4s; }
.hero__floating-card--4 { bottom: 22%; left: 0; animation-delay: 3.6s; }

@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

/* ============ HERO DAS PÁGINAS INTERNAS ============ */
.hero-page {
    padding: 2.5rem 0 3.5rem;
    background: linear-gradient(165deg, #faf9ff 0%, #f5f2ff 30%, #ffffff 100%);
    position: relative;
    overflow: hidden;
}

.hero-page__title {
    font-size: clamp(2rem, 4vw, 2.8rem);
    margin-bottom: 0.75rem;
}

.hero-page__description {
    color: var(--medium-gray);
    font-size: 1.1rem;
    max-width: 600px;
}

/* ============ RESPONSIVO ============ */

/* Tablet e mobile: visual escondido, conteúdo numa coluna */
@media (max-width: 991px) {
    .hero__grid {
        grid-template-columns: 1fr;
        gap: 2.5rem;
        text-align: center;
    }

    .hero__description {
        margin: 0 auto 2rem;
    }

    .hero__buttons {
        justify-content: center;
    }

    .hero__visual {
        display: none;
    }
}

@media (max-width: 768px) {
    .hero {
        padding: 2rem 0 3rem;
    }

    .hero__chip {
        font-size: 0.7rem;
        letter-spacing: 1.5px;
    }

    .hero__title {
        font-size: clamp(2rem, 8vw, 2.8rem);
        line-height: 1.15;
    }

    .hero__description {
        font-size: 1rem;
        line-height: 1.7;
    }

    .hero__buttons .btn {
        width: 100%;
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .hero {
        padding: 1.5rem 0 2.5rem;
    }

    .hero__chip {
        font-size: 0.65rem;
        padding: 0.35rem 0.8rem;
    }

    .hero__title {
        font-size: 1.8rem;
        letter-spacing: -0.02em;
    }

    .hero__description {
        font-size: 0.92rem;
    }
}

@media (prefers-reduced-motion: reduce) {
    .hero__visual-orb::before,
    .hero__floating-card,
    .hero__floating-card::after,
    .hero__chip-dot {
        animation: none !important;
    }

    .hero__title .hero__rotating-word {
        transition: none;
    }
}