.glass {
    background: rgba(15, 23, 42, .6);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(148, 163, 184, .12);
}

/* Reflexo espelhado sutil para fotos de produto (Chrome/Edge/Safari; degrada bem no Firefox, que ignora a regra) */
.reflect {
    -webkit-box-reflect: below 4px linear-gradient(to bottom, transparent 45%, rgba(255, 255, 255, .18));
}

/* Cópia espelhada e girada da imagem, usada como reflexo diagonal — a foto original fica reta, só o reflexo por baixo fica inclinado */
.reflect-diagonal-copy {
    position: absolute;
    top: 100%;
    left: 0;
    transform-origin: center;
    transform: scaleY(-1) rotate(12deg);
    opacity: .22;
    -webkit-mask-image: linear-gradient(to bottom, rgba(0, 0, 0, .8), transparent 60%);
    mask-image: linear-gradient(to bottom, rgba(0, 0, 0, .8), transparent 60%);
    pointer-events: none;
}

/* Flutuação suave e contínua para as fotos de destaque no topo das páginas */
@media (prefers-reduced-motion: no-preference) {
    .float {
        animation: floatY 4.5s ease-in-out infinite;
    }
}

@keyframes floatY {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-12px); }
}

.btn-cta {
    display: inline-flex;
    align-items: center;
    gap: .5rem;
    padding: .75rem 1.5rem;
    border-radius: 999px;
    font-weight: 600;
    background: linear-gradient(135deg, #22d3ee, #a3e635);
    color: #0f172a;
    transition: transform .15s ease, box-shadow .15s ease;
}

.btn-cta:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 30px -10px rgba(34, 211, 238, .5);
}

/* Contorno de luz que acompanha a silhueta de fotos de produto com fundo transparente */
.glow-outline {
    filter:
        drop-shadow(0 0 14px rgba(34, 211, 238, .55))
        drop-shadow(0 0 40px rgba(34, 211, 238, .35))
        drop-shadow(0 18px 24px rgba(0, 0, 0, .45));
}

/* Raio de luz que varre a foto do rádio principal do hero, recortado pela silhueta da própria imagem (mask usa o canal alfa do webp) */
.hero-shine {
    background: linear-gradient(115deg, transparent 42%, rgba(255, 255, 255, .8) 50%, transparent 58%);
    background-size: 300% 300%;
    background-position: -50% 0;
    mix-blend-mode: overlay;
    -webkit-mask-image: url('../img/hero-e220.webp');
    mask-image: url('../img/hero-e220.webp');
    -webkit-mask-size: contain;
    mask-size: contain;
    -webkit-mask-repeat: no-repeat;
    mask-repeat: no-repeat;
    -webkit-mask-position: center;
    mask-position: center;
}

@media (prefers-reduced-motion: no-preference) {
    .hero-shine {
        animation: heroShine 3.5s ease-in-out infinite;
        animation-delay: 1.2s;
    }
}

@keyframes heroShine {
    0%, 35% { background-position: -50% 0; }
    65%, 100% { background-position: 150% 0; }
}

/* Ondas de sinal decorativas (círculos concêntricos do hero) */
@keyframes signalPulse {
    0% { transform: scale(0.75); opacity: .55; }
    70% { opacity: 0; }
    100% { transform: scale(1.15); opacity: 0; }
}

@media (prefers-reduced-motion: no-preference) {
    .signal-rings circle {
        transform-origin: 100px 100px;
        animation: signalPulse 3.2s ease-out infinite;
    }
    .signal-rings circle:nth-child(1) { animation-delay: 0s; }
    .signal-rings circle:nth-child(2) { animation-delay: .8s; }
    .signal-rings circle:nth-child(3) { animation-delay: 1.6s; }
    .signal-rings circle:nth-child(4) { animation-delay: 2.4s; }
}

/* Entrada suave dos elementos (hero e seções ao rolar a página) */
.reveal {
    opacity: 0;
    transform: translateY(20px);
}

.reveal.is-visible {
    opacity: 1;
    transform: translateY(0);
}

@media (prefers-reduced-motion: no-preference) {
    .reveal {
        transition: opacity .6s ease-out, transform .6s ease-out;
    }
    .delay-1 { transition-delay: .1s; }
    .delay-2 { transition-delay: .22s; }
    .delay-3 { transition-delay: .34s; }
    .delay-4 { transition-delay: .46s; }
}

/* Traços de sinal animados, viajando pela tela em posição/tamanho/direção aleatórios */
.circuit-bg {
    position: fixed;
    inset: 0;
    z-index: 0;
    pointer-events: none;
    overflow: hidden;
}

.streak {
    position: absolute;
    top: 0;
    left: 0;
    height: 2px;
    width: 120px;
    border-radius: 999px;
    background: linear-gradient(90deg, transparent, rgba(34, 211, 238, .7), transparent);
    opacity: 0;
    will-change: transform, opacity;
}

@media (prefers-reduced-motion: reduce) {
    .streak { display: none; }
}
