:root {
  --bg: #05070a;
  --surface: #0b1017;
  --surface-raised: #101720;
  --text: #f5f7fa;
  --muted: #9aa7b4;
  --line: rgba(255, 255, 255, 0.1);
  --cyan: #57e3ff;
  --purple: #7c5cff;
  --max-width: 1180px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background:
    radial-gradient(circle at 15% 10%, rgba(87, 227, 255, 0.05), transparent 32%),
    radial-gradient(circle at 85% 20%, rgba(124, 92, 255, 0.05), transparent 28%),
    var(--bg);
  color: var(--text);
  font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.6;
}

a {
  color: inherit;
}

.faq-site-header {
  width: 100%;
  border-bottom: 1px solid var(--line);
  background: rgba(5, 7, 10, 0.94);
}

.faq-site-header-inner {
  width: min(var(--max-width), calc(100% - 48px));
  min-height: 78px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.faq-site-brand {
  display: inline-flex;
  align-items: center;
}

.faq-site-brand img {
  display: block;
  width: 170px;
  height: auto;
}

.faq-back-link {
  color: var(--muted);
  font-size: 0.92rem;
  text-decoration: none;
  transition: color 160ms ease, transform 160ms ease;
}

.faq-back-link:hover,
.faq-back-link:focus-visible {
  color: var(--cyan);
  transform: translateX(-2px);
}

.faq-page {
  width: min(960px, calc(100% - 48px));
  margin: 0 auto;
  padding: 100px 0 120px;
}

.faq-hero {
  max-width: 820px;
  padding-bottom: 64px;
}

.eyebrow {
  margin: 0 0 18px;
  color: var(--cyan);
  font-family: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.faq-hero h1 {
  margin: 0;
  max-width: 780px;
  font-size: clamp(3.2rem, 8vw, 6.4rem);
  line-height: 0.96;
  letter-spacing: -0.055em;
}

.faq-intro {
  max-width: 720px;
  margin: 30px 0 0;
  color: var(--muted);
  font-size: clamp(1.05rem, 2vw, 1.25rem);
  line-height: 1.75;
}

.faq-list {
  border-top: 1px solid var(--line);
}

.faq-list details {
  border-bottom: 1px solid var(--line);
  transition: background 160ms ease, border-color 160ms ease;
}

.faq-list details:hover {
  background: rgba(255, 255, 255, 0.015);
}

.faq-list details[open] {
  background:
    linear-gradient(
      135deg,
      rgba(87, 227, 255, 0.035),
      rgba(124, 92, 255, 0.025)
    );
}

.faq-list summary {
  position: relative;
  padding: 30px 58px 30px 0;
  cursor: pointer;
  list-style: none;
  font-size: clamp(1.08rem, 2vw, 1.3rem);
  font-weight: 700;
  line-height: 1.4;
  transition: color 160ms ease;
}

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

.faq-list summary::after {
  content: "+";
  position: absolute;
  top: 50%;
  right: 8px;
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  transform: translateY(-50%);
  border: 1px solid rgba(87, 227, 255, 0.28);
  border-radius: 50%;
  color: var(--cyan);
  font-family: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
  font-size: 1.15rem;
  font-weight: 400;
  transition:
    transform 180ms ease,
    background 180ms ease,
    border-color 180ms ease;
}

.faq-list details[open] summary {
  color: var(--cyan);
}

.faq-list details[open] summary::after {
  content: "−";
  transform: translateY(-50%) rotate(180deg);
  border-color: rgba(87, 227, 255, 0.5);
  background: rgba(87, 227, 255, 0.06);
}

.faq-list summary:hover,
.faq-list summary:focus-visible {
  color: var(--cyan);
}

.faq-list summary:focus-visible {
  outline: 2px solid var(--cyan);
  outline-offset: 5px;
}

.faq-answer {
  max-width: 800px;
  padding: 0 58px 32px 0;
  color: var(--muted);
}

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

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

.faq-answer strong {
  color: var(--text);
}

.faq-sequence {
  padding: 18px 20px;
  border-left: 2px solid var(--cyan);
  background: rgba(87, 227, 255, 0.035);
  color: var(--text);
  font-family: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
  font-size: 0.92rem;
  line-height: 1.8;
}

.faq-site-footer {
  border-top: 1px solid var(--line);
}

.faq-site-footer-inner {
  width: min(var(--max-width), calc(100% - 48px));
  min-height: 110px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  color: var(--muted);
  font-size: 0.9rem;
}

.faq-footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}

.faq-footer-links a {
  color: var(--muted);
  text-decoration: none;
  transition: color 160ms ease;
}

.faq-footer-links a:hover,
.faq-footer-links a:focus-visible {
  color: var(--cyan);
}

@media (max-width: 760px) {
  .faq-site-header-inner,
  .faq-site-footer-inner {
    width: calc(100% - 28px);
  }

  .faq-site-header-inner {
    min-height: 70px;
  }

  .faq-site-brand img {
    width: 145px;
  }

  .faq-back-link {
    font-size: 0.84rem;
  }

  .faq-page {
    width: calc(100% - 28px);
    padding: 72px 0 90px;
  }

  .faq-hero {
    padding-bottom: 48px;
  }

  .faq-hero h1 {
    font-size: clamp(2.9rem, 15vw, 4.8rem);
  }

  .faq-intro {
    margin-top: 24px;
  }

  .faq-list summary {
    padding: 24px 50px 24px 0;
  }

  .faq-list summary::after {
    right: 2px;
    width: 30px;
    height: 30px;
  }

  .faq-answer {
    padding: 0 0 28px;
  }

  .faq-sequence {
    overflow-wrap: anywhere;
  }

  .faq-site-footer-inner {
    min-height: 130px;
    padding: 28px 0;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
  }

  .faq-footer-links {
    gap: 16px 22px;
  }
}

/* FAQ content inset */
.faq-list summary,
.faq-answer {
  padding-left: 24px;
}

@media (max-width: 760px) {
  .faq-list summary,
  .faq-answer {
    padding-left: 16px;
  }
}
