/* ══════════════════════════════════════════════
   SECTOR WHEEL  —  sector-wheel.css
══════════════════════════════════════════════ */

/* Spinning border keyframe */
@keyframes sxRingSpin {
  to { transform: rotate(360deg); }
}

/* ── Section shell ── */
.sx-section {
  position: relative;
  background: linear-gradient(170deg, #051a24 0%, #041318 30%, #030e12 60%, #020a0d 100%);
  padding: 52px 0 60px;
  overflow: hidden;
}

/* Bottom fade — sits behind all content */
.sx-section::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 200px;
  background: linear-gradient(to bottom,
    rgba(3, 14, 18, 0)    0%,
    rgba(3, 14, 18, 0.55) 55%,
    rgba(3, 14, 18, 0.85) 100%
  );
  pointer-events: none;
  z-index: 0;
}

/* Ambient radial glow */
.sx-section::before {
  content: '';
  position: absolute;
  width: 1000px;
  height: 500px;
  border-radius: 50%;
  background: radial-gradient(ellipse at center,
    rgba(72,192,191,0.09) 0%,
    rgba(72,192,191,0.03) 42%,
    transparent 68%);
  top: 52%;
  left: 50%;
  transform: translate(-50%, -50%);
  pointer-events: none;
  z-index: 0;
}

/* ── Header ── */
.sx-header {
  position: relative;
  z-index: 3;
}
.sx-header h2 {
  color: #e3e1e2 !important;
}
.sx-header .section__sub {
  color: rgba(227,225,226,0.5) !important;
  max-width: 520px;
  margin: 0 auto;
}

/* ── Stage wrapper ── */
.sx-stage-wrap {
  position: relative;
  height: 300px;
  margin: 64px 0 44px;
  perspective: 1400px;
  z-index: 3;
}

/* ── Stage ── */
.sx-stage {
  position: relative;
  width: 100%;
  height: 100%;
}

/* ── Card wrappers (handle positioning + spinning ring) ── */
.sx-card-wrap {
  position: absolute;
  top: 50%;
  left: 50%;
  will-change: transform, opacity;
  transition:
    transform 0.65s cubic-bezier(0.22, 1, 0.36, 1),
    opacity   0.65s ease;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
}

/* Active wrapper becomes the spinning ring */
.sx-card-wrap.sx-active {
  border-radius: 18px;
  overflow: hidden;
  padding: 2px;
}
.sx-card-wrap.sx-active::before {
  content: '';
  position: absolute;
  width: 200%;
  height: 200%;
  top: -50%;
  left: -50%;
  background: conic-gradient(
    from 0deg,
    transparent          0deg,
    transparent          50deg,
    rgba(72,192,191,0.3) 100deg,
    #48c0bf              162deg,
    rgba(255,255,255,0.85) 180deg,
    #48c0bf              198deg,
    rgba(72,192,191,0.3) 260deg,
    transparent          310deg,
    transparent          360deg
  );
  animation: sxRingSpin 3.5s linear infinite;
  pointer-events: none;
  z-index: 1;
}

/* ── Cards ── */
.sx-card {
  display: block;
  width: 308px;
  padding: 26px 24px 22px;
  border-radius: 16px;
  background: linear-gradient(145deg,
    rgba(72,192,191,0.18) 0%,
    rgba(72,192,191,0.09) 22%,
    rgba(8,48,64,0.92)   55%,
    rgba(5,30,42,0.98)   100%);
  border: 1px solid rgba(72,192,191,0.28);
  box-sizing: border-box;
  text-decoration: none;
  cursor: pointer;
  position: relative;
  z-index: 2;
  transition:
    box-shadow   0.65s ease,
    border-color 0.4s  ease;
}

/* Active card — solid background to pop against ring, border hidden (ring provides it) */
.sx-card.sx-active {
  border-color: transparent;
  background:
    linear-gradient(145deg,
      rgba(72,192,191,0.20) 0%,
      rgba(72,192,191,0.08) 22%,
      transparent          55%,
      transparent          100%),
    linear-gradient(145deg,
      #072638 0%,
      #083040 55%,
      #041b28 100%);
  box-shadow:
    0 0 64px rgba(72,192,191,0.18),
    0 24px 52px rgba(4,26,36,0.65),
    inset 0 1px 0 rgba(72,192,191,0.14);
}

/* ── Card contents ── */
.sx-card__icon {
  width: 34px;
  height: 34px;
  color: #48c0bf;
  margin-bottom: 14px;
  opacity: 0.88;
}
.sx-card__tag {
  display: block;
  font-size: 9.5px;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(72,192,191,0.65);
  font-family: var(--font-body, 'General Sans', system-ui);
  margin-bottom: 7px;
}
.sx-card__name {
  font-family: var(--font-heading, 'Bomstad Display', system-ui);
  font-size: 22px;
  font-weight: 700;
  color: #e3e1e2;
  margin: 0 0 10px;
  line-height: 1.18;
  letter-spacing: -0.01em;
  word-break: break-word;
  overflow-wrap: break-word;
}
.sx-card__desc {
  font-family: var(--font-body, 'General Sans', system-ui);
  font-size: 12.5px;
  line-height: 1.65;
  color: rgba(227,225,226,0.5);
  margin: 0 0 16px;
}
.sx-card__stat {
  display: inline-flex;
  align-items: center;
  font-size: 10.5px;
  font-weight: 700;
  font-family: var(--font-body, system-ui);
  color: #48c0bf;
  background: rgba(72,192,191,0.08);
  border: 1px solid rgba(72,192,191,0.2);
  padding: 3px 11px;
  border-radius: 20px;
  white-space: nowrap;
}

/* ── Controls row ── */
.sx-controls {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
  position: relative;
  z-index: 3;
}
.sx-btn {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(72,192,191,0.10);
  border: 1px solid rgba(72,192,191,0.35);
  color: #48c0bf;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  flex-shrink: 0;
  transition: background 0.2s, border-color 0.2s, color 0.2s;
  touch-action: manipulation;
}
.sx-btn:hover {
  background: rgba(72,192,191,0.1);
  border-color: rgba(72,192,191,0.35);
  color: #48c0bf;
}
.sx-dots {
  display: flex;
  gap: 8px;
  align-items: center;
}
.sx-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: rgba(227,225,226,0.2);
  border: none;
  cursor: pointer;
  padding: 0;
  transition: background 0.25s ease, transform 0.25s ease;
}
.sx-dot.sx-dot--active {
  background: #48c0bf;
  transform: scale(1.4);
}

/* ── Responsive ── */
@media (max-width: 900px) {
  .sx-stage-wrap { height: 272px; }
  .sx-card { width: 272px; padding: 22px 18px 18px; }
  .sx-card__name { font-size: 19px; }
  .sx-card__desc { font-size: 12px; }
}
@media (max-width: 620px) {
  .sx-section { padding: 64px 0 72px; }
  .sx-stage-wrap { height: 248px; margin: 44px 0 36px; }
  .sx-card { width: 248px; padding: 20px 16px 16px; }
  .sx-card__name { font-size: 17px; }
  .sx-card__icon { width: 28px; height: 28px; margin-bottom: 10px; }
}
