/* ============================================================
   ABSTRICT · Splash Screen v2
   Refined hexagon chip draw-in + progress bar
   ============================================================= */

.splash-overlay {
  position: fixed; inset: 0; z-index: 9999;
  background: #08080d;
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  transition: opacity 500ms ease-out, transform 500ms ease-out;
}
.splash-overlay.exit {
  opacity: 0; transform: scale(1.02);
  pointer-events: none;
}

.splash-logo {
  width: 160px; height: 160px;
  margin-bottom: 28px;
  filter: drop-shadow(0 0 20px rgba(99,102,241,.15));
}

/* Stroke draw-in */
.splash-overlay .draw-stroke {
  stroke-dasharray: 1400;
  stroke-dashoffset: 1400;
  animation: splash-draw 1.8s cubic-bezier(.4,0,.2,1) forwards;
}
.splash-overlay .draw-stroke.s0 { animation-delay: 0s; stroke-dasharray: 1400; stroke-dashoffset: 1400; }
.splash-overlay .draw-stroke.s1 { animation-delay: 0.1s; }
.splash-overlay .draw-stroke.s2 { animation-delay: 0.5s; }
.splash-overlay .draw-stroke.s3 { animation-delay: 0.9s; }
.splash-overlay .draw-stroke.s4 { animation-delay: 1.2s; stroke-dasharray: 40; stroke-dashoffset: 40; }
.splash-overlay .draw-stroke.s5 { animation-delay: 1.35s; stroke-dasharray: 40; stroke-dashoffset: 40; }

@keyframes splash-draw {
  to { stroke-dashoffset: 0; }
}

/* Nodes appear */
.splash-overlay .node {
  opacity: 0; transform-origin: center; transform: scale(0);
  animation: splash-node 400ms cubic-bezier(.34,1.56,.64,1) forwards;
}
.splash-overlay .node.n1 { animation-delay: 1.3s; }
.splash-overlay .node.n2 { animation-delay: 1.4s; }
.splash-overlay .node.n3 { animation-delay: 1.5s; }
.splash-overlay .node.n4 { animation-delay: 1.6s; }
.splash-overlay .node.n5 { animation-delay: 1.7s; }
.splash-overlay .node.n6 { animation-delay: 1.75s; }
.splash-overlay .node.n7 { animation-delay: 1.8s; }
.splash-overlay .node.n8 { animation-delay: 1.85s; }

@keyframes splash-node {
  to { opacity: 1; transform: scale(1); }
}

/* Brand text */
.splash-brand {
  font-family: 'Space Grotesk', system-ui, sans-serif;
  font-size: 32px; font-weight: 700;
  letter-spacing: 10px; color: #818cf8;
  opacity: 0; transform: translateY(10px);
  animation: splash-text 600ms ease-out 1.5s forwards;
}
.splash-tagline {
  font-family: 'JetBrains Mono', 'Fira Code', monospace;
  font-size: 10px; letter-spacing: 4px;
  color: rgba(129,140,248,.35);
  margin-top: 8px;
  opacity: 0;
  animation: splash-text 600ms ease-out 1.9s forwards;
}

@keyframes splash-text {
  to { opacity: 1; transform: translateY(0); }
}

/* Progress bar */
.splash-progress {
  width: 120px; height: 2px; margin-top: 24px;
  background: rgba(99,102,241,.15); border-radius: 1px;
  overflow: hidden; opacity: 0;
  animation: splash-text 400ms ease-out 2.1s forwards;
}
.splash-progress-fill {
  width: 0%; height: 100%;
  background: linear-gradient(90deg, #6366f1, #818cf8);
  border-radius: 1px;
  animation: splash-fill 1.5s ease-in-out 2.2s forwards;
}
@keyframes splash-fill {
  0% { width: 0%; }
  60% { width: 70%; }
  100% { width: 100%; }
}

/* Topbar brand-mark pulse */
@keyframes brand-pulse {
  0%   { filter: drop-shadow(0 0 0 transparent); transform: scale(1); }
  50%  { filter: drop-shadow(0 0 8px rgba(99,102,241,.6)); transform: scale(1.1); }
  100% { filter: drop-shadow(0 0 0 transparent); transform: scale(1); }
}
.brand-mark.pulse {
  animation: brand-pulse 800ms ease-in-out 1;
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  .splash-overlay .draw-stroke,
  .splash-overlay .node,
  .splash-brand,
  .splash-tagline,
  .splash-progress,
  .splash-progress-fill {
    animation: none; opacity: 1; transform: none; stroke-dashoffset: 0;
  }
  .splash-progress-fill { width: 100%; }
  .splash-overlay { transition-duration: 200ms; }
}
