/* =============================================
   KNX Solutions — Shared Stylesheet
   ============================================= */

:root {
  --purple-primary: #7B21E8;
  --purple-light: #9B45F5;
  --purple-lighter: #B873F8;
  --purple-dark: #5A18B0;
  --purple-deeper: #3D0F80;
  --bg-base: #F5F3FA;
  --bg-surface: #EDEAF5;
  --bg-elevated: #E3DFF0;
  --bg-card: #FFFFFF;
  --text-primary: #1A1032;
  --text-secondary: #3D3356;
  --text-muted: #6B5F8A;
  --border: rgba(123, 33, 232, 0.2);
  --border-subtle: rgba(123, 33, 232, 0.08);
  --nav-bg: rgba(245, 243, 250, 0.8);
  --path-stroke: rgba(123, 33, 232, 0.12);
}

[data-theme="dark"] {
  --bg-base: #08080E;
  --bg-surface: #10101A;
  --bg-elevated: #17172A;
  --bg-card: #1A1A2E;
  --text-primary: #F2EFFF;
  --text-secondary: #A89DC8;
  --text-muted: #6B6090;
  --border: rgba(123, 33, 232, 0.2);
  --border-subtle: rgba(255, 255, 255, 0.06);
  --nav-bg: rgba(8, 8, 14, 0.75);
  --path-stroke: rgba(147, 71, 255, 0.15);
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

body {
  font-family: 'Inter', sans-serif;
  background-color: var(--bg-base);
  color: var(--text-primary);
  overflow-x: hidden;
}

.mono { font-family: 'JetBrains Mono', monospace; }

/* Noise texture */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  opacity: 0.025;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 512 512' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='512' height='512' filter='url(%23noise)' opacity='1'/%3E%3C/svg%3E");
  background-size: 200px;
}

/* Scrollbar */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--bg-base); }
::-webkit-scrollbar-thumb { background: var(--purple-dark); border-radius: 3px; }

/* Animations */
@keyframes pulse-dot {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.5; transform: scale(0.7); }
}

/* ---- Navigation ---- */
nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  padding: 0 5%;
  height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: var(--nav-bg);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border-subtle);
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}

.nav-logo img { height: 36px; width: auto; }

.nav-logo-text { display: flex; flex-direction: column; line-height: 1; }

.nav-logo-text .brand-name {
  font-size: 18px;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--text-primary);
}

.nav-logo-text .brand-sub {
  font-size: 9px;
  font-weight: 500;
  letter-spacing: 0.18em;
  color: var(--purple-light);
  text-transform: uppercase;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 36px;
  list-style: none;
}

.nav-links a {
  font-size: 14px;
  font-weight: 500;
  color: var(--text-secondary);
  text-decoration: none;
  letter-spacing: 0.01em;
  position: relative;
  transition: color 0.2s ease;
}

.nav-links a:hover { color: var(--text-primary); }

.nav-links a.nav-active { color: var(--text-primary); }

.nav-links a.nav-active::after {
  content: '';
  position: absolute;
  bottom: -6px;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--purple-primary);
  border-radius: 1px;
}

/* ---- Nav dropdown ---- */
.nav-dropdown {
  position: relative;
}

.nav-dropdown-trigger {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 14px;
  font-weight: 500;
  color: var(--text-secondary);
  background: none;
  border: none;
  cursor: pointer;
  font-family: inherit;
  letter-spacing: 0.01em;
  padding: 0;
  transition: color 0.2s ease;
}

.nav-dropdown-trigger:hover { color: var(--text-primary); }

.nav-dropdown-trigger svg {
  width: 12px;
  height: 12px;
  transition: transform 0.2s ease;
}

.nav-dropdown:hover .nav-dropdown-trigger svg,
.nav-dropdown:focus-within .nav-dropdown-trigger svg {
  transform: rotate(180deg);
}

.nav-dropdown-menu {
  position: absolute;
  top: calc(100% + 20px);
  right: 0;
  transform: translateY(-8px);
  min-width: 340px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 12px;
  box-shadow: 0 20px 60px rgba(123,33,232,0.18), 0 4px 16px rgba(0,0,0,0.08);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.2s ease, transform 0.2s cubic-bezier(0.34,1.56,0.64,1), visibility 0.2s;
  list-style: none;
  z-index: 200;
}

