/* ════════════ Public Blog ════════════ */
:root {
  --c1: #7c5cff; --c2: #2dd4bf; --c3: #ff7a59; --c4: #38bdf8;
  --bg: #060814; --text: #f4f6ff; --muted: #9aa3c4; --surface: #11152e;
  --line: rgba(255,255,255,.09);
}
.blog-page {
  margin: 0; background: var(--bg); color: var(--text);
  font-family: 'Space Grotesk', system-ui, sans-serif; line-height: 1.65;
}
.blog-page a { color: inherit; text-decoration: none; }

/* topbar */
.blog-topbar { position: sticky; top: 0; z-index: 50; backdrop-filter: blur(14px);
  background: rgba(6,8,20,.78); border-bottom: 1px solid var(--line); }
.blog-topbar-inner { max-width: 1080px; margin: 0 auto; padding: 14px 22px;
  display: flex; align-items: center; justify-content: space-between; gap: 18px; }
.blog-brand { display: flex; align-items: center; gap: 10px; font-weight: 700; font-size: 1.05rem; }
.blog-brand-mark { width: 30px; height: 30px; border-radius: 8px; display: grid; place-items: center;
  font-size: .8rem; font-weight: 800; color: #07091a; background: linear-gradient(135deg, var(--c1), var(--c2)); }
.blog-topnav { display: flex; align-items: center; gap: 22px; font-size: .92rem; color: var(--muted); }
.blog-topnav a:hover, .blog-topnav a.active { color: var(--text); }
.blog-cta { display: inline-flex; align-items: center; gap: 6px; padding: 9px 16px; border-radius: 999px;
  font-weight: 700; color: #07091a !important; background: linear-gradient(120deg, var(--c2), var(--c4));
  box-shadow: 0 6px 20px rgba(45,212,191,.3); }
.blog-cta:hover { transform: translateY(-1px); }

/* layout */
.blog-wrap { max-width: 1080px; margin: 0 auto; padding: 40px 22px 70px; }
.blog-hero { text-align: center; padding: 30px 0 44px; }
.blog-eyebrow { display: inline-block; font-size: .8rem; letter-spacing: .12em; text-transform: uppercase;
  color: var(--c2); margin-bottom: 14px; }
.blog-hero h1 { font-size: clamp(2rem, 5vw, 3.2rem); margin: 0 0 12px; line-height: 1.1;
  background: linear-gradient(120deg, #fff 0%, #c9d2ff 60%, var(--c2) 100%); -webkit-background-clip: text;
  background-clip: text; -webkit-text-fill-color: transparent; }
.blog-hero p { color: var(--muted); max-width: 560px; margin: 0 auto; font-size: 1.05rem; }

/* featured */
.blog-featured { display: grid; grid-template-columns: 1.1fr 1fr; gap: 0; border: 1px solid var(--line);
  border-radius: 22px; overflow: hidden; background: var(--surface); margin-bottom: 34px;
  transition: transform .2s, box-shadow .2s; }
.blog-featured:hover { transform: translateY(-3px); box-shadow: 0 18px 50px rgba(124,92,255,.18); }
.blog-featured-img { min-height: 280px; background-size: cover; background-position: center;
  background-color: #141a35; display: grid; place-items: center; }
.blog-featured-body { padding: 32px; display: flex; flex-direction: column; justify-content: center; }
.blog-featured-body h2 { font-size: 1.7rem; margin: 12px 0; line-height: 1.2; }
.blog-featured-body p { color: var(--muted); }

/* grid + cards */
.blog-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.blog-card { border: 1px solid var(--line); border-radius: 18px; overflow: hidden; background: var(--surface);
  display: flex; flex-direction: column; transition: transform .2s, box-shadow .2s; }
.blog-card:hover { transform: translateY(-4px); box-shadow: 0 16px 40px rgba(0,0,0,.4); }
.blog-card-img { position: relative; height: 170px; background-size: cover; background-position: center;
  background-color: #141a35; display: grid; place-items: center; }
.blog-card-ph { font-size: 2.4rem; font-weight: 800; color: rgba(255,255,255,.18); }
.blog-card-cat { position: static; display: inline-block; align-self: flex-start; font-size: .72rem;
  font-weight: 700; letter-spacing: .04em; text-transform: uppercase; color: #07091a;
  background: linear-gradient(120deg, var(--c2), var(--c4)); padding: 5px 11px; border-radius: 999px; }
.blog-card-img .blog-card-cat { position: absolute; top: 12px; left: 12px; }
.blog-card-body { padding: 20px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.blog-card-body h3 { margin: 0; font-size: 1.18rem; line-height: 1.3; }
.blog-card-body p { margin: 0; color: var(--muted); font-size: .94rem; flex: 1; }
.blog-card-meta { display: flex; justify-content: space-between; font-size: .82rem; color: var(--muted);
  border-top: 1px solid var(--line); padding-top: 12px; }

.blog-empty { text-align: center; padding: 80px 20px; color: var(--muted); }
.blog-empty h2 { color: var(--text); }

/* footer */
.blog-foot { border-top: 1px solid var(--line); margin-top: 50px; }
.blog-foot-inner { max-width: 1080px; margin: 0 auto; padding: 26px 22px; display: flex;
  justify-content: space-between; gap: 16px; flex-wrap: wrap; color: var(--muted); font-size: .88rem; }
.blog-foot-inner a:hover { color: var(--c2); }

/* ──────── single post ──────── */
.post-wrap { max-width: 760px; }
.post-crumbs { font-size: .85rem; color: var(--muted); margin-bottom: 22px; }
.post-crumbs a:hover { color: var(--c2); }
.post-head h1 { font-size: clamp(1.9rem, 4.5vw, 2.8rem); line-height: 1.15; margin: 12px 0; }
.post-dek { font-size: 1.18rem; color: var(--muted); margin: 0 0 22px; }
.post-byline { display: flex; align-items: center; gap: 12px; padding: 16px 0; border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line); font-size: .9rem; }
.post-avatar { width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center;
  font-weight: 800; color: #07091a; background: linear-gradient(135deg, var(--c1), var(--c2)); }
.post-byline small { color: var(--muted); }
.post-cover { width: 100%; border-radius: 18px; margin: 26px 0; }

.post-tldr { background: linear-gradient(120deg, rgba(124,92,255,.12), rgba(45,212,191,.08));
  border: 1px solid rgba(124,92,255,.3); border-left: 4px solid var(--c1);
  border-radius: 12px; padding: 16px 20px; margin: 24px 0; font-size: 1.02rem; }
.post-tldr strong { color: var(--c2); margin-right: 6px; }

.post-takeaways { background: var(--surface); border: 1px solid var(--line); border-radius: 16px;
  padding: 22px 26px; margin: 26px 0; }
.post-takeaways h2 { margin: 0 0 12px; font-size: 1.15rem; }
.post-takeaways ul { margin: 0; padding-left: 22px; }
.post-takeaways li { margin: 8px 0; }

.post-body { font-size: 1.08rem; }
.post-body h2 { font-size: 1.6rem; margin: 38px 0 14px; line-height: 1.25; }
.post-body h3 { font-size: 1.28rem; margin: 28px 0 10px; }
.post-body p { margin: 0 0 18px; }
.post-body ul, .post-body ol { margin: 0 0 18px; padding-left: 26px; }
.post-body li { margin: 8px 0; }
.post-body a { color: var(--c2); text-decoration: underline; }
.post-body img { max-width: 100%; border-radius: 12px; }
.post-body blockquote { border-left: 4px solid var(--c2); margin: 22px 0; padding: 6px 20px; color: var(--muted);
  background: rgba(45,212,191,.06); border-radius: 0 10px 10px 0; }

.post-faq { margin: 40px 0; }
.post-faq h2 { font-size: 1.5rem; margin-bottom: 14px; }
.post-faq details { border: 1px solid var(--line); border-radius: 12px; padding: 4px 18px; margin: 10px 0;
  background: var(--surface); }
.post-faq summary { cursor: pointer; font-weight: 600; padding: 12px 0; list-style: none; }
.post-faq summary::-webkit-details-marker { display: none; }
.post-faq summary::before { content: '＋'; color: var(--c2); margin-right: 10px; }
.post-faq details[open] summary::before { content: '－'; }
.post-faq p { color: var(--muted); padding-bottom: 12px; margin: 0; }

.post-cites { margin: 36px 0; font-size: .95rem; }
.post-cites h2 { font-size: 1.2rem; }
.post-cites ol { padding-left: 22px; }
.post-cites li { margin: 8px 0; scroll-margin-top: 90px; }
.post-cites li:target { background: rgba(56,189,248,.12); border-radius: 8px;
  padding: 4px 8px; margin-left: -8px; }
.post-cites a { color: var(--c4); word-break: break-word; }
.post-cite-host { color: var(--muted); font-size: .82rem; margin-left: 6px; }

/* inline citation superscripts e.g. [2] */
.post-cite-ref { font-size: .68em; line-height: 0; }
.post-cite-ref a { color: var(--c4); text-decoration: none; font-weight: 600;
  padding: 0 1px; border-radius: 3px; }
.post-cite-ref a:hover { background: rgba(56,189,248,.18); }

/* internal product auto-links — subtly highlighted to funnel to product */
.post-body a.post-ilink { color: var(--c1); text-decoration: none;
  border-bottom: 1px dashed rgba(124,92,255,.6); font-weight: 500; }
.post-body a.post-ilink:hover { color: var(--c4); border-bottom-color: var(--c4); }

.post-tags { display: flex; flex-wrap: wrap; gap: 8px; margin: 26px 0; }
.post-tags span { font-size: .82rem; color: var(--muted); background: var(--surface);
  border: 1px solid var(--line); padding: 5px 12px; border-radius: 999px; }

.post-cta { text-align: center; margin: 48px 0 0; padding: 36px; border-radius: 20px;
  background: linear-gradient(120deg, rgba(124,92,255,.14), rgba(45,212,191,.1));
  border: 1px solid rgba(124,92,255,.25); }
.post-cta h3 { margin: 0 0 8px; font-size: 1.4rem; }
.post-cta p { color: var(--muted); margin: 0 0 18px; }

/* responsive */
@media (max-width: 860px) {
  .blog-grid { grid-template-columns: repeat(2, 1fr); }
  .blog-featured { grid-template-columns: 1fr; }
  .blog-featured-img { min-height: 200px; }
}
@media (max-width: 560px) {
  .blog-grid { grid-template-columns: 1fr; }
  .blog-topnav a:not(.blog-cta) { display: none; }
}
