/* =========================================================
   MAGNESIUM — shared site styles (services, blog, sobre, coaching)
   Matches the existing home (Syne + DM Sans, dark navy, blue/cyan grad)
   ========================================================= */

:root {
  --mg-blue: #2563EB;
  --mg-electric: #3B82F6;
  --mg-cyan: #06B6D4;
  --mg-cyan-bright: #22D3EE;
  --mg-indigo: #6366F1;
  --mg-amber: #F59E0B;
  --mg-green: #22C55E;

  --mg-dark: #08090F;
  --mg-darker: #050608;
  --mg-card: #0D0F1A;
  --mg-card-hover: #11142A;

  --mg-border: rgba(59, 130, 246, 0.12);
  --mg-border-hover: rgba(59, 130, 246, 0.35);
  --mg-border-soft: rgba(148, 163, 184, 0.08);

  --mg-text: #CBD5E1;
  --mg-muted: #64748B;
  --mg-white: #F1F5F9;

  --mg-glow: rgba(37, 99, 235, 0.35);
  --mg-gradient: linear-gradient(135deg, #2563EB, #06B6D4);
  --mg-gradient-warm: linear-gradient(135deg, #F59E0B, #EC4899);

  --mg-r-sm: 8px;
  --mg-r-md: 12px;
  --mg-r-lg: 18px;
  --mg-r-pill: 999px;
}

*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; overflow-x: hidden; }
body {
  font-family: 'Poppins', sans-serif;
  background: var(--mg-darker);
  color: var(--mg-text);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

::-webkit-scrollbar { width: 5px; }
::-webkit-scrollbar-track { background: var(--mg-darker); }
::-webkit-scrollbar-thumb { background: var(--mg-blue); border-radius: 3px; }

a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; border: none; background: none; color: inherit; }
img { max-width: 100%; display: block; }
ul, ol { list-style: none; }

/* =========================================================
   NAV (shared)
   ========================================================= */
.site-nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  padding: 18px 60px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: rgba(5, 6, 8, 0.75);
  backdrop-filter: blur(24px) saturate(1.2);
  -webkit-backdrop-filter: blur(24px) saturate(1.2);
  border-bottom: 1px solid var(--mg-border);
  transition: background 0.3s;
}
.site-nav.scrolled { background: rgba(5, 6, 8, 0.92); }

.nav-logo { display: flex; align-items: center; gap: 14px; }
.nav-logo img { width: 42px; height: 42px; border-radius: 12px; }
.nav-brand {
  font-family: 'Poppins', sans-serif;
  font-size: 22px;
  font-weight: 700;
  color: var(--mg-white);
  letter-spacing: -0.5px;
}

