/* WireFrame EDA — marketing pages (landing, pricing, sponsor, blog, about).
   Builds on style.css: same tokens (--primary, --surface…), same light/dark themes. */

/* ── Generic page header ─────────────────────────────────────────────── */
/* The glow is 600 px wide: on a phone it pushed every page 288 px wider than the
   screen (body's overflow-x: hidden does not stop a phone widening the viewport).
   clip, not hidden: no scroll container, so sticky columns further down still work. */
.page-hero { padding: 130px 0 50px; text-align: center; position: relative; overflow-x: clip; }
.page-hero h1 { font-size: clamp(32px, 5vw, 52px); line-height: 1.1; margin: 14px 0 16px; }
.page-hero p.lead { color: var(--text-muted); max-width: 720px; margin: 0 auto; font-size: 1.1rem; line-height: 1.7; }
.page-hero .hero-glow { opacity: 0.6; }
.kicker { font-family: var(--font-tech); font-size: 12px; letter-spacing: 2px; color: var(--primary); text-transform: uppercase; }

/* ── Badges ──────────────────────────────────────────────────────────── */
.badge { display: inline-block; font-family: var(--font-tech); font-size: 10.5px; letter-spacing: 1px;
  text-transform: uppercase; padding: 3px 8px; border-radius: 999px; border: 1px solid var(--border-light); color: var(--text-muted); }
.badge-ok { color: var(--success); border-color: color-mix(in srgb, var(--success) 45%, transparent); }
.badge-dev { color: var(--warning); border-color: color-mix(in srgb, var(--warning) 45%, transparent); }
.badge-primary { color: var(--primary); border-color: color-mix(in srgb, var(--primary) 50%, transparent); }

/* ── App screenshot frame ────────────────────────────────────────────── */
.shot-section { padding: 10px 0 80px; }
.shot { position: relative; border-radius: var(--radius-xl); border: 1px solid var(--border-light);
  background: var(--surface); overflow: hidden;
  box-shadow: 0 30px 80px -20px rgba(0, 229, 255, 0.18), 0 0 0 1px rgba(255,255,255,0.02); }
.shot::before { content: ""; display: block; height: 30px; background: var(--surface-2);
  border-bottom: 1px solid var(--border); }
.shot .dots { position: absolute; top: 10px; left: 14px; display: flex; gap: 6px; }
.shot .dots i { width: 10px; height: 10px; border-radius: 50%; background: var(--border-light); display: block; }
.shot img, .shot video { display: block; width: 100%; height: auto; }
.ai-film { margin-top: 40px; }
.shot-caption { text-align: center; color: var(--text-dim); font-size: 13px; margin-top: 14px; }
.shot-pair { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; margin-top: 24px; }

/* ── Highlights ("what's new") ───────────────────────────────────────── */
.highlights { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 18px; }
.highlight { border: 1px solid var(--border); background: var(--surface); border-radius: var(--radius-lg);
  padding: 22px; transition: var(--transition); }
.highlight:hover { border-color: color-mix(in srgb, var(--primary) 40%, var(--border)); transform: translateY(-3px); }
.highlight h3 { font-size: 17px; margin: 12px 0 8px; }
.highlight p { color: var(--text-muted); font-size: 14px; line-height: 1.65; }

/* ── AI section ──────────────────────────────────────────────────────── */
.ai-split { display: grid; grid-template-columns: 1.05fr 1fr; gap: 48px; align-items: center; }
.ai-steps { counter-reset: step; display: grid; gap: 14px; }
.ai-step { position: relative; padding: 18px 20px 18px 64px; border: 1px solid var(--border);
  border-radius: var(--radius-lg); background: var(--surface); }
.ai-step::before { counter-increment: step; content: counter(step, decimal-leading-zero);
  position: absolute; left: 18px; top: 18px; font-family: var(--font-tech); font-weight: 700; color: var(--primary); }
