/* SHARED STYLES — ROININJA articles */
:root {
  --bg: #0a0a0a;
  --bg-soft: #0f0f0f;
  --surface: #141414;
  --surface-2: #1a1a1a;
  --line: rgba(255,255,255,0.07);
  --line-2: rgba(255,255,255,0.14);
  --text: #fafafa;
  --dim: #8a8a8a;
  --mute: #555555;
  --accent: #d4ff3d;
  --max: 1280px;
}
* { box-sizing: border-box; margin: 0; padding: 0; font-family: 'Inter Tight', -apple-system, sans-serif; }
html { scroll-behavior: smooth; background: var(--bg); }
body {
  background: var(--bg); color: var(--text);
  line-height: 1.5; -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility; overflow-x: hidden;
  font-weight: 400; letter-spacing: -0.005em;
}
a { color: inherit; text-decoration: none; }
.container { max-width: var(--max); margin: 0 auto; padding: 0 32px; }
.read-container { max-width: 820px; margin: 0 auto; padding: 0 32px; }

/* NAV */
nav.top {
  position: fixed; inset: 0 0 auto 0; z-index: 50;
  background: rgba(10,10,10,0.85);
  backdrop-filter: blur(24px);
  border-bottom: 1px solid var(--line);
}
nav.top .container {
  display: flex; align-items: center; justify-content: space-between;
  padding-top: 18px; padding-bottom: 18px;
}
.brand-block { display: inline-flex; flex-direction: column; gap: 5px; line-height: 1; }
.brand {
  font-weight: 800; font-size: 21px; letter-spacing: -0.035em;
  line-height: 1; display: inline-flex; align-items: baseline; gap: 0;
}
.brand .roi { color: var(--accent); }
.brand .ninja { color: var(--text); }
.powered {
  display: inline-flex; align-items: center; gap: 7px;
  font-size: 9px; color: var(--mute);
  letter-spacing: 0.16em; text-transform: uppercase;
  line-height: 1; transition: color .2s ease;
}
.powered svg { height: 9px; width: auto; color: var(--mute); transition: color .2s ease; display: block; }
.brand-block:hover .powered, .brand-block:hover .powered svg { color: var(--dim); }
.nav-mid { display: flex; gap: 36px; font-size: 13.5px; color: var(--dim); }
.nav-mid a:hover { color: var(--text); }
.nav-cta {
  font-size: 13px; padding: 11px 18px; border-radius: 999px;
  background: var(--text); color: var(--bg); font-weight: 600;
  transition: opacity .15s ease;
}
.nav-cta:hover { opacity: 0.85; }

/* ARTICLE HERO */
.art-hero {
  padding: 160px 0 64px;
  border-bottom: 1px solid var(--line);
}
.back-link {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 13px; color: var(--dim);
  margin-bottom: 48px; letter-spacing: -0.005em;
  transition: color .2s ease;
}
.back-link:hover { color: var(--accent); }
.art-meta {
  display: flex; gap: 12px; align-items: center; flex-wrap: wrap;
  font-size: 12px; color: var(--dim);
  letter-spacing: 0.04em; margin-bottom: 28px;
}
.art-cat { color: var(--accent); letter-spacing: 0.18em; text-transform: uppercase; }
.art-meta .sep { color: var(--mute); }
.art-h {
  font-size: clamp(36px, 5vw, 64px);
  font-weight: 700; letter-spacing: -0.03em;
  line-height: 1.05; margin-bottom: 28px;
  max-width: 920px;
}
.art-deck {
  font-size: clamp(19px, 2.1vw, 24px);
  color: var(--dim); line-height: 1.4;
  max-width: 800px; font-weight: 400;
  letter-spacing: -0.015em;
}
.art-byline {
  margin-top: 56px;
  padding: 20px 0; border-top: 1px solid var(--line);
  font-size: 13px; color: var(--dim);
  display: flex; gap: 16px; align-items: center; flex-wrap: wrap;
}
.art-byline .name { color: var(--text); font-weight: 600; }
.art-byline .role { color: var(--dim); }

