/* ProductFlow landing — "Greenfield" light deck.
   White-canvas, rounded, friendly clean-SaaS. Ink + green + white.
   GREEN appears in exactly 3 anchored spots: (1) the LIVE pipeline state,
   (2) the brand mark + one nav accent, (3) success signals (已复制 / E2E 全绿).
   green-700 #15803D for TEXT/links/active labels and for fills that carry
   white foreground text (lit chips, brand mark, copied btn — AA contrast);
   green-500 #22C55E only for text-free decorative fills (running sweep). */

:root {
  /* canvas + bands */
  --canvas: #FCFCFD;
  --band: #F4F5F7;
  --card: #FFFFFF;

  /* ink — verified AA on both #FFFFFF and #F4F5F7 */
  --ink: #16181D;          /* display + primary (≈15:1) */
  --muted: #5B6270;        /* ≈5.6:1 on #FFFFFF, ≈5.1:1 on #F4F5F7 */

  /* green discipline */
  --green-500: #22C55E;    /* text-free decorative fills only */
  --green-700: #15803D;    /* TEXT / links / active labels / icon strokes (AA) */
  --green-50: #ECFDF3;     /* faint green tint surface */

  /* hairlines + radii */
  --hair: #E6E7EB;
  --r-card: 16px;
  --r-sm: 12px;
  --r-pill: 999px;

  /* tinted shadows, never pure black */
  --shadow-sm: 0 1px 2px rgba(16, 24, 40, 0.05);
  --shadow-lg: 0 10px 30px -12px rgba(16, 24, 40, 0.12);
  --shadow-green: 0 8px 24px -10px rgba(34, 197, 94, 0.22);

  --maxw: 1180px;
  --ease: cubic-bezier(0.16, 1, 0.3, 1);

  --display: "Outfit", ui-sans-serif, -apple-system, "PingFang SC", "Noto Sans SC", system-ui, sans-serif;
  --sans: "Inter", ui-sans-serif, -apple-system, "PingFang SC", "Noto Sans SC", system-ui, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, "SF Mono", Menlo, monospace;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  min-height: 100vh;
  background: var(--canvas);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  font-weight: 400;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

.mono { font-family: var(--mono); }

.wrap { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 24px; position: relative; }

a { color: inherit; }

h1, h2, h3 { margin: 0; line-height: 1.1; font-family: var(--display); }
h1 { letter-spacing: -0.02em; line-height: 1.05; }
h2, h3 { letter-spacing: -0.01em; }

/* visually hidden but available to AT */
.vh {
  position: absolute !important; width: 1px; height: 1px;
  padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0);
  white-space: nowrap; border: 0;
}

.skip-link {
  position: absolute; left: 12px; top: -48px; z-index: 200;
  background: var(--ink); color: #fff;
  padding: 9px 16px; border-radius: var(--r-sm);
  font-size: 14px; font-weight: 600; text-decoration: none;
  transition: top .18s var(--ease);
}
.skip-link:focus { top: 12px; }

:focus-visible { outline: 2px solid var(--green-700); outline-offset: 2px; border-radius: 6px; }

