/* ==========================================================================
   astrivo — v30
   Flat, restrained dark theme (Claude / Linear inspired): solid surfaces,
   thin borders, monochrome primary actions, one accent used sparingly.
   No gradients-as-decoration, no glow shadows.
   ========================================================================== */

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

:root {
  --bg: #0a0a0b;
  --bg-soft: #0d0d0f;
  --bg-surface: #131315;
  --bg-surface-hover: #18181b;
  --border: rgba(255, 255, 255, 0.08);
  --border-hover: rgba(255, 255, 255, 0.16);
  --text: #eeeeef;
  --text-muted: #97979d;
  --text-faint: #6a6a70;
  --accent: #6d6af0;
  --accent-text: #a5a2ff;
  --accent-soft: rgba(109, 106, 240, 0.10);
  --on-accent: #ffffff;
  --success: #3fb984;
  --warn: #d98f40;
  --radius-lg: 14px;
  --radius: 10px;
  --radius-sm: 7px;
  --font-sans: "Inter", -apple-system, BlinkMacSystemFont, "SF Pro Text", system-ui, sans-serif;
  --font-display: "Poppins", var(--font-sans);
  --font-mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}

body {
  min-height: 100vh;
  background-color: var(--bg);
  color: var(--text);
  font-family: var(--font-sans);
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

a { color: inherit; text-decoration: none; }
a:hover { text-decoration: none; }

::selection { background: rgba(109, 106, 240, 0.35); color: #fff; }

.page { min-height: 100vh; display: flex; flex-direction: column; }

.container {
  width: 100%;
  max-width: 1160px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

.container-narrow {
  width: 100%;
  max-width: 1160px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* ==========================================================================
   Header / Nav
   ========================================================================== */
header {
  border-bottom: 1px solid var(--border);
  background-color: rgba(10, 10, 11, 0.96);
  position: sticky;
  top: 0;
  z-index: 100;
}

.navbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.85rem 0;
  gap: 1rem;
}

.nav-left {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.logo-img {
  width: 24px;
  height: 24px;
  border-radius: 999px;
  display: block;
}

.logo-text-main {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.92rem;
  letter-spacing: -0.02em;
  text-transform: lowercase;
  color: #ffffff;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 0.3rem;
  flex-wrap: wrap;
}

.nav-links a:not(.nav-cta) {
  font-family: var(--font-sans);
  font-size: 0.84rem;
  font-weight: 500;
  color: var(--text-muted);
  padding: 0.4rem 0.65rem;
  border-radius: var(--radius-sm);
  transition: color 0.12s ease, background-color 0.12s ease;
}

.nav-links a.nav-active {
  color: var(--text);
  background-color: var(--bg-surface);
}

.nav-links a:not(.nav-active):not(.nav-cta):hover {
  color: var(--text);
}

.nav-cta {
  padding: 0.46rem 1rem;
  border-radius: var(--radius-sm);
  border: none;
  background: #f3f3f2;
  color: #131315;
  font-family: var(--font-sans);
  font-size: 0.82rem;
  font-weight: 600;
  cursor: pointer;
  transition: background-color 0.12s ease;
  margin-left: 0.4rem;
}

.nav-cta:hover { background: #ffffff; }

.nav-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  background: var(--bg-surface);
  color: var(--text);
  cursor: pointer;
}

.nav-toggle svg { width: 18px; height: 18px; }

main { flex: 1; }

/* ==========================================================================
   Hero
   ========================================================================== */
.hero { padding: 4.4rem 0 3.4rem; }

.badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.32rem 0.8rem;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--bg-surface);
  color: var(--text-muted);
  font-size: 0.74rem;
  font-weight: 500;
  margin-bottom: 1.6rem;
}

.badge-dot {
  width: 6px;
  height: 6px;
  border-radius: 999px;
  background: var(--success);
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.55fr) minmax(0, 1fr);
  gap: 3.2rem;
  align-items: center;
}

.hero h1 {
  font-size: clamp(2.5rem, 4.4vw, 3.4rem);
  line-height: 1.08;
  letter-spacing: -0.04em;
  margin: 0 0 1rem;
  font-weight: 550;
  color: #ffffff;
}

.hero p {
  font-size: 1.02rem;
  line-height: 1.6;
  color: var(--text-muted);
  max-width: 36rem;
  margin: 0;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  margin-top: 2rem;
}

.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.72rem 1.5rem;
  border-radius: var(--radius-sm);
  border: none;
  background: #f3f3f2;
  color: #131315;
  font-size: 0.86rem;
  font-weight: 600;
  cursor: pointer;
  transition: background-color 0.12s ease;
}

