/* --- INTERACTIVE SPOTLIGHT EFFECT --- */
.spotlight {
    position: relative;
    overflow: hidden;
}

/* O brilho que segue o mouse */
.spotlight::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(600px circle at var(--mouse-x, 0px) var(--mouse-y, 0px),
            rgba(255, 255, 255, 0.08),
            transparent 40%);
    opacity: 0;
    transition: opacity 0.4s ease;
    z-index: 2;
    pointer-events: none;
    /* Deixa clicar no que tem embaixo */
}

.spotlight:hover::before {
    opacity: 1;
}

/* Cursor piscando para o efeito de digitação */
.cursor-blink {
    display: inline-block;
    width: 2px;
    height: 14px;
    background-color: var(--primary-light);
    margin-left: 2px;
    animation: blink 1s infinite;
    vertical-align: middle;
}

@keyframes blink {

    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: 0;
    }
}

/* --- LIVE DEMO INPUT --- */
.demo-input-container {
    display: flex;
    align-items: center;
    width: 100%;
    gap: 10px;
}

.demo-input {
    background: transparent;
    border: none;
    color: white;
    font-size: 0.95rem;
    font-family: inherit;
    width: 100%;
    outline: none;
}

.demo-input::placeholder {
    color: rgba(255, 255, 255, 0.7);
}

.demo-send-btn {
    background: rgba(255, 255, 255, 0.2);
    border: none;
    cursor: pointer;
    color: white;
    padding: 6px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
}

.demo-send-btn:hover {
    background: rgba(255, 255, 255, 0.4);
    transform: scale(1.1);
}

/* --- LOADING DOTS --- */
.typing-indicator {
    display: flex;
    gap: 4px;
    padding: 4px 0;
}

.typing-dot {
    width: 6px;
    height: 6px;
    background: var(--text-muted);
    border-radius: 50%;
    animation: bounce 1.4s infinite ease-in-out both;
}

.typing-dot:nth-child(1) {
    animation-delay: -0.32s;
}

.typing-dot:nth-child(2) {
    animation-delay: -0.16s;
}

@keyframes bounce {

    0%,
    80%,
    100% {
        transform: scale(0);
    }

    40% {
        transform: scale(1);
    }
}