/* Netgainz boot splash — standalone, no external dependencies.
   Drop into your site's CSS pipeline (or include via <link rel="stylesheet">).
   All brand colors are inlined so this file works without tokens.css. */

.ng-splash {
  position: fixed;
  inset: 0;
  z-index: 99999;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 24px;
  background: radial-gradient(ellipse at center, #111A2E 0%, #0B1220 70%);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Inter, Roboto,
    "Helvetica Neue", Arial, sans-serif;
  opacity: 1;
  transition: opacity 400ms cubic-bezier(0.16, 1, 0.3, 1);
}

.ng-splash[data-hiding="true"] {
  opacity: 0;
  pointer-events: none;
}

.ng-splash__wordmark {
  font-size: clamp(32px, 6vw, 56px);
  font-weight: 800;
  letter-spacing: 0.18em;
  color: #22D38C;
  text-shadow: 0 0 18px rgba(127, 240, 188, 0.45);
  user-select: none;
}

.ng-splash__wordmark span {
  color: #E6EDF7;
}

.ng-splash__chart {
  width: 240px;
  height: 80px;
  color: #22D38C;
  overflow: visible;
}

.ng-splash__chart .ng-baseline {
  stroke: #1A2540;
  stroke-width: 1;
  stroke-linecap: round;
  fill: none;
}

.ng-splash__chart .ng-line {
  fill: none;
  stroke: currentColor;
  stroke-width: 2.5;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-dasharray: 320;
  stroke-dashoffset: 320;
  animation:
    ng-splash-draw 1.6s cubic-bezier(0.16, 1, 0.3, 1) forwards,
    ng-splash-redraw 3.4s 1.8s cubic-bezier(0.65, 0, 0.35, 1) infinite;
  filter: drop-shadow(0 0 8px rgba(34, 211, 140, 0.45));
}

.ng-splash__chart .ng-area {
  fill: url(#ng-splash-grad);
  opacity: 0;
  animation: ng-splash-fade 600ms 1.4s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.ng-splash__chart .ng-dot--end {
  fill: currentColor;
  transform-box: fill-box;
  transform-origin: center;
  animation: ng-splash-pulse 1.2s 1.6s cubic-bezier(0.65, 0, 0.35, 1) infinite;
}

.ng-splash__tagline {
  color: #8A97B2;
  font-size: 14px;
  letter-spacing: 0.04em;
  opacity: 0;
  animation: ng-splash-fade 500ms 1.7s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

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

@keyframes ng-splash-redraw {
  0%, 45% { stroke-dashoffset: 0; }
  55%     { stroke-dashoffset: 320; }
  100%    { stroke-dashoffset: 0; }
}

@keyframes ng-splash-pulse {
  0%, 100% { transform: scale(1);   opacity: 1; }
  50%      { transform: scale(1.4); opacity: 0.85; }
}

@keyframes ng-splash-fade {
  from { opacity: 0; transform: translateY(4px); }
  to   { opacity: 1; transform: translateY(0); }
}

@media (prefers-reduced-motion: reduce) {
  .ng-splash__chart .ng-line {
    animation: ng-splash-draw 800ms cubic-bezier(0.16, 1, 0.3, 1) forwards;
  }
  .ng-splash__chart .ng-dot--end,
  .ng-splash__chart .ng-area,
  .ng-splash__tagline {
    animation: none;
    opacity: 1;
  }
}
