/* ═══════════════════════════════════════════════════════════════════
   EpiNexus — Global Stylesheet (Light Minimalist Theme)
   Brand: Blue (#2563EB) for "Epi" · Red (#DC2626) for "Nexus"
   ═══════════════════════════════════════════════════════════════════ */

/* ── Self-hosted Inter font (GDPR-safe, no external requests) ─── */
@font-face { font-family: 'Inter'; font-style: normal; font-weight: 400; font-display: swap; src: url('fonts/inter-latin-400-normal.woff2') format('woff2'), url('fonts/inter-latin-400-normal.woff') format('woff'); }
@font-face { font-family: 'Inter'; font-style: normal; font-weight: 500; font-display: swap; src: url('fonts/inter-latin-500-normal.woff2') format('woff2'), url('fonts/inter-latin-500-normal.woff') format('woff'); }
@font-face { font-family: 'Inter'; font-style: normal; font-weight: 600; font-display: swap; src: url('fonts/inter-latin-600-normal.woff2') format('woff2'), url('fonts/inter-latin-600-normal.woff') format('woff'); }
@font-face { font-family: 'Inter'; font-style: normal; font-weight: 700; font-display: swap; src: url('fonts/inter-latin-700-normal.woff2') format('woff2'), url('fonts/inter-latin-700-normal.woff') format('woff'); }
@font-face { font-family: 'Inter'; font-style: normal; font-weight: 800; font-display: swap; src: url('fonts/inter-latin-800-normal.woff2') format('woff2'), url('fonts/inter-latin-800-normal.woff') format('woff'); }

/* ── Reset & Variables ──────────────────────────────────────────── */
:root {
  --bg:           #FFFFFF;
  --bg-alt:       #F7F8FA;
  --surface:      #FFFFFF;
  --border:       #E5E7EB;
  --border2:      #D1D5DB;
  --text:         #1E293B;
  --text-muted:   #64748B;
  --text-light:   #94A3B8;

  /* Brand: two-tone */
  --epi:          #0D9488;
  --epi-light:    #14B8A6;
  --epi-bg:       rgba(13,148,136,0.06);
  --epi-bg2:      rgba(13,148,136,0.10);
  --nexus:        #E86B50;
  --nexus-light:  #F09A7E;
  --nexus-bg:     rgba(232,107,80,0.06);
  --nexus-bg2:    rgba(232,107,80,0.10);

  /* Kept for bio icon diversity — muted versions */
  --accent-light: #0D9488;
  --green:        #16A34A;
  --purple:       #7C3AED;
  --orange:       #D97706;
  --rose:         #E11D48;
  --cyan:         #0891B2;

  --font:         'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --mono:         'SF Mono', 'Fira Code', 'Cascadia Code', monospace;
  --max-w:        1120px;
  --nav-h:        64px;
  --shadow-sm:    0 1px 3px rgba(0,0,0,0.04), 0 1px 2px rgba(0,0,0,0.02);
  --shadow-md:    0 4px 16px rgba(0,0,0,0.05), 0 1px 4px rgba(0,0,0,0.03);
  --shadow-lg:    0 8px 32px rgba(0,0,0,0.06);
  --radius:       12px;
  --radius-lg:    16px;
}

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

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

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
button { font-family: inherit; }

/* ── Utility ────────────────────────────────────────────────────── */
.container   { max-width: var(--max-w); margin: 0 auto; padding: 0 24px; }
.section     { padding: 80px 24px; max-width: var(--max-w); margin: 0 auto; }
.section-sm  { padding: 48px 24px; max-width: var(--max-w); margin: 0 auto; }
.text-center { text-align: center; }
.text-muted  { color: var(--text-muted); }

/* Logo two-tone text */
.logo-epi    { color: #2563EB; }
.logo-nexus  { color: #DC2626; }
/* Keep .grad-text for backward compat but make it teal */
.grad-text   { color: var(--epi); -webkit-text-fill-color: var(--epi); }

.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }

/* ── Buttons ────────────────────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 12px 28px; border-radius: 10px; font-size: 15px;
  font-weight: 600; cursor: pointer; transition: all 0.2s;
  border: none; text-decoration: none; line-height: 1;
}
.btn-primary {
  background: var(--epi); color: #fff;
}
.btn-primary:hover {
  background: var(--epi-light); transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(13,148,136,0.25);
}
.btn-outline {
  background: transparent; color: var(--epi);
  border: 1.5px solid var(--border);
}
.btn-outline:hover {
  border-color: var(--epi); background: var(--epi-bg);
}
.btn-sm   { padding: 8px 20px; font-size: 13px; }
.btn-full { width: 100%; justify-content: center; }

/* ── Card ───────────────────────────────────────────────────────── */
.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 32px;
  transition: all 0.2s;
  box-shadow: var(--shadow-sm);
}
.card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}
.card-sm { padding: 20px; border-radius: var(--radius); }

