/* ============================================================
   LEAPTORA BLOG — Shared Stylesheet
   Matches main site design tokens exactly.
   ============================================================ */

:root {
  --bg: #09111f;
  --panel: rgba(12,22,40,0.96);
  --panel-strong: rgba(13,24,44,0.99);
  --panel-border: rgba(255,255,255,0.06);
  --text: #f4f8ff;
  --muted: #8fa3bc;
  --muted-2: #617a96;
  --line: rgba(160,198,255,0.10);
  --accent: #8ff0c8;
  --accent-strong: #5ce0ff;
  --accent-warm: #a78bfa;
  --danger: #ff9a8f;
  --warning: #fbbf24;
  --max: 1160px;
  --max-post: 740px;
  --shadow: 0 24px 60px rgba(0,0,0,0.35);
  --shadow-sm: 0 8px 24px rgba(0,0,0,0.22);
  --r: 14px;
  --r-sm: 8px;
}

/* ── RESET & BASE ─────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

body {
  font-family: "Plus Jakarta Sans", "Segoe UI", sans-serif;
  color: var(--text);
  line-height: 1.65;
  background:
    radial-gradient(ellipse at 8% 0%, rgba(92,224,255,0.10), transparent 38%),
    radial-gradient(ellipse at 88% 8%, rgba(143,240,200,0.08), transparent 30%),
    radial-gradient(ellipse at 50% 80%, rgba(92,224,255,0.04), transparent 42%),
    linear-gradient(180deg, #0a1424 0%, #09111f 55%, #080f1c 100%);
  min-height: 100vh;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(160,198,255,0.015) 1px, transparent 1px),
    linear-gradient(90deg, rgba(160,198,255,0.015) 1px, transparent 1px);
  background-size: 72px 72px;
  mask-image: linear-gradient(180deg, rgba(0,0,0,0.65), transparent 85%);
  z-index: 0;
}

a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }

.container {
  width: min(var(--max), calc(100% - 40px));
  margin: 0 auto;
  position: relative;
  z-index: 1;
}

/* ── TYPOGRAPHY ───────────────────────────────────────────── */
h1, h2, h3, h4, h5 {
  font-family: "Space Grotesk", sans-serif;
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.02em;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: "Space Grotesk", sans-serif;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 14px;
}
.eyebrow::before {
  content: "";
  display: block;
  width: 16px;
  height: 2px;
  background: var(--accent);
  border-radius: 2px;
}

/* ── BUTTONS ──────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-family: "Plus Jakarta Sans", sans-serif;
  font-weight: 700;
  font-size: 0.9rem;
  border-radius: var(--r-sm);
  border: none;
  cursor: pointer;
  transition: all 0.18s ease;
  white-space: nowrap;
  text-decoration: none;
}
.btn-primary {
  background: linear-gradient(135deg, #5ce0ff 0%, #8ff0c8 100%);
  color: #071524;
  padding: 12px 22px;
}
.btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 8px 28px rgba(92,224,255,0.30);
  filter: brightness(1.05);
}
.btn-secondary {
  background: rgba(255,255,255,0.07);
  color: var(--text);
  padding: 12px 22px;
  border: 1px solid rgba(255,255,255,0.1);
}
.btn-secondary:hover { background: rgba(255,255,255,0.11); }
.btn-ghost {
  background: transparent;
  color: var(--accent-strong);
  padding: 10px 18px;
  border: 1px solid rgba(92,224,255,0.25);
  font-size: 0.85rem;
}
.btn-ghost:hover { background: rgba(92,224,255,0.07); }
.btn-sm { padding: 9px 16px; font-size: 0.82rem; }
.btn-lg { padding: 15px 28px; font-size: 0.98rem; }

/* ── NAVIGATION ───────────────────────────────────────────── */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  backdrop-filter: blur(16px) saturate(1.6);
  background: rgba(9,17,31,0.78);
  border-bottom: 1px solid rgba(255,255,255,0.055);
}
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 15px 0;
}
.nav-logo {
  font-family: "Space Grotesk", sans-serif;
  font-weight: 700;
  font-size: 1.15rem;
  letter-spacing: -0.03em;
  color: var(--text);
  display: flex;
  align-items: center;
  gap: 9px;
}
.nav-logo-icon {
  width: 30px;
  height: 30px;
  border-radius: 8px;
  background: linear-gradient(135deg, #5ce0ff, #8ff0c8);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  flex-shrink: 0;
}
.nav-links {
  display: flex;
  align-items: center;
  gap: 26px;
}
.nav-links a {
  color: var(--muted);
  font-size: 0.875rem;
  font-weight: 600;
  transition: color 0.15s;
}
.nav-links a:hover,
.nav-links a.active { color: var(--text); }
.nav-cta { display: flex; align-items: center; gap: 10px; }
@media (max-width: 768px) { .nav-links { display: none; } }

/* ── FOOTER ───────────────────────────────────────────────── */
.site-footer {
  border-top: 1px solid var(--line);
  padding: 40px 0;
  position: relative;
  z-index: 1;
}
.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
}
.footer-logo {
  font-family: "Space Grotesk", sans-serif;
  font-weight: 700;
  font-size: 1rem;
  color: var(--muted);
  letter-spacing: -0.02em;
}
.footer-links { display: flex; gap: 24px; flex-wrap: wrap; }
.footer-links a { font-size: 0.82rem; color: var(--muted-2); transition: color 0.15s; }
.footer-links a:hover { color: var(--muted); }
.footer-copy { font-size: 0.78rem; color: var(--muted-2); }
@media (max-width: 600px) {
  .footer-inner { flex-direction: column; align-items: flex-start; gap: 14px; }
}

