#app-loader {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: #020617;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 0.9s cubic-bezier(0.4, 0, 0.2, 1);
}

#app-loader.loader-exit {
  opacity: 0;
  pointer-events: none;
}

.loader-content {
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0;
}

@keyframes letter-in {
  from {
    opacity: 0;
    transform: translateY(14px);
    filter: blur(6px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
    filter: blur(0);
  }
}

.loader-title {
  font-family: "Inter", system-ui, sans-serif;
  font-size: 76px;
  font-weight: 700;
  color: #f1f5f9;
  line-height: 1;
  margin-bottom: 20px;
  display: flex;
  gap: 0.05em;
  letter-spacing: 0.35em;
  padding-right: 0.35em;
}

.loader-title span {
  display: inline-block;
  opacity: 0;
  animation: letter-in 0.55s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

.loader-title span:nth-child(1) {
  animation-delay: 0.08s;
}
.loader-title span:nth-child(2) {
  animation-delay: 0.18s;
}
.loader-title span:nth-child(3) {
  animation-delay: 0.28s;
}
.loader-title span:nth-child(4) {
  animation-delay: 0.38s;
}
.loader-title span:nth-child(5) {
  animation-delay: 0.48s;
}
.loader-title span:nth-child(6) {
  animation-delay: 0.58s;
}
.loader-title span:nth-child(7) {
  animation-delay: 0.68s;
}

@keyframes line-expand {
  from {
    transform: scaleX(0);
    opacity: 0;
  }
  to {
    transform: scaleX(1);
    opacity: 1;
  }
}

.loader-line {
  width: 180px;
  height: 1px;
  background: linear-gradient(
    90deg,
    transparent,
    #6366f1 30%,
    #10b981 70%,
    transparent
  );
  transform: scaleX(0);
  transform-origin: center;
  animation: line-expand 0.7s cubic-bezier(0.4, 0, 0.2, 1) forwards;
  animation-delay: 1.1s;
  margin-bottom: 18px;
}

@keyframes subtitle-in {
  from {
    opacity: 0;
    transform: translateY(6px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.loader-subtitle {
  font-family: "Inter", system-ui, sans-serif;
  font-size: 10px;
  font-weight: 400;
  letter-spacing: 0.28em;
  color: #334155;
  text-transform: uppercase;
  opacity: 0;
  animation: subtitle-in 0.6s ease forwards;
  animation-delay: 1.6s;
}

.loader-s-subtitle {
  font-family: "Inter", system-ui, sans-serif;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.12em;
  color: #64748b;
  margin-top: 10px;

  opacity: 0;
  transform: translateY(12px);

  animation: author-in 0.8s cubic-bezier(0.4, 0, 0.2, 1) forwards;
  animation-delay: 2s;
}

@keyframes author-in {
  0% {
    opacity: 0;
    transform: translateY(12px);
    filter: blur(4px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
    filter: blur(0);
  }
}
