
:root {
  --mo-orange: #ff8a00;
  --mo-yellow: #ffbf00;
  --mo-background: #0b0b0b;
}

/* Background */
.page-glow {
  background:
    radial-gradient(
      ellipse at 50% 15%,
      rgba(255, 138, 0, 0.085),
      transparent 38%
    ),
    radial-gradient(
      ellipse at 50% 75%,
      rgba(255, 191, 0, 0.025),
      transparent 55%
    ),
    var(--mo-background);
}

.brand-gradient {
  background: linear-gradient(
    100deg,
    var(--mo-orange) 0%,
    var(--mo-yellow) 100%
  );
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* Entrance animations */
.site-header {
  animation: fade-down 650ms ease both;
}

.maintenance-content {
  animation: content-enter 750ms cubic-bezier(.2, .7, .2, 1) both;
}

.site-footer {
  animation: footer-enter 750ms 120ms ease both;
}

@keyframes content-enter {
  from {
    opacity: 0;
    transform: translateY(10px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fade-down {
  from {
    opacity: 0;
    transform: translateY(-6px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes footer-enter {
  from {
    opacity: 0;
  }

  to {
    opacity: 1;
  }
}

/* Logo emblem */
.emblem {
  isolation: isolate;
}

.emblem-logo {
  animation: logo-arrive 750ms ease-out both;
}

.emblem-logo img {
  filter: drop-shadow(0 0 13px rgba(255, 138, 0, .16));
}

.emblem-ring {
  position: absolute;
  inset: 0;
  border: 1px solid rgba(255, 138, 0, .16);
  border-radius: 50%;
  animation: orbit-rotation 30s linear infinite;
}

.emblem-ring::before {
  position: absolute;
  top: 12%;
  right: 18%;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--mo-yellow);
  box-shadow: 0 0 10px rgba(255, 191, 0, .35);
  content: "";
}

.emblem-ring::after {
  position: absolute;
  top: 12%;
  right: 18%;
  width: 29%;
  height: 1px;
  background: linear-gradient(90deg, var(--mo-orange), transparent);
  content: "";
  transform: rotate(35deg);
  transform-origin: right center;
}

.emblem-ring-inner {
  inset: 12px;
  border-color: rgba(255, 191, 0, .12);
  border-style: dashed;
  animation-duration: 42s;
  animation-direction: reverse;
}

.emblem-signal {
  position: absolute;
  top: 4%;
  right: 17%;
  z-index: 3;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: #fff0b0;
  box-shadow: 0 0 12px 3px rgba(255, 138, 0, .35);
  animation: signal-pulse 2.6s ease-in-out infinite;
}

@keyframes orbit-rotation {
  to {
    transform: rotate(360deg);
  }
}

@keyframes logo-arrive {
  from {
    opacity: 0;
    transform: scale(.96);
  }

  to {
    opacity: 1;
    transform: scale(1);
  }
}

@keyframes signal-pulse {
  0%, 100% {
    opacity: .65;
    transform: scale(.9);
  }

  50% {
    opacity: 1;
    transform: scale(1.15);
  }
}

/* Infrastructure panel */
.upgrade-panel {
  background: linear-gradient(
    115deg,
    rgba(255, 138, 0, .035),
    rgba(255, 255, 255, .018) 55%,
    rgba(255, 191, 0, .025)
  );
  transition:
    border-color 220ms ease,
    background-color 220ms ease;
}

.upgrade-panel:hover {
  border-color: rgba(255, 191, 0, .22);
}

.server-icon {
  width: 52px;
  height: 52px;
  color: var(--mo-orange);
}

.server-icon svg {
  width: 100%;
  height: 100%;
}

/* Progress indicator: fixed at exactly 25% */
.progress-track {
  position: relative;
  width: 100%;
  height: 12px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(255, 255, 255, .11);
  box-shadow: inset 0 1px 2px rgba(0, 0, 0, .28);
}

.progress-completed {
  position: relative;
  display: block;
  width: 25%;
  height: 100%;
  overflow: hidden;
  border-radius: inherit;
  background: linear-gradient(
    90deg,
    #ff8a00 0%,
    #ffa000 55%,
    #ffbf00 100%
  );
  box-shadow: 0 0 9px rgba(255, 138, 0, .18);
}

/* Windows-style moving highlight, clipped inside the 25% segment */
.progress-highlight {
  position: absolute;
  top: 0;
  bottom: 0;
  left: -45%;
  width: 45%;
  background: linear-gradient(
    90deg,
    transparent 0%,
    rgba(255, 255, 255, .35) 35%,
    rgba(255, 242, 200, .85) 50%,
    rgba(255, 255, 255, .35) 65%,
    transparent 100%
  );
  animation: progress-highlight 1.8s ease-in-out infinite;
}

@keyframes progress-highlight {
  0% {
    left: -45%;
  }

  100% {
    left: 110%;
  }
}

/* Status indicators */
.status-dot {
  position: relative;
  display: inline-block;
  width: 7px;
  height: 7px;
  flex: 0 0 auto;
  border-radius: 50%;
  background: var(--mo-yellow);
}

.status-dot::after {
  position: absolute;
  inset: -3px;
  border: 1px solid rgba(255, 191, 0, .48);
  border-radius: 50%;
  content: "";
  animation: status-pulse 2.6s ease-out infinite;
}

@keyframes status-pulse {
  0% {
    opacity: .65;
    transform: scale(.8);
  }

  100% {
    opacity: 0;
    transform: scale(1.8);
  }
}

/* Buttons */
.button-primary {
  position: relative;
  overflow: hidden;
  background: linear-gradient(
    100deg,
    var(--mo-orange),
    var(--mo-yellow)
  );
  transition:
    transform 180ms ease,
    box-shadow 180ms ease;
}

.button-primary::after {
  position: absolute;
  top: -50%;
  bottom: -50%;
  left: -75%;
  width: 35%;
  background: rgba(255, 255, 255, .22);
  content: "";
  transform: rotate(20deg);
}

.button-primary:hover {
  box-shadow: 0 4px 16px rgba(255, 138, 0, .14);
}

.button-primary:hover::after {
  animation: button-sweep 650ms ease;
}

@keyframes button-sweep {
  to {
    left: 140%;
  }
}

.button-secondary {
  transition:
    border-color 180ms ease,
    background-color 180ms ease;
}

/* Footer links */
.footer-link {
  text-decoration: none;
  text-underline-offset: 4px;
  overflow-wrap: anywhere;
  transition: color 180ms ease;
}

.footer-link:hover {
  color: var(--mo-yellow);
}

.footer-link:focus-visible,
.button-primary:focus-visible,
.button-secondary:focus-visible,
.status-link:focus-visible {
  outline: 2px solid var(--mo-yellow);
  outline-offset: 4px;
}

/* Mobile adjustments */
@media (max-width: 480px) {
  .emblem-ring-inner {
    inset: 10px;
  }

  .progress-track {
    height: 10px;
  }
}

/* Accessibility: respect reduced-motion preferences */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
    transition-duration: .01ms !important;
  }

  .maintenance-content,
  .site-header,
  .site-footer,
  .emblem-logo {
    opacity: 1;
    transform: none;
  }

  .progress-highlight {
    left: 35%;
    width: 25%;
    opacity: .5;
  }
}
