:root {
  --bg: #f5f7fb;
  --surface: #ffffff;
  --surface-alt: #eef3fb;
  --text: #14213d;
  --muted: #5c6b87;
  --border: #dbe4f0;
  --accent: #2563eb;
  --accent-dark: #1747ad;
  --violet: #7c3aed;
  --navy: #0b1226;
  --navy-2: #121b36;
  --shadow: 0 18px 40px rgba(20, 33, 61, 0.08);
  --container: min(1120px, calc(100% - 2rem));
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

section[id] {
  scroll-margin-top: 5rem;
}

body {
  margin: 0;
  font-family: Inter, "Segoe UI", Roboto, Arial, sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a {
  color: inherit;
}

/* ---------- Header ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 5%;
  background: rgba(245, 247, 251, 0.85);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(20, 33, 61, 0.06);
  transition: background 0.35s ease, color 0.35s ease, border-color 0.35s ease;
}

.site-header.on-dark {
  background: rgba(11, 18, 38, 0.6);
  color: #fff;
  border-bottom-color: rgba(255, 255, 255, 0.08);
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 1.05rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  text-decoration: none;
}

.logo img {
  display: block;
  border-radius: 7px;
}

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: var(--surface);
  cursor: pointer;
}

.on-dark .nav-toggle {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.16);
}

.nav-toggle span {
  display: block;
  width: 18px;
  height: 2px;
  margin: 4px auto;
  border-radius: 2px;
  background: currentColor;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.nav-open .nav-toggle span:nth-child(1) {
  transform: translateY(6px) rotate(45deg);
}

.nav-open .nav-toggle span:nth-child(2) {
  opacity: 0;
}

.nav-open .nav-toggle span:nth-child(3) {
  transform: translateY(-6px) rotate(-45deg);
}

:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 3px;
}

.site-nav {
  display: flex;
  gap: 1.5rem;
  flex-wrap: wrap;
}

.site-nav a {
  position: relative;
  text-decoration: none;
  color: var(--muted);
  font-weight: 500;
  transition: color 0.2s ease;
}

.on-dark .site-nav a {
  color: rgba(255, 255, 255, 0.75);
}

.site-nav a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -4px;
  height: 2px;
  border-radius: 2px;
  background: linear-gradient(90deg, var(--accent), var(--violet));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.25s var(--ease);
}

.site-nav a:hover {
  color: var(--accent);
}

.on-dark .site-nav a:hover {
  color: #fff;
}

.site-nav a:hover::after {
  transform: scaleX(1);
}

/* ---------- Hero ---------- */

.hero {
  position: relative;
  min-height: 170vh;
  background: var(--navy);
  color: #fff;
  overflow: clip;
}

.hero-glow {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(60% 50% at 20% 20%, rgba(37, 99, 235, 0.45), transparent 70%),
    radial-gradient(45% 45% at 85% 65%, rgba(124, 58, 237, 0.4), transparent 70%),
    radial-gradient(30% 30% at 60% 10%, rgba(14, 165, 233, 0.25), transparent 70%);
  filter: blur(40px);
  animation: drift 18s ease-in-out infinite alternate;
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.05) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: radial-gradient(70% 70% at 50% 40%, #000, transparent);
  -webkit-mask-image: radial-gradient(70% 70% at 50% 40%, #000, transparent);
  pointer-events: none;
}

@keyframes drift {
  from {
    transform: translate3d(-3%, -2%, 0) scale(1);
  }
  to {
    transform: translate3d(3%, 4%, 0) scale(1.08);
  }
}

.hero-inner {
  position: sticky;
  top: 0;
  z-index: 1;
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 3rem;
  align-items: center;
  width: var(--container);
  min-height: 100vh;
  margin: 0 auto;
  padding: 5rem 0 3rem;
}

.eyebrow {
  display: inline-block;
  margin: 0 0 0.75rem;
  color: var(--accent);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.hero .eyebrow {
  color: #93b4ff;
}

.hero h1,
.section-intro h2,
.contact-card h2 {
  margin: 0 0 1rem;
  line-height: 1.08;
  letter-spacing: -0.025em;
  font-weight: 800;
}

.hero h1 {
  font-size: clamp(2.4rem, 4.6vw, 4rem);
  max-width: 640px;
  background: linear-gradient(120deg, #fff 30%, #b9c9ff 70%, #d9c6ff);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.lead,
.section-intro p,
.contact-card p,
.card p {
  color: var(--muted);
  font-size: 1.02rem;
}

.hero .lead {
  color: rgba(255, 255, 255, 0.72);
  font-size: 1.1rem;
  max-width: 560px;
}

.hero-for {
  margin: 0;
  color: rgba(255, 255, 255, 0.55);
  font-size: 0.95rem;
}

.hero-actions {
  display: flex;
  gap: 0.9rem;
  flex-wrap: wrap;
  margin: 1.6rem 0 1.4rem;
}

.button {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.9rem 1.35rem;
  border-radius: 999px;
  text-decoration: none;
  font-weight: 600;
  overflow: hidden;
  transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease), background 0.25s ease, border-color 0.25s ease;
}

.button:hover {
  transform: translateY(-2px);
}

.button-primary {
  background: linear-gradient(120deg, var(--accent), #4f46e5);
  color: white;
  box-shadow: 0 10px 24px rgba(37, 99, 235, 0.3);
}

.button-primary::after {
  content: "";
  position: absolute;
  top: 0;
  left: -60%;
  width: 40%;
  height: 100%;
  background: linear-gradient(100deg, transparent, rgba(255, 255, 255, 0.35), transparent);
  transform: skewX(-20deg);
  transition: left 0.6s var(--ease);
}

.button-primary:hover::after {
  left: 120%;
}

.button-primary:hover {
  box-shadow: 0 14px 32px rgba(37, 99, 235, 0.42);
}

.button-secondary {
  background: white;
  color: var(--text);
  border: 1px solid var(--border);
}

.hero .button-secondary {
  background: rgba(255, 255, 255, 0.06);
  color: #fff;
  border-color: rgba(255, 255, 255, 0.18);
  backdrop-filter: blur(6px);
}

.hero .button-secondary:hover {
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.35);
}

.hero-points {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  padding: 0;
  margin: 0;
  list-style: none;
}

.hero-points li {
  padding: 0.5rem 0.85rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.14);
  color: rgba(255, 255, 255, 0.85);
  font-size: 0.9rem;
}

/* ---------- Migration mock (driven by --p from 0 to 1) ---------- */

.migration {
  --p: 0;
  justify-self: end;
  width: 100%;
  max-width: 480px;
}

.app-window {
  position: relative;
  border-radius: 16px;
  background: linear-gradient(180deg, #171f3d, #0f1631);
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow:
    0 30px 80px rgba(0, 0, 0, 0.45),
    0 0 0 1px rgba(255, 255, 255, 0.03) inset,
    0 0 calc(24px + var(--p) * 44px) color-mix(in srgb, rgba(252, 180, 0, 0.35), rgba(62, 207, 142, 0.5) calc(var(--p) * 100%));
  transform: rotate(calc(-2deg + var(--p) * 2deg)) translateY(calc(var(--p) * -8px));
  overflow: hidden;
}

.app-bar {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 10px 14px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  font-size: 0.72rem;
}

.app-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.18);
}

.app-title {
  position: relative;
  flex: 1;
  margin-left: 8px;
  height: 1.2em;
  color: rgba(255, 255, 255, 0.7);
  font-weight: 600;
}

.app-title span {
  position: absolute;
  left: 0;
  top: 0;
  white-space: nowrap;
}

.t-low {
  opacity: calc(1 - var(--p) * 2);
}

.t-custom {
  opacity: calc(var(--p) * 2 - 1);
}

.app-badge {
  padding: 3px 9px;
  border-radius: 999px;
  background: rgba(34, 197, 94, 0.18);
  color: #86efac;
  font-weight: 700;
  opacity: clamp(0, calc((var(--p) - 0.8) * 5), 1);
  transform: scale(clamp(0.6, calc(0.6 + var(--p) * 0.4), 1));
}

.app-body {
  display: grid;
  grid-template-columns: 74px 1fr;
  height: 300px;
}

.app-sidebar {
  display: grid;
  align-content: start;
  gap: 10px;
  padding: 14px 12px;
  border-right: 1px solid rgba(255, 255, 255, 0.08);
}

.app-sidebar i {
  display: block;
  height: 8px;
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.14);
}

.app-sidebar i:first-child {
  background: color-mix(in srgb, #f6c445, #3ecf8e calc(var(--p) * 100%));
}

.app-main {
  position: relative;
}

.layer {
  position: absolute;
  inset: 0;
  display: grid;
  grid-template-rows: auto 1fr auto;
  gap: 12px;
  padding: 14px;
}

.layer-low {
  opacity: calc(1 - var(--p) * 1.6);
  transform: translateX(calc(var(--p) * -28px));
}

.layer-custom {
  opacity: clamp(0, calc(var(--p) * 1.6 - 0.5), 1);
  transform: translateX(calc(28px - var(--p) * 28px));
}

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

.logo-chip {
  --chip: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-width: 0;
  height: 46px;
  padding: 0 6px;
  border-radius: 10px;
  color: var(--chip);
  background: color-mix(in srgb, var(--chip) 14%, transparent);
  border: 1px solid color-mix(in srgb, var(--chip) 35%, transparent);
  font-size: 0.66rem;
  font-weight: 700;
  letter-spacing: 0.01em;
  white-space: nowrap;
  overflow: hidden;
}

.logo-chip svg {
  flex: none;
  width: 18px;
  height: 18px;
  fill: currentColor;
}

.logo-chip svg.wordmark {
  width: auto;
  height: 13px;
}

.chip-airtable {
  --chip: #fcb400;
}

.chip-airtable .air-top {
  fill: #fcb400;
}

.chip-airtable .air-right {
  fill: #18bfff;
}

.chip-airtable .air-left {
  fill: #f82b60;
}

.chip-noloco {
  --chip: #a78bfa;
}

.chip-make {
  --chip: #c084fc;
}

.chip-supabase {
  --chip: #3ecf8e;
}

.chip-vercel,
.chip-github {
  --chip: #ffffff;
}

.table {
  display: grid;
  gap: 8px;
  align-content: start;
  padding: 10px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.table i {
  display: block;
  height: 9px;
  border-radius: 4px;
  background: linear-gradient(90deg, rgba(252, 211, 77, 0.6) 30%, rgba(255, 255, 255, 0.14) 30%);
}

.table-dark i {
  background: linear-gradient(90deg, rgba(62, 207, 142, 0.6) 30%, rgba(255, 255, 255, 0.14) 30%);
}

.flow {
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 8px 10px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.05);
}

.node {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: linear-gradient(135deg, #c084fc, #7c3aed);
}

.link {
  flex: 1;
  height: 2px;
  background: rgba(255, 255, 255, 0.25);
}

.terminal {
  display: grid;
  gap: 3px;
  padding: 8px 10px;
  border-radius: 10px;
  background: #050914;
  border: 1px solid rgba(255, 255, 255, 0.08);
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 0.66rem;
  color: rgba(255, 255, 255, 0.65);
}

.terminal .ok {
  color: #86efac;
}

.migration-progress {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 0.75rem;
  margin-top: 1.4rem;
  font-size: 0.8rem;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.7);
}

.migration-progress .bar {
  height: 6px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.12);
  overflow: hidden;
}

.migration-progress .bar i {
  display: block;
  height: 100%;
  width: calc(var(--p) * 100%);
  border-radius: 999px;
  background: linear-gradient(90deg, #f59e0b, var(--accent), #3ecf8e);
}

.migration-caption {
  margin: 0.6rem 0 0;
  text-align: center;
  font-size: 0.78rem;
  color: rgba(255, 255, 255, 0.5);
  opacity: clamp(0, calc(1.6 - var(--p) * 1.6), 1);
}

/* ---------- Tools band ---------- */






.hero-card-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.hero-card-list span {
  padding: 0.4rem 0.75rem;
  border-radius: 999px;
  background: var(--surface-alt);
  border: 1px solid transparent;
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--text);
  transition: transform 0.2s var(--ease), border-color 0.2s ease, background 0.2s ease;
}

.hero-card-list span:hover {
  transform: translateY(-2px);
  background: #fff;
  border-color: var(--accent);
}

/* ---------- Sections ---------- */

.section {
  width: var(--container);
  margin: 0 auto;
  padding: 3.4rem 0;
}

.section-alt {
  padding: 3.6rem 0;
}

.section-intro {
  max-width: 700px;
  margin-bottom: 1.8rem;
}

.section-intro h2 {
  font-size: clamp(1.7rem, 3vw, 2.3rem);
}

.section-intro.narrow {
  max-width: 760px;
}

.card-grid {
  display: grid;
  gap: 1.2rem;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.card-grid-3 {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.card,
.contact-card,
.steps article {
  position: relative;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 1.25rem;
  box-shadow: var(--shadow);
  overflow: hidden;
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease), border-color 0.3s ease;
}

.card::before,
.steps article::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: radial-gradient(
    360px circle at var(--mx, 50%) var(--my, 50%),
    rgba(37, 99, 235, 0.14),
    rgba(124, 58, 237, 0.06) 40%,
    transparent 65%
  );
  opacity: 0;
  transition: opacity 0.3s ease;
  pointer-events: none;
}

.card:hover,
.steps article:hover {
  transform: translateY(-5px);
  border-color: rgba(37, 99, 235, 0.45);
  box-shadow: 0 24px 50px rgba(20, 33, 61, 0.14);
}

.card:hover::before,
.steps article:hover::before {
  opacity: 1;
}

.card > *,
.steps article > * {
  position: relative;
}

.card {
  padding: 1.5rem;
}

.card h3,
.steps article h3 {
  margin: 0 0 0.5rem;
  font-size: 1.1rem;
  font-weight: 700;
}

.services-grid .card {
  min-height: 180px;
}

.steps {
  position: relative;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1rem;
}

.steps-3 {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.steps::before {
  content: "";
  position: absolute;
  left: 2rem;
  right: 2rem;
  top: 2.05rem;
  height: 2px;
  background: linear-gradient(90deg, var(--accent), var(--violet));
  opacity: 0.35;
}

.steps article {
  padding: 1.3rem;
  border-radius: 1rem;
}

.steps span {
  display: inline-grid;
  place-items: center;
  width: 2rem;
  height: 2rem;
  margin-bottom: 0.75rem;
  border-radius: 50%;
  background: var(--surface-alt);
  color: var(--accent);
  font-size: 0.8rem;
  font-weight: 800;
  transition: background 0.25s ease, color 0.25s ease, transform 0.25s var(--ease);
}

.steps article:hover span {
  background: linear-gradient(120deg, var(--accent), var(--violet));
  color: #fff;
  transform: scale(1.1);
}

.contact-section {
  padding-bottom: 4rem;
}

.contact-card {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2.5rem;
  align-items: center;
  padding: 2.5rem;
  text-align: left;
  background:
    radial-gradient(60% 80% at 20% 0%, rgba(37, 99, 235, 0.12), transparent 60%),
    radial-gradient(50% 70% at 90% 100%, rgba(124, 58, 237, 0.12), transparent 60%),
    var(--surface);
}

.contact-card h2 {
  font-size: clamp(1.6rem, 3vw, 2.2rem);
}

.contact-meta {
  font-size: 0.9rem;
}

.contact-meta a {
  color: var(--accent);
  font-weight: 600;
}

.contact-form {
  display: grid;
  gap: 0.9rem;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.9rem;
}

.contact-form label {
  display: grid;
  gap: 0.35rem;
  font-size: 0.85rem;
  font-weight: 600;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: 0.75rem 0.9rem;
  border: 1px solid var(--border);
  border-radius: 0.75rem;
  background: var(--bg);
  font: inherit;
  color: var(--text);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.contact-form input:focus,
.contact-form textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.15);
}

.contact-form textarea {
  resize: vertical;
}

.contact-form .button {
  justify-self: start;
  border: 0;
  cursor: pointer;
  font: inherit;
}

.contact-form .button[disabled] {
  opacity: 0.7;
  cursor: wait;
}

.hp {
  display: none;
}

.form-status {
  min-height: 1.4em;
  margin: 0;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--accent);
}

.form-status.error {
  color: #b91c1c;
}

.form-privacy {
  margin: 0;
  font-size: 0.78rem;
  color: var(--muted);
}

.site-footer {
  padding: 1.4rem 5% 2.2rem;
  text-align: center;
  color: var(--muted);
  font-size: 0.92rem;
  border-top: 1px solid rgba(20, 33, 61, 0.06);
}

/* ---------- Scroll reveal ---------- */

.js .reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
  transition-delay: calc(var(--i, 0) * 80ms);
}