.nav-dropdown:hover .nav-dropdown-menu,
.nav-dropdown:focus-within .nav-dropdown-menu {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateY(0);
}

.nav-dropdown-menu::before {
  content: '';
  position: absolute;
  top: -20px;
  left: 0;
  right: 0;
  height: 20px;
}

.nav-dropdown-menu li {
  list-style: none;
}

.nav-dropdown-menu a {
  display: block;
  padding: 12px 14px;
  border-radius: 10px;
  text-decoration: none;
  color: var(--text-primary);
  transition: background 0.2s ease, transform 0.15s ease;
}

.nav-dropdown-menu a:hover {
  background: rgba(123,33,232,0.08);
  transform: translateX(2px);
}

.nav-dropdown-menu a::after { display: none !important; }

.nav-dropdown-item-tag {
  display: block;
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: var(--purple-primary);
  text-transform: uppercase;
  margin-bottom: 4px;
}

.nav-dropdown-item-title {
  display: block;
  font-size: 14px;
  font-weight: 600;
  color: var(--text-primary);
  line-height: 1.35;
  margin-bottom: 2px;
}

.nav-dropdown-item-desc {
  display: block;
  font-size: 12px;
  color: var(--text-secondary);
  line-height: 1.45;
}

.nav-dropdown-divider {
  height: 1px;
  background: var(--border-subtle);
  margin: 8px 6px;
}

.nav-dropdown-view-all {
  display: flex !important;
  align-items: center;
  justify-content: space-between;
  font-size: 13px !important;
  font-weight: 600;
  color: var(--purple-primary) !important;
  padding: 10px 14px !important;
}

.nav-dropdown-view-all:hover { color: var(--purple-dark) !important; }

.nav-dropdown-view-all svg {
  width: 14px;
  height: 14px;
  transition: transform 0.2s ease;
}

.nav-dropdown-view-all:hover svg { transform: translateX(2px); }

/* ---- Buttons ---- */
.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 22px;
  background: var(--purple-primary);
  color: #fff;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.01em;
  border-radius: 8px;
  border: none;
  cursor: pointer;
  text-decoration: none;
  transition: background 0.2s ease, transform 0.15s cubic-bezier(0.34,1.56,0.64,1), box-shadow 0.2s ease;
}

.btn-primary:hover {
  background: var(--purple-light);
  transform: translateY(-1px) scale(1.02);
  box-shadow: 0 8px 32px rgba(123,33,232,0.45), 0 2px 8px rgba(123,33,232,0.3);
}

.btn-primary:active { transform: translateY(0) scale(0.99); }
.btn-primary:focus-visible { outline: 2px solid var(--purple-lighter); outline-offset: 3px; }

.btn-secondary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 22px;
  background: transparent;
  color: var(--text-primary);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.01em;
  border-radius: 8px;
  border: 1px solid var(--border);
  cursor: pointer;
  text-decoration: none;
  transition: background 0.2s ease, border-color 0.2s ease, transform 0.15s cubic-bezier(0.34,1.56,0.64,1);
}

.btn-secondary:hover {
  background: rgba(123,33,232,0.1);
  border-color: var(--purple-primary);
  transform: translateY(-1px);
}

.btn-secondary:active { transform: translateY(0); }
.btn-secondary:focus-visible { outline: 2px solid var(--purple-lighter); outline-offset: 3px; }

/* ---- Section commons ---- */
section { position: relative; z-index: 1; }

.section-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.18em;
  color: var(--purple-primary);
  text-transform: uppercase;
  margin-bottom: 14px;
}

.section-eyebrow::before {
  content: '';
  display: block;
  width: 20px;
  height: 2px;
  background: var(--purple-primary);
  border-radius: 2px;
}

.section-title {
  font-size: clamp(28px, 4vw, 44px);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.1;
  color: var(--text-primary);
  margin-bottom: 16px;
  text-align: center;
}

.section-desc {
  font-size: 16px;
  line-height: 1.7;
  color: var(--text-secondary);
  max-width: 540px;
  text-align: center;
}

/* ---- Page hero (inner pages) ---- */
.page-hero {
  padding: 152px 5% 72px;
  text-align: center;
  background: var(--bg-base);
  position: relative;
  overflow: hidden;
}

