/* ================================================================
   AZTEC STUDIO · Sistema de diseño · aztec.css (páginas estáticas)
   Spatial dark theme · Inter Tight + Newsreader + JetBrains Mono
   ================================================================ */

/* =================== RESET & BASE =================== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: 'Inter Tight', system-ui, sans-serif;
  background: #050507;
  color: #F5F5F7;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
a { text-decoration: none; color: inherit; }
img { max-width: 100%; }

/* =================== CSS VARIABLES =================== */
:root {
  --void: #050507;
  --space: #0A0A0F;
  --surface: #14141C;
  --surface-2: #1C1C26;
  --line: rgba(255,255,255,0.06);
  --line-2: rgba(255,255,255,0.12);
  --line-3: rgba(255,255,255,0.2);
  --text: #F5F5F7;
  --text-2: #B4B4C0;
  --text-3: #7A7A88;
  --text-4: #4A4A58;
  --violet: #A78BFA;
  --cyan: #67E8F9;
  --emerald: #6EE7B7;
  --amber: #FCD34D;
  --rose: #FDA4AF;
  --red: #FB7185;
}

/* =================== AMBIENT BACKGROUND =================== */
.ambient {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
}
.orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(120px);
  opacity: 0.3;
  mix-blend-mode: screen;
}
.orb-1 {
  width: 700px; height: 700px;
  background: #4C1D95;
  top: -200px; left: -200px;
  animation: float 30s ease-in-out infinite;
}
.orb-2 {
  width: 800px; height: 800px;
  background: #0E7490;
  top: 40%; right: -300px;
  animation: float 35s ease-in-out infinite reverse;
}
.orb-3 {
  width: 600px; height: 600px;
  background: #065F46;
  bottom: -100px; left: 30%;
  animation: float 40s ease-in-out infinite 5s;
}
@keyframes float {
  0%, 100% { transform: translate(0,0) scale(1); }
  50% { transform: translate(40px,60px) scale(1.05); }
}
.grid-overlay {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 1;
  background-image: radial-gradient(circle at 1px 1px, rgba(255,255,255,0.03) 1px, transparent 0);
  background-size: 32px 32px;
  mask-image: radial-gradient(ellipse 100% 60% at 50% 40%, black 40%, transparent 100%);
  -webkit-mask-image: radial-gradient(ellipse 100% 60% at 50% 40%, black 40%, transparent 100%);
}
.content { position: relative; z-index: 2; }

/* =================== TYPOGRAPHY =================== */
.newsreader {
  font-family: 'Newsreader', Georgia, serif;
  font-style: italic;
  font-weight: 300;
}
.nr-violet { color: var(--violet); }
.nr-cyan   { color: var(--cyan); }
.nr-emerald { color: var(--emerald); }
.nr-amber  { color: var(--amber); }
.nr-rose   { color: var(--rose); }

