:root {
  --bg: #ffffff;
  --text: #172334;
  --muted: #6f7b87;
  --accent: #36c6b4;
  --accent-dark: #2a9e90;
  --soft: #eef8f6;
  --gray: #f3f6f8;
  --border: #dce6ea;
  --code: #2f7f74;
  --footer: #172334;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: Inter, Geist, "IBM Plex Sans", Arial, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
.site-header {
  max-width: 1120px;
  margin: 0 auto;
  padding: 30px 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.brand-logo { height: 54px; width: auto; display: block; }
.site-nav { display: flex; align-items: center; gap: 28px; font-size: 15px; color: var(--muted); }
.site-nav a:hover, .footer-nav a:hover { color: var(--accent); }
.nav-toggle {
  display: none;
  width: 42px;
  height: 36px;
  border: 1px solid var(--border);
  background: #fff;
  border-radius: 8px;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 6px;
  cursor: pointer;
}
.nav-toggle span { width: 20px; height: 2px; background: var(--text); display: block; }
.eyebrow, .section-label {
  color: var(--accent);
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 13px;
  margin-bottom: 18px;
}
h1, h2, h3, p { margin-top: 0; }
h1 {
  font-size: clamp(52px, 8vw, 92px);
  line-height: 0.96;
  letter-spacing: -0.06em;
  margin-bottom: 30px;
}
h2 {
  font-size: clamp(34px, 4.6vw, 52px);
  line-height: 1.04;
  letter-spacing: -0.045em;
  margin-bottom: 22px;
}
h3 { font-size: 21px; line-height: 1.25; letter-spacing: -0.02em; margin-bottom: 10px; }
.principle {
  border-left: 4px solid var(--accent);
  padding: 16px 20px;
  background: var(--soft);
  color: var(--code);
  font-family: "IBM Plex Mono", "SFMono-Regular", Consolas, monospace;
}
.pill-grid { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.pill-grid span {
  padding: 10px 14px;
  border-radius: 999px;
  background: var(--soft);
  color: var(--code);
  border: 1px solid rgba(54,198,180,.5);
  font-weight: 750;
  font-size: 14px;
}
.flow-card {
  background: var(--soft);
  border: 1px solid var(--accent);
  color: var(--code);
  border-radius: 4px;
  padding: 24px;
}
.flow-card pre { margin: 0; white-space: pre-wrap; }
.flow-card code {
  font-family: "IBM Plex Mono","SFMono-Regular",Consolas,monospace;
  font-size: 16px;
  line-height: 1.7;
}
.architecture-diagram {
  margin-top: 34px;
  max-width: 620px;
  display: grid;
  gap: 10px;
  text-align: center;
  color: var(--code);
  font-family: "IBM Plex Mono","SFMono-Regular",Consolas,monospace;
}
.architecture-diagram div {
  background: var(--soft);
  border: 1px solid rgba(54,198,180,.65);
  border-radius: 8px;
  padding: 14px 16px;
}
.architecture-diagram span { color: var(--accent-dark); font-weight: 800; }
.spec-grid {
  display: grid;
  grid-template-columns: repeat(2,minmax(0,1fr));
  gap: 18px;
  margin-top: 34px;
}
.spec-card {
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 26px;
  background: #fff;
}
.spec-card p { font-size: 15px; margin-bottom: 0; color: var(--muted); }
.badge {
  display: inline-flex;
  color: var(--code);
  background: var(--soft);
  border: 1px solid rgba(54,198,180,.5);
  border-radius: 999px;
  padding: 5px 10px;
  font-size: 12px;
  font-weight: 800;
  margin-bottom: 16px;
}
.site-footer {
  background: var(--footer);
  color: #fff;
  margin-top: 60px;
  padding: 44px 24px;
  display: flex;
  justify-content: space-between;
  gap: 28px;
  flex-wrap: wrap;
}
.site-footer p { color: rgba(255,255,255,.72); margin: 8px 0 0; font-size: 15px; }
.footer-nav { display: flex; gap: 18px; flex-wrap: wrap; color: rgba(255,255,255,.72); font-size: 14px; }

/* Article */
.article-shell { max-width: 920px; margin: 0 auto; padding: 64px 24px 88px; }
.article-header { padding-bottom: 54px; border-bottom: 1px solid var(--border); }
.article-title { font-size: clamp(48px,8vw,82px); max-width: 820px; }
.article-subtitle {
  font-size: clamp(22px,3vw,32px);
  line-height: 1.24;
  color: var(--muted);
  max-width: 760px;
  margin-bottom: 28px;
}
.article-meta { display: flex; flex-wrap: wrap; gap: 10px; }
.article-meta span {
  padding: 7px 11px;
  border-radius: 999px;
  background: var(--gray);
  border: 1px solid var(--border);
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
}
.article-section { padding: 58px 0; border-bottom: 1px solid var(--border); }
.article-section h2 { max-width: 800px; }
.article-section > p { font-size: 19px; line-height: 1.76; max-width: 790px; }
.article-opening { padding-top: 62px; }
.opening-line {
  font-size: clamp(30px,4.5vw,52px)!important;
  line-height: 1.08!important;
  letter-spacing: -.04em;
  color: var(--text)!important;
  font-weight: 760;
  margin-bottom: 8px;
}
.accent-line { color: var(--accent-dark)!important; margin-bottom: 42px; }
.article-callout { max-width: 790px; margin: 32px 0; }
.article-callout.large { font-size: clamp(18px,2.4vw,26px); line-height: 1.55; }
.inline-quote {
  color: var(--code);
  font-family: "IBM Plex Mono","SFMono-Regular",Consolas,monospace;
  background: var(--soft);
  border-left: 4px solid var(--accent);
  padding: 16px 18px;
  margin: 22px 0;
  max-width: 760px;
}
.article-pills { margin-bottom: 28px; }
.comparison-grid {
  display: grid;
  grid-template-columns: repeat(2,minmax(0,1fr));
  gap: 18px;
  margin: 30px 0;
}
.comparison-card {
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 24px;
  background: var(--gray);
}
.comparison-card.highlighted { background: var(--soft); border-color: rgba(54,198,180,.75); }
.comparison-label {
  display: block;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .08em;
  margin-bottom: 16px;
}
.comparison-card pre {
  margin: 0;
  white-space: pre-wrap;
  color: var(--code);
  font-family: "IBM Plex Mono","SFMono-Regular",Consolas,monospace;
  line-height: 1.7;
}
.article-flow, .article-diagram { margin: 30px 0; }
.article-trends { grid-template-columns: repeat(3,minmax(0,1fr)); margin-bottom: 30px; }
.closing-statement { margin-top: 32px; padding: 24px; background: var(--gray); border-radius: 14px; }
.closing-statement p { color: var(--text); font-size: 20px; font-weight: 650; margin-bottom: 8px; }
.closing-statement p:last-child { margin-bottom: 0; }
.article-conclusion { border-bottom: 0; }
.signature { color: var(--text)!important; font-weight: 750; margin-top: 34px; }
.signature span { color: var(--muted); font-weight: 500; }
.article-next { border-top: 1px solid var(--border); padding-top: 42px; display: grid; gap: 14px; }
.article-next a {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  padding: 20px 22px;
  border: 1px solid var(--border);
  border-radius: 12px;
}
.article-next a:hover { border-color: var(--accent); transform: translateY(-1px); }
.article-next span {
  color: var(--muted);
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: .08em;
  font-weight: 800;
}
.article-next strong { text-align: right; }

@media(max-width:820px) {
  .comparison-grid, .article-trends, .spec-grid { grid-template-columns: 1fr; }
}
@media(max-width:720px) {
  .nav-toggle { display: flex; }
  .site-nav {
    position: absolute;
    left: 24px;
    right: 24px;
    top: 94px;
    display: none;
    flex-direction: column;
    align-items: flex-start;
    padding: 18px;
    background: #fff;
    border: 1px solid var(--border);
    border-radius: 12px;
    box-shadow: 0 18px 44px rgba(23,35,52,.12);
    z-index: 10;
  }
  .site-nav.open { display: flex; }
}
@media(max-width:620px) {
  .article-shell { padding: 36px 20px 72px; }
  .article-section { padding: 46px 0; }
  .article-next a { flex-direction: column; }
  .article-next strong { text-align: left; }
}