.btn-primary:hover { background: #ffffff; }

.btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.68rem 1.4rem;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-hover);
  background-color: transparent;
  color: var(--text);
  font-size: 0.84rem;
  font-weight: 500;
  cursor: pointer;
  transition: background-color 0.12s ease, border-color 0.12s ease;
}

.btn-secondary:hover {
  background-color: var(--bg-surface);
  border-color: rgba(255,255,255,0.28);
}

.hero-footnote {
  font-size: 0.8rem;
  color: var(--text-faint);
  margin-top: 1.4rem;
}

.hero-box {
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  background: var(--bg-surface);
  padding: 1.2rem 1.2rem 1.3rem;
}

.hero-box-label {
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--text-faint);
  margin-bottom: 0.85rem;
  font-weight: 600;
}

.hero-box-rows { display: flex; flex-direction: column; gap: 0.6rem; }

.hero-row {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  font-size: 0.86rem;
  color: var(--text);
  padding: 0.5rem 0.1rem;
  border-bottom: 1px solid var(--border);
}

.hero-row:last-child { border-bottom: none; }

.hero-row span:last-child { font-size: 0.78rem; color: var(--text-muted); white-space: nowrap; }

.hero-tags { display: flex; flex-wrap: wrap; gap: 0.4rem; margin-top: 1.1rem; }

.hero-tag {
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  background-color: var(--bg-soft);
  padding: 0.26rem 0.65rem;
  font-size: 0.73rem;
  color: var(--text-muted);
  font-family: var(--font-mono);
}

/* ==========================================================================
   Sections & cards
   ========================================================================== */
.section { padding: 2.2rem 0 3.6rem; }

.section-header {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  margin-bottom: 2rem;
}

.section-eyebrow {
  font-size: 0.74rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--accent-text);
}

.section-title {
  font-size: 1.55rem;
  font-weight: 550;
  letter-spacing: -0.02em;
  color: #fbfbfc;
}

.section-subtitle {
  font-size: 1rem;
  color: var(--text-muted);
  max-width: 38rem;
  line-height: 1.55;
}

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

.card {
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  background: var(--bg-surface);
  padding: 1.35rem 1.35rem 1.45rem;
  transition: border-color 0.15s ease, background-color 0.15s ease;
}

.card:hover {
  border-color: var(--border-hover);
  background-color: var(--bg-surface-hover);
}

.card-kicker {
  font-size: 0.72rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--accent-text);
  margin-bottom: 0.5rem;
}

.card-title {
  font-size: 1.08rem;
  font-weight: 550;
  margin-bottom: 0.55rem;
  color: #fbfbfc;
  letter-spacing: -0.01em;
}

.card-body { font-size: 0.92rem; color: var(--text-muted); line-height: 1.55; margin-bottom: 0.7rem; }

.card-list { list-style: none; padding: 0; margin: 0; font-size: 0.88rem; color: var(--text-muted); }
.card-list li + li { margin-top: 0.3rem; }
.card-note { font-size: 0.8rem; color: var(--text-faint); }

/* Layout helpers */
.two-col, .grid-2 {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr);
  gap: 2.8rem;
  align-items: flex-start;
}

.page-intro { padding: 3.4rem 0 2.4rem; border-bottom: 1px solid var(--border); }