/* =================== NAV =================== */
.nav-wrapper {
  position: sticky;
  top: 0;
  z-index: 100;
  padding: 14px 0;
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  background: rgba(5,5,7,0.7);
  border-bottom: 1px solid var(--line);
}
.nav {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.brand { display: flex; align-items: center; gap: 8px; }
.brand-name {
  font-size: 17px;
  font-weight: 700;
  letter-spacing: -0.03em;
  color: var(--text);
}
.s-studio { color: var(--violet); }
.menu {
  display: flex;
  align-items: center;
  gap: 4px;
  flex: 1;
  justify-content: center;
}
.menu a {
  font-size: 13.5px;
  font-weight: 500;
  color: var(--text-3);
  padding: 6px 12px;
  border-radius: 8px;
  transition: all .2s;
}
.menu a:hover, .menu a.active { color: var(--text); background: rgba(255,255,255,0.05); }
.nav-actions { display: flex; align-items: center; gap: 8px; flex-shrink: 0; }
.btn-cta {
  font-size: 13px;
  font-weight: 600;
  color: var(--violet);
  background: rgba(167,139,250,0.1);
  border: 1px solid rgba(167,139,250,0.3);
  padding: 8px 16px;
  border-radius: 10px;
  transition: all .2s;
  white-space: nowrap;
}
.btn-cta:hover { background: rgba(167,139,250,0.18); border-color: rgba(167,139,250,0.5); }
.nav-hamburger { display: none; }

@media (max-width: 900px) {
  .nav { padding: 0 20px; position: relative; }
  .nav-hamburger {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    cursor: pointer;
    padding: 8px;
    background: none;
    border: none;
    flex-shrink: 0;
  }
  .nav-hamburger span {
    display: block;
    width: 20px;
    height: 2px;
    background: var(--text);
    border-radius: 2px;
  }
  .menu { display: none !important; }
  .menu.nav-open {
    display: flex !important;
    flex-direction: column;
    align-items: stretch;
    position: absolute;
    top: 100%;
    left: -20px;
    right: -20px;
    background: rgba(5,5,7,0.98);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    border-bottom: 1px solid var(--line);
    padding: 8px 16px 16px;
    z-index: 99;
    gap: 2px;
  }
  .menu.nav-open > a {
    padding: 10px 12px;
    border-radius: 8px;
    font-size: 15px;
    color: var(--text-2);
  }
  .menu.nav-open > a:hover { color: var(--text); }
  .menu.nav-open .nav-item {
    flex-direction: column;
    align-items: stretch;
  }
  .menu.nav-open .nav-item > a {
    padding: 10px 12px;
    font-size: 15px;
    font-weight: 600;
    color: var(--text);
    border-radius: 8px;
  }
  .menu.nav-open .nav-dropdown {
    position: static;
    opacity: 1;
    visibility: visible;
    transform: none;
    box-shadow: none;
    border: none;
    background: none;
    padding: 0 0 4px 8px;
    min-width: auto;
  }
  .menu.nav-open .nav-dd-label,
  .menu.nav-open .nav-dd-divider { display: none; }
  .menu.nav-open .nav-dropdown a {
    font-size: 13px;
    padding: 5px 10px;
    color: var(--text-3);
  }
}

/* =================== NAV DROPDOWN =================== */
.nav-item {
  position: relative;
  display: flex;
  align-items: center;
}
.nav-dropdown {
  position: absolute;
  top: calc(100% + 10px);
  left: 50%;
  transform: translateX(-50%) translateY(-4px);
  opacity: 0;
  visibility: hidden;
  transition: opacity .18s ease, transform .18s ease, visibility .18s;
  background: rgba(10,10,15,0.97);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 12px;
  padding: 6px;
  min-width: 230px;
  z-index: 200;
  box-shadow: 0 16px 48px rgba(0,0,0,0.55);
}
/* Puente invisible que cubre el gap entre nav-item y dropdown
   para que el hover no se interrumpa al cruzar los 10px de separación */
.nav-item::after {
  content: '';
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  height: 14px;
  background: transparent;
}
.nav-item:hover .nav-dropdown,
.nav-item.nav-item--open .nav-dropdown {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(0);
}
.nav-dd-label {
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-4);
  padding: 8px 12px 4px;
}
.nav-dd-divider {
  height: 1px;
  background: var(--line);
  margin: 4px 4px;
}
.nav-dropdown a {
  display: block;
  padding: 7px 12px;
  font-size: 13px;
  font-weight: 500;
  color: var(--text-2);
  border-radius: 7px;
  transition: color .12s, background .12s;
  white-space: nowrap;
}
.nav-dropdown a:hover {
  color: var(--text);
  background: rgba(255,255,255,0.06);
}

/* =================== PAGE HEADER =================== */
.page-header {
  max-width: 1280px;
  margin: 0 auto;
  padding: 60px 32px 48px;
  border-bottom: 1px solid var(--line);
}
.page-breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  color: var(--text-3);
  letter-spacing: 0.04em;
  margin-bottom: 24px;
}
.page-breadcrumb a { color: var(--text-3); transition: color .2s; }
.page-breadcrumb a:hover { color: var(--text); }
.page-breadcrumb .sep { opacity: 0.4; }
.page-breadcrumb .current { color: var(--text-2); }
.page-eyebrow {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  color: var(--violet);
  letter-spacing: 0.22em;
  text-transform: uppercase;
  margin-bottom: 16px;
  font-weight: 500;
}
.page-eyebrow-violet { color: var(--violet); }
.page-eyebrow-cyan   { color: var(--cyan); }
.page-eyebrow-emerald { color: var(--emerald); }
.page-eyebrow-amber  { color: var(--amber); }
.page-eyebrow-rose   { color: var(--rose); }
.page-title {
  font-size: clamp(36px, 5vw, 64px);
  font-weight: 800;
  letter-spacing: -0.035em;
  line-height: 1.08;
  color: var(--text);
  margin-bottom: 20px;
  max-width: 900px;
}
.page-deck {
  font-size: clamp(15px, 1.8vw, 18px);
  line-height: 1.65;
  color: var(--text-2);
  max-width: 720px;
  margin-bottom: 32px;
}
.page-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 24px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  color: var(--text-3);
  letter-spacing: 0.04em;
}
.page-meta span { display: flex; align-items: center; gap: 4px; }
@media (max-width: 768px) {
  .page-header { padding: 40px 20px 36px; }
}