/* ── READING PROGRESS BAR ─────────────────────────────────── */
.reading-progress {
  position: fixed;
  top: 0;
  left: 0;
  height: 2px;
  width: 0%;
  background: linear-gradient(90deg, #5ce0ff, #8ff0c8, #a78bfa);
  z-index: 200;
  transition: width 0.08s linear;
}

/* ── BREADCRUMBS ──────────────────────────────────────────── */
.breadcrumbs {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.78rem;
  color: var(--muted-2);
  padding: 20px 0 0;
  flex-wrap: wrap;
}
.breadcrumbs a { color: var(--muted-2); transition: color 0.15s; }
.breadcrumbs a:hover { color: var(--muted); }
.breadcrumbs-sep { color: var(--muted-2); opacity: 0.5; }
.breadcrumbs-current { color: var(--muted); }

/* ── CATEGORY BADGE ───────────────────────────────────────── */
.cat-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  border-radius: 100px;
  padding: 3px 10px;
  white-space: nowrap;
}
.cat-ai { background: rgba(167,139,250,0.12); color: var(--accent-warm); border: 1px solid rgba(167,139,250,0.2); }
.cat-geo { background: rgba(92,224,255,0.10); color: var(--accent-strong); border: 1px solid rgba(92,224,255,0.2); }
.cat-seo { background: rgba(143,240,200,0.10); color: var(--accent); border: 1px solid rgba(143,240,200,0.2); }
.cat-tech { background: rgba(251,191,36,0.10); color: var(--warning); border: 1px solid rgba(251,191,36,0.2); }
.cat-agency { background: rgba(255,154,143,0.10); color: var(--danger); border: 1px solid rgba(255,154,143,0.2); }
.cat-content { background: rgba(255,255,255,0.07); color: var(--muted); border: 1px solid rgba(255,255,255,0.12); }

/* ── TAG PILL ─────────────────────────────────────────────── */
.tag-pill {
  display: inline-flex;
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--muted);
  background: rgba(255,255,255,0.05);
  border: 1px solid var(--line);
  border-radius: 100px;
  padding: 3px 10px;
  transition: all 0.15s;
  text-decoration: none;
}
.tag-pill:hover {
  color: var(--text);
  background: rgba(255,255,255,0.08);
  border-color: rgba(255,255,255,0.14);
}

/* ── AUTHOR META ──────────────────────────────────────────── */
.author-avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: linear-gradient(135deg, #5ce0ff 0%, #a78bfa 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: "Space Grotesk", sans-serif;
  font-size: 0.72rem;
  font-weight: 700;
  color: #071524;
  flex-shrink: 0;
  overflow: hidden;
}
.author-avatar img { width: 100%; height: 100%; object-fit: cover; }
.author-avatar-lg {
  width: 64px;
  height: 64px;
  font-size: 1.1rem;
}
.author-avatar-xl {
  width: 88px;
  height: 88px;
  font-size: 1.5rem;
}

