/* ============================================================
   Design: terminal-native command center
   Palette: #0B0F12 bg / #151A1F panel / #F4F0E8 fg
            #A8B0B7 muted / #7CFFB2 green / #6EE7F9 blue
   Font: Inter system stack / JetBrains Mono mono stack
   ============================================================ */

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

:root {
  --bg:       #0B0F12;
  --panel:    #151A1F;
  --fg:       #F4F0E8;
  --muted:    #A8B0B7;
  --green:    #7CFFB2;
  --blue:     #6EE7F9;
  --border:   rgba(244,240,232,0.08);
  --font-sans: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --font-mono: "JetBrains Mono", "SF Mono", Menlo, Consolas, monospace;
  --radius:   6px;
  --max-w:    1140px;
}

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--fg);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

/* ---- Utilities ---- */
.container {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 24px;
}

.muted { color: var(--muted); font-weight: 400; }

.section-heading {
  font-size: clamp(22px, 3vw, 32px);
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 48px;
}

.section-subhead {
  color: var(--muted);
  margin-top: -36px;
  margin-bottom: 40px;
  font-size: 14px;
}

/* ---- Scroll reveal ---- */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}
.reveal.visible {
  opacity: 1;
  transform: none;
}

@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
}

/* ============================================================
   HERO
   ============================================================ */
.hero {
  display: grid;
  grid-template-columns: min(520px, 46%) 1fr;
  min-height: 86vh;
  overflow: hidden;
  border-bottom: 1px solid var(--border);
}

.hero-scene {
  order: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0.65;
  pointer-events: none;
  padding: 48px 24px;
  overflow: hidden;
}

#hero-svg {
  width: 100%;
  height: auto;
  max-height: 80vh;
}

/* SVG pane styles */
.pane rect {
  fill: var(--panel);
  stroke: var(--border);
  stroke-width: 1;
}
.pane-lead rect {
  stroke: var(--green);
  stroke-width: 1.5;
}
.pane-worker rect {
  stroke: var(--border);
}
.pane-label {
  font-family: var(--font-mono);
  font-size: 9px;
  fill: var(--green);
  font-weight: 600;
}
.pane-provider {
  font-family: var(--font-mono);
  font-size: 7px;
  fill: var(--muted);
}
.pane-line {
  font-family: var(--font-mono);
  font-size: 8px;
  fill: var(--fg);
}
.pane-line.dim { fill: var(--muted); }
.pane-cursor {
  font-family: var(--font-mono);
  font-size: 9px;
  fill: var(--green);
}
.pane-cursor.hidden { display: none; }

.hero-content {
  order: 1;
  padding: 80px 40px 80px 24px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-width: 0;
}

.hero-pill {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--green);
  border: 1px solid rgba(124,255,178,0.3);
  border-radius: 100px;
  padding: 3px 12px;
  margin-bottom: 24px;
  letter-spacing: 0.04em;
}

.hero-h1 {
  font-size: clamp(48px, 8vw, 88px);
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 1.0;
  margin-bottom: 12px;
}

.hero-subtitle {
  font-family: var(--font-mono);
  font-size: 14px;
  color: var(--muted);
  margin-bottom: 20px;
}

.hero-body {
  font-size: 17px;
  color: var(--muted);
  max-width: 480px;
  margin-bottom: 36px;
  line-height: 1.65;
}

.hero-cta {
  display: flex;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
}

.install-block {
  display: flex;
  align-items: center;
  gap: 0;
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
}

.install-cmd {
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--green);
  padding: 10px 16px;
  white-space: nowrap;
}

.copy-btn {
  background: none;
  border: none;
  border-left: 1px solid var(--border);
  color: var(--muted);
  cursor: pointer;
  padding: 10px 12px;
  display: flex;
  align-items: center;
  transition: color 0.15s;
}
.copy-btn:hover { color: var(--green); }

.hero-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--muted);
  text-decoration: none;
  font-size: 14px;
  transition: color 0.15s;
}
.hero-link:hover { color: var(--fg); }

