:root {
  color-scheme: dark;
  --guide-bg: #050507;
  --guide-surface: #111116;
  --guide-surface-soft: #17171d;
  --guide-surface-muted: #202029;
  --guide-border: rgba(255, 255, 255, 0.1);
  --guide-border-strong: rgba(255, 255, 255, 0.18);
  --guide-text: #f7f7fb;
  --guide-muted: #b8b8c7;
  --guide-subtle: #868696;
  --guide-link: #c4b5fd;
  --guide-accent: #8b5cf6;
  --guide-accent-alt: #14b8a6;
  --guide-max: 1120px;
  --guide-reading: 760px;
  --guide-radius: 8px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  max-width: 100%;
  overflow-x: hidden;
}

body {
  margin: 0;
  min-height: 100vh;
  max-width: 100%;
  overflow-x: hidden;
  background: var(--guide-bg);
  color: var(--guide-text);
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

body::selection {
  background: rgba(139, 92, 246, 0.32);
}

a {
  color: var(--guide-link);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

a:focus-visible,
button:focus-visible,
summary:focus-visible {
  outline: 2px solid var(--guide-link);
  outline-offset: 4px;
  border-radius: 6px;
}

img {
  display: block;
  max-width: 100%;
}

.guide-page {
  min-height: 100vh;
  max-width: 100%;
  overflow-x: hidden;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.04) 0, rgba(255, 255, 255, 0) 340px),
    var(--guide-bg);
}

.guide-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(5, 5, 7, 0.86);
  border-bottom: 1px solid var(--guide-border);
  backdrop-filter: blur(18px) saturate(150%);
  -webkit-backdrop-filter: blur(18px) saturate(150%);
}

.guide-header__inner {
  width: min(100%, var(--guide-max));
  margin: 0 auto;
  padding: 14px 20px;
  min-width: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.guide-header__logo {
  width: 148px;
  height: 44px;
  object-fit: contain;
}

.guide-header__nav {
  display: flex;
  align-items: center;
  gap: 20px;
}

.guide-header__link {
  color: var(--guide-muted);
  font-size: 0.94rem;
  font-weight: 650;
}

.guide-btn,
.guide-header__cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 0 18px;
  border-radius: var(--guide-radius);
  background: var(--guide-text);
  color: #101014;
  font-size: 0.94rem;
  font-weight: 750;
  line-height: 1;
  text-align: center;
  border: 1px solid rgba(255, 255, 255, 0.36);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.24);
}

.guide-btn:hover,
.guide-header__cta:hover {
  text-decoration: none;
  background: #ffffff;
}

.guide-secondary,
.guide-secondary-link {
  color: var(--guide-muted);
  font-weight: 650;
}

.guide-index {
  width: min(100%, var(--guide-max));
  margin: 0 auto;
  padding: 86px 20px 96px;
  min-width: 0;
}

.guide-eyebrow {
  margin: 0 0 14px;
  color: var(--guide-accent-alt);
  font-size: 0.82rem;
  font-weight: 760;
  letter-spacing: 0;
  text-transform: uppercase;
}

.guide-title,
.guide-h1 {
  margin: 0;
  max-width: 820px;
  color: var(--guide-text);
  font-size: 4.35rem;
  line-height: 0.98;
  letter-spacing: 0;
  font-weight: 850;
}

.guide-subtitle {
  max-width: 720px;
  margin: 18px 0 0;
  color: var(--guide-muted);
  font-size: 1.16rem;
  line-height: 1.65;
}

.guide-byline {
  margin: 18px 0 0;
  color: var(--guide-subtle);
  font-size: 0.94rem;
  line-height: 1.6;
}

.guide-cta {
  margin-top: 30px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px;
}

.guide-list {
  margin-top: 52px;
  display: grid;
  gap: 18px;
}

.guide-card {
  min-width: 0;
  border: 1px solid var(--guide-border);
  border-radius: var(--guide-radius);
  background: var(--guide-surface);
}

.guide-list .guide-card {
  display: grid;
  grid-template-columns: 260px minmax(0, 1fr);
  gap: 0;
  overflow: hidden;
  color: inherit;
  transition: background 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}

.guide-list .guide-card:hover {
  border-color: rgba(196, 181, 253, 0.42);
  background: var(--guide-surface-soft);
  text-decoration: none;
  transform: translateY(-2px);
}

.guide-card__image {
  width: 100%;
  height: 100%;
  min-height: 210px;
  object-fit: contain;
  background: #000;
}

