/* ─── Google Fonts ─────────────────────────────────────────────────────────── */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&display=swap');

/* ─── Design Tokens ─────────────────────────────────────────────────────────── */
:root {
  --brand:        #6941C6;
  --brand-light:  #9E77ED;
  --brand-dark:   #53389E;
  --brand-bg:     #F4F0FD;
  --brand-hover:  #42307D;

  --neutral-50:   #FAFAFA;
  --neutral-100:  #F4F4F5;
  --neutral-200:  #E4E4E7;
  --neutral-300:  #D1D1D6;
  --neutral-400:  #A1A1AA;
  --neutral-500:  #71717A;
  --neutral-600:  #52525B;
  --neutral-700:  #3F3F46;
  --neutral-800:  #27272A;
  --neutral-900:  #18181B;

  --header-bg:    #0F0B1E;
  --white:        #FFFFFF;

  --radius-sm:    6px;
  --radius:       12px;
  --radius-lg:    20px;

  --shadow-sm:    0 1px 3px rgba(0,0,0,0.08), 0 1px 2px rgba(0,0,0,0.06);
  --shadow:       0 4px 16px rgba(0,0,0,0.10), 0 2px 6px rgba(0,0,0,0.06);
  --shadow-lg:    0 12px 40px rgba(0,0,0,0.14), 0 4px 12px rgba(0,0,0,0.08);
  --shadow-brand: 0 4px 20px rgba(105, 65, 198, 0.25);

  --transition:   0.2s ease;
  --font:         'Inter', system-ui, -apple-system, sans-serif;

  --max-w:        1200px;
  --section-py:   96px;
}

/* ─── Reset ─────────────────────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-font-smoothing: antialiased; }
body {
  font-family: var(--font);
  color: var(--neutral-800);
  background: var(--white);
  line-height: 1.6;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; }
ul, ol { list-style: none; }

/* ─── Layout Utilities ──────────────────────────────────────────────────────── */
.container {
  width: 100%;
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 24px;
}

.section { padding: var(--section-py) 0; }
.section--alt { background: var(--neutral-50); }
.section--brand { background: var(--brand-bg); }

.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 32px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }

.flex { display: flex; }
.flex-col { flex-direction: column; }
.items-center { align-items: center; }
.justify-between { justify-content: space-between; }
.gap-8  { gap: 8px; }
.gap-12 { gap: 12px; }
.gap-16 { gap: 16px; }
.gap-24 { gap: 24px; }
.gap-32 { gap: 32px; }

.text-center { text-align: center; }
.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; }
.mt-48 { margin-top: 48px; }
.mt-64 { margin-top: 64px; }
.mb-8  { margin-bottom: 8px; }
.mb-16 { margin-bottom: 16px; }
.mb-24 { margin-bottom: 24px; }
.mb-32 { margin-bottom: 32px; }
.mb-48 { margin-bottom: 48px; }

/* ─── Typography ────────────────────────────────────────────────────────────── */
.eyebrow {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--brand);
}

.h1 {
  font-size: clamp(36px, 5vw, 64px);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.03em;
  color: var(--neutral-900);
}

.h2 {
  font-size: clamp(28px, 4vw, 44px);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.02em;
  color: var(--neutral-900);
}

.h3 {
  font-size: 20px;
  font-weight: 600;
  line-height: 1.3;
  color: var(--neutral-900);
}

.lead {
  font-size: 18px;
  font-weight: 400;
  line-height: 1.7;
  color: var(--neutral-500);
}

.text-sm   { font-size: 14px; }
.text-xs   { font-size: 12px; }
.text-mute { color: var(--neutral-400); }
.text-soft { color: var(--neutral-500); }
.text-brand { color: var(--brand); }
.text-white { color: var(--white); }
.font-500 { font-weight: 500; }
.font-600 { font-weight: 600; }
.font-700 { font-weight: 700; }

