/* ── HELP ARTICLE SHARED STYLES ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body { font-family: 'Inter', system-ui, -apple-system, sans-serif; color: #e2e8f0; background: #0b0e18; line-height: 1.7; -webkit-font-smoothing: antialiased; overflow-x: hidden; }

/* NAV */
.nav { position: fixed; top: 0; left: 0; right: 0; z-index: 100; background: rgba(11,14,24,0.8); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px); border-bottom: 1px solid rgba(255,255,255,0.05); transition: background 0.3s, box-shadow 0.3s; }
.nav.scrolled { background: rgba(11,14,24,0.95); box-shadow: 0 1px 12px rgba(0,0,0,0.3); }
.nav-inner { max-width: 1200px; margin: 0 auto; display: flex; align-items: center; justify-content: space-between; padding: 0 32px; height: 72px; }
.nav-logo img { height: 28px; display: block; }
.nav-center { display: flex; gap: 36px; }
.nav-center a { text-decoration: none; color: rgba(255,255,255,0.5); font-size: 14px; font-weight: 500; transition: color .2s; position: relative; }
.nav-center a:hover { color: #fff; }
.nav-center a::after { content: ''; position: absolute; bottom: -4px; left: 0; width: 0; height: 2px; background: linear-gradient(90deg, #6366f1, #a78bfa); border-radius: 1px; transition: width 0.3s; }
.nav-center a:hover::after { width: 100%; }
.nav-center a.active { color: #fff; }
.nav-center a.active::after { width: 100%; }
.nav-right { display: flex; align-items: center; gap: 12px; }
.nav-login { padding: 8px 18px; font-size: 14px; font-weight: 500; color: rgba(255,255,255,0.7); text-decoration: none; border-radius: 8px; transition: all .2s; }
.nav-login:hover { color: #fff; background: rgba(255,255,255,0.06); }
.nav-cta { padding: 8px 20px; font-size: 14px; font-weight: 600; color: #fff; background: linear-gradient(135deg, #6366f1, #8b5cf6); text-decoration: none; border-radius: 8px; transition: all .2s; box-shadow: 0 2px 12px rgba(99,102,241,0.3); }
.nav-cta:hover { box-shadow: 0 4px 20px rgba(99,102,241,0.5); transform: translateY(-1px); }
.nav-ham { display: none; background: none; border: none; cursor: pointer; padding: 8px; }
.nav-ham svg { display: block; }

/* BREADCRUMB */
.breadcrumb { max-width: 780px; margin: 0 auto; padding: 100px 24px 0; display: flex; align-items: center; gap: 8px; font-size: 14px; }
.breadcrumb a { color: rgba(255,255,255,0.35); text-decoration: none; transition: color .2s; }
.breadcrumb a:hover { color: #a78bfa; }
.breadcrumb .sep { color: rgba(255,255,255,0.15); }
.breadcrumb .current { color: rgba(255,255,255,0.6); }

/* ARTICLE */
.article { max-width: 780px; margin: 0 auto; padding: 32px 24px 48px; }
.article-head { margin-bottom: 40px; padding-bottom: 28px; border-bottom: 1px solid rgba(255,255,255,0.06); }
.article-icon { width: 52px; height: 52px; border-radius: 14px; display: flex; align-items: center; justify-content: center; margin-bottom: 20px; }
.article-head h1 { font-size: 42px; font-weight: 800; letter-spacing: -0.03em; color: #fff; margin-bottom: 12px; line-height: 1.15; }
.article-head p { font-size: 18px; color: rgba(255,255,255,0.4); line-height: 1.6; max-width: 600px; }

/* SECTIONS */
.section-block { margin-bottom: 48px; }
.section-block h2 { font-size: 26px; font-weight: 700; color: #fff; margin-bottom: 16px; letter-spacing: -0.015em; }
.section-block h3 { font-size: 20px; font-weight: 600; color: #e2e8f0; margin-bottom: 10px; }
.section-block p { font-size: 17px; color: rgba(255,255,255,0.55); margin-bottom: 14px; line-height: 1.75; }
.section-block ul, .section-block ol { padding-left: 20px; margin-bottom: 16px; }
.section-block li { font-size: 17px; color: rgba(255,255,255,0.55); margin-bottom: 8px; line-height: 1.65; }
.section-block li strong { color: #e2e8f0; font-weight: 600; }
.section-block a { color: #818cf8; text-decoration: none; transition: color .2s; }
.section-block a:hover { color: #a78bfa; text-decoration: underline; }

/* FEATURE CARDS (for features page) */
.feature-grid { display: grid; grid-template-columns: 1fr; gap: 20px; margin-bottom: 48px; }
.feature-card { background: rgba(255,255,255,0.02); border: 1px solid rgba(255,255,255,0.06); border-radius: 16px; padding: 28px; transition: all 0.2s; }
.feature-card:hover { border-color: rgba(99,102,241,0.18); background: rgba(99,102,241,0.03); }
.feature-card h3 { font-size: 19px; font-weight: 700; color: #fff; margin-bottom: 8px; display: flex; align-items: center; gap: 10px; }
.feature-card h3 .f-icon { width: 32px; height: 32px; border-radius: 8px; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.feature-card p { font-size: 16px; color: rgba(255,255,255,0.45); line-height: 1.65; }
.feature-card .tip { margin-top: 10px; padding: 12px 16px; background: rgba(99,102,241,0.06); border-radius: 10px; font-size: 14px; color: rgba(255,255,255,0.55); border: 1px solid rgba(99,102,241,0.1); }
.feature-card .tip strong { color: #a78bfa; }

/* SCREENSHOT / IMAGE BLOCKS */
.screenshot-block { margin: 28px 0 36px; }
.screenshot-block img { width: 100%; border-radius: 14px; border: 1px solid rgba(255,255,255,0.08); box-shadow: 0 8px 40px rgba(0,0,0,0.35), 0 0 0 1px rgba(255,255,255,0.04); display: block; }
.screenshot-block figcaption, .screenshot-caption { text-align: center; font-size: 13px; color: rgba(255,255,255,0.3); margin-top: 12px; font-style: italic; }
.screenshot-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin: 28px 0 36px; }
.screenshot-grid figure { margin: 0; }
.screenshot-grid img { width: 100%; border-radius: 12px; border: 1px solid rgba(255,255,255,0.08); box-shadow: 0 6px 28px rgba(0,0,0,0.3); display: block; }
.screenshot-grid figcaption { text-align: center; font-size: 12px; color: rgba(255,255,255,0.3); margin-top: 10px; }
@media (max-width: 640px) { .screenshot-grid { grid-template-columns: 1fr; } }

/* TROUBLESHOOTING ARTICLES */
.ts-article { margin-bottom: 36px; padding: 28px; background: rgba(255,255,255,0.02); border: 1px solid rgba(255,255,255,0.06); border-radius: 16px; scroll-margin-top: 100px; transition: border-color 0.3s; }
.ts-article:target { border-color: rgba(99,102,241,0.35); }
.ts-badge { display: inline-flex; align-items: center; font-size: 12px; font-weight: 700; color: #a78bfa; background: rgba(167,139,250,0.1); border-radius: 6px; padding: 3px 10px; margin-bottom: 12px; letter-spacing: 0.04em; }
.ts-article h3 { font-size: 20px; font-weight: 700; color: #fff; margin-bottom: 8px; }
.ts-article p { font-size: 16px; color: rgba(255,255,255,0.5); margin-bottom: 10px; line-height: 1.65; }
.ts-article .cause { margin-bottom: 8px; font-size: 14px; color: rgba(255,255,255,0.3); font-weight: 600; text-transform: uppercase; letter-spacing: 0.08em; }
.ts-article .steps { padding-left: 20px; margin: 8px 0; }
.ts-article .steps li { font-size: 16px; color: rgba(255,255,255,0.55); margin-bottom: 6px; line-height: 1.6; }
.ts-article .steps li strong { color: #e2e8f0; }
.ts-article .steps li code { font-size: 13px; background: rgba(255,255,255,0.06); padding: 2px 7px; border-radius: 5px; font-family: 'SF Mono', Menlo, Consolas, monospace; color: #f0abfc; }

/* FAQ ACCORDION */
.faq-group { margin-bottom: 48px; }
.faq-group h2 { font-size: 24px; font-weight: 700; color: #fff; margin-bottom: 16px; }
.faq-item { border-bottom: 1px solid rgba(255,255,255,0.05); }
.faq-item:first-child { border-top: 1px solid rgba(255,255,255,0.05); }
.faq-q { display: flex; align-items: center; justify-content: space-between; padding: 18px 0; cursor: pointer; list-style: none; }
.faq-q::-webkit-details-marker { display: none; }
.faq-q h3 { font-size: 17px; font-weight: 600; color: #e2e8f0; flex: 1; }
.faq-q .arrow { color: rgba(255,255,255,0.2); transition: transform 0.2s; font-size: 18px; }
details[open] .faq-q .arrow { transform: rotate(45deg); }
.faq-a { padding: 0 0 18px; }
.faq-a p { font-size: 16px; color: rgba(255,255,255,0.45); line-height: 1.65; }

/* NAV BOTTOM */
.page-nav { max-width: 780px; margin: 0 auto; padding: 0 24px 48px; display: flex; justify-content: space-between; gap: 16px; }
.pn-link { display: flex; align-items: center; gap: 10px; padding: 16px 20px; background: rgba(255,255,255,0.02); border: 1px solid rgba(255,255,255,0.06); border-radius: 12px; text-decoration: none; transition: all 0.2s; flex: 1; max-width: 48%; }
.pn-link:hover { background: rgba(99,102,241,0.05); border-color: rgba(99,102,241,0.18); }
.pn-link.next { margin-left: auto; text-align: right; flex-direction: row-reverse; }
.pn-dir { font-size: 12px; font-weight: 600; color: rgba(255,255,255,0.25); text-transform: uppercase; letter-spacing: 0.08em; }
.pn-name { font-size: 16px; font-weight: 600; color: #e2e8f0; }
.pn-arr { color: rgba(255,255,255,0.2); font-size: 18px; flex-shrink: 0; }

/* FOOTER */
.footer { padding: 40px 32px; border-top: 1px solid rgba(255,255,255,0.05); }
.footer-inner { max-width: 1200px; margin: 0 auto; display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 16px; }
.footer-left { font-size: 14px; color: rgba(255,255,255,0.2); }
.footer-links { display: flex; gap: 24px; }
.footer-links a { font-size: 14px; color: rgba(255,255,255,0.25); text-decoration: none; transition: color .2s; }
.footer-links a:hover { color: rgba(255,255,255,0.6); }

/* BG */
.page-bg { position: fixed; inset: 0; z-index: -1; pointer-events: none; }
.page-bg::before { content: ''; position: absolute; top: -200px; left: -200px; width: 700px; height: 700px; background: radial-gradient(circle, rgba(99,102,241,0.06) 0%, transparent 70%); }
.page-bg::after { content: ''; position: absolute; bottom: -100px; right: -200px; width: 600px; height: 600px; background: radial-gradient(circle, rgba(139,92,246,0.05) 0%, transparent 70%); }

/* RESPONSIVE */
@media (max-width: 640px) {
  .nav-center { display: none; }
  .nav-ham { display: block; }
  .nav-center.open { display: flex; flex-direction: column; position: absolute; top: 72px; left: 0; right: 0; background: rgba(11,14,24,0.97); backdrop-filter: blur(20px); padding: 16px 32px; gap: 12px; border-bottom: 1px solid rgba(255,255,255,0.06); }
  .breadcrumb { padding-top: 88px; }
  .article-head h1 { font-size: 32px; }
  .page-nav { flex-direction: column; }
  .pn-link { max-width: 100%; }
  .footer-inner { flex-direction: column; text-align: center; }
}