/* ── POST CARD ────────────────────────────────────────────── */
.post-card {
  background: var(--panel);
  border: 1px solid var(--panel-border);
  border-radius: var(--r);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: border-color 0.2s, transform 0.2s, box-shadow 0.2s;
  text-decoration: none;
  color: inherit;
}
.post-card:hover {
  border-color: rgba(92,224,255,0.2);
  transform: translateY(-3px);
  box-shadow: var(--shadow-sm);
}
.post-card-img {
  width: 100%;
  aspect-ratio: 16/9;
  object-fit: cover;
  background: linear-gradient(135deg, rgba(92,224,255,0.08) 0%, rgba(143,240,200,0.06) 50%, rgba(167,139,250,0.06) 100%);
  border-bottom: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--muted-2);
  font-size: 2rem;
}
.post-card-img svg { opacity: 0.25; }
.post-card-body { padding: 22px; flex: 1; display: flex; flex-direction: column; gap: 10px; }
.post-card-top { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.post-card-title {
  font-family: "Space Grotesk", sans-serif;
  font-size: 1rem;
  font-weight: 700;
  line-height: 1.3;
  color: var(--text);
  letter-spacing: -0.02em;
}
.post-card:hover .post-card-title { color: var(--accent-strong); }
.post-card-excerpt {
  font-size: 0.84rem;
  color: var(--muted);
  line-height: 1.65;
  flex: 1;
}
.post-card-meta {
  display: flex;
  align-items: center;
  gap: 12px;
  padding-top: 12px;
  border-top: 1px solid var(--line);
  margin-top: auto;
}
.post-card-author-name { font-size: 0.78rem; font-weight: 600; color: var(--muted); }
.post-card-date { font-size: 0.74rem; color: var(--muted-2); margin-left: auto; }
.post-card-read-time { font-size: 0.74rem; color: var(--muted-2); }

/* ── FEATURED POST CARD ───────────────────────────────────── */
.featured-post {
  background: var(--panel);
  border: 1px solid rgba(92,224,255,0.15);
  border-radius: 18px;
  overflow: hidden;
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: 360px;
  box-shadow: 0 0 60px rgba(92,224,255,0.05);
  text-decoration: none;
  color: inherit;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.featured-post:hover {
  border-color: rgba(92,224,255,0.3);
  box-shadow: 0 0 80px rgba(92,224,255,0.10);
}
.featured-post-img {
  background: linear-gradient(135deg, rgba(92,224,255,0.10) 0%, rgba(167,139,250,0.12) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  border-right: 1px solid var(--line);
  min-height: 280px;
}
.featured-post-img-label {
  position: absolute;
  top: 16px;
  left: 16px;
  background: rgba(92,224,255,0.15);
  color: var(--accent-strong);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 4px 10px;
  border-radius: 100px;
  border: 1px solid rgba(92,224,255,0.25);
}
.featured-post-body {
  padding: 36px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 14px;
}
.featured-post-title {
  font-family: "Space Grotesk", sans-serif;
  font-size: 1.55rem;
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.02em;
  color: var(--text);
}
.featured-post:hover .featured-post-title { color: var(--accent-strong); }
.featured-post-excerpt { font-size: 0.9rem; color: var(--muted); line-height: 1.7; }
.featured-post-meta {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 6px;
}
.featured-read-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.84rem;
  font-weight: 700;
  color: var(--accent-strong);
  margin-top: 8px;
}
@media (max-width: 700px) {
  .featured-post { grid-template-columns: 1fr; }
  .featured-post-img { min-height: 180px; border-right: none; border-bottom: 1px solid var(--line); }
  .featured-post-body { padding: 24px; }
  .featured-post-title { font-size: 1.2rem; }
}

/* ── POSTS GRID ───────────────────────────────────────────── */
.posts-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
@media (max-width: 900px) { .posts-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 540px) { .posts-grid { grid-template-columns: 1fr; } }

/* ── CATEGORY FILTER ──────────────────────────────────────── */
.cat-filter {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  padding: 4px 0;
}
.cat-filter-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--muted);
  background: rgba(255,255,255,0.05);
  border: 1px solid var(--line);
  border-radius: 100px;
  padding: 7px 16px;
  cursor: pointer;
  transition: all 0.15s;
  white-space: nowrap;
  font-family: "Plus Jakarta Sans", sans-serif;
}
.cat-filter-btn:hover {
  color: var(--text);
  background: rgba(255,255,255,0.08);
  border-color: rgba(255,255,255,0.14);
}
.cat-filter-btn.active {
  color: var(--accent-strong);
  background: rgba(92,224,255,0.08);
  border-color: rgba(92,224,255,0.3);
}
.cat-filter-count {
  background: rgba(255,255,255,0.08);
  border-radius: 100px;
  padding: 1px 6px;
  font-size: 0.68rem;
  font-weight: 700;
  color: var(--muted-2);
}
.cat-filter-btn.active .cat-filter-count {
  background: rgba(92,224,255,0.15);
  color: var(--accent-strong);
}