/* ─── Buttons ───────────────────────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 24px;
  border-radius: var(--radius-sm);
  font-size: 15px;
  font-weight: 600;
  transition: all var(--transition);
  white-space: nowrap;
}

.btn-primary {
  background: var(--brand);
  color: var(--white);
  box-shadow: var(--shadow-brand);
}
.btn-primary:hover {
  background: var(--brand-dark);
  box-shadow: 0 6px 28px rgba(105, 65, 198, 0.38);
  transform: translateY(-1px);
}

.btn-outline {
  border: 1.5px solid var(--brand);
  color: var(--brand);
}
.btn-outline:hover {
  background: var(--brand);
  color: var(--white);
  transform: translateY(-1px);
}

.btn-ghost {
  color: var(--brand);
  padding: 10px 20px;
}
.btn-ghost:hover {
  background: var(--brand-bg);
}

.btn-lg {
  padding: 16px 32px;
  font-size: 16px;
  border-radius: var(--radius-sm);
}

.btn-sm {
  padding: 8px 16px;
  font-size: 13px;
}

/* ─── Nav / Header ──────────────────────────────────────────────────────────── */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--header-bg);
  border-bottom: 1px solid rgba(255,255,255,0.07);
  backdrop-filter: blur(12px);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 68px;
  gap: 32px;
}

.nav__logo {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

.nav__logo img, .nav__logo svg {
  height: 32px;
  width: auto;
}

.nav__logo-text {
  font-size: 18px;
  font-weight: 800;
  color: var(--white);
  letter-spacing: -0.03em;
}

.nav__logo-text span { color: var(--brand-light); }

.nav__links {
  display: flex;
  align-items: center;
  gap: 4px;
  flex: 1;
  justify-content: center;
}

.nav__link {
  font-size: 14px;
  font-weight: 500;
  color: rgba(255,255,255,0.65);
  padding: 8px 14px;
  border-radius: var(--radius-sm);
  transition: all var(--transition);
}

.nav__link:hover,
.nav__link.active {
  color: var(--white);
  background: rgba(255,255,255,0.08);
}

.nav__actions {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}

.nav__cta {
  background: var(--brand);
  color: var(--white);
  padding: 9px 20px;
  border-radius: var(--radius-sm);
  font-size: 14px;
  font-weight: 600;
  transition: all var(--transition);
}

.nav__cta:hover {
  background: var(--brand-dark);
  transform: translateY(-1px);
}

/* Mobile nav toggle */
.nav__toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 8px;
  cursor: pointer;
}
.nav__toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--white);
  border-radius: 2px;
  transition: all var(--transition);
}

/* ─── Hero ──────────────────────────────────────────────────────────────────── */
.hero {
  background: var(--header-bg);
  padding: 100px 0 120px;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: -200px; left: 50%;
  transform: translateX(-30%);
  width: 800px; height: 800px;
  background: radial-gradient(ellipse, rgba(105, 65, 198, 0.25) 0%, transparent 70%);
  pointer-events: none;
}

.hero__inner {
  position: relative;
  z-index: 1;
  max-width: 780px;
}

.hero__badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(105, 65, 198, 0.2);
  border: 1px solid rgba(158, 119, 237, 0.3);
  border-radius: 100px;
  padding: 6px 16px;
  font-size: 13px;
  font-weight: 500;
  color: var(--brand-light);
  margin-bottom: 28px;
}

.hero__badge-dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--brand-light);
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.5; transform: scale(0.85); }
}

.hero__title {
  font-size: clamp(40px, 6vw, 72px);
  font-weight: 800;
  line-height: 1.08;
  letter-spacing: -0.035em;
  color: var(--white);
  margin-bottom: 24px;
}