.js .reveal.in {
  opacity: 1;
  transform: none;
}

/* ---------- Responsive ---------- */

@media (max-width: 900px) {
  .hero {
    min-height: 0;
  }

  .hero-inner {
    position: relative;
    grid-template-columns: 1fr;
    min-height: 0;
    gap: 2.5rem;
    padding: 3.5rem 0 3rem;
  }

  .migration {
    justify-self: center;
  }

  .card-grid-3,
  .steps.steps-3,
  .steps {
    grid-template-columns: 1fr 1fr;
  }

  .steps::before {
    display: none;
  }

  .contact-card {
    grid-template-columns: 1fr;
    padding: 2rem 1.5rem;
  }
}

@media (max-width: 700px) {
  .site-header {
    flex-wrap: wrap;
    gap: 0.75rem;
  }

  .site-nav {
    gap: 0.8rem;
  }

  .js-nav .nav-toggle {
    display: block;
  }

  .js-nav .site-nav {
    display: none;
    flex-direction: column;
    gap: 0;
    width: 100%;
    padding-top: 0.5rem;
  }

  .js-nav.nav-open .site-nav {
    display: flex;
  }

  .js-nav .site-nav a {
    padding: 0.8rem 0;
    border-top: 1px solid var(--border);
    font-size: 1.05rem;
  }

  .on-dark.js-nav .site-nav a {
    border-top-color: rgba(255, 255, 255, 0.12);
  }

  .site-nav a::after {
    display: none;
  }

  .app-body {
    height: 250px;
  }

  .card-grid,
  .card-grid-3,
  .steps,
  .steps.steps-3,
  .form-row {
    grid-template-columns: 1fr;
  }

  .hero-actions {
    flex-direction: column;
    align-items: flex-start;
  }

  .button {
    width: 100%;
  }
}

