:root {
  --bg: #070b16;
  --bg-2: #0d1324;
  --card: #111a30;
  --line: #1f2a44;
  --text: #e7ecf7;
  --muted: #8c98b4;
  --accent: #7c5cff;
  --accent-2: #22d3ee;
  --grad: linear-gradient(120deg, #7c5cff 0%, #22d3ee 100%);
  --radius: 16px;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0; background: var(--bg); color: var(--text);
  font: 17px/1.65 Inter, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  -webkit-font-smoothing: antialiased;
}
a { color: var(--accent-2); text-decoration: none; }
a:hover { text-decoration: underline; }
h1, h2, h3 { line-height: 1.2; letter-spacing: -0.02em; }
h1 { font-size: clamp(30px, 5vw, 52px); margin: 0 0 18px; font-weight: 800; }
h2 { font-size: clamp(24px, 3vw, 32px); margin: 0; }
h3 { font-size: 21px; }
code { background: var(--card); padding: 2px 6px; border-radius: 6px; font-size: .9em; }
.wrap { max-width: 1180px; margin: 0 auto; padding: 0 16px; }
.wrap--narrow { max-width: 780px; }
.muted { color: var(--muted); }
.small { font-size: 13px; }
.center { text-align: center; }
.grad { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }

/* header */
.header { position: sticky; top: 0; z-index: 10; backdrop-filter: blur(12px);
  background: rgba(7, 11, 22, .75); border-bottom: 1px solid var(--line); }
.header__in { display: flex; align-items: center; justify-content: space-between; height: 64px; gap: 16px; }
.logo { font-weight: 800; font-size: 20px; color: var(--text); display: inline-flex; align-items: center; gap: 8px; }
.logo:hover { text-decoration: none; }
.logo__mark { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.nav { display: flex; align-items: center; gap: 22px; }
.nav a:not(.btn) { color: var(--muted); font-weight: 500; font-size: 15px; }
.nav a:not(.btn):hover { color: var(--text); text-decoration: none; }

/* buttons */
.btn { display: inline-block; padding: 14px 24px; border-radius: 12px; background: var(--grad);
  color: #fff; font-weight: 700; border: 0; box-shadow: 0 10px 30px -10px rgba(124, 92, 255, .7);
  transition: transform .15s, box-shadow .15s; }
.btn:hover { text-decoration: none; transform: translateY(-2px); box-shadow: 0 14px 36px -10px rgba(34, 211, 238, .6); }
.btn--sm { padding: 9px 16px; font-size: 14px; }
.btn--ghost { background: transparent; border: 1px solid var(--line); box-shadow: none; color: var(--text); }

/* hero */
.hero { position: relative; overflow: hidden; padding: 96px 0 72px; border-bottom: 1px solid var(--line); }
.hero__bg { position: absolute; inset: -40% -10% auto; height: 700px; pointer-events: none;
  background: radial-gradient(closest-side, rgba(124, 92, 255, .35), transparent 70%),
              radial-gradient(closest-side at 75% 40%, rgba(34, 211, 238, .25), transparent 70%); }
.hero__in { position: relative; }
.pill { display: inline-block; padding: 6px 14px; border: 1px solid var(--line); border-radius: 99px;
  color: var(--muted); font-size: 14px; margin-bottom: 22px; background: rgba(17, 26, 48, .6); }
.lead { font-size: 19px; color: var(--muted); max-width: 720px; }
.hero__actions { display: flex; gap: 12px; flex-wrap: wrap; margin: 30px 0 46px; }
.stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; max-width: 760px; }
.stats div { padding: 16px; border: 1px solid var(--line); border-radius: var(--radius); background: rgba(17, 26, 48, .6); }
.stats b { display: block; font-size: 20px; }
.stats span { color: var(--muted); font-size: 14px; }

/* sections & cards */
.section { padding: 64px 16px; }
.section__head { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; margin-bottom: 26px; flex-wrap: wrap; }
.grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.grid--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.card, .case { display: flex; flex-direction: column; padding: 24px; border-radius: var(--radius);
  background: var(--card); border: 1px solid var(--line); color: var(--text); transition: border-color .2s, transform .2s; }
.card:hover, .case:hover { text-decoration: none; border-color: var(--accent); transform: translateY(-3px); }
.card__meta { color: var(--muted); font-size: 13px; margin-bottom: 10px; }
.card__title, .case__title { font-weight: 700; font-size: 19px; line-height: 1.35; margin-bottom: 10px; }
.card__text, .case__text { color: var(--muted); font-size: 15px; margin: 0 0 16px; flex: 1; }
.card__more { color: var(--accent-2); font-weight: 600; font-size: 15px; }
.case { background: linear-gradient(160deg, #141f3b, #0f1730); }
.case__meta { display: flex; flex-wrap: wrap; gap: 6px 14px; color: var(--muted); font-size: 14px; margin: 0 0 14px; }
.case__meta b { color: var(--text); }
.case__results { margin: 0 0 14px; padding-left: 18px; font-size: 14px; color: #cfd6e6; }
.case__results li { margin: 4px 0; }
.case__stack { font-size: 13px; color: var(--muted); margin: -6px 0 14px; }
.section__sub { font-size: 22px; margin: 34px 0 18px; }
.case__tag { display: inline-block; align-self: flex-start; font-size: 12px; font-weight: 600; padding: 4px 10px;
  border-radius: 99px; background: rgba(124, 92, 255, .15); color: #b9a8ff; margin-bottom: 14px; }

/* CTA */
.cta { position: relative; overflow: hidden; border-radius: 20px; border: 1px solid var(--line);
  background: var(--bg-2); margin: 40px 0; }
.cta__glow { position: absolute; inset: 0; background: radial-gradient(600px 200px at 20% 0%, rgba(124, 92, 255, .35), transparent),
  radial-gradient(500px 200px at 90% 100%, rgba(34, 211, 238, .25), transparent); }
.cta__body { position: relative; padding: 34px; }
.cta__title { font-size: 26px; font-weight: 800; margin-bottom: 8px; }
.cta p { color: var(--muted); margin: 0 0 22px; max-width: 640px; }
.cta__label { color: var(--muted); font-size: 12px; margin-top: 14px; opacity: .8; }

/* article */
.article { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 48px; padding-top: 40px; }
.crumbs { font-size: 14px; color: var(--muted); margin-bottom: 18px; }
.crumbs a { color: var(--muted); }
.article__meta { color: var(--muted); font-size: 14px; margin-bottom: 26px; }
.draft-note { display: inline-block; background: #3b2a00; color: #ffd166; padding: 4px 12px; border-radius: 8px; font-size: 14px; margin-bottom: 12px; }
.answer { border-left: 3px solid var(--accent-2); background: var(--bg-2); border-radius: 0 var(--radius) var(--radius) 0;
  padding: 18px 22px; margin: 0 0 30px; }
.answer__q { font-weight: 700; margin-bottom: 6px; }
.answer p { margin: 0; }
.prose { min-width: 0; }
.prose h2 { margin: 44px 0 14px; scroll-margin-top: 80px; }
.prose h3 { margin: 30px 0 10px; scroll-margin-top: 80px; }
.prose p, .prose li { color: #cfd6e6; }
.prose ul, .prose ol { padding-left: 22px; }
.prose li { margin: 6px 0; }
.prose strong { color: var(--text); }
.prose blockquote { margin: 24px 0; padding: 14px 20px; border-left: 3px solid var(--accent); background: var(--bg-2); border-radius: 0 12px 12px 0; }
.prose table { width: 100%; border-collapse: collapse; margin: 22px 0; font-size: 15px; display: block; overflow-x: auto; }
.prose th, .prose td { padding: 11px 14px; border: 1px solid var(--line); text-align: left; vertical-align: top; }
.prose th { background: var(--card); color: var(--text); }
.faq details { border: 1px solid var(--line); border-radius: 12px; padding: 14px 18px; margin: 10px 0; background: var(--bg-2); }
.faq summary { cursor: pointer; font-weight: 600; }
.faq details p { margin: 10px 0 0; }
.side { position: relative; }
.side__box { position: sticky; top: 88px; padding: 20px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--bg-2); margin-bottom: 16px; }
.side__cta { top: auto; position: static; }
.side__title { font-weight: 700; margin-bottom: 10px; }
.toc { margin: 0; padding-left: 18px; font-size: 14px; }
.toc li { margin: 6px 0; }
.toc a { color: var(--muted); }
.toc a:hover { color: var(--text); }

/* footer */
.footer { border-top: 1px solid var(--line); margin-top: 40px; padding: 40px 0; }
.footer__in { display: grid; gap: 18px; }
.footer__nav { display: flex; gap: 18px; flex-wrap: wrap; }
.footer__nav a { color: var(--muted); }

@media (max-width: 960px) {
  .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .article { grid-template-columns: minmax(0, 1fr); }
  .side { display: none; }
}
@media (max-width: 640px) {
  body { font-size: 16px; }
  .grid, .grid--2, .stats { grid-template-columns: minmax(0, 1fr); }
  .nav a:not(.btn) { display: none; }
  .hero { padding: 64px 0 48px; }
  .cta__body { padding: 24px; }
}
