:root {
  /* Light theme (default) */
  --bg: #f7f9fc;
  --bg-alt: #edf1f8;
  --surface: #ffffff;
  --border: #d9e1ee;
  --text: #17202f;
  --text-muted: #5a6577;
  --accent: #2563eb;
  --accent-hover: #1d4ed8;
  --accent-soft: rgba(37, 99, 235, 0.1);
  --accent-glow: rgba(37, 99, 235, 0.22);
  --header-bg: rgba(247, 249, 252, 0.88);
  --img-shadow: rgba(15, 30, 60, 0.16);
  --font: 'Outfit', system-ui, sans-serif;
  --mono: 'JetBrains Mono', monospace;
  --radius: 12px;
  --radius-lg: 20px;
  --header-h: 72px;
  --transition: 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

html[data-theme='dark'] {
  --bg: #0a0e17;
  --bg-alt: #111827;
  --surface: #1a2234;
  --border: #2a3548;
  --text: #e8ecf4;
  --text-muted: #8b95a8;
  --accent: #3b82f6;
  --accent-hover: #2563eb;
  --accent-soft: rgba(59, 130, 246, 0.12);
  --accent-glow: rgba(59, 130, 246, 0.35);
  --header-bg: rgba(10, 14, 23, 0.88);
  --img-shadow: rgba(0, 0, 0, 0.35);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--header-h);
}

body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.65;
  transition: background 0.3s ease, color 0.3s ease;
}

.container { width: min(1080px, 92vw); margin-inline: auto; }

.skip-link {
  position: absolute;
  top: -100%;
  left: 1rem;
  z-index: 9999;
  padding: 0.5rem 1rem;
  background: var(--accent);
  color: #fff;
  border-radius: var(--radius);
  font-weight: 600;
  text-decoration: none;
}
.skip-link:focus { top: 1rem; }

/* Header */
.header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 100;
  height: var(--header-h);
  background: var(--header-bg);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid transparent;
  transition: border-color var(--transition);
}
.header.scrolled { border-bottom-color: var(--border); }

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
  gap: 1rem;
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--text);
  text-decoration: none;
  letter-spacing: -0.02em;
}
.logo-img {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
}
.logo-accent { color: var(--accent); }

.nav-links {
  display: flex;
  list-style: none;
  gap: 1.75rem;
}
.nav-links a {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.92rem;
  font-weight: 500;
  transition: color var(--transition);
}
.nav-links a:hover { color: var(--text); }

.lang-toggle {
  background: var(--surface);
  border: 1px solid var(--border);
  color: var(--text-muted);
  font-family: var(--mono);
  font-size: 0.78rem;
  padding: 0.4rem 0.75rem;
  border-radius: 999px;
  cursor: pointer;
  transition: border-color var(--transition), color var(--transition);
}
.lang-toggle:hover { border-color: var(--accent); color: var(--text); }

.theme-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.1rem;
  height: 2.1rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 50%;
  font-size: 0.95rem;
  line-height: 1;
  cursor: pointer;
  transition: border-color var(--transition), transform var(--transition);
}
.theme-toggle:hover { border-color: var(--accent); transform: rotate(15deg); }
.theme-toggle .icon-sun { display: none; }
.theme-toggle .icon-moon { display: block; }
html[data-theme='dark'] .theme-toggle .icon-sun { display: block; }
html[data-theme='dark'] .theme-toggle .icon-moon { display: none; }
.lang-toggle[data-lang="es"] .lang-active { color: var(--text-muted); font-weight: 400; }
.lang-toggle[data-lang="es"] .lang-inactive { color: var(--accent); font-weight: 600; }
.lang-toggle[data-lang="en"] .lang-active { color: var(--accent); font-weight: 600; }

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
}
.nav-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--text);
  transition: var(--transition);
}

/* Hero */
.hero {
  position: relative;
  min-height: 88vh;
  display: flex;
  align-items: center;
  padding: calc(var(--header-h) + 3rem) 0 4rem;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 70% 50% at 50% -10%, var(--accent-glow), transparent),
    radial-gradient(ellipse 40% 30% at 90% 80%, rgba(59, 130, 246, 0.08), transparent);
  pointer-events: none;
}

