:root {
  --bg: #0b0f1a;
  --surface: #111827;
  --border: rgba(99,102,241,0.12);
  --text: rgba(255,255,255,0.85);
  --text-muted: rgba(255,255,255,0.45);
  --accent: #6366f1;
  --accent-glow: rgba(99,102,241,0.25);
  --cta-bg: linear-gradient(135deg, #6366f1, #4f46e5);
  --cta-hover: linear-gradient(135deg, #818cf8, #6366f1);
  --font: 'Inter', -apple-system, sans-serif;
  --font-heading: 'Space Grotesk', var(--font);
}

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

body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.7;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
}

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

/* Header */
.site-header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  padding: 16px 32px;
  background: rgba(11,15,26,0.92);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
  display: flex; justify-content: space-between; align-items: center;
}
.site-header .logo {
  font-family: var(--font-heading);
  font-size: 18px; font-weight: 600; letter-spacing: 1px;
  color: #fff; text-decoration: none;
}
.site-header .logo span { color: var(--accent); }
.site-header nav { display: flex; gap: 24px; align-items: center; }
.site-header nav a {
  font-size: 12px; letter-spacing: 2px; text-transform: uppercase;
  color: var(--text-muted); text-decoration: none; font-weight: 400;
}
.site-header nav a:hover { color: var(--text); }
.header-cta {
  padding: 8px 20px; border-radius: 6px;
  background: var(--cta-bg); color: #fff !important;
  font-size: 11px; letter-spacing: 2px; text-transform: uppercase;
  font-weight: 500; border: none; cursor: pointer;
}
.header-cta:hover { background: var(--cta-hover); text-decoration: none; }