.ai-step h4 { font-size: 16px; margin-bottom: 6px; }
.ai-step p { color: var(--text-muted); font-size: 14px; line-height: 1.6; }
.chat-mock { border: 1px solid var(--border-light); border-radius: var(--radius-xl); background: var(--surface);
  padding: 20px; font-size: 14px; box-shadow: 0 20px 60px -25px rgba(0, 229, 255, 0.25); }
.chat-mock .msg { padding: 12px 14px; border-radius: 12px; margin-bottom: 10px; line-height: 1.55; }
.chat-mock .me { background: var(--primary-subtle); border: 1px solid color-mix(in srgb, var(--primary) 30%, transparent); margin-left: 12%; }
.chat-mock .bot { background: var(--surface-2); border: 1px solid var(--border); margin-right: 8%; }
.chat-mock .bot b { color: var(--primary); font-family: var(--font-tech); font-weight: 600; }
.chat-mock code { font-family: var(--font-tech); font-size: 12.5px; color: var(--primary); }
.chat-mock .row-warn { color: var(--warning); }
.chat-mock .row-ok { color: var(--success); }

/* ── Plans ───────────────────────────────────────────────────────────── */
.plan-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 18px; align-items: stretch; }
.plan-card { border: 1px solid var(--border); border-radius: var(--radius-xl); background: var(--surface);
  padding: 26px 22px; display: flex; flex-direction: column; position: relative; }
.plan-card.featured { border-color: var(--primary); box-shadow: 0 0 0 1px var(--primary), 0 20px 60px -30px var(--primary); }
.plan-card .plan-tag { position: absolute; top: -11px; left: 22px; background: var(--primary); color: #000;
  font-family: var(--font-tech); font-size: 10px; letter-spacing: 1px; padding: 3px 8px; border-radius: 999px; }
.plan-card h3 { font-family: var(--font-tech); font-size: 15px; letter-spacing: 1px; text-transform: uppercase; color: var(--text-muted); }
.plan-card .price { font-size: 30px; font-weight: 700; margin: 10px 0 2px; }
.plan-card .period { color: var(--text-dim); font-size: 13px; margin-bottom: 14px; }
.plan-card .lead { font-size: 14px; margin-bottom: 14px; }
.plan-card ul { list-style: none; padding: 0; margin: 0 0 22px; display: grid; gap: 9px; flex: 1; align-content: start; }
.plan-card li { font-size: 14px; color: var(--text-muted); padding-left: 22px; position: relative; line-height: 1.5; }
.plan-card li::before { content: "✓"; position: absolute; left: 0; color: var(--primary); font-weight: 700; }
.plan-card .btn-neon, .plan-card .btn-ghost { text-align: center; justify-content: center; }

/* ── Sponsor ─────────────────────────────────────────────────────────── */
.sponsor-band { border: 1px solid var(--border-light); border-radius: var(--radius-xl); padding: 40px;
  background: radial-gradient(800px 300px at 15% 0%, var(--primary-glow), transparent 60%), var(--surface);
  display: grid; grid-template-columns: 1.4fr 1fr; gap: 30px; align-items: center; }
.sponsor-band h2 { font-size: 30px; margin-bottom: 12px; }
.sponsor-band p { color: var(--text-muted); line-height: 1.7; }
.sponsor-slots { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.sponsor-slot { aspect-ratio: 3 / 2; border: 1px dashed var(--border-light); border-radius: var(--radius);
  display: flex; align-items: center; justify-content: center; color: var(--text-dim); font-family: var(--font-tech);
  font-size: 11px; text-align: center; padding: 6px; }
.reason-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 18px; }
.tier-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 18px; }
.form-card { border: 1px solid var(--border-light); border-radius: var(--radius-xl); background: var(--surface);
  padding: 30px; max-width: 760px; margin: 0 auto; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.form-grid .full { grid-column: 1 / -1; }
.form-grid label { display: block; font-family: var(--font-tech); font-size: 11px; letter-spacing: 1px;
  color: var(--text-muted); margin-bottom: 6px; text-transform: uppercase; }
.form-grid input, .form-grid select, .form-grid textarea { width: 100%; box-sizing: border-box; background: var(--background);
  border: 1px solid var(--border-light); color: var(--text); border-radius: var(--radius); padding: 11px 12px;
  font: inherit; font-size: 14px; }
.form-grid input:focus, .form-grid select:focus, .form-grid textarea:focus { outline: none; border-color: var(--primary); }
.form-note { color: var(--text-dim); font-size: 12px; margin-top: 12px; }
.form-result { margin-top: 14px; font-size: 14px; display: none; }
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }

