:root {
  color-scheme: dark;
  --faq-bg: #090b14;
  --faq-border: rgba(255, 255, 255, 0.09);
  --faq-text: #f5f4fb;
  --faq-muted: #a7a5b8;
}

html,
html[data-theme="black"] {
  min-height: 100%;
  color-scheme: dark;
  background: var(--faq-bg);
}

body,
html[data-theme="black"] body {
  display: block;
  min-width: 320px;
  min-height: 100vh;
  overflow-x: hidden;
  background:
    radial-gradient(ellipse at 75% 17%, rgba(86, 63, 180, 0.13), transparent 34rem),
    radial-gradient(ellipse at 2% 46%, rgba(32, 99, 162, 0.08), transparent 30rem),
    var(--faq-bg) !important;
  color: var(--faq-text) !important;
  font-family: "DM Sans", sans-serif;
}

.topbar.site-header,
html[data-theme="black"] .topbar.site-header {
  position: relative;
  z-index: 20;
  width: min(1160px, calc(100% - 48px));
  min-height: 76px;
  margin: 0 auto;
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border: 0;
  border-radius: 0;
  background: transparent !important;
  box-shadow: none !important;
  backdrop-filter: none;
}

.site-header .header-logo,
.site-header .header-logo.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--faq-text) !important;
  background: none;
  font: 700 1.24rem/1 "Space Grotesk", sans-serif;
  letter-spacing: -0.06em;
  text-decoration: none;
  -webkit-text-fill-color: currentColor;
}

.site-header .brand-mark {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(188, 160, 255, 0.35);
  border-radius: 11px;
  background: linear-gradient(145deg, #9d78ff, #6944d6);
  box-shadow: 0 7px 22px rgba(123, 80, 225, 0.28);
  color: #fff;
  font-size: 1.05rem;
}

.brand-period {
  color: #a78bfa;
}

.faq-header-actions {
  display: flex;
  align-items: center;
  gap: 9px;
}

.faq-header-button {
  min-height: 38px;
  padding: 0 14px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  border: 1px solid var(--faq-border);
  border-radius: 10px;
  background: rgba(145, 117, 230, 0.08);
  color: #e5dcff;
  font: 600 0.84rem/1 "DM Sans", sans-serif;
  text-decoration: none;
  transition: border-color 160ms ease, background 160ms ease, transform 160ms ease;
}

.faq-header-button:hover {
  transform: translateY(-1px);
  border-color: rgba(167, 139, 250, 0.55);
  background: rgba(145, 117, 230, 0.17);
}

.page-shell,
html[data-theme="black"] .page-shell {
  width: min(920px, calc(100% - 48px));
  max-width: none;
  margin: 28px auto 80px;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent !important;
  box-shadow: none !important;
  color: var(--faq-text);
  backdrop-filter: none;
}

.hero,
html[data-theme="black"] .hero {
  position: relative;
  margin: 0 0 24px;
  padding: clamp(26px, 5vw, 46px);
  overflow: hidden;
  border: 1px solid rgba(180, 161, 255, 0.18);
  border-radius: 22px;
  background:
    radial-gradient(ellipse at 88% 18%, rgba(145, 105, 242, 0.2), transparent 18rem),
    linear-gradient(135deg, rgba(28, 25, 45, 0.97), rgba(15, 16, 27, 0.96));
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.24);
}

.back-link,
html[data-theme="black"] .back-link {
  display: inline-flex;
  margin: 0 0 18px;
  color: #c9b4ff;
  font-size: 0.9rem;
}

.hero .eyebrow,
html[data-theme="black"] .hero .eyebrow {
  display: inline-flex;
  margin: 0 0 16px;
  padding: 7px 11px;
  border: 1px solid rgba(167, 139, 250, 0.22);
  border-radius: 7px;
  background: rgba(137, 112, 211, 0.1);
  color: #bea8ff;
  font-size: 0.68rem;
  letter-spacing: 0.1em;
}

.hero h1,
html[data-theme="black"] .hero h1 {
  position: relative;
  margin: 0 0 12px;
  color: #f5f4fb !important;
  font: 600 clamp(2.5rem, 6vw, 4rem)/1.05 "Space Grotesk", sans-serif;
  letter-spacing: -0.06em;
}

.intro,
html[data-theme="black"] .intro {
  position: relative;
  max-width: 620px;
  margin: 0;
  color: var(--faq-muted) !important;
  font-size: 0.98rem;
  line-height: 1.8;
}

.sections {
  display: grid;
  gap: 14px;
  margin-top: 0;
}

.section,
html[data-theme="black"] .section,
.quick-card,
html[data-theme="black"] .quick-card {
  position: relative;
  margin: 0;
  padding: clamp(20px, 3.5vw, 28px);
  overflow: hidden;
  border: 1px solid var(--faq-border);
  border-radius: 15px;
  background: linear-gradient(150deg, rgba(18, 21, 34, 0.92), rgba(13, 15, 25, 0.92)) !important;
  box-shadow: none !important;
  color: #e7e4f0;
}

.section::before {
  display: none;
}

.section h2,
.section h3,
.section strong,
html[data-theme="black"] .section h2,
html[data-theme="black"] .section h3,
html[data-theme="black"] .quick-card strong {
  position: relative;
  color: #f1eef9 !important;
  font-family: "Space Grotesk", sans-serif;
}

.section h2 {
  margin: 0 0 12px;
  font-size: clamp(1.3rem, 2vw, 1.7rem);
  letter-spacing: -0.035em;
}

.section h3 {
  margin: 0 0 12px;
  font-size: 1.2rem;
  letter-spacing: -0.025em;
}

.section p,
html[data-theme="black"] .section p,
.quick-card span,
html[data-theme="black"] .quick-card span {
  position: relative;
  color: #a4a6b6 !important;
  font-size: 0.91rem;
  line-height: 1.8;
}

.section p + p {
  margin-top: 12px;
}

.quick-grid {
  gap: 10px;
  margin-top: 18px;
}

.quick-card,
html[data-theme="black"] .quick-card {
  padding: 17px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.025) !important;
}

.quick-card strong,
html[data-theme="black"] .quick-card strong {
  display: block;
  margin-bottom: 7px;
  font-size: 0.98rem;
}

.faq-item,
html[data-theme="black"] .faq-item {
  border-left: 1px solid var(--faq-border);
  background: linear-gradient(150deg, rgba(18, 21, 34, 0.92), rgba(13, 15, 25, 0.92)) !important;
}

@media (max-width: 700px) {
  .topbar.site-header {
    width: calc(100% - 32px);
    min-height: 68px;
  }

  .site-header .header-logo {
    gap: 7px;
    font-size: 1.08rem;
  }

  .site-header .brand-mark {
    width: 31px;
    height: 31px;
  }

  .faq-header-actions {
    gap: 6px;
  }

  .faq-header-button {
    min-height: 35px;
    padding: 0 9px;
    gap: 5px;
    font-size: 0.76rem;
  }

  .page-shell {
    width: calc(100% - 32px);
    margin: 20px auto 56px;
  }

  .hero {
    padding: 24px 20px;
  }

  .quick-grid {
    grid-template-columns: 1fr;
  }
}