.hero-inner { position: relative; max-width: 720px; }

.hero-eyebrow {
  font-family: var(--mono);
  font-size: 0.78rem;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 1rem;
}

.hero-title {
  font-size: clamp(2.75rem, 7vw, 4.25rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.05;
  margin-bottom: 1.25rem;
}

.hero-subtitle {
  font-size: clamp(1.05rem, 2.5vw, 1.25rem);
  color: var(--text-muted);
  max-width: 580px;
  margin-bottom: 2rem;
}

.hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-bottom: 2.5rem;
}

.hero-trust {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}
.hero-trust li {
  font-family: var(--mono);
  font-size: 0.72rem;
  color: var(--text-muted);
  padding: 0.4rem 0.85rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 999px;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  padding: 0.75rem 1.5rem;
  font-family: var(--font);
  font-size: 0.95rem;
  font-weight: 600;
  text-decoration: none;
  border-radius: var(--radius);
  transition: var(--transition);
  border: 1px solid transparent;
}
.btn-primary {
  background: var(--accent);
  color: #fff;
}
.btn-primary:hover {
  background: var(--accent-hover);
  box-shadow: 0 8px 24px var(--accent-glow);
}
.btn-outline {
  background: transparent;
  color: var(--text);
  border-color: var(--border);
}
.btn-outline:hover { border-color: var(--accent); color: var(--accent); }
.btn-sm { padding: 0.55rem 1.1rem; font-size: 0.88rem; margin-top: 1.25rem; }

/* Sections */
.section { padding: 5rem 0; }
.section-alt { background: var(--bg-alt); }

.section-header { margin-bottom: 2.5rem; }
.section-header-center { text-align: center; }
.section-header-center .section-desc { margin: 0.75rem auto 0; max-width: 520px; }

.section-tag {
  display: inline-block;
  font-family: var(--mono);
  font-size: 0.72rem;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  margin-bottom: 0.75rem;
}

.section-title {
  font-size: clamp(1.75rem, 4vw, 2.35rem);
  font-weight: 700;
  letter-spacing: -0.02em;
}

.section-desc { color: var(--text-muted); }

/* About */
.about-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 2.5rem;
  align-items: start;
}

.about-text p {
  color: var(--text-muted);
  margin-bottom: 1rem;
}
.about-text p:last-child { margin-bottom: 0; }

.about-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.75rem;
}

.about-card h3 {
  font-size: 1rem;
  margin-bottom: 1.25rem;
  color: var(--text);
}

.facts div {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.65rem 0;
  border-bottom: 1px solid var(--border);
}
.facts div:last-child { border-bottom: none; }
.facts dt {
  font-size: 0.85rem;
  color: var(--text-muted);
}
.facts dd {
  font-size: 0.88rem;
  font-weight: 500;
  text-align: right;
}

/* Services */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.25rem;
}

.service-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.75rem;
  transition: border-color var(--transition), transform var(--transition);
}
.service-card:hover {
  border-color: rgba(59, 130, 246, 0.4);
  transform: translateY(-2px);
}

.service-icon {
  display: block;
  font-size: 1.5rem;
  color: var(--accent);
  margin-bottom: 1rem;
}

.service-card h3 {
  font-size: 1.05rem;
  margin-bottom: 0.65rem;
}

.service-card p {
  font-size: 0.9rem;
  color: var(--text-muted);
}

/* Accelerators */
.accelerators-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 1.5rem;
}

.accelerator-card {
  display: flex;
  flex-direction: column;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 2rem;
  transition: border-color var(--transition), transform var(--transition);
}

.accelerator-card:hover {
  border-color: rgba(59, 130, 246, 0.4);
  transform: translateY(-2px);
}

.accelerator-icon {
  display: block;
  font-size: 1.75rem;
  margin-bottom: 1rem;
}

.accelerator-card h3 {
  font-size: 1.2rem;
  margin-bottom: 0.75rem;
}

