.faq-page {
  overflow-x: clip;
  position: relative;
  isolation: isolate;
  background:
    radial-gradient(900px 450px at 15% -10%, rgba(161, 136, 255, 0.18), transparent 60%),
    radial-gradient(700px 350px at 85% 5%, rgba(95, 195, 255, 0.14), transparent 60%),
    #0f172a;
}

.faq-page::before {
  content: "";
  position: fixed;
  inset: -14% -8%;
  width: auto;
  height: 130vh;
  background:
    radial-gradient(ellipse 70% 50% at 22% 10%, rgba(124, 58, 237, 0.36), transparent 62%),
    radial-gradient(ellipse 60% 40% at 80% 25%, rgba(99, 102, 241, 0.24), transparent 60%),
    radial-gradient(ellipse 76% 44% at 50% 100%, rgba(124, 58, 237, 0.16), transparent 64%);
  filter: blur(42px);
  opacity: 0.9;
  pointer-events: none;
  z-index: 0;
  animation: faqPageBlob 16s ease-in-out infinite alternate;
}

.faq-page::after {
  content: "";
  position: fixed;
  inset: 0;
  background:
    radial-gradient(circle at 12% 18%, rgba(124, 58, 237, 0.16), transparent 38%),
    radial-gradient(circle at 88% 72%, rgba(56, 189, 248, 0.12), transparent 34%);
  pointer-events: none;
  z-index: -1;
}

.faq-page .container,
.faq-hero,
.faq-nav,
.faq-section {
  position: relative;
  z-index: 1;
}

.faq-decor {
  position: absolute;
  pointer-events: none;
  z-index: 0;
}

.faq-decor--grid {
  left: -90px;
  top: 460px;
  width: 360px;
  height: 360px;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.08) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.08) 1px, transparent 1px);
  background-size: 18px 18px;
  mask-image: radial-gradient(circle at 50% 50%, black 45%, transparent 90%);
  opacity: 0.26;
}

.faq-decor--glow {
  right: 6%;
  bottom: 120px;
  width: 320px;
  height: 320px;
  background: radial-gradient(circle at 50% 50%, rgba(124, 58, 237, 0.22), transparent 72%);
  filter: blur(8px);
  z-index: -1;
}

.faq-bg-particles {
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
  z-index: -1;
}

.faq-bg-particles span {
  position: absolute;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.16);
  background: radial-gradient(circle at 30% 30%, rgba(255, 255, 255, 0.28), rgba(124, 58, 237, 0.04));
  box-shadow: 0 0 30px rgba(124, 58, 237, 0.2);
  animation: faqParticleFloat 14s ease-in-out infinite;
}

.faq-bg-particles span:nth-child(1) {
  width: 120px;
  height: 120px;
  left: 6%;
  top: 160px;
}

.faq-bg-particles span:nth-child(2) {
  width: 64px;
  height: 64px;
  right: 10%;
  top: 580px;
  animation-delay: -3s;
  animation-duration: 12s;
}

.faq-bg-particles span:nth-child(3) {
  width: 94px;
  height: 94px;
  left: 18%;
  bottom: 220px;
  animation-delay: -6s;
}

.faq-bg-particles span:nth-child(4) {
  width: 140px;
  height: 140px;
  right: 16%;
  bottom: 80px;
  animation-delay: -2s;
  animation-duration: 18s;
}

.faq-hero {
  padding: 88px 0 46px;
}

.faq-eyebrow {
  display: inline-block;
  margin: 0 0 14px;
  padding: 6px 12px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 999px;
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.85);
}

.faq-lead {
  max-width: 760px;
  margin-top: 16px;
  color: rgba(255, 255, 255, 0.8);
}

.faq-nav {
  position: sticky;
  top: 0;
  z-index: 12;
  backdrop-filter: blur(10px);
}

.faq-nav-inner {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  padding: 14px 0;
}

.faq-chip {
  border: 1px solid rgba(255, 255, 255, 0.22);
  background: transparent;
  color: #fff;
  border-radius: 999px;
  font-size: 14px;
  line-height: 1;
  padding: 10px 14px;
  cursor: pointer;
  transition: background-color 0.22s ease, border-color 0.22s ease, transform 0.22s ease;
}