.nav-right { display: flex; align-items: center; gap: 24px; }
.nav-links { display: flex; gap: 32px; align-items: center; }
.nav-links > li { position: relative; }
.nav-links a {
  color: var(--mg-muted);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 1px;
  text-transform: uppercase;
  transition: color 0.3s;
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.nav-links a:hover, .nav-links a.active { color: var(--mg-white); }
.nav-links li.active > a { color: var(--mg-white); }

/* Dropdown submenus */
.nav-dropdown__trigger { cursor: pointer; }
.nav-dropdown__trigger .chev { margin-top: 1px; transition: transform 0.2s; }
.nav-dropdown:hover .nav-dropdown__trigger .chev { transform: rotate(180deg); }
.nav-dropdown::after {
  /* invisible bridge so the menu doesn't close while moving the cursor down */
  content: '';
  position: absolute;
  top: 100%;
  left: 0; right: 0;
  height: 12px;
}
.nav-dropdown__menu {
  position: absolute;
  top: calc(100% + 12px);
  left: 0;
  list-style: none;
  background: rgba(13, 15, 26, 0.96);
  backdrop-filter: blur(24px) saturate(1.2);
  -webkit-backdrop-filter: blur(24px) saturate(1.2);
  border: 1px solid var(--mg-border);
  border-radius: 14px;
  padding: 8px;
  min-width: 230px;
  opacity: 0;
  pointer-events: none;
  transform: translateY(-6px);
  transition: opacity 0.2s, transform 0.2s;
  z-index: 1001;
  box-shadow: 0 18px 44px rgba(0, 0, 0, 0.5);
}
.nav-dropdown:hover .nav-dropdown__menu,
.nav-dropdown:focus-within .nav-dropdown__menu {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}
.nav-dropdown__menu li { list-style: none; }
.nav-dropdown__menu a {
  display: block;
  padding: 10px 14px;
  font-size: 13px;
  font-weight: 500;
  color: var(--mg-text);
  border-radius: 8px;
  letter-spacing: 0.3px;
  text-transform: none;
  transition: background 0.2s, color 0.2s;
  white-space: nowrap;
}
.nav-dropdown__menu a:hover {
  background: rgba(37, 99, 235, 0.12);
  color: var(--mg-white);
}
.nav-dropdown__menu a.active {
  background: rgba(37, 99, 235, 0.10);
  color: var(--mg-white);
}

.nav-cta {
  padding: 11px 26px;
  background: var(--mg-gradient);
  color: white;
  border-radius: 10px;
  font-weight: 600;
  font-size: 14px;
  transition: all 0.3s;
  box-shadow: 0 4px 20px var(--mg-glow);
}
.nav-cta:hover { transform: translateY(-2px); box-shadow: 0 6px 30px var(--mg-glow); }

/* =========================================================
   PAGE FRAMING
   ========================================================= */
main { padding-top: 80px; min-height: calc(100vh - 80px); }

.page-hero {
  padding: 100px 60px 70px;
  max-width: 1200px;
  margin: 0 auto;
  position: relative;
}
.page-hero__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--mg-electric);
  margin-bottom: 16px;
}
.page-hero__eyebrow::before {
  content: '';
  width: 28px;
  height: 2px;
  background: var(--mg-gradient);
}
.page-hero__title {
  font-family: 'Poppins', sans-serif;
  font-size: clamp(38px, 5vw, 64px);
  font-weight: 800;
  letter-spacing: -2px;
  color: var(--mg-white);
  line-height: 1.06;
  margin-bottom: 20px;
  max-width: 880px;
}
.page-hero__title .grad {
  background: var(--mg-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.page-hero__sub {
  font-size: 19px;
  color: var(--mg-muted);
  line-height: 1.7;
  max-width: 720px;
  font-weight: 400;
}

.section {
  padding: 80px 60px;
  max-width: 1200px;
  margin: 0 auto;
  position: relative;
}
.section--narrow { max-width: 880px; }
.section--dark   { background: var(--mg-dark); max-width: none; padding-left: 0; padding-right: 0; }
.section--dark > .inner { max-width: 1200px; margin: 0 auto; padding: 0 60px; }

.sec-label {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--mg-electric);
  margin-bottom: 16px;
}
.sec-label::before {
  content: '';
  width: 28px;
  height: 2px;
  background: var(--mg-gradient);
}
.sec-title {
  font-family: 'Poppins', sans-serif;
  font-size: clamp(30px, 3.5vw, 46px);
  font-weight: 800;
  letter-spacing: -1.5px;
  color: var(--mg-white);
  line-height: 1.1;
  margin-bottom: 16px;
  max-width: 720px;
}
.sec-sub {
  font-size: 17px;
  color: var(--mg-muted);
  max-width: 600px;
  line-height: 1.7;
}

/* =========================================================
   BUTTONS
   ========================================================= */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 28px;
  border-radius: var(--mg-r-md);
  font-weight: 600;
  font-size: 15px;
  transition: all 0.3s;
  white-space: nowrap;
}
.btn--primary {
  background: var(--mg-gradient);
  color: white;
  box-shadow: 0 4px 24px var(--mg-glow);
}
.btn--primary:hover { transform: translateY(-2px); box-shadow: 0 8px 36px var(--mg-glow); }
.btn--secondary {
  background: transparent;
  color: var(--mg-white);
  border: 1px solid var(--mg-border);
}
.btn--secondary:hover { background: rgba(37, 99, 235, 0.06); border-color: var(--mg-border-hover); }

/* =========================================================
   CARDS / TILES
   ========================================================= */
.tile {
  background: var(--mg-card);
  border: 1px solid var(--mg-border);
  border-radius: var(--mg-r-lg);
  padding: 32px 28px;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}