/* ── SEARCH INPUT ─────────────────────────────────────────── */
.blog-search {
  position: relative;
  max-width: 340px;
}
.blog-search-icon {
  position: absolute;
  left: 13px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--muted-2);
  pointer-events: none;
}
.blog-search input {
  width: 100%;
  background: rgba(255,255,255,0.05);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 10px 14px 10px 38px;
  color: var(--text);
  font-size: 0.88rem;
  font-family: "Plus Jakarta Sans", sans-serif;
  outline: none;
  transition: border-color 0.18s;
}
.blog-search input::placeholder { color: var(--muted-2); }
.blog-search input:focus {
  border-color: rgba(92,224,255,0.35);
  box-shadow: 0 0 0 3px rgba(92,224,255,0.07);
}

/* ── LOAD MORE / PAGINATION ───────────────────────────────── */
.load-more-wrap { text-align: center; margin-top: 40px; }
.pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  margin-top: 40px;
}
.pagination-btn {
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255,255,255,0.05);
  border: 1px solid var(--line);
  border-radius: 8px;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--muted);
  cursor: pointer;
  transition: all 0.15s;
  text-decoration: none;
}
.pagination-btn:hover { color: var(--text); background: rgba(255,255,255,0.08); }
.pagination-btn.active {
  background: rgba(92,224,255,0.1);
  border-color: rgba(92,224,255,0.3);
  color: var(--accent-strong);
}
.pagination-dots { color: var(--muted-2); font-size: 0.82rem; padding: 0 4px; }

/* ── NEWSLETTER / CTA BLOCK ───────────────────────────────── */
.newsletter-block {
  background: var(--panel-strong);
  border: 1px solid rgba(92,224,255,0.12);
  border-radius: 18px;
  padding: 48px;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.newsletter-block::before {
  content: "";
  position: absolute;
  top: -60px;
  left: 50%;
  transform: translateX(-50%);
  width: 400px;
  height: 200px;
  background: radial-gradient(ellipse, rgba(92,224,255,0.08), transparent 70%);
  pointer-events: none;
}
.newsletter-block h3 {
  font-size: 1.4rem;
  margin-bottom: 10px;
  position: relative;
}
.newsletter-block p {
  color: var(--muted);
  font-size: 0.9rem;
  max-width: 420px;
  margin: 0 auto 24px;
  line-height: 1.7;
  position: relative;
}
.newsletter-form {
  display: flex;
  gap: 8px;
  max-width: 400px;
  margin: 0 auto;
  position: relative;
}
.newsletter-form input {
  flex: 1;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 8px;
  padding: 11px 16px;
  color: var(--text);
  font-size: 0.9rem;
  font-family: "Plus Jakarta Sans", sans-serif;
  outline: none;
  min-width: 0;
}
.newsletter-form input::placeholder { color: var(--muted-2); }
.newsletter-form input:focus { border-color: rgba(92,224,255,0.4); }
@media (max-width: 500px) {
  .newsletter-block { padding: 32px 20px; }
  .newsletter-form { flex-direction: column; }
  .newsletter-form .btn { width: 100%; justify-content: center; }
}

/* ── INLINE ARTICLE CTA ───────────────────────────────────── */
.article-cta {
  background: var(--panel);
  border: 1px solid rgba(92,224,255,0.15);
  border-left: 3px solid var(--accent-strong);
  border-radius: var(--r);
  padding: 24px 28px;
  margin: 36px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
}
.article-cta-text h4 {
  font-size: 0.95rem;
  font-weight: 700;
  margin-bottom: 4px;
  color: var(--text);
  font-family: "Space Grotesk", sans-serif;
}
.article-cta-text p {
  font-size: 0.84rem;
  color: var(--muted);
  margin: 0;
}
@media (max-width: 540px) {
  .article-cta { flex-direction: column; align-items: flex-start; }
  .article-cta .btn { width: 100%; justify-content: center; }
}

/* ── CALLOUT BOXES ────────────────────────────────────────── */
.callout {
  border-radius: 10px;
  padding: 18px 22px;
  margin: 28px 0;
  display: flex;
  gap: 14px;
  align-items: flex-start;
}
.callout-icon { font-size: 1rem; flex-shrink: 0; margin-top: 1px; }
.callout-body { flex: 1; }
.callout-body strong { display: block; font-size: 0.88rem; font-weight: 700; margin-bottom: 4px; }
.callout-body p { font-size: 0.85rem; line-height: 1.65; margin: 0; }
.callout-info { background: rgba(92,224,255,0.06); border: 1px solid rgba(92,224,255,0.18); }
.callout-info .callout-icon, .callout-info strong { color: var(--accent-strong); }
.callout-info p { color: var(--muted); }
.callout-tip { background: rgba(143,240,200,0.06); border: 1px solid rgba(143,240,200,0.18); }
.callout-tip .callout-icon, .callout-tip strong { color: var(--accent); }
.callout-tip p { color: var(--muted); }
.callout-warn { background: rgba(251,191,36,0.06); border: 1px solid rgba(251,191,36,0.18); }
.callout-warn .callout-icon, .callout-warn strong { color: var(--warning); }
.callout-warn p { color: var(--muted); }

/* ── COMPARISON TABLE ─────────────────────────────────────── */
.comparison-table-wrap {
  overflow-x: auto;
  margin: 28px 0;
  border-radius: var(--r);
  border: 1px solid var(--line);
}
.comparison-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.85rem;
}
.comparison-table th {
  background: rgba(255,255,255,0.04);
  padding: 12px 16px;
  text-align: left;
  font-family: "Space Grotesk", sans-serif;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: var(--muted-2);
  border-bottom: 1px solid var(--line);
  white-space: nowrap;
}
.comparison-table td {
  padding: 12px 16px;
  color: var(--muted);
  border-bottom: 1px solid rgba(255,255,255,0.03);
  vertical-align: top;
  line-height: 1.55;
}
.comparison-table tr:last-child td { border-bottom: none; }
.comparison-table tr:hover td { background: rgba(255,255,255,0.02); }
.comparison-table td:first-child { color: var(--text); font-weight: 600; }
.check { color: var(--accent); font-weight: 700; }
.cross { color: var(--danger); font-weight: 700; }
.partial { color: var(--warning); font-weight: 700; }