/* ---------- Reduced motion ---------- */

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .hero-glow {
    animation: none;
  }

  .hero {
    min-height: 0;
  }

  .hero-inner {
    position: relative;
    min-height: 0;
  }

  .migration {
    --p: 1 !important;
  }

  .js .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }

  .card,
  .steps article,
  .button,
  .hero-card-list span {
    transition: none;
  }

  .card:hover,
  .steps article:hover,
  .button:hover {
    transform: none;
  }
}

/* Blog */
.blog-list {
  display: grid;
  gap: 1.2rem;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.post-card h3 {
  margin: 0.4rem 0 0.5rem;
  font-size: 1.2rem;
  line-height: 1.3;
}

.post-card h3 a {
  text-decoration: none;
}

.post-card h3 a:hover {
  color: var(--accent);
}

.post-meta {
  margin: 0;
  color: var(--muted);
  font-size: 0.88rem;
}

.post-card .read-more {
  display: inline-block;
  margin-top: 0.6rem;
  color: var(--accent);
  font-weight: 600;
  text-decoration: none;
}

.article {
  width: min(740px, calc(100% - 2rem));
  margin: 0 auto;
  padding: 3rem 0 2rem;
}

.article-header h1 {
  margin: 0 0 0.8rem;
  font-size: clamp(2rem, 3.6vw, 2.9rem);
  line-height: 1.12;
  letter-spacing: -0.02em;
}

.article-header .lead {
  font-size: 1.15rem;
}

.article-body {
  font-size: 1.06rem;
}

.article-body h2 {
  margin: 2.4rem 0 0.8rem;
  font-size: 1.55rem;
  line-height: 1.2;
  letter-spacing: -0.01em;
}

.article-body h3 {
  margin: 1.8rem 0 0.6rem;
  font-size: 1.2rem;
}

.article-body p,
.article-body li {
  color: #2a3650;
}

.article-body ul,
.article-body ol {
  padding-left: 1.3rem;
}

.article-body li {
  margin-bottom: 0.4rem;
}

.article-body a {
  color: var(--accent);
}

.article-body table {
  width: 100%;
  border-collapse: collapse;
  margin: 1.4rem 0;
  font-size: 0.95rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 0.75rem;
  overflow: hidden;
}

.article-body th,
.article-body td {
  padding: 0.7rem 0.8rem;
  text-align: left;
  border-bottom: 1px solid var(--border);
  vertical-align: top;
}

.article-body th {
  background: var(--surface-alt);
  font-weight: 600;
}

.article-body tr:last-child td {
  border-bottom: none;
}

.table-wrap {
  overflow-x: auto;
}

.callout {
  margin: 1.6rem 0;
  padding: 1.1rem 1.3rem;
  border-left: 4px solid var(--accent);
  border-radius: 0.6rem;
  background: var(--surface);
  box-shadow: var(--shadow);
}

.callout p {
  margin: 0.3rem 0;
}

.article-cta {
  margin: 3rem 0 1rem;
  padding: 1.8rem;
  text-align: center;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 1.25rem;
  box-shadow: var(--shadow);
}

.article-cta h2 {
  margin: 0 0 0.6rem;
  font-size: 1.4rem;
}

.article-cta p {
  color: var(--muted);
  margin: 0 0 1rem;
}

.related {
  margin: 2.5rem 0 0;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border);
}

.related h2 {
  font-size: 1.1rem;
  margin: 0 0 0.6rem;
}

.related ul {
  margin: 0;
  padding-left: 1.2rem;
}

.sources {
  margin-top: 2.5rem;
  font-size: 0.9rem;
  color: var(--muted);
}

.sources ol {
  padding-left: 1.2rem;
}

.sources li {
  margin-bottom: 0.35rem;
  word-break: break-word;
}

@media (max-width: 700px) {
  .blog-list {
    grid-template-columns: 1fr;
  }

  .article {
    padding-top: 2rem;
  }
}

@media (max-width: 430px) {
  .logo-chip b {
    display: none;
  }

  .logo-chip svg {
    width: 22px;
    height: 22px;
  }
}