/* ── Blog ────────────────────────────────────────────────────────────── */
.post-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(290px, 1fr)); gap: 22px; }
.post-card { border: 1px solid var(--border); border-radius: var(--radius-lg); background: var(--surface);
  overflow: hidden; display: flex; flex-direction: column; text-decoration: none; color: inherit; transition: var(--transition); }
.post-card:hover { border-color: color-mix(in srgb, var(--primary) 45%, var(--border)); transform: translateY(-3px); }
.post-card .cover { aspect-ratio: 16 / 9; background: var(--surface-2) center / cover no-repeat; border-bottom: 1px solid var(--border); }
.post-card .body { padding: 18px 20px 22px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.post-card h3 { font-size: 18px; line-height: 1.35; }
.post-card p { color: var(--text-muted); font-size: 14px; line-height: 1.6; flex: 1; }
.post-meta { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; color: var(--text-dim); font-size: 12.5px; font-family: var(--font-tech); }
.filter-row { display: flex; gap: 8px; flex-wrap: wrap; justify-content: center; margin: 0 0 34px; }
.filter-row a { text-decoration: none; }
.filter-row a.on .badge { color: var(--primary); border-color: var(--primary); }

.article-wrap { display: grid; grid-template-columns: minmax(0, 1fr) 240px; gap: 50px; align-items: start; }
.article-head { padding: 120px 0 30px; max-width: 820px; }
.article-head h1 { font-size: clamp(30px, 4.4vw, 46px); line-height: 1.15; margin: 14px 0; }
.article-head .desc { color: var(--text-muted); font-size: 1.12rem; line-height: 1.7; }
.article-cover { border-radius: var(--radius-lg); border: 1px solid var(--border); overflow: hidden; margin-bottom: 36px; }
.article-cover img { width: 100%; display: block; }
.toc { position: sticky; top: 100px; border-left: 1px solid var(--border); padding-left: 18px; font-size: 13px; }
.toc h4 { font-family: var(--font-tech); font-size: 11px; letter-spacing: 1.5px; color: var(--text-dim); margin-bottom: 10px; }
.toc ul { list-style: none; padding: 0; margin: 0; }
.toc li { margin: 7px 0; }
.toc ul ul { padding-left: 12px; }
.toc a { color: var(--text-muted); text-decoration: none; }
.toc a:hover { color: var(--primary); }

.prose { font-size: 17px; line-height: 1.8; color: var(--text); max-width: 760px; }
.prose > * + * { margin-top: 1.1em; }
.prose h2 { font-size: 26px; margin-top: 2em; line-height: 1.3; scroll-margin-top: 90px; }
.prose h3 { font-size: 20px; margin-top: 1.6em; scroll-margin-top: 90px; }
.prose h2 .headerlink, .prose h3 .headerlink { opacity: 0; margin-left: 8px; color: var(--text-dim); text-decoration: none; }
.prose h2:hover .headerlink, .prose h3:hover .headerlink { opacity: 1; }
.prose p, .prose li { color: color-mix(in srgb, var(--text) 88%, var(--text-muted)); }
.prose a { color: var(--primary); }
.prose ul, .prose ol { padding-left: 1.4em; }
.prose li + li { margin-top: 0.4em; }
.prose code { font-family: var(--font-tech); font-size: 0.86em; background: var(--surface-2);
  border: 1px solid var(--border); border-radius: 5px; padding: 1px 6px; }
.prose pre { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 16px 18px; overflow-x: auto; }
.prose pre code { background: none; border: 0; padding: 0; font-size: 13.5px; line-height: 1.65; }
.prose blockquote { border-left: 3px solid var(--primary); padding: 6px 0 6px 18px; color: var(--text-muted); background: var(--primary-subtle); border-radius: 0 var(--radius) var(--radius) 0; }
.prose table { width: 100%; border-collapse: collapse; font-size: 15px; display: block; overflow-x: auto; }
.prose th, .prose td { border: 1px solid var(--border); padding: 9px 12px; text-align: left; }
.prose th { background: var(--surface-2); font-weight: 600; }
.prose img { max-width: 100%; border-radius: var(--radius); border: 1px solid var(--border); }
.article-foot { margin: 50px 0 20px; padding: 28px; border: 1px solid var(--border-light); border-radius: var(--radius-xl);
  background: var(--surface); display: flex; gap: 20px; align-items: center; justify-content: space-between; flex-wrap: wrap; }

/* ── About ───────────────────────────────────────────────────────────── */
.fact-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 14px; }
.fact { border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 18px; background: var(--surface); }
.fact b { display: block; font-family: var(--font-tech); color: var(--primary); font-size: 13px; margin-bottom: 6px; }
.fact span { color: var(--text-muted); font-size: 14px; line-height: 1.55; }

