* { margin: 0; padding: 0; box-sizing: border-box; }

:root {
  --primary: #4f46e5;
  --primary-light: #eef2ff;
  --text: #1e293b;
  --text-light: #64748b;
  --bg: #ffffff;
  --bg-soft: #f8fafc;
  --border: #e2e8f0;
  --code-bg: #0f172a;
  --code-text: #e2e8f0;
  --warn-bg: #fffbeb;
  --warn-border: #f59e0b;
  --green: #10b981;
}

body {
  font-family: 'Inter', -apple-system, sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
}

.topnav {
  border-bottom: 1px solid var(--border);
  background: var(--bg);
  position: sticky;
  top: 0;
  z-index: 10;
}

.topnav-inner {
  max-width: 880px;
  margin: 0 auto;
  padding: 0 24px;
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.brand {
  font-weight: 700;
  font-size: 18px;
  color: var(--text);
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 6px;
}

.brand-icon { color: var(--primary); }

.nav-links {
  display: flex;
  gap: 24px;
  margin-left: 40px;
  flex: 1;
}

.nav-link {
  color: var(--text-light);
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
}

.nav-link:hover { color: var(--text); }

.nav-btn {
  font-size: 13px;
  font-weight: 600;
  padding: 6px 14px;
  border-radius: 6px;
  background: var(--text);
  color: white;
  text-decoration: none;
}

.guide {
  max-width: 720px;
  margin: 0 auto;
  padding: 48px 24px 80px;
}

.guide-header { margin-bottom: 40px; }

.badge {
  display: inline-block;
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 3px 10px;
  border-radius: 999px;
  background: var(--primary-light);
  color: var(--primary);
  margin-bottom: 12px;
}

.guide-header h1 {
  font-size: 32px;
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 12px;
}

.subtitle {
  font-size: 16px;
  color: var(--text-light);
  max-width: 580px;
}

.prereqs {
  background: var(--bg-soft);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 20px 24px;
  margin-bottom: 48px;
}

.prereqs h3 {
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 10px;
}

.prereqs ul {
  list-style: none;
  font-size: 14px;
  color: var(--text-light);
}

.prereqs li { padding: 3px 0; }

.prereqs li::before {
  content: "\2713  ";
  color: var(--green);
  font-weight: 700;
}

.prereqs a { color: var(--primary); }

.step {
  display: flex;
  gap: 20px;
  margin-bottom: 48px;
  padding-bottom: 48px;
  border-bottom: 1px solid var(--border);
}

.step:last-of-type {
  border-bottom: none;
  margin-bottom: 0;
}

.step-num {
  flex-shrink: 0;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--primary);
  color: white;
  font-weight: 700;
  font-size: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: 2px;
}

.step-body { flex: 1; min-width: 0; }

.step-body h2 {
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 10px;
}

.step-body p {
  font-size: 15px;
  color: var(--text-light);
  margin-bottom: 16px;
}

.code-block {
  border-radius: 10px;
  overflow: hidden;
  margin-bottom: 16px;
  border: 1px solid #1e293b;
}

.code-header {
  background: #1e293b;
  padding: 8px 16px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 12px;
  color: #94a3b8;
  font-weight: 500;
}

.copy-btn {
  background: transparent;
  border: 1px solid #475569;
  color: #94a3b8;
  font-size: 11px;
  padding: 2px 10px;
  border-radius: 4px;
  cursor: pointer;
  font-family: inherit;
}

.copy-btn:hover {
  background: #334155;
  color: #e2e8f0;
}

.code-block pre {
  background: var(--code-bg);
  padding: 16px;
  overflow-x: auto;
}

.code-block code {
  font-family: 'JetBrains Mono', monospace;
  font-size: 13px;
  color: var(--code-text);
  line-height: 1.6;
}

.expected {
  background: var(--bg-soft);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 14px 18px;
  margin-bottom: 16px;
}

.expected strong {
  font-size: 13px;
  display: block;
  margin-bottom: 6px;
}

.expected pre {
  background: white;
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 10px 14px;
  overflow-x: auto;
  margin-bottom: 6px;
}

.expected code {
  font-family: 'JetBrains Mono', monospace;
  font-size: 12px;
  color: var(--green);
}

.expected p {
  font-size: 13px;
  margin-bottom: 0;
}

.callout {
  border-radius: 8px;
  padding: 12px 16px;
  font-size: 13px;
}

.callout-warn {
  background: var(--warn-bg);
  border-left: 3px solid var(--warn-border);
  color: #92400e;
}

.callout strong { font-weight: 600; }

.next-links {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.next-link {
  color: var(--primary);
  font-size: 14px;
  font-weight: 500;
  text-decoration: none;
}

.next-link:hover { text-decoration: underline; }

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.footer {
  border-top: 1px solid var(--border);
  padding: 24px 0;
}

.footer-inner {
  max-width: 880px;
  margin: 0 auto;
  padding: 0 24px;
  font-size: 13px;
  color: var(--text-light);
}

.footer a {
  color: var(--text-light);
  text-decoration: none;
}

.footer a:hover { color: var(--text); }

@media (max-width: 640px) {
  .nav-links { display: none; }
  .guide-header h1 { font-size: 24px; }
  .step { flex-direction: column; gap: 12px; }
}
