/* =========================================================
   Hero — SaaS split (Course Sales)
   Promessa específica + preview de aula
   ========================================================= */

.hero-section.hero-split {
    position: relative;
    min-height: auto;
    display: flex;
    align-items: center;
    padding: clamp(6.5rem, 11vw, 8rem) 0 clamp(3.5rem, 7vw, 5rem);
    z-index: 100;
    width: 100%;
    overflow: hidden;
}

.hero-split .hero-content {
    display: grid;
    grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
    grid-template-areas:
        "left right"
        "urgency urgency";
    align-items: center;
    column-gap: clamp(2rem, 4vw, 3.5rem);
    row-gap: clamp(1.35rem, 2.5vw, 1.85rem);
    width: 100%;
}

.hero-split .hero-left {
    grid-area: left;
    flex: none;
    max-width: none;
    min-width: 0;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: flex-start;
    gap: 1.15rem;
}

.hero-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 0.55rem;
    padding: 0.4rem 0.95rem 0.4rem 0.65rem;
    border-radius: 999px;
    border: 1px solid rgba(168, 85, 247, 0.35);
    background: rgba(94, 23, 235, 0.14);
    color: #c4b5fd;
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-decoration: none;
}

.hero-eyebrow:hover {
    color: #fff;
    border-color: rgba(196, 181, 253, 0.55);
}

.hero-ms-mark {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
}

.hero-ms-mark img {
    width: 0.95rem;
    height: 0.95rem;
    flex: none;
    display: block;
}

.hero-ms-name {
    color: rgba(255, 255, 255, 0.88);
    font-weight: 650;
    letter-spacing: 0.01em;
}

.hero-eyebrow-sep {
    width: 1px;
    height: 0.9rem;
    background: rgba(196, 181, 253, 0.35);
    flex: none;
}

.hero-split .hero-title-header {
    margin: 0;
    max-width: 24ch;
    font-size: clamp(1.85rem, 4vw, 3.05rem);
    font-weight: 800;
    letter-spacing: -0.04em;
    line-height: 1.12;
    color: #fff;
    text-align: left;
    text-wrap: pretty;
}

.hero-split .hero-title-skills {
    white-space: nowrap;
}

.hero-split .hero-mark {
    display: inline;
    color: #fff;
    font-weight: 800;
    background-image: linear-gradient(currentColor, currentColor);
    background-position: 0 100%;
    background-repeat: no-repeat;
    background-size: 100% 2px;
    padding-bottom: 0.06em;
}

.hero-split .hero-mark--master {
    color: #fb923c;
}

.hero-split .hero-mark--collab {
    color: #4ade80;
}

.hero-split .hero-mark--secure {
    color: #60a5fa;
}

.hero-split .hero-mark--auto {
    color: #facc15;
}

.hero-split .hero-m365 {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    white-space: nowrap;
    color: #fff;
    vertical-align: -0.08em;
}

.hero-split .hero-m365 img {
    width: 0.78em;
    height: 0.78em;
    flex: none;
    translate: 0 0.04em;
}

/* Estilo Framer Gradient Headlines — gradiente em movimento, sem glow */
.hero-split .hero-title-header .hl {
    display: inline;
    color: #c084fc;
    background-image: linear-gradient(
        90deg,
        #8b5cf6 0%,
        #a855f7 25%,
        #e879f9 50%,
        #a855f7 75%,
        #8b5cf6 100%
    );
    background-size: 200% 100%;
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    box-decoration-break: clone;
    -webkit-box-decoration-break: clone;
    filter: none;
    animation: hero-hl-flow 4.5s ease-in-out infinite;
}