.page-intro h1 {
  font-size: 2.2rem;
  margin: 0 0 0.8rem;
  letter-spacing: -0.03em;
  font-weight: 550;
  color: #fbfbfc;
}

.page-intro p { font-size: 1rem; color: var(--text-muted); max-width: 38rem; margin: 0; line-height: 1.6; }

.chip-row { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-top: 1rem; }
.chip-row--topics { margin-top: 0.6rem; }
.chip-row--topics .chip { font-size: 0.7rem; padding: 0.24rem 0.65rem; color: var(--text-faint); }

.chip {
  display: inline-flex;
  align-items: center;
  gap: 0.4em;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  background: var(--bg-surface);
  padding: 0.28rem 0.75rem;
  font-size: 0.74rem;
  color: var(--text-muted);
  font-weight: 500;
}

.chip.chip-active {
  border-color: var(--border-hover);
  background: var(--bg-surface-hover);
  color: var(--text);
}

a.chip, button.chip {
  cursor: pointer;
  transition: border-color 0.12s ease, background-color 0.12s ease;
  font-family: inherit;
  -webkit-appearance: none;
  appearance: none;
}
a.chip:hover, button.chip:hover { border-color: var(--border-hover); background-color: var(--bg-surface-hover); }

.small-heading { font-size: 1rem; font-weight: 600; margin: 0 0 0.5rem; color: #fbfbfc; }
.small-text { font-size: 0.92rem; color: var(--text-muted); line-height: 1.6; }

.list-bullets { margin: 0.6rem 0 0; padding-left: 1.1rem; font-size: 0.9rem; color: var(--text-muted); line-height: 1.6; }
.list-bullets li + li { margin-top: 0.3rem; }

/* ==========================================================================
   News / topic grids
   ========================================================================== */
.news-grid, .topic-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.1rem;
}

.news-card, .topic-card {
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: var(--bg-surface);
  padding: 1.1rem 1.15rem 1.2rem;
  transition: border-color 0.15s ease;
}

.news-card:hover, .topic-card:hover { border-color: var(--border-hover); }

.news-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.4em;
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--accent-text);
  margin-bottom: 0.4rem;
  font-weight: 600;
}

.news-title { font-size: 1rem; font-weight: 550; margin-bottom: 0.45rem; color: #fbfbfc; }
.news-meta { font-size: 0.78rem; color: var(--text-faint); }

.topic-title { font-size: 1rem; font-weight: 550; margin-bottom: 0.35rem; color: #fbfbfc; }
.topic-body { font-size: 0.9rem; color: var(--text-muted); line-height: 1.55; }

/* ==========================================================================
   Live news feed (client-side, Dev.to + Hacker News)
   ========================================================================== */
.live-news-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.1rem;
}

.live-news-card {
  display: flex;
  flex-direction: column;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: var(--bg-surface);
  padding: 1.1rem 1.15rem 1.2rem;
  transition: border-color 0.15s ease;
  text-decoration: none;
}

.live-news-card:hover { border-color: var(--border-hover); background-color: var(--bg-surface-hover); }

.live-news-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.6rem;
  margin-bottom: 0.55rem;
}

.live-news-source {
  display: inline-flex;
  align-items: center;
  gap: 0.4em;
  font-size: 0.68rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-weight: 600;
  padding: 0.2rem 0.55rem;
  border-radius: 999px;
  background: var(--accent-soft);
  color: var(--accent-text);
}

.live-news-source .icon { width: 0.9em; height: 0.9em; }

.live-news-title {
  font-size: 0.96rem;
  font-weight: 550;
  color: #fbfbfc;
  line-height: 1.4;
  margin-bottom: 0.5rem;
  flex: 1;
}

.live-news-meta {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  font-size: 0.76rem;
  color: var(--text-faint);
  margin-top: auto;
}

.live-news-meta .icon { width: 0.9em; height: 0.9em; }

