.page-faq {
  --faq-edge: 18px;
  --faq-panel: rgba(20, 26, 36, 0.9);
  --faq-line: linear-gradient(135deg, rgba(255, 46, 77, 0.9), rgba(0, 194, 255, 0.9));
  --faq-clip: polygon(0 0, calc(100% - var(--faq-edge)) 0, 100% var(--faq-edge), 100% 100%, var(--faq-edge) 100%, 0 calc(100% - var(--faq-edge)));
  position: relative;
  color: var(--text-high);
  background:
    radial-gradient(circle at 90% 8%, rgba(0, 194, 255, 0.10), transparent 32%),
    radial-gradient(circle at 8% 42%, rgba(255, 46, 77, 0.08), transparent 30%),
    var(--color-ink);
  overflow-x: hidden;
  padding-top: 28px;
}

.page-faq .faq-hero {
  position: relative;
  padding: 0 0 44px;
}

.page-faq .faq-hero::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 280px;
  background: linear-gradient(120deg, rgba(255, 46, 77, 0.14), rgba(0, 194, 255, 0.10));
  clip-path: polygon(0 0, 100% 0, 100% 70%, 0 100%);
  pointer-events: none;
}

.page-faq .faq-hero-grid {
  position: relative;
  display: grid;
  gap: 20px;
  padding-top: 20px;
}

.page-faq .faq-hero-copy .eyebrow {
  margin-bottom: 10px;
}

.page-faq .faq-hero-copy h1 {
  margin: 0 0 14px;
  font-family: var(--font-display);
  font-size: clamp(32px, 8vw, 56px);
  font-weight: 900;
  line-height: 1.1;
  letter-spacing: 0.01em;
  color: var(--text-high);
  background: linear-gradient(135deg, var(--text-high) 35%, var(--color-silver) 80%);
  -webkit-background-clip: text;
  background-clip: text;
}

.page-faq .faq-hero-copy::after {
  content: "";
  display: block;
  width: 120px;
  height: 2px;
  margin-top: 18px;
  background: linear-gradient(90deg, var(--color-red), var(--color-blue));
  transform: skewX(-30deg);
}

.page-faq .faq-hero-lead {
  max-width: 640px;
  margin: 0;
  color: var(--text-low);
  font-size: 16px;
  line-height: 1.7;
}

.page-faq .faq-hero-topics {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.page-faq .faq-hero-topics .term-chip {
  text-decoration: none;
}

.page-faq .faq-hero-figure {
  position: relative;
  margin: 28px 0 0;
}

.page-faq .faq-hero-figure .shell {
  position: relative;
}

.page-faq .faq-hero-figure img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 1;
  object-fit: cover;
  clip-path: var(--faq-clip);
  outline: 1px solid var(--border-faint);
}

.page-faq .faq-hero-figure::after {
  content: "";
  position: absolute;
  bottom: -12px;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--color-red), var(--color-blue), transparent);
  opacity: 0.8;
  transform: skewX(-20deg);
}

.page-faq .faq-hero-figure figcaption {
  position: absolute;
  right: calc(var(--faq-edge) + 14px);
  bottom: 18px;
  z-index: 1;
  padding: 6px 12px;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.1em;
  color: var(--color-silver);
  background: rgba(11, 14, 20, 0.7);
  border: 1px solid var(--border-faint);
  clip-path: polygon(0 0, calc(100% - 8px) 0, 100% 8px, 100% 100%, 8px 100%, 0 calc(100% - 8px));
}

.page-faq .faq-facts {
  position: relative;
  padding: 20px 0 36px;
}

.page-faq .faq-facts-grid {
  list-style: none;
  margin: 0 auto;
  padding: 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.page-faq .faq-fact {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 14px 14px 16px;
  background: linear-gradient(145deg, rgba(20, 26, 36, 0.9), rgba(11, 14, 20, 0.7));
  border: 1px solid var(--border-faint);
  clip-path: polygon(0 0, calc(100% - 12px) 0, 100% 12px, 100% 100%, 12px 100%, 0 calc(100% - 12px));
}

.page-faq .faq-fact::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 3px;
  height: 100%;
  background: var(--faq-line);
}

.page-faq .faq-fact .stat {
  font-family: var(--font-mono);
  font-size: 26px;
  font-weight: 700;
  color: var(--text-high);
  letter-spacing: -0.04em;
}

.page-faq .faq-fact .stat-label {
  font-family: var(--font-display);
  font-size: 13px;
  font-weight: 700;
  color: var(--color-silver);
  letter-spacing: 0.08em;
}

.page-faq .faq-fact-note {
  font-size: 12px;
  color: var(--text-low);
  line-height: 1.4;
}

.page-faq .faq-main {
  position: relative;
  padding-bottom: 16px;
}

.page-faq .faq-main-head {
  position: relative;
  padding: 14px 0 20px;
}

