/* AxisBox promo — soft 3D welcome banner */
.ax-promo-root {
  --ax-green: #00ffaa;
  --ax-blue: #0066ff;
  --ax-panel: #12151a;
  position: fixed;
  inset: 0;
  z-index: 99990;
  display: grid;
  place-items: center;
  padding: 24px;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.5s ease, visibility 0.5s ease;
}

.ax-promo-root.is-open {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.ax-promo-backdrop {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 80% 55% at 50% 35%, rgba(0, 102, 255, 0.18), transparent 58%),
    radial-gradient(ellipse 55% 45% at 70% 75%, rgba(0, 255, 170, 0.1), transparent 52%),
    rgba(4, 6, 10, 0.78);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.ax-promo-stage {
  position: relative;
  width: min(540px, 100%);
  perspective: 1400px;
  perspective-origin: 50% 35%;
}

.ax-promo-card {
  position: relative;
  transform-style: preserve-3d;
  transform: translateY(42px) scale(0.88) rotateX(12deg) rotateY(-5deg);
  opacity: 0;
  border-radius: 24px;
  background:
    linear-gradient(165deg, rgba(255, 255, 255, 0.07) 0%, transparent 42%),
    linear-gradient(185deg, #1c222c 0%, var(--ax-panel) 48%, #0b0e12 100%);
  border: 1px solid rgba(0, 255, 170, 0.22);
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.06) inset,
    0 32px 64px -16px rgba(0, 0, 0, 0.88),
    0 16px 40px -12px rgba(0, 102, 255, 0.32),
    0 0 60px -20px rgba(0, 255, 170, 0.2);
  overflow: hidden;
  transition:
    transform 0.75s cubic-bezier(0.22, 1.12, 0.36, 1),
    opacity 0.6s ease,
    box-shadow 0.45s ease;
}

.ax-promo-root.is-open .ax-promo-card {
  transform: translateY(0) scale(1) rotateX(3deg) rotateY(-1.5deg);
  opacity: 1;
}

.ax-promo-root.is-open .ax-promo-card:hover {
  transform: translateY(-6px) scale(1.015) rotateX(1.5deg) rotateY(0deg);
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.08) inset,
    0 40px 72px -14px rgba(0, 0, 0, 0.92),
    0 20px 44px -10px rgba(0, 102, 255, 0.4),
    0 0 70px -16px rgba(0, 255, 170, 0.28);
}

.ax-promo-depth {
  position: absolute;
  inset: 12% -10% -22% -10%;
  transform: translateZ(-56px) scale(0.93);
  border-radius: 28px;
  background: linear-gradient(140deg, rgba(0, 102, 255, 0.4), rgba(0, 255, 170, 0.22));
  filter: blur(22px);
  opacity: 0.7;
  pointer-events: none;
  z-index: -1;
}

.ax-promo-top {
  height: 4px;
  background: linear-gradient(90deg, var(--ax-blue), var(--ax-green) 55%, #7dffe0);
  opacity: 0.95;
}

.ax-promo-shine {
  position: absolute;
  top: -45%;
  left: -25%;
  width: 55%;
  height: 90%;
  background: linear-gradient(
    125deg,
    transparent 25%,
    rgba(255, 255, 255, 0.07) 48%,
    transparent 72%
  );
  transform: rotate(16deg) translateZ(18px);
  pointer-events: none;
  animation: ax-promo-shine 5.5s ease-in-out infinite;
}

@keyframes ax-promo-shine {
  0%,
  100% {
    opacity: 0.3;
    transform: rotate(16deg) translateX(0) translateZ(18px);
  }
  50% {
    opacity: 0.65;
    transform: rotate(16deg) translateX(55%) translateZ(18px);
  }
}

.ax-promo-close {
  position: absolute;
  top: 16px;
  right: 16px;
  z-index: 3;
  width: 40px;
  height: 40px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.04);
  color: #a8a8a8;
  font-size: 24px;
  line-height: 1;
  cursor: pointer;
  transform: translateZ(28px);
  transition: background 0.2s, color 0.2s, border-color 0.2s, transform 0.2s;
}

.ax-promo-close:hover {
  background: rgba(0, 255, 170, 0.12);
  border-color: rgba(0, 255, 170, 0.35);
  color: var(--ax-green);
  transform: translateZ(28px) scale(1.06);
}

.ax-promo-body {
  position: relative;
  padding: 40px 40px 36px;
  text-align: center;
  transform: translateZ(22px);
}

