/* Capitalis Enterprise — splash.css (crítico, carregado primeiro, sem dependências) */
body { background: #000; }
body.light { background: #fff; }

.splash {
  --s-bg: #000; --s-text: #fff; --s-muted: #9b9ba3; --s-stroke: rgba(255,255,255,.14); --s-glow: rgba(255,255,255,.16);
  position: fixed; inset: 0; z-index: 1000; display: grid; place-items: center; overflow: hidden;
  background: var(--s-bg); color: var(--s-text); font-family: 'Sora', 'Manrope', system-ui, -apple-system, 'Segoe UI', sans-serif;
  -webkit-font-smoothing: antialiased; transition: opacity .3s ease, visibility .3s;
  animation: spFallback .3s ease 3.6s forwards; /* segurança: se o JS falhar, some sozinho */
}
body.light .splash { --s-bg: #fff; --s-text: #0a0a0a; --s-muted: #5d5d66; --s-stroke: rgba(0,0,0,.14); --s-glow: rgba(0,0,0,.12); }
.splash.out { opacity: 0; visibility: hidden; }
.splash::before {
  content: ''; position: absolute; width: 70vmax; height: 70vmax; border-radius: 50%;
  background: radial-gradient(circle, var(--s-glow), transparent 62%); animation: spGlow 3s ease-in-out both;
}

.sp-in { position: relative; display: flex; flex-direction: column; align-items: center; padding: 24px; text-align: center; }

.sp-icon { width: 92px; height: 92px; color: var(--s-text); overflow: visible; shape-rendering: geometricPrecision; animation: spPop .8s cubic-bezier(.2,.9,.3,1.2) both; }
.sp-icon g { fill: none; stroke: currentColor; stroke-width: 1.4; stroke-linecap: round; stroke-linejoin: round; }
.sp-p { stroke-dasharray: 1 1; stroke-dashoffset: 1; animation: spDraw 1.15s cubic-bezier(.5,.1,.2,1) both; }
.sp-p:nth-child(1) { animation-delay: .1s; }
.sp-p:nth-child(2) { animation-delay: .5s; }
.sp-p:nth-child(3) { animation-delay: .85s; }

.sp-word { display: grid; line-height: 1; margin-top: 26px; animation: spRise .7s cubic-bezier(.2,.8,.2,1) .3s both; }
.sp-word b { font-weight: 800; font-size: clamp(1.7rem, 7vw, 2.3rem); letter-spacing: .12em; padding-left: .12em; }
.sp-word small { margin-top: 10px; font-weight: 500; font-size: .66rem; letter-spacing: .46em; padding-left: .46em; color: var(--s-muted); }

.sp-bar { width: min(240px, 62vw); height: 4px; margin-top: 30px; border-radius: 4px; background: var(--s-stroke); overflow: hidden; animation: spRise .6s ease .5s both; }
.sp-bar i { display: block; width: 100%; height: 100%; border-radius: 4px; background: linear-gradient(90deg, var(--s-muted), var(--s-text)); transform-origin: left; transform: scaleX(0); }

.sp-load { display: flex; flex-direction: column; align-items: center; gap: 10px; margin-top: 26px; animation: spRise .6s ease .6s both; }
.sp-spin { width: 30px; height: 30px; border-radius: 50%; border: 2.5px solid var(--s-stroke); border-top-color: var(--s-text); animation: spSpin .8s linear infinite; }
.sp-pct { font-family: 'JetBrains Mono', ui-monospace, 'SF Mono', Menlo, monospace; font-weight: 500; font-size: .9rem; color: var(--s-muted); font-variant-numeric: tabular-nums; min-width: 4ch; }

@keyframes spDraw { from { stroke-dashoffset: 1; opacity: 0; } 2% { opacity: 1; } to { stroke-dashoffset: 0; opacity: 1; } }
@keyframes spPop { from { opacity: 0; transform: scale(.7) translateY(8px); } }
@keyframes spRise { from { opacity: 0; transform: translateY(12px); } }
@keyframes spGlow { 0% { opacity: 0; transform: scale(.8); } 50% { opacity: .55; } 100% { opacity: .25; transform: scale(1.05); } }
@keyframes spSpin { to { transform: rotate(360deg); } }
@keyframes spFallback { to { opacity: 0; visibility: hidden; } }
@media (prefers-reduced-motion: reduce) { .sp-p { animation: none; stroke-dashoffset: 0; } .splash::before { animation: none; } }

/* Telas grandes: a splash cresce junto */
@media (min-width: 1800px) { .sp-in { zoom: 1.3; } }
@media (min-width: 2400px) { .sp-in { zoom: 1.6; } }
@media (min-width: 3200px) { .sp-in { zoom: 2.2; } }