.tile::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: var(--mg-gradient);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.4s;
}
.tile:hover::before { transform: scaleX(1); }
.tile:hover {
  transform: translateY(-4px);
  border-color: var(--mg-border-hover);
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.35);
}
.tile__icon {
  width: 48px;
  height: 48px;
  background: rgba(37, 99, 235, 0.08);
  border: 1px solid rgba(37, 99, 235, 0.15);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  margin-bottom: 20px;
}
.tile h3 {
  font-family: 'Poppins', sans-serif;
  font-size: 20px;
  font-weight: 700;
  color: var(--mg-white);
  margin-bottom: 10px;
  letter-spacing: -0.4px;
}
.tile p {
  font-size: 14px;
  color: var(--mg-muted);
  line-height: 1.65;
}
.tile__tag {
  display: inline-block;
  padding: 4px 12px;
  background: rgba(6, 182, 212, 0.08);
  border: 1px solid rgba(6, 182, 212, 0.15);
  border-radius: 6px;
  font-size: 10px;
  font-weight: 700;
  color: var(--mg-cyan);
  letter-spacing: 0.8px;
  text-transform: uppercase;
  margin-top: 16px;
  align-self: flex-start;
}
.tile__cta {
  margin-top: 18px;
  font-size: 13px;
  font-weight: 600;
  color: var(--mg-electric);
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

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

/* =========================================================
   BLOG
   ========================================================= */
.blog-list {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}
.blog-card {
  background: var(--mg-card);
  border: 1px solid var(--mg-border);
  border-radius: var(--mg-r-lg);
  padding: 30px 28px;
  transition: all 0.3s;
  display: flex;
  flex-direction: column;
  gap: 14px;
  height: 100%;
}
.blog-card:hover {
  border-color: var(--mg-border-hover);
  transform: translateY(-3px);
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.35);
}
.blog-card__meta {
  display: flex;
  gap: 12px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  font-weight: 600;
  color: var(--mg-muted);
  text-transform: uppercase;
  letter-spacing: 1px;
}
.blog-card__meta .cat {
  color: var(--mg-electric);
}
.blog-card__title {
  font-family: 'Poppins', sans-serif;
  font-size: 22px;
  font-weight: 700;
  color: var(--mg-white);
  letter-spacing: -0.4px;
  line-height: 1.2;
}
.blog-card__excerpt {
  font-size: 14px;
  color: var(--mg-muted);
  line-height: 1.6;
  flex: 1;
}
.blog-card__footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 12px;
  color: var(--mg-muted);
  margin-top: auto;
}
.blog-card__footer .read-more {
  color: var(--mg-electric);
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

/* Single post layout */
.post {
  max-width: 760px;
  margin: 0 auto;
  padding: 40px 24px 100px;
}
.post__meta {
  display: flex;
  gap: 14px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 12px;
  font-weight: 600;
  color: var(--mg-muted);
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 18px;
}
.post__meta .cat { color: var(--mg-electric); }
.post__title {
  font-family: 'Poppins', sans-serif;
  font-size: clamp(34px, 4.5vw, 54px);
  font-weight: 800;
  letter-spacing: -1.6px;
  color: var(--mg-white);
  line-height: 1.1;
  margin-bottom: 18px;
}
.post__lede {
  font-size: 19px;
  color: var(--mg-text);
  line-height: 1.6;
  margin-bottom: 36px;
}
.post__author {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px 0;
  border-top: 1px solid var(--mg-border);
  border-bottom: 1px solid var(--mg-border);
  margin-bottom: 36px;
  text-decoration: none;
  color: inherit;
  transition: opacity 0.2s;
}
.post__author:hover { opacity: 0.85; }
.post__author-avatar {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--mg-gradient);
  display: grid;
  place-items: center;
  font-family: 'Poppins', sans-serif;
  font-weight: 700;
  color: white;
  font-size: 14px;
  flex-shrink: 0;
}
.post__author-avatar--photo {
  background: none;
  object-fit: cover;
}

/* Category page hero post-count tagline */
.page-hero__count {
  font-family: 'JetBrains Mono', monospace;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--mg-electric);
  margin-top: 12px;
}

/* Inline conceptual diagrams (image-injector output) */
.post-diagram {
  margin: 48px 0;
  padding: 0;
  border-radius: var(--mg-r-lg);
  overflow: hidden;
  background: var(--mg-bg);
}
.post-diagram svg {
  display: block;
  width: 100%;
  height: auto;
  max-width: 100%;
}
@media (max-width: 700px) {
  .post-diagram { margin: 32px -8px; }
}