@keyframes hero-hl-flow {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

@media (prefers-reduced-motion: reduce) {
    .hero-split .hero-title-header .hl {
        animation: none;
        background-size: 100% 100%;
        background-image: linear-gradient(90deg, #8b5cf6 0%, #a855f7 45%, #e879f9 100%);
    }
}

.hero-split .separator {
    display: none;
}

.hero-split .subtitle-header {
    margin: 0;
    padding: 0;
    max-width: 34rem;
    font-size: 1.08rem;
    font-weight: 400;
    line-height: 1.65;
    color: rgba(255, 255, 255, 0.62);
    text-align: left;
    opacity: 1;
    text-wrap: pretty;
}

.hero-cta-row {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-top: 0.35rem;
}

.hero-split .hero-cta {
    display: inline-flex;
    align-items: center;
    gap: 0.55rem;
    min-height: 3.1rem;
    padding: 0.85rem 1.35rem;
    border-radius: 14px;
    background: linear-gradient(135deg, #5e17eb, #7c3aed);
    color: #fff;
    font-size: 1rem;
    font-weight: 750;
    text-decoration: none;
    box-shadow: 0 14px 32px -12px rgba(94, 23, 235, 0.7);
    transition: transform 0.15s ease, filter 0.15s ease;
    overflow: visible;
}

.hero-split .hero-cta:hover {
    transform: translateY(-1px);
    filter: brightness(1.06);
    color: #fff;
    text-decoration: none;
    box-shadow: 0 14px 32px -12px rgba(94, 23, 235, 0.7);
}

.hero-split .hero-cta svg {
    width: 1.1rem;
    height: 1.1rem;
}

/*
 * CTA 3D flame — Icons8 3D Fluency Fire Element (render volumétrico)
 * Estado normal: loop contínuo moderado
 * Hover: cresce, núcleo mais brilhante, glow laranja
 * Sem foguete. Respeita prefers-reduced-motion.
 */
.hero-cta--flame .cta-flame {
    --cta-flame-size: 1.7rem;
    position: relative;
    display: inline-grid;
    place-items: center;
    width: var(--cta-flame-size);
    height: var(--cta-flame-size);
    flex: none;
    overflow: visible;
    pointer-events: none;
}

.hero-cta--flame .cta-flame__glow {
    position: absolute;
    inset: -35%;
    border-radius: 50%;
    background: radial-gradient(
        circle,
        rgba(255, 210, 120, 0.55) 0%,
        rgba(249, 115, 22, 0.28) 42%,
        rgba(234, 88, 12, 0) 72%
    );
    opacity: 0.55;
    transform: scale(0.92);
    filter: blur(2px);
    animation: cta-flame-glow-idle 1.35s ease-in-out infinite alternate;
    z-index: 0;
}

.hero-cta--flame .cta-flame__img {
    position: relative;
    z-index: 1;
    width: var(--cta-flame-size);
    height: var(--cta-flame-size);
    object-fit: contain;
    display: block;
    transform-origin: 50% 88%;
    filter:
        drop-shadow(0 0 4px rgba(251, 146, 60, 0.45))
        brightness(1)
        saturate(1.05);
    animation: cta-flame-idle 1.15s ease-in-out infinite alternate;
    user-select: none;
    -webkit-user-drag: none;
}

.hero-cta--flame.is-flaming .cta-flame__img,
.hero-cta--flame:hover .cta-flame__img,
.hero-cta--flame:focus-visible .cta-flame__img {
    animation: cta-flame-hot 0.72s ease-in-out infinite alternate;
    filter:
        drop-shadow(0 0 8px rgba(251, 146, 60, 0.85))
        drop-shadow(0 0 14px rgba(249, 115, 22, 0.45))
        brightness(1.14)
        saturate(1.22);
}

.hero-cta--flame.is-flaming .cta-flame__glow,
.hero-cta--flame:hover .cta-flame__glow,
.hero-cta--flame:focus-visible .cta-flame__glow {
    opacity: 1;
    transform: scale(1.18);
    animation: cta-flame-glow-hot 0.7s ease-in-out infinite alternate;
}

@keyframes cta-flame-idle {
    from {
        transform: translate3d(0, 0.4px, 0) rotate(-2.2deg) scale(0.96, 0.94);
    }
    to {
        transform: translate3d(0, -0.6px, 0) rotate(2.4deg) scale(1.04, 1.07);
    }
}

@keyframes cta-flame-hot {
    from {
        transform: translate3d(0, 0.2px, 0) rotate(-3deg) scale(1.08, 1.05);
    }
    to {
        transform: translate3d(0, -1.2px, 0) rotate(3.4deg) scale(1.2, 1.26);
    }
}

@keyframes cta-flame-glow-idle {
    from { opacity: 0.4; transform: scale(0.88); }
    to   { opacity: 0.7; transform: scale(1.02); }
}

@keyframes cta-flame-glow-hot {
    from { opacity: 0.75; transform: scale(1.05); }
    to   { opacity: 1; transform: scale(1.28); }
}

@media (prefers-reduced-motion: reduce) {
    .hero-cta--flame .cta-flame__img,
    .hero-cta--flame .cta-flame__glow,
    .hero-cta--flame.is-flaming .cta-flame__img,
    .hero-cta--flame:hover .cta-flame__img,
    .hero-cta--flame:focus-visible .cta-flame__img,
    .hero-cta--flame.is-flaming .cta-flame__glow,
    .hero-cta--flame:hover .cta-flame__glow,
    .hero-cta--flame:focus-visible .cta-flame__glow {
        animation: none;
    }

    .hero-cta--flame .cta-flame__img {
        transform: none;
        filter: drop-shadow(0 0 4px rgba(251, 146, 60, 0.4));
    }

    .hero-cta--flame.is-flaming .cta-flame__img,
    .hero-cta--flame:hover .cta-flame__img,
    .hero-cta--flame:focus-visible .cta-flame__img {
        transform: scale(1.12);
        filter:
            drop-shadow(0 0 8px rgba(251, 146, 60, 0.75))
            brightness(1.1)
            saturate(1.15);
    }

    .hero-cta--flame .cta-flame__glow {
        opacity: 0.45;
        transform: scale(0.95);
    }

    .hero-cta--flame.is-flaming .cta-flame__glow,
    .hero-cta--flame:hover .cta-flame__glow,
    .hero-cta--flame:focus-visible .cta-flame__glow {
        opacity: 0.85;
        transform: scale(1.12);
    }
}

.hero-cta-ghost {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    min-height: 3.1rem;
    padding: 0.85rem 1.2rem;
    border-radius: 14px;
    border: 1px solid rgba(255, 255, 255, 0.16);
    background: rgba(255, 255, 255, 0.04);
    color: rgba(255, 255, 255, 0.9);
    font-size: 0.98rem;
    font-weight: 650;
    cursor: pointer;
    transition: background 0.15s ease, border-color 0.15s ease;
}

.hero-cta-ghost:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(196, 181, 253, 0.4);
    color: #fff;
}

.hero-cta-ghost svg {
    width: 1.05rem;
    height: 1.05rem;
}

.hero-proof {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin: 0.15rem 0 0;
}

.hero-proof-avatars {
    display: flex;
    flex: none;
    align-items: center;
}

.hero-proof-av {
    display: block;
    width: 2rem;
    height: 2rem;
    margin-left: -0.55rem;
    border-radius: 999px;
    border: 2px solid #0b0b12;
    object-fit: cover;
    background: #1f1f2a;
}

.hero-proof-av:first-child {
    margin-left: 0;
}

.hero-proof-copy {
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 0.12rem;
}

.hero-proof-copy > p {
    margin: 0;
    font-size: 0.9rem;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.88);
    text-wrap: pretty;
}

.hero-proof-sub {
    font-size: 0.78rem !important;
    font-weight: 500 !important;
    color: rgba(255, 255, 255, 0.48) !important;
}

.hero-split .countdown-container,
.hero-split .hero-urgency {
    margin-top: 0;
    width: 100%;
}

.hero-split .countdown-timer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 0.85rem 1.5rem;
    width: 100%;
    padding: 1.15rem 0 0;
    margin: 0;
    border: 0;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 0;
    background: transparent;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    box-shadow: none;
}