/* ============================================================
   WHY SECTION
   ============================================================ */
.why-section {
  padding: 96px 0;
  border-bottom: 1px solid var(--border);
}

.cards-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  border: 0;
  border-radius: 0;
  overflow: visible;
  gap: 16px;
}

.card {
  background: #0B0F12;
  padding: 32px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  border: 1px solid rgba(244,240,232,0.10);
  border-radius: 8px;
  box-shadow: none;
}

.card-icon {
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--panel);
  border-radius: 6px;
  flex-shrink: 0;
}

.card-title {
  font-size: 15px;
  font-weight: 600;
  letter-spacing: -0.01em;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.card-zh {
  font-size: 11px;
  font-weight: 400;
  color: var(--muted);
  font-family: var(--font-mono);
}

.card-body {
  font-size: 14px;
  color: var(--muted);
  line-height: 1.65;
}

.card-body code {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--blue);
  background: var(--panel);
  padding: 1px 5px;
  border-radius: 3px;
}

/* cross-lab image */
.card-diagram {
  margin-top: 8px;
  border-radius: 4px;
  border: 1px solid var(--border);
  width: 100%;
  height: auto;
  display: block;
}

/* ============================================================
   HOW IT WORKS
   ============================================================ */
.how-section {
  padding: 96px 0;
  border-bottom: 1px solid var(--border);
}

.steps {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.step {
  display: grid;
  grid-template-columns: 64px 1fr;
  gap: 24px;
  padding: 32px 0;
  border-bottom: 1px solid var(--border);
}
.step:last-of-type { border-bottom: none; }

.step-num {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 600;
  color: var(--green);
  letter-spacing: 0.06em;
  padding-top: 4px;
}

.step-content h3 {
  font-size: 17px;
  font-weight: 600;
  margin-bottom: 8px;
}

.step-content p {
  font-size: 14px;
  color: var(--muted);
  margin-bottom: 16px;
  max-width: 680px;
}

.step-connector { display: none; }

.code-block {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 16px 20px;
  overflow-x: auto;
}

.code-block code {
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--fg);
  line-height: 1.7;
  white-space: pre;
}

.three-principles {
  margin-top: 64px;
}

.principles-heading {
  font-size: 15px;
  font-weight: 600;
  color: var(--muted);
  margin-bottom: 24px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-size: 11px;
}

.principles-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 24px;
}

.principle {
  display: flex;
  gap: 16px;
  align-items: flex-start;
}

.principle-num {
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 700;
  color: var(--green);
  border: 1px solid rgba(124,255,178,0.3);
  border-radius: 3px;
  padding: 2px 6px;
  flex-shrink: 0;
  margin-top: 2px;
}

.principle p {
  font-size: 13px;
  color: var(--muted);
  line-height: 1.6;
}

.principle strong { color: var(--fg); }

/* ============================================================
   EXAMPLES
   ============================================================ */
.examples-section {
  padding: 96px 0;
  border-bottom: 1px solid var(--border);
}

.examples-list {
  display: flex;
  flex-direction: column;
  gap: 0;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
}

.example-item {
  border-bottom: 1px solid var(--border);
  background: var(--bg);
}
.example-item:last-child { border-bottom: none; }

.example-summary {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px 20px;
  cursor: pointer;
  list-style: none;
  user-select: none;
  flex-wrap: wrap;
}
.example-summary::-webkit-details-marker { display: none; }
.example-summary:hover { background: var(--panel); }

.example-scenario {
  font-size: 14px;
  font-weight: 600;
  color: var(--fg);
  flex-shrink: 0;
}

.example-meta {
  display: flex;
  gap: 6px;
  align-items: center;
  flex-wrap: wrap;
  flex: 1;
}

.chip {
  font-family: var(--font-mono);
  font-size: 10px;
  padding: 2px 8px;
  border-radius: 100px;
  border: 1px solid var(--border);
  color: var(--muted);
  white-space: nowrap;
}
.chip-green { border-color: rgba(124,255,178,0.3); color: var(--green); }
.chip-blue  { border-color: rgba(110,231,249,0.3); color: var(--blue); }

