/* Orbit Reveal, Countdown, Typewriter & Slide-From-Right Animations */

html,
body {
  overflow-x: clip;
}

.orbit-scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  z-index: 70;
  transform-origin: 0% 50%;
  background: linear-gradient(90deg, #a78bfa 0%, #38bdf8 55%, #fbbf24 100%);
  box-shadow: 0 0 14px rgba(139, 92, 246, 0.75);
  pointer-events: none;
}

/* Typewriter zero-shift layout helpers */
.orbit-type-wrap {
  position: relative;
  display: block;
}

.orbit-type-wrap-inline {
  position: relative;
  display: inline-block;
}

.orbit-type-ghost {
  visibility: hidden;
  user-select: none;
  pointer-events: none;
}

.orbit-type-live {
  position: absolute;
  inset: 0;
}

/* Skip Intro button pinned cleanly to top-right */
.orbit-skip-btn {
  position: fixed;
  top: 20px;
  right: 20px;
  z-index: 105;
}

/* Typewriter glowing caret */
.orbit-caret {
  display: inline-block;
  width: 0.1em;
  min-width: 2px;
  height: 0.92em;
  margin-left: 3px;
  vertical-align: -0.1em;
  border-radius: 999px;
  background: linear-gradient(180deg, #c4b5fd 0%, #38bdf8 100%);
  box-shadow: 0 0 10px rgba(167, 139, 250, 0.9), 0 0 20px rgba(56, 189, 248, 0.6);
  animation: orbitCaretBlink 0.72s steps(2, start) infinite;
}

.orbit-caret-sm {
  width: 2px;
  height: 1.05em;
  margin-left: 2px;
  vertical-align: -0.15em;
}

@keyframes orbitCaretBlink {
  0%, 49% {
    opacity: 1;
  }
  50%, 100% {
    opacity: 0;
  }
}

/* Opening Countdown Overlay */
.orbit-countdown-overlay {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background:
    radial-gradient(60% 50% at 50% 45%, rgba(139, 92, 246, 0.24), transparent 70%),
    radial-gradient(45% 40% at 65% 60%, rgba(56, 189, 248, 0.14), transparent 70%),
    rgba(7, 8, 15, 0.97);
  backdrop-filter: blur(22px);
  -webkit-backdrop-filter: blur(22px);
}

.orbit-countdown-stage {
  position: relative;
  width: 260px;
  height: 260px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.orbit-ring-outer {
  position: absolute;
  inset: 0;
  border-radius: 9999px;
  border: 2px solid rgba(167, 139, 250, 0.18);
  border-top-color: #a78bfa;
  border-right-color: #38bdf8;
  box-shadow: 0 0 40px rgba(139, 92, 246, 0.28), inset 0 0 30px rgba(56, 189, 248, 0.12);
  animation: orbitSpin 2.6s linear infinite;
}

.orbit-ring-inner {
  position: absolute;
  inset: 22px;
  border-radius: 9999px;
  border: 1.5px dashed rgba(56, 189, 248, 0.35);
  border-bottom-color: #fbbf24;
  animation: orbitSpinReverse 4.2s linear infinite;
}

.orbit-shockwave {
  position: absolute;
  inset: 14px;
  border-radius: 9999px;
  border: 2px solid rgba(167, 139, 250, 0.7);
  pointer-events: none;
}

.orbit-countdown-digit {
  font-variant-numeric: tabular-nums;
  line-height: 1;
  background: linear-gradient(135deg, #ffffff 0%, #c4b5fd 45%, #38bdf8 80%, #fde68a 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  filter: drop-shadow(0 0 28px rgba(139, 92, 246, 0.65));
}

.orbit-pop-halo {
  position: absolute;
  inset: -14px;
  border-radius: 9999px;
  background: radial-gradient(circle, rgba(167, 139, 250, 0.42) 0%, rgba(56, 189, 248, 0.18) 45%, transparent 72%);
  pointer-events: none;
  z-index: -1;
}

.orbit-slide-highlight {
  position: relative;
}

.orbit-slide-highlight::before {
  content: "";
  position: absolute;
  inset: -1px;
  border-radius: inherit;
  padding: 1px;
  background: linear-gradient(120deg, rgba(167, 139, 250, 0.45), rgba(56, 189, 248, 0.35), rgba(251, 191, 36, 0.25), rgba(167, 139, 250, 0.12));
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
}

@keyframes orbitSpin {
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(360deg);
  }
}

@keyframes orbitSpinReverse {
  from {
    transform: rotate(360deg);
  }
  to {
    transform: rotate(0deg);
  }
}

@media (prefers-reduced-motion: reduce) {
  .orbit-ring-outer,
  .orbit-ring-inner,
  .orbit-caret {
    animation: none;
  }
}
