/* =========================
   HERO BASE
========================= */

/* Container */
.hero-container {
    width: 100%;
    padding: 0;
    position: relative;
}

.hero-frame {
    position: relative;
    width: 100%;
    aspect-ratio: 16/10;
    border-radius: 20px;
    overflow: hidden;
    position: relative;
    z-index: 1;
}

    .hero-frame img#hero-image {
        position: absolute;
        width: 100%;
        height: 100%;
        object-fit: cover;
    }

.hero-section {
    min-height: 90vh;
    display: flex;
    align-items: center;
    background: radial-gradient( circle at top left, #111827, #020617 60% );
    color: #e5e7eb;
    overflow: hidden;
    position: relative;
}

    /* leve textura tecnológica */
    .hero-section::before {
        content: "";
        position: absolute;
        inset: 0;
        background-image: linear-gradient( rgba(255,255,255,0.03) 1px, transparent 1px ), linear-gradient( 90deg, rgba(255,255,255,0.03) 1px, transparent 1px );
        background-size: 40px 40px;
        pointer-events: none;
    }


.hero-title {
    font-size: clamp(2.4rem, 5vw, 3.6rem);
    font-weight: 600;
    line-height: 1.15;
    letter-spacing: -0.02em;
    color: #f9fafb;
    margin-bottom: 1.5rem;
}

.hero-highlight {
    display: inline-block;
    background: linear-gradient( 90deg, #38bdf8, #6366f1 );
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-subtitle {
    max-width: 720px;
    font-size: 1.05rem;
    line-height: 1.7;
    color: #9ca3af;
}


/* =========================
   HERO FRAME (imagem / mosaico)
========================= */


.hero-frame {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 10;
    border-radius: 20px;
    overflow: hidden;
    z-index: 1;
}

    .hero-frame img,
    .hero-frame img#hero-image {
        position: absolute;
        inset: 0;
        width: 100%;
        height: 100%;
        object-fit: cover;
    }

    /* quando o mosaico finaliza */
    .hero-frame.mosaic-done img {
        filter: blur(0) !important;
        transform: scale(1) !important;
        transition: filter 800ms ease, transform 800ms ease;
    }

/* =========================
   HERO CONTENT
========================= */

.hero-content {
    position: absolute;
    inset: 0;
    padding: 40px;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    z-index: 6;
}

    .hero-content * {
        word-break: keep-all;
        overflow-wrap: break-word;
    }

/* =========================
   HERO TITLE / SUBTITLE
========================= */

.hero-sub,
.hero-subtitle {
    color: #9ca3af;
    max-width: 720px;
    font-size: 1.05rem;
    line-height: 1.7;
}

/* underline animado */
.hero-title .underline {
    position: absolute;
    left: 0;
    bottom: -6px;
    height: 3px;
    width: 0;
    background: linear-gradient(90deg, #22d3ee, #a855f7);
    animation: heroUnderline 1s forwards;
}

@keyframes heroUnderline {
    to {
        width: 100%;
    }
}

/* =========================
   HERO GRID OVERLAY
========================= */

.hero-grid {
    position: absolute;
    inset: 0;
    background-image: linear-gradient(rgba(139,92,246,0.25) 1px, transparent 1px), linear-gradient(90deg, rgba(139,92,246,0.25) 1px, transparent 1px);
    background-size: 50px 50px;
    opacity: 0.08;
    pointer-events: none;
}

/* =========================
   HERO BLOBS
========================= */

.hero-blobs .blob {
    position: absolute;
    border-radius: 50%;
    filter: blur(120px);
    opacity: 0.6;
    animation: heroFloat 15s infinite ease-in-out;
}

@keyframes heroFloat {
    0%,100% {
        transform: translate(0) scale(1);
    }

    50% {
        transform: translate(40px, -40px) scale(1.2);
    }
}

/* =========================
   HERO BUTTON
========================= */

.hero-btn {
    margin-top: 25px;
    padding: 14px 32px;
    border-radius: 40px;
    background: linear-gradient(90deg, #7c3aed, #06b6d4);
    color: #ffffff;
    text-decoration: none;
    display: inline-block;
    transition: transform .3s ease;
}

    .hero-btn:hover {
        transform: scale(1.05);
    }

/* =========================
   SCROLL INDICATOR
========================= */

.hero-scroll {
    position: absolute;
    left: 50%;
    bottom: -40px;
    transform: translateX(-50%);
    text-align: center;
}

    .hero-scroll .mouse {
        width: 28px;
        height: 45px;
        border: 2px solid white;
        border-radius: 20px;
        display: flex;
        justify-content: center;
    }

    .hero-scroll .dot {
        width: 6px;
        height: 6px;
        background: linear-gradient(to bottom, cyan, purple);
        border-radius: 50%;
        animation: heroScroll 2s infinite;
    }

@keyframes heroScroll {
    0%,100% {
        transform: translateY(5px);
        opacity: 1;
    }

    50% {
        transform: translateY(25px);
        opacity: .3;
    }
}

/* =========================
   RESPONSIVO
========================= */

@media (max-width: 768px) {
    .hero-container {
        padding: 20px;
    }

    .hero-content {
        position: relative;
        padding: 25px 20px 40px;
        justify-content: flex-start;
    }

    .hero-title {
        font-size: 1.8rem;
        letter-spacing: -0.01em;
    }

    .hero-sub,
    .hero-subtitle {
        font-size: 0.95rem;
    }

    .hero-frame {
        aspect-ratio: auto;
        min-height: 90vh;
    }
}

.txn-hero-split {
    min-height: 100vh;
    display: flex;
    align-items: center;
    background: radial-gradient(circle at top left, #111827, #020617 65%);
    overflow: hidden;
}

.txn-hero-split-2 {
    display: flex;
    align-items: center;
    overflow: hidden;
}

.txn-hero-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    display: grid;
    grid-template-columns: 1.1fr 1fr;
    align-items: center;
    gap: 4rem;
}

/* TEXTO */
.txn-hero-content {
    animation: fadeLeft 1.2s ease forwards;
}

    .txn-hero-content h1 {
        font-size: clamp(2.3rem, 4.5vw, 3.4rem);
        font-weight: 600;
        line-height: 1.15;
        letter-spacing: -0.02em;
        color: #f9fafb;
        margin-bottom: 1.5rem;
    }

        .txn-hero-content h1 span {
            display: inline-block;
            background: linear-gradient(90deg, #38bdf8, #6366f1);
            -webkit-background-clip: text;
            -webkit-text-fill-color: transparent;
        }

    .txn-hero-content p {
        max-width: 520px;
        font-size: 1.05rem;
        line-height: 1.7;
        color: #9ca3af;
    }

/* IMAGEM */
.txn-hero-visual {
    position: relative;
    animation: fadeRight 1.4s ease forwards;
}

    .txn-hero-visual img {
        width: 100%;
        max-width: 520px;
        border-radius: 18px;
        position: relative;
        z-index: 2;
    }

/* RESPONSIVO */
@media (max-width: 992px) {
    .txn-hero-container {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .txn-hero-content p {
        margin: 0 auto;
    }

    .txn-hero-visual img {
        margin: 0 auto;
    }
}