.section-narrow { max-width: 820px; margin: 0 auto; }
.center-cta { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; margin-top: 30px; }
.trademark-note { text-align: center; color: var(--text-dim); font-size: 12px; margin-top: 18px; }

/* ── Interactive Pipeline (Quilter-inspired workflow tabs) ──────────── */
.pipeline-section {
  position: relative;
  padding: 80px 0 100px;
  background: radial-gradient(1100px 500px at 50% 0%, rgba(0, 229, 255, 0.05), transparent 75%), var(--surface-2);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.pipeline-tabs {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 12px;
  margin-bottom: 34px;
  position: relative;
  z-index: 2;
}

.pipeline-tab {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 16px 14px 14px;
  text-align: left;
  cursor: pointer;
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 6px;
  user-select: none;
  outline: none;
  color: var(--text);
  transition: transform 0.28s cubic-bezier(0.16, 1, 0.3, 1),
              border-color 0.28s ease,
              background 0.28s ease,
              box-shadow 0.28s cubic-bezier(0.16, 1, 0.3, 1);
  overflow: hidden;
}

.pipeline-tab:hover {
  border-color: color-mix(in srgb, var(--primary) 45%, var(--border));
  background: color-mix(in srgb, var(--primary) 4%, var(--surface));
  transform: translateY(-3px);
  box-shadow: 0 12px 30px -10px rgba(0, 229, 255, 0.18);
}

.pipeline-tab.active {
  border-color: var(--primary);
  background: color-mix(in srgb, var(--primary) 8%, var(--surface));
  transform: translateY(-3px);
  box-shadow: 0 0 0 1px var(--primary), 0 16px 36px -12px rgba(0, 229, 255, 0.35);
}

.pipeline-tab-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.pipeline-step-num {
  font-family: var(--font-tech);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1.5px;
  color: var(--primary);
}

.pipeline-tab-badge {
  font-family: var(--font-tech);
  font-size: 9.5px;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 2px 6px;
  border-radius: 999px;
  background: var(--surface-2);
  border: 1px solid var(--border);
  color: var(--text-muted);
}

.pipeline-tab.active .pipeline-tab-badge {
  border-color: color-mix(in srgb, var(--primary) 40%, transparent);
  color: var(--primary);
  background: var(--primary-subtle);
}

.pipeline-tab-badge .live-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--primary);
  box-shadow: 0 0 8px var(--primary);
  display: inline-block;
}

.pipeline-tab-title {
  font-size: 14px;
  font-weight: 600;
  line-height: 1.3;
  color: var(--text);
  margin: 2px 0 0;
}