.example-chevron {
  color: var(--muted);
  margin-left: auto;
  transition: transform 0.2s;
  flex-shrink: 0;
}

details[open] .example-chevron { transform: rotate(180deg); }

@media (prefers-reduced-motion: reduce) {
  .example-chevron { transition: none; }
}

.example-body {
  padding: 0 20px 20px;
  overflow: hidden;
}

.transcript {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 16px 20px;
  overflow-x: auto;
  counter-reset: line;
}

.transcript code {
  font-family: var(--font-mono);
  font-size: 12px;
  line-height: 1.8;
  color: var(--fg);
  white-space: pre;
  display: block;
}

.t-you   { color: var(--green); font-weight: 600; }
.t-lead  { color: var(--blue); font-weight: 600; }
.t-worker { color: #E8C97A; font-weight: 600; }
.t-comment { color: var(--muted); }

/* ============================================================
   QUICKSTART
   ============================================================ */
.quickstart-section {
  padding: 96px 0;
  border-bottom: 1px solid var(--border);
}

.qs-steps {
  display: flex;
  flex-direction: column;
  gap: 32px;
  margin-bottom: 48px;
}

.qs-step {
  display: grid;
  grid-template-columns: 32px 1fr;
  gap: 20px;
  align-items: start;
}

.qs-num {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--green);
  flex-shrink: 0;
}

.qs-content {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.qs-label {
  font-size: 12px;
  font-weight: 600;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.qs-source-install {
  padding-top: 32px;
  border-top: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  gap: 10px;
}

/* ============================================================
   FAQ
   ============================================================ */
.faq-section {
  padding: 96px 0;
  border-bottom: 1px solid var(--border);
}

.faq-list {
  display: flex;
  flex-direction: column;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
}

.faq-item {
  border-bottom: 1px solid var(--border);
  background: var(--bg);
}
.faq-item:last-child { border-bottom: none; }

.faq-q {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 20px;
  cursor: pointer;
  list-style: none;
  font-size: 14px;
  font-weight: 500;
  color: var(--fg);
  user-select: none;
}
.faq-q::-webkit-details-marker { display: none; }
.faq-q:hover { background: var(--panel); }
.faq-q::after {
  content: "+";
  font-family: var(--font-mono);
  font-size: 16px;
  color: var(--muted);
  flex-shrink: 0;
}
details[open] .faq-q::after { content: "−"; }

.faq-a {
  padding: 0 20px 20px;
}

.faq-a p {
  font-size: 14px;
  color: var(--muted);
  line-height: 1.65;
  max-width: 720px;
}

.faq-a code {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--blue);
  background: var(--panel);
  padding: 1px 5px;
  border-radius: 3px;
}

/* ============================================================
   FOOTER
   ============================================================ */
.site-footer {
  padding: 48px 0;
  border-top: 1px solid var(--border);
}

.footer-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 24px;
}

.footer-brand {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.footer-name {
  font-size: 14px;
  font-weight: 700;
}

.footer-tagline {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--muted);
}

.footer-links {
  display: flex;
  gap: 20px;
  margin-left: auto;
}

.footer-links a {
  font-size: 13px;
  color: var(--muted);
  text-decoration: none;
}
.footer-links a:hover { color: var(--fg); }

.footer-license {
  width: 100%;
  font-size: 12px;
  color: var(--muted);
  opacity: 0.6;
}

/* ============================================================
   COPY TOAST
   ============================================================ */
.copy-toast {
  position: fixed;
  bottom: 24px;
  right: 24px;
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 8px 16px;
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--green);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s;
  z-index: 100;
}
.copy-toast.show { opacity: 1; }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 980px) {
  .cards-grid { grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); }
}

