/* ── FAQ Page Styles ────────────────────────────────────────── */

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  font-family: 'Inter', -apple-system, sans-serif;
  background: #0a0a0f;
  color: #e2e8f0;
  min-height: 100vh;
  overflow-x: hidden;
}

.noise-overlay {
  position: fixed; inset: 0; pointer-events: none; z-index: 9999;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.03'/%3E%3C/svg%3E");
}

/* ── Navbar (match main site) ─────────── */
.navbar {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  background: rgba(10,10,15,.85); backdrop-filter: blur(20px) saturate(1.5);
  -webkit-backdrop-filter: blur(20px) saturate(1.5);
  border-bottom: 1px solid rgba(99,102,241,.1);
}
.nav-inner {
  max-width: 1200px; margin: 0 auto;
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px 24px;
}
.nav-logo {
  display: flex; align-items: center; gap: 10px;
  text-decoration: none; color: #e2e8f0;
  font-weight: 700; font-size: 17px;
}
.nav-links a {
  color: #94a3b8; text-decoration: none; font-size: 14px; font-weight: 500;
  transition: color .2s;
  padding: 6px 14px; border-radius: 8px;
}
.nav-links a:hover { color: #e2e8f0; background: rgba(99,102,241,.1); }

/* ── FAQ Hero ─────────────────────────── */
.faq-hero {
  position: relative; overflow: hidden;
  padding: 140px 24px 80px;
  text-align: center;
}
.faq-hero-bg {
  position: absolute; inset: 0; overflow: hidden;
}
.orb {
  position: absolute; border-radius: 50%; filter: blur(80px);
  animation: orbFloat 8s ease-in-out infinite;
}
.orb-1 { width: 400px; height: 400px; background: rgba(99,102,241,.15); top: -100px; left: 10%; }
.orb-2 { width: 350px; height: 350px; background: rgba(168,85,247,.12); bottom: -80px; right: 5%; animation-delay: -3s; }
.orb-3 { width: 200px; height: 200px; background: rgba(236,72,153,.1); top: 40%; left: 60%; animation-delay: -5s; }
@keyframes orbFloat {
  0%, 100% { transform: translateY(0) scale(1); }
  50% { transform: translateY(-30px) scale(1.05); }
}

.faq-hero-content { position: relative; z-index: 1; max-width: 720px; margin: 0 auto; }

.faq-hero-badge {
  display: inline-flex; align-items: center; gap: 6px;
  background: rgba(99,102,241,.12); border: 1px solid rgba(99,102,241,.2);
  padding: 6px 16px; border-radius: 20px;
  font-size: 13px; font-weight: 500; color: #818cf8;
  margin-bottom: 20px;
}

.faq-hero-title {
  font-size: clamp(32px, 6vw, 52px); font-weight: 800;
  background: linear-gradient(135deg,#e2e8f0,#94a3b8);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1.15; margin-bottom: 12px;
}

.faq-hero-desc {
  font-size: 16px; color: #64748b;
  margin-bottom: 36px;
}

/* ── Search ──────────────────────────── */
.faq-search-wrap {
  position: relative; max-width: 560px; margin: 0 auto;
}
.faq-search-icon {
  position: absolute; left: 18px; top: 50%; transform: translateY(-50%);
  color: #475569; pointer-events: none;
  transition: color .3s;
}
.faq-search-input {
  width: 100%;
  background: rgba(255,255,255,.04); border: 1px solid rgba(99,102,241,.15);
  border-radius: 14px; padding: 16px 44px 16px 50px;
  font-size: 16px; color: #e2e8f0;
  outline: none; transition: all .3s;
  font-family: inherit;
}
.faq-search-input::placeholder { color: #475569; }
.faq-search-input:focus {
  border-color: rgba(99,102,241,.4);
  background: rgba(99,102,241,.06);
  box-shadow: 0 0 0 4px rgba(99,102,241,.08);
}
.faq-search-input:focus ~ .faq-search-icon,
.faq-search-input:not(:placeholder-shown) ~ .faq-search-icon { color: #818cf8; }
.faq-search-clear {
  position: absolute; right: 14px; top: 50%; transform: translateY(-50%);
  background: rgba(255,255,255,.05); border: none; color: #475569;
  width: 28px; height: 28px; border-radius: 8px;
  cursor: pointer; font-size: 13px; display: none;
  align-items: center; justify-content: center;
  transition: all .2s;
}
.faq-search-clear:hover { background: rgba(255,255,255,.1); color: #94a3b8; }
.faq-search-input:not(:placeholder-shown) ~ .faq-search-clear { display: flex; }

/* ── Category Tags ───────────────────── */
.faq-categories {
  display: flex; flex-wrap: wrap; gap: 8px;
  justify-content: center; margin-top: 24px;
}
.faq-cat-tag {
  padding: 6px 16px; border-radius: 20px;
  font-size: 13px; font-weight: 500;
  background: rgba(255,255,255,.04);
  border: 1px solid rgba(255,255,255,.06);
  color: #64748b; cursor: pointer;
  transition: all .2s;
}
.faq-cat-tag:hover { border-color: rgba(99,102,241,.3); color: #94a3b8; }
.faq-cat-tag.active {
  background: rgba(99,102,241,.15); border-color: rgba(99,102,241,.35);
  color: #818cf8;
}

/* ── Section ─────────────────────────── */
.faq-section {
  padding: 0 24px 80px;
}
.faq-inner {
  max-width: 800px; margin: 0 auto;
}

.faq-stats {
  font-size: 13px; color: #475569; margin-bottom: 24px;
  padding: 0 4px;
}
.faq-stats strong { color: #94a3b8; }

/* ── Results Empty ────────────── */
.faq-empty {
  text-align: center; padding: 80px 20px;
}
.faq-empty-icon { margin-bottom: 16px; opacity: .4; }
.faq-empty p { color: #475569; font-size: 15px; }

/* ── Q&A List ────────────────────────── */
.faq-list { display: flex; flex-direction: column; gap: 28px; }

.faq-item {
  background: rgba(255,255,255,.03);
  border: 1px solid rgba(255,255,255,.06);
  border-radius: 14px;
  overflow: hidden;
  transition: all .3s;
}
.faq-item:hover { border-color: rgba(99,102,241,.15); }
.faq-item.highlight {
  border-color: rgba(99,102,241,.25);
  background: rgba(99,102,241,.04);
}

.faq-question {
  display: flex; align-items: center; gap: 12px;
  padding: 16px 20px;
  cursor: pointer;
  transition: background .2s;
  user-select: none;
}
.faq-question:hover { background: rgba(255,255,255,.02); }
.faq-item.open .faq-question { background: rgba(99,102,241,.04); }

.faq-q-icon {
  flex-shrink: 0;
  width: 28px; height: 28px; border-radius: 8px;
  background: rgba(99,102,241,.12);
  display: flex; align-items: center; justify-content: center;
  font-size: 13px; color: #818cf8;
  transition: all .3s;
}
.faq-item.open .faq-q-icon { background: rgba(99,102,241,.2); }

.faq-q-text {
  flex: 1; font-size: 15px; font-weight: 500;
  color: #e2e8f0; line-height: 1.4;
}

.faq-q-arrow {
  flex-shrink: 0;
  width: 24px; height: 24px;
  display: flex; align-items: center; justify-content: center;
  color: #475569; transition: transform .3s;
}
.faq-item.open .faq-q-arrow { transform: rotate(180deg); color: #818cf8; }
.faq-q-arrow svg { transition: transform .3s; }

.faq-answer-wrap {
  max-height: 0; overflow: hidden;
  transition: max-height .4s cubic-bezier(.4,0,.2,1);
}
.faq-item.open .faq-answer-wrap { max-height: 10000px; }

.faq-answer {
  padding: 16px 20px 20px 60px;
  font-size: 14px; line-height: 1.8;
  color: #94a3b8;
}
.faq-answer strong { color: #cbd5e1; }
.faq-answer code {
  background: rgba(99,102,241,.1);
  padding: 2px 8px; border-radius: 4px;
  font-size: 13px; color: #818cf8;
}
.faq-answer a { color: #818cf8; text-decoration: underline; }
.faq-answer ul, .faq-answer ol { padding-left: 20px; margin: 8px 0; }
.faq-answer li { margin: 4px 0; }
.faq-answer p { margin: 4px 0; }

/* ── Empty Search ────────────────────── */
.faq-no-results {
  text-align: center; padding: 60px 20px;
}
.faq-no-results-icon { margin-bottom: 12px; opacity: .3; }
.faq-no-results h3 { font-size: 18px; color: #64748b; margin-bottom: 8px; font-weight: 600; }
.faq-no-results p { font-size: 14px; color: #475569; }

/* ── Toast ───────────────────────────── */
.toast {
  position: fixed; bottom: 24px; left: 50%; transform: translateX(-50%) translateY(100px);
  background: rgba(15,23,42,.95); backdrop-filter: blur(12px);
  border: 1px solid rgba(99,102,241,.2);
  color: #e2e8f0; padding: 12px 24px; border-radius: 10px;
  font-size: 14px; font-weight: 500;
  opacity: 0; transition: all .4s cubic-bezier(.4,0,.2,1);
  z-index: 9999; white-space: nowrap; pointer-events: none;
}
.toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }
.toast.error { border-color: rgba(239,68,68,.3); color: #fca5a5; }

/* ── Animations ──────────────────────── */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(16px); }
  to { opacity: 1; transform: translateY(0); }
}
.faq-item { animation: fadeUp .4s ease-out both; }
.faq-item:nth-child(1) { animation-delay: .03s; }
.faq-item:nth-child(2) { animation-delay: .06s; }
.faq-item:nth-child(3) { animation-delay: .09s; }
.faq-item:nth-child(4) { animation-delay: .12s; }
.faq-item:nth-child(5) { animation-delay: .15s; }
.faq-item:nth-child(6) { animation-delay: .18s; }

/* ── Responsive ──────────────────────── */
.faq-img:hover { opacity: .85; }

.faq-lightbox {
  position: fixed; z-index: 9999; inset: 0;
  background: rgba(0,0,0,.85);
  display: flex; align-items: center; justify-content: center;
  cursor: zoom-out;
}
.faq-lightbox-img {
  max-width: 90%; max-height: 90%;
  border-radius: 8px;
  box-shadow: 0 8px 40px rgba(0,0,0,.5);
}
.faq-lightbox-close {
  position: absolute; top: 16px; right: 24px;
  font-size: 32px; color: #94a3b8;
  cursor: pointer; line-height: 1;
}
.faq-lightbox-close:hover { color: #fff; }

@media (max-width: 640px) {
  .faq-hero { padding: 120px 16px 60px; }
  .faq-question { padding: 14px 16px; }
  .faq-answer { padding: 0 16px 16px 52px; }
  .nav-inner { padding: 12px 16px; }
}