.live-news-stat { display: inline-flex; align-items: center; gap: 0.3em; }

.live-news-empty {
  color: var(--text-muted);
  font-size: 0.92rem;
  padding: 1.4rem 0;
  text-align: center;
}

.live-news-footnote {
  font-size: 0.78rem;
  color: var(--text-faint);
  margin-top: 1.1rem;
}

.live-news-footnote a { color: var(--text-muted); text-decoration: underline; text-decoration-color: var(--border-hover); text-underline-offset: 2px; }

.skeleton-card {
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: var(--bg-surface);
  padding: 1.1rem 1.15rem 1.2rem;
  min-height: 118px;
}

.skeleton-line {
  height: 0.7rem;
  border-radius: 4px;
  background: linear-gradient(90deg, var(--bg-surface-hover) 25%, rgba(255,255,255,0.06) 50%, var(--bg-surface-hover) 75%);
  background-size: 200% 100%;
  animation: skeleton-pulse 1.4s ease-in-out infinite;
  margin-bottom: 0.6rem;
}

.skeleton-line--short { width: 40%; height: 0.6rem; }
.skeleton-line--full { width: 100%; }
.skeleton-line--wide { width: 80%; }

@keyframes skeleton-pulse {
  0% { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

/* ==========================================================================
   Icons
   ========================================================================== */
.icon { width: 1em; height: 1em; flex-shrink: 0; }

.blog-tag .icon, .chip .icon, .news-tag .icon { width: 0.95em; height: 0.95em; }

.card-icon, .topic-icon {
  width: 34px;
  height: 34px;
  border-radius: var(--radius-sm);
  background: var(--accent-soft);
  color: var(--accent-text);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 0.8rem;
}
.topic-icon { width: 30px; height: 30px; margin-bottom: 0.7rem; }
.card-icon .icon { width: 18px; height: 18px; }
.topic-icon .icon { width: 16px; height: 16px; }

/* ==========================================================================
   How we work — step flow
   ========================================================================== */
.how-we-work {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1.4rem;
  position: relative;
}

.how-rail {
  position: absolute;
  top: 20px;
  left: 20px;
  right: 20px;
  height: 1px;
  background: var(--border);
  z-index: 0;
}

.how-step { position: relative; z-index: 1; }

.how-step-number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 999px;
  border: 1px solid var(--border-hover);
  background: var(--bg-surface);
  color: var(--accent-text);
  font-weight: 600;
  font-size: 0.92rem;
  margin-bottom: 0.9rem;
}

.how-step-title { font-size: 0.98rem; font-weight: 550; color: #fbfbfc; margin-bottom: 0.4rem; }
.how-step-body { font-size: 0.87rem; color: var(--text-muted); line-height: 1.55; }

/* ==========================================================================
   Blog: index cards
   ========================================================================== */
.blog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1.1rem;
}

.blog-card {
  display: flex;
  flex-direction: column;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  background: var(--bg-surface);
  padding: 1.3rem 1.3rem 1.4rem;
  transition: border-color 0.15s ease, background-color 0.15s ease;
  height: 100%;
}

.blog-card:hover {
  border-color: var(--border-hover);
  background-color: var(--bg-surface-hover);
}

.blog-card-top { display: flex; align-items: center; justify-content: space-between; gap: 0.6rem; margin-bottom: 0.9rem; }

.blog-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.38em;
  font-size: 0.68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--accent-text);
  background: var(--accent-soft);
  border: 1px solid transparent;
  padding: 0.22rem 0.6rem;
  border-radius: var(--radius-sm);
}

.blog-readtime { font-size: 0.76rem; color: var(--text-faint); font-family: var(--font-mono); }

.blog-card-title {
  font-size: 1.1rem;
  font-weight: 600;
  color: #fbfbfc;
  letter-spacing: -0.01em;
  line-height: 1.35;
  margin-bottom: 0.55rem;
}