.page-hero-bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.page-hero-bg::before {
  content: '';
  position: absolute;
  top: -20%;
  left: 50%;
  transform: translateX(-50%);
  width: 80%;
  height: 100%;
  background: radial-gradient(ellipse 70% 70% at 50% 30%, rgba(123,33,232,0.18) 0%, transparent 70%);
}

.page-hero-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(123,33,232,0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(123,33,232,0.05) 1px, transparent 1px);
  background-size: 60px 60px;
  mask-image: radial-gradient(ellipse 90% 90% at 50% 50%, black 20%, transparent 100%);
}

.page-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 5px 14px;
  background: rgba(123,33,232,0.1);
  border: 1px solid rgba(123,33,232,0.25);
  border-radius: 100px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.14em;
  color: var(--purple-dark);
  text-transform: uppercase;
  margin-bottom: 24px;
}

.page-hero h1 {
  font-size: clamp(38px, 5.5vw, 64px);
  font-weight: 900;
  letter-spacing: -0.03em;
  line-height: 1.05;
  color: var(--text-primary);
  margin-bottom: 20px;
  position: relative;
}

.page-hero h1 .accent {
  background: linear-gradient(135deg, var(--purple-lighter) 0%, var(--purple-primary) 60%, var(--purple-dark) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.page-hero p {
  font-size: 17px;
  line-height: 1.7;
  color: var(--text-secondary);
  max-width: 560px;
  margin: 0 auto;
  position: relative;
}

/* ---- Stats bar ---- */
.stats-bar {
  position: relative;
  z-index: 2;
  background: var(--bg-surface);
  border-top: 1px solid var(--border-subtle);
  border-bottom: 1px solid var(--border-subtle);
  padding: 32px 5%;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

.stat-item { text-align: center; padding: 8px 0; }

.stat-value {
  font-size: 36px;
  font-weight: 900;
  letter-spacing: -0.03em;
  background: linear-gradient(135deg, var(--purple-lighter), var(--purple-primary));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1;
  margin-bottom: 6px;
}

.stat-label {
  font-size: 13px;
  font-weight: 500;
  color: var(--text-muted);
  letter-spacing: 0.02em;
}

/* ---- CTA Banner ---- */
.cta-section {
  padding: 80px 5%;
  background: var(--bg-surface);
  overflow: hidden;
}

.cta-inner {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 24px;
  padding: 72px 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 48px;
  position: relative;
  overflow: hidden;
}

.cta-inner::before {
  content: '';
  position: absolute;
  top: -60%; left: -20%;
  width: 70%; height: 200%;
  background: radial-gradient(ellipse at center, rgba(123,33,232,0.18) 0%, transparent 70%);
  pointer-events: none;
}

.cta-inner::after {
  content: '';
  position: absolute;
  bottom: -60%; right: -10%;
  width: 50%; height: 200%;
  background: radial-gradient(ellipse at center, rgba(91,24,176,0.12) 0%, transparent 70%);
  pointer-events: none;
}

.cta-text { position: relative; z-index: 1; }

.cta-title {
  font-size: clamp(26px, 3.5vw, 40px);
  font-weight: 900;
  letter-spacing: -0.03em;
  line-height: 1.1;
  color: var(--text-primary);
  margin-bottom: 12px;
}

.cta-sub {
  font-size: 16px;
  color: var(--text-secondary);
  line-height: 1.6;
}

.cta-actions {
  position: relative;
  z-index: 1;
  display: flex;
  gap: 14px;
  align-items: center;
  flex-shrink: 0;
}

.cta-actions .btn-primary { padding: 16px 32px; font-size: 16px; white-space: nowrap; }
.cta-actions .btn-secondary { padding: 16px 32px; font-size: 16px; white-space: nowrap; }

/* ---- Footer ---- */
footer {
  background: var(--bg-base);
  border-top: 1px solid var(--border-subtle);
  padding: 64px 5% 36px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 48px;
  margin-bottom: 56px;
}

.footer-brand img { height: 36px; margin-bottom: 16px; }

.footer-brand-name {
  font-size: 16px;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--text-primary);
  margin-bottom: 4px;
}

.footer-tagline {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--purple-light);
  margin-bottom: 16px;
}

.footer-desc {
  font-size: 13px;
  line-height: 1.7;
  color: var(--text-muted);
  max-width: 280px;
}

.footer-col-title {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-primary);
  margin-bottom: 20px;
}

.footer-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-links a {
  font-size: 13px;
  color: var(--text-muted);
  text-decoration: none;
  transition: color 0.2s ease;
}