/* ── ARTICLE FAQ ──────────────────────────────────────────── */
.article-faq { margin-top: 48px; }
.article-faq-title {
  font-family: "Space Grotesk", sans-serif;
  font-size: 1.3rem;
  font-weight: 700;
  margin-bottom: 20px;
  letter-spacing: -0.02em;
}
.faq-list {
  border: 1px solid var(--line);
  border-radius: var(--r);
  overflow: hidden;
  background: var(--panel);
}
.faq-item { border-bottom: 1px solid var(--line); }
.faq-item:last-child { border-bottom: none; }
.faq-q {
  width: 100%;
  background: none;
  border: none;
  padding: 20px 24px;
  text-align: left;
  color: var(--text);
  font-family: "Plus Jakarta Sans", sans-serif;
  font-size: 0.92rem;
  font-weight: 700;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  transition: background 0.15s;
}
.faq-q:hover { background: rgba(255,255,255,0.025); }
.faq-chevron {
  width: 20px; height: 20px;
  border: 1px solid var(--line);
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.65rem;
  color: var(--muted);
  flex-shrink: 0;
  transition: transform 0.2s;
}
.faq-a {
  display: none;
  padding: 0 24px 20px;
  font-size: 0.87rem;
  color: var(--muted);
  line-height: 1.75;
}
.faq-item.open .faq-chevron { transform: rotate(180deg); }
.faq-item.open .faq-a { display: block; }

/* ── RELATED POSTS ────────────────────────────────────────── */
.related-posts { margin-top: 64px; padding-top: 48px; border-top: 1px solid var(--line); }
.related-posts-title {
  font-family: "Space Grotesk", sans-serif;
  font-size: 1.2rem;
  font-weight: 700;
  margin-bottom: 24px;
  color: var(--text);
}
.related-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
@media (max-width: 768px) { .related-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 480px) { .related-grid { grid-template-columns: 1fr; } }

/* ── POST NAVIGATION (PREV/NEXT) ──────────────────────────── */
.post-nav {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-top: 48px;
  padding-top: 48px;
  border-top: 1px solid var(--line);
}
@media (max-width: 540px) { .post-nav { grid-template-columns: 1fr; } }
.post-nav-card {
  background: var(--panel);
  border: 1px solid var(--panel-border);
  border-radius: var(--r);
  padding: 20px 22px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  text-decoration: none;
  color: inherit;
  transition: border-color 0.18s, transform 0.18s;
}
.post-nav-card:hover { border-color: rgba(92,224,255,0.2); transform: translateY(-2px); }
.post-nav-label {
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted-2);
  display: flex;
  align-items: center;
  gap: 5px;
}
.post-nav-card.next .post-nav-label { justify-content: flex-end; }
.post-nav-title { font-family: "Space Grotesk", sans-serif; font-size: 0.92rem; font-weight: 700; color: var(--text); line-height: 1.35; }
.post-nav-card.next .post-nav-title { text-align: right; }