.hero__title .accent {
  background: linear-gradient(135deg, var(--brand-light) 0%, #C084FC 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero__lead {
  font-size: 19px;
  line-height: 1.65;
  color: rgba(255,255,255,0.55);
  max-width: 560px;
  margin-bottom: 40px;
}

.hero__actions {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}

.hero__link {
  font-size: 15px;
  font-weight: 500;
  color: rgba(255,255,255,0.6);
  display: flex;
  align-items: center;
  gap: 6px;
  transition: color var(--transition);
}
.hero__link:hover { color: var(--white); }
.hero__link svg { transition: transform var(--transition); }
.hero__link:hover svg { transform: translateX(3px); }

.hero__scroll {
  margin-top: 80px;
  display: flex;
  align-items: center;
  gap: 24px;
}

.hero__stats {
  display: flex;
  gap: 40px;
  flex-wrap: wrap;
}

.hero__stat-val {
  font-size: 28px;
  font-weight: 800;
  color: var(--white);
  letter-spacing: -0.03em;
}

.hero__stat-lbl {
  font-size: 13px;
  color: rgba(255,255,255,0.4);
  margin-top: 2px;
}

/* ─── Section Headings ──────────────────────────────────────────────────────── */
.section-header {
  margin-bottom: 56px;
}

.section-header.text-center {
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

.section-header .eyebrow {
  margin-bottom: 12px;
}

.section-header .lead {
  margin-top: 16px;
}

/* ─── Cards ─────────────────────────────────────────────────────────────────── */
.card {
  background: var(--white);
  border-radius: var(--radius);
  border: 1px solid var(--neutral-200);
  padding: 32px;
  transition: all var(--transition);
}

.card:hover {
  border-color: var(--brand-light);
  box-shadow: var(--shadow-lg);
  transform: translateY(-4px);
}

.card__icon {
  width: 52px; height: 52px;
  border-radius: var(--radius-sm);
  background: var(--brand-bg);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
  flex-shrink: 0;
}

.card__icon svg {
  width: 24px; height: 24px;
  color: var(--brand);
  stroke: var(--brand);
}

.card__title {
  font-size: 18px;
  font-weight: 600;
  color: var(--neutral-900);
  margin-bottom: 10px;
}

.card__body {
  font-size: 15px;
  line-height: 1.65;
  color: var(--neutral-500);
}

/* ─── Feature Cards ─────────────────────────────────────────────────────────── */
.feature-card {
  background: var(--white);
  border-radius: var(--radius);
  border: 1px solid var(--neutral-200);
  padding: 36px;
  transition: all 0.25s ease;
  position: relative;
  overflow: hidden;
}

.feature-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 3px;
  background: linear-gradient(90deg, var(--brand), var(--brand-light));
  opacity: 0;
  transition: opacity var(--transition);
}

.feature-card:hover {
  border-color: rgba(105, 65, 198, 0.2);
  box-shadow: var(--shadow-lg), 0 0 0 1px rgba(105, 65, 198, 0.08);
  transform: translateY(-4px);
}

.feature-card:hover::before { opacity: 1; }

.feature-card__num {
  font-size: 12px;
  font-weight: 700;
  color: var(--brand);
  letter-spacing: 0.1em;
  margin-bottom: 20px;
}

/* ─── Blog Cards ────────────────────────────────────────────────────────────── */
.blog-card {
  background: var(--white);
  border-radius: var(--radius);
  border: 1px solid var(--neutral-200);
  overflow: hidden;
  transition: all 0.25s ease;
  display: flex;
  flex-direction: column;
}

.blog-card:hover {
  border-color: rgba(105, 65, 198, 0.25);
  box-shadow: var(--shadow-lg);
  transform: translateY(-4px);
}

.blog-card__img {
  aspect-ratio: 16/9;
  background: linear-gradient(135deg, var(--brand-bg) 0%, rgba(158, 119, 237, 0.15) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}

.blog-card__category {
  position: absolute;
  top: 16px; left: 16px;
  background: var(--brand);
  color: var(--white);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 4px 10px;
  border-radius: 100px;
}

.blog-card__img-placeholder {
  color: var(--brand-light);
  opacity: 0.4;
}

.blog-card__cover {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  transition: transform 0.35s ease;
}

.blog-card:hover .blog-card__cover {
  transform: scale(1.04);
}

.blog-card__body {
  padding: 24px;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.blog-card__meta {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 13px;
  color: var(--neutral-400);
  margin-bottom: 12px;
}

.blog-card__meta-sep { color: var(--neutral-300); }

.blog-card__title {
  font-size: 17px;
  font-weight: 600;
  line-height: 1.4;
  color: var(--neutral-900);
  margin-bottom: 10px;
  transition: color var(--transition);
}

.blog-card:hover .blog-card__title { color: var(--brand); }

.blog-card__excerpt {
  font-size: 14px;
  line-height: 1.65;
  color: var(--neutral-500);
  flex: 1;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.blog-card__footer {
  margin-top: 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.blog-card__tags {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}

.tag {
  display: inline-block;
  background: var(--brand-bg);
  color: var(--brand);
  font-size: 11px;
  font-weight: 600;
  padding: 3px 10px;
  border-radius: 100px;
  letter-spacing: 0.02em;
}

.blog-card__link {
  font-size: 13px;
  font-weight: 600;
  color: var(--brand);
  display: flex;
  align-items: center;
  gap: 4px;
  transition: gap var(--transition);
}

.blog-card:hover .blog-card__link { gap: 8px; }

/* ─── Loading / Skeleton ────────────────────────────────────────────────────── */
.spinner {
  width: 40px; height: 40px;
  border: 3px solid var(--neutral-200);
  border-top-color: var(--brand);
  border-radius: 50%;
  animation: spin 0.75s linear infinite;
  margin: 48px auto;
}

@keyframes spin { to { transform: rotate(360deg); } }

.skeleton {
  background: linear-gradient(90deg, var(--neutral-100) 25%, var(--neutral-200) 50%, var(--neutral-100) 75%);
  background-size: 200% 100%;
  animation: shimmer 1.4s infinite;
  border-radius: var(--radius-sm);
}

@keyframes shimmer {
  0% { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

.skeleton-card {
  background: var(--white);
  border: 1px solid var(--neutral-200);
  border-radius: var(--radius);
  overflow: hidden;
}

.skeleton-img {
  aspect-ratio: 16/9;
  width: 100%;
}

.skeleton-body {
  padding: 24px;
}

.skeleton-line {
  height: 14px;
  margin-bottom: 10px;
}

.skeleton-line--sm { width: 40%; }
.skeleton-line--md { width: 70%; }
.skeleton-line--lg { width: 100%; }
.skeleton-line--xl { width: 90%; }
.skeleton-title {
  height: 20px;
  width: 85%;
  margin-bottom: 12px;
}

/* ─── Empty / Error States ──────────────────────────────────────────────────── */
.state-empty, .state-error {
  text-align: center;
  padding: 64px 24px;
  color: var(--neutral-400);
}

.state-empty svg, .state-error svg {
  margin: 0 auto 16px;
  opacity: 0.4;
}

.state-error { color: var(--neutral-500); }
.state-error p { max-width: 360px; margin: 8px auto 0; font-size: 14px; }
.state-error .btn { margin-top: 24px; }

/* ─── Search & Filter ───────────────────────────────────────────────────────── */
.blog-controls {
  display: flex;
  gap: 16px;
  align-items: center;
  flex-wrap: wrap;
  margin-bottom: 40px;
}

.search-box {
  position: relative;
  flex: 1;
  min-width: 220px;
}

.search-box input {
  width: 100%;
  padding: 11px 16px 11px 44px;
  border: 1.5px solid var(--neutral-200);
  border-radius: var(--radius-sm);
  font-size: 15px;
  font-family: var(--font);
  color: var(--neutral-800);
  background: var(--white);
  transition: border-color var(--transition);
  outline: none;
}

.search-box input:focus {
  border-color: var(--brand);
  box-shadow: 0 0 0 3px rgba(105, 65, 198, 0.12);
}

.search-box input::placeholder { color: var(--neutral-400); }

.search-box__icon {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--neutral-400);
  width: 18px; height: 18px;
  pointer-events: none;
}

.filter-pills {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.filter-pill {
  padding: 8px 16px;
  border-radius: 100px;
  border: 1.5px solid var(--neutral-200);
  font-size: 13px;
  font-weight: 500;
  color: var(--neutral-600);
  background: var(--white);
  cursor: pointer;
  transition: all var(--transition);
}

.filter-pill:hover {
  border-color: var(--brand);
  color: var(--brand);
}

.filter-pill.active {
  background: var(--brand);
  border-color: var(--brand);
  color: var(--white);
}

/* ─── Blog Post (single) ────────────────────────────────────────────────────── */
.post-layout {
  display: grid;
  grid-template-columns: 1fr 280px;
  gap: 64px;
  align-items: start;
}

.post-header {
  margin-bottom: 40px;
  padding-bottom: 40px;
  border-bottom: 1px solid var(--neutral-200);
}

.post-header .eyebrow { margin-bottom: 16px; }

.post-title {
  font-size: clamp(28px, 4vw, 48px);
  font-weight: 800;
  line-height: 1.12;
  letter-spacing: -0.025em;
  color: var(--neutral-900);
  margin-bottom: 20px;
}

.post-meta {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  font-size: 14px;
  color: var(--neutral-400);
}

.post-meta__author {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--neutral-700);
  font-weight: 500;
}

.post-meta__avatar {
  width: 32px; height: 32px;
  border-radius: 50%;
  background: var(--brand-bg);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  font-weight: 700;
  color: var(--brand);
  flex-shrink: 0;
}

.post-content {
  font-size: 17px;
  line-height: 1.8;
  color: var(--neutral-700);
}

.post-content h2 {
  font-size: 26px;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--neutral-900);
  margin: 48px 0 16px;
  line-height: 1.2;
  scroll-margin-top: 100px;
}

.post-content h3 {
  font-size: 20px;
  font-weight: 600;
  color: var(--neutral-800);
  margin: 32px 0 12px;
}

.post-content p { margin-bottom: 24px; }

.post-content strong { font-weight: 600; color: var(--neutral-800); }

.post-content em { font-style: italic; }

.post-content ul, .post-content ol {
  margin-bottom: 24px;
  padding-left: 24px;
}

.post-content ul li { list-style: disc; }
.post-content ol li { list-style: decimal; }
.post-content li { margin-bottom: 8px; }

.post-content blockquote {
  border-left: 3px solid var(--brand);
  padding: 16px 24px;
  margin: 32px 0;
  background: var(--brand-bg);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  font-style: italic;
  color: var(--neutral-600);
}

.post-content code {
  background: var(--neutral-100);
  border: 1px solid var(--neutral-200);
  padding: 2px 7px;
  border-radius: 4px;
  font-size: 14px;
  font-family: 'Fira Code', 'Cascadia Code', monospace;
}

/* ─── Post Images ─────────────────────────────────────────────────────────── */
.post-content figure.post-img,
figure.post-img {
  margin: 36px 0;
}

.post-content figure.post-img img,
figure.post-img img {
  width: 100%;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  display: block;
  max-height: 520px;
  object-fit: cover;
}

figure.post-img figcaption {
  font-size: 13px;
  color: var(--neutral-400);
  text-align: center;
  margin-top: 10px;
  font-style: italic;
  line-height: 1.4;
}

.post-tags {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 48px;
  padding-top: 32px;
  border-top: 1px solid var(--neutral-200);
}

/* ─── Post Sidebar (TOC) ────────────────────────────────────────────────────── */
.post-sidebar {
  position: sticky;
  top: 88px;
}

.toc {
  background: var(--white);
  border: 1px solid var(--neutral-200);
  border-radius: var(--radius);
  padding: 24px;
}

.toc__title {
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--neutral-400);
  margin-bottom: 16px;
}

.toc__list {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.toc__link {
  font-size: 14px;
  color: var(--neutral-500);
  padding: 6px 10px;
  border-radius: var(--radius-sm);
  border-left: 2px solid transparent;
  transition: all var(--transition);
  line-height: 1.4;
  display: block;
}

.toc__link:hover,
.toc__link.active {
  color: var(--brand);
  border-left-color: var(--brand);
  background: var(--brand-bg);
}

.back-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 14px;
  font-weight: 500;
  color: var(--neutral-500);
  margin-bottom: 40px;
  transition: color var(--transition);
}

.back-link:hover { color: var(--brand); }
.back-link svg { transition: transform var(--transition); }
.back-link:hover svg { transform: translateX(-3px); }

/* ─── CTA / Contact Section ─────────────────────────────────────────────────── */
.cta-section {
  background: linear-gradient(135deg, var(--brand) 0%, var(--brand-dark) 100%);
  padding: var(--section-py) 0;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.cta-section::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 30% 50%, rgba(255,255,255,0.08) 0%, transparent 60%);
}

.cta-section .container { position: relative; }

.cta-section .h2 { color: var(--white); }
.cta-section .lead { color: rgba(255,255,255,0.7); max-width: 520px; margin: 16px auto 40px; }

.cta-section .btn-outline {
  border-color: rgba(255,255,255,0.4);
  color: var(--white);
}

.cta-section .btn-outline:hover {
  background: rgba(255,255,255,0.15);
  border-color: var(--white);
  color: var(--white);
}

/* ─── Footer ────────────────────────────────────────────────────────────────── */
.site-footer {
  background: var(--header-bg);
  padding: 64px 0 32px;
  color: rgba(255,255,255,0.5);
}

.footer__grid {
  display: grid;
  grid-template-columns: 1.8fr repeat(3, 1fr);
  gap: 48px;
  margin-bottom: 48px;
}

.footer__brand p {
  font-size: 14px;
  line-height: 1.7;
  max-width: 260px;
  margin-top: 16px;
  color: rgba(255,255,255,0.4);
}

.footer__heading {
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: rgba(255,255,255,0.3);
  margin-bottom: 16px;
}

.footer__links {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer__link {
  font-size: 14px;
  color: rgba(255,255,255,0.5);
  transition: color var(--transition);
}

.footer__link:hover { color: var(--white); }

.footer__bottom {
  padding-top: 32px;
  border-top: 1px solid rgba(255,255,255,0.07);
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 13px;
}

.footer__legal {
  display: flex;
  gap: 24px;
}

/* ─── Page Hero (inner pages) ───────────────────────────────────────────────── */
.page-hero {
  background: var(--header-bg);
  padding: 64px 0;
}

.page-hero .eyebrow { margin-bottom: 12px; }

.page-hero .h1 {
  color: var(--white);
  font-size: clamp(32px, 4vw, 52px);
}

.page-hero .lead {
  color: rgba(255,255,255,0.5);
  max-width: 560px;
  margin-top: 16px;
}

/* ─── No-results state ──────────────────────────────────────────────────────── */
.no-results {
  grid-column: 1 / -1;
  text-align: center;
  padding: 64px 0;
  color: var(--neutral-400);
}

/* ─── Responsive ────────────────────────────────────────────────────────────── */
@media (max-width: 1024px) {
  .footer__grid { grid-template-columns: 1fr 1fr; gap: 36px; }
  .post-layout { grid-template-columns: 1fr; }
  .post-sidebar { display: none; }
}

@media (max-width: 768px) {
  :root { --section-py: 64px; }

  .nav__links, .nav__actions { display: none; }
  .nav__toggle { display: flex; }

  .nav--open .nav__links {
    display: flex;
    flex-direction: column;
    position: fixed;
    top: 68px; left: 0; right: 0;
    background: var(--header-bg);
    padding: 16px 24px 24px;
    border-bottom: 1px solid rgba(255,255,255,0.07);
    gap: 4px;
  }

  .nav--open .nav__link { width: 100%; }
  .nav--open .nav__actions { display: flex; padding: 0 24px 24px; }

  .hero { padding: 72px 0 88px; }
  .hero__stats { gap: 24px; }

  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }

  .footer__grid { grid-template-columns: 1fr; gap: 32px; }
  .footer__bottom { flex-direction: column; gap: 12px; text-align: center; }
  .footer__legal { justify-content: center; }

  .blog-controls { flex-direction: column; }
  .search-box { min-width: 100%; }

  .post-layout { grid-template-columns: 1fr; }
}

@media (max-width: 480px) {
  .container { padding: 0 16px; }
  .hero__actions { flex-direction: column; align-items: flex-start; }
  .btn-lg { width: 100%; justify-content: center; }
}

/* ─── Animations ────────────────────────────────────────────────────────────── */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: translateY(0); }
}

.animate-fade-up {
  animation: fadeUp 0.5s ease both;
}

.animate-delay-1 { animation-delay: 0.1s; }
.animate-delay-2 { animation-delay: 0.2s; }
.animate-delay-3 { animation-delay: 0.3s; }
.animate-delay-4 { animation-delay: 0.4s; }

/* ─── Divider ───────────────────────────────────────────────────────────────── */
.divider {
  width: 48px;
  height: 3px;
  background: linear-gradient(90deg, var(--brand), var(--brand-light));
  border-radius: 2px;
  margin: 20px 0;
}

.divider--center { margin-left: auto; margin-right: auto; }

/* ─── Misc ──────────────────────────────────────────────────────────────────── */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 12px;
  border-radius: 100px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.03em;
}

.badge--brand { background: var(--brand-bg); color: var(--brand); }
.badge--neutral { background: var(--neutral-100); color: var(--neutral-600); }

.highlight { color: var(--brand); }

/* post count */
.posts-count {
  font-size: 14px;
  color: var(--neutral-400);
  margin-bottom: 8px;
}