.accelerator-card > p {
  font-size: 0.925rem;
  color: var(--text-muted);
  margin-bottom: 1.25rem;
  line-height: 1.55;
}

.accelerator-features {
  list-style: none;
  margin-bottom: 1.5rem;
  flex: 1;
}

.accelerator-features li {
  font-size: 0.875rem;
  color: var(--text-muted);
  padding-left: 1.15rem;
  margin-bottom: 0.55rem;
  position: relative;
  line-height: 1.45;
}

.accelerator-features li::before {
  content: '▸';
  position: absolute;
  left: 0;
  color: var(--accent);
}

.accelerator-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
}

.accelerator-tags span {
  font-family: var(--mono);
  font-size: 0.68rem;
  padding: 0.3rem 0.65rem;
  background: var(--accent-soft);
  color: var(--accent);
  border-radius: 999px;
  border: 1px solid rgba(59, 130, 246, 0.2);
}

.accelerators-note {
  text-align: center;
  margin-top: 2.5rem;
  font-size: 0.925rem;
  color: var(--text-muted);
}

.accelerators-note a {
  display: inline-block;
  margin-top: 0.5rem;
  color: var(--accent);
  font-weight: 600;
  text-decoration: none;
}

.accelerators-note a:hover {
  text-decoration: underline;
}

/* Products page */
.product-hero {
  position: relative;
  padding: calc(var(--header-h) + 4rem) 0 4rem;
  overflow: hidden;
}

.product-hero .hero-inner {
  position: relative;
  text-align: center;
}

.product-hero .hero-title {
  font-size: clamp(2rem, 5vw, 3.2rem);
}

.nav-links .nav-active {
  color: var(--accent);
}

.product-head {
  margin-bottom: 2.5rem;
}

.product-head .accelerator-icon {
  display: inline-block;
  margin: 0 0 0.75rem;
}

.product-badge {
  display: inline-block;
  font-family: var(--mono);
  font-size: 0.68rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 0.25rem 0.7rem;
  margin-right: 0.6rem;
  background: var(--accent);
  color: #fff;
  border-radius: 999px;
  vertical-align: middle;
}

.product-tagline {
  color: var(--text-muted);
  font-size: 1.05rem;
  margin-top: 0.5rem;
}

.product-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 2.5rem;
  align-items: start;
}

@media (max-width: 860px) {
  .product-grid { grid-template-columns: 1fr; }
}

.product-grid--solo { grid-template-columns: 1fr; }
.product-desc--full { max-width: 900px; }

.product-desc p {
  color: var(--text-muted);
  margin-bottom: 1rem;
  line-height: 1.7;
}

.product-desc h3 {
  margin: 1.5rem 0 0.75rem;
  font-size: 1.05rem;
}

.product-benefits {
  list-style: none;
  margin-bottom: 1.5rem;
}

.product-benefits li {
  font-size: 0.925rem;
  color: var(--text-muted);
  padding-left: 1.35rem;
  margin-bottom: 0.6rem;
  position: relative;
  line-height: 1.5;
}

.product-benefits li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: var(--accent);
  font-weight: 700;
}

.product-gallery {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
}

.product-gallery h3 {
  font-size: 0.95rem;
  margin-bottom: 1rem;
}

.gallery-grid {
  display: grid;
  gap: 0.9rem;
}

.gallery-slot {
  display: flex;
  align-items: center;
  justify-content: center;
  aspect-ratio: 16 / 9;
  background: var(--bg-alt);
  border: 1px dashed var(--border);
  border-radius: var(--radius);
  overflow: hidden;
}

.gallery-slot span {
  font-size: 0.8rem;
  color: var(--text-muted);
  font-family: var(--mono);
}

.gallery-slot a {
  display: block;
  width: 100%;
  height: 100%;
}

.gallery-slot img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top left;
  display: block;
  transition: transform 0.25s ease;
}

.gallery-slot a:hover img {
  transform: scale(1.03);
}

.gallery-slot:has(img) {
  border-style: solid;
}

/* ---------------- fullscreen lightbox ---------------- */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(6, 10, 20, 0.94);
  backdrop-filter: blur(4px);
}