/* =================== SECTIONS =================== */
.cap-section {
  max-width: 1280px;
  margin: 0 auto;
  padding: 64px 32px;
  border-bottom: 1px solid var(--line);
}
.cap-section:last-of-type { border-bottom: none; }
.cap-section-title {
  font-size: clamp(28px, 3.5vw, 44px);
  font-weight: 700;
  letter-spacing: -0.03em;
  color: var(--text);
  margin-bottom: 24px;
  line-height: 1.12;
}
@media (max-width: 768px) {
  .cap-section { padding: 48px 20px; }
}

/* =================== CARD GRIDS =================== */
.card-grid-2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}
.card-grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
.card-grid-4 {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}
@media (max-width: 1100px) {
  .card-grid-4 { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 860px) {
  .card-grid-3 { grid-template-columns: repeat(2, 1fr); }
  .card-grid-2 { grid-template-columns: 1fr; }
}
@media (max-width: 600px) {
  .card-grid-3, .card-grid-4 { grid-template-columns: 1fr; }
}

/* =================== FEATURE CARD =================== */
.feature-card {
  background: rgba(20,20,28,0.6);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 28px;
  transition: border-color .25s, transform .25s;
}
.feature-card:hover {
  border-color: var(--line-2);
  transform: translateY(-2px);
}
.feature-card-icon {
  font-size: 28px;
  margin-bottom: 16px;
  width: 52px;
  height: 52px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255,255,255,0.04);
  border-radius: 12px;
}
.feature-card-title {
  font-size: 15px;
  font-weight: 700;
  color: var(--text);
  letter-spacing: -0.015em;
  margin-bottom: 10px;
  line-height: 1.35;
}
.feature-card-desc {
  font-size: 13.5px;
  line-height: 1.65;
  color: var(--text-2);
}

