/* ================================================================
   VELO.LAW® — Visual Effects
   Editar aqui para ajustar: linhas animadas, grain e bottom fade
   ================================================================ */

/* ── Grain Texture ─────────────────────────────────────────────── */
/* Muda opacity para ajustar intensidade da textura */
html::before {
    content: "";
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: radial-gradient(at 20% 80%, #000 1px, transparent 0px);
    background-size: 3px 3px;
    pointer-events: none;
    user-select: none;
    z-index: 9998;
    opacity: 0.03; /* ← ajustar intensidade aqui */
}

/* ── Animated Moving Lines ─────────────────────────────────────── */
.animation-container {
    pointer-events: none;
    width: 100vw;
    height: 100vh;
    position: fixed;
    background-color: transparent;
    overflow: hidden;
    top: 0;
    left: 0;
    z-index: 9999;
}

.moving-line {
    position: absolute;
    width: 1.5px;
    height: 100%;
    top: 0;
    left: 50%;
    /* ← linha estática: quase invisível no light mode */
    background: rgba(0, 0, 0, 0.04);
    overflow: hidden;
}

.moving-line::after {
    content: "";
    display: block;
    position: absolute;
    height: 15vh;
    width: 100%;
    top: -50%;
    left: 0;
    /* ← glow na cor primária Velo.Law */
    background: linear-gradient(to bottom, transparent, rgba(14, 250, 113, 0.6));
    animation: rainDrop 5s 0s infinite;
    animation-fill-mode: forwards;
    animation-timing-function: cubic-bezier(0.4, 0.26, 0, 0.97);
}

.moving-line:nth-child(1) { margin-left: -30%; }
.moving-line:nth-child(1)::after { animation-delay: 2s; }

.moving-line:nth-child(2) { margin-left: -10%; }
.moving-line:nth-child(2)::after { animation-delay: 2.5s; }

.moving-line:nth-child(3) { margin-left: 10%; }
.moving-line:nth-child(3)::after { animation-delay: 3s; }

.moving-line:nth-child(4) { margin-left: 30%; }
.moving-line:nth-child(4)::after { animation-delay: 3.5s; }

@keyframes rainDrop {
    0%   { top: -50%; }
    100% { top: 110%; }
}

/* ── Canvas cursor trail ─────────────────────────────────────── */
#velo-trail {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 9996;
}

/* ── Banner Headline (AIGOCY style) ──────────────────────────── */
.velo-banner-headline {
    text-align: center;
    padding: 72px 20px 32px;
    position: relative;
    z-index: 10;
}

.velo-banner-sub {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: .12em;
    text-transform: uppercase;
    color: var(--color-heading-1, #0B0B0B);
    border: 1px solid rgba(0, 0, 0, .1);
    border-radius: 100px;
    padding: 6px 18px 6px 12px;
    margin-bottom: 28px;
    opacity: 0;
    animation: veloEnterUp 0.7s 0.1s ease forwards;
}

.velo-sub-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--color-primary, #0efa71);
    display: inline-block;
    flex-shrink: 0;
    box-shadow: 0 0 6px rgba(14, 250, 113, 0.6);
}

.velo-banner-h1 {
    font-family: 'Space Grotesk', sans-serif;
    font-size: clamp(36px, 5.5vw, 72px);
    font-weight: 700;
    line-height: 1.08;
    letter-spacing: -0.03em;
    color: var(--color-heading-1, #0B0B0B);
    margin: 0 auto 28px;
    max-width: 820px;
    transform-origin: top center;
    opacity: 0;
    transform: rotateX(45deg) translateY(30px);
    animation: veloEnterRotateX 0.9s 0.28s ease forwards;
}

.velo-banner-h1 em {
    font-style: normal;
    color: var(--color-primary, #0efa71);
}

.velo-banner-desc {
    font-size: 17px;
    line-height: 1.65;
    max-width: 540px;
    margin: 0 auto 36px;
    opacity: 0;
    animation: veloEnterUp 0.7s 0.5s ease forwards;
    color: var(--color-body, #444);
}

.velo-banner-ctas {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    flex-wrap: wrap;
    opacity: 0;
    animation: veloEnterUp 0.7s 0.68s ease forwards;
}

/* Entry keyframes */
@keyframes veloEnterUp {
    from { opacity: 0; transform: translateY(24px); }
    to   { opacity: 1; transform: translateY(0); }
}
@keyframes veloEnterRotateX {
    from { opacity: 0; transform: rotateX(45deg) translateY(30px); }
    to   { opacity: 1; transform: rotateX(0deg) translateY(0); }
}

/* Scroll for more indicator */
.velo-scroll-more {
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    font-size: 10px;
    letter-spacing: .1em;
    text-transform: uppercase;
    opacity: 0.35;
    text-decoration: none;
    color: inherit;
    margin-top: 20px;
    transition: opacity .2s;
}
.velo-scroll-more:hover { opacity: 0.65; color: inherit; }
.velo-scroll-more svg { animation: veloScrollBounce 2s ease-in-out infinite; }
@keyframes veloScrollBounce {
    0%, 100% { transform: translateY(0); }
    50%       { transform: translateY(5px); }
}

/* Decorative split visual (old h1 layout) */
.banner-split-visual {
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: relative;
    z-index: 5;
}

/* ── Mouse hover glow em cards ───────────────────────────────── */
.velo-hover-card {
    position: relative;
    overflow: hidden;
}
.velo-hover-dot {
    position: absolute;
    width: 100px;
    height: 100px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(14, 250, 113, 0.18) 0%, transparent 70%);
    transform: translate(-50%, -50%);
    pointer-events: none;
    opacity: 0;
    transition: opacity .15s;
    z-index: 5;
    mix-blend-mode: multiply;
}

/* ── Mobile ajustes ──────────────────────────────────────────── */
@media (max-width: 767.98px) {
    .velo-banner-headline { padding: 52px 16px 24px; }
    .velo-banner-ctas { flex-direction: column; align-items: stretch; }
    .velo-banner-ctas .wpr-btn { width: 100%; justify-content: center; text-align: center; }
    .velo-scroll-more { display: none; }
    #velo-trail { display: none; } /* desativa trail em touch */
}

/* ── Bottom Fade Overlay ──────────────────────────────────────── */
/* LIGHT MODE: fade para branco (#ffffff = cor do bg claro)       */
/* DARK MODE:  trocar #ffffff por #0B0B0B (ou cor do bg escuro)   */
.velo-bottom-fade {
    width: 110vw;
    height: 110vh;
    position: fixed;
    left: 50%;
    bottom: -15%;
    transform: translateX(-50%);
    background: linear-gradient(0deg, #ffffff 12%, transparent 38%); /* ← trocar cor aqui */
    z-index: 98;
    pointer-events: none;
    user-select: none;
}