.lightbox[hidden] {
  display: none;
}

.lightbox-figure {
  max-width: 94vw;
  max-height: 90vh;
  margin: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
}

.lightbox-img {
  max-width: 94vw;
  max-height: 82vh;
  object-fit: contain;
  border-radius: var(--radius);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.6);
}

.lightbox-caption {
  color: rgba(255, 255, 255, 0.75);
  font-size: 0.85rem;
  text-align: center;
  max-width: 80vw;
}

.lightbox-btn {
  position: absolute;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2.75rem;
  height: 2.75rem;
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
  font-size: 1.4rem;
  line-height: 1;
  cursor: pointer;
  transition: background 0.2s ease;
}

.lightbox-btn:hover {
  background: rgba(255, 255, 255, 0.22);
}

.lightbox-close {
  top: 1.25rem;
  right: 1.25rem;
  font-size: 1.8rem;
}

.lightbox-prev {
  left: 1.25rem;
  top: 50%;
  transform: translateY(-50%);
}

.lightbox-next {
  right: 1.25rem;
  top: 50%;
  transform: translateY(-50%);
}

.lightbox-counter {
  position: absolute;
  bottom: 1.25rem;
  left: 50%;
  transform: translateX(-50%);
  color: rgba(255, 255, 255, 0.7);
  font-family: var(--mono);
  font-size: 0.8rem;
}

@media (max-width: 640px) {
  .lightbox-prev { left: 0.5rem; }
  .lightbox-next { right: 0.5rem; }
}

/* Why */
.why-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 1.5rem;
}

.why-item {
  padding: 1.5rem;
  border-left: 3px solid var(--accent);
  background: var(--surface);
  border-radius: 0 var(--radius) var(--radius) 0;
}

.why-item h3 {
  font-size: 1rem;
  margin-bottom: 0.5rem;
}

.why-item p {
  font-size: 0.9rem;
  color: var(--text-muted);
}

/* Team */
.team-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
  max-width: 960px;
  margin: 0 auto;
}

.team-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 2rem 2.25rem;
  height: 100%;
}

.team-info h3 {
  font-size: 1.5rem;
  margin-bottom: 0.35rem;
}

.team-role {
  color: var(--accent);
  font-size: 0.95rem;
  margin-bottom: 1rem;
}

.team-info > p {
  color: var(--text-muted);
  font-size: 0.95rem;
  margin-bottom: 1rem;
}

.team-creds {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 0.5rem;
}
.team-creds li {
  font-family: var(--mono);
  font-size: 0.72rem;
  padding: 0.35rem 0.75rem;
  background: var(--accent-soft);
  color: var(--accent);
  border-radius: 999px;
}

/* Contact */
.contact-box {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 3rem 2rem;
}

.contact-desc {
  color: var(--text-muted);
  max-width: 480px;
  margin: 0.75rem auto 0;
}

.contact-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1rem;
  margin: 2rem 0 1.5rem;
}

.contact-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1.25rem;
  background: var(--bg-alt);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  color: var(--text);
  text-decoration: none;
  font-size: 0.92rem;
  transition: border-color var(--transition);
}
.contact-link:hover { border-color: var(--accent); }
.contact-link span:first-child { opacity: 0.7; }

.contact-cta {
  display: flex;
  justify-content: center;
  margin-bottom: 1.5rem;
}

.contact-note {
  text-align: center;
  font-size: 0.82rem;
  color: var(--text-muted);
  max-width: 560px;
  margin: 0 auto;
  padding-top: 1rem;
  border-top: 1px solid var(--border);
}

/* Footer */
.footer {
  padding: 2rem 0;
  border-top: 1px solid var(--border);
}
.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
  font-size: 0.85rem;
  color: var(--text-muted);
}
.footer-inner a {
  color: var(--accent);
  text-decoration: none;
}
.footer-inner a:hover { text-decoration: underline; }

