:root {
    --agua-ceu: #5ebef2;
    --agua-monte: #1496dc;
    --agua-fundo: #0a6aad;
    --agua-tinta: #0c1620;
    --agua-espuma: #f4fbff;
    --agua-turquesa: #2ed9c8;
    --agua-lagoa: #063447;
    --agua-areia: #e6cfa8;
    --agua-coral: #ff8b6a;
    --agua-fonte: "Outfit", "Segoe UI", system-ui, sans-serif;
    --agua-display: "Fraunces", Georgia, serif;
}

body {
    font-family: var(--agua-fonte);
}

.cena-agua {
    position: fixed;
    inset: 0;
    z-index: 0;
    overflow: hidden;
    pointer-events: none;
    background:
        radial-gradient(ellipse 55% 40% at 50% 115%, rgba(46, 217, 200, 0.35), transparent 60%),
        radial-gradient(ellipse 40% 32% at 8% 0%, rgba(94, 190, 242, 0.2), transparent 70%),
        linear-gradient(180deg, #03151d 0%, #063447 42%, #0b5874 72%, #127892 100%);
}

.cena-agua__canvas {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
}

.cena-agua__por-do-sol {
    position: absolute;
    width: 46vw;
    height: 46vw;
    right: -10vw;
    top: -16vw;
    background: radial-gradient(circle, rgba(255, 139, 106, 0.34), rgba(230, 207, 168, 0.12) 42%, transparent 70%);
    filter: blur(6px);
}

.cena-agua__raios {
    position: absolute;
    left: -10%;
    top: -20%;
    width: 120%;
    height: 78%;
    background: repeating-conic-gradient(from 210deg at 50% 0%,
        transparent 0deg 10deg,
        rgba(190, 236, 255, 0.07) 12deg 15deg,
        transparent 17deg 28deg);
    mix-blend-mode: screen;
    transform-origin: 50% 0;
    animation: agua-raios 28s linear infinite;
}

.cena-agua__caustica {
    position: absolute;
    inset: -20%;
    background:
        radial-gradient(ellipse 18% 10% at 20% 60%, rgba(255, 255, 255, 0.16), transparent 70%),
        radial-gradient(ellipse 22% 12% at 70% 40%, rgba(46, 217, 200, 0.18), transparent 70%),
        radial-gradient(ellipse 16% 9% at 40% 75%, rgba(94, 190, 242, 0.2), transparent 70%);
    animation: agua-caustica 14s ease-in-out infinite alternate;
    mix-blend-mode: screen;
}

.bolha {
    position: absolute;
    left: var(--x);
    bottom: -24px;
    width: var(--s);
    height: var(--s);
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, 0.45);
    background: radial-gradient(circle at 30% 30%, rgba(255, 255, 255, 0.75), rgba(94, 190, 242, 0.05) 62%, transparent 70%);
    animation: agua-bolha var(--d) linear infinite;
    animation-delay: var(--atraso);
    opacity: 0;
}

.cena-agua__ondas {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 30vh;
    min-height: 9rem;
    overflow: hidden;
}

.cena-agua__faixa {
    position: absolute;
    left: 0;
    display: flex;
    width: 200%;
    height: 58%;
    animation: agua-deriva 18s linear infinite;
}

.cena-agua__faixa svg {
    width: 50%;
    height: 100%;
    flex: 0 0 50%;
}

.cena-agua__faixa--fundo { bottom: 0; height: 78%; opacity: 0.9; animation-duration: 26s; }
.cena-agua__faixa--meio { bottom: 4%; height: 62%; animation-duration: 18s; animation-direction: reverse; }
.cena-agua__faixa--espuma { bottom: 10%; height: 42%; animation-duration: 13s; }

@keyframes agua-deriva {
    from { transform: translateX(0); }
    to { transform: translateX(-50%); }
}

@keyframes agua-raios {
    from { transform: rotate(-4deg); }
    to { transform: rotate(6deg); }
}

@keyframes agua-caustica {
    from { transform: translate3d(-3%, 1%, 0) scale(1); }
    to { transform: translate3d(4%, -2%, 0) scale(1.08); }
}

@keyframes agua-bolha {
    0% { transform: translateY(0) scale(0.8); opacity: 0; }
    12% { opacity: 0.75; }
    100% { transform: translateY(-105vh) scale(1.15); opacity: 0; }
}

@media (prefers-reduced-motion: reduce) {
    .cena-agua__raios,
    .cena-agua__caustica,
    .cena-agua__faixa,
    .bolha {
        animation: none;
    }
    .bolha { opacity: 0.35; bottom: 18%; }
}