.hero-split .countdown-timer:hover {
    transform: none;
    box-shadow: none;
}

.hero-split .countdown-copy {
    display: flex;
    flex-direction: column;
    gap: 0.1rem;
    min-width: 0;
}

.hero-split .countdown-text {
    font-size: 1.08rem;
    font-weight: 700;
    letter-spacing: -0.015em;
    text-transform: none;
    color: #fff;
}

.hero-split .countdown-text-sub {
    font-size: 0.92rem;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.45);
}

.hero-split .countdown-time {
    display: inline-flex;
    align-items: baseline;
    gap: 0.45rem;
    font-variant-numeric: tabular-nums;
}

.hero-split .countdown-unit {
    display: inline-flex;
    align-items: baseline;
    gap: 0.15rem;
}

.hero-split .countdown-number {
    font-size: clamp(1.7rem, 3vw, 2.25rem);
    font-weight: 800;
    letter-spacing: -0.035em;
    color: #fff;
    min-width: 1.7ch;
    line-height: 1;
}

.hero-split .countdown-label {
    font-size: 0.82rem;
    font-weight: 600;
    text-transform: lowercase;
    color: rgba(255, 255, 255, 0.4);
}

.hero-split .countdown-separator {
    font-size: 1.35rem;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.22);
    margin: 0 0.12rem;
}

/* Preview media — topo alinhado ao texto; countdown fecha a faixa embaixo */
.hero-split .hero-right {
    grid-area: right;
    flex: none;
    max-width: none;
    margin-top: 0;
    width: 100%;
}