/* Table of Contents — top-of-article numbered list with arrow accents */
.post-toc {
  margin: 0 0 56px;
  padding: 28px 32px;
  background: linear-gradient(135deg, rgba(37, 99, 235, 0.06), rgba(6, 182, 212, 0.03));
  border: 1px solid var(--mg-border);
  border-left: 4px solid var(--mg-electric);
  border-radius: var(--mg-r-lg);
  position: relative;
  overflow: hidden;
}
.post-toc__label {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 2.5px;
  color: var(--mg-electric);
  margin: 0 0 18px;
}
.post-toc__list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.post-toc__list li { margin: 0; }
.post-toc__list a {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 10px 12px;
  margin-left: -12px;
  border-radius: var(--mg-r-md);
  color: var(--mg-text);
  text-decoration: none;
  border-bottom: none;
  transition: background 0.18s, transform 0.18s, color 0.18s;
}
.post-toc__list a:hover {
  background: rgba(59, 130, 246, 0.06);
  transform: translateX(4px);
}
.post-toc__list a:hover .post-toc__arrow {
  color: var(--mg-electric);
  transform: translateX(2px);
}
.post-toc__list a:hover .post-toc__text {
  color: var(--mg-white);
}
.post-toc__num {
  font-family: 'JetBrains Mono', monospace;
  font-size: 13px;
  font-weight: 600;
  color: var(--mg-electric);
  letter-spacing: 0.5px;
  min-width: 26px;
}
.post-toc__arrow {
  color: var(--mg-muted);
  font-weight: 600;
  transition: color 0.18s, transform 0.18s;
}
.post-toc__text {
  font-family: 'Poppins', sans-serif;
  font-size: 15px;
  font-weight: 500;
  color: var(--mg-text);
  transition: color 0.18s;
  flex: 1;
  min-width: 0;
}
@media (max-width: 600px) {
  .post-toc { padding: 22px 20px; }
  .post-toc__list a { padding: 10px 8px; margin-left: -8px; gap: 10px; }
  .post-toc__text { font-size: 14px; }
}

/* Smooth anchor scrolling + offset so headings don't hide behind sticky nav */
html { scroll-behavior: smooth; }
.post__body h2,
.post__body h3 {
  scroll-margin-top: 100px;
}

/* Breadcrumb nav at top of post */
.breadcrumbs {
  margin-bottom: 28px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 12px;
}
.breadcrumbs ol {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  color: var(--mg-muted);
}
.breadcrumbs li {
  display: inline-flex;
  align-items: center;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.breadcrumbs li + li::before {
  content: '›';
  margin-right: 8px;
  color: var(--mg-muted);
  opacity: 0.5;
}
.breadcrumbs a {
  color: var(--mg-muted);
  text-decoration: none;
  transition: color 0.2s;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  font-weight: 600;
}
.breadcrumbs a:hover { color: var(--mg-electric); }
.breadcrumbs li[aria-current='page'] {
  color: var(--mg-text);
  max-width: 60ch;
  text-transform: none;
  font-weight: 400;
  letter-spacing: normal;
}

/* /sobre page — hero with portrait + team grid */
.page-hero--with-portrait {
  display: flex;
  align-items: center;
  gap: 48px;
  flex-wrap: wrap;
}
.page-hero--with-portrait .page-hero__text {
  flex: 1 1 540px;
  min-width: 0;
}
.page-hero__portrait {
  width: 200px;
  height: 200px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid var(--mg-border);
  flex-shrink: 0;
}
@media (max-width: 700px) {
  .page-hero__portrait { width: 140px; height: 140px; }
}

.team-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 24px;
  margin-top: 32px;
}
.team-card {
  background: var(--mg-card);
  border: 1px solid var(--mg-border);
  border-radius: var(--mg-r-lg);
  padding: 28px;
  text-align: center;
}
.team-card__photo {
  width: 140px;
  height: 140px;
  border-radius: 50%;
  object-fit: cover;
  margin: 0 auto 16px;
  display: block;
  border: 2px solid var(--mg-border);
}
.team-card__name {
  font-family: 'Poppins', sans-serif;
  font-size: 20px;
  font-weight: 700;
  color: var(--mg-white);
  margin: 0 0 4px;
}
.team-card__role {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: var(--mg-electric);
  margin: 0 0 12px;
}
.team-card__bio {
  font-size: 13px;
  line-height: 1.55;
  color: var(--mg-muted);
  margin: 0;
}
.post__author-name {
  font-size: 14px;
  font-weight: 600;
  color: var(--mg-white);
}
.post__author-role {
  font-size: 12px;
  color: var(--mg-muted);
}