/* Hero */
.hero {
  padding: 140px 32px 80px;
  text-align: center;
  max-width: 800px; margin: 0 auto;
}
.hero h1 {
  font-family: var(--font-heading);
  font-size: clamp(32px, 5vw, 52px);
  font-weight: 700; line-height: 1.15;
  margin-bottom: 20px;
  background: linear-gradient(135deg, #fff 40%, var(--accent));
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
}
.hero p {
  font-size: 17px; color: var(--text-muted);
  max-width: 580px; margin: 0 auto 32px;
}

/* Article container */
.article-container {
  max-width: 740px; margin: 0 auto; padding: 0 24px;
}

/* Article body */
.article-body { padding-top: 100px; padding-bottom: 60px; }
.article-body h1 {
  font-family: var(--font-heading);
  font-size: clamp(28px, 4vw, 40px);
  font-weight: 700; line-height: 1.2; margin-bottom: 16px;
}
.article-body h2 {
  font-family: var(--font-heading);
  font-size: 24px; font-weight: 600;
  margin: 40px 0 16px; color: #fff;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--border);
}
.article-body h3 {
  font-size: 19px; font-weight: 600;
  margin: 28px 0 12px; color: rgba(255,255,255,0.9);
}
.article-body p { margin-bottom: 16px; color: var(--text); }
.article-body ul, .article-body ol {
  margin: 0 0 16px 20px; color: var(--text);
}
.article-body li { margin-bottom: 6px; }
.article-body table {
  width: 100%; border-collapse: collapse; margin: 24px 0;
}
.article-body th {
  text-align: left; padding: 12px; font-size: 13px;
  color: var(--accent); border-bottom: 2px solid var(--border);
  text-transform: uppercase; letter-spacing: 1px;
}
.article-body td {
  padding: 12px; border-bottom: 1px solid var(--border);
  color: var(--text-muted); font-size: 14px;
}
.article-body img {
  max-width: 100%; height: auto; border-radius: 8px; margin: 20px 0;
}

/* Meta */
.article-meta {
  display: flex; gap: 16px; align-items: center;
  margin-bottom: 32px; flex-wrap: wrap;
}
.article-meta span {
  font-size: 12px; color: var(--text-muted);
  letter-spacing: 1px; text-transform: uppercase;
}
.article-meta .tag {
  background: var(--accent-glow); color: var(--accent);
  padding: 4px 12px; border-radius: 4px; font-weight: 500;
}

/* CTA Block */
.cta-block {
  margin: 32px 0; padding: 24px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  border-left: 3px solid var(--accent);
}
.cta-block p {
  color: var(--text-muted); font-size: 14px; margin-bottom: 12px;
}
.cta-btn {
  display: inline-block; padding: 12px 28px;
  background: var(--cta-bg); color: #fff;
  border-radius: 8px; font-weight: 600; font-size: 15px;
  text-decoration: none; transition: all 0.2s;
  letter-spacing: 0.5px;
}
.cta-btn:hover {
  background: var(--cta-hover); text-decoration: none;
  transform: translateY(-1px);
  box-shadow: 0 4px 20px var(--accent-glow);
}

/* TOC */
.toc {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: 10px; padding: 20px 24px; margin: 24px 0;
}
.toc h4 {
  font-size: 12px; text-transform: uppercase; letter-spacing: 2px;
  color: var(--accent); margin-bottom: 12px;
}
.toc ol { margin: 0; padding-left: 20px; }
.toc li { margin-bottom: 6px; }
.toc a { color: var(--text-muted); font-size: 14px; }
.toc a:hover { color: var(--accent); }

/* Risk disclaimer */
.risk-disclaimer {
  background: rgba(239,68,68,0.05);
  border: 1px solid rgba(239,68,68,0.15);
  border-radius: 8px; padding: 16px; margin: 24px 0;
  font-size: 13px; color: var(--text-muted); line-height: 1.8;
}
.risk-disclaimer strong { color: rgba(239,68,68,0.7); }

/* FAQ */
.faq-item { margin: 16px 0; }
.faq-item h3 {
  font-size: 16px; cursor: pointer; color: var(--text);
  padding: 12px 0; border-bottom: 1px solid var(--border);
}

/* Author bio */
.author-bio {
  margin-top: 40px; padding: 20px;
  border-left: 3px solid var(--accent);
  background: var(--surface); display: flex; gap: 14px; align-items: center;
}
.author-avatar {
  width: 44px; height: 44px; border-radius: 50%;
  background: var(--accent); display: flex; align-items: center;
  justify-content: center; font-weight: 700; color: #fff;
  font-size: 18px; flex-shrink: 0;
}
.author-bio strong { color: #fff; }
.author-bio p { font-size: 13px; color: var(--text-muted); margin: 2px 0 0; }

/* Related articles */
.related { margin: 40px 0; }
.related h3 {
  font-size: 14px; text-transform: uppercase; letter-spacing: 2px;
  color: var(--accent); margin-bottom: 16px;
}
.related ul { list-style: none; padding: 0; }
.related li { margin-bottom: 8px; }
.related a { color: var(--text-muted); font-size: 14px; }
.related a:hover { color: var(--accent); }

/* Footer */
.site-footer {
  padding: 48px 32px 36px;
  border-top: 1px solid var(--border);
  max-width: 900px; margin: 0 auto;
}
.footer-grid {
  display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 32px;
  margin-bottom: 32px;
}
.footer-brand { font-size: 13px; color: var(--text-muted); line-height: 1.8; }
.footer-col h4 {
  font-size: 11px; letter-spacing: 2px; text-transform: uppercase;
  color: var(--text-muted); margin-bottom: 12px;
}
.footer-col ul { list-style: none; }
.footer-col li { margin-bottom: 6px; }
.footer-col a { font-size: 13px; color: rgba(255,255,255,0.25); }
.footer-disclaimer {
  font-size: 10px; color: rgba(255,255,255,0.2); line-height: 1.9;
  padding-top: 20px; border-top: 1px solid var(--border);
}
.footer-bottom {
  display: flex; justify-content: space-between; align-items: center;
  margin-top: 16px; flex-wrap: wrap; gap: 10px;
}
.footer-bottom a {
  font-size: 9px; letter-spacing: 2px; text-transform: uppercase;
  color: rgba(255,255,255,0.15);
}
.footer-copy {
  font-size: 9px; letter-spacing: 3px; text-transform: uppercase;
  color: rgba(255,255,255,0.08);
}

/* Sticky CTA */
.sticky-cta {
  position: fixed; bottom: -60px; left: 0; right: 0; z-index: 999;
  text-align: center; padding: 10px;
  background: rgba(11,15,26,0.95); backdrop-filter: blur(10px);
  transition: bottom 0.3s ease;
}

/* Breadcrumb */
.breadcrumb { padding: 90px 0 0; }
.breadcrumb ul {
  list-style: none; display: flex; gap: 8px;
  font-size: 12px; color: var(--text-muted);
}
.breadcrumb a { color: var(--text-muted); }
.breadcrumb li:not(:last-child)::after { content: "/"; margin-left: 8px; }

/* Responsive */
@media (max-width: 768px) {
  .site-header { padding: 12px 16px; }
  .site-header nav a:not(.header-cta) { display: none; }
  .hero { padding: 120px 16px 60px; }
  .article-container { padding: 0 16px; }
  .footer-grid { grid-template-columns: 1fr; }
}
