/* NAONDE · Boas-vindas do primeiro acesso (depois do Saturno)
   Inspirada na tela "Estamos preparando tudo para você" do Windows 11: fundo que respira devagar entre cores,
   frases grandes e finas que surgem e somem com calma e o anel de pontinhos girando embaixo. */
#ndBv { position: fixed; inset: 0; z-index: 2147482990; overflow: hidden; background: #000; color: #fff;
  display: grid; place-items: center; height: 100vh; height: 100dvh; width: 100%;
  font-family: "NAONDE Sans", -apple-system, BlinkMacSystemFont, "Segoe UI Variable Display", "Segoe UI", Roboto, sans-serif;
  -webkit-font-smoothing: antialiased; -webkit-user-select: none; user-select: none; cursor: default;
  transition: opacity 1.1s cubic-bezier(.4, 0, .2, 1), visibility 1.1s; }
#ndBv.sai { opacity: 0; visibility: hidden; }

/* fundo: três luzes muito desfocadas que derivam devagar e variam entre azul, índigo e violeta, sobre preto profundo */
#ndBv .bv-fundo { position: absolute; inset: -20%; filter: blur(90px) saturate(125%); opacity: 0; animation: bvAcende 2.4s ease .2s forwards; }
#ndBv .bv-luz { position: absolute; width: 62vmax; height: 62vmax; border-radius: 50%; mix-blend-mode: screen; will-change: transform; }
#ndBv .bv-l1 { left: -8%; top: -6%; background: radial-gradient(circle, #1b4fd6 0%, rgba(27,79,214,0) 66%); animation: bvDeriva1 19s ease-in-out infinite alternate, bvCor1 12s ease-in-out infinite alternate; }
#ndBv .bv-l2 { right: -12%; bottom: -10%; background: radial-gradient(circle, #6a2bd9 0%, rgba(106,43,217,0) 66%); animation: bvDeriva2 23s ease-in-out infinite alternate, bvCor2 14s ease-in-out infinite alternate; }
#ndBv .bv-l3 { left: 30%; top: 38%; width: 48vmax; height: 48vmax; background: radial-gradient(circle, #0c8fa8 0%, rgba(12,143,168,0) 64%); opacity: .75; animation: bvDeriva3 17s ease-in-out infinite alternate; }
#ndBv .bv-veu { position: absolute; inset: 0; background: radial-gradient(ellipse at center, rgba(0,0,0,.05) 0%, rgba(0,0,0,.55) 100%); }
/* grão finíssimo para o degradê não "escadear" em telas boas */
#ndBv .bv-grao { position: absolute; inset: 0; opacity: .05; pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='g'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23g)'/%3E%3C/svg%3E"); }

/* frases */
#ndBv .bv-palco { position: relative; width: min(980px, 88vw); min-height: 9em; display: grid; place-items: center; text-align: center; }
#ndBv .bv-frase { grid-area: 1 / 1; margin: 0; font-weight: 300; letter-spacing: -0.012em; line-height: 1.16;
  font-size: clamp(30px, 5.2vw, 64px); text-wrap: balance; color: rgba(255,255,255,.96);
  opacity: 0; transform: translateY(10px) scale(.985); filter: blur(6px);
  transition: opacity 1.05s cubic-bezier(.22,.61,.36,1), transform 1.4s cubic-bezier(.22,.61,.36,1), filter 1.05s cubic-bezier(.22,.61,.36,1); }
