:root {
  --bg: #0d0d1a; --bg2: #12121f; --bg3: #1a1a2e;
  --fg: #e8e8f0; --muted: #8888aa; --line: #2a2a3e;
  --accent: #7c5cff; --accent2: #22d3ee; --ok: #22c55e;
  --warn: #f59e0b; --err: #ef4444;
  --radius: 10px; --max: 820px;
}
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body { background: var(--bg); color: var(--fg); font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif; font-size: 16px; line-height: 1.7; }

a { color: var(--accent2); text-decoration: none; }
a:hover { text-decoration: underline; }

/* NAV */
nav { background: var(--bg2); border-bottom: 1px solid var(--line); padding: 0 24px; display: flex; align-items: center; gap: 16px; height: 54px; position: sticky; top: 0; z-index: 100; }
nav .logo { font-weight: 700; font-size: 15px; color: var(--fg); display: flex; align-items: center; gap: 8px; }
nav .logo-icon { width: 28px; height: 28px; background: linear-gradient(135deg,#7c5cff,#22d3ee); border-radius: 7px; display: flex; align-items: center; justify-content: center; font-size: 14px; }
nav .spacer { flex: 1; }
nav .nav-link { font-size: 13px; color: var(--muted); padding: 6px 12px; border-radius: 6px; transition: all 120ms; }
nav .nav-link:hover { color: var(--fg); background: var(--bg3); text-decoration: none; }
nav .cta { background: var(--accent); color: #fff; padding: 7px 16px; border-radius: 7px; font-size: 13px; font-weight: 600; transition: opacity 120ms; }
nav .cta:hover { opacity: 0.85; text-decoration: none; }

/* BREADCRUMB */
.breadcrumb { font-size: 13px; color: var(--muted); margin-bottom: 12px; }
.breadcrumb a { color: var(--muted); }
.breadcrumb a:hover { color: var(--fg); }

/* HERO */
.hero { padding: 48px 24px 36px; max-width: var(--max); margin: 0 auto; }
.platform-badge { display: inline-flex; align-items: center; gap: 8px; background: var(--bg3); border: 1px solid var(--line); border-radius: 999px; padding: 6px 14px; font-size: 13px; color: var(--muted); margin-bottom: 20px; }
.platform-badge .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--ok); box-shadow: 0 0 0 3px rgba(34,197,94,.2); }
h1 { font-size: clamp(1.6rem, 4vw, 2.2rem); font-weight: 800; line-height: 1.2; margin-bottom: 16px; background: linear-gradient(135deg,var(--fg),var(--muted)); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; }
.lead { font-size: 1.05rem; color: var(--muted); max-width: 640px; margin-bottom: 28px; line-height: 1.8; }

/* SHARE BAR */
.share-bar { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-bottom: 8px; }
.share-bar span { font-size: 12px; color: var(--muted); }
.share-btn { display: inline-flex; align-items: center; gap: 6px; padding: 6px 14px; border-radius: 7px; font-size: 12px; font-weight: 600; cursor: pointer; border: 1px solid var(--line); transition: all 120ms; text-decoration: none; background: var(--bg3); color: var(--fg); }
.share-btn:hover { border-color: var(--accent); color: var(--accent2); text-decoration: none; }
.share-btn.twitter { border-color: #1d9bf0; }
.share-btn.linkedin { border-color: #0a66c2; }
.share-btn.reddit { border-color: #ff4500; }

/* MAIN CONTENT */
.content { max-width: var(--max); margin: 0 auto; padding: 0 24px 80px; }
.content h2 { font-size: 1.35rem; font-weight: 700; margin: 36px 0 14px; color: var(--fg); border-left: 3px solid var(--accent); padding-left: 14px; }
.content h3 { font-size: 1.05rem; font-weight: 600; margin: 24px 0 10px; color: var(--accent2); }
.content p { margin-bottom: 16px; color: #c8c8d8; }
.content ul, .content ol { padding-left: 24px; margin-bottom: 16px; }
.content li { margin-bottom: 8px; color: #c8c8d8; }
.content strong { color: var(--fg); }

/* STEPS */
.steps { counter-reset: step; list-style: none; padding: 0; }
.steps li { counter-increment: step; display: flex; gap: 16px; margin-bottom: 24px; }
.steps li::before { content: counter(step); min-width: 32px; height: 32px; background: linear-gradient(135deg,var(--accent),var(--accent2)); border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 13px; font-weight: 700; color: #fff; flex-shrink: 0; margin-top: 2px; }
.steps li .step-body h3 { margin-top: 0; font-size: 0.95rem; }
.steps li .step-body p { font-size: 0.9rem; }

/* CODE */
pre, code { font-family: ui-monospace, 'Fira Code', monospace; font-size: 13px; }
pre { background: var(--bg3); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px 20px; overflow-x: auto; margin: 12px 0 20px; line-height: 1.6; }
code { background: var(--bg3); padding: 2px 6px; border-radius: 4px; font-size: 0.85em; color: var(--accent2); }
pre code { background: none; padding: 0; color: #e8e8f0; }

/* INFO BOXES */
.info-box { background: var(--bg2); border: 1px solid var(--line); border-left: 4px solid var(--accent); border-radius: var(--radius); padding: 16px 20px; margin: 20px 0; }
.info-box.tip { border-left-color: var(--ok); }
.info-box.warn { border-left-color: var(--warn); }
.info-box p { margin: 0; font-size: 0.9rem; }
.info-box .label { font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.5px; margin-bottom: 6px; color: var(--accent2); }
.info-box.tip .label { color: var(--ok); }
.info-box.warn .label { color: var(--warn); }

/* CARDS GRID (hub page) */
.grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: 16px; }
@media (max-width: 700px) { .grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 480px) { .grid { grid-template-columns: 1fr; } }
.card { background: var(--bg2); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; transition: all 180ms; }
.card:hover { border-color: var(--accent); transform: translateY(-2px); box-shadow: 0 8px 24px rgba(124,92,255,.12); }
.card a { text-decoration: none; display: block; }
.card .card-icon { font-size: 28px; margin-bottom: 10px; }
.card .card-name { font-weight: 700; font-size: 0.95rem; color: var(--fg); margin-bottom: 4px; }
.card .card-desc { font-size: 12px; color: var(--muted); line-height: 1.5; }
.card .badge { display: inline-block; margin-top: 10px; font-size: 10px; font-weight: 700; text-transform: uppercase; padding: 2px 8px; border-radius: 999px; }
.badge.complete { background: rgba(34,197,94,.15); color: var(--ok); }
.badge.coming-soon { background: rgba(245,158,11,.12); color: var(--warn); }

/* RELATED */
.related-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 10px; margin-top: 14px; }
.related-card { background: var(--bg2); border: 1px solid var(--line); border-radius: 8px; padding: 12px 14px; font-size: 13px; transition: border-color 120ms; }
.related-card:hover { border-color: var(--accent2); text-decoration: none; }
.related-card strong { display: block; color: var(--fg); margin-bottom: 2px; }
.related-card span { color: var(--muted); font-size: 11px; }

/* FOOTER */
footer { border-top: 1px solid var(--line); padding: 32px 24px; text-align: center; font-size: 13px; color: var(--muted); }
footer a { color: var(--muted); }
footer a:hover { color: var(--fg); }

/* CATEGORY HEADING */
.cat-heading { font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: 1px; color: var(--muted); margin: 36px 0 12px; padding-bottom: 8px; border-bottom: 1px solid var(--line); }

@media (max-width: 600px) {
  .hero { padding: 32px 16px 24px; }
  .content { padding: 0 16px 60px; }
  nav { padding: 0 16px; }
  .share-bar { gap: 8px; }
}

/* FAQ SECTION */
.faq-section { max-width: var(--max); margin: 0 auto; padding: 0 0 40px; }
.faq-section h2 { font-size: 22px; font-weight: 700; margin: 40px 0 16px; }
.faq-item { border: 1px solid var(--line); border-radius: 10px; margin-bottom: 10px; overflow: hidden; }
.faq-q { width: 100%; background: var(--bg2); border: none; color: var(--fg); font-size: 15px; font-weight: 600; padding: 16px 20px; text-align: left; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 12px; transition: background 150ms; }
.faq-q:hover { background: var(--bg3); }
.faq-q.open { background: var(--bg3); color: var(--accent); }
.faq-arrow { font-size: 18px; flex-shrink: 0; transition: transform 200ms; }
.faq-q.open .faq-arrow { transform: rotate(180deg); }
.faq-a { display: none; padding: 16px 20px; font-size: 14px; line-height: 1.7; color: var(--muted); border-top: 1px solid var(--line); }
.faq-a.show { display: block; }
.faq-a code { background: var(--bg3); padding: 2px 6px; border-radius: 4px; font-family: monospace; color: var(--fg); font-size: 13px; }