/* ARTICLE BODY */
.art-body-section { padding: 64px 0 96px; }
.art-body {
  font-size: 18px; line-height: 1.75;
  color: #d4d4d4;
}
.art-body > * { max-width: 760px; }
.art-body p { margin-bottom: 28px; }
.art-body p b, .art-body p strong { color: var(--text); font-weight: 600; }
.art-body .lede {
  font-size: 22px; line-height: 1.5;
  color: var(--text); margin-bottom: 40px;
  letter-spacing: -0.015em;
}
.art-body .lede::first-letter {
  color: var(--accent);
}
.art-body h2 {
  font-size: clamp(26px, 3vw, 36px);
  font-weight: 700; letter-spacing: -0.025em;
  line-height: 1.15; color: var(--text);
  margin: 56px 0 24px;
}
.art-body h3 {
  font-size: 20px; font-weight: 700;
  letter-spacing: -0.015em;
  color: var(--text);
  margin: 36px 0 14px;
}
.art-body ul, .art-body ol {
  margin: 0 0 28px 0;
  padding: 0; list-style: none;
}
.art-body ul li {
  padding: 6px 0 6px 26px;
  position: relative; color: #c0c0c0;
}
.art-body ul li::before {
  content: '—'; position: absolute; left: 0;
  color: var(--accent); font-weight: 600;
}
.art-body ol { counter-reset: olcount; }
.art-body ol li {
  padding: 8px 0 8px 44px;
  position: relative; counter-increment: olcount;
  color: #c0c0c0;
}
.art-body ol li::before {
  content: counter(olcount, decimal-leading-zero);
  position: absolute; left: 0;
  color: var(--accent); font-weight: 700;
  letter-spacing: 0.04em; font-size: 14px;
}
.art-body blockquote {
  border-left: 2px solid var(--accent);
  padding: 8px 0 8px 24px;
  margin: 36px 0;
  font-size: 22px; line-height: 1.4;
  color: var(--text); font-weight: 500;
  letter-spacing: -0.015em;
}
.art-body blockquote cite {
  display: block; margin-top: 12px;
  font-size: 13px; color: var(--dim);
  font-style: normal; letter-spacing: 0.04em;
}
.art-body table {
  width: 100%; border-collapse: collapse;
  margin: 32px 0; font-size: 14px;
  border-top: 1px solid var(--line-2);
  border-bottom: 1px solid var(--line-2);
}
.art-body table th, .art-body table td {
  padding: 14px 16px; text-align: left;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
}
.art-body table th {
  color: var(--dim); font-size: 12px;
  letter-spacing: 0.08em; text-transform: uppercase;
  font-weight: 600;
}
.art-body table td { color: var(--text); }
.art-body table tr:last-child td { border-bottom: none; }
.art-body table td .accent { color: var(--accent); font-weight: 600; }
.art-body .callout {
  border: 1px solid var(--line-2);
  padding: 24px 28px;
  background: var(--surface);
  margin: 36px 0;
  border-radius: 6px;
}
.art-body .callout .h {
  font-size: 11px; color: var(--accent);
  letter-spacing: 0.18em; text-transform: uppercase;
  margin-bottom: 12px;
}
.art-body .callout p { margin-bottom: 12px; font-size: 16px; color: #d4d4d4; }
.art-body .callout p:last-child { margin-bottom: 0; }
.art-body .formula {
  font-family: 'JetBrains Mono', 'Courier New', monospace;
  background: var(--bg-soft); border: 1px solid var(--line);
  padding: 18px 22px; border-radius: 4px;
  font-size: 14px; color: var(--text);
  margin: 28px 0;
  overflow-x: auto;
}

.art-end {
  margin-top: 56px; padding-top: 32px;
  border-top: 1px solid var(--line);
  max-width: 760px;
  display: flex; gap: 24px; justify-content: space-between; align-items: center; flex-wrap: wrap;
}
.art-end .cta-text { font-size: 14px; color: var(--dim); max-width: 380px; line-height: 1.5; }
.art-end .cta-text b { color: var(--text); }
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 14px 22px; border-radius: 999px;
  font-size: 14px; font-weight: 600;
  cursor: pointer; border: none;
  transition: transform .15s ease;
}
.btn-primary { background: var(--accent); color: #0a0a0a; }
.btn-primary:hover { transform: translateY(-1px); }
.btn .arr { transition: transform .15s ease; }
.btn:hover .arr { transform: translateX(3px); }

/* RELATED */
.related { padding: 96px 0; border-top: 1px solid var(--line); }
.related h3 {
  font-size: clamp(24px, 3vw, 36px);
  font-weight: 700; letter-spacing: -0.025em;
  margin-bottom: 40px;
}
.related-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 0;
  border-top: 1px solid var(--line);
}
.related-card {
  padding: 32px 28px 32px 0; border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  display: flex; flex-direction: column; gap: 14px;
  min-height: 220px; transition: background .2s ease;
}
.related-card:nth-child(3n) { border-right: none; padding-right: 0; }
.related-card:nth-child(n+2) { padding-left: 28px; }
.related-card:hover { background: rgba(255,255,255,0.015); }
.related-card:hover .related-t { color: var(--accent); }
.related-cat { font-size: 11px; color: var(--accent); letter-spacing: 0.18em; text-transform: uppercase; }
.related-t { font-size: 20px; font-weight: 700; letter-spacing: -0.02em; line-height: 1.2; color: var(--text); transition: color .2s ease; }
.related-meta { margin-top: auto; padding-top: 12px; font-size: 12px; color: var(--mute); letter-spacing: 0.04em; display: flex; align-items: center; gap: 8px; }
.related-meta .arrow { margin-left: auto; color: var(--dim); }

/* FOOTER */
footer.site {
  padding: 64px 0 48px;
  border-top: 1px solid var(--line);
}
footer.site .container { display: flex; justify-content: space-between; align-items: flex-start; flex-wrap: wrap; gap: 32px; }
footer.site .brand { font-size: 16px; }
footer.site .powered { font-size: 10px; }
footer.site .powered svg { height: 11px; }
footer.site .legal { font-size: 12.5px; color: var(--mute); letter-spacing: 0.04em; }
footer.site .links { display: flex; gap: 24px; font-size: 13px; color: var(--dim); }
footer.site .links a:hover { color: var(--text); }

/* RESPONSIVE */
@media (max-width: 900px) {
  .nav-mid { display: none; }
  .art-hero { padding: 120px 0 48px; }
  .art-body-section { padding: 40px 0 64px; }
  .related-grid { grid-template-columns: 1fr; }
  .related-card { padding: 24px 0 !important; border-right: none !important; }
  .read-container { padding: 0 24px; }
  .container { padding: 0 24px; }
  .art-body { font-size: 17px; }
  .art-body table { font-size: 13px; }
}
