:root {
  color-scheme: dark;
  --bg: #0b0f17;
  --surface: #121824;
  --surface-raised: #17202e;
  --line: rgba(201, 211, 230, .13);
  --text: #f2f4f8;
  --muted: #9ca8ba;
  --soft: #cad2df;
  --accent: #4b5cff;
  --accent-soft: rgba(75, 92, 255, .13);
}

* { box-sizing: border-box; }
html { background: var(--bg); font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; scroll-behavior: smooth; }
body { margin: 0; min-height: 100vh; color: var(--text); background: linear-gradient(180deg, var(--bg), #080b12 72%); font-size: 15px; line-height: 1.55; letter-spacing: 0; }
a { color: inherit; }

.blog-header, main, .blog-footer { width: min(1200px, calc(100% - 40px)); margin: 0 auto; }
.blog-header { position: sticky; top: 0; z-index: 20; display: flex; align-items: center; justify-content: space-between; gap: 24px; min-height: 68px; padding: 12px 0; border-bottom: 1px solid var(--line); background: rgba(11, 15, 23, .94); backdrop-filter: blur(16px); }
.brand { display: inline-flex; align-items: center; }
.brand img { width: 126px; height: auto; }
.blog-nav { display: flex; align-items: center; gap: 18px; color: var(--muted); font-size: 13px; font-weight: 650; }
.blog-nav a { text-decoration: none; }
.blog-nav a:hover { color: var(--text); }
.nav-cta { display: inline-flex; align-items: center; justify-content: center; min-height: 36px; padding: 0 14px; border: 1px solid rgba(75, 92, 255, .78); border-radius: 8px; color: #fff !important; background: var(--accent); font-weight: 700; }
.nav-cta:hover { background: #5c6cff; }

main { padding: 48px 0 76px; }
.blog-hero, .article-hero { max-width: 820px; padding: 0 0 32px; border-bottom: 1px solid var(--line); }
.eyebrow { margin: 0 0 10px; color: #93a0ff; font-size: 11px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; }
h1, h2, h3, p { margin-top: 0; }
h1 { margin-bottom: 16px; font-size: clamp(36px, 4.55vw, 54px); line-height: 1.05; letter-spacing: 0; }
.blog-hero > p, .article-hero > p { max-width: 700px; margin-bottom: 0; color: var(--muted); font-size: 17px; line-height: 1.6; }

.article-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0; margin-top: 28px; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.article-card { position: relative; display: flex; flex-direction: column; min-height: 250px; padding: 22px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); background: transparent; color: var(--text); text-decoration: none; transition: background .16s ease; }
.article-card:nth-child(3n) { border-right: 0; }
.article-card:nth-last-child(-n + 3) { border-bottom: 0; }
.article-card:hover { background: rgba(255, 255, 255, .028); }
.article-card__category { color: #91a0ff; font-size: 11px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; }
.article-card h2 { margin: 16px 0 11px; font-size: 20px; line-height: 1.25; letter-spacing: 0; }
.article-card p { margin-bottom: 18px; color: var(--muted); font-size: 14px; line-height: 1.55; }
.article-card__meta { margin-top: auto; color: var(--muted); font-size: 12px; }

.article-page { width: min(860px, calc(100% - 40px)); }
.breadcrumbs { display: flex; gap: 9px; margin: 0 0 28px; color: var(--muted); font-size: 13px; }
.breadcrumbs a { color: var(--muted); text-decoration: none; }
.breadcrumbs a:hover { color: var(--text); }
.article-meta, .keyword-strip { display: flex; flex-wrap: wrap; gap: 8px; }
.article-meta { margin-top: 22px; }
.article-meta span, .keyword-strip span { display: inline-flex; align-items: center; min-height: 29px; padding: 5px 9px; border: 1px solid var(--line); border-radius: 6px; color: var(--muted); background: rgba(255, 255, 255, .025); font-size: 12px; }
.keyword-strip { padding: 20px 0 28px; }

.article-section, .faq-section, .cta-section, .related-section { margin: 0; padding: 30px 0; border-top: 1px solid var(--line); background: transparent; }
.article-section h2, .faq-section h2, .cta-section h2, .related-section h2 { margin-bottom: 14px; font-size: 27px; line-height: 1.2; letter-spacing: 0; }
.article-section p, .faq-section p, .cta-section p { max-width: 760px; color: var(--soft); font-size: 16px; line-height: 1.72; }
.article-section ul { display: grid; gap: 8px; margin: 18px 0 0; padding: 0; list-style: none; }
.article-section li { position: relative; padding-left: 19px; color: var(--soft); font-size: 16px; line-height: 1.55; }
.article-section li::before { content: ""; position: absolute; top: .62em; left: 0; width: 6px; height: 6px; border-radius: 2px; background: var(--accent); }
details { padding: 15px 0; border-top: 1px solid var(--line); }
details:first-of-type { border-top: 0; }
summary { cursor: pointer; color: var(--text); font-size: 16px; font-weight: 700; }
details p { margin: 10px 0 0; }
.cta-section { padding: 28px; border: 1px solid rgba(75, 92, 255, .35); border-radius: 8px; background: var(--surface); }
.cta-section a { display: inline-flex; align-items: center; min-height: 38px; margin-top: 5px; padding: 0 14px; border: 1px solid var(--accent); border-radius: 7px; background: var(--accent); color: #fff; font-size: 13px; font-weight: 700; text-decoration: none; }
.related-section { display: grid; gap: 10px; }
.related-section a { color: var(--soft); text-decoration: none; }
.related-section a:hover { color: #aeb9ff; }

.blog-footer { display: flex; justify-content: space-between; gap: 24px; padding: 28px 0 44px; border-top: 1px solid var(--line); color: var(--muted); font-size: 13px; }
.blog-footer div, .blog-footer nav { display: flex; flex-wrap: wrap; gap: 8px 18px; }
.blog-footer a { color: var(--muted); text-decoration: none; }
.blog-footer a:hover { color: var(--text); }

@media (max-width: 940px) {
  .article-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .article-card:nth-child(3n) { border-right: 1px solid var(--line); }
  .article-card:nth-child(2n) { border-right: 0; }
  .article-card:nth-last-child(-n + 3) { border-bottom: 1px solid var(--line); }
  .article-card:nth-last-child(-n + 2) { border-bottom: 0; }
}
@media (max-width: 720px) {
  .blog-header, main, .blog-footer, .article-page { width: min(100% - 28px, 1200px); }
  .blog-header { position: static; align-items: flex-start; flex-direction: column; gap: 12px; padding: 16px 0; }
  .blog-nav { width: 100%; flex-wrap: wrap; gap: 12px; }
  main { padding: 34px 0 52px; }
  h1 { font-size: 36px; }
  .article-grid { grid-template-columns: 1fr; }
  .article-card, .article-card:nth-child(2n), .article-card:nth-child(3n) { min-height: 0; border-right: 0; border-bottom: 1px solid var(--line); }
  .article-card:last-child { border-bottom: 0; }
  .blog-footer { align-items: flex-start; flex-direction: column; }
  .cta-section { padding: 22px; }
}