.guide-card__content {
  padding: 24px;
}

.guide-card__tag,
.guide-card__label {
  margin: 0 0 10px;
  color: var(--guide-accent-alt);
  font-size: 0.78rem;
  font-weight: 760;
  letter-spacing: 0;
  text-transform: uppercase;
}

.guide-card__title {
  margin: 0 0 10px;
  color: var(--guide-text);
  font-size: 1.48rem;
  line-height: 1.25;
  letter-spacing: 0;
  overflow-wrap: anywhere;
}

.guide-card__desc,
.guide-card__meta {
  margin: 0;
  color: var(--guide-muted);
  line-height: 1.65;
  overflow-wrap: anywhere;
}

.guide-card__meta {
  margin-top: 16px;
  color: var(--guide-subtle);
  font-size: 0.92rem;
}

.guide-hero {
  width: min(100%, var(--guide-max));
  margin: 0 auto;
  padding: 88px 20px 64px;
  min-width: 0;
  display: grid;
  grid-template-columns: minmax(0, 1.04fr) minmax(320px, 0.96fr);
  gap: 48px;
  align-items: center;
}

.guide-hero__actions {
  margin-top: 30px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px;
}

.guide-visual {
  margin: 0;
  min-width: 0;
  overflow: hidden;
  border: 1px solid var(--guide-border-strong);
  border-radius: var(--guide-radius);
  background: var(--guide-surface);
}

.guide-visual img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: contain;
  object-position: center;
  background: #000;
}

.guide-container {
  width: min(100%, var(--guide-max));
  margin: 0 auto;
  padding: 0 20px 96px;
  min-width: 0;
  display: grid;
  grid-template-columns: 260px minmax(0, 1fr);
  gap: 60px;
  align-items: start;
}

.guide-toc {
  position: sticky;
  top: 88px;
  padding: 18px;
  min-width: 0;
  border: 1px solid var(--guide-border);
  border-radius: var(--guide-radius);
  background: rgba(17, 17, 22, 0.72);
}

.guide-toc__title {
  margin: 0 0 12px;
  color: var(--guide-text);
  font-weight: 760;
}

.guide-toc ol {
  margin: 0;
  padding-left: 18px;
  color: var(--guide-subtle);
}

.guide-toc li + li {
  margin-top: 9px;
}

.guide-toc a {
  color: var(--guide-muted);
  font-size: 0.94rem;
  line-height: 1.45;
  overflow-wrap: anywhere;
}

.guide-main {
  min-width: 0;
  max-width: var(--guide-reading);
}

.guide-section {
  scroll-margin-top: 94px;
  margin-bottom: 52px;
}

.guide-section .guide-card {
  padding: 24px;
}

.guide-h2 {
  margin: 0 0 18px;
  color: var(--guide-text);
  font-size: 2rem;
  line-height: 1.18;
  letter-spacing: 0;
  overflow-wrap: anywhere;
}

.guide-h3 {
  margin: 30px 0 8px;
  color: var(--guide-text);
  font-size: 1.18rem;
  line-height: 1.3;
  letter-spacing: 0;
}

.guide-p,
.guide-li,
.guide-faq__a {
  color: var(--guide-muted);
  font-size: 1rem;
  line-height: 1.75;
  overflow-wrap: anywhere;
}

.guide-p {
  margin: 0 0 18px;
}

.guide-summary-list,
.guide-list-text {
  margin: 0;
  padding-left: 20px;
}

.guide-li + .guide-li {
  margin-top: 10px;
}

.guide-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin-top: 24px;
}

.guide-feature {
  min-width: 0;
  padding: 20px;
  border: 1px solid var(--guide-border);
  border-radius: var(--guide-radius);
  background: var(--guide-surface);
}

.guide-feature h3 {
  margin: 0 0 8px;
  color: var(--guide-text);
  font-size: 1rem;
  letter-spacing: 0;
}

.guide-feature p {
  margin: 0;
  color: var(--guide-muted);
  line-height: 1.65;
}

.guide-callout {
  margin: 20px 0;
  padding: 20px;
  border-left: 3px solid var(--guide-accent-alt);
  background: rgba(20, 184, 166, 0.08);
}

.guide-callout .guide-p {
  margin: 0;
}

.guide-table-wrap {
  margin-top: 24px;
  min-width: 0;
  max-width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  border: 1px solid var(--guide-border);
  border-radius: var(--guide-radius);
  background: var(--guide-surface);
}

