*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
body { font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif; color: #1a1a2e; background: #f8fafc; line-height: 1.6; }
a { color: #2563eb; text-decoration: none; }
a:hover { text-decoration: underline; }

header { background: #fff; border-bottom: 1px solid #e2e8f0; padding: 1rem 2rem; }
.header-inner { max-width: 1100px; margin: 0 auto; display: flex; justify-content: space-between; align-items: center; }
.logo { font-weight: 800; font-size: 1.25rem; color: #2563eb; text-decoration: none; }
.header-meta { font-size: 0.875rem; color: #64748b; }

main { max-width: 1100px; margin: 0 auto; padding: 2rem; }

.hero { text-align: center; padding: 3rem 0 2rem; }
.hero h1 { font-size: 2rem; font-weight: 800; color: #1a1a2e; margin-bottom: 0.5rem; }
.subtitle { color: #64748b; font-size: 1.1rem; margin-bottom: 2rem; }
.stats { display: flex; justify-content: center; gap: 3rem; }
.stat { text-align: center; }
.stat-value { font-size: 2rem; font-weight: 800; color: #2563eb; }
.stat-label { font-size: 0.8rem; color: #64748b; text-transform: uppercase; letter-spacing: 0.05em; }

.docs-grid { padding: 2rem 0; }
.docs-grid h2 { font-size: 1.25rem; margin-bottom: 1rem; }
.doc-links { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 1rem; }
.doc-link { display: block; padding: 1.25rem; background: #fff; border: 1px solid #e2e8f0; border-radius: 0.75rem; font-weight: 600; transition: all 0.15s; }
.doc-link:hover { border-color: #2563eb; box-shadow: 0 2px 8px rgba(37, 99, 235, 0.1); text-decoration: none; }

.cta-section { text-align: center; padding: 3rem 2rem; margin-top: 2rem; background: linear-gradient(135deg, #2563eb 0%, #7c3aed 100%); border-radius: 1rem; color: #fff; }
.cta-section h2 { font-size: 1.5rem; margin-bottom: 0.5rem; }
.cta-section p { opacity: 0.9; margin-bottom: 1.5rem; }
.cta-button { display: inline-block; padding: 0.875rem 2rem; background: #fff; color: #2563eb; font-weight: 700; border-radius: 0.5rem; font-size: 1rem; transition: transform 0.15s; }
.cta-button:hover { transform: translateY(-1px); text-decoration: none; }

/* Doc layout */
.doc-layout { display: grid; grid-template-columns: 240px 1fr; gap: 2rem; max-width: 1100px; margin: 0 auto; padding: 2rem; }
.doc-nav { position: sticky; top: 1rem; align-self: start; display: flex; flex-direction: column; gap: 0.25rem; }
.nav-back { font-size: 0.875rem; margin-bottom: 1rem; color: #64748b; }
.nav-link { padding: 0.5rem 0.75rem; border-radius: 0.375rem; font-size: 0.875rem; color: #475569; }
.nav-link:hover { background: #f1f5f9; text-decoration: none; }
.nav-link.active { background: #eff6ff; color: #2563eb; font-weight: 600; }
.doc-content { background: #fff; padding: 2.5rem; border-radius: 0.75rem; border: 1px solid #e2e8f0; min-height: 60vh; }
.doc-content h1 { font-size: 1.75rem; margin-bottom: 1.5rem; color: #1a1a2e; }
.doc-content h2 { font-size: 1.35rem; margin: 2rem 0 0.75rem; padding-top: 1.5rem; border-top: 1px solid #f1f5f9; }
.doc-content h3 { font-size: 1.1rem; margin: 1.5rem 0 0.5rem; }
.doc-content p { margin-bottom: 1rem; color: #374151; }
.doc-content ul { margin: 0.5rem 0 1rem 1.5rem; }
.doc-content li { margin-bottom: 0.375rem; color: #374151; }
.doc-content table { width: 100%; border-collapse: collapse; margin: 1rem 0; }
.doc-content th, .doc-content td { padding: 0.625rem 1rem; text-align: left; border-bottom: 1px solid #e5e7eb; font-size: 0.9rem; }
.doc-content th { background: #f9fafb; font-weight: 600; color: #374151; }
.doc-content hr { border: none; border-top: 1px solid #e5e7eb; margin: 2rem 0; }
.doc-content strong { font-weight: 600; }
.numbered { margin-bottom: 0.5rem; }

footer { text-align: center; padding: 2rem; color: #94a3b8; font-size: 0.875rem; }
.cta-inline { margin-top: 0.5rem; }
.cta-inline a { color: #2563eb; font-weight: 600; }

@media (max-width: 768px) {
    .doc-layout { grid-template-columns: 1fr; }
    .doc-nav { position: static; flex-direction: row; flex-wrap: wrap; }
    .stats { flex-direction: column; gap: 1rem; }
    main { padding: 1rem; }
    .doc-content { padding: 1.5rem; }
}