/* FAQ Section - Homepage (home-ipfirst) exact dark theme match */
body.home-ipfirst .faq-section {
  padding: 0;
  margin-top: 32px;
  width: 100%;
  position: relative;
  z-index: 1;
  background: transparent;
  box-shadow: none;
  border-radius: 0;
}

body.home-ipfirst .faq-section > .container {
  max-width: var(--home-max);
  margin: 0 auto;
  padding: 0 18px;
}

body.home-ipfirst .faq-shell {
  background: linear-gradient(
    180deg,
    rgba(255, 255, 255, 0.06),
    rgba(255, 255, 255, 0.02)
  );
  border: 1px solid var(--home-stroke);
  backdrop-filter: blur(20px) saturate(160%);
  -webkit-backdrop-filter: blur(20px) saturate(160%);
  border-radius: var(--home-r2);
  padding: 2rem;
  margin: 2.5rem 0;
  box-shadow: var(--home-shadow);
  position: relative;
  overflow: hidden;
}

body.home-ipfirst .faq-shell::before {
  content: "";
  position: absolute;
  inset: -2px;
  background: radial-gradient(
      420px 280px at 15% 15%,
      rgba(138, 125, 255, 0.2),
      transparent 70%
    ),
    radial-gradient(
      420px 280px at 85% 10%,
      rgba(48, 215, 255, 0.16),
      transparent 70%
    ),
    radial-gradient(
      520px 320px at 50% 105%,
      rgba(0, 245, 212, 0.12),
      transparent 60%
    );
  pointer-events: none;
  z-index: 0;
}

body.home-ipfirst .faq-header {
  text-align: center;
  margin-bottom: 1.5rem;
  position: relative;
  z-index: 1;
}

body.home-ipfirst .faq-title {
  color: rgba(255, 255, 255, 0.95);
  margin: 0 0 0.5rem 0;
  font-size: 1.5rem;
  font-weight: 700;
  letter-spacing: -0.01em;
}

body.home-ipfirst .faq-subtitle {
  margin: 0;
  color: var(--home-text-muted);
  font-size: 0.95rem;
  line-height: 1.6;
}

body.home-ipfirst .faq-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.25rem;
  max-width: 100%;
  margin: 0;
  position: relative;
  z-index: 1;
}

body.home-ipfirst .faq-item {
  background: linear-gradient(
    180deg,
    rgba(255, 255, 255, 0.06),
    rgba(0, 0, 0, 0.12)
  );
  border: 1px solid rgba(138, 125, 255, 0.16);
  border-left: 2px solid rgba(138, 125, 255, 0.5);
  backdrop-filter: blur(16px) saturate(160%);
  -webkit-backdrop-filter: blur(16px) saturate(160%);
  border-radius: var(--home-r);
  overflow: hidden;
  transition: border-color 0.2s ease, background 0.2s ease, transform 0.2s ease;
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.45);
  position: relative;
}

body.home-ipfirst .faq-item::before {
  content: "";
  position: absolute;
  inset: -2px;
  pointer-events: none;
  z-index: 0;
  opacity: 0.9;
  background: radial-gradient(
      420px 260px at 18% 10%,
      rgba(138, 125, 255, 0.18),
      transparent 70%
    ),
    radial-gradient(
      420px 260px at 90% 0%,
      rgba(48, 215, 255, 0.12),
      transparent 70%
    );
}

body.home-ipfirst .faq-item > * {
  position: relative;
  z-index: 1;
}

body.home-ipfirst .faq-item:hover {
  border-color: rgba(255, 255, 255, 0.2);
  border-left-color: rgba(138, 125, 255, 0.75);
  transform: translateY(-1px);
}

body.home-ipfirst .faq-question {
  width: 100%;
  background: transparent;
  border: none;
  padding: 1.25rem;
  text-align: left;
  font-size: 1.05rem;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.95);
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  transition: background 0.2s ease;
}

body.home-ipfirst .faq-question:hover {
  background: rgba(138, 125, 255, 0.12);
}

body.home-ipfirst .faq-question span {
  flex: 1;
  line-height: 1.4;
}

body.home-ipfirst .faq-icon {
  flex-shrink: 0;
  color: var(--home-accent);
  transition: transform 0.3s ease;
}

body.home-ipfirst .faq-item[data-expanded="true"] .faq-icon {
  transform: rotate(180deg);
}

body.home-ipfirst .faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease-out;
}

body.home-ipfirst .faq-item[data-expanded="true"] .faq-answer {
  max-height: 500px;
  transition: max-height 0.5s ease-in;
}

body.home-ipfirst .faq-answer p {
  padding: 0 1.25rem 1.25rem;
  margin: 0;
  color: rgba(255, 255, 255, 0.85);
  font-size: 0.95rem;
  line-height: 1.7;
}

/* Mobile Responsiveness */
@media (max-width: 768px) {
  body.home-ipfirst .faq-shell {
    padding: 1.5rem;
    margin: 2rem 0;
  }

  body.home-ipfirst .faq-question {
    padding: 1rem;
    font-size: 0.95rem;
  }

  body.home-ipfirst .faq-answer p {
    padding: 0 1rem 1rem;
    font-size: 0.9rem;
  }

  body.home-ipfirst .faq-grid {
    grid-template-columns: 1fr;
    gap: 1rem;
  }
}

@media (max-width: 480px) {
  body.home-ipfirst .faq-shell {
    padding: 1.25rem;
  }

  body.home-ipfirst .faq-title {
    font-size: 1.25rem;
  }

  body.home-ipfirst .faq-question {
    padding: 0.85rem;
    font-size: 0.9rem;
  }

  body.home-ipfirst .faq-answer p {
    font-size: 0.85rem;
  }
}