@media (min-width: 1280px) {
  .hero {
    grid-template-columns: minmax(520px, 600px) minmax(680px, 920px);
    justify-content: center;
  }
  .hero-content {
    max-width: 600px;
    padding: 80px 48px 80px 32px;
  }
  .hero-h1 {
    font-size: clamp(64px, 5.4vw, 84px);
    line-height: 1;
    max-width: 600px;
  }
  #hero-svg { max-width: 920px; }
}

@media (max-width: 860px) {
  .hero { grid-template-columns: 1fr; min-height: auto; }
  .hero-scene {
    display: flex;
    order: 1;
    height: 300px;
    padding: 32px 24px 0;
    opacity: 0.72;
  }
  .hero-content { order: 2; padding: 32px 24px 64px; }
  #hero-svg { width: min(100%, 680px); max-height: 300px; }
  #worker-test, #worker-review,
  #traces line:nth-child(3), #traces line:nth-child(4),
  #packets { display: none; }
}

@media (max-width: 640px) {
  .why-section,
  .how-section,
  .examples-section,
  .quickstart-section,
  .faq-section { padding: 56px 0; }

  .hero-scene { height: 210px; padding: 24px 12px 0; }
  #hero-svg { max-height: 210px; }
  .hero-content { padding: 28px 24px 56px; }

  .hero-h1 { font-size: clamp(40px, 10vw, 56px); }

  .install-cmd { font-size: 11px; }

  .step { grid-template-columns: 1fr; gap: 12px; }
  .step-num { display: none; }

  .footer-inner { flex-direction: column; align-items: flex-start; }
  .footer-links { margin-left: 0; }

  .qs-step { grid-template-columns: 1fr; }
  .qs-num { display: none; }

  .example-summary { gap: 8px; }
}

@media (max-width: 360px) {
  .hero-h1 { font-size: 36px; }
  .install-cmd { font-size: 10px; word-break: break-all; white-space: normal; }
}

/* ============================================================
   NAV BAR
   ============================================================ */
.site-nav {
  position: sticky;
  top: 0;
  z-index: 60;
  background: rgba(11,15,18,0.92);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}

.nav-inner {
  display: flex;
  align-items: center;
  height: 52px;
  gap: 0;
}

.nav-brand {
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 700;
  color: var(--green);
  text-decoration: none;
  letter-spacing: 0.03em;
  flex-shrink: 0;
  margin-right: 24px;
}

.nav-links {
  display: flex;
  list-style: none;
  gap: 0;
  flex: 1;
}

.nav-links a {
  font-size: 13px;
  color: var(--muted);
  text-decoration: none;
  padding: 6px 10px;
  display: block;
  transition: color 0.15s;
}
.nav-links a:hover { color: var(--fg); }

/* ============================================================
   LANGUAGE SWITCHER
   ============================================================ */
.lang-switcher {
  display: flex;
  align-items: center;
  gap: 0;
  border: 1px solid rgba(124,255,178,0.35);
  border-radius: 8px;
  background: rgba(21,26,31,0.82);
  overflow: hidden;
  flex-shrink: 0;
  height: 32px;
  width: 88px;
  margin-left: 16px;
}

.lang-btn {
  flex: 1;
  background: none;
  border: none;
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 500;
  cursor: pointer;
  height: 100%;
  transition: background 0.15s, color 0.15s;
  letter-spacing: 0.02em;
}
.lang-btn:hover { color: var(--fg); }
.lang-btn.active {
  background: var(--green);
  color: #0B0F12;
  font-weight: 700;
}

/* ============================================================
   BLOG SECTION (landing page)
   ============================================================ */
.blog-section {
  padding: 96px 0;
  border-bottom: 1px solid var(--border);
}

.blog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 340px), 1fr));
  border: 0;
  border-radius: 0;
  overflow: visible;
  gap: 16px;
}

.blog-card {
  background: #0B0F12;
  border: 1px solid rgba(244,240,232,0.10);
  border-radius: 8px;
  box-shadow: none;
}