.guide-table {
  width: 100%;
  min-width: 680px;
  border-collapse: collapse;
}

.guide-table th,
.guide-table td {
  padding: 15px 16px;
  border-bottom: 1px solid var(--guide-border);
  color: var(--guide-muted);
  text-align: left;
  line-height: 1.45;
}

.guide-table th {
  color: var(--guide-text);
  font-size: 0.9rem;
  font-weight: 760;
  background: var(--guide-surface-soft);
}

.guide-table tr:last-child td {
  border-bottom: 0;
}

.guide-positive {
  color: #a7f3d0;
  font-weight: 720;
}

.guide-cta-panel {
  margin: 20px 0 56px;
  padding: 30px;
  border: 1px solid var(--guide-border);
  border-radius: var(--guide-radius);
  background: var(--guide-surface-soft);
}

.guide-cta-panel h2 {
  margin: 0 0 10px;
  color: var(--guide-text);
  font-size: 1.8rem;
  line-height: 1.2;
  letter-spacing: 0;
}

.guide-cta-panel p {
  margin: 0 0 20px;
  color: var(--guide-muted);
  line-height: 1.65;
}

.guide-faq {
  display: grid;
  gap: 10px;
}

.guide-faq details {
  border: 1px solid var(--guide-border);
  border-radius: var(--guide-radius);
  background: var(--guide-surface);
  padding: 18px 20px;
}

.guide-faq summary {
  cursor: pointer;
  color: var(--guide-text);
  font-weight: 760;
  list-style: none;
}

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

.guide-faq__a {
  margin: 10px 0 0;
}

.guide-sources,
.guide-disclaimer {
  padding: 20px;
  border: 1px solid var(--guide-border);
  border-radius: var(--guide-radius);
  background: var(--guide-surface);
}

.guide-sources {
  margin-bottom: 20px;
}

.guide-sources ul {
  margin: 0;
  padding-left: 20px;
}

.guide-sources li {
  color: var(--guide-muted);
  line-height: 1.7;
}

.guide-disclaimer {
  margin: 28px 0 0;
  color: var(--guide-muted);
  line-height: 1.7;
}

.guide-footer {
  border-top: 1px solid var(--guide-border);
  padding: 30px 20px;
  text-align: center;
}

.guide-footer__links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 18px;
  margin-bottom: 14px;
}

.guide-footer__links a {
  color: var(--guide-subtle);
  font-size: 0.92rem;
}

.guide-footer__copy {
  margin: 0;
  color: rgba(255, 255, 255, 0.34);
  font-size: 0.86rem;
}

@media (max-width: 980px) {
  .guide-hero > *,
  .guide-container > *,
  .guide-grid > * {
    min-width: 0;
  }

  .guide-hero {
    grid-template-columns: 1fr;
    padding-top: 66px;
  }

  .guide-container {
    grid-template-columns: 1fr;
    gap: 34px;
  }

  .guide-toc {
    position: static;
  }

  .guide-main {
    width: 100%;
    max-width: none;
  }
}

@media (max-width: 760px) {
  .guide-header {
    position: static;
  }

  .guide-header__inner {
    padding: 12px 16px;
  }

  .guide-header__logo {
    width: 124px;
    height: 38px;
  }

  .guide-header__link {
    display: none;
  }

  .guide-title,
  .guide-h1 {
    font-size: 2.45rem;
    line-height: 1.04;
  }

  .guide-h2 {
    font-size: 1.58rem;
  }

  .guide-subtitle {
    font-size: 1rem;
  }

  .guide-index,
  .guide-hero {
    width: 100%;
    padding-left: 16px;
    padding-right: 16px;
  }

  .guide-container {
    width: 100%;
    padding-left: 16px;
    padding-right: 16px;
  }

  .guide-list .guide-card {
    grid-template-columns: 1fr;
  }

  .guide-card__image {
    min-height: 180px;
  }

  .guide-grid {
    grid-template-columns: 1fr;
  }

  .guide-cta-panel,
  .guide-section .guide-card,
  .guide-feature,
  .guide-sources,
  .guide-disclaimer {
    padding: 18px;
  }
}

@media (max-width: 420px) {
  .guide-header__cta,
  .guide-btn {
    min-height: 40px;
    padding: 0 14px;
    font-size: 0.86rem;
  }

  .guide-title,
  .guide-h1 {
    font-size: 2.05rem;
  }
}