/* ── Tag / Badge ────────────────────────────────────────────────── */
.tag {
  display: inline-block;
  background: var(--epi-bg);
  color: var(--epi);
  padding: 4px 12px;
  border-radius: 6px;
  font-size: 12px;
  font-weight: 500;
}
.tag-green  { background: rgba(22,163,74,0.07);  color: var(--green); }
.tag-purple { background: rgba(124,58,237,0.07); color: var(--purple); }
.tag-orange { background: rgba(217,119,6,0.07);  color: var(--orange); }
.tag-cyan   { background: rgba(8,145,178,0.07);  color: var(--cyan); }
.tag-rose   { background: rgba(225,29,72,0.07);  color: var(--rose); }

.pill {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--epi-bg);
  border: 1px solid rgba(13,148,136,0.15);
  border-radius: 20px; padding: 6px 16px;
  font-size: 13px; color: var(--epi);
}
.pill .dot {
  width: 6px; height: 6px; border-radius: 50%; background: var(--epi); display: inline-block;
}

/* ═══════════════════════════════════════════════════════════════════
   NAVBAR
   ═══════════════════════════════════════════════════════════════════ */
.navbar {
  position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
  height: var(--nav-h); transition: all 0.3s;
  background: rgba(255,255,255,0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid transparent;
}
.navbar.scrolled {
  border-bottom-color: var(--border);
  box-shadow: 0 1px 8px rgba(0,0,0,0.04);
}
.navbar .inner {
  max-width: var(--max-w); margin: 0 auto; padding: 0 24px;
  display: flex; align-items: center; height: 100%;
}
.navbar .logo {
  display: flex; align-items: center; gap: 10px; margin-right: auto; cursor: pointer;
}
.navbar .logo span { font-size: 20px; font-weight: 700; }
.navbar .nav-links { display: flex; gap: 4px; }
.navbar .nav-links a {
  padding: 8px 14px; border-radius: 8px; font-size: 14px; font-weight: 500;
  color: var(--text-muted); transition: all 0.2s;
}
.navbar .nav-links a:hover { color: var(--text); background: var(--bg-alt); }
.navbar .nav-links a.active { color: var(--epi); background: var(--epi-bg); font-weight: 600; }

/* ═══════════════════════════════════════════════════════════════════
   HERO
   ═══════════════════════════════════════════════════════════════════ */
.hero {
  position: relative; min-height: 92vh;
  display: flex; align-items: center; overflow: hidden;
  background: var(--bg-alt);
}
.hero h1 { font-size: 56px; font-weight: 800; line-height: 1.15; margin-bottom: 24px; color: var(--text); }
.hero .sub { font-size: 19px; color: var(--text-muted); max-width: 580px; margin: 0 auto 40px; line-height: 1.7; }
.hero .actions { display: flex; gap: 16px; justify-content: center; margin-bottom: 56px; }

/* Results preview card */
.results-card {
  max-width: 860px; margin: 0 auto;
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius-lg); overflow: hidden; text-align: left;
  box-shadow: var(--shadow-md);
}
.results-header {
  padding: 12px 20px; background: var(--bg-alt);
  display: flex; align-items: center; justify-content: space-between;
  border-bottom: 1px solid var(--border);
}
.results-header .project-name {
  font-size: 13px; font-weight: 600; color: var(--text-muted);
}
.results-header .project-name b { color: var(--text); }
.results-status {
  font-size: 11px; color: var(--green); font-weight: 600;
  background: rgba(22, 163, 74, 0.08); padding: 4px 10px; border-radius: 99px;
}
.results-body {
  display: grid; grid-template-columns: 1fr 1fr;
}
.results-panel {
  padding: 16px;
  border-bottom: 1px solid var(--border-light, #f1f5f9);
}
.results-panel:nth-child(odd) { border-right: 1px solid var(--border-light, #f1f5f9); }
.results-panel:nth-last-child(-n+2) { border-bottom: none; }
.results-panel-label {
  font-size: 10px; text-transform: uppercase; letter-spacing: 0.08em;
  color: var(--text-muted); font-weight: 600; margin-bottom: 8px;
}
.results-panel img {
  width: 100%; height: auto; display: block; border-radius: 6px;
}

/* ═══════════════════════════════════════════════════════════════════
   STATS BAR
   ═══════════════════════════════════════════════════════════════════ */
.stats-bar {
  background: var(--surface);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.stats-bar .inner {
  max-width: var(--max-w); margin: 0 auto; padding: 40px 24px;
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 32px; text-align: center;
}
.stats-bar .stat { display: flex; flex-direction: column; align-items: center; gap: 6px; }
.stats-bar .stat .num { font-size: 36px; font-weight: 800; color: var(--text); }
.stats-bar .stat .num-text { font-size: 22px; font-weight: 700; color: var(--text); letter-spacing: -0.02em; }
.stats-bar .stat .label { color: var(--text-muted); font-size: 14px; }

/* ═══════════════════════════════════════════════════════════════════
   FEATURE CARDS
   ═══════════════════════════════════════════════════════════════════ */
.feature-icon { margin-bottom: 16px; }
.feature-icon svg { width: 36px; height: 36px; }
.card h3 { font-size: 18px; font-weight: 600; margin-bottom: 10px; color: var(--text); }
.card p  { color: var(--text-muted); font-size: 14px; line-height: 1.7; }
.card .tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 16px; }

/* ═══════════════════════════════════════════════════════════════════
   CTA BANNER
   ═══════════════════════════════════════════════════════════════════ */
.cta-banner {
  background: var(--bg-alt);
  border: 1px solid var(--border);
  border-radius: 20px; padding: 64px 48px;
  position: relative; overflow: hidden; text-align: center;
}
.cta-banner h2 { font-size: 32px; font-weight: 700; margin: 20px 0 16px; color: var(--text); }
.cta-banner p  { color: var(--text-muted); font-size: 17px; max-width: 480px; margin: 0 auto 32px; }

/* ═══════════════════════════════════════════════════════════════════
   PIPELINE FLOW
   ═══════════════════════════════════════════════════════════════════ */
.pipeline-flow { max-width: 720px; margin: 0 auto; }
.pipeline-step { display: flex; align-items: flex-start; gap: 24px; }
.pipeline-step .timeline {
  display: flex; flex-direction: column; align-items: center; min-width: 48px;
}
.pipeline-step .node {
  width: 48px; height: 48px; border-radius: 14px;
  display: flex; align-items: center; justify-content: center;
  position: relative; z-index: 2;
}
.pipeline-step .connector { width: 2px; height: 48px; background: var(--border); }
.pipeline-step .content { flex: 1; margin-bottom: 16px; }
.pipeline-step .content .card { padding: 20px 24px; text-align: left; }
.pipeline-step .content .head {
  display: flex; justify-content: space-between; align-items: center; margin-bottom: 6px;
}
.pipeline-step .content h3 { font-size: 17px; font-weight: 600; }
.pipeline-step .content .step-num { font-size: 13px; font-weight: 700; margin-right: 10px; }
.pipeline-step .content .time {
  color: var(--text-muted); font-size: 12px;
  background: var(--bg-alt); padding: 3px 10px; border-radius: 6px;
  border: 1px solid var(--border);
}

/* ═══════════════════════════════════════════════════════════════════
   DOCS LAYOUT
   ═══════════════════════════════════════════════════════════════════ */
.docs-layout { display: flex; gap: 40px; align-items: flex-start; }
.docs-sidebar {
  width: 240px; flex-shrink: 0; position: sticky; top: 88px;
}
.docs-sidebar h3 {
  font-size: 11px; font-weight: 600; text-transform: uppercase;
  letter-spacing: 1.5px; color: var(--text-light); margin-bottom: 16px;
}
.docs-sidebar a {
  display: flex; align-items: center; gap: 10px;
  width: 100%; padding: 10px 14px; margin-bottom: 2px;
  border-radius: 8px; font-size: 14px; color: var(--text-muted);
  transition: all 0.15s; border-left: 2px solid transparent;
}
.docs-sidebar a:hover { color: var(--text); background: var(--bg-alt); }
.docs-sidebar a.active {
  color: var(--epi); background: var(--epi-bg);
  border-left-color: var(--epi); font-weight: 600;
}
.docs-content { flex: 1; min-width: 0; }
.docs-content h2 { font-size: 30px; font-weight: 700; margin-bottom: 20px; color: var(--text); }
.docs-content h3 { font-size: 20px; font-weight: 600; margin: 32px 0 14px; color: var(--text); }
.docs-content p  { color: var(--text-muted); font-size: 15px; line-height: 1.8; margin-bottom: 20px; }

/* Config table */
.config-table { width: 100%; border-collapse: collapse; font-size: 14px; }
.config-table th {
  text-align: left; padding: 10px 16px;
  color: var(--epi); font-weight: 600;
  border-bottom: 2px solid var(--border);
}
.config-table td { padding: 10px 16px; border-bottom: 1px solid var(--border); }
.config-table .param { font-family: var(--mono); color: var(--text); font-weight: 500; }
.config-table .default { font-family: var(--mono); color: var(--nexus); }
.config-table .info { color: var(--text-muted); }

/* Steps list */
.step-item { display: flex; gap: 20px; margin-bottom: 24px; }
.step-item .num {
  width: 40px; height: 40px; border-radius: var(--radius); flex-shrink: 0;
  background: var(--epi-bg2); display: flex; align-items: center;
  justify-content: center; font-size: 16px; font-weight: 700; color: var(--epi);
}
.step-item h4 { font-size: 16px; font-weight: 600; margin-bottom: 4px; color: var(--text); }
.step-item p  { color: var(--text-muted); font-size: 14px; line-height: 1.7; margin: 0; }

/* FAQ */
.faq-item {
  background: var(--bg-alt);
  border: 1px solid var(--border);
  border-radius: var(--radius); padding: 24px; margin-bottom: 12px;
}
.faq-item h4 { font-size: 15px; font-weight: 600; margin-bottom: 8px; color: var(--text); }
.faq-item p  { color: var(--text-muted); font-size: 14px; line-height: 1.7; margin: 0; }

/* ═══════════════════════════════════════════════════════════════════
   CONTACT (email card)
   ═══════════════════════════════════════════════════════════════════ */
.form-group { margin-bottom: 16px; }
.form-group label { display: block; color: var(--text-muted); font-size: 13px; margin-bottom: 6px; }
.form-group input,
.form-group textarea {
  width: 100%; padding: 10px 14px;
  background: var(--bg-alt); border: 1px solid var(--border);
  border-radius: 8px; color: var(--text); font-size: 14px;
  font-family: inherit; outline: none; transition: border-color 0.2s;
}
.form-group input:focus,
.form-group textarea:focus { border-color: var(--epi); }
.form-group textarea { resize: vertical; }

/* ═══════════════════════════════════════════════════════════════════
   FOOTER
   ═══════════════════════════════════════════════════════════════════ */
.footer {
  background: var(--bg-alt); border-top: 1px solid var(--border); padding: 60px 24px 32px;
}
.footer .inner { max-width: var(--max-w); margin: 0 auto; }
.footer .cols { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 40px; margin-bottom: 48px; }
.footer .brand p { color: var(--text-muted); font-size: 14px; line-height: 1.7; max-width: 280px; margin-top: 16px; }
.footer .col h4 {
  font-size: 13px; font-weight: 600; margin-bottom: 16px;
  text-transform: uppercase; letter-spacing: 1px; color: var(--text);
}
.footer .col a {
  display: block; color: var(--text-muted); font-size: 14px;
  margin-bottom: 10px; transition: color 0.2s;
}
.footer .col a:hover { color: var(--epi); }
.footer .bottom {
  border-top: 1px solid var(--border); padding-top: 24px;
  display: flex; justify-content: space-between; align-items: center;
}
.footer .bottom span { color: var(--text-light); font-size: 13px; }
.footer .bottom .links { display: flex; gap: 20px; }
.footer .bottom .links a { color: var(--text-light); font-size: 13px; }
.footer .bottom .links a:hover { color: var(--epi); }

/* ═══════════════════════════════════════════════════════════════════
   CATEGORY LABEL
   ═══════════════════════════════════════════════════════════════════ */
.cat-label {
  font-size: 13px; font-weight: 600; text-transform: uppercase;
  letter-spacing: 2px; margin-bottom: 32px;
}

/* ═══════════════════════════════════════════════════════════════════
   GENOME CARDS
   ═══════════════════════════════════════════════════════════════════ */
.genome-card { text-align: center; padding: 24px; }
.genome-card h3 { font-size: 16px; font-weight: 600; margin: 12px 0 4px; }
.genome-card .org { color: var(--text-muted); font-size: 12px; font-style: italic; margin-bottom: 8px; }

/* ═══════════════════════════════════════════════════════════════════
   TECH / ASSAY CARDS
   ═══════════════════════════════════════════════════════════════════ */
.tech-card { text-align: center; padding: 20px; }
.tech-card h4 { font-size: 15px; font-weight: 600; margin-bottom: 6px; }
.tech-card p { color: var(--text-muted); font-size: 12px; line-height: 1.5; margin: 0; }

/* ═══════════════════════════════════════════════════════════════════
   HAMBURGER BUTTON
   ═══════════════════════════════════════════════════════════════════ */
.hamburger {
  display: none;
  flex-direction: column; justify-content: center; gap: 5px;
  width: 36px; height: 36px; padding: 6px;
  background: none; border: none; cursor: pointer;
  border-radius: 8px; transition: background 0.2s;
}
.hamburger:hover { background: var(--bg-alt); }
.hamburger span {
  display: block; width: 100%; height: 2px;
  background: var(--text); border-radius: 2px; transition: all 0.3s;
}
.hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Mobile-only CTA hidden on desktop, desktop CTA shown */
.nav-cta-mobile  { display: none; }
.nav-cta-desktop { display: inline-flex; }

/* ═══════════════════════════════════════════════════════════════════
   BLOG
   ═══════════════════════════════════════════════════════════════════ */
.blog-card {
  display: block; padding: 28px 0; border-bottom: 1px solid var(--border);
  text-decoration: none; color: inherit; transition: background 0.15s;
}
.blog-card:first-child { border-top: 1px solid var(--border); }
.blog-card:hover { background: var(--bg-alt); padding-left: 16px; padding-right: 16px; margin: 0 -16px; border-radius: 12px; border-color: transparent; }
.blog-card:hover + .blog-card { border-top-color: transparent; }
.blog-card-meta { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-bottom: 8px; }
.blog-card-date { font-size: 13px; color: var(--text-light); }
.blog-card-tags { display: flex; gap: 6px; }
.blog-tag {
  font-size: 11px; font-weight: 500; padding: 2px 8px;
  border-radius: 4px; background: var(--epi-bg); color: var(--epi);
}
.blog-card-title { font-size: 22px; font-weight: 700; margin-bottom: 8px; color: var(--text); line-height: 1.3; }
.blog-card-summary { font-size: 14px; color: var(--text-muted); line-height: 1.6; margin-bottom: 10px; }
.blog-card-read { font-size: 13px; color: var(--epi); font-weight: 600; }

/* Blog post page */
.blog-back {
  display: inline-flex; align-items: center; gap: 4px;
  font-size: 13px; font-weight: 500; color: var(--epi);
  text-decoration: none; margin-bottom: 24px;
}
.blog-back:hover { text-decoration: underline; }
.blog-post-meta {
  display: flex; align-items: center; gap: 12px; flex-wrap: wrap;
  margin-bottom: 32px; padding-bottom: 20px; border-bottom: 1px solid var(--border);
}
.blog-post-date { font-size: 13px; color: var(--text-light); }
.blog-post-author { font-size: 13px; color: var(--text-muted); }
.blog-post-tags { display: flex; gap: 6px; }

/* Markdown content styling */
.blog-content h1 { font-size: 32px; font-weight: 800; margin-bottom: 20px; color: var(--text); line-height: 1.2; }
.blog-content h2 { font-size: 22px; font-weight: 700; margin-top: 40px; margin-bottom: 14px; color: var(--text); }
.blog-content h3 { font-size: 18px; font-weight: 600; margin-top: 32px; margin-bottom: 10px; color: var(--text); }
.blog-content p { font-size: 16px; line-height: 1.75; color: var(--text-muted); margin-bottom: 18px; }
.blog-content ul, .blog-content ol { margin-bottom: 18px; padding-left: 24px; }
.blog-content li { font-size: 16px; line-height: 1.75; color: var(--text-muted); margin-bottom: 6px; }
.blog-content strong { color: var(--text); font-weight: 600; }
.blog-content a { color: var(--epi); font-weight: 500; text-decoration: underline; text-decoration-color: rgba(13,148,136,0.3); text-underline-offset: 2px; }
.blog-content a:hover { text-decoration-color: var(--epi); }
.blog-content code {
  font-family: 'SF Mono', 'Fira Code', monospace; font-size: 14px;
  background: #f1f5f9; padding: 2px 6px; border-radius: 4px; color: var(--text);
}
.blog-content pre {
  background: #f8fafc; border: 1px solid var(--border); border-radius: 8px;
  padding: 16px 20px; overflow-x: auto; margin-bottom: 20px;
}
.blog-content pre code { background: none; padding: 0; }
.blog-content blockquote {
  border-left: 3px solid var(--epi); padding: 4px 0 4px 20px;
  margin: 0 0 18px 0; color: var(--text-muted); font-style: italic;
}
.blog-content img { max-width: 100%; height: auto; border-radius: 8px; margin: 12px 0; }
.blog-content hr { border: none; border-top: 1px solid var(--border); margin: 36px 0; }

/* ═══════════════════════════════════════════════════════════════════
   WORKFLOW OPTION A — Horizontal Step Cards (Homepage)
   ═══════════════════════════════════════════════════════════════════ */
.workflow-steps {
  display: flex; align-items: stretch; gap: 0;
  max-width: 860px; margin: 0 auto;
}
.step-card {
  flex: 1; background: var(--surface); border: 1px solid var(--border);
  border-radius: 14px; padding: 28px 24px; text-align: center;
  position: relative; transition: box-shadow 0.2s;
}
.step-card:hover { box-shadow: var(--shadow-md); }
.step-number {
  width: 32px; height: 32px; border-radius: 50%;
  background: var(--epi); color: #fff; font-size: 14px; font-weight: 700;
  display: inline-flex; align-items: center; justify-content: center;
  margin-bottom: 14px;
}
.step-icon {
  width: 48px; height: 48px; margin: 0 auto 12px;
  border-radius: 12px; display: flex; align-items: center; justify-content: center;
}
.step-icon svg { width: 28px; height: 28px; }
.step-card h3 { font-size: 16px; font-weight: 700; margin-bottom: 8px; color: var(--text); }
.step-card p { font-size: 13px; color: var(--text-muted); line-height: 1.6; }
.step-detail {
  margin-top: 14px; padding-top: 14px; border-top: 1px solid #f1f5f9;
  font-size: 12px; color: var(--text-light); text-align: left;
}
.step-detail li { list-style: none; padding: 3px 0; }
.step-detail li::before { content: '✓'; color: var(--epi); font-weight: 700; margin-right: 6px; }
.step-arrow {
  display: flex; align-items: center; justify-content: center;
  width: 40px; flex-shrink: 0; color: #D1D5DB;
}
.step-arrow svg { width: 24px; height: 24px; }
.result-teaser {
  margin-top: 14px; display: grid; grid-template-columns: 1fr 1fr; gap: 6px;
}
.result-teaser img {
  width: 100%; height: auto; border-radius: 6px; border: 1px solid #f1f5f9;
}

/* ═══════════════════════════════════════════════════════════════════
   WORKFLOW OPTION B — Fake App UI (Features page)
   ═══════════════════════════════════════════════════════════════════ */
.app-window {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: 14px; overflow: hidden; box-shadow: var(--shadow-lg);
  max-width: 880px; margin: 0 auto;
}
.app-titlebar {
  display: flex; align-items: center; gap: 8px;
  padding: 10px 16px; background: var(--bg-alt);
  border-bottom: 1px solid var(--border);
}
.app-dot { width: 10px; height: 10px; border-radius: 50%; }
.app-titlebar-text { margin-left: 8px; font-size: 12px; color: var(--text-light); font-weight: 500; }
.app-layout { display: grid; grid-template-columns: 180px 1fr; min-height: 380px; }
.app-sidebar {
  background: var(--bg-alt); border-right: 1px solid #f1f5f9; padding: 16px 0;
}
.sidebar-section { padding: 0 14px; margin-bottom: 20px; }
.sidebar-section-label {
  font-size: 9px; text-transform: uppercase; letter-spacing: 0.1em;
  color: var(--text-light); font-weight: 600; margin-bottom: 8px; padding: 0 2px;
}
.sidebar-item {
  display: flex; align-items: center; gap: 8px;
  padding: 7px 10px; border-radius: 8px; font-size: 12px; color: var(--text-muted);
  cursor: default; margin-bottom: 2px;
}
.sidebar-item.active { background: var(--epi-bg); color: var(--epi); font-weight: 600; }
.sidebar-item .dot-status { width: 6px; height: 6px; border-radius: 50%; margin-left: auto; }
.app-main { padding: 24px; }
.stepper { display: flex; align-items: center; gap: 0; margin-bottom: 24px; }
.stepper-step {
  display: flex; align-items: center; gap: 8px;
  font-size: 12px; color: var(--text-light);
}
.stepper-step.done { color: var(--green); }
.stepper-step.active { color: var(--epi); font-weight: 600; }
.stepper-num {
  width: 22px; height: 22px; border-radius: 50%; font-size: 10px; font-weight: 700;
  display: inline-flex; align-items: center; justify-content: center;
  border: 1.5px solid #d1d5db; color: var(--text-light);
}
.stepper-step.done .stepper-num { background: var(--green); border-color: var(--green); color: #fff; }
.stepper-step.active .stepper-num { background: var(--epi); border-color: var(--epi); color: #fff; }
.stepper-line { flex: 1; height: 1px; background: var(--border); margin: 0 10px; }
.stepper-line.done { background: var(--green); }
.config-area { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.config-area.config-3col { grid-template-columns: 1fr 1fr 1fr; }
.config-group label {
  display: block; font-size: 11px; font-weight: 600; color: var(--text-muted);
  text-transform: uppercase; letter-spacing: 0.05em; margin-bottom: 6px;
}
.config-select {
  width: 100%; padding: 8px 12px; border: 1px solid var(--border);
  border-radius: 8px; font-size: 13px; color: var(--text);
  background: #fff; appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' fill='%2394a3b8'%3E%3Cpath d='M3 5l3 3 3-3'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 10px center;
}
.file-list { margin-top: 16px; border: 1px solid #f1f5f9; border-radius: 10px; overflow: hidden; }
.file-row {
  display: flex; align-items: center; gap: 10px;
  padding: 9px 14px; font-size: 12px; border-bottom: 1px solid #f8f9fa;
}
.file-row:last-child { border-bottom: none; }
.file-icon { color: var(--epi); font-size: 14px; }
.file-name { color: var(--text); font-weight: 500; flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.file-size { color: var(--text-light); font-size: 11px; white-space: nowrap; }
.file-check { color: var(--green); font-weight: 700; }
.run-btn {
  margin-top: 20px; display: inline-flex; align-items: center; gap: 8px;
  padding: 10px 28px; background: var(--epi); color: #fff; border: none;
  border-radius: 10px; font-size: 14px; font-weight: 600; cursor: pointer;
  box-shadow: 0 2px 8px rgba(13,148,136,0.25);
}
.run-pipeline-row {
  display: flex; align-items: flex-start; gap: 32px; margin-top: 20px;
}
.pipeline-steps-list { margin-top: 16px; font-size: 12px; }
.pipeline-steps-list .pl-step {
  display: flex; align-items: center; gap: 8px; padding: 5px 0; color: var(--text-muted);
}
.pipeline-steps-list .pl-step .check { color: var(--green); font-weight: 700; width: 16px; }
.pipeline-steps-list .pl-step .spin { color: var(--purple); width: 16px; }
.pipeline-steps-list .pl-step.current { color: var(--text); font-weight: 500; }

/* ═══════════════════════════════════════════════════════════════════
   WORKFLOW OPTION C — Compact Vertical Card (Docs page)
   ═══════════════════════════════════════════════════════════════════ */
.workflow-card {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: 14px; overflow: hidden; box-shadow: var(--shadow-md);
  max-width: 740px; margin: 0 auto;
}
.workflow-card-header {
  padding: 14px 24px; background: var(--bg-alt);
  border-bottom: 1px solid var(--border);
  display: flex; align-items: center; justify-content: space-between;
}
.workflow-card-header h3 { font-size: 13px; font-weight: 600; color: var(--text); }
.workflow-card-header .badge {
  font-size: 11px; color: var(--epi); font-weight: 600;
  background: var(--epi-bg); padding: 4px 10px; border-radius: 99px;
}
.workflow-flow { padding: 28px 32px; }
.wf-step {
  display: flex; gap: 20px; align-items: flex-start;
  position: relative; padding-bottom: 28px;
}
.wf-step:last-child { padding-bottom: 0; }
.wf-left {
  display: flex; flex-direction: column; align-items: center;
  width: 36px; flex-shrink: 0;
}
.wf-num {
  width: 36px; height: 36px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 14px; font-weight: 700; color: #fff; flex-shrink: 0;
}
.wf-line { flex: 1; width: 2px; margin-top: 6px; border-left: 2px dashed var(--border); }
.wf-step:last-child .wf-line { display: none; }
.wf-content { flex: 1; padding-top: 4px; }
.wf-content h4 { font-size: 15px; font-weight: 700; margin-bottom: 4px; color: var(--text); }
.wf-content p { font-size: 13px; color: var(--text-muted); line-height: 1.55; margin-bottom: 10px; }
.file-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.file-chip {
  display: inline-flex; align-items: center; gap: 4px;
  padding: 4px 10px; border-radius: 6px;
  background: #f1f5f9; font-size: 11px; color: #475569; font-weight: 500;
}
.file-chip .check { color: var(--green); font-size: 12px; }
.pipeline-mini { display: flex; flex-wrap: wrap; gap: 0; }
.pm-step {
  display: flex; align-items: center; gap: 4px;
  font-size: 11px; font-weight: 500; padding: 5px 10px;
  background: var(--bg-alt); border: 1px solid var(--border); color: #475569;
}
.pm-step:first-child { border-radius: 6px 0 0 6px; }
.pm-step:last-child { border-radius: 0 6px 6px 0; }
.pm-step + .pm-step { border-left: none; }
.pm-step .pm-icon { font-size: 12px; }
.result-row { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.result-thumb { border-radius: 8px; overflow: hidden; border: 1px solid #f1f5f9; }
.result-thumb img { width: 100%; height: auto; display: block; }
.result-thumb-label {
  font-size: 10px; color: var(--text-light); text-align: center;
  padding: 4px; background: #fafbfc;
}

/* ═══════════════════════════════════════════════════════════════════
   RESPONSIVE — TABLET (≤ 900px)
   ═══════════════════════════════════════════════════════════════════ */
@media (max-width: 900px) {
  .grid-3, .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .hero h1 { font-size: 38px; }
  .hero .sub { font-size: 17px; }
  .docs-layout { flex-direction: column; }
  .docs-sidebar { width: 100%; position: static; }
  .footer .cols { grid-template-columns: 1fr 1fr; }
  .stats-bar .inner { grid-template-columns: repeat(2, 1fr); }

  /* Workflow A — stack on tablet */
  .workflow-steps { flex-direction: column; gap: 0; max-width: 480px; margin: 0 auto; }
  .step-arrow { transform: rotate(90deg); width: auto; height: 32px; }
  .step-card { padding: 24px 20px; }

  /* Workflow B — hide sidebar on tablet */
  .app-layout { grid-template-columns: 1fr; }
  .app-sidebar { display: none; }
  .config-area.config-3col { grid-template-columns: 1fr 1fr 1fr; }

  /* Workflow C — tighter */
  .workflow-flow { padding: 24px 20px; }
  .pipeline-mini { flex-wrap: wrap; }

  /* Hamburger menu replaces nav links */
  .navbar .nav-links {
    display: none;
    flex-direction: column;
    position: absolute; top: var(--nav-h); left: 0; right: 0;
    background: var(--surface);
    border-bottom: 1px solid var(--border);
    box-shadow: var(--shadow-md);
    padding: 12px 24px 20px;
    gap: 2px; z-index: 999;
  }
  .navbar .nav-links.open { display: flex; }
  .navbar .nav-links a {
    padding: 12px 16px; font-size: 16px;
    border-radius: 10px; width: 100%;
  }
  .nav-cta-desktop { display: none; }
  .nav-cta-mobile  { display: inline-flex; margin-top: 8px; justify-content: center; }
  .hamburger { display: flex; }

  /* Pipeline — tighter */
  .pipeline-step { gap: 16px; }
  .pipeline-step .node { width: 40px; height: 40px; min-width: 40px; }
  .pipeline-step .node svg { width: 20px; height: 20px; }

  /* Tables scroll horizontally */
  .config-table { display: block; overflow-x: auto; -webkit-overflow-scrolling: touch; }
}

/* ═══════════════════════════════════════════════════════════════════
   RESPONSIVE — PHONE (≤ 600px)
   ═══════════════════════════════════════════════════════════════════ */
@media (max-width: 600px) {
  /* Grids → single column */
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }

  /* Tighter padding site-wide */
  .section    { padding: 48px 16px; }
  .section-sm { padding: 32px 16px; }
  .navbar .inner { padding: 0 16px; }
  .navbar .nav-links { padding: 12px 16px 20px; }

  /* Hero */
  .hero { min-height: auto; padding-top: 80px; padding-bottom: 40px; }
  .hero h1 { font-size: 28px; line-height: 1.2; }
  .hero .sub { font-size: 16px; margin-bottom: 28px; }
  .hero .actions { flex-direction: column; align-items: stretch; gap: 12px; }
  .hero .actions .btn { justify-content: center; }

  /* Override inline padding-top on hero inner sections */
  .hero > .section { padding-top: 32px !important; }

  /* Results preview card */
  .results-card { border-radius: var(--radius); }
  .results-body { grid-template-columns: 1fr; }
  .results-panel:nth-child(odd) { border-right: none; }
  .results-panel { border-bottom: 1px solid var(--border-light, #f1f5f9); }
  .results-panel:last-child { border-bottom: none; }
  .results-header { padding: 10px 16px; }
  .results-header .project-name { font-size: 12px; }
  .results-status { font-size: 10px; }

  /* Stats bar */
  .stats-bar .inner { grid-template-columns: 1fr 1fr; gap: 20px; padding: 28px 16px; }
  .stats-bar .stat .num { font-size: 28px; }
  .stats-bar .stat .num-text { font-size: 18px; }
  .stats-bar .stat .label { font-size: 12px; }

  /* Cards */
  .card { padding: 24px 20px; }
  .card-sm { padding: 16px; }
  .card:hover { transform: none; } /* disable hover lift on touch */

  /* Pipeline flow */
  .pipeline-flow { max-width: 100%; }
  .pipeline-step { gap: 12px; }
  .pipeline-step .timeline { min-width: 36px; }
  .pipeline-step .node { width: 36px; height: 36px; min-width: 36px; border-radius: 10px; }
  .pipeline-step .node svg { width: 18px; height: 18px; }
  .pipeline-step .connector { height: 32px; }
  .pipeline-step .content .card { padding: 14px 16px; }
  .pipeline-step .content h3 { font-size: 15px; }
  .pipeline-step .content .head { flex-wrap: wrap; gap: 6px; }
  .pipeline-step .content .time { font-size: 11px; }

  /* Genome cards */
  .genome-card { padding: 16px; }
  .genome-card h3 { font-size: 15px; }

  /* Footer */
  .footer { padding: 40px 16px 24px; }
  .footer .cols { grid-template-columns: 1fr; gap: 28px; }
  .footer .bottom { flex-direction: column; gap: 12px; text-align: center; }
  .footer .bottom .links { justify-content: center; }

  /* CTA banner */
  .cta-banner { padding: 36px 20px; border-radius: var(--radius-lg); }
  .cta-banner h2 { font-size: 24px; margin: 16px 0 12px; }
  .cta-banner p { font-size: 15px; }
  .cta-banner .btn { width: 100%; justify-content: center; }

  /* Docs layout */
  .docs-sidebar a { padding: 10px 12px; font-size: 14px; }
  .docs-content h2 { font-size: 24px; }
  .docs-content h3 { font-size: 18px; }
  .step-item .num { width: 32px; height: 32px; font-size: 14px; border-radius: 8px; }
  .step-item { gap: 14px; }

  /* FAQ items */
  .faq-item { padding: 20px 16px; }

  /* Override inline large font sizes on page headings */
  [style*="font-size:48px"] { font-size: 32px !important; }
  [style*="font-size:44px"] { font-size: 28px !important; }
  [style*="font-size:40px"] { font-size: 28px !important; }
  [style*="font-size:28px"] { font-size: 22px !important; }

  /* Workflow A — phone */
  .step-card { padding: 20px 16px; }
  .step-card h3 { font-size: 15px; }
  .result-teaser { grid-template-columns: 1fr; }

  /* Workflow B — phone */
  .app-main { padding: 16px; }
  .config-area.config-3col { grid-template-columns: 1fr; gap: 10px; }
  .config-select { font-size: 12px; padding: 7px 10px; }
  .stepper { display: grid; grid-template-columns: auto 1fr auto 1fr auto 1fr auto; align-items: center; gap: 0; }
  .stepper-step { font-size: 11px; gap: 4px; white-space: nowrap; }
  .stepper-line { margin: 0 6px; }
  .file-row { font-size: 11px; padding: 8px 10px; gap: 6px; }
  .file-icon { font-size: 12px; }
  .file-name { font-size: 11px; }
  .file-size { font-size: 10px; }
  .run-btn { padding: 10px 20px; font-size: 13px; }
  .run-pipeline-row { flex-direction: column; gap: 12px; }
  .run-btn { width: 100%; justify-content: center; }
  .pipeline-steps-list { font-size: 11px; margin-top: 8px; }
  .pipeline-steps-list .pl-step { white-space: nowrap; }

  /* Workflow C — phone */
  .workflow-flow { padding: 20px 16px; }
  .workflow-card-header { padding: 12px 16px; }
  .wf-step { gap: 14px; }
  .wf-content h4 { font-size: 14px; }
  .file-chips { gap: 4px; }
  .file-chip { font-size: 10px; padding: 3px 8px; }
  .pipeline-mini { gap: 4px; }
  .pm-step { font-size: 10px; padding: 4px 7px; border-radius: 4px; }
  .pm-step:first-child { border-radius: 4px; }
  .pm-step:last-child { border-radius: 4px; }
  .pm-step + .pm-step { border-left: 1px solid var(--border); }
  .result-row { grid-template-columns: 1fr 1fr; gap: 6px; }

  /* Override inline padding-top on page headers */
  [style*="padding-top:140px"] { padding-top: 100px !important; }
  [style*="padding-top:120px"] { padding-top: 90px !important; }

  /* Contact email button — don't overflow */
  .btn { max-width: 100%; }
  .btn-primary { word-break: break-all; }

  /* Launch page card */
  .hero .card { padding: 24px 20px; }

  /* Tech / assay cards */
  .tech-card p { font-size: 13px; }
}

/* ── Docs section visibility ────────────────────────────────────── */
.docs-section { display: none; }
.docs-section.active { display: block; }