.blog-card-excerpt { font-size: 0.89rem; color: var(--text-muted); line-height: 1.55; flex: 1; margin-bottom: 1rem; }

.blog-card-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.78rem;
  color: var(--text-faint);
  padding-top: 0.9rem;
  border-top: 1px solid var(--border);
}

.blog-card-cta { color: var(--accent-text); font-weight: 600; }

.blog-featured {
  display: grid;
  grid-template-columns: minmax(0,1fr) minmax(0,1fr);
  gap: 2rem;
  align-items: center;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  background: var(--bg-surface);
  padding: 2rem;
  margin-bottom: 2.4rem;
  border-top: 2px solid var(--accent);
}

.blog-featured-label {
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--accent-text);
  margin-bottom: 0.8rem;
}

.blog-featured h2 {
  font-size: 1.6rem;
  font-weight: 600;
  letter-spacing: -0.02em;
  margin: 0 0 0.7rem;
  color: #fff;
}

.blog-featured p { color: var(--text-muted); font-size: 0.96rem; line-height: 1.6; margin: 0 0 1.2rem; }

.blog-featured-meta { display: flex; gap: 1rem; flex-wrap: wrap; font-size: 0.8rem; color: var(--text-faint); margin-top: 1.2rem; }

/* ==========================================================================
   Article / prose (blog post pages)
   ========================================================================== */
.article-header { padding: 3rem 0 2.2rem; border-bottom: 1px solid var(--border); }

.article-breadcrumb { font-size: 0.82rem; color: var(--text-faint); margin-bottom: 1.4rem; }
.article-breadcrumb a { color: var(--text-muted); }
.article-breadcrumb a:hover { color: var(--text); }

.article-title {
  font-size: clamp(1.9rem, 3.6vw, 2.5rem);
  line-height: 1.15;
  letter-spacing: -0.03em;
  font-weight: 600;
  color: #fff;
  margin: 0.9rem 0 1.1rem;
}

.article-dek { font-size: 1.06rem; color: var(--text-muted); line-height: 1.6; margin: 0 0 1.6rem; }

.article-meta {
  display: flex;
  align-items: center;
  gap: 0.9rem;
  flex-wrap: wrap;
  font-size: 0.84rem;
  color: var(--text-faint);
}

.article-meta-author {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  color: var(--text);
  font-weight: 500;
}

.author-avatar {
  width: 26px;
  height: 26px;
  border-radius: 999px;
  background: var(--bg-surface-hover);
  border: 1px solid var(--border);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.7rem;
  font-weight: 700;
  color: var(--text-muted);
}

.article-dot { color: var(--border-hover); }

.article-body {
  padding-bottom: 4rem;
  font-size: 1.02rem;
  line-height: 1.75;
  color: #d4d4d8;
}

.article-body h2 {
  font-size: 1.45rem;
  font-weight: 600;
  letter-spacing: -0.02em;
  color: #fff;
  margin: 2.5rem 0 1rem;
}

.article-body h3 {
  font-size: 1.15rem;
  font-weight: 600;
  color: #fbfbfc;
  margin: 2rem 0 0.8rem;
}

.article-body p { margin: 0 0 1.25rem; }
.article-body strong { color: #fff; font-weight: 600; }

.article-body ul, .article-body ol {
  margin: 0 0 1.25rem;
  padding-left: 1.3rem;
  color: #d4d4d8;
}

.article-body li { margin-bottom: 0.5rem; }
.article-body li::marker { color: var(--text-faint); }

.article-body a { color: var(--accent-text); text-decoration: underline; text-decoration-color: rgba(165,162,255,0.35); text-underline-offset: 3px; }
.article-body a:hover { text-decoration-color: rgba(165,162,255,0.8); }

.article-body code {
  font-family: var(--font-mono);
  font-size: 0.86em;
  background: var(--bg-surface);
  border: 1px solid var(--border);
  padding: 0.12em 0.4em;
  border-radius: 5px;
  color: #e8c891;
}

.code-block {
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: #0d0d0f;
  margin: 1.6rem 0;
  overflow: hidden;
}

.code-block-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.5rem 1rem;
  border-bottom: 1px solid var(--border);
  background: var(--bg-surface);
}