/* ── AUTHOR BIO CARD ──────────────────────────────────────── */
.author-bio-card {
  background: var(--panel);
  border: 1px solid var(--panel-border);
  border-radius: var(--r);
  padding: 28px;
  display: flex;
  gap: 22px;
  align-items: flex-start;
  margin-top: 48px;
}
@media (max-width: 480px) { .author-bio-card { flex-direction: column; } }
.author-bio-info h4 { font-size: 1rem; font-weight: 700; margin-bottom: 2px; }
.author-bio-role { font-size: 0.78rem; color: var(--accent); font-weight: 600; margin-bottom: 10px; }
.author-bio-text { font-size: 0.85rem; color: var(--muted); line-height: 1.7; }
.author-social-links { display: flex; gap: 10px; margin-top: 12px; }
.author-social-link {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 0.77rem;
  font-weight: 600;
  color: var(--muted-2);
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 5px 10px;
  transition: all 0.15s;
}
.author-social-link:hover { color: var(--text); border-color: rgba(255,255,255,0.15); }

/* ── TOC (Table of Contents) ──────────────────────────────── */
.toc-card {
  background: var(--panel);
  border: 1px solid var(--panel-border);
  border-radius: var(--r);
  padding: 22px;
  position: sticky;
  top: 80px;
}
.toc-title {
  font-family: "Space Grotesk", sans-serif;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--muted-2);
  margin-bottom: 14px;
}
.toc-list { list-style: none; display: flex; flex-direction: column; gap: 2px; }
.toc-item a {
  display: block;
  font-size: 0.82rem;
  color: var(--muted);
  padding: 5px 10px;
  border-left: 2px solid transparent;
  border-radius: 0 4px 4px 0;
  transition: all 0.15s;
  line-height: 1.45;
  text-decoration: none;
}
.toc-item a:hover { color: var(--text); background: rgba(255,255,255,0.03); }
.toc-item.active > a {
  color: var(--accent-strong);
  border-left-color: var(--accent-strong);
  background: rgba(92,224,255,0.05);
}
.toc-item-h3 { padding-left: 12px; }
.toc-divider { height: 1px; background: var(--line); margin: 12px 0; }
.toc-product-card {
  background: rgba(143,240,200,0.05);
  border: 1px solid rgba(143,240,200,0.15);
  border-radius: 10px;
  padding: 16px;
  margin-top: 16px;
}
.toc-product-label {
  font-size: 0.68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  color: var(--accent);
  margin-bottom: 6px;
}
.toc-product-text { font-size: 0.79rem; color: var(--muted); line-height: 1.6; margin-bottom: 12px; }

/* ── ARTICLE BODY LAYOUT ──────────────────────────────────── */
.article-layout {
  display: grid;
  grid-template-columns: 1fr 280px;
  gap: 48px;
  align-items: start;
  margin-top: 40px;
}
@media (max-width: 980px) { .article-layout { grid-template-columns: 1fr; } }
@media (max-width: 980px) { .toc-card { position: relative; top: auto; } }

/* ── PROSE STYLES ─────────────────────────────────────────── */
.prose { max-width: var(--max-post); }
.prose h2 {
  font-family: "Space Grotesk", sans-serif;
  font-size: 1.45rem;
  font-weight: 700;
  letter-spacing: -0.025em;
  color: var(--text);
  margin-top: 48px;
  margin-bottom: 16px;
  line-height: 1.25;
  scroll-margin-top: 90px;
}
.prose h3 {
  font-family: "Space Grotesk", sans-serif;
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text);
  margin-top: 32px;
  margin-bottom: 12px;
  letter-spacing: -0.02em;
  scroll-margin-top: 90px;
}
.prose p {
  color: var(--muted);
  font-size: 0.97rem;
  line-height: 1.8;
  margin-bottom: 18px;
}
.prose p:last-child { margin-bottom: 0; }
.prose strong { color: var(--text); font-weight: 700; }
.prose em { color: var(--accent); font-style: normal; font-weight: 600; }
.prose a { color: var(--accent-strong); text-decoration: underline; text-underline-offset: 3px; transition: color 0.15s; }
.prose a:hover { color: var(--accent); }
.prose ul, .prose ol { margin: 18px 0; padding-left: 0; list-style: none; display: flex; flex-direction: column; gap: 10px; }
.prose ul li, .prose ol li {
  color: var(--muted);
  font-size: 0.97rem;
  line-height: 1.7;
  padding-left: 22px;
  position: relative;
}
.prose ul li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 10px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
}
.prose ol { counter-reset: ol-count; }
.prose ol li { counter-increment: ol-count; }
.prose ol li::before {
  content: counter(ol-count);
  position: absolute;
  left: 0;
  top: 1px;
  font-family: "Space Grotesk", sans-serif;
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--accent-strong);
  background: rgba(92,224,255,0.1);
  border-radius: 50%;
  width: 18px;
  height: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.prose blockquote {
  margin: 28px 0;
  padding: 20px 24px;
  border-left: 3px solid var(--accent-warm);
  background: rgba(167,139,250,0.05);
  border-radius: 0 10px 10px 0;
}
.prose blockquote p {
  font-size: 1.02rem;
  font-style: italic;
  color: var(--text);
  opacity: 0.9;
  margin: 0;
}
.prose blockquote cite {
  display: block;
  margin-top: 8px;
  font-size: 0.78rem;
  color: var(--muted-2);
  font-style: normal;
}
.prose code {
  font-family: "JetBrains Mono", "Fira Code", monospace;
  font-size: 0.84em;
  background: rgba(255,255,255,0.07);
  border: 1px solid var(--line);
  border-radius: 4px;
  padding: 2px 6px;
  color: var(--accent-strong);
}
.prose pre {
  background: rgba(0,0,0,0.4);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 20px;
  overflow-x: auto;
  margin: 24px 0;
}
.prose pre code {
  background: none;
  border: none;
  padding: 0;
  font-size: 0.88rem;
  color: var(--accent);
}
.prose hr {
  border: none;
  border-top: 1px solid var(--line);
  margin: 36px 0;
}
.prose img {
  border-radius: 10px;
  border: 1px solid var(--line);
  margin: 24px 0;
  max-width: 100%;
}
.prose figure { margin: 28px 0; }
.prose figcaption { font-size: 0.77rem; color: var(--muted-2); text-align: center; margin-top: 8px; }