.ax-promo-mark {
  width: 64px;
  height: 64px;
  margin: 0 auto 18px;
  border-radius: 16px;
  display: block;
  object-fit: cover;
  box-shadow:
    0 8px 20px rgba(0, 255, 170, 0.28),
    0 0 0 1px rgba(0, 255, 170, 0.25);
  transform: translateZ(36px);
}

.ax-promo-brand {
  margin: 0 0 6px;
  font-family: "Montserrat", system-ui, sans-serif;
  font-weight: 800;
  font-size: clamp(1.55rem, 4.2vw, 2rem);
  letter-spacing: 0.01em;
  color: #fff;
  text-shadow: 0 10px 28px rgba(0, 102, 255, 0.28);
}

.ax-promo-brand span {
  color: var(--ax-green);
}

.ax-promo-tag {
  display: inline-block;
  margin: 0 0 18px;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(0, 255, 170, 0.85);
}

.ax-promo-title {
  margin: 0 0 12px;
  font-family: "Montserrat", system-ui, sans-serif;
  font-size: clamp(1.12rem, 3.2vw, 1.35rem);
  font-weight: 700;
  line-height: 1.4;
  color: #f4f6f8;
}

.ax-promo-text {
  margin: 0 0 14px;
  font-size: 0.98rem;
  font-weight: 500;
  line-height: 1.55;
  color: #aeb6c2;
  max-width: 36em;
  margin-left: auto;
  margin-right: auto;
}

.ax-promo-offer {
  margin: 0 0 28px;
  font-size: 1.02rem;
  font-weight: 600;
  color: #dce3ec;
  line-height: 1.45;
}

.ax-promo-offer strong {
  color: var(--ax-green);
  font-weight: 800;
}

.ax-promo-cta-wrap {
  perspective: 700px;
  display: block;
}

.ax-promo-cta {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 220px;
  padding: 16px 36px;
  border: none;
  border-radius: 14px;
  font-family: "Montserrat", system-ui, sans-serif;
  font-size: 1.05rem;
  font-weight: 800;
  letter-spacing: 0.03em;
  text-decoration: none;
  color: #04140e;
  background: linear-gradient(180deg, #4dffc8 0%, var(--ax-green) 48%, #00c988 100%);
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.38) inset,
    0 -2px 0 rgba(0, 0, 0, 0.18) inset,
    0 9px 0 #009966,
    0 16px 32px rgba(0, 255, 170, 0.32),
    0 6px 16px rgba(0, 0, 0, 0.4);
  transform: translateZ(42px) rotateX(7deg);
  cursor: pointer;
  animation: ax-promo-pulse 2.1s ease-in-out infinite;
  transition: filter 0.2s;
}

.ax-promo-cta:hover {
  filter: brightness(1.07);
  animation-play-state: paused;
  transform: translateZ(50px) rotateX(3deg) scale(1.035);
}

.ax-promo-cta:active {
  transform: translateZ(22px) rotateX(9deg) translateY(5px) scale(0.98);
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.25) inset,
    0 3px 0 #009966,
    0 8px 16px rgba(0, 255, 170, 0.22);
}

.ax-promo-note {
  margin: 16px 0 0;
  font-size: 0.78rem;
  color: #7a8494;
}

@keyframes ax-promo-pulse {
  0%,
  100% {
    transform: translateZ(42px) rotateX(7deg) scale(1);
    box-shadow:
      0 1px 0 rgba(255, 255, 255, 0.38) inset,
      0 -2px 0 rgba(0, 0, 0, 0.18) inset,
      0 9px 0 #009966,
      0 16px 32px rgba(0, 255, 170, 0.32),
      0 6px 16px rgba(0, 0, 0, 0.4);
  }
  50% {
    transform: translateZ(52px) rotateX(3deg) scale(1.045);
    box-shadow:
      0 1px 0 rgba(255, 255, 255, 0.42) inset,
      0 -2px 0 rgba(0, 0, 0, 0.18) inset,
      0 11px 0 #00aa77,
      0 24px 42px rgba(0, 255, 170, 0.42),
      0 10px 22px rgba(0, 102, 255, 0.22);
  }
}

@media (prefers-reduced-motion: reduce) {
  .ax-promo-card,
  .ax-promo-cta,
  .ax-promo-shine {
    animation: none !important;
    transition: opacity 0.2s ease !important;
  }

  .ax-promo-root.is-open .ax-promo-card {
    transform: none;
  }

  .ax-promo-cta {
    transform: none;
  }
}

@media (max-width: 560px) {
  .ax-promo-body {
    padding: 32px 22px 28px;
  }

  .ax-promo-cta {
    min-width: 100%;
    width: 100%;
  }
}