.code-block-lang {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-faint);
}

.code-block-dots { display: flex; gap: 0.35rem; }
.code-block-dots span { width: 7px; height: 7px; border-radius: 999px; background: var(--border-hover); }

.code-block pre {
  margin: 0;
  padding: 1.1rem 1.2rem;
  overflow-x: auto;
}

.code-block code {
  font-family: var(--font-mono);
  font-size: 0.86rem;
  line-height: 1.65;
  background: none;
  border: none;
  padding: 0;
  color: #d4d5db;
  white-space: pre;
}

.callout {
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  border-left: 3px solid var(--accent);
  background: var(--bg-surface);
  padding: 0.95rem 1.15rem;
  margin: 1.8rem 0;
  font-size: 0.94rem;
  color: #d4d4d8;
  line-height: 1.6;
}

.callout-label {
  display: flex;
  align-items: center;
  gap: 0.45em;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--accent-text);
  margin-bottom: 0.4rem;
}
.callout-label .icon { width: 1.05em; height: 1.05em; }

.callout.callout-warn {
  border-left-color: var(--warn);
}
.callout.callout-warn .callout-label { color: var(--warn); }

.takeaways {
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  background: var(--bg-surface);
  padding: 1.25rem 1.4rem;
  margin: 2rem 0 2.6rem;
}

.takeaways-label {
  display: flex;
  align-items: center;
  gap: 0.45em;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--accent-text);
  margin-bottom: 0.8rem;
}
.takeaways-label .icon { width: 1.05em; height: 1.05em; }

.takeaways ul { margin: 0; padding-left: 1.2rem; }
.takeaways li { color: #dcdce0; margin-bottom: 0.5rem; font-size: 0.94rem; }

.diagram {
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: #0d0d0f;
  margin: 1.8rem 0;
  padding: 1.5rem 1.3rem 1.1rem;
}
.diagram svg { width: 100%; height: auto; display: block; }
.diagram-caption {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-faint);
  margin-top: 0.9rem;
  text-align: center;
}
@media (max-width: 640px) {
  .diagram svg text { font-size: 12px; }
}

.toc {
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  background: var(--bg-surface);
  padding: 1.1rem 1.3rem;
  margin: 0 0 2.2rem;
}
.toc-label {
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--accent-text);
  margin-bottom: 0.75rem;
}
.toc ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.5rem; }
.toc a { color: var(--text-muted); font-size: 0.9rem; text-decoration: none; }
.toc a:hover { color: var(--text); text-decoration: underline; }

.article-body table {
  width: 100%;
  border-collapse: collapse;
  margin: 1.6rem 0;
  font-size: 0.88rem;
}

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

