/* Codnixy — FAQ: liquid-glass panel with collapsibles */

.faq-section {
  position: relative;
  overflow: hidden;
}
.faq-section::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(to right, rgba(255,255,255,0.045) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255,255,255,0.045) 1px, transparent 1px);
  background-size: 120px 120px;
  mask-image: radial-gradient(ellipse 80% 60% at 30% 30%, #000 30%, transparent 90%);
  -webkit-mask-image: radial-gradient(ellipse 80% 60% at 30% 30%, #000 30%, transparent 90%);
  pointer-events: none;
}
.faq-section::after {
  content: "";
  position: absolute;
  top: -100px;
  left: -200px;
  width: 800px;
  height: 800px;
  background: radial-gradient(circle, rgba(58, 92, 255, 0.18), transparent 60%);
  filter: blur(60px);
  pointer-events: none;
}
.faq-grid {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 80px;
  align-items: start;
  position: relative;
}
.faq-side h2 {
  font-size: clamp(34px, 4vw, 52px);
  font-weight: 300;
  letter-spacing: -0.025em;
  line-height: 1.05;
  margin: 0 0 24px;
  max-width: 18ch;
}
.faq-side h2 em {
  font-family: "Instrument Serif", serif;
  font-style: italic;
  color: #cad6ff;
}
.faq-side p { color: var(--ink-dim); font-size: 15px; }

.faq-panel {
  position: relative;
  background:
    linear-gradient(160deg, rgba(58, 92, 255, 0.25) 0%, rgba(15, 25, 70, 0.55) 100%);
  border: 1px solid rgba(120, 150, 255, 0.2);
  border-radius: var(--radius-lg);
  padding: 18px 32px;
  backdrop-filter: blur(24px) saturate(140%);
  -webkit-backdrop-filter: blur(24px) saturate(140%);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.12),
    0 30px 70px rgba(10, 18, 50, 0.45);
  overflow: hidden;
}
.faq-panel::before {
  content: "";
  position: absolute;
  inset: -1px;
  border-radius: inherit;
  padding: 1px;
  background: linear-gradient(135deg, rgba(180,200,255,0.45), rgba(58,92,255,0) 40%, rgba(58,92,255,0) 60%, rgba(180,200,255,0.35));
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
          mask-composite: exclude;
  opacity: 0.6;
  pointer-events: none;
  animation: faq-shine 8s ease-in-out infinite;
}
@keyframes faq-shine {
  0%, 100% { opacity: 0.4; }
  50% { opacity: 0.85; }
}
@media (prefers-reduced-motion: reduce) {
  .faq-panel::before { animation: none; }
  .faq-item { transition: none; opacity: 1; transform: none; }
  .faq-a.animating { transition: none; }
}
.faq-item {
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  padding: 22px 0;
  position: relative;
  opacity: 0;
  transform: translateY(14px);
  transition:
    opacity .55s cubic-bezier(.22,.61,.36,1),
    transform .55s cubic-bezier(.22,.61,.36,1),
    background .3s ease;
  list-style: none;
}
.faq-item.in {
  opacity: 1;
  transform: translateY(0);
}
.faq-item:last-of-type { border-bottom: 0; }
.faq-item::before {
  content: "";
  position: absolute;
  left: -16px;
  top: 22px;
  bottom: 22px;
  width: 2px;
  background: linear-gradient(180deg, rgba(120,150,255,0.6), rgba(120,150,255,0));
  border-radius: 2px;
  opacity: 0;
  transform: scaleY(0.4);
  transform-origin: top;
  transition: opacity .35s ease, transform .45s cubic-bezier(.22,.61,.36,1);
}
.faq-item[open]::before {
  opacity: 1;
  transform: scaleY(1);
}
.faq-q {
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
  font-size: 18px;
  font-weight: 500;
  letter-spacing: -0.005em;
  transition: color .25s ease;
  list-style: none;
  user-select: none;
}
.faq-q::-webkit-details-marker { display: none; }
.faq-q::marker { display: none; content: ""; }
.faq-q:hover { color: #e8efff; }
.faq-q .chev {
  width: 28px;
  height: 28px;
  display: grid;
  place-items: center;
  color: rgba(255,255,255,0.75);
  border-radius: 50%;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.08);
  font-size: 16px;
  line-height: 1;
  transition:
    transform .45s cubic-bezier(.68,-0.2,.27,1.3),
    background .3s ease,
    color .25s ease,
    border-color .3s ease,
    box-shadow .3s ease;
}
.faq-q:hover .chev {
  background: rgba(120,150,255,0.18);
  border-color: rgba(120,150,255,0.35);
  color: #fff;
  box-shadow: 0 0 18px rgba(58, 92, 255, 0.35);
}
.faq-item[open] .faq-q .chev {
  transform: rotate(180deg);
  background: rgba(120,150,255,0.22);
  border-color: rgba(120,150,255,0.5);
  color: #fff;
  box-shadow: 0 0 22px rgba(58, 92, 255, 0.45);
}
.faq-item .faq-a {
  display: block;
  margin-top: 14px;
  color: rgba(230, 235, 255, 0.75);
  font-size: 14px;
  line-height: 1.6;
  max-width: 56ch;
  overflow: hidden;
  will-change: height, opacity;
}
.faq-item:not([open]) .faq-a {
  height: 0;
  margin-top: 0;
  opacity: 0;
  pointer-events: none;
}
.faq-a.animating {
  transition:
    height .42s cubic-bezier(.22,.61,.36,1),
    opacity .32s ease,
    margin-top .42s cubic-bezier(.22,.61,.36,1);
}
.faq-foot {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 18px;
  padding-top: 14px;
  color: rgba(230, 235, 255, 0.8);
  font-size: 14px;
}
.faq-foot a {
  padding: 10px 20px;
  border-radius: 999px;
  background: #fff;
  color: #0a0f1a;
  font-weight: 500;
  font-size: 14px;
  transition: transform .2s;
}
.faq-foot a:hover { transform: translateY(-1px); }