/* Mobile */
@media (max-width: 768px) {
  .nav-toggle { display: flex; }
  .nav-links {
    position: fixed;
    top: var(--header-h);
    left: 0;
    right: 0;
    flex-direction: column;
    background: var(--bg);
    border-bottom: 1px solid var(--border);
    padding: 1.5rem 2rem 2rem;
    gap: 1.25rem;
    transform: translateY(-120%);
    opacity: 0;
    pointer-events: none;
    transition: var(--transition);
  }
  .nav-links.open {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
  }
  .nav-toggle.open span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
  .nav-toggle.open span:nth-child(2) { opacity: 0; }
  .nav-toggle.open span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }
  .about-grid { grid-template-columns: 1fr; }
  .hero-trust { flex-direction: column; align-items: flex-start; }
}


/* Certifications */
.certs-team-member {
  margin-bottom: 0;
}
.certs-team-member + .certs-team-member {
  margin-top: 3rem;
  padding-top: 3rem;
  border-top: 1px solid var(--border);
}
.certs-member {
  text-align: center;
  margin-bottom: 2.5rem;
}
.certs-member-name {
  font-size: 1.25rem;
  margin-bottom: 0.35rem;
}
.certs-member-sub {
  font-family: var(--mono);
  font-size: 0.78rem;
  color: var(--accent);
}
.cert-badges-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: 1.75rem;
}
.cert-badge-item { text-align: center; transition: transform var(--transition); }
.cert-badge-item:hover { transform: translateY(-4px); }
.cert-badge-link { display: block; margin-bottom: 0.75rem; }
.cert-badge-link img {
  width: 100%;
  max-width: 120px;
  height: auto;
  margin-inline: auto;
  filter: drop-shadow(0 4px 12px var(--img-shadow));
  transition: transform var(--transition);
}
.cert-badge-item:hover .cert-badge-link img { transform: scale(1.05); }
.cert-badge-name {
  font-size: 0.82rem;
  font-weight: 500;
  color: var(--text-muted);
  line-height: 1.35;
}
.certs-verify { text-align: center; margin-top: 2.5rem; }
.certs-other {
  margin-top: 2.5rem;
  padding-top: 2rem;
  border-top: 1px solid var(--border);
}
.certs-other-title {
  text-align: center;
  font-size: 0.82rem;
  font-family: var(--mono);
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 1.5rem;
  font-weight: 500;
}
.certs-other-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1.5rem;
}
.cert-other-item {
  text-align: center;
  max-width: 300px;
  transition: transform var(--transition);
}
.cert-other-item:hover {
  transform: translateY(-4px);
}
.cert-other-link {
  display: block;
  line-height: 0;
}
.cert-other-link img {
  width: 100%;
  max-width: 280px;
  height: auto;
  border-radius: var(--radius);
  box-shadow: 0 10px 28px var(--img-shadow);
  transition: box-shadow var(--transition);
}
.cert-other-item:hover .cert-other-link img {
  box-shadow: 0 14px 36px rgba(59, 130, 246, 0.2);
}
.cert-other-name {
  font-size: 0.82rem;
  font-weight: 500;
  color: var(--text);
  line-height: 1.35;
  margin-top: 0.85rem;
}
.certs-verify a {
  font-family: var(--mono);
  font-size: 0.85rem;
  color: var(--accent);
  text-decoration: none;
}
.certs-verify a:hover { text-decoration: underline; }
@media (max-width: 768px) {
  .cert-badges-grid { grid-template-columns: repeat(auto-fill, minmax(130px, 1fr)); gap: 1.25rem; }
}

/* ===================== Blog ===================== */
.breadcrumb {
  font-size: 0.82rem;
  font-family: var(--mono);
  color: var(--text-muted);
  margin-bottom: 1.5rem;
}
.breadcrumb a { color: var(--accent); text-decoration: none; }
.breadcrumb a:hover { text-decoration: underline; }
.breadcrumb span { margin: 0 0.4rem; opacity: 0.6; }