.article-body th { background: var(--bg-surface); color: #fbfbfc; font-weight: 600; }
.article-body td { color: var(--text-muted); }

.article-cta {
  margin-top: 2.4rem;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  background: var(--bg-surface);
  padding: 1.8rem;
  text-align: center;
}

.article-cta h3 { margin: 0 0 0.5rem; font-size: 1.15rem; color: #fff; }
.article-cta p { color: var(--text-muted); margin: 0 0 1.2rem; font-size: 0.92rem; }

.article-tags { display: flex; flex-wrap: wrap; gap: 0.5rem; margin: 2rem 0; }

.related-heading {
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--text-faint);
  margin: 0 0 1.1rem;
}

/* ==========================================================================
   Contact form
   ========================================================================== */
.form-card {
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  background: var(--bg-surface);
  padding: 1.5rem 1.4rem;
  max-width: 460px;
}

.form-row { display: flex; flex-direction: column; gap: 0.32rem; margin-bottom: 1rem; }

label { font-size: 0.82rem; color: #e5e7eb; font-weight: 500; }

input, textarea, select {
  padding: 0.6rem 0.7rem;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-hover);
  background-color: var(--bg-soft);
  color: var(--text);
  font-size: 0.86rem;
  font-family: inherit;
}

input:focus, textarea:focus, select:focus {
  outline: none;
  border-color: var(--accent);
}

textarea { resize: vertical; min-height: 120px; }

.form-hint { font-size: 0.76rem; color: var(--text-faint); }

.form-status { font-size: 0.86rem; margin-top: 0.8rem; }
.form-status.is-success { color: var(--success); }
.form-status.is-error { color: var(--warn); }
.btn-primary:disabled { opacity: 0.6; cursor: not-allowed; }

/* ==========================================================================
   Footer
   ========================================================================== */
footer {
  border-top: 1px solid var(--border);
  padding: 2.6rem 0 2rem;
  margin-top: 2rem;
  background-color: var(--bg-soft);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 2rem;
  padding-bottom: 2rem;
}

.footer-col-title { font-size: 0.76rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.12em; color: var(--text-faint); margin-bottom: 0.9rem; }

.footer-col a {
  display: block;
  font-size: 0.86rem;
  color: var(--text-muted);
  padding: 0.28rem 0;
}

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

.footer-blurb { font-size: 0.86rem; color: var(--text-muted); line-height: 1.6; max-width: 22rem; margin-top: 0.8rem; }

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  font-size: 0.8rem;
  color: var(--text-faint);
  padding-top: 1.6rem;
  border-top: 1px solid var(--border);
}

.footer-brand {
  font-family: var(--font-display);
  font-weight: 600;
  text-transform: lowercase;
  letter-spacing: -0.02em;
  color: var(--text);
}

.footer-links { display: flex; flex-wrap: wrap; gap: 1rem; }
.footer-links a { color: var(--text-muted); font-size: 0.8rem; }
.footer-links a:hover { color: var(--text); }

/* ==========================================================================
   Page-intro variants — flat, no gradient wash
   ========================================================================== */
.page-intro--news,
.page-intro--interview,
.page-intro--contact,
.page-intro--blog {
  background: var(--bg-soft);
}

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (max-width: 980px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .blog-featured { grid-template-columns: minmax(0,1fr); }
  .how-we-work { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 1.8rem; }
  .how-rail { display: none; }
}

@media (max-width: 900px) {
  .hero-grid { grid-template-columns: minmax(0, 1fr); }
  .two-col, .grid-2 { grid-template-columns: minmax(0, 1fr); }
  .cards-3 { grid-template-columns: minmax(0, 1fr); }
  .cards-3, .cards-2 { grid-template-columns: minmax(0, 1fr); }
  .news-grid, .topic-grid { grid-template-columns: minmax(0, 1fr); }

  .nav-toggle { display: inline-flex; }

  .nav-links {
    position: fixed;
    top: 61px;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(10,10,11,0.98);
    backdrop-filter: blur(12px);
    flex-direction: column;
    align-items: stretch;
    justify-content: flex-start;
    gap: 0.2rem;
    padding: 1.2rem 1.5rem;
    transform: translateX(100%);
    transition: transform 0.2s ease;
    z-index: 90;
  }

  .nav-links.nav-open { transform: translateX(0); }

  .nav-links a:not(.nav-cta) {
    padding: 0.9rem 0.4rem;
    font-size: 1rem;
    border-bottom: 1px solid var(--border);
    border-radius: 0;
  }

  .nav-links a.nav-active { background: none; color: var(--accent-text); }
  .nav-cta { margin: 1.2rem 0 0; text-align: center; }
}

@media (max-width: 640px) {
  .hero { padding-top: 2.8rem; }
  .page-intro { padding-top: 2.4rem; }
  .article-header { padding-top: 2rem; }
  .footer-inner { flex-direction: column; align-items: flex-start; }
  .footer-grid { grid-template-columns: 1fr; }
  .blog-featured { padding: 1.4rem; }
}