.blog-card-link {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 28px 32px;
  text-decoration: none;
  color: inherit;
  height: 100%;
  transition: background 0.15s;
}
.blog-card-link:hover { background: var(--panel); }

.blog-card-meta {
  display: flex;
  align-items: center;
  gap: 10px;
}

.blog-card-date {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--muted);
}

.blog-card-title {
  font-size: 17px;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--fg);
  line-height: 1.3;
}

.blog-card-dek {
  font-size: 14px;
  color: var(--muted);
  line-height: 1.65;
  flex: 1;
}

.blog-card-cta {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--green);
  letter-spacing: 0.04em;
}

.blog-section-all {
  margin-top: 24px;
}

.blog-section-all a {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--muted);
  text-decoration: none;
}
.blog-section-all a:hover { color: var(--fg); }

/* ============================================================
   BLOG INDEX PAGE
   ============================================================ */
.blogindex-header {
  padding: 96px 0 48px;
  border-bottom: 1px solid var(--border);
}

.blogindex-heading {
  font-size: clamp(28px, 4vw, 40px);
  font-weight: 800;
  letter-spacing: -0.03em;
  margin-bottom: 8px;
}

.blogindex-subhead {
  font-size: 14px;
  color: var(--muted);
}

.blogindex-list {
  padding: 0 0 96px;
}

.post-row {
  display: grid;
  grid-template-columns: 176px minmax(0,1fr);
  gap: 32px;
  padding: 28px 0;
  border-top: 1px solid rgba(168,176,183,0.18);
  align-items: start;
}

.post-row:last-child { border-bottom: 1px solid rgba(168,176,183,0.18); }

.post-meta {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding-top: 4px;
}

.post-date {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--muted);
}

.post-readtime {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--muted);
  opacity: 0.7;
}

.post-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
}

.post-tag {
  font-family: var(--font-mono);
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  border: 1px solid rgba(124,255,178,0.35);
  color: var(--green);
  border-radius: 3px;
  padding: 2px 8px;
  height: 22px;
  display: inline-flex;
  align-items: center;
}

.post-content { display: flex; flex-direction: column; gap: 8px; }

.post-title {
  font-size: 20px;
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.2;
  color: var(--fg);
}

.post-title a {
  color: inherit;
  text-decoration: none;
}
.post-title a:hover { color: var(--green); }

.post-excerpt {
  font-size: 14px;
  color: var(--muted);
  line-height: 1.65;
  max-width: 640px;
}

.post-read-link {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--green);
  text-decoration: none;
}
.post-read-link:hover { text-decoration: underline; }

/* ============================================================
   ARTICLE PAGE
   ============================================================ */
.article-nav-bar {
  padding: 14px 0;
  border-bottom: 1px solid var(--border);
}

.article-back {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--muted);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.article-back::before { content: "\2190"; }
.article-back:hover { color: var(--fg); }

.article-header {
  padding: 88px 0 56px;
  border-bottom: 1px solid var(--border);
  max-width: 760px;
}

.article-tags {
  display: flex;
  gap: 6px;
  margin-bottom: 20px;
}

.article-title {
  font-size: clamp(36px, 5vw, 52px);
  line-height: 1.05;
  font-weight: 800;
  letter-spacing: -0.03em;
  margin-bottom: 20px;
}

.article-dek {
  font-size: 18px;
  color: var(--muted);
  line-height: 1.65;
  max-width: 640px;
  margin-bottom: 20px;
}

.article-byline {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--muted);
  display: flex;
  gap: 20px;
}

/* Article body — centered column */
.article-body {
  max-width: 760px;
  padding: 56px 0 96px;
}

.article-body p {
  font-size: 18px;
  line-height: 1.72;
  color: var(--muted);
  margin-bottom: 1.15rem;
}

.article-body h2 {
  font-size: 26px;
  line-height: 1.2;
  font-weight: 700;
  color: var(--fg);
  letter-spacing: -0.02em;
  margin: 40px 0 16px;
}

.article-body h3 {
  font-size: 18px;
  font-weight: 600;
  color: var(--fg);
  margin: 28px 0 10px;
}

