:root {
  --qp-bg: #07070c;
  --qp-surface: #10111a;
  --qp-surface-2: #151722;
  --qp-border: rgba(212, 175, 55, 0.22);
  --qp-border-soft: rgba(255, 255, 255, 0.09);
  --qp-gold: #d4af37;
  --qp-gold-light: #f5d576;
  --qp-text: #ece9df;
  --qp-muted: #aaa5b5;
  --qp-success: #53d98c;
  --qp-warning: #ffc35a;
  --qp-danger: #ff7f87;
  --qp-shadow: 0 24px 70px rgba(0, 0, 0, 0.3);
  --qp-radius: 22px;
  --qp-content: 1180px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  min-height: 100vh;
  margin: 0;
  color: var(--qp-text);
  background:
    radial-gradient(circle at 8% 0%, rgba(212, 175, 55, 0.12), transparent 34rem),
    radial-gradient(circle at 95% 35%, rgba(98, 64, 181, 0.11), transparent 36rem),
    var(--qp-bg);
  font-family: "Montserrat", "Segoe UI", sans-serif;
  line-height: 1.7;
}

body::before {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  content: "";
  background-image: linear-gradient(rgba(255, 255, 255, 0.018) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.018) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: linear-gradient(to bottom, #000, transparent 78%);
}

a {
  color: var(--qp-gold-light);
  text-decoration-thickness: 1px;
  text-underline-offset: 4px;
}

a:hover {
  color: #fff0af;
}

a:focus-visible,
button:focus-visible,
summary:focus-visible {
  outline: 3px solid var(--qp-gold-light);
  outline-offset: 4px;
  border-radius: 4px;
}

.skip-link {
  position: fixed;
  inset-block-start: 12px;
  inset-inline-start: 12px;
  z-index: 1000;
  padding: 10px 16px;
  color: #09090d;
  background: var(--qp-gold-light);
  border-radius: 10px;
  font-weight: 800;
  transform: translateY(-160%);
}

.skip-link:focus {
  transform: translateY(0);
}

.site-header {
  position: sticky;
  inset-block-start: 0;
  z-index: 100;
  border-block-end: 1px solid var(--qp-border);
  background: rgba(7, 7, 12, 0.94);
}

.site-header-inner {
  width: min(calc(100% - 36px), var(--qp-content));
  min-height: 72px;
  margin-inline: auto;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 26px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--qp-text);
  text-decoration: none;
  white-space: nowrap;
  font-family: "Playfair Display", Georgia, serif;
  font-size: 1.18rem;
  font-weight: 800;
  letter-spacing: 0.05em;
}