/* ============ buttons ============ */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  font: inherit; font-weight: 600; font-size: 15px;
  padding: 13px 26px; border-radius: var(--r-pill);
  text-decoration: none; cursor: pointer; border: 1px solid transparent;
  transition: transform .14s var(--ease), box-shadow .2s var(--ease), background .2s, border-color .2s;
}
.btn-primary { background: var(--ink); color: #fff; box-shadow: var(--shadow-sm); }
.btn-primary:hover { transform: translateY(-1px); box-shadow: var(--shadow-lg); }
.btn-ghost { background: var(--card); color: var(--ink); border-color: var(--hair); }
.btn-ghost:hover { transform: translateY(-1px); box-shadow: var(--shadow-sm); }
.btn:active { transform: scale(0.98); }

/* ============ nav ============ */
.nav {
  position: sticky; top: 0; z-index: 100;
  background: #fff;
  border-bottom: 1px solid var(--hair);
}
.nav-inner { display: flex; align-items: center; justify-content: space-between; height: 66px; }

.brand { display: flex; align-items: center; gap: 11px; min-height: 44px; text-decoration: none; color: var(--ink); }
.brand-mark {
  width: 34px; height: 34px; border-radius: 11px; flex: none;
  background: var(--green-700); color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-family: var(--display); font-weight: 700; font-size: 19px;
  box-shadow: var(--shadow-green);
}
.brand-mark.sm { width: 28px; height: 28px; border-radius: 9px; font-size: 16px; }
.brand-name { font-family: var(--display); font-weight: 700; font-size: 16px; line-height: 1.1; }
.brand-name small { display: block; font-weight: 400; font-size: 11px; color: var(--muted); letter-spacing: 0; font-family: var(--mono); }

.nav-links { display: flex; align-items: center; gap: 4px; }
.nav-links a {
  text-decoration: none; color: var(--muted); font-size: 14px; font-weight: 500;
  padding: 8px 13px; border-radius: var(--r-sm); transition: background .15s, color .15s;
}
.nav-links a:hover { background: var(--band); color: var(--ink); }
.nav-links a.nav-cta { background: var(--ink); color: #fff; font-weight: 600; }
.nav-links a.nav-cta:hover { box-shadow: var(--shadow-lg); }

.nav-toggle {
  display: none; flex-direction: column; gap: 5px; justify-content: center;
  width: 44px; height: 44px; padding: 0;
  background: var(--card); border: 1px solid var(--hair); border-radius: var(--r-sm);
  cursor: pointer;
}
.nav-toggle span { display: block; width: 18px; height: 2px; background: var(--ink); margin: 0 auto; transition: transform .2s var(--ease), opacity .2s; }
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.mobile-menu { display: none; flex-direction: column; border-top: 1px solid var(--hair); background: #fff; }
.mobile-menu a {
  padding: 16px 24px; text-decoration: none; color: var(--ink); font-weight: 500;
  border-bottom: 1px solid var(--hair);
}
.mobile-menu a:active { background: var(--band); }

/* ============ hero ============ */
.hero { padding: 84px 0 72px; }
.hero-grid {
  display: grid; grid-template-columns: 45fr 55fr; gap: 56px; align-items: center;
}
.eyebrow {
  display: inline-block; margin: 0 0 22px; font-size: 12.5px; font-weight: 500;
  color: var(--green-700); letter-spacing: 0.04em;
}
.hero-copy h1 { font-size: clamp(2.4rem, 6vw, 4.2rem); font-weight: 800; min-height: 2.1em; }
.lede {
  margin: 24px 0 32px; font-size: clamp(1.02rem, 1.5vw, 1.13rem);
  color: var(--muted); max-width: 44ch; line-height: 1.6;
}
.lede strong { color: var(--ink); font-weight: 600; }
.hero-cta { display: flex; gap: 12px; flex-wrap: wrap; }

/* ---------- THE LIGHT CONSOLE (centerpiece) ---------- */
.console-wrap { min-height: 460px; }
.console-card {
  background: var(--card);
  border: 1px solid var(--hair);
  border-radius: var(--r-card);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
  min-height: 460px;
}

.cc-bar {
  display: flex; align-items: center; gap: 7px; padding: 13px 16px;
  background: #fff; border-bottom: 1px solid var(--hair);
}
.cc-dot { width: 11px; height: 11px; border-radius: 50%; background: #D7DAE0; }
.cc-host { margin-left: 12px; font-size: 12px; color: var(--muted); }

.cc-cmd {
  display: flex; align-items: center; gap: 10px; flex-wrap: wrap;
  margin: 14px 16px; padding: 11px 14px;
  background: var(--band); border-radius: var(--r-sm);
}
.cc-cmd-text { font-size: 13.5px; color: var(--ink); display: inline-flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.select-shell { display: inline-flex; }
.preset-select {
  appearance: none; -webkit-appearance: none;
  background: #fff; color: var(--green-700);
  border: 1px solid var(--hair); border-radius: 8px;
  padding: 3px 26px 3px 10px; font-size: 13px; font-weight: 600; cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%2315803D' stroke-width='2'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 8px center;
  transition: border-color .15s, box-shadow .15s;
}
.preset-select:hover { border-color: var(--green-700); }
.run-btn {
  margin-left: auto; display: inline-flex; align-items: center;
  font: inherit; font-size: 13px; font-weight: 600;
  background: var(--ink); color: #fff; border: 0;
  padding: 8px 16px; border-radius: var(--r-pill); cursor: pointer;
  box-shadow: var(--shadow-sm);
  transition: transform .14s var(--ease), box-shadow .2s;
}
.run-btn:hover { box-shadow: var(--shadow-lg); }
.run-btn:active { transform: scale(0.98); }
.run-btn[disabled] { opacity: 0.6; cursor: progress; }

/* stage rail + connector sweep */
.rail-shell { position: relative; padding: 6px 16px 4px; }
.rail-line {
  position: absolute; left: 28px; right: 28px; top: 28px; height: 2px;
  background: var(--hair); border-radius: 2px; z-index: 0;
}
.rail-line-fill {
  display: block; height: 100%; width: 0%;
  background: var(--green-500); border-radius: 2px;
  transform-origin: left center;
  transition: width .26s var(--ease);
}
.stage-rail {
  position: relative; z-index: 1;
  display: grid; grid-template-columns: repeat(7, 1fr); gap: 4px;
  min-height: 72px;
}
.rail-node {
  display: flex; flex-direction: column; align-items: center; gap: 6px;
  padding: 6px 4px 10px; min-height: 60px;
  background: transparent; border: 0; border-radius: 11px;
  cursor: pointer; color: var(--muted); font: inherit;
  transition: transform .18s var(--ease), color .18s;
  position: relative;
}
.rail-node:hover { transform: translateY(-2px); }
.rail-node .rail-n {
  width: 32px; height: 32px; border-radius: 9px;
  display: flex; align-items: center; justify-content: center;
  background: #fff; border: 1px solid var(--hair);
  font-size: 12px; font-weight: 600; letter-spacing: 0.02em; color: var(--ink);
  transition: background .18s, color .18s, border-color .18s, box-shadow .18s;
}
.rail-node .rail-l { font-size: 10.5px; line-height: 1.2; text-align: center; }
.rail-node.done .rail-n { color: var(--green-700); border-color: var(--green-700); }
.rail-node.done .rail-n::after { content: "✓"; font-size: 11px; margin-left: 1px; }
.rail-node.done .rail-l { color: var(--green-700); }
.rail-node.current .rail-n {
  background: var(--green-700); color: #fff; border-color: var(--green-700);
  box-shadow: var(--shadow-green);
}
.rail-node.current .rail-l { color: var(--green-700); font-weight: 600; }
.rail-node.current { transform: translateY(-2px); }
.rail-node[aria-current="step"] .rail-l { color: var(--green-700); }

/* preview pane */
.cc-preview {
  margin: 6px 16px 16px; padding: 18px 16px;
  background: var(--band); border-radius: var(--r-sm);
  display: flex; flex-direction: column; gap: 9px;
  min-height: 200px;
}
.prev-head { display: flex; align-items: center; gap: 10px; }
.prev-tag {
  font-size: 11px; font-weight: 600;
  color: var(--green-700); background: var(--green-50);
  padding: 3px 10px; border-radius: var(--r-pill);
}
.prev-stage { font-size: 11.5px; color: var(--muted); }
.prev-title { font-family: var(--display); font-size: 1.3rem; font-weight: 700; color: var(--ink); }
.prev-desc { margin: 0; font-size: 13.5px; color: var(--muted); line-height: 1.55; }

/* per-stage mini-graphic that sells the full product */
.prev-art { margin-top: auto; }
.art-row { display: flex; flex-wrap: wrap; gap: 8px; }
.art-chip {
  font-family: var(--mono); font-size: 11px; font-weight: 600;
  padding: 5px 10px; border-radius: 8px;
  background: #fff; border: 1px solid var(--hair); color: var(--ink);
}
.art-chip.ok { color: var(--green-700); border-color: var(--green-700); background: var(--green-50); }
.art-er {
  display: flex; align-items: center; gap: 8px;
}
.art-node {
  font-family: var(--mono); font-size: 10.5px; font-weight: 600;
  padding: 6px 9px; border-radius: 8px;
  background: #fff; border: 1px solid var(--hair); color: var(--ink);
}
.art-link { flex: none; width: 22px; height: 2px; background: var(--hair); border-radius: 2px; }
.art-deploy {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--mono); font-size: 11.5px; font-weight: 600;
  padding: 8px 14px; border-radius: 10px;
  background: var(--green-50); border: 1px solid var(--green-700); color: var(--green-700);
}
.art-canvas {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; height: 44px;
}
.art-canvas span { background: #fff; border: 1px solid var(--hair); border-radius: 6px; }
.art-canvas span.lit { border-color: var(--green-700); }
.art-list { display: flex; flex-direction: column; gap: 5px; }
.art-bar { height: 8px; border-radius: 4px; background: #fff; border: 1px solid var(--hair); }
.art-bar.w1 { width: 78%; }
.art-bar.w2 { width: 56%; }
.art-bar.w3 { width: 88%; }

/* ============ strip ============ */
.strip { border-top: 1px solid var(--hair); border-bottom: 1px solid var(--hair); background: var(--band); }
.strip-grid { display: grid; grid-template-columns: repeat(3, 1fr); }
.strip-item { padding: 24px; border-left: 1px solid var(--hair); }
.strip-item:first-child { border-left: 0; padding-left: 0; }
.strip-k { display: block; font-size: 12px; font-weight: 600; color: var(--green-700); margin-bottom: 5px; letter-spacing: 0.03em; }
.strip-v { font-size: 14px; color: var(--muted); }

/* ============ section heads ============ */
.sec-head { max-width: 70ch; margin: 0 auto 48px; text-align: center; }
.sec-head h2 { font-size: clamp(1.7rem, 3.4vw, 2.5rem); font-weight: 700; }
.sec-sub { margin: 16px 0 0; color: var(--muted); font-size: 1.02rem; line-height: 1.55; }

/* ============ how / editorial numbered pipeline ============ */
.how { padding: 96px 0; }
.pipeline {
  list-style: none; margin: 0; padding: 0;
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px;
}
.stage {
  background: var(--card); border: 1px solid var(--hair);
  border-radius: var(--r-card); padding: 24px 22px 22px; position: relative;
  box-shadow: var(--shadow-sm); overflow: hidden;
  min-height: 196px;
  transition: transform .2s var(--ease), box-shadow .2s var(--ease);
}
.stage:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); }
.stage-ghost {
  position: absolute; top: 6px; right: 14px;
  font-family: var(--display); font-weight: 800; font-size: 4.6rem; line-height: 1;
  color: var(--hair); pointer-events: none; user-select: none;
}
.stage-rule {
  display: block; width: 26px; height: 2px; background: var(--green-700);
  border-radius: 2px; margin-bottom: 14px;
  transform: scaleX(0.46); transform-origin: left center;
  transition: transform .3s var(--ease);
}
.stage:hover .stage-rule { transform: scaleX(1); }
.stage-n { display: block; font-size: 12px; font-weight: 600; color: var(--green-700); margin-bottom: 10px; letter-spacing: 0.02em; position: relative; }
.stage h3 { font-size: 1.1rem; font-weight: 700; margin-bottom: 8px; color: var(--ink); position: relative; }
.stage p { margin: 0; font-size: 13.5px; color: var(--muted); line-height: 1.5; position: relative; }
.stage-view {
  display: inline-block; margin-top: 16px; font-size: 11px; font-weight: 600;
  color: var(--muted); background: var(--band);
  padding: 3px 10px; border-radius: var(--r-pill); position: relative;
}

/* ============ console bento ============ */
.console-sec { padding: 96px 0; border-top: 1px solid var(--hair); background: var(--band); }
.console-bento {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px;
  grid-auto-rows: minmax(158px, auto);
}
.cb {
  padding: 26px; display: flex; flex-direction: column;
  background: var(--card); border: 1px solid var(--hair); border-radius: var(--r-card);
  box-shadow: var(--shadow-sm);
  transition: transform .2s var(--ease), box-shadow .2s var(--ease);
}
.cb:hover { transform: translateY(-2px); box-shadow: var(--shadow-lg); }
.cb h3 { font-size: 1.12rem; font-weight: 700; margin-bottom: 9px; color: var(--ink); }
.cb p { margin: 0; font-size: 14px; color: var(--muted); line-height: 1.55; }
.cb-lg { grid-column: span 2; grid-row: span 2; }
.cb-wide { grid-column: span 2; }
.cb-note h3 { color: var(--green-700); }

.cb-canvas {
  margin-top: 20px; flex: 1; min-height: 158px;
  background:
    repeating-linear-gradient(0deg, transparent 0 23px, #EEF0F3 23px 24px),
    repeating-linear-gradient(90deg, transparent 0 23px, #EEF0F3 23px 24px),
    var(--band);
  border-radius: 12px; position: relative; overflow: hidden;
  border: 1px solid var(--hair);
}
.cb-tile { position: absolute; border-radius: 8px; background: #fff; box-shadow: var(--shadow-sm); border: 1px solid var(--hair); }
.cb-tile.t1 { width: 32%; height: 44%; top: 14%; left: 9%; transform: rotate(-3deg); }
.cb-tile.t2 { width: 30%; height: 50%; top: 26%; left: 40%; transform: rotate(2deg); border-color: var(--green-700); box-shadow: var(--shadow-green); }
.cb-tile.t3 { width: 26%; height: 38%; top: 12%; left: 70%; transform: rotate(4deg); }
.cb-tile.t4 { width: 28%; height: 34%; top: 58%; left: 66%; transform: rotate(-2deg); }
.cb-like { position: absolute; top: 7px; right: 8px; color: var(--green-700); line-height: 0; }

/* ============ install ============ */
.install { padding: 96px 0; background: var(--band); border-top: 1px solid var(--hair); border-bottom: 1px solid var(--hair); }
.install-grid { display: grid; grid-template-columns: 0.82fr 1.18fr; gap: 48px; align-items: start; }
.install-copy h2 { font-size: clamp(1.7rem, 3.2vw, 2.3rem); font-weight: 700; }
.install-copy .sec-sub { text-align: left; max-width: 42ch; }
.steps { list-style: none; margin: 28px 0 24px; padding: 0; display: grid; gap: 14px; }
.steps li { display: flex; align-items: flex-start; gap: 13px; font-size: 14.5px; color: var(--ink); }
.steps strong { font-weight: 600; }
.step-n {
  flex: none; width: 27px; height: 27px; border-radius: 50%;
  background: var(--ink); color: #fff;
  display: flex; align-items: center; justify-content: center; font-size: 13px; font-weight: 700;
}
.steps code, .install-note code {
  font-size: 12.5px; color: var(--green-700);
  background: var(--green-50); padding: 1px 6px; border-radius: 6px;
}
.install-note { margin: 0; font-size: 13.5px; color: var(--muted); line-height: 1.55; }
.install-note strong { color: var(--ink); font-weight: 600; }

.install-code {
  background: var(--card); border: 1px solid var(--hair);
  border-radius: var(--r-card); overflow: hidden;
  box-shadow: var(--shadow-lg);
}
.code-head {
  display: flex; align-items: center; justify-content: space-between;
  padding: 12px 16px; background: #fff; border-bottom: 1px solid var(--hair);
}
.code-title { font-size: 12.5px; color: var(--muted); }
.copy-btn {
  display: inline-flex; align-items: center; gap: 7px;
  font: inherit; font-size: 13px; font-weight: 600;
  background: var(--ink); color: #fff; border: 0;
  padding: 7px 14px; border-radius: var(--r-pill); cursor: pointer;
  transition: transform .14s var(--ease), box-shadow .2s, background .2s;
}
.copy-btn:hover { box-shadow: var(--shadow-lg); }
.copy-btn:active { transform: scale(0.98); }
.copy-btn.copied { background: var(--green-700); color: #fff; }
.copy-ico { display: inline-flex; line-height: 0; }
.copy-ico svg { display: block; animation: none; }
.copy-btn.copied .copy-ico svg { animation: checkPop .3s var(--ease); }
@keyframes checkPop { 0% { opacity: 0; transform: scale(0.5); } 100% { opacity: 1; transform: scale(1); } }

.code-well {
  margin: 0; padding: 20px; overflow-x: auto;
  max-height: 480px; overflow-y: auto;
  background: var(--card);
}
.code-well code {
  font-family: var(--mono);
  font-size: 12.5px; line-height: 1.7; color: #2B2F38; white-space: pre; display: block;
}

/* ============ features ============ */
.features { padding: 96px 0; }
.feat-list {
  display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px;
}
.feat {
  padding: 26px; display: flex; gap: 18px; align-items: flex-start;
  background: var(--card); border: 1px solid var(--hair); border-radius: var(--r-card);
  box-shadow: var(--shadow-sm);
  transition: transform .2s var(--ease), box-shadow .2s var(--ease);
}
.feat:hover { transform: translateY(-2px); box-shadow: var(--shadow-lg); }
.feat-k {
  flex: none; font-size: 11.5px; font-weight: 600; color: var(--green-700);
  background: var(--green-50);
  padding: 5px 11px; border-radius: var(--r-pill); white-space: nowrap; margin-top: 2px;
}
.feat h3 { font-size: 1.08rem; font-weight: 700; margin-bottom: 6px; color: var(--ink); }
.feat p { margin: 0; font-size: 14px; color: var(--muted); line-height: 1.55; }
.feat code { font-size: 12.5px; color: var(--green-700); background: var(--green-50); padding: 1px 6px; border-radius: 6px; }
.feat-foot {
  margin: 34px 0 0; text-align: center; font-size: 13px; color: var(--muted);
}
.e2e-badge {
  display: inline-flex; align-items: center; gap: 6px;
  color: var(--green-700); background: var(--green-50);
  border: 1px solid var(--green-700); border-radius: var(--r-pill);
  padding: 2px 11px; font-weight: 600; white-space: nowrap;
}

/* ============ final ============ */
.final { padding: 96px 0; }
.final-inner { text-align: center; display: flex; flex-direction: column; align-items: center; gap: 28px; }
.final h2 { color: var(--ink); font-size: clamp(1.6rem, 3.4vw, 2.4rem); font-weight: 700; max-width: 26ch; }

/* ============ footer ============ */
.footer { border-top: 1px solid var(--hair); padding: 44px 0; background: #fff; }
.footer-inner { display: flex; align-items: center; justify-content: space-between; gap: 20px; flex-wrap: wrap; }
.footer-brand { display: flex; align-items: center; gap: 10px; font-weight: 700; font-family: var(--display); }
.footer-links { display: flex; gap: 20px; flex-wrap: wrap; }
.footer-links a { text-decoration: none; color: var(--muted); font-size: 14px; }
.footer-links a:hover { color: var(--ink); }
.footer-note { margin: 0; width: 100%; font-size: 12.5px; color: var(--muted); }

/* ============ scroll reveal (motion, opt-in) ============ */
.reveal { opacity: 0; transform: translateY(8px); }
.reveal.in {
  opacity: 1; transform: none;
  transition: opacity .3s var(--ease), transform .3s var(--ease);
}

/* no-JS fallback */
.no-js .reveal { opacity: 1; transform: none; }

/* ============ responsive ============ */
@media (max-width: 1000px) {
  .hero-grid { grid-template-columns: 1fr; gap: 40px; }
  .hero { padding: 56px 0 56px; }
  .lede { max-width: 52ch; }
  .pipeline { grid-template-columns: repeat(2, 1fr); }
  .install-grid { grid-template-columns: 1fr; gap: 32px; }
  .console-bento { grid-template-columns: repeat(2, 1fr); }
  .cb-lg { grid-column: span 2; grid-row: auto; }
  .cb-wide { grid-column: span 2; }
}

@media (max-width: 900px) {
  .nav-links { display: none; }
  .nav-toggle { display: flex; }
  .mobile-menu:not([hidden]) { display: flex; }
}

@media (max-width: 760px) {
  .strip-grid { grid-template-columns: 1fr; }
  .strip-item { border-left: 0; border-top: 1px solid var(--hair); padding: 18px 0; }
  .strip-item:first-child { border-top: 0; }
  .pipeline { grid-template-columns: 1fr; }
  .console-bento { grid-template-columns: 1fr; }
  .cb-lg, .cb-wide { grid-column: auto; }
  .feat-list { grid-template-columns: 1fr; }
  .feat { padding: 22px; }
  .sec-head { margin-bottom: 36px; }
  .how, .console-sec, .features, .final, .install { padding: 64px 0; }

  /* console -> rail becomes vertical list */
  .rail-line { display: none; }
  .stage-rail { grid-template-columns: 1fr; gap: 6px; }
  .rail-node { flex-direction: row; justify-content: flex-start; gap: 12px; min-height: 44px; padding: 8px 12px; }
  .rail-node .rail-l { text-align: left; font-size: 13px; }
  .console-card, .console-wrap { min-height: 0; }
  .run-btn { margin-left: 0; }

  /* touch-target minimums (>=44px) */
  .footer-links a { display: inline-flex; align-items: center; min-height: 44px; padding: 10px 0; }
  .preset-select { min-height: 44px; }
  .run-btn, .copy-btn { min-height: 44px; }
}

@media (max-width: 420px) {
  .feat { flex-direction: column; gap: 12px; }
  .code-well code { font-size: 11.5px; }
  .hero-copy h1 { min-height: 0; }
  .stage-ghost { font-size: 3.4rem; top: 10px; }
}

/* ============ REDUCED MOTION — hard contract ============ */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
  .reveal { opacity: 1 !important; transform: none !important; }
  .stage-rule { transform: scaleX(1) !important; }
  .rail-line-fill { transition: none !important; }
}