.footer-links a:hover { color: var(--text-secondary); }

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 28px;
  border-top: 1px solid var(--border-subtle);
}

.footer-copy { font-size: 12px; color: var(--text-muted); }

.footer-mono {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  color: var(--text-muted);
}

.footer-mono span { color: var(--purple-light); }

/* ---- Theme Toggle ---- */
.nav-right {
  display: flex;
  align-items: center;
  gap: 16px;
}

.theme-toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  background: var(--bg-elevated);
  border: 1px solid var(--border-subtle);
  border-radius: 10px;
  cursor: pointer;
  transition: background 0.2s ease, border-color 0.2s ease, transform 0.15s cubic-bezier(0.34,1.56,0.64,1);
  color: var(--text-secondary);
  flex-shrink: 0;
}

.theme-toggle:hover {
  background: rgba(123,33,232,0.12);
  border-color: var(--purple-primary);
  color: var(--text-primary);
  transform: translateY(-1px);
}

.theme-toggle:active { transform: translateY(0); }
.theme-toggle:focus-visible { outline: 2px solid var(--purple-lighter); outline-offset: 3px; }

.theme-toggle .icon-sun,
.theme-toggle .icon-moon { width: 18px; height: 18px; }

.theme-toggle .icon-sun { display: block; }
.theme-toggle .icon-moon { display: none; }

[data-theme="dark"] .theme-toggle .icon-sun { display: none; }
[data-theme="dark"] .theme-toggle .icon-moon { display: block; }

/* Dark theme overrides for specific elements */
[data-theme="dark"] .hero-code {
  background: var(--bg-elevated);
  border-color: var(--border-subtle);
}

[data-theme="dark"] .hero-code .comment { color: #5A5080; }
[data-theme="dark"] .hero-code .keyword { color: #B873F8; }
[data-theme="dark"] .hero-code .string { color: #50C896; }
[data-theme="dark"] .hero-code .number { color: #F5A55A; }
[data-theme="dark"] .hero-code .var { color: #7EC8F5; }

[data-theme="dark"] .hero-content::before { display: block; }

[data-theme="dark"] .hero-eyebrow {
  background: rgba(123,33,232,0.12);
  border-color: rgba(123,33,232,0.3);
  color: var(--purple-lighter);
}

[data-theme="dark"] .hero h1 { color: var(--text-primary); }

[data-theme="dark"] .hero-desc { color: var(--text-secondary); }

[data-theme="dark"] .btn-secondary {
  color: var(--text-primary);
  border-color: var(--border);
}

[data-theme="dark"] .page-eyebrow {
  background: rgba(123,33,232,0.12);
  border-color: rgba(123,33,232,0.3);
  color: var(--purple-lighter);
}

[data-theme="dark"] .page-hero h1 { color: var(--text-primary); }

[data-theme="dark"] .section-title { color: var(--text-primary); }

[data-theme="dark"] .stat-label { color: var(--text-muted); }

/* ---- Resources / Blog ---- */
.resources-grid-section {
  padding: 72px 5% 96px;
  background: var(--bg-base);
  position: relative;
}

.resources-grid {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

.resource-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: 16px;
  overflow: hidden;
  text-decoration: none;
  display: flex;
  flex-direction: column;
  transition: transform 0.2s cubic-bezier(0.34,1.56,0.64,1), box-shadow 0.2s ease, border-color 0.2s ease;
}

.resource-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 20px 50px rgba(123,33,232,0.12), 0 4px 12px rgba(123,33,232,0.06);
  border-color: rgba(123,33,232,0.25);
}

.resource-card-img {
  aspect-ratio: 16 / 9;
  background-size: cover;
  background-position: center;
  position: relative;
  overflow: hidden;
}

.resource-card-img::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(123,33,232,0.35), rgba(91,24,176,0.15));
  mix-blend-mode: multiply;
}

.resource-card-body {
  padding: 24px 24px 28px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.resource-card-meta {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 14px;
}

.resource-card-tag {
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.12em;
  color: var(--purple-primary);
  text-transform: uppercase;
  padding: 4px 10px;
  background: rgba(123,33,232,0.1);
  border-radius: 100px;
}

.resource-card-date {
  font-size: 12px;
  color: var(--text-muted);
}

.resource-card-title {
  font-size: 19px;
  font-weight: 800;
  line-height: 1.3;
  letter-spacing: -0.02em;
  color: var(--text-primary);
  margin-bottom: 10px;
}

.resource-card-excerpt {
  font-size: 14px;
  line-height: 1.6;
  color: var(--text-secondary);
  margin-bottom: 20px;
  flex: 1;
}

.resource-card-read {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  font-weight: 600;
  color: var(--purple-primary);
}

.resource-card-read svg { width: 14px; height: 14px; transition: transform 0.2s ease; }
.resource-card:hover .resource-card-read svg { transform: translateX(3px); }

/* ---- Blog post article ---- */
.blog-article {
  padding: 48px 5% 96px;
  background: var(--bg-base);
}

.blog-article-inner {
  max-width: 760px;
  margin: 0 auto;
}

.blog-article-header {
  text-align: center;
  margin-bottom: 48px;
}

.blog-article-tag {
  display: inline-block;
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.14em;
  color: var(--purple-primary);
  text-transform: uppercase;
  padding: 6px 14px;
  background: rgba(123,33,232,0.1);
  border: 1px solid rgba(123,33,232,0.25);
  border-radius: 100px;
  margin-bottom: 20px;
}

.blog-article h1 {
  font-size: clamp(32px, 4.5vw, 48px);
  font-weight: 900;
  letter-spacing: -0.03em;
  line-height: 1.1;
  color: var(--text-primary);
  margin-bottom: 20px;
}

.blog-article-meta {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  font-size: 13px;
  color: var(--text-muted);
}

.blog-article-meta .dot-sep {
  width: 4px;
  height: 4px;
  background: var(--text-muted);
  border-radius: 50%;
}

.blog-article-hero {
  width: 100%;
  aspect-ratio: 16 / 9;
  border-radius: 16px;
  overflow: hidden;
  margin-bottom: 48px;
  background-size: cover;
  background-position: center;
  position: relative;
}

.blog-article-hero::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(123,33,232,0.25), rgba(91,24,176,0.1));
  mix-blend-mode: multiply;
}

.blog-article-body {
  font-size: 17px;
  line-height: 1.75;
  color: var(--text-secondary);
}

.blog-article-body p { margin-bottom: 22px; }

.blog-article-body h2 {
  font-size: 26px;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--text-primary);
  margin: 40px 0 16px;
}