/* Blog listing */
.blog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(310px, 1fr));
  gap: 1.75rem;
}
.blog-card {
  display: flex;
  flex-direction: column;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.6rem 1.6rem 1.4rem;
  text-decoration: none;
  color: inherit;
  transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition);
}
.blog-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 36px var(--img-shadow);
  border-color: var(--accent);
}
.blog-card__tag {
  align-self: flex-start;
  font-family: var(--mono);
  font-size: 0.68rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--accent);
  background: var(--accent-soft);
  padding: 0.25rem 0.7rem;
  border-radius: 999px;
  margin-bottom: 1rem;
}
.blog-card__title {
  font-size: 1.2rem;
  line-height: 1.35;
  margin-bottom: 0.6rem;
}
.blog-card__excerpt {
  font-size: 0.92rem;
  color: var(--text-muted);
  line-height: 1.6;
  flex: 1 1 auto;
}
.blog-card__more {
  margin-top: 1.1rem;
  font-family: var(--mono);
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--accent);
}

/* Article */
.article {
  padding: calc(var(--header-h) + 2.5rem) 0 4rem;
}
.article-inner { width: min(760px, 92vw); margin-inline: auto; }
.article-header { margin-bottom: 2.5rem; }
.article-title {
  font-size: clamp(1.9rem, 4.5vw, 2.7rem);
  line-height: 1.2;
  margin: 0.6rem 0 0.8rem;
}
.article-meta {
  font-family: var(--mono);
  font-size: 0.8rem;
  color: var(--text-muted);
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  align-items: center;
}
.article-meta span { display: inline-flex; align-items: center; }
.article-lead {
  font-size: 1.15rem;
  color: var(--text);
  line-height: 1.7;
  margin: 1.5rem 0;
}
.article-body { font-size: 1.02rem; }
.article-body h2 {
  font-size: 1.5rem;
  margin: 2.4rem 0 0.9rem;
  line-height: 1.3;
}
.article-body h3 {
  font-size: 1.15rem;
  margin: 1.8rem 0 0.7rem;
}
.article-body p {
  color: var(--text-muted);
  margin-bottom: 1.1rem;
  line-height: 1.75;
}
.article-body ul, .article-body ol {
  color: var(--text-muted);
  margin: 0 0 1.2rem 1.3rem;
  line-height: 1.7;
}
.article-body li { margin-bottom: 0.5rem; }
.article-body a { color: var(--accent); text-decoration: none; }
.article-body a:hover { text-decoration: underline; }
.article-body strong { color: var(--text); }
.article-body pre {
  background: var(--bg-alt);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.1rem 1.25rem;
  overflow-x: auto;
  margin: 0 0 1.4rem;
}
.article-body pre code {
  font-family: var(--mono);
  font-size: 0.83rem;
  line-height: 1.6;
  color: var(--text);
  background: none;
  padding: 0;
}
.article-body code {
  font-family: var(--mono);
  font-size: 0.85em;
  background: var(--accent-soft);
  color: var(--accent);
  padding: 0.1rem 0.35rem;
  border-radius: 5px;
}
.article-callout {
  background: var(--accent-soft);
  border-left: 3px solid var(--accent);
  border-radius: 0 var(--radius) var(--radius) 0;
  padding: 1rem 1.25rem;
  margin: 0 0 1.4rem;
}
.article-callout p { color: var(--text); margin: 0; }

/* FAQ */
.faq-item {
  border-bottom: 1px solid var(--border);
  padding: 1.1rem 0;
}
.faq-item h3 { margin: 0 0 0.5rem; font-size: 1.05rem; }
.faq-item p { margin: 0; }

/* Article CTA / related */
.article-cta {
  margin-top: 2.5rem;
  padding: 1.75rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  text-align: center;
}
.article-cta h2 { margin: 0 0 0.6rem; }
.article-cta p { color: var(--text-muted); margin: 0 auto 1.25rem; max-width: 480px; }
.article-related {
  margin-top: 2.5rem;
  padding-top: 1.75rem;
  border-top: 1px solid var(--border);
}
.article-related h2 { font-size: 1.2rem; margin-bottom: 1rem; }
.article-related ul { list-style: none; margin: 0; padding: 0; }
.article-related li { margin-bottom: 0.6rem; }
.article-related a { color: var(--accent); text-decoration: none; font-weight: 500; }
.article-related a:hover { text-decoration: underline; }
