/* ==========================================================================
   Rotating CTA band (home page)
   --------------------------------------------------------------------------
   The original theme's violet glass treatment, kept as it was. The former
   `.box` / `.large-box` / `.small-box` class names were too generic to sit in
   a global stylesheet and are now `.rotating-*`, but the visual design is
   unchanged.

   One correction: the original set `font-family: "Poppins"`, a face the site
   never loads, so this block silently fell back to the body font. It now asks
   for the body font directly.
   ========================================================================== */

.rotating-section {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 160px 0;
  overflow: hidden;
  color: var(--color-white);
  font-family: var(--font-body);
}

/* --- Rotating ring ------------------------------------------------------- */
.rotating-section .rotating-ring {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  opacity: 0.25;
  pointer-events: none;
  z-index: 0;
  animation: centpay-ring-spin 30s linear infinite;
}

.rotating-section .rotating-ring span {
  position: absolute;
  transform-origin: top left;
  font-size: 70px;
  font-weight: 600;
  letter-spacing: 10px;
  text-transform: uppercase;
  white-space: pre;
  color: var(--color-white);
}

@keyframes centpay-ring-spin {
  from {
    transform: translate(-50%, -50%) rotate(0deg);
  }
  to {
    transform: translate(-50%, -50%) rotate(360deg);
  }
}

/* --- Panel grid ---------------------------------------------------------- */
.rotating-section .rotating-wrapper {
  position: relative;
  z-index: 2;
  display: flex;
  gap: 40px;
  align-items: flex-start;
  justify-content: center;
  width: 70%;
  max-width: 1000px;
  margin: 0 auto;
}

/* --- Lead panel ---------------------------------------------------------- */
.rotating-section .rotating-panel.rotating-panel--lead {
  flex: 1;
  padding: 60px 50px;
  border-radius: 30px;
  background: linear-gradient(
    135deg,
    rgba(145, 98, 255, 0.25) 0%,
    rgba(28, 48, 168, 0.25) 60%,
    rgba(8, 11, 24, 0.3) 100%
  );
  box-shadow: 0 10px 40px rgba(145, 98, 255, 0.25);
  backdrop-filter: blur(15px);
  -webkit-backdrop-filter: blur(15px);
  transition:
    transform 0.3s ease,
    box-shadow 0.3s ease;
}

.rotating-section .rotating-panel.rotating-panel--lead:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 50px rgba(145, 98, 255, 0.35);
}

.rotating-section .rotating-panel.rotating-panel--lead h2 {
  margin-bottom: 15px;
  font-size: 2.6rem;
  font-weight: 700;
  line-height: 1.2;
  background: linear-gradient(90deg, #ebf7fd, #9162ff);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: #ebf7fd;
}

.rotating-section .rotating-panel.rotating-panel--lead .brand {
  margin-top: 25px;
  font-size: 0.9rem;
  opacity: 0.7;
}

/* --- Right column -------------------------------------------------------- */
.rotating-section .rotating-column {
  display: flex;
  flex-direction: column;
  gap: 25px;
  flex: 0.9;
}

.rotating-section .rotating-panel {
  padding: 40px;
  border-radius: 30px;
  background: linear-gradient(
    135deg,
    rgba(145, 98, 255, 0.22) 0%,
    rgba(28, 48, 168, 0.22) 70%
  );
  box-shadow: 0 8px 35px rgba(145, 98, 255, 0.18);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  transition:
    transform 0.3s ease,
    box-shadow 0.3s ease;
}

.rotating-section .rotating-panel:hover {
  transform: translateY(-6px);
  box-shadow: 0 15px 45px rgba(145, 98, 255, 0.25);
}

.rotating-section .rotating-panel h3 {
  margin-bottom: 15px;
  font-size: 1.6rem;
  line-height: 1.3;
  color: #ebf7fd;
}

.rotating-section .rotating-panel p {
  margin-bottom: 10px;
  color: rgba(255, 255, 255, 0.85);
  font-size: 1.05rem;
}

.rotating-section .rotating-panel.rotating-panel--lead p {
  color: rgba(255, 255, 255, 0.9);
}

.rotating-section .rotating-panel a {
  color: #ebf7fd;
  font-weight: 500;
  text-decoration: underline;
  text-underline-offset: 3px;
  transition: color 0.3s ease;
}

.rotating-section .rotating-panel a:hover,
.rotating-section .rotating-panel a:focus-visible {
  color: #9162ff;
}

/* --- Links strip --------------------------------------------------------- */
.rotating-section .rotating-panel--links {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: var(--space-sm);
  padding: 25px 35px;
  font-size: 0.95rem;
  background: linear-gradient(
    135deg,
    rgba(145, 98, 255, 0.25) 0%,
    rgba(28, 48, 168, 0.25) 80%
  );
  box-shadow: 0 8px 30px rgba(145, 98, 255, 0.2);
}

/* --- Responsive ---------------------------------------------------------- */
@media (max-width: 900px) {
  .rotating-section {
    padding: 110px 0;
  }

  .rotating-section .rotating-wrapper {
    flex-direction: column;
    width: 90%;
  }

  .rotating-section .rotating-column {
    width: 100%;
  }

  .rotating-section .rotating-panel.rotating-panel--lead {
    padding: 40px 30px;
  }

  .rotating-section .rotating-panel.rotating-panel--lead h2 {
    font-size: 2rem;
  }

  .rotating-section .rotating-ring span {
    font-size: 42px;
  }
}