.blog-article-body h3 {
  font-size: 20px;
  font-weight: 700;
  color: var(--text-primary);
  margin: 32px 0 12px;
}

.blog-article-body ul {
  padding-left: 24px;
  margin-bottom: 22px;
}

.blog-article-body li {
  margin-bottom: 8px;
  color: var(--text-secondary);
}

.blog-article-body strong { color: var(--text-primary); font-weight: 700; }

.blog-article-body blockquote {
  border-left: 3px solid var(--purple-primary);
  padding: 12px 0 12px 24px;
  margin: 28px 0;
  font-size: 19px;
  font-style: italic;
  color: var(--text-primary);
  background: rgba(123,33,232,0.05);
  border-radius: 0 8px 8px 0;
}

.blog-back-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  font-weight: 600;
  color: var(--purple-primary);
  text-decoration: none;
  margin-bottom: 32px;
  transition: transform 0.2s ease;
}

.blog-back-link:hover { transform: translateX(-3px); }

.blog-back-link svg { width: 14px; height: 14px; }

/* ---- Responsive ---- */
@media (max-width: 1024px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .cta-inner { flex-direction: column; align-items: flex-start; padding: 48px 40px; }
  .stats-bar { grid-template-columns: repeat(2, 1fr); }
  .resources-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
  .nav-links { display: none; }
  .resources-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 36px; }
  .footer-bottom { flex-direction: column; gap: 12px; text-align: center; }
  .cta-inner { padding: 40px 28px; }
  .cta-actions { flex-direction: column; width: 100%; }
  .cta-actions .btn-primary,
  .cta-actions .btn-secondary { width: 100%; justify-content: center; }
}

/* ---- Page visibility ----
   Items with [data-page] are nav/footer references to admin-managed pages.
   Visibility is enforced by /published-pages.css (a render-blocking
   stylesheet generated by the Express function) plus an inline
   `[data-page]{display:none!important}` rule in each public HTML <head>.
   No JS involved — the published list is decided before first paint, so
   unpublished items never flash and published ones don't pop in. */