.page-faq .faq-main-head h2 {
  margin: 8px 0 0;
  font-family: var(--font-display);
  font-size: clamp(24px, 4vw, 34px);
  font-weight: 800;
}

.page-faq .faq-layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: 28px;
  align-items: start;
}

.page-faq .faq-index {
  padding: 16px;
  background: rgba(20, 26, 36, 0.6);
  border: 1px solid var(--border-faint);
  clip-path: polygon(0 0, calc(100% - 18px) 0, 100% 18px, 100% 100%, 18px 100%, 0 calc(100% - 18px));
}

.page-faq .faq-index-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 10px;
}

.page-faq .faq-index-list a {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 13px 14px;
  color: var(--text-low);
  font-family: var(--font-display);
  font-size: 15px;
  font-weight: 700;
  text-decoration: none;
  background: rgba(11, 14, 20, 0.6);
  border: 1px solid var(--border-faint);
  clip-path: polygon(0 0, calc(100% - 10px) 0, 100% 10px, 100% 100%, 10px 100%, 0 calc(100% - 10px));
  transition: color 0.25s, border-color 0.25s, background 0.25s, transform 0.25s;
}

.page-faq .faq-index-list a span {
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--color-blue);
}

.page-faq .faq-index-list a:hover {
  color: var(--text-high);
  border-color: rgba(0, 194, 255, 0.6);
  background: rgba(0, 194, 255, 0.08);
  transform: translateX(4px);
}

.page-faq .faq-index-note {
  margin: 14px 0 0;
  font-size: 12px;
  color: var(--text-low);
  line-height: 1.6;
}

.page-faq .faq-group {
  position: relative;
  margin-bottom: 40px;
  padding-top: 8px;
  scroll-margin-top: 90px;
}

.page-faq .faq-group-head {
  position: relative;
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 18px 16px 16px;
  background: rgba(20, 26, 36, 0.85);
  border: 1px solid var(--border-faint);
  clip-path: polygon(0 0, calc(100% - 18px) 0, 100% 18px, 100% 100%, 18px 100%, 0 calc(100% - 18px));
  overflow: hidden;
}

.page-faq .faq-group-head::after {
  content: "";
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  height: 3px;
  background: var(--faq-line);
  transform: skewX(-25deg);
  transform-origin: left;
}

.page-faq .faq-group-num {
  font-family: var(--font-mono);
  font-size: 15px;
  color: var(--color-red);
  border: 1px solid rgba(255, 46, 77, 0.4);
  padding: 6px 8px;
  line-height: 1;
  clip-path: polygon(0 0, calc(100% - 6px) 0, 100% 6px, 100% 100%, 6px 100%, 0 calc(100% - 6px));
}

.page-faq .faq-group-head h3 {
  margin: 4px 0 0;
  font-family: var(--font-display);
  font-size: clamp(18px, 3vw, 22px);
  font-weight: 800;
}

.page-faq .faq-group-desc {
  margin: 12px 0 16px;
  color: var(--text-low);
  font-size: 15px;
  line-height: 1.7;
}

.page-faq .faq-group:target .faq-group-head {
  animation: faqTargetHi 1s ease;
}

@keyframes faqTargetHi {
  0% { box-shadow: 0 0 0 4px rgba(0, 194, 255, 0.35); }
  100% { box-shadow: 0 0 0 0 rgba(0, 194, 255, 0); }
}

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

.page-faq .faq-item {
  background: var(--faq-panel);
  border: 1px solid var(--border-faint);
  clip-path: polygon(0 0, calc(100% - 14px) 0, 100% 14px, 100% 100%, 14px 100%, 0 calc(100% - 14px));
  transition: border-color 0.3s, background 0.3s;
}

.page-faq .faq-item[open] {
  border-color: rgba(0, 194, 255, 0.45);
  background: linear-gradient(135deg, rgba(255, 46, 77, 0.06), rgba(0, 194, 255, 0.06)), var(--color-panel);
  box-shadow: 0 0 0 1px rgba(0, 194, 255, 0.08);
  animation: faqGlowPulse 1.6s ease 1;
}

@keyframes faqGlowPulse {
  0% { box-shadow: 0 0 0 0 rgba(0, 194, 255, 0.35), 0 0 0 0 rgba(255, 46, 77, 0.25); }
  40% { box-shadow: 0 0 0 8px rgba(0, 194, 255, 0), 0 0 0 12px rgba(255, 46, 77, 0); }
  100% { box-shadow: 0 0 0 0 rgba(0, 194, 255, 0), 0 0 0 0 rgba(255, 46, 77, 0); }
}

.page-faq .faq-item[open] .faq-answer {
  animation: faqFadeIn 0.35s ease;
}

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

.page-faq .faq-item summary {
  list-style: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px 18px 16px 14px;
  font-family: var(--font-display);
  font-size: 15px;
  font-weight: 700;
  line-height: 1.5;
}

.page-faq .faq-item summary::-webkit-details-marker {
  display: none;
}