.faq-chip:hover,
.faq-chip.is-active {
  background: rgba(161, 136, 255, 0.22);
  border-color: rgba(161, 136, 255, 0.78);
}

.faq-chip:active {
  transform: translateY(1px);
}

.faq-section {
  padding-top: 40px;
  padding-bottom: 18px;
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.faq-section.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.faq-section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 20px;
}

.faq-accordion {
  display: grid;
  gap: 12px;
}

.faq-item {
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 20px;
  background:
    linear-gradient(135deg, rgba(124, 58, 237, 0.18) 0%, rgba(124, 58, 237, 0.03) 38%, rgba(255, 255, 255, 0.04) 100%),
    rgba(15, 23, 42, 0.84);
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.3);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  overflow: hidden;
  transition: transform 0.24s ease, border-color 0.24s ease, box-shadow 0.24s ease;
}

.faq-item::before {
  content: "";
  display: block;
  height: 1px;
  background: linear-gradient(90deg, rgba(124, 58, 237, 0.08), rgba(167, 139, 250, 0.8), rgba(124, 58, 237, 0.08));
}

.faq-item:hover {
  transform: translateY(-2px);
  border-color: rgba(167, 139, 250, 0.46);
  box-shadow: 0 18px 36px rgba(0, 0, 0, 0.36);
}

.faq-item .body-l {
  font-weight: 400;
}

.faq-question-wrap {
  margin: 0;
}

.faq-question {
  width: 100%;
  text-align: left;
  border: 0;
  background: transparent;
  color: #fff;
  font-size: 22px;
  line-height: 1.4;
  font-weight: 500;
  padding: 20px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  cursor: pointer;
}

.faq-icon {
  width: 28px;
  height: 28px;
  flex-shrink: 0;
  border-radius: 50%;
  border: 1px solid rgba(167, 139, 250, 0.56);
  background: rgba(124, 58, 237, 0.15);
  position: relative;
}

.faq-icon::before,
.faq-icon::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 12px;
  height: 2px;
  background: #fff;
  transform: translate(-50%, -50%);
  transition: transform 0.22s ease;
}

.faq-icon::after {
  transform: translate(-50%, -50%) rotate(90deg);
}

.faq-item.is-open .faq-icon::after {
  transform: translate(-50%, -50%) rotate(0deg);
}

.faq-answer {
  display: block;
  padding: 0 24px 22px;
  color: rgba(255, 255, 255, 0.84);
  animation: faqFadeIn 0.24s ease;
}

.faq-page .faq-answer[hidden] {
  display: none !important;
}

@keyframes faqPageBlob {
  0% {
    transform: translate(0, 0) scale(1);
  }
  100% {
    transform: translate(18px, -20px) scale(1.05);
  }
}

@keyframes faqParticleFloat {
  0% {
    transform: translate3d(0, 0, 0) scale(1);
    opacity: 0.28;
  }
  50% {
    transform: translate3d(0, -18px, 0) scale(1.06);
    opacity: 0.44;
  }
  100% {
    transform: translate3d(0, 0, 0) scale(1);
    opacity: 0.28;
  }
}

@keyframes faqFadeIn {
  from {
    opacity: 0;
    transform: translateY(-5px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 991px) {
  .faq-decor--grid {
    width: 280px;
    height: 280px;
  }

  .faq-hero {
    padding-top: 72px;
  }

  .faq-question {
    font-size: 18px;
    padding: 16px 18px;
  }

  .faq-answer {
    padding: 0 18px 18px;
  }
}

@media (max-width: 767px) {
  .faq-decor--grid,
  .faq-bg-particles {
    display: none;
  }

  .faq-decor--glow {
    width: 210px;
    height: 210px;
    right: -40px;
    bottom: 90px;
  }

  .faq-nav-inner {
    overflow-x: auto;
    flex-wrap: nowrap;
    padding-bottom: 8px;
    scrollbar-width: thin;
  }

  .faq-chip {
    white-space: nowrap;
  }

  .faq-section-head {
    flex-direction: column;
    align-items: flex-start;
  }
}

@media (prefers-reduced-motion: reduce) {
  .faq-section,
  .faq-chip,
  .faq-icon::before,
  .faq-icon::after,
  .faq-page::before,
  .faq-bg-particles span {
    transition: none;
    animation: none;
  }

  .faq-answer {
    animation: none;
  }
}
