/* Espaço e vórtice discretos. A entrada termina em 3,2 s; não há loop. */
.hero {
    position: relative;
    isolation: isolate;
    overflow: clip;
}
.hero-grid {
    position: relative;
    z-index: 1;
}
.hero-space {
    display: block;
    position: absolute;
    inset: 0;
    z-index: 0;
    pointer-events: none;
    overflow: hidden;
}
.hero-space::after {
    content: '';
    position: absolute;
    inset: 0;
    background:
        linear-gradient(90deg, #0b1220f5 6%, #0b1220b0 40%, transparent 75%),
        linear-gradient(0deg, var(--bg), transparent 30%);
}
.hero-space__stars {
    position: absolute;
    inset: 0;
    opacity: 0.65;
    background-image:
        radial-gradient(1px 1px at 23px 49px, #b3d8edb0 95%, transparent),
        radial-gradient(1px 1px at 173px 87px, #79e2c894 95%, transparent),
        radial-gradient(1px 1px at 97px 199px, #b6b0ed87 95%, transparent);
    background-size:
        185px 243px,
        271px 177px,
        401px 311px;
}
.hero-space__vortex {
    position: absolute;
    left: 78%;
    top: 52%;
    width: min(780px, 66vw);
    aspect-ratio: 1;
    opacity: 0.45;
    transform: translate(-50%, -50%) perspective(1100px) rotateX(56deg) rotateZ(-20deg);
}
.hero-space__vortex svg {
    display: block;
    width: 100%;
    height: 100%;
    animation: space-settle 3.2s ease-out both;
}
@keyframes space-settle {
    from {
        opacity: 0.4;
        transform: rotate(-18deg);
    }
    to {
        opacity: 1;
        transform: rotate(0deg);
    }
}
@media (max-width: 760px) {
    .hero-space__vortex {
        left: 60%;
        top: 73%;
        width: 570px;
        opacity: 0.45;
    }
    .hero-space__vortex svg {
        animation-duration: 1.6s;
    }
}
@media (hover: hover) and (pointer: fine) {
    .btn,
    .guide-card {
        transition:
            transform 160ms ease,
            background-color 160ms ease,
            border-color 160ms ease;
    }
    .btn:hover,
    .guide-card:hover {
        transform: translateY(-2px);
    }
}
.chat {
    --chat-motion: ready;
}
.chat-typing {
    position: absolute;
    left: 0;
    top: 0;
    display: flex;
    align-items: center;
    gap: 5px;
    height: 42px;
    padding: 11px 16px;
    border-radius: 16px 16px 16px 5px;
    background: var(--raised);
    pointer-events: none;
}
.chat-typing span {
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: var(--muted);
}
@media (prefers-reduced-motion: reduce) {
    .nav-chevron {
        transition: none;
    }
    .btn:hover,
    .guide-card:hover {
        transform: none;
    }
}