#ndBv .bv-frase.ola { font-size: clamp(56px, 10vw, 128px); font-weight: 250; letter-spacing: -0.03em; }
#ndBv .bv-frase small { display: block; margin-top: .7em; font-size: .36em; font-weight: 400; letter-spacing: 0; line-height: 1.4; color: rgba(255,255,255,.62); }
#ndBv .bv-frase.on { opacity: 1; transform: none; filter: none; }
#ndBv .bv-frase.foi { opacity: 0; transform: translateY(-8px) scale(1.01); filter: blur(5px); transition-duration: .8s, 1s, .8s; }
#ndBv .bv-cor { display: inline-block; width: .62em; height: .62em; margin-left: .18em; vertical-align: .02em; color: #ff4d6d; }
#ndBv .bv-cor svg { width: 100%; height: 100%; display: block; animation: bvBate 1.6s ease-in-out infinite; transform-origin: 50% 60%; }

/* anel de pontinhos (o "carregando" do Windows), embaixo */
#ndBv .bv-base { position: absolute; left: 0; right: 0; bottom: max(44px, calc(env(safe-area-inset-bottom) + 30px));
  display: flex; flex-direction: column; align-items: center; gap: 18px; opacity: 0; animation: bvAcende 1.2s ease 1.2s forwards; }
#ndBv .bv-anel { position: relative; width: 46px; height: 46px; }
#ndBv .bv-anel i { position: absolute; inset: 0; animation: bvOrbita 4.4s infinite; }
#ndBv .bv-anel i::before { content: ""; position: absolute; left: 50%; top: 0; width: 5px; height: 5px; margin-left: -2.5px; border-radius: 50%; background: #fff; box-shadow: 0 0 6px rgba(255,255,255,.45); }
#ndBv .bv-anel i:nth-child(2) { animation-delay: .16s; } #ndBv .bv-anel i:nth-child(3) { animation-delay: .32s; }
#ndBv .bv-anel i:nth-child(4) { animation-delay: .48s; } #ndBv .bv-anel i:nth-child(5) { animation-delay: .64s; }
#ndBv .bv-aviso { margin: 0; font-size: 13.5px; font-weight: 400; color: rgba(255,255,255,.55); letter-spacing: .01em; text-align: center; padding: 0 24px; }

@keyframes bvAcende { to { opacity: 1; } }
@keyframes bvDeriva1 { from { transform: translate(0, 0) scale(1); } to { transform: translate(18vw, 14vh) scale(1.18); } }
@keyframes bvDeriva2 { from { transform: translate(0, 0) scale(1.1); } to { transform: translate(-20vw, -12vh) scale(.92); } }
@keyframes bvDeriva3 { from { transform: translate(-10vw, 6vh) scale(.9); } to { transform: translate(12vw, -10vh) scale(1.12); } }
@keyframes bvCor1 { from { filter: hue-rotate(-28deg); } to { filter: hue-rotate(34deg); } }
@keyframes bvCor2 { from { filter: hue-rotate(26deg); } to { filter: hue-rotate(-30deg); } }
@keyframes bvBate { 0%, 100% { transform: scale(1); } 14% { transform: scale(1.16); } 28% { transform: scale(1); } 42% { transform: scale(1.1); } 70% { transform: scale(1); } }
/* cada ponto acelera, freia lá em cima e some, como o anel do Windows */
@keyframes bvOrbita {
  0% { transform: rotate(180deg); opacity: 0; animation-timing-function: ease-out; }
  7% { opacity: 1; transform: rotate(300deg); animation-timing-function: linear; }
  30% { transform: rotate(470deg); animation-timing-function: ease-in-out; }
  39% { transform: rotate(645deg); animation-timing-function: linear; }
  70% { transform: rotate(815deg); opacity: 1; animation-timing-function: ease-out; }
  75% { transform: rotate(945deg); opacity: 0; }
  100% { transform: rotate(945deg); opacity: 0; } }

@media (max-width: 760px) { #ndBv .bv-palco { width: 86vw; } #ndBv .bv-fundo { filter: blur(70px) saturate(125%); } }
@media (prefers-reduced-motion: reduce) {
  #ndBv .bv-luz, #ndBv .bv-cor svg { animation: none !important; }
  #ndBv .bv-frase { transform: none !important; filter: none !important; transition: opacity .6s ease; }
}