/* =================== AGENT CARD =================== */
.agent-card {
  background: rgba(20,20,28,0.6);
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 28px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  min-height: 280px;
  transition: border-color .25s, transform .25s;
}
.agent-card:hover { border-color: var(--line-2); transform: translateY(-2px); }
.agent-card-head { display: flex; align-items: center; gap: 14px; }
.agent-card-avatar {
  width: 48px;
  height: 48px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  font-weight: 800;
  color: #fff;
  flex-shrink: 0;
  background: linear-gradient(135deg, var(--violet), #7C3AED);
}
.av-violet { background: linear-gradient(135deg, #A78BFA, #7C3AED); }
.av-cyan   { background: linear-gradient(135deg, #67E8F9, #0891B2); }
.av-emerald { background: linear-gradient(135deg, #6EE7B7, #059669); }
.av-amber  { background: linear-gradient(135deg, #FCD34D, #D97706); }
.av-rose   { background: linear-gradient(135deg, #FDA4AF, #E11D48); }
.agent-card-name {
  font-size: 18px;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--text);
  line-height: 1.2;
}
.agent-card-tag {
  font-family: 'JetBrains Mono', monospace;
  font-size: 10.5px;
  color: var(--text-3);
  letter-spacing: 0.04em;
  margin-top: 2px;
}
.agent-card-desc {
  font-size: 13.5px;
  line-height: 1.65;
  color: var(--text-2);
  flex: 1;
}
.agent-card-features {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.agent-card-feat {
  font-size: 12.5px;
  color: var(--text-3);
  padding: 6px 10px;
  background: rgba(255,255,255,0.03);
  border-radius: 8px;
  border: 1px solid var(--line);
  display: flex;
  align-items: center;
  gap: 8px;
}
.agent-card-feat::before {
  content: '→';
  color: var(--violet);
  font-size: 11px;
  flex-shrink: 0;
}
.agent-card-link {
  font-size: 13px;
  font-weight: 600;
  color: var(--violet);
  display: inline-flex;
  align-items: center;
  gap: 4px;
  margin-top: auto;
  transition: color .2s, gap .2s;
}
.agent-card-link:hover { color: #C4B5FD; gap: 8px; }

/* =================== CASES DISCLAIMER =================== */
.cases-disclaimer {
  font-size: 12.5px;
  color: var(--text-3);
  line-height: 1.6;
  padding: 16px 20px;
  background: rgba(255,255,255,0.02);
  border: 1px solid var(--line);
  border-radius: 10px;
  max-width: 800px;
}

/* =================== CTA BANNER =================== */
.cta-banner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 64px 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.cta-banner-title {
  font-size: clamp(22px, 3vw, 36px);
  font-weight: 700;
  letter-spacing: -0.025em;
  color: var(--text);
  line-height: 1.2;
  margin-bottom: 12px;
}
.cta-banner-title em { font-family: 'Newsreader', serif; font-style: italic; font-weight: 300; }
.cta-banner-text {
  font-size: 15px;
  color: var(--text-2);
  line-height: 1.6;
  max-width: 480px;
}
.cta-banner-actions {
  display: flex;
  flex-direction: column;
  gap: 10px;
  flex-shrink: 0;
}
.btn-primary-lg {
  font-size: 15px;
  font-weight: 700;
  color: #fff;
  background: var(--violet);
  padding: 14px 28px;
  border-radius: 12px;
  transition: all .2s;
  white-space: nowrap;
  text-align: center;
}
.btn-primary-lg:hover { background: #B49BFB; transform: translateY(-1px); }
.btn-secondary-lg {
  font-size: 14px;
  font-weight: 600;
  color: var(--text-2);
  background: rgba(255,255,255,0.05);
  border: 1px solid var(--line-2);
  padding: 13px 28px;
  border-radius: 12px;
  transition: all .2s;
  text-align: center;
  white-space: nowrap;
}
.btn-secondary-lg:hover { color: var(--text); background: rgba(255,255,255,0.08); }
@media (max-width: 860px) {
  .cta-banner { flex-direction: column; align-items: flex-start; padding: 48px 20px; }
  .cta-banner-actions { flex-direction: row; flex-wrap: wrap; }
}

/* =================== CONTENT (article + TOC) =================== */
.content-area {
  max-width: 1280px;
  margin: 0 auto;
  padding: 60px 32px;
}
.content-two-col {
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: 64px;
  align-items: start;
}
.content-toc {
  position: sticky;
  top: 96px;
  padding-top: 4px;
}
.toc-label {
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px;
  color: var(--text-4);
  letter-spacing: 0.18em;
  text-transform: uppercase;
  font-weight: 600;
  margin-bottom: 12px;
}
.toc-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.toc-list a {
  display: block;
  padding: 8px 12px;
  border-radius: 8px;
  font-size: 13px;
  color: var(--text-2);
  border-left: 2px solid transparent;
  transition: all .2s;
}
.toc-list a:hover { background: rgba(255,255,255,0.03); color: var(--text); border-left-color: var(--line-2); }
.toc-list a.active { background: rgba(167,139,250,0.08); color: var(--violet); border-left-color: var(--violet); }
.article {
  max-width: 820px;
  font-size: 16px;
  line-height: 1.7;
  color: var(--text-2);
}
.article h2 {
  font-size: clamp(24px, 2.5vw, 36px);
  font-weight: 700;
  letter-spacing: -0.025em;
  color: var(--text);
  margin: 64px 0 20px;
  line-height: 1.15;
  scroll-margin-top: 96px;
  display: flex;
  align-items: baseline;
  gap: 16px;
}
.article h2:first-child { margin-top: 0; }
.article h3 { font-size: 19px; font-weight: 600; color: var(--text); margin: 36px 0 12px; }
.article p { margin-bottom: 18px; }
.article p strong, .article li strong { color: var(--text); font-weight: 600; }
.article a { color: var(--cyan); text-decoration: underline; text-decoration-color: rgba(103,232,249,0.3); text-underline-offset: 3px; }
.article a:hover { text-decoration-color: var(--cyan); }
.article ul, .article ol { padding-left: 24px; margin-bottom: 20px; }
.article li { margin-bottom: 10px; }
.article li::marker { color: var(--violet); }
.num {
  font-family: 'Newsreader', serif;
  font-style: italic;
  font-size: 0.8em;
  color: var(--text-4);
  font-weight: 300;
}
@media (max-width: 960px) {
  .content-two-col { grid-template-columns: 1fr; gap: 32px; }
  .content-toc { position: static; }
  .content-area { padding: 40px 20px; }
}

/* =================== CALLOUTS =================== */
.callout {
  padding: 20px 24px;
  border-radius: 14px;
  margin: 28px 0;
  background: rgba(167,139,250,0.06);
  border: 1px solid rgba(167,139,250,0.2);
  font-size: 14.5px;
  line-height: 1.6;
  color: var(--text-2);
}
.callout-cyan    { background: rgba(103,232,249,0.05); border-color: rgba(103,232,249,0.18); }
.callout-amber   { background: rgba(252,211,77,0.05); border-color: rgba(252,211,77,0.18); }
.callout-emerald { background: rgba(110,231,183,0.05); border-color: rgba(110,231,183,0.2); }
.callout-label {
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  margin-bottom: 10px;
  font-weight: 600;
  color: var(--violet);
}
.callout-cyan .callout-label    { color: var(--cyan); }
.callout-amber .callout-label   { color: var(--amber); }
.callout-emerald .callout-label { color: var(--emerald); }
.callout p:last-child { margin-bottom: 0; }

/* =================== FOOTER =================== */
.footer {
  border-top: 1px solid var(--line);
  margin-top: 80px;
  padding: 56px 0 32px;
  position: relative;
  z-index: 2;
}
.footer-inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 32px;
}
.footer-top {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr 1fr;
  gap: 48px;
  margin-bottom: 56px;
}
.footer-brand {
  font-size: 20px;
  font-weight: 800;
  letter-spacing: -0.03em;
  color: var(--text);
  margin-bottom: 10px;
}
.footer-brand-text {
  font-size: 13px;
  color: var(--text-3);
  line-height: 1.6;
  margin-bottom: 16px;
  max-width: 280px;
}
.footer-contact {
  font-size: 12.5px;
  color: var(--text-3);
  line-height: 1.7;
  font-family: 'JetBrains Mono', monospace;
}
.footer-col { display: flex; flex-direction: column; gap: 8px; }
.footer-col-title {
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px;
  color: var(--text-4);
  letter-spacing: 0.18em;
  text-transform: uppercase;
  font-weight: 600;
  margin-bottom: 4px;
}
.footer-col a {
  font-size: 13px;
  color: var(--text-3);
  transition: color .2s;
  line-height: 1.5;
}
.footer-col a:hover { color: var(--text); }
.footer-bottom {
  padding-top: 24px;
  border-top: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-family: 'JetBrains Mono', monospace;
  font-size: 10.5px;
  color: var(--text-3);
  letter-spacing: 0.04em;
}
@media (max-width: 1000px) {
  .footer-top { grid-template-columns: 1fr 1fr; gap: 32px; }
  .footer-inner { padding: 0 20px; }
}
@media (max-width: 600px) {
  .footer-top { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; gap: 8px; text-align: center; }
  .footer { margin-top: 48px; }
}

/* =================== WHATSAPP FLOAT =================== */
.wa-float {
  position: fixed;
  bottom: 24px;
  right: 24px;
  background: #25D366;
  color: #fff;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 20px rgba(37,211,102,0.35);
  z-index: 200;
  transition: all .2s;
}
.wa-float:hover { background: #1DB954; transform: translateY(-2px); box-shadow: 0 6px 24px rgba(37,211,102,0.45); }
@media (max-width: 600px) { .wa-float-desktop { display: none; } }

/* =================== UTILITY =================== */
.active { color: var(--text) !important; }

/* =================== BLOG INDEX =================== */
.blog-hero {
  max-width: 860px;
  margin: 80px auto 60px;
  padding: 0 32px;
  text-align: center;
}
.blog-eyebrow {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  color: var(--text-4);
  letter-spacing: 0.08em;
  margin-bottom: 20px;
}
.blog-title {
  font-size: clamp(32px, 5vw, 52px);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.08;
  color: var(--text);
  margin: 0 0 20px;
}
.blog-deck {
  font-size: 17px;
  color: var(--text-2);
  line-height: 1.65;
  margin: 0;
}
.blog-grid {
  max-width: 1120px;
  margin: 0 auto 80px;
  padding: 0 32px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.blog-card {
  display: flex;
  flex-direction: column;
  border: 1px solid var(--line);
  border-radius: 16px;
  overflow: hidden;
  background: rgba(255,255,255,0.02);
  text-decoration: none;
  transition: border-color .2s, transform .2s, box-shadow .2s;
}
.blog-card:hover {
  border-color: var(--line-2);
  transform: translateY(-3px);
  box-shadow: 0 16px 48px rgba(0,0,0,0.3);
}
.blog-card.featured {
  grid-column: 1 / -1;
  flex-direction: row;
}
.blog-card-img {
  position: relative;
  background: rgba(255,255,255,0.03);
  min-height: 160px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  flex-shrink: 0;
}
.blog-card.featured .blog-card-img {
  width: 280px;
  min-height: unset;
}
.blog-card-img-pattern {
  position: absolute;
  inset: 0;
  background-image: radial-gradient(circle at 1px 1px, rgba(255,255,255,0.07) 1px, transparent 0);
  background-size: 20px 20px;
}
.blog-card-img-icon {
  font-size: 48px;
  position: relative;
  z-index: 1;
}
.blog-card-body {
  padding: 24px;
  display: flex;
  flex-direction: column;
  flex: 1;
  gap: 10px;
}
.blog-card-cat {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  display: inline-block;
  padding: 3px 8px;
  border-radius: 4px;
  width: fit-content;
}
.blog-card-cat-emerald { background: rgba(110,231,183,0.12); color: var(--emerald); }
.blog-card-cat-cyan    { background: rgba(103,232,249,0.12); color: var(--cyan); }
.blog-card-cat-amber   { background: rgba(252,211,77,0.12);  color: var(--amber); }
.blog-card-title {
  font-size: 18px;
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.25;
  color: var(--text);
  margin: 0;
}
.blog-card.featured .blog-card-title { font-size: 22px; }
.blog-card-excerpt {
  font-size: 14px;
  color: var(--text-2);
  line-height: 1.6;
  margin: 0;
  flex: 1;
}
.blog-card-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 12px;
  color: var(--text-3);
  margin-top: 4px;
}
.blog-card-arrow { color: var(--text-2); }
.blog-card:hover .blog-card-arrow { color: var(--text); }

/* =================== BLOG POST =================== */
.post-hero {
  max-width: 720px;
  margin: 60px auto 48px;
  padding: 0 32px;
}
.post-meta-top {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
  color: var(--text-3);
  margin-bottom: 24px;
  flex-wrap: wrap;
}
.post-meta-top a { color: var(--text-2); text-decoration: none; transition: color .15s; }
.post-meta-top a:hover { color: var(--text); }
.post-cat-badge {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 3px 8px;
  border-radius: 4px;
}
.post-cat-emerald { background: rgba(110,231,183,0.12); color: var(--emerald); }
.post-cat-cyan    { background: rgba(103,232,249,0.12); color: var(--cyan); }
.post-cat-amber   { background: rgba(252,211,77,0.12);  color: var(--amber); }
.post-title {
  font-size: clamp(28px, 4.5vw, 48px);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.08;
  color: var(--text);
  margin: 0 0 20px;
}
.post-deck {
  font-size: 18px;
  color: var(--text-2);
  line-height: 1.65;
  margin: 0 0 32px;
}
.post-attribution {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.post-author-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(167,139,250,0.15);
  border: 1px solid var(--violet);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  font-weight: 700;
  color: var(--violet);
  flex-shrink: 0;
}
.post-author-name { font-size: 14px; font-weight: 600; color: var(--text); }
.post-author-role { font-size: 12px; color: var(--text-3); }
.post-author-meta {
  margin-left: auto;
  text-align: right;
  font-size: 13px;
  font-weight: 700;
  color: var(--text);
  line-height: 1.4;
}
.post-author-meta div:last-child { font-weight: 400; color: var(--text-3); }

.post-body {
  max-width: 720px;
  margin: 0 auto;
  padding: 0 32px;
}
.article {
  font-size: 17px;
  line-height: 1.75;
  color: var(--text-2);
}
.article p { margin: 0 0 24px; }
.article h2 {
  font-size: 26px;
  font-weight: 700;
  letter-spacing: -0.025em;
  color: var(--text);
  margin: 48px 0 16px;
}
.article h3 {
  font-size: 20px;
  font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--text);
  margin: 32px 0 12px;
}
.article ul, .article ol {
  margin: 0 0 24px;
  padding-left: 24px;
}
.article li { margin-bottom: 8px; }
.article strong { color: var(--text); font-weight: 600; }
.article a { color: var(--violet); text-decoration: underline; text-decoration-color: rgba(167,139,250,0.3); }
.article a:hover { text-decoration-color: var(--violet); }
.article em { font-style: italic; }

.post-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin: 32px 0;
  padding: 28px;
  background: rgba(255,255,255,0.02);
  border: 1px solid var(--line);
  border-radius: 16px;
}
.post-stat { text-align: center; }
.post-stat-num {
  font-size: 36px;
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 1;
  margin-bottom: 6px;
}
.post-stat-num.emerald { color: var(--emerald); }
.post-stat-num.cyan    { color: var(--cyan); }
.post-stat-num.amber   { color: var(--amber); }
.post-stat-num.violet  { color: var(--violet); }
.post-stat-label {
  font-size: 12px;
  color: var(--text-3);
  line-height: 1.4;
}
.num { display: inline; }

.pull-quote {
  border-left: 3px solid var(--violet);
  padding: 16px 24px;
  margin: 32px 0;
  background: rgba(167,139,250,0.05);
  border-radius: 0 12px 12px 0;
  font-size: 17px;
  color: var(--text-2);
  font-style: italic;
  line-height: 1.65;
}

.post-solution {
  background: rgba(255,255,255,0.03);
  border: 1px solid var(--line-2);
  border-radius: 20px;
  padding: 32px;
  margin: 40px 0;
}
.post-solution-eyebrow {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  color: var(--text-4);
  letter-spacing: 0.08em;
  margin-bottom: 12px;
}
.post-solution-title {
  font-size: 22px;
  font-weight: 700;
  letter-spacing: -0.025em;
  color: var(--text);
  margin: 0 0 14px;
}
.post-solution-text {
  font-size: 15px;
  color: var(--text-2);
  line-height: 1.65;
  margin: 0 0 24px;
}
.post-solution-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.post-related {
  max-width: 720px;
  margin: 64px auto 80px;
  padding: 0 32px;
  border-top: 1px solid var(--line);
  padding-top: 40px;
}
.post-related-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 24px;
}
.post-related-title {
  font-size: 18px;
  font-weight: 700;
  color: var(--text);
}
.post-related-link {
  font-size: 13px;
  color: var(--text-3);
  text-decoration: none;
  transition: color .15s;
}
.post-related-link:hover { color: var(--text); }
.post-related-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}

/* =================== SHARED BLOG BUTTONS =================== */
.btn-primary-lg {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 24px;
  border-radius: 12px;
  background: var(--text);
  color: #09090B;
  font-size: 15px;
  font-weight: 600;
  text-decoration: none;
  transition: all .2s;
}
.btn-primary-lg:hover { transform: translateY(-2px); box-shadow: 0 12px 32px rgba(255,255,255,0.12); }
.btn-secondary-lg {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 24px;
  border-radius: 12px;
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--line-2);
  color: var(--text);
  font-size: 15px;
  font-weight: 500;
  text-decoration: none;
  transition: all .2s;
}
.btn-secondary-lg:hover { background: rgba(255,255,255,0.07); border-color: var(--line-3); }

/* =================== CAP SECTION (blog CTA) =================== */
.cap-section {
  max-width: 760px;
  margin: 0 auto 80px;
  padding: 56px 32px;
  text-align: center;
  border-top: 1px solid var(--line);
}
.cap-section-title {
  font-size: clamp(24px, 3.5vw, 38px);
  font-weight: 800;
  letter-spacing: -0.03em;
  color: var(--text);
  margin: 0 0 16px;
}
.page-deck {
  font-size: 16px;
  color: var(--text-2);
  line-height: 1.65;
}

/* =================== RESPONSIVE BLOG =================== */
@media (max-width: 900px) {
  .blog-grid { grid-template-columns: 1fr; }
  .blog-card.featured { flex-direction: column; }
  .blog-card.featured .blog-card-img { width: 100%; min-height: 160px; }
  .post-stats { grid-template-columns: 1fr 1fr; }
  .post-related-grid { grid-template-columns: 1fr; }
}
@media (max-width: 600px) {
  .blog-hero, .post-hero, .post-body, .post-related { padding: 0 20px; }
  .blog-grid { padding: 0 20px; }
  .post-stats { grid-template-columns: 1fr; }
  .post-solution-actions { flex-direction: column; }
  .post-related-head { flex-direction: column; gap: 8px; }
}