.post__body { font-size: 17px; line-height: 1.75; color: var(--mg-text); }
.post__body h2 {
  font-family: 'Poppins', sans-serif;
  font-size: 30px;
  font-weight: 700;
  letter-spacing: -0.8px;
  color: var(--mg-white);
  margin: 56px 0 16px;
  line-height: 1.2;
}
.post__body h3 {
  font-family: 'Poppins', sans-serif;
  font-size: 22px;
  font-weight: 700;
  color: var(--mg-white);
  margin: 36px 0 12px;
}
.post__body p { margin-bottom: 18px; }
.post__body strong { color: var(--mg-white); font-weight: 600; }
.post__body a { color: var(--mg-electric); border-bottom: 1px solid rgba(59, 130, 246, 0.3); }
.post__media { margin: 36px 0; }
.post__media img { display: block; width: 100%; height: auto; border-radius: 8px; }
.post__body a:hover { border-color: var(--mg-electric); }
.post__body ul, .post__body ol {
  margin: 12px 0 24px;
  padding-left: 24px;
  list-style: disc;
}
.post__body ol { list-style: decimal; }
.post__body li { margin-bottom: 8px; }
.post__body blockquote {
  border-left: 3px solid var(--mg-electric);
  padding: 4px 20px;
  margin: 28px 0;
  color: var(--mg-text);
  font-style: italic;
}
.post__body .table-wrap {
  margin: 32px 0;
  border-radius: var(--mg-r-md);
  border: 1px solid var(--mg-border);
  background: var(--mg-card);
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.02) inset, 0 12px 32px rgba(2, 6, 23, 0.45);
}
.post__body table,
.post__body .post-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 15px;
  font-family: 'Poppins', sans-serif;
}
.post__body table:not(.post-table) { margin: 28px 0; }
.post__body th,
.post__body td {
  padding: 14px 18px;
  text-align: left;
  vertical-align: top;
  border-bottom: 1px solid var(--mg-border-soft);
}
.post__body thead th {
  background: linear-gradient(180deg, rgba(13, 15, 26, 0.95) 0%, rgba(8, 9, 15, 0.95) 100%);
  color: var(--mg-white);
  font-weight: 600;
  font-size: 12px;
  letter-spacing: 0.6px;
  text-transform: uppercase;
  border-bottom: 1px solid var(--mg-border);
  position: relative;
}
.post__body thead th::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -1px;
  height: 2px;
  background: var(--mg-gradient);
  opacity: 0.6;
}
.post__body thead th:first-child { border-top-left-radius: var(--mg-r-md); }
.post__body thead th:last-child { border-top-right-radius: var(--mg-r-md); }
.post__body tbody tr:last-child td { border-bottom: 0; }
.post__body tbody tr:nth-child(even) td { background: rgba(255, 255, 255, 0.015); }
.post__body tbody tr:hover td { background: rgba(59, 130, 246, 0.04); }
.post__body td strong { color: var(--mg-white); }
@media (max-width: 640px) {
  .post__body th, .post__body td { padding: 10px 12px; font-size: 13.5px; }
}

.tldr {
  background: var(--mg-card);
  border: 1px solid var(--mg-border);
  border-left: 3px solid var(--mg-electric);
  border-radius: var(--mg-r-md);
  padding: 22px 26px;
  margin-bottom: 36px;
}
.tldr h4 {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  font-weight: 700;
  color: var(--mg-electric);
  letter-spacing: 2px;
  text-transform: uppercase;
  margin-bottom: 12px;
}
.tldr p { font-size: 16px; line-height: 1.65; color: var(--mg-text); margin: 0; }

.faq { margin-top: 60px; padding-top: 40px; border-top: 1px solid var(--mg-border); }
.faq h2 {
  font-family: 'Poppins', sans-serif;
  font-size: 28px;
  font-weight: 700;
  color: var(--mg-white);
  margin-bottom: 24px;
}
.faq__item { padding: 20px 0; border-bottom: 1px solid var(--mg-border); }
.faq__item:last-child { border-bottom: 0; }
.faq__q {
  font-size: 17px;
  font-weight: 700;
  color: var(--mg-white);
  margin-bottom: 8px;
  font-family: 'Poppins', sans-serif;
}
.faq__a { font-size: 15px; line-height: 1.7; color: var(--mg-text); }

.post__cta {
  margin-top: 60px;
  padding: 36px;
  background: linear-gradient(135deg, rgba(37, 99, 235, 0.08), rgba(6, 182, 212, 0.05));
  border: 1px solid var(--mg-border);
  border-radius: var(--mg-r-lg);
  text-align: center;
}
.post__cta h3 {
  font-family: 'Poppins', sans-serif;
  font-size: 22px;
  font-weight: 700;
  color: var(--mg-white);
  margin-bottom: 8px;
}
.post__cta p { font-size: 15px; color: var(--mg-muted); margin-bottom: 20px; }

