.guide-page {
  --guide-surface: rgba(11, 15, 29, 0.9);
  --guide-surface-soft: rgba(16, 22, 39, 0.78);
  --guide-border: rgba(164, 178, 218, 0.2);
  background: #03050a;
}

.guide-page::before {
  background:
    linear-gradient(rgba(255, 255, 255, 0.022) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.022) 1px, transparent 1px),
    radial-gradient(circle at 18% 8%, rgba(66, 99, 175, 0.17), transparent 32%),
    radial-gradient(circle at 82% 18%, rgba(38, 155, 96, 0.07), transparent 27%);
  background-size: 48px 48px, 48px 48px, auto, auto;
}

.guide-page nav {
  min-height: 64px;
  height: 64px;
  padding: 0 1.5rem;
  flex-direction: row;
  align-items: center;
  background: rgba(3, 5, 10, 0.9);
  border-color: var(--guide-border);
}

.guide-page .brand span { letter-spacing: 0.1em; }
.guide-page .nav-links { margin-left: auto; flex-wrap: nowrap; }

.guide-page main {
  width: min(1080px, calc(100% - 2.5rem));
  padding: 2.4rem 0 4rem;
}

.guide-page .hero {
  display: block;
  padding: 1.75rem 0 2.25rem;
  border-bottom: 1px solid var(--guide-border);
}

.guide-page .hero > div { min-width: 0; }
.guide-page .hero-logo,
.guide-page .help-card { display: none; }

.guide-page main h1 {
  font-size: 3.4rem;
  letter-spacing: 0.03em;
  line-height: 1.08;
}

.guide-page .lead {
  max-width: 720px;
  color: #c8d2e8;
  font-size: 1rem;
  line-height: 1.7;
}

.guide-page .hero-actions { gap: 0.65rem; margin-top: 1.25rem; }

.guide-page .btn {
  min-height: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.58rem 0.85rem;
  border-color: var(--guide-border);
  background: var(--guide-surface-soft);
  font-size: 0.76rem;
  letter-spacing: 0.06em;
  white-space: nowrap;
}

.guide-page .btn.primary {
  border-color: rgba(69, 196, 122, 0.55);
  background: rgba(34, 139, 84, 0.2);
}

.guide-page .section,
.guide-page .question,
.guide-page .card,
.guide-page .side-nav {
  border-color: var(--guide-border);
  background: var(--guide-surface);
  box-shadow: none;
}

.guide-page .section { padding: 1.4rem; scroll-margin-top: 82px; }
.guide-page main h2 { font-size: 1.4rem; letter-spacing: 0.03em; }

.guide-page main h3,
.guide-page main .card strong,
.guide-page .side-nav a { letter-spacing: 0.06em; }

.guide-page main p,
.guide-page main li,
.guide-page main .card span { color: #c8d2e8; font-size: 0.96rem; }

.guide-page .grid { grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr)); }
.guide-page .tokens { min-width: 0; }
.guide-page .token,
.guide-page code { overflow-wrap: anywhere; }

.guide-page footer {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.5rem 1rem;
  letter-spacing: 0.05em;
  background: rgba(3, 5, 10, 0.86);
}

.guide-page .footer-links { display: inline-flex; flex-wrap: wrap; justify-content: center; gap: 0.8rem; }
.guide-page .footer-links a { color: #aebbd7; text-decoration: none; }
.guide-page .footer-links a:hover,
.guide-page .footer-links a:focus-visible { color: #ffffff; }

@media (max-width: 760px) {
  .guide-page nav {
    height: 58px;
    min-height: 58px;
    padding: 0 0.85rem;
  }

  .guide-page .brand img { width: 32px; height: 32px; }

  .guide-page main {
    width: min(100% - 1.5rem, 1080px);
    padding-top: 1.25rem;
  }

  .guide-page .hero { padding: 1rem 0 1.6rem; }
  .guide-page main h1 { font-size: 2.15rem; letter-spacing: 0; }
  .guide-page .lead { font-size: 0.95rem; }

  .guide-page .hero-actions {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    width: 100%;
  }

  .guide-page .btn { width: 100%; white-space: normal; }
  .guide-page .section,
  .guide-page .question,
  .guide-page .card { padding: 1rem; }
  .guide-page .faq-layout { grid-template-columns: 1fr; }

  .guide-page .side-nav {
    position: static;
    display: flex;
    gap: 0.35rem;
    overflow-x: auto;
    padding: 0.55rem;
  }

  .guide-page .side-nav a { flex: 0 0 auto; white-space: nowrap; }
}

@media (max-width: 360px) {
  .guide-page main { width: calc(100% - 1rem); }
  .guide-page main h1 { font-size: 1.85rem; }
  .guide-page .hero-actions { grid-template-columns: 1fr; }
}