/* ── POST HEADER ──────────────────────────────────────────── */
.post-header { padding: 48px 0 0; max-width: var(--max-post); }
.post-header-top {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 20px;
  flex-wrap: wrap;
}
.post-header h1 {
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  line-height: 1.15;
  letter-spacing: -0.03em;
  color: var(--text);
  margin-bottom: 18px;
}
.post-header-excerpt {
  font-size: 1.05rem;
  color: var(--muted);
  line-height: 1.7;
  margin-bottom: 24px;
  max-width: 640px;
}
.post-header-meta {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  padding: 16px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  margin-bottom: 32px;
}
.post-header-author {
  display: flex;
  align-items: center;
  gap: 9px;
}
.post-header-author-info { display: flex; flex-direction: column; gap: 1px; }
.post-header-author-name { font-size: 0.85rem; font-weight: 700; color: var(--text); }
.post-header-author-role { font-size: 0.72rem; color: var(--muted-2); }
.post-header-divider { width: 1px; height: 20px; background: var(--line); }
.post-header-stat { font-size: 0.8rem; color: var(--muted-2); display: flex; align-items: center; gap: 5px; }
.post-hero-img {
  width: 100%;
  aspect-ratio: 16/8;
  border-radius: 16px;
  border: 1px solid var(--line);
  background: linear-gradient(135deg, rgba(92,224,255,0.08), rgba(167,139,250,0.08));
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 8px;
  overflow: hidden;
}
.post-hero-img img { width: 100%; height: 100%; object-fit: cover; }
.post-hero-caption { font-size: 0.75rem; color: var(--muted-2); text-align: center; margin-bottom: 0; }

/* ── BLOG INDEX HERO ──────────────────────────────────────── */
.blog-hero { padding: 64px 0 48px; }
.blog-hero h1 {
  font-size: clamp(2rem, 5vw, 3.2rem);
  line-height: 1.12;
  letter-spacing: -0.03em;
  margin-bottom: 14px;
}
.blog-hero p { font-size: 1rem; color: var(--muted); max-width: 520px; line-height: 1.7; margin-bottom: 28px; }
.blog-hero-controls {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  flex-wrap: wrap;
}

/* ── SECTION SPACING ──────────────────────────────────────── */
.section { padding: 64px 0; }
.section-sm { padding: 40px 0; }
.section-title {
  font-family: "Space Grotesk", sans-serif;
  font-size: 1.5rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 24px;
}
.section-header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 24px;
  flex-wrap: wrap;
}