.hero-split .hero-video-container {
    position: relative;
    width: 100%;
    height: auto;
    border-radius: 20px;
    overflow: hidden;
    background: #000;
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 28px 60px -28px rgba(0, 0, 0, 0.75);
}

.yt-unmute-btn {
    position: absolute;
    left: 0.85rem;
    bottom: 0.85rem;
    z-index: 3;
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    min-height: 2.35rem;
    padding: 0.45rem 0.85rem;
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 999px;
    background: rgba(8, 8, 12, 0.78);
    color: #fff;
    font-size: 0.82rem;
    font-weight: 700;
    cursor: pointer;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

.yt-unmute-btn:hover {
    background: rgba(20, 20, 28, 0.9);
    border-color: rgba(255, 255, 255, 0.28);
}

.yt-unmute-btn svg {
    width: 1rem;
    height: 1rem;
}

.yt-unmute-btn.is-on {
    color: #6ee7b7;
    border-color: rgba(110, 231, 183, 0.35);
}

.hero-split .hero-video-frame {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 9;
}

.hero-split .hero-video-frame iframe {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    border: 0;
    display: block;
}

.hero-split .hero-urgency {
    grid-area: urgency;
    width: 100%;
    max-width: none;
    margin: 0;
}

.hero-split .hero-video-container:hover {
    transform: none;
    box-shadow: 0 28px 60px -28px rgba(0, 0, 0, 0.75);
}

.hero-split .hero-video-overlay,
.hero-split #thumb-header.hero-video-overlay {
    position: absolute;
    inset: 0;
    display: block;
    background-color: #0b0b12 !important;
    background-image: url("../assets/img/thumb-header.jpg") !important;
    background-position: center !important;
    background-size: cover !important;
    background-repeat: no-repeat !important;
    transition: none;
}

.hero-split .hero-video-overlay::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(0, 0, 0, 0.15) 0%, rgba(0, 0, 0, 0.45) 100%);
}

.hero-split .hero-play-button {
    position: absolute;
    top: 50%;
    left: 50%;
    z-index: 2;
    width: 68px;
    height: 68px;
    margin: 0;
    transform: translate(-50%, -50%);
    display: grid;
    place-items: center;
    border-radius: 50%;
    border: 0;
    background: #5e17eb;
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
    box-shadow: 0 14px 32px rgba(94, 23, 235, 0.5);
    overflow: visible;
}

.hero-split .hero-play-button::before {
    display: none !important;
}

.hero-split .hero-video-container:hover .hero-play-button {
    transform: translate(-50%, -50%) scale(1.06);
    background: #5e17eb;
    border: 0;
    box-shadow: 0 16px 36px rgba(94, 23, 235, 0.55);
}

.hero-split .hero-play-icon,
.hero-split .hero-play-button svg {
    width: 1.35rem;
    height: 1.35rem;
    margin-left: 2px;
    color: #fff;
    font-size: inherit;
}

.hero-preview-meta {
    position: absolute;
    left: 1rem;
    bottom: 1rem;
    z-index: 2;
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    padding: 0.45rem 0.75rem;
    border-radius: 999px;
    background: rgba(10, 10, 15, 0.82);
    border: 1px solid rgba(255, 255, 255, 0.12);
    color: rgba(255, 255, 255, 0.88);
    font-size: 0.82rem;
    font-weight: 650;
}

.hero-preview-meta svg {
    width: 0.95rem;
    height: 0.95rem;
    color: #c4b5fd;
}

@media (max-width: 992px) {
    .hero-split .hero-content {
        grid-template-columns: 1fr;
        grid-template-areas:
            "right"
            "left"
            "urgency";
        align-items: stretch;
    }

    .hero-split .hero-right {
        order: initial;
    }

    .hero-split .hero-video-container {
        height: auto;
        min-height: 0;
        max-width: 640px;
        margin: 0 auto;
    }

    .hero-split .hero-title-header {
        max-width: none;
        font-size: clamp(1.7rem, 6.5vw, 2.35rem);
        line-height: 1.16;
    }
}

@media (max-width: 560px) {
    .hero-cta-row {
        width: 100%;
        flex-direction: column;
    }

    .hero-split .hero-cta,
    .hero-cta-ghost {
        width: 100%;
        justify-content: center;
    }

    .hero-split .countdown-timer {
        width: 100%;
        flex-direction: column;
        align-items: flex-start;
        gap: 0.65rem;
    }

    .hero-split .countdown-number {
        font-size: 1.75rem;
    }
}