.article-body strong { color: var(--fg); }
.article-body em { color: var(--fg); font-style: italic; }

.article-body ul, .article-body ol {
  padding-left: 24px;
  margin-bottom: 1.15rem;
}

.article-body li {
  font-size: 18px;
  line-height: 1.72;
  color: var(--muted);
  margin-bottom: 6px;
}

.article-body code {
  font-family: var(--font-mono);
  font-size: 14px;
  color: var(--blue);
  background: var(--panel);
  padding: 1px 6px;
  border-radius: 3px;
}

.article-body pre {
  background: #151A1F;
  border: 1px solid rgba(110,231,249,0.24);
  border-radius: 8px;
  padding: 18px;
  overflow-x: auto;
  margin-bottom: 1.15rem;
}

.article-body pre code {
  background: none;
  padding: 0;
  font-size: 13px;
  line-height: 1.65;
  color: var(--fg);
}

.article-body blockquote {
  border-left: 2px solid var(--green);
  margin: 0 0 1.15rem;
  padding: 4px 0 4px 20px;
}

.article-body blockquote p {
  font-size: 16px;
  font-style: italic;
  color: var(--fg);
  margin-bottom: 0;
}

.article-body hr {
  border: none;
  border-top: 1px solid var(--border);
  margin: 40px 0;
}

/* Deck iframe — full bleed relative to outer container */
.deck-module-header {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 16px;
  margin-bottom: 12px;
}

.deck-module-title {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.deck-module-open {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--green);
  text-decoration: none;
}
.deck-module-open:hover { text-decoration: underline; }

.deck-module-open-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 32px;
  padding: 0 12px;
  border: 1px solid rgba(124,255,178,0.45);
  border-radius: 8px;
  background: #7CFFB2;
  color: #0B0F12;
  text-decoration: none;
}

.deck-module.deck-breakout {
  --deck-max-w: 1760px;
  --deck-gutter-w: calc(100vw - 48px);
  --deck-height-fit-w: calc((100dvh - 168px) * 16 / 9);
  width: min(var(--deck-max-w), var(--deck-gutter-w), var(--deck-height-fit-w));
  max-width: none;
  margin: 56px 0 40px 50%;
  transform: translateX(-50%);
}

@supports not (height: 100dvh) {
  .deck-module.deck-breakout {
    --deck-height-fit-w: calc((100vh - 168px) * 16 / 9);
  }
}

.deck-wrapper.deck-frame {
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  border: 1px solid rgba(110,231,249,0.35);
  border-radius: 8px;
  background: #0B0F12;
  overflow: hidden;
}

.deck-frame iframe {
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
}

.deck-caption {
  margin-top: 8px;
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--muted);
}

/* ============================================================
   MOBILE — nav + new sections
   ============================================================ */
@media (max-width: 640px) {
  .nav-links { display: none; }
  .nav-brand { margin-right: auto; }

  .blog-section { padding: 56px 0; }
  .blog-card-link { padding: 20px; }

  .blogindex-header { padding: 56px 0 32px; }
  .blogindex-list { padding: 0 0 64px; }
  .post-row {
    grid-template-columns: 1fr;
    gap: 12px;
    padding: 24px 0;
  }
  .post-meta { flex-direction: row; flex-wrap: wrap; align-items: center; gap: 10px; }

  .article-header { padding: 56px 0 40px; }
  .article-body { padding: 40px 0 64px; }
  .article-body p, .article-body li { font-size: 16px; }
  .article-body h2 { font-size: 22px; }

  .deck-module.deck-breakout {
    width: calc(100vw - 48px);
    margin-top: 40px;
    margin-bottom: 32px;
  }
  .deck-module-header {
    grid-template-columns: 1fr;
    align-items: start;
  }
  .deck-module-open-primary { width: 100%; }
}

@media (max-width: 360px) {
  .lang-switcher { width: 84px; }
  .lang-btn { font-size: 11px; }
}