.pipeline-tab-desc {
  font-size: 11.5px;
  color: var(--text-muted);
  line-height: 1.4;
  margin: 0;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.pipeline-tab-indicator {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, transparent, var(--primary), transparent);
  opacity: 0;
  transform: scaleX(0.5);
  transition: opacity 0.25s ease, transform 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.pipeline-tab.active .pipeline-tab-indicator {
  opacity: 1;
  transform: scaleX(1);
}

/* ── Pipeline Panels ────────────────────────────────────────────────── */
.pipeline-panels {
  position: relative;
  min-height: 480px;
}

.pipeline-panel {
  display: none;
  opacity: 0;
  transform: translateY(14px) scale(0.995);
  transition: opacity 0.35s cubic-bezier(0.16, 1, 0.3, 1), transform 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

.pipeline-panel.active {
  display: grid;
  grid-template-columns: 1.05fr 1.15fr;
  gap: 32px;
  align-items: stretch;
  animation: panelEnter 0.35s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes panelEnter {
  from {
    opacity: 0;
    transform: translateY(14px) scale(0.99);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.panel-info-col {
  background: var(--surface);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-xl);
  padding: 30px;
  display: flex;
  flex-direction: column;
  gap: 18px;
  box-shadow: 0 20px 50px -20px rgba(0, 0, 0, 0.4);
}

.panel-info-col h3 {
  font-size: 23px;
  line-height: 1.25;
  margin: 0;
  color: var(--text);
}

.panel-info-col p {
  color: var(--text-muted);
  font-size: 14px;
  line-height: 1.65;
  margin: 0;
}

.panel-highlights {
  list-style: none;
  padding: 0;
  margin: 4px 0 0;
  display: grid;
  gap: 13px;
}

.panel-highlights li {
  display: flex;
  gap: 12px;
  align-items: flex-start;
}

.panel-bullet-icon {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  background: var(--primary-subtle);
  border: 1px solid color-mix(in srgb, var(--primary) 25%, transparent);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 15px;
  flex-shrink: 0;
}

.panel-highlights strong {
  display: block;
  font-size: 13.5px;
  color: var(--text);
  margin-bottom: 2px;
}

.panel-highlights span {
  display: block;
  font-size: 12.5px;
  color: var(--text-muted);
  line-height: 1.45;
}

.pipeline-mini-term {
  background: #030608;
  border: 1px solid var(--border-light);
  border-radius: var(--radius);
  padding: 12px 14px;
  font-family: var(--font-tech);
  font-size: 11.5px;
}

.term-header {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 8px;
  color: var(--text-dim);
  font-size: 10.5px;
  letter-spacing: 0.5px;
  text-transform: uppercase;
}

.term-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--primary);
  box-shadow: 0 0 6px var(--primary);
}

.term-body code {
  display: block;
  color: var(--text);
  margin-bottom: 4px;
  word-break: break-all;
  background: none;
  border: none;
  padding: 0;
}

.term-log-ok {
  display: block;
  color: var(--success);
  font-size: 11px;
  margin-top: 3px;
}

.panel-cta {
  margin-top: auto;
  padding-top: 4px;
}

/* ── Panel Visual Mock Window ───────────────────────────────────────── */
.panel-visual-col {
  display: flex;
  flex-direction: column;
}

.pipeline-mock-window {
  background: var(--surface);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: 0 25px 60px -25px rgba(0, 229, 255, 0.22), 0 0 0 1px rgba(255, 255, 255, 0.03);
  display: flex;
  flex-direction: column;
  height: 100%;
}

.mock-window-bar {
  height: 38px;
  background: var(--surface-2);
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 16px;
  font-family: var(--font-tech);
  font-size: 11px;
  color: var(--text-muted);
}

.mock-window-dots {
  display: flex;
  gap: 6px;
}

.mock-window-dots i {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  display: block;
}
.mock-window-dots i:nth-child(1) { background: #ff5f56; }
.mock-window-dots i:nth-child(2) { background: #ffbd2e; }
.mock-window-dots i:nth-child(3) { background: #27c93f; }

.mock-window-file {
  color: var(--text-muted);
  font-weight: 500;
}

.mock-window-status {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--primary);
  font-size: 10px;
  letter-spacing: 0.5px;
}

.mock-window-body {
  padding: 18px;
  display: flex;
  flex-direction: column;
  gap: 13px;
  flex: 1;
}

.mock-prompt-banner {
  background: var(--primary-subtle);
  border: 1px solid color-mix(in srgb, var(--primary) 30%, transparent);
  border-radius: var(--radius);
  padding: 8px 12px;
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12.5px;
  color: var(--text);
}

.mock-chips-row {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

.chip-item {
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 4px 9px;
  font-family: var(--font-tech);
  font-size: 11px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--text-muted);
}

.chip-item.active {
  border-color: color-mix(in srgb, var(--primary) 40%, transparent);
  color: var(--text);
  background: color-mix(in srgb, var(--primary) 5%, var(--surface-2));
}

.chip-badge {
  background: var(--primary);
  color: #000;
  border-radius: 3px;
  padding: 1px 4px;
  font-size: 9.5px;
  font-weight: 700;
}

.mock-schematic-preview,
.mock-routing-canvas {
  background: #03070a;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  position: relative;
}

.schematic-svg,
.routing-svg {
  width: 100%;
  height: auto;
  display: block;
}

.mock-telemetry-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 8px 12px;
  font-family: var(--font-tech);
  font-size: 11px;
  color: var(--text-muted);
  margin-top: auto;
}

.telem-item strong { color: var(--text); }
.telem-ok { color: var(--success); margin-left: auto; }

/* ── Grounding audit table ──────────────────────────────────────────── */
.audit-matrix-table {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  font-family: var(--font-tech);
  font-size: 11px;
}

.matrix-row {
  display: grid;
  grid-template-columns: 44px 75px 85px 1.4fr 95px;
  gap: 8px;
  align-items: center;
  padding: 7px 10px;
  border-bottom: 1px solid var(--border);
  background: var(--surface);
}

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

.matrix-row.matrix-head {
  background: var(--surface-2);
  font-weight: 600;
  color: var(--text-dim);
  text-transform: uppercase;
  font-size: 9.5px;
  letter-spacing: 0.5px;
}

.tech-mono { font-family: var(--font-tech); color: var(--primary); }
.tech-bold { font-weight: 600; color: var(--text); }
.tech-tag { font-size: 10px; color: var(--text-muted); }
.tech-dim { font-size: 10px; color: var(--text-dim); }
.badge-ok-pill { color: var(--success); font-size: 10px; font-weight: 700; }

/* ── Interactive layer bar & Routing ────────────────────────────────── */
.mock-layer-bar {
  display: flex;
  align-items: center;
  gap: 7px;
  flex-wrap: wrap;
}

.layer-label {
  font-family: var(--font-tech);
  font-size: 10.5px;
  color: var(--text-dim);
}

.pipeline-layer-btn {
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: 6px;
  color: var(--text-muted);
  font-family: var(--font-tech);
  font-size: 10.5px;
  padding: 4px 8px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  transition: all 0.2s ease;
  user-select: none;
}

.pipeline-layer-btn:hover {
  border-color: var(--primary);
  color: var(--text);
}

.pipeline-layer-btn.active {
  background: color-mix(in srgb, var(--primary) 12%, var(--surface-2));
  border-color: var(--primary);
  color: var(--primary);
  font-weight: 600;
}

.layer-dot { width: 7px; height: 7px; border-radius: 50%; }
.layer-fcu { background: #00E5FF; }
.layer-in1 { background: #00E676; }
.layer-in2 { background: #FF5722; }
.layer-bcu { background: #3D5AFE; }

.trace-glow-cyan {
  filter: drop-shadow(0 0 5px rgba(0, 229, 255, 0.7));
}

/* ── Oscilloscope / SPICE ───────────────────────────────────────────── */
.mock-scope-screen {
  background: #02080d;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 10px 12px;
}

.scope-header {
  display: flex;
  justify-content: space-between;
  font-family: var(--font-tech);
  font-size: 10.5px;
  color: var(--primary);
  margin-bottom: 6px;
}

.scope-footer {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px;
  font-family: var(--font-tech);
  font-size: 10.5px;
  color: var(--text-muted);
  margin-top: 6px;
}

.spice-wave-svg {
  width: 100%;
  height: auto;
  display: block;
}

/* ── Fabrication Package Checklist ──────────────────────────────────── */
.fab-package-checklist {
  display: grid;
  gap: 5px;
}

.fab-file-row {
  display: grid;
  grid-template-columns: 22px 130px 1fr 130px;
  gap: 8px;
  align-items: center;
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 6px 10px;
  font-size: 11.5px;
}

.fab-file-icon { font-size: 12px; }
.fab-file-name { font-family: var(--font-tech); color: var(--primary); font-size: 11px; }
.fab-file-desc { color: var(--text-muted); font-size: 11px; }
.fab-file-status { color: var(--success); font-family: var(--font-tech); font-size: 10.5px; text-align: right; }

.fab-download-box {
  background: var(--primary-subtle);
  border: 1px solid color-mix(in srgb, var(--primary) 30%, transparent);
  border-radius: var(--radius);
  padding: 10px 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.fab-download-info strong {
  display: block;
  font-family: var(--font-tech);
  font-size: 12px;
  color: var(--primary);
}

.fab-download-info span {
  display: block;
  font-size: 10.5px;
  color: var(--text-muted);
}

/* ── Global Card Transition & Hover Enhancements ────────────────────── */
.feature-card,
.highlight,
.plan-card,
.post-card {
  transition: transform 0.28s cubic-bezier(0.16, 1, 0.3, 1),
              border-color 0.28s ease,
              box-shadow 0.28s cubic-bezier(0.16, 1, 0.3, 1);
}

.feature-card:hover,
.highlight:hover,
.post-card:hover {
  transform: translateY(-4px);
  border-color: color-mix(in srgb, var(--primary) 45%, var(--border));
  box-shadow: 0 14px 35px -12px rgba(0, 229, 255, 0.22);
}

.plan-card:hover {
  transform: translateY(-4px);
  border-color: color-mix(in srgb, var(--primary) 50%, var(--border));
  box-shadow: 0 16px 40px -15px rgba(0, 229, 255, 0.25);
}

/* ── Responsive ──────────────────────────────────────────────────────── */
@media (max-width: 1080px) {
  .pipeline-tabs {
    grid-template-columns: repeat(3, 1fr);
  }
  .pipeline-panel.active {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 960px) {
  .ai-split, .sponsor-band, .article-wrap { grid-template-columns: 1fr; }
  .toc { display: none; }
  .shot-pair { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
  .pipeline-tabs {
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    padding-bottom: 10px;
    margin-bottom: 24px;
    gap: 10px;
    -webkit-overflow-scrolling: touch;
  }
  .pipeline-tab {
    flex: 0 0 240px;
    scroll-snap-align: start;
  }
  .matrix-row {
    grid-template-columns: 36px 65px 70px 1fr 80px;
    font-size: 10px;
  }
  .fab-file-row {
    grid-template-columns: 20px 100px 1fr;
  }
  .fab-file-row .fab-file-status {
    grid-column: 2 / -1;
    text-align: left;
  }
}

@media (max-width: 640px) {
  .form-grid { grid-template-columns: 1fr; }
  .sponsor-band { padding: 26px; }
  .prose { font-size: 16px; }
  .page-hero { padding-top: 110px; }
  .panel-info-col { padding: 20px; }
  .mock-window-body { padding: 14px; }
}


/* Who-does-what diagrams outside the home page (components/flow.html) */
.flow-head { margin-bottom: 28px; }
.flow-title { font-size: 22px; margin: 0 0 6px; }
.flow-sub { color: var(--text-muted); margin: 0 0 22px; font-size: 14.5px; }
.feature-flow .proc { margin-bottom: 8px; }
.ai-chat-solo { max-width: 720px; margin: 48px auto 0; }

/* Line-art illustrations (static/img/art): a dark drawing in a rounded frame,
   on either theme, like a screenshot. */
.art-figure { margin: 28px 0 8px; border-radius: 18px; overflow: hidden; background: #05070a;
              box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .08); }
.art-figure img { display: block; width: 100%; height: auto; }