.brand-mark {
  display: grid;
  width: 36px;
  height: 36px;
  place-items: center;
  color: #09090d;
  background: linear-gradient(135deg, var(--qp-gold-light), #b78c15);
  border-radius: 11px;
  box-shadow: 0 8px 26px rgba(212, 175, 55, 0.2);
  font-family: "Montserrat", sans-serif;
  font-size: 0.78rem;
  font-weight: 900;
}

.site-nav {
  display: flex;
  justify-content: center;
  gap: 6px;
}

.site-nav a {
  padding: 9px 11px;
  color: var(--qp-muted);
  border-radius: 10px;
  text-decoration: none;
  font-size: 0.78rem;
  font-weight: 750;
}

.site-nav a:hover,
.site-nav a[aria-current="page"] {
  color: var(--qp-text);
  background: rgba(212, 175, 55, 0.09);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.button {
  display: inline-flex;
  min-height: 42px;
  align-items: center;
  justify-content: center;
  padding: 9px 18px;
  border: 1px solid var(--qp-border);
  border-radius: 999px;
  color: var(--qp-text);
  background: rgba(255, 255, 255, 0.035);
  text-decoration: none;
  font-size: 0.78rem;
  font-weight: 800;
}

.button:hover {
  color: #fff;
  border-color: rgba(212, 175, 55, 0.5);
  background: rgba(212, 175, 55, 0.09);
}

.button-primary {
  color: #09090d;
  border-color: transparent;
  background: linear-gradient(120deg, var(--qp-gold-light), #c49b22);
}

.button-primary:hover {
  color: #09090d;
  background: linear-gradient(120deg, #ffeba0, var(--qp-gold));
}

.content-shell {
  width: min(calc(100% - 36px), var(--qp-content));
  margin-inline: auto;
}

.breadcrumbs {
  padding-block: 22px 2px;
  color: var(--qp-muted);
  font-size: 0.78rem;
}

.breadcrumbs ol {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  align-items: center;
  margin: 0;
  padding: 0;
  list-style: none;
}

.breadcrumbs li:not(:last-child)::after {
  margin-inline-start: 7px;
  color: rgba(255, 255, 255, 0.32);
  content: "/";
}

.breadcrumbs a {
  color: var(--qp-muted);
}

.page-hero {
  position: relative;
  overflow: hidden;
  margin-block: 26px 42px;
  padding: clamp(34px, 7vw, 76px);
  border: 1px solid var(--qp-border);
  border-radius: 30px;
  background: linear-gradient(145deg, rgba(20, 21, 32, 0.96), rgba(10, 10, 16, 0.94));
  box-shadow: var(--qp-shadow);
}

.page-hero::after {
  position: absolute;
  inset-block-start: -100px;
  inset-inline-end: -80px;
  width: 320px;
  height: 320px;
  content: "";
  background: radial-gradient(circle, rgba(212, 175, 55, 0.16), transparent 68%);
}

.eyebrow {
  position: relative;
  z-index: 1;
  margin: 0 0 12px;
  color: var(--qp-gold-light);
  font-size: 0.74rem;
  font-weight: 850;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.page-hero h1 {
  position: relative;
  z-index: 1;
  max-width: 900px;
  margin: 0;
  font-family: "Playfair Display", Georgia, serif;
  font-size: clamp(2.15rem, 5vw, 4.65rem);
  line-height: 1.05;
  letter-spacing: -0.025em;
}

.page-hero > p:not(.eyebrow) {
  position: relative;
  z-index: 1;
  max-width: 760px;
  margin: 20px 0 0;
  color: #c7c2ce;
  font-size: clamp(1rem, 2vw, 1.15rem);
}

.page-meta {
  position: relative;
  z-index: 1;
  display: flex;
  flex-wrap: wrap;
  gap: 10px 20px;
  margin-block-start: 25px;
  color: var(--qp-muted);
  font-size: 0.78rem;
}

.draft-banner {
  margin-block: -14px 34px;
  padding: 18px 20px;
  color: #fff3d3;
  border: 1px solid rgba(255, 195, 90, 0.45);
  border-radius: 16px;
  background: rgba(255, 195, 90, 0.09);
}

.draft-banner strong {
  display: block;
  margin-block-end: 3px;
  color: var(--qp-warning);
}

.article-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 280px;
  gap: 40px;
  align-items: start;
  margin-block-end: 72px;
}

.article-body {
  min-width: 0;
}

.article-body section {
  scroll-margin-top: 98px;
  margin-block: 0 28px;
  padding: clamp(24px, 4vw, 38px);
  border: 1px solid var(--qp-border-soft);
  border-radius: var(--qp-radius);
  background: rgba(16, 17, 26, 0.82);
}

.article-body h2,
.article-body h3 {
  color: #f4f0e7;
  font-family: "Playfair Display", Georgia, serif;
  line-height: 1.2;
}

.article-body h2 {
  margin: 0 0 18px;
  font-size: clamp(1.55rem, 3vw, 2.15rem);
}

.article-body h3 {
  margin: 24px 0 10px;
  font-size: 1.25rem;
}

.article-body p {
  margin: 0 0 16px;
  color: #c9c4cf;
}

.article-body p:last-child {
  margin-block-end: 0;
}

.article-body ul,
.article-body ol {
  margin: 0 0 18px;
  padding-inline-start: 1.35rem;
  color: #cbc6d1;
}

.article-body li + li {
  margin-block-start: 8px;
}

.article-body li::marker {
  color: var(--qp-gold);
  font-weight: 800;
}

.toc {
  position: sticky;
  inset-block-start: 96px;
  padding: 22px;
  border: 1px solid var(--qp-border);
  border-radius: 18px;
  background: rgba(12, 13, 20, 0.92);
}

.toc h2 {
  margin: 0 0 12px;
  font-family: "Montserrat", sans-serif;
  font-size: 0.76rem;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.toc ol {
  margin: 0;
  padding: 0;
  list-style: none;
}

.toc li + li {
  margin-block-start: 7px;
}

.toc a {
  display: block;
  padding: 5px 0;
  color: var(--qp-muted);
  text-decoration: none;
  font-size: 0.82rem;
  line-height: 1.45;
}

.toc a:hover {
  color: var(--qp-gold-light);
}

.placeholder {
  padding: 13px 15px;
  color: #ffd7da !important;
  border-inline-start: 3px solid var(--qp-danger);
  border-radius: 8px;
  background: rgba(255, 127, 135, 0.08);
  font-family: ui-monospace, SFMono-Regular, Consolas, monospace;
  font-size: 0.9rem;
}

.note,
.source-note {
  margin-block: 18px;
  padding: 17px 19px;
  border: 1px solid rgba(212, 175, 55, 0.24);
  border-radius: 14px;
  background: rgba(212, 175, 55, 0.065);
}

.note strong {
  display: block;
  margin-block-end: 6px;
  color: var(--qp-gold-light);
}

.note p,
.source-note {
  margin-block-end: 0 !important;
}

.warning-note {
  border-color: rgba(255, 127, 135, 0.32);
  background: rgba(255, 127, 135, 0.07);
}

.warning-note strong {
  color: #ffadb2;
}

.checklist {
  display: grid;
  gap: 10px;
  padding: 0 !important;
  list-style: none;
}

.checklist li {
  display: flex;
  gap: 11px;
  align-items: flex-start;
  margin: 0 !important;
  padding: 12px 14px;
  border: 1px solid var(--qp-border-soft);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.022);
}

.checklist li span {
  color: var(--qp-success);
  font-weight: 900;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 13px;
}

.stat-card {
  padding: 20px 16px;
  text-align: center;
  border: 1px solid var(--qp-border);
  border-radius: 16px;
  background: rgba(212, 175, 55, 0.05);
}

.stat-card strong {
  display: block;
  color: var(--qp-gold-light);
  font-family: "Playfair Display", Georgia, serif;
  font-size: 2rem;
  line-height: 1.15;
}

.stat-card span {
  display: block;
  margin-block-start: 6px;
  color: var(--qp-muted);
  font-size: 0.78rem;
}

.table-wrap {
  overflow-x: auto;
  margin-block: 16px;
  border: 1px solid var(--qp-border-soft);
  border-radius: 14px;
}

.table-wrap table {
  width: 100%;
  border-collapse: collapse;
  min-width: 540px;
  background: rgba(7, 7, 12, 0.38);
}

.table-wrap th,
.table-wrap td {
  padding: 13px 15px;
  text-align: start;
  vertical-align: top;
  border-block-end: 1px solid var(--qp-border-soft);
  color: #c9c4cf;
  font-size: 0.84rem;
}

.table-wrap thead th {
  color: var(--qp-gold-light);
  background: rgba(212, 175, 55, 0.065);
}

.table-wrap tbody th {
  color: #ece8df;
}

.table-wrap tr:last-child th,
.table-wrap tr:last-child td {
  border-block-end: 0;
}

.definition-list {
  display: grid;
  gap: 12px;
  margin: 0;
}

.definition-list > div {
  padding: 16px 18px;
  border-inline-start: 3px solid var(--qp-gold);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.025);
}

.definition-list dt {
  color: #f0ece4;
  font-weight: 850;
}

.definition-list dd {
  margin: 5px 0 0;
  color: #c9c4cf;
}

.decision-list {
  display: grid;
  gap: 13px;
}

.decision-list .info-card p {
  margin-block-end: 8px;
}

.steps,
.card-grid,
.platform-grid,
.guide-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.step-card,
.info-card,
.guide-card {
  padding: 20px;
  border: 1px solid var(--qp-border-soft);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.025);
}

.step-number {
  display: grid;
  width: 34px;
  height: 34px;
  margin-block-end: 13px;
  place-items: center;
  color: #09090d;
  border-radius: 50%;
  background: var(--qp-gold-light);
  font-weight: 900;
}

.step-card h3,
.info-card h3,
.guide-card h2,
.guide-card h3 {
  margin: 0 0 8px;
  font-family: "Montserrat", sans-serif;
  font-size: 1rem;
}

.guide-card {
  display: flex;
  flex-direction: column;
}

.guide-card p {
  flex: 1;
}

.guide-card a {
  font-weight: 800;
}

.platform-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.platform-list li {
  margin: 0;
  padding: 8px 13px;
  color: #ddd8e1;
  border: 1px solid var(--qp-border-soft);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.03);
  font-size: 0.82rem;
}

.faq-list details {
  border-block-end: 1px solid var(--qp-border-soft);
}

.faq-list details:first-child {
  border-block-start: 1px solid var(--qp-border-soft);
}

.faq-list summary {
  padding: 17px 4px;
  cursor: pointer;
  color: #f0ece4;
  font-weight: 800;
}

.faq-list details p {
  padding: 0 4px 18px;
}

.source-list {
  font-size: 0.85rem;
  overflow-wrap: anywhere;
}

.cta-panel {
  margin-block: 20px 78px;
  padding: clamp(28px, 6vw, 58px);
  text-align: center;
  border: 1px solid var(--qp-border);
  border-radius: 26px;
  background: linear-gradient(145deg, rgba(212, 175, 55, 0.105), rgba(20, 21, 32, 0.88));
}

.cta-panel h2 {
  margin: 0 0 10px;
  font-family: "Playfair Display", Georgia, serif;
  font-size: clamp(1.7rem, 4vw, 2.7rem);
}

.cta-panel p {
  max-width: 680px;
  margin: 0 auto 22px;
  color: var(--qp-muted);
}

.site-footer {
  border-block-start: 1px solid var(--qp-border);
  background: rgba(8, 8, 13, 0.92);
}

.footer-grid {
  width: min(calc(100% - 36px), var(--qp-content));
  margin-inline: auto;
  padding-block: 46px 30px;
  display: grid;
  grid-template-columns: 1.35fr repeat(3, 1fr);
  gap: 34px;
}

.footer-brand p {
  max-width: 330px;
  color: var(--qp-muted);
  font-size: 0.85rem;
}

.footer-column h2 {
  margin: 0 0 13px;
  font-family: "Montserrat", sans-serif;
  font-size: 0.73rem;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.footer-column ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

.footer-column li + li {
  margin-block-start: 8px;
}

.footer-column a {
  color: var(--qp-muted);
  text-decoration: none;
  font-size: 0.83rem;
}

.footer-column a:hover {
  color: var(--qp-gold-light);
}

.footer-bottom {
  width: min(calc(100% - 36px), var(--qp-content));
  margin-inline: auto;
  padding-block: 18px 28px;
  color: #777382;
  border-block-start: 1px solid var(--qp-border-soft);
  font-size: 0.76rem;
}

@media (max-width: 940px) {
  .site-header-inner {
    grid-template-columns: 1fr auto;
    gap: 10px 16px;
    padding-block: 12px;
  }

  .site-nav {
    grid-column: 1 / -1;
    grid-row: 2;
    justify-content: flex-start;
    overflow-x: auto;
    padding-block-start: 4px;
    scrollbar-width: thin;
  }

  .site-nav a {
    white-space: nowrap;
  }

  .article-layout {
    grid-template-columns: 1fr;
  }

  .toc {
    position: static;
    grid-row: 1;
  }

  .footer-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 640px) {
  .site-header-inner,
  .content-shell,
  .footer-grid,
  .footer-bottom {
    width: min(calc(100% - 24px), var(--qp-content));
  }

  .brand-name,
  .header-actions .button:not(.button-primary) {
    display: none;
  }

  .page-hero {
    margin-block-start: 18px;
    border-radius: 22px;
  }

  .page-hero h1 {
    font-size: clamp(2rem, 11vw, 3.15rem);
  }

  .steps,
  .card-grid,
  .platform-grid,
  .guide-grid,
  .stats-grid,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .article-body section {
    padding: 22px 19px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}