.post__sources {
  margin-top: 64px;
  padding-top: 36px;
  border-top: 1px solid var(--mg-border);
}
.post__sources h2 {
  font-family: 'Poppins', sans-serif;
  font-size: 18px;
  font-weight: 700;
  color: var(--mg-white);
  margin: 0 0 20px;
  letter-spacing: -0.2px;
  text-transform: uppercase;
  letter-spacing: 1.5px;
}
.post__sources ol {
  list-style: decimal;
  padding-left: 24px;
  margin: 0;
  color: var(--mg-muted);
  font-size: 14px;
  line-height: 1.7;
}
.post__sources li { margin-bottom: 10px; }
.post__sources a {
  color: var(--mg-text);
  border-bottom: 1px solid rgba(255, 255, 255, 0.15);
  transition: color 0.2s, border-color 0.2s;
}
.post__sources a:hover {
  color: var(--mg-electric);
  border-bottom-color: var(--mg-electric);
}

.post__related {
  margin-top: 64px;
  padding-top: 36px;
  border-top: 1px solid var(--mg-border);
}
.post__related h2 {
  font-family: 'Poppins', sans-serif;
  font-size: 22px;
  font-weight: 700;
  color: var(--mg-white);
  margin: 0 0 24px;
  letter-spacing: -0.4px;
}
.related-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 16px;
}
.related-card {
  display: block;
  padding: 20px;
  background: var(--mg-card);
  border: 1px solid var(--mg-border);
  border-radius: var(--mg-r-md);
  transition: border-color 0.2s, transform 0.2s;
}
.related-card:hover {
  border-color: var(--mg-electric);
  transform: translateY(-2px);
}
.related-card .cat {
  display: inline-block;
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: var(--mg-electric);
  margin-bottom: 10px;
}
.related-card h3 {
  font-family: 'Poppins', sans-serif;
  font-size: 16px;
  font-weight: 700;
  color: var(--mg-white);
  line-height: 1.35;
  margin: 0 0 8px;
  letter-spacing: -0.2px;
}
.related-card p {
  font-size: 13px;
  line-height: 1.55;
  color: var(--mg-muted);
  margin: 0;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* =========================================================
   FOOTER
   ========================================================= */
.site-footer {
  padding: 56px 60px 36px;
  border-top: 1px solid var(--mg-border);
  background: var(--mg-darker);
}
.footer-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 48px;
  margin-bottom: 36px;
}
.footer-brand-block .brand-row {
  display: flex; align-items: center; gap: 12px;
  margin-bottom: 12px;
}
.footer-brand-block img { width: 38px; height: 38px; border-radius: 10px; }
.footer-brand-block .brand-name {
  font-family: 'Poppins', sans-serif;
  font-size: 18px;
  font-weight: 700;
  color: var(--mg-white);
}
.footer-brand-block p { font-size: 13px; color: var(--mg-muted); max-width: 280px; line-height: 1.6; }

.footer-col h5 {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  font-weight: 700;
  color: var(--mg-white);
  text-transform: uppercase;
  letter-spacing: 1.5px;
  margin-bottom: 14px;
}
.footer-col ul { display: flex; flex-direction: column; gap: 8px; }
.footer-col a {
  font-size: 13px;
  color: var(--mg-muted);
  transition: color 0.2s;
}
.footer-col a:hover { color: var(--mg-white); }

.footer-bottom {
  max-width: 1200px;
  margin: 0 auto;
  padding-top: 20px;
  border-top: 1px solid var(--mg-border);
  display: flex;
  justify-content: space-between;
  font-size: 12px;
  color: var(--mg-muted);
}

/* =========================================================
   RESPONSIVE
   ========================================================= */
@media (max-width: 1024px) {
  .site-nav { padding: 14px 22px; }
  .nav-links { display: none; }
  .page-hero, .section, .section--dark > .inner, .site-footer { padding-left: 22px; padding-right: 22px; }
  .grid--3, .grid--2 { grid-template-columns: 1fr; }
  .blog-list { grid-template-columns: 1fr; }
  .footer-inner { grid-template-columns: 1fr 1fr; gap: 32px; }
  .footer-bottom { flex-direction: column; gap: 6px; text-align: center; }
}
@media (max-width: 600px) {
  .footer-inner { grid-template-columns: 1fr; }
}

/* Reveal-on-scroll */
.rv { opacity: 0; transform: translateY(28px); transition: all 0.7s cubic-bezier(0.4, 0, 0.2, 1); }
.rv.vis { opacity: 1; transform: translateY(0); }
