:root {
  --bg-primary: #09090b;
  --bg-card: #18181b;
  --bg-card-hover: #1f1f23;
  --border: #27272a;
  --text-primary: #f4f4f5;
  --text-secondary: #a1a1aa;
  --text-muted: #71717a;
  --accent: #f97316;
  --accent-hover: #ea580c;
  --accent-light: #fb923c;
  --accent-bg: rgba(249, 115, 22, 0.1);
  --accent-border: rgba(249, 115, 22, 0.2);
  --green: #22c55e;
  --green-bg: rgba(34, 197, 94, 0.1);
}

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

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  background: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.7;
  font-size: 16px;
}

a { color: var(--accent); text-decoration: none; }
a:hover { color: var(--accent-light); }

.container { max-width: 820px; margin: 0 auto; padding: 0 20px; }

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(9, 9, 11, 0.85);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}
.header-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 60px;
}
.logo {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--text-primary);
  font-weight: 700;
  font-size: 18px;
  letter-spacing: 2px;
  text-decoration: none;
}
.logo:hover { color: var(--text-primary); }
.logo-icon { font-size: 22px; }
.header-cta {
  display: inline-block;
  background: var(--accent);
  color: #fff;
  padding: 8px 20px;
  border-radius: 6px;
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  transition: background 0.2s;
}
.header-cta:hover { background: var(--accent-hover); color: #fff; }

/* Article */
.article-header {
  padding: 48px 0 32px;
  border-bottom: 1px solid var(--border);
}
.article-header h1 {
  font-size: 2.2rem;
  font-weight: 800;
  line-height: 1.2;
  margin-bottom: 16px;
  color: var(--text-primary);
}
.article-meta {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  font-size: 14px;
  color: var(--text-muted);
}
.article-meta span {
  background: var(--bg-card);
  padding: 4px 12px;
  border-radius: 4px;
  border: 1px solid var(--border);
}
.badge {
  background: var(--accent-bg);
  color: var(--accent);
  border: 1px solid var(--accent-border);
  padding: 4px 12px;
  border-radius: 4px;
  font-size: 13px;
  font-weight: 500;
}

/* Content */
.article-content {
  padding: 40px 0 60px;
}
.article-content h2 {
  font-size: 1.6rem;
  font-weight: 700;
  margin: 48px 0 16px;
  color: var(--text-primary);
  padding-bottom: 8px;
  border-bottom: 2px solid var(--accent);
  display: inline-block;
}
.article-content h3 {
  font-size: 1.25rem;
  font-weight: 600;
  margin: 32px 0 12px;
  color: var(--text-primary);
}
.article-content p {
  margin-bottom: 16px;
  color: var(--text-secondary);
}
.article-content ul, .article-content ol {
  margin: 12px 0 20px 24px;
  color: var(--text-secondary);
}
.article-content li {
  margin-bottom: 8px;
}

/* Table */
.table-wrapper {
  overflow-x: auto;
  margin: 24px 0;
  border-radius: 8px;
  border: 1px solid var(--border);
}
.table-wrapper table {
  width: 100%;
  border-collapse: collapse;
}
.table-wrapper th {
  background: var(--bg-card);
  padding: 12px 16px;
  text-align: left;
  font-size: 14px;
  font-weight: 600;
  color: var(--text-primary);
  border-bottom: 2px solid var(--accent);
}
.table-wrapper td {
  padding: 10px 16px;
  font-size: 14px;
  color: var(--text-secondary);
  border-bottom: 1px solid var(--border);
}
.table-wrapper tr:hover td {
  background: var(--bg-card);
}

/* Code */
pre {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 16px 20px;
  overflow-x: auto;
  margin: 16px 0 24px;
  font-size: 14px;
  line-height: 1.6;
  color: #e4e4e7;
}
code {
  font-family: 'JetBrains Mono', 'Fira Code', monospace;
  font-size: 0.9em;
}
p code, li code {
  background: var(--bg-card);
  border: 1px solid var(--border);
  padding: 2px 6px;
  border-radius: 4px;
  font-size: 0.85em;
}

/* CTA Box */
.cta-box {
  background: linear-gradient(135deg, rgba(249,115,22,0.08), rgba(249,115,22,0.03));
  border: 1px solid var(--accent-border);
  border-radius: 12px;
  padding: 32px;
  text-align: center;
  margin: 40px 0;
}
.cta-box h3 {
  font-size: 1.4rem;
  margin-bottom: 12px;
  color: var(--text-primary);
}
.cta-box p {
  color: var(--text-secondary);
  margin-bottom: 20px;
}
.cta-button {
  display: inline-block;
  background: var(--accent);
  color: #fff !important;
  padding: 12px 32px;
  border-radius: 8px;
  font-size: 16px;
  font-weight: 700;
  text-decoration: none;
  transition: background 0.2s;
}
.cta-button:hover {
  background: var(--accent-hover);
  color: #fff !important;
}

/* FAQ */
.faq-section {
  margin: 40px 0;
}
.faq-item {
  border: 1px solid var(--border);
  border-radius: 8px;
  margin-bottom: 8px;
  overflow: hidden;
}
.faq-question {
  background: var(--bg-card);
  padding: 16px 20px;
  font-weight: 600;
  font-size: 15px;
  color: var(--text-primary);
  cursor: pointer;
}
.faq-answer {
  padding: 0 20px 16px;
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.7;
}

/* Pros/Cons */
.pros-cons {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin: 24px 0;
}
.pros-cons .pros, .pros-cons .cons {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 20px;
}
.pros-cons h4 {
  font-size: 14px;
  font-weight: 700;
  margin-bottom: 12px;
  text-transform: uppercase;
  letter-spacing: 1px;
}
.pros .pros h4 { color: var(--green); }
.cons .cons h4 { color: #ef4444; }
.pros-cons li { font-size: 14px; }

/* Info box */
.info-box {
  background: var(--bg-card);
  border-left: 4px solid var(--accent);
  padding: 16px 20px;
  border-radius: 0 8px 8px 0;
  margin: 24px 0;
  font-size: 14px;
  color: var(--text-secondary);
}
.info-box strong { color: var(--text-primary); }

/* Related Links */
.related-links {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 24px;
  margin: 40px 0;
}
.related-links h3 {
  font-size: 1.1rem;
  margin-bottom: 16px;
  color: var(--text-primary);
}
.related-links ul { list-style: none; margin: 0; padding: 0; }
.related-links li {
  margin-bottom: 8px;
}
.related-links a {
  color: var(--accent);
  font-size: 14px;
}

/* Article Images */
.article-content .article-image {
  width: 100%;
  border-radius: 10px;
  border: 1px solid var(--border);
  margin: 24px 0;
  display: block;
}
.article-content .article-image figcaption,
.article-content figure {
  margin: 24px 0;
}
.article-content figure img {
  width: 100%;
  border-radius: 10px;
  border: 1px solid var(--border);
  display: block;
}
.article-content figcaption {
  text-align: center;
  font-size: 13px;
  color: var(--text-muted);
  margin-top: 8px;
}

/* Breadcrumbs */
.breadcrumbs {
  padding: 12px 0;
  font-size: 13px;
  color: var(--text-muted);
  border-bottom: 1px solid var(--border);
  margin-bottom: 24px;
}
.breadcrumbs a {
  color: var(--text-muted);
  text-decoration: none;
}
.breadcrumbs a:hover {
  color: var(--accent);
}
.breadcrumbs .sep {
  margin: 0 6px;
  color: var(--text-muted);
  opacity: 0.5;
}
.breadcrumbs .current {
  color: var(--text-secondary);
}

/* Article tables (fallback when no .table-wrapper) */
.article-content table {
  width: 100%;
  border-collapse: collapse;
  margin: 20px 0;
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid var(--border);
}
.article-content th {
  background: var(--bg-card);
  padding: 10px 14px;
  text-align: left;
  font-size: 14px;
  font-weight: 600;
  color: var(--text-primary);
  border-bottom: 2px solid var(--accent);
}
.article-content td {
  padding: 8px 14px;
  font-size: 14px;
  color: var(--text-secondary);
  border-bottom: 1px solid var(--border);
}
.article-content tr:hover td {
  background: var(--bg-card);
}

/* Footer */
.site-footer {
  border-top: 1px solid var(--border);
  padding: 32px 0;
  margin-top: 60px;
  text-align: center;
}
.site-footer p {
  font-size: 13px;
  color: var(--text-muted);
}

/* Responsive */
@media (max-width: 768px) {
  .article-header h1 { font-size: 1.6rem; }
  .article-content h2 { font-size: 1.3rem; }
  .pros-cons { grid-template-columns: 1fr; }
  .header-cta { display: none; }
}