/* ── AUTHOR PAGE ──────────────────────────────────────────── */
.author-page-hero {
  padding: 56px 0 48px;
  display: flex;
  gap: 32px;
  align-items: flex-start;
}
@media (max-width: 600px) { .author-page-hero { flex-direction: column; gap: 20px; } }
.author-page-info h1 { font-size: 1.8rem; margin-bottom: 6px; }
.author-page-role { color: var(--accent); font-weight: 600; font-size: 0.9rem; margin-bottom: 14px; }
.author-page-bio { font-size: 0.92rem; color: var(--muted); line-height: 1.75; max-width: 580px; margin-bottom: 16px; }
.author-stats { display: flex; gap: 24px; }
.author-stat-val { font-family: "Space Grotesk", sans-serif; font-size: 1.3rem; font-weight: 700; color: var(--text); }
.author-stat-lbl { font-size: 0.72rem; color: var(--muted-2); font-weight: 500; }

/* ── CATEGORY / TAG HERO ──────────────────────────────────── */
.taxonomy-hero { padding: 56px 0 48px; }
.taxonomy-hero h1 { font-size: 2rem; margin-bottom: 10px; }
.taxonomy-hero p { font-size: 0.95rem; color: var(--muted); max-width: 560px; line-height: 1.7; margin-bottom: 20px; }
.taxonomy-count { font-size: 0.82rem; color: var(--muted-2); }
.taxonomy-count strong { color: var(--text); }

/* ── SEARCH PAGE ──────────────────────────────────────────── */
.search-hero { padding: 56px 0 40px; }
.search-hero h1 { font-size: 1.6rem; margin-bottom: 6px; }
.search-results-count { font-size: 0.85rem; color: var(--muted-2); margin-bottom: 28px; }
.search-results-count strong { color: var(--text); }
.search-empty {
  text-align: center;
  padding: 80px 20px;
  color: var(--muted-2);
}
.search-empty-icon { font-size: 2.5rem; margin-bottom: 16px; opacity: 0.4; }
.search-empty h3 { font-size: 1.1rem; color: var(--muted); margin-bottom: 8px; }
.search-empty p { font-size: 0.88rem; max-width: 340px; margin: 0 auto; }

/* ── PRODUCT MENTION CARD ─────────────────────────────────── */
.product-mention {
  background: rgba(143,240,200,0.05);
  border: 1px solid rgba(143,240,200,0.18);
  border-radius: var(--r);
  padding: 24px 28px;
  margin: 36px 0;
  display: flex;
  gap: 18px;
  align-items: flex-start;
}
.product-mention-icon {
  width: 42px;
  height: 42px;
  border-radius: 10px;
  background: linear-gradient(135deg, #5ce0ff, #8ff0c8);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  flex-shrink: 0;
  color: #071524;
  font-weight: 700;
  font-family: "Space Grotesk", sans-serif;
}
.product-mention-body { flex: 1; }
.product-mention-label {
  font-size: 0.68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--accent);
  margin-bottom: 5px;
}
.product-mention-body h4 {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 5px;
  font-family: "Space Grotesk", sans-serif;
}
.product-mention-body p { font-size: 0.84rem; color: var(--muted); line-height: 1.6; margin: 0 0 12px; }

/* ── END OF ARTICLE CTA ───────────────────────────────────── */
.end-cta {
  background: var(--panel-strong);
  border: 1px solid rgba(92,224,255,0.15);
  border-radius: 18px;
  padding: 48px;
  text-align: center;
  margin-top: 64px;
  position: relative;
  overflow: hidden;
}
.end-cta::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 50% 0%, rgba(92,224,255,0.07), transparent 60%);
  pointer-events: none;
}
.end-cta h3 { font-size: 1.5rem; margin-bottom: 10px; position: relative; }
.end-cta p { font-size: 0.9rem; color: var(--muted); max-width: 420px; margin: 0 auto 24px; line-height: 1.7; position: relative; }
.end-cta-actions { display: flex; align-items: center; justify-content: center; gap: 12px; flex-wrap: wrap; position: relative; }
@media (max-width: 500px) {
  .end-cta { padding: 32px 20px; }
  .end-cta h3 { font-size: 1.2rem; }
}

/* ── UTILITY ──────────────────────────────────────────────── */
.text-muted { color: var(--muted); }
.text-muted-2 { color: var(--muted-2); }
.text-accent { color: var(--accent); }
.text-accent-strong { color: var(--accent-strong); }
.mt-0 { margin-top: 0 !important; }
.mt-4 { margin-top: 4px; }
.mt-8 { margin-top: 8px; }
.mt-12 { margin-top: 12px; }
.mt-16 { margin-top: 16px; }
.mt-24 { margin-top: 24px; }
.mt-32 { margin-top: 32px; }
.mb-24 { margin-bottom: 24px; }
.flex { display: flex; }
.flex-center { display: flex; align-items: center; }
.gap-8 { gap: 8px; }
.gap-12 { gap: 12px; }
.gap-16 { gap: 16px; }
