:root {
  color-scheme: dark;
  --bg: #0d0f15;
  --surface: #151822;
  --surface-2: #1b1f2b;
  --text: #eef0f6;
  --muted: #a4abba;
  --faint: #70798d;
  --line: #2d3342;
  --accent: #8065ff;
  --accent-2: #ae9eff;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; color: var(--text); background: radial-gradient(circle at 50% -15%, #23203a 0, var(--bg) 38rem); font: 16px/1.65 Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; }
a { color: var(--accent-2); text-decoration: none; }
a:hover { color: #d8d1ff; }
a:focus-visible, button:focus-visible { outline: 2px solid var(--accent-2); outline-offset: 3px; }

.guide-header { position: sticky; z-index: 10; top: 0; display: flex; align-items: center; justify-content: space-between; min-height: 66px; padding: 0 max(22px, calc((100vw - 1080px) / 2)); background: rgba(13,15,21,.88); border-bottom: 1px solid rgba(67,74,94,.65); backdrop-filter: blur(14px); }
.guide-brand { display: inline-flex; align-items: center; gap: 10px; color: var(--text); }
.guide-brand > span:last-child { display: grid; line-height: 1.1; }
.guide-brand strong { font-size: 17px; }
.guide-brand small { margin-top: 4px; color: var(--faint); font-size: 10px; }
.brand-mark { width: 34px; height: 34px; display: grid; place-items: center; color: white; background: linear-gradient(145deg, #8b70ff, #5b3dd1); border-radius: 8px; box-shadow: 0 7px 20px rgba(91,61,209,.35); font-weight: 800; }
.guide-header nav { display: flex; align-items: center; gap: 22px; font-size: 14px; }
.open-editor, .primary-action { display: inline-flex; align-items: center; justify-content: center; min-height: 40px; padding: 0 17px; color: white; background: linear-gradient(135deg, #876cff, #6747df); border-radius: 8px; font-weight: 700; box-shadow: 0 9px 24px rgba(80,55,185,.28); }
.open-editor:hover, .primary-action:hover { color: white; filter: brightness(1.08); }

main { width: min(100% - 40px, 900px); margin: 0 auto; padding: 36px 0 80px; }
.breadcrumb { display: flex; gap: 9px; margin-bottom: 46px; color: var(--faint); font-size: 13px; }
.hero { margin-bottom: 72px; }
.eyebrow { margin: 0 0 9px; color: var(--accent-2); font-size: 12px; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; }
h1, h2, h3 { color: var(--text); line-height: 1.2; letter-spacing: -.025em; }
h1 { max-width: 760px; margin: 0; font-size: clamp(2.5rem, 7vw, 4.7rem); }
h2 { margin: 0 0 18px; font-size: clamp(1.65rem, 4vw, 2.35rem); }
h3 { margin: 0 0 8px; font-size: 1.05rem; }
p { color: var(--muted); }
.lead { max-width: 780px; margin: 24px 0 28px; color: #c4c9d4; font-size: 1.18rem; }
.primary-action { min-height: 46px; padding: 0 22px; }
.fact-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin: 28px 0; }
.fact-row span { display: grid; padding: 15px 16px; color: var(--muted); background: rgba(23,26,36,.7); border: 1px solid var(--line); border-radius: 10px; font-size: 13px; }
.fact-row strong { margin-bottom: 2px; color: var(--text); font-size: 15px; }
section { margin-top: 72px; scroll-margin-top: 96px; }
section > p { max-width: 790px; }
.steps { display: grid; gap: 11px; padding: 0; list-style: none; counter-reset: steps; }
.steps li { position: relative; padding: 18px 20px 18px 64px; color: var(--muted); background: var(--surface); border: 1px solid var(--line); border-radius: 10px; counter-increment: steps; }
.steps li::before { position: absolute; left: 18px; top: 17px; width: 28px; height: 28px; display: grid; place-items: center; color: #dcd6ff; background: rgba(128,101,255,.16); border: 1px solid rgba(128,101,255,.32); border-radius: 50%; content: counter(steps); font-size: 12px; font-weight: 800; }
.steps strong { color: var(--text); }
code { padding: 2px 5px; color: #d9d3ff; background: #191724; border: 1px solid #302a4b; border-radius: 4px; font-size: .9em; }
.feature-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
.feature-grid article, .faq-list article { padding: 20px; background: linear-gradient(145deg, rgba(28,32,44,.95), rgba(19,22,31,.95)); border: 1px solid var(--line); border-radius: 11px; }
.feature-grid p, .faq-list p { margin: 0; font-size: 14px; }
.faq-list { display: grid; gap: 10px; }
.faq-list article { padding: 18px 20px; }
.guide-footer { display: flex; justify-content: space-between; gap: 20px; width: min(100% - 40px, 900px); margin: 0 auto; padding: 25px 0 40px; color: var(--faint); border-top: 1px solid var(--line); font-size: 12px; }

@media (max-width: 680px) {
  .guide-header { padding: 0 16px; }
  .guide-header nav > a:not(.open-editor) { display: none; }
  main { width: min(100% - 30px, 900px); padding-top: 26px; }
  .breadcrumb { margin-bottom: 30px; }
  .hero { margin-bottom: 56px; }
  .fact-row, .feature-grid { grid-template-columns: 1fr; }
  section { margin-top: 56px; }
  .guide-footer { width: min(100% - 30px, 900px); flex-direction: column; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}