.page-faq .faq-item summary::before {
  content: "";
  flex: 0 0 auto;
  width: 4px;
  height: 22px;
  background: var(--faq-line);
  transform: skewX(-15deg);
}

.page-faq .faq-item summary::after {
  content: "+";
  flex: 0 0 auto;
  margin-left: auto;
  font-family: var(--font-mono);
  font-size: 22px;
  line-height: 1;
  color: var(--color-silver);
  transition: color 0.3s, transform 0.3s;
}

.page-faq .faq-item[open] summary::after {
  content: "–";
  color: var(--color-blue);
}

.page-faq .faq-q-num {
  flex: 0 0 auto;
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--color-silver);
  letter-spacing: 0.05em;
}

.page-faq .faq-answer {
  padding: 0 18px 20px 30px;
  color: var(--text-low);
  font-size: 15px;
  line-height: 1.8;
}

.page-faq .faq-answer p {
  margin: 0 0 8px;
}

.page-faq .faq-answer p:last-child {
  margin-bottom: 0;
}

.page-faq .faq-answer a {
  color: var(--color-blue);
  text-decoration-color: rgba(0, 194, 255, 0.4);
  text-underline-offset: 4px;
}

.page-faq .faq-device-showcase {
  position: relative;
  max-width: 320px;
  margin: 24px auto 0;
}

.page-faq .faq-device-frame {
  position: relative;
  padding: 8px;
  background: var(--faq-line);
  clip-path: polygon(0 0, calc(100% - 16px) 0, 100% 16px, 100% 100%, 16px 100%, 0 calc(100% - 16px));
}

.page-faq .faq-device-frame::before {
  content: "";
  position: absolute;
  top: 12px;
  left: 50%;
  width: 42px;
  height: 4px;
  border-radius: 2px;
  background: rgba(255, 255, 255, 0.35);
  transform: translateX(-50%);
  z-index: 2;
}

.page-faq .faq-device-frame img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 12px;
  border: 2px solid rgba(255, 255, 255, 0.12);
}

.page-faq .faq-device-showcase figcaption {
  margin-top: 10px;
  text-align: center;
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--color-silver);
  letter-spacing: 0.06em;
}

.page-faq .faq-cta {
  scroll-margin-top: 90px;
  position: relative;
  margin-top: 8px;
}

.page-faq .faq-cta-inner {
  position: relative;
  display: grid;
  gap: 22px;
  padding: 26px 22px 28px;
  background: linear-gradient(120deg, rgba(18, 58, 92, 0.5), rgba(122, 30, 48, 0.5)), var(--color-panel);
  border: 1px solid var(--border-faint);
  clip-path: polygon(0 0, calc(100% - 24px) 0, 100% 24px, 100% 100%, 24px 100%, 0 calc(100% - 24px));
  overflow: hidden;
}

.page-faq .faq-cta-inner::before {
  content: "";
  position: absolute;
  width: 240px;
  height: 240px;
  right: -60px;
  top: -60px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(0, 194, 255, 0.18), transparent 70%);
  pointer-events: none;
}

.page-faq .faq-cta-copy h3 {
  margin: 8px 0 10px;
  font-family: var(--font-display);
  font-size: clamp(21px, 3vw, 28px);
  font-weight: 800;
}

.page-faq .faq-cta-copy p {
  margin: 4px 0;
  color: var(--text-low);
  line-height: 1.7;
}

.page-faq .faq-cta-note {
  margin-top: 8px;
  font-size: 13px;
  color: var(--color-silver);
}

.page-faq .faq-cta-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
  position: relative;
  z-index: 1;
}

.page-faq .faq-cta-actions .btn {
  text-decoration: none;
}

@media (min-width: 860px) {
  .page-faq .faq-hero-grid {
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: end;
    gap: 32px;
  }

  .page-faq .faq-hero-copy h1 {
    font-size: 54px;
  }

  .page-faq .faq-hero-topics {
    max-width: 360px;
    justify-content: flex-end;
  }

  .page-faq .faq-facts-grid {
    grid-template-columns: repeat(4, 1fr);
  }

  .page-faq .faq-layout {
    grid-template-columns: minmax(0, 280px) minmax(0, 1fr);
    gap: 36px;
  }

  .page-faq .faq-index {
    position: sticky;
    top: 20px;
  }

  .page-faq .faq-group-head {
    padding: 22px 24px 20px;
  }

  .page-faq .faq-group-desc {
    margin-bottom: 20px;
  }

  .page-faq .faq-answer {
    padding-left: 44px;
  }

  .page-faq #group-small {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 300px);
    gap: 28px;
  }

  .page-faq #group-small .faq-group-head,
  .page-faq #group-small .faq-group-desc,
  .page-faq #group-small .faq-accordion {
    grid-column: 1;
  }

  .page-faq #group-small .faq-device-showcase {
    grid-column: 2;
    grid-row: 1 / -1;
    margin: 14px 0 0;
    align-self: center;
  }
}
