/* --- FAQ — dark theme matching overall site --- */
.faq-section {
  position: relative;
  overflow: hidden;
  padding: clamp(86px, 11vw, 132px) 0;
  background: var(--bg);
  isolation: isolate;
}

/* subtle grid texture */
.faq-section::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  opacity: 0.06;
  background-image:
    linear-gradient(rgba(255,255,255,0.07) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.07) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(circle at center, black 0%, transparent 72%);
}

/* green glow at top */
.faq-bg-overlay {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background:
    radial-gradient(circle at 50% 0%, rgba(0,255,136,0.10), transparent 52%),
    radial-gradient(circle at 80% 80%, rgba(0,212,255,0.05), transparent 40%);
}

.faq-section .container {
  position: relative;
  z-index: 1;
}

/* ── CARD — dark glass ── */
.faq-card {
  width: min(100%, 1100px);
  margin: 0 auto;
  padding: clamp(30px, 5vw, 64px);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 28px;
  background: rgba(255,255,255,0.035);
  color: var(--text);
  box-shadow:
    0 0 0 1px rgba(0,255,136,0.05) inset,
    0 40px 120px rgba(0,0,0,0.56);
  backdrop-filter: blur(22px) saturate(120%);
  -webkit-backdrop-filter: blur(22px) saturate(120%);
}

/* ── HEADER ── */
.faq-header {
  max-width: 760px;
  margin: 0 auto clamp(28px, 5vw, 52px);
  text-align: center;
}

.faq-eyebrow {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 32px;
  padding: 0 14px;
  margin-bottom: 18px;
  border: 1px solid rgba(0,255,136,0.2);
  border-radius: 999px;
  background: rgba(0,255,136,0.08);
  color: var(--green);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.faq-header h2 {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(2.3rem, 5.5vw, 5.1rem);
  font-weight: 800;
  line-height: 0.96;
  letter-spacing: -0.04em;
  color: var(--white);
}

.faq-header p {
  max-width: 680px;
  margin: 22px auto 0;
  color: var(--muted);
  font-size: clamp(15px, 1.45vw, 18px);
  line-height: 1.75;
}

/* ── ACCORDION ── */
.faq-accordion {
  display: grid;
  gap: 12px;
}

.faq-item {
  overflow: hidden;
  border: 1px solid rgba(255,255,255,0.07);
  border-radius: 16px;
  background: rgba(255,255,255,0.03);
  box-shadow: 0 4px 20px rgba(0,0,0,0.28);
  opacity: 0;
  transform: translateY(18px);
  transition:
    opacity 0.55s ease,
    transform 0.55s cubic-bezier(0.16,1,0.3,1),
    border-color 0.3s ease,
    box-shadow 0.3s ease,
    background 0.3s ease;
}

.faq-card.revealed .faq-item,
.faq-card.is-visible .faq-item {
  opacity: 1;
  transform: translateY(0);
  transition-delay: calc(var(--faq-index,0) * 80ms);
}

.faq-item:hover,
.faq-item.is-open {
  border-color: rgba(0,255,136,0.18);
  background: rgba(0,255,136,0.04);
  box-shadow: 0 8px 32px rgba(0,0,0,0.36), 0 0 0 1px rgba(0,255,136,0.08) inset;
}

.faq-item h3 { margin: 0; }

.faq-question {
  width: 100%;
  min-height: 76px;
  padding: 0 clamp(18px, 3vw, 28px);
  border: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  text-align: left;
  cursor: pointer;
  color: var(--white);
  background: transparent;
  font: inherit;
}

.faq-question span:first-child {
  font-size: clamp(16px, 1.9vw, 21px);
  font-weight: 700;
  line-height: 1.3;
  color: var(--text);
}

.faq-item.is-open .faq-question span:first-child {
  color: var(--white);
}

.faq-icon {
  position: relative;
  width: 38px;
  height: 38px;
  flex: 0 0 38px;
  border-radius: 50%;
  background: rgba(255,255,255,0.07);
  border: 1px solid rgba(255,255,255,0.1);
  box-shadow: none;
  transition: transform 0.35s cubic-bezier(0.16,1,0.3,1), background 0.35s ease, border-color 0.35s ease;
}

.faq-icon::before,
.faq-icon::after {
  content: "";
  position: absolute;
  left: 50%; top: 50%;
  width: 13px; height: 1.8px;
  border-radius: 2px;
  background: rgba(255,255,255,0.7);
  transform: translate(-50%, -50%);
  transition: transform 0.35s cubic-bezier(0.16,1,0.3,1), background 0.35s;
}
.faq-icon::after {
  transform: translate(-50%, -50%) rotate(90deg);
}

.faq-item.is-open .faq-icon {
  background: var(--green);
  border-color: var(--green);
  transform: rotate(180deg);
}
.faq-item.is-open .faq-icon::before,
.faq-item.is-open .faq-icon::after {
  background: #050505;
}
.faq-item.is-open .faq-icon::after {
  transform: translate(-50%, -50%) rotate(0deg);
}

.faq-answer {
  overflow: hidden;
  height: 0;
  padding: 0 clamp(18px, 3vw, 28px);
  transition: height 0.4s cubic-bezier(0.16,1,0.3,1);
}
.faq-item.is-open .faq-answer { height: auto; }

.faq-answer p {
  margin: 0;
  padding: 0 0 clamp(22px, 3vw, 30px);
  max-width: 790px;
  color: var(--muted);
  font-size: clamp(14px, 1.4vw, 16px);
  line-height: 1.78;
}

.faq-question:focus-visible {
  outline: 2px solid rgba(0,255,136,0.6);
  outline-offset: -6px;
  border-radius: 4px;
}

@media (max-width: 768px) {
  .faq-section { padding: 78px 0; }
  .faq-section .container { padding-inline: 16px; }
  .faq-card { border-radius: 22px; padding: 28px 18px; }
  .faq-header { margin-bottom: 28px; }
  .faq-question { min-height: 68px; padding-inline: 16px; }
  .faq-icon { width: 34px; height: 34px; flex-basis: 34px; }
  .faq-answer { padding-inline: 16px; }
}

@media (prefers-reduced-motion: reduce) {
  .faq-item,
  .faq-answer,
  .faq-icon,
  .faq-icon::before,
  .faq-icon::after {
    transition-duration: 0.01ms !important;
  }
}
