/* RapidStaff marketing page — warm paper, blueprint details, teal/copper accents */

:root {
  --paper: #F7F5EF;
  --paper-2: #F2EFE7;
  --surface: #FFFFFF;
  --ink: #20201D;
  --ink-soft: #4A4A45;
  --muted: #6F6F67;
  --line: #E3DCD0;
  --line-strong: #CFC5B7;
  --teal: #0F766E;
  --teal-ink: #0B5D57;
  --teal-soft: #E1F1ED;
  --cyan: #00B8D9;
  --copper: #A85D32;
  --copper-soft: #F6E8DE;
  --olive: #6F7B42;
  --danger: #B42318;
  --danger-soft: #FBEAE8;
  --code: #20201D;
  --code-soft: #2C2C27;
  --shadow: 0 1px 0 rgba(32, 32, 29, .04), 0 24px 60px -36px rgba(32, 32, 29, .28);
  --shell: 1200px;
  --gutter: 32px;
  --font-sans: "Inter", "PingFang SC", "Hiragino Sans GB", "Noto Sans SC", "Microsoft YaHei", sans-serif;
  --font-mono: "SFMono-Regular", "JetBrains Mono", "Cascadia Mono", "Menlo", monospace;
  --font-serif: "Songti SC", "STSong", "Noto Serif SC", serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 84px; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
body.nav-open { overflow: hidden; }
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
p { margin: 0; }
h1, h2, h3 { margin: 0; font-weight: 600; letter-spacing: -.025em; }
ul, ol, dl, dd { margin: 0; padding: 0; }
li { list-style: none; }
code, .mono { font-family: var(--font-mono); }
::selection { background: #CFE9E3; color: var(--ink); }
[hidden] { display: none !important; }

:focus-visible {
  outline: 2px solid var(--teal);
  outline-offset: 3px;
  border-radius: 3px;
}

.skip-link {
  position: fixed;
  top: 8px;
  left: 8px;
  z-index: 100;
  padding: 8px 14px;
  background: var(--ink);
  color: var(--paper);
  border-radius: 6px;
  font-size: 13px;
  transform: translateY(-160%);
  transition: transform .2s ease;
}
.skip-link:focus { transform: none; }

.shell {
  width: 100%;
  max-width: calc(var(--shell) + var(--gutter) * 2);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

.mono {
  font-size: 11px;
  letter-spacing: .08em;
  text-transform: uppercase;
  font-weight: 500;
}

.eyebrow {
  display: flex;
  align-items: center;
  gap: 9px;
  margin: 0;
  color: var(--teal);
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: .12em;
  text-transform: uppercase;
}
.eyebrow-light { color: #7FD6C2; }

.pulse {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--teal);
  box-shadow: 0 0 0 4px rgba(15, 118, 110, .12);
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 48px;
  padding: 0 22px;
  border: 1px solid transparent;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 500;
  letter-spacing: -.01em;
  transition: background .2s ease, border-color .2s ease, color .2s ease, transform .2s ease;
}
.btn-arrow { font-size: 16px; transition: transform .2s ease; }
.btn:hover .btn-arrow { transform: translateX(3px); }
.btn-dark { background: var(--ink); color: #FAF8F2; }
.btn-dark:hover { background: #33332E; }
.btn-ghost { border-color: var(--line-strong); color: var(--ink); background: transparent; }
.btn-ghost:hover { border-color: var(--ink); background: rgba(255, 255, 255, .5); }
.btn-light { background: #F7F3E9; color: var(--ink); }
.btn-light:hover { background: #FFFDF7; }
.btn-outline-light { border-color: rgba(247, 243, 233, .32); color: #F7F3E9; }
.btn-outline-light:hover { background: rgba(247, 243, 233, .08); border-color: rgba(247, 243, 233, .6); }
.btn-sm { min-height: 38px; padding: 0 16px; font-size: 13px; }

.chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 10px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, .62);
  color: var(--ink-soft);
  font-size: 12px;
  line-height: 1.3;
  white-space: nowrap;
}
.chip-line { border-color: var(--line-strong); }
.badge {
  display: inline-flex;
  align-items: center;
  padding: 3px 8px;
  border: 1px solid #C9E5DF;
  border-radius: 999px;
  background: var(--teal-soft);
  color: var(--teal-ink);
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: .04em;
  white-space: nowrap;
}
.tag-row { display: flex; flex-wrap: wrap; gap: 6px; }
.tag-row span {
  display: inline-flex;
  padding: 5px 9px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, .55);
  color: var(--ink-soft);
  font-size: 12px;
  line-height: 1.2;
}
.chip-row { display: flex; flex-wrap: wrap; gap: 8px; }

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 60;
  background: rgba(247, 245, 239, .86);
  border-bottom: 1px solid transparent;
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  transition: border-color .2s ease, box-shadow .2s ease;
}
.site-header.is-scrolled {
  border-bottom-color: var(--line);
  box-shadow: 0 12px 32px -30px rgba(32, 32, 29, .5);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  height: 72px;
}
.brand { display: inline-flex; align-items: center; gap: 10px; flex: none; }
.brand img { width: 30px; height: 30px; }
.brand-name { font-size: 17px; font-weight: 600; letter-spacing: -.03em; }
.nav { display: flex; align-items: center; gap: 26px; }
.nav a {
  position: relative;
  color: var(--ink-soft);
  font-size: 13px;
  line-height: 1;
  padding: 10px 0;
  transition: color .2s ease;
}
.nav a:hover { color: var(--ink); }
.nav a.is-active { color: var(--ink); }
.nav a.is-active::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 2px;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--teal);
  transform: translateX(-50%);
}
.nav-cta { display: none; }
.header-actions { display: flex; align-items: center; gap: 10px; flex: none; }
.nav-toggle {
  display: none;
  width: 40px;
  height: 40px;
  border: 1px solid var(--line);
  border-radius: 999px;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 5px;
}
.nav-toggle span { display: block; width: 15px; height: 1.5px; background: var(--ink); transition: transform .2s ease, opacity .2s ease; }
.nav-toggle.is-open span:first-child { transform: translateY(3.25px) rotate(45deg); }
.nav-toggle.is-open span:last-child { transform: translateY(-3.25px) rotate(-45deg); }

/* Hero */
.hero { position: relative; overflow: hidden; padding: 80px 0 96px; }
.hero-bg { position: absolute; inset: 0; pointer-events: none; }
.hero-bg::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(820px 520px at 78% 18%, rgba(15, 118, 110, .09), transparent 62%),
    radial-gradient(680px 480px at 10% 4%, rgba(168, 93, 50, .07), transparent 62%);
}
.hero-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(to right, rgba(32, 32, 29, .05) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(32, 32, 29, .05) 1px, transparent 1px);
  background-size: 32px 32px;
  -webkit-mask-image: radial-gradient(ellipse 78% 68% at 62% 30%, #000 0%, transparent 74%);
  mask-image: radial-gradient(ellipse 78% 68% at 62% 30%, #000 0%, transparent 74%);
}
.hero-grid {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.04fr) minmax(0, .96fr);
  gap: 64px;
  align-items: center;
}
.hero-copy { min-width: 0; }
.hero h1 {
  margin: 20px 0 0;
  font-size: clamp(52px, 7.2vw, 82px);
  line-height: 1.03;
  letter-spacing: -.055em;
  font-weight: 600;
}
.hero-line { display: block; }
.hero-accent { color: var(--teal); }
.hero-lede {
  max-width: 520px;
  margin-top: 26px;
  color: var(--ink-soft);
  font-size: 18px;
  line-height: 1.75;
}
.hero-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 32px; }
.hero-facts {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 22px;
  margin-top: 38px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 12px;
}
.hero-facts li { display: inline-flex; align-items: center; gap: 8px; }
.hero-facts li::before { content: ""; width: 5px; height: 5px; background: var(--teal); border-radius: 1px; }

.hero-visual { min-width: 0; }
.assembly {
  position: relative;
  padding: 16px;
  border: 1px solid var(--line-strong);
  border-radius: 24px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, .94), rgba(252, 250, 245, .96)),
    linear-gradient(to right, rgba(32, 32, 29, .045) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(32, 32, 29, .045) 1px, transparent 1px);
  background-size: auto, 24px 24px, 24px 24px;
  box-shadow: var(--shadow);
}
.assembly::before {
  content: "";
  position: absolute;
  top: 9px;
  right: 9px;
  width: 10px;
  height: 10px;
  border-top: 1px solid var(--line-strong);
  border-right: 1px solid var(--line-strong);
}
.assembly::after {
  content: "";
  position: absolute;
  bottom: 9px;
  left: 9px;
  width: 10px;
  height: 10px;
  border-bottom: 1px solid var(--line-strong);
  border-left: 1px solid var(--line-strong);
}
.assembly-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 2px 12px;
  border-bottom: 1px solid var(--line);
  color: var(--muted);
}
.assembly-top .mono { font-size: 9px; }
.assembly-layer {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr);
  gap: 8px;
  align-items: start;
  margin-top: 12px;
}
.assembly-label {
  padding-top: 6px;
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: .1em;
}
.assembly-row { display: flex; flex-wrap: wrap; gap: 6px; }
.assembly-row .chip { background: rgba(255, 255, 255, .78); font-size: 11px; padding: 5px 9px; }
.assembly-connector {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  height: 30px;
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: .06em;
}
.assembly-connector::before {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  left: 50%;
  border-left: 1px dashed var(--line-strong);
}
.assembly-connector span { position: relative; padding: 0 8px; background: #FCFAF5; }
.assembly-core {
  position: relative;
  padding: 16px;
  border: 1px solid #BFDDD7;
  border-radius: 18px;
  background: linear-gradient(180deg, #FFFFFF, #F4FAF8);
  box-shadow: 0 20px 40px -36px rgba(15, 118, 110, .55);
}
.assembly-person { display: flex; align-items: center; gap: 14px; }
.assembly-avatar { width: 82px; height: auto; margin: -14px 0 -10px -6px; object-fit: contain; }
.assembly-person-copy strong { display: block; font-size: 18px; letter-spacing: -.02em; line-height: 1.3; }
.assembly-person-copy span { display: inline-flex; align-items: center; gap: 6px; margin-top: 3px; color: var(--muted); font-size: 11px; }
.online-dot {
  display: inline-block;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #16A394;
  box-shadow: 0 0 0 3px rgba(22, 163, 148, .12);
  flex: none;
}
.assembly-caps {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 5px;
  margin-top: 13px;
}
.assembly-caps span {
  padding: 7px 4px;
  border: 1px solid #D7EBE6;
  border-radius: 7px;
  background: rgba(225, 241, 237, .72);
  color: var(--teal-ink);
  font-size: 11px;
  text-align: center;
  line-height: 1.2;
}
.assembly-foot {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  margin-top: 4px;
  padding-top: 12px;
  border-top: 1px dashed var(--line);
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: .08em;
}
.assembly-foot span { color: var(--ink); }
.assembly-foot i { font-style: normal; color: var(--line-strong); }
.visual-note { margin-top: 10px; color: var(--muted); font-family: var(--font-mono); font-size: 9px; letter-spacing: .06em; text-align: center; }

/* Sections */
.section { padding: 112px 0; }
.section-alt { background: var(--paper-2); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.section-head {
  display: grid;
  grid-template-columns: minmax(0, 1.06fr) minmax(0, .94fr);
  gap: 56px;
  align-items: start;
  margin-bottom: 56px;
}
.section-intro {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 16px;
  min-width: 0;
}
.section-head h2 {
  margin-top: 0;
  font-size: clamp(32px, 3.8vw, 46px);
  line-height: 1.12;
  letter-spacing: -.04em;
  text-align: right;
  text-wrap: balance;
}
.section-lede { max-width: 520px; padding-bottom: 0; color: var(--ink-soft); font-size: 17px; line-height: 1.8; }
.section-footnote {
  margin-top: 28px;
  padding-top: 16px;
  border-top: 1px dashed var(--line-strong);
  color: var(--muted);
  font-size: 12px;
  line-height: 1.8;
}

/* Model */
.model-stack { border-top: 1px solid var(--line-strong); }
.model-layer {
  display: grid;
  grid-template-columns: 56px 174px minmax(0, 1.16fr) minmax(0, 1.04fr);
  gap: 32px;
  align-items: center;
  padding: 26px 0;
  border-bottom: 1px solid var(--line);
}
.model-num { color: var(--muted); font-size: 11px; align-self: start; padding-top: 5px; }
.model-name h3 { font-size: 24px; line-height: 1.2; letter-spacing: -.03em; }
.model-name .mono { display: block; margin-top: 4px; color: var(--muted); font-size: 9px; }
.model-layer > p { color: var(--ink-soft); font-size: 14px; line-height: 1.8; }
.model-layer .tag-row { justify-content: flex-end; }
.pullquote {
  max-width: 920px;
  margin: 72px auto 0;
  padding-top: 40px;
  border-top: 1px solid var(--line);
  color: var(--ink);
  font-family: var(--font-serif);
  font-size: clamp(26px, 3.4vw, 42px);
  font-weight: 500;
  line-height: 1.42;
  letter-spacing: -.02em;
  text-align: center;
}

/* Assembler */
.assembler {
  display: grid;
  grid-template-columns: 340px minmax(0, 1fr);
  border: 1px solid var(--line-strong);
  border-radius: 24px;
  overflow: hidden;
  background: var(--surface);
  box-shadow: var(--shadow);
}
.stepper { padding: 12px; border-right: 1px solid var(--line); background: #FBFAF6; }
.step {
  display: grid;
  grid-template-columns: 28px minmax(0, 1fr) 16px;
  gap: 10px;
  align-items: start;
  width: 100%;
  padding: 15px 13px;
  border: 1px solid transparent;
  border-bottom-color: var(--line);
  border-radius: 12px;
  color: var(--muted);
  text-align: left;
  transition: background .2s ease, border-color .2s ease, color .2s ease;
}
.step:last-child { border-bottom-color: transparent; }
.step:hover { background: rgba(255, 255, 255, .72); color: var(--ink); }
.step.is-active {
  background: var(--surface);
  border-color: var(--line);
  border-bottom-color: var(--line);
  color: var(--ink);
  box-shadow: 0 12px 28px -26px rgba(32, 32, 29, .5);
}
.step.is-active + .step { border-top-color: transparent; }
.step-num { padding-top: 2px; color: var(--muted); font-size: 10px; }
.step.is-active .step-num { color: var(--teal); }
.step.is-done .step-num { color: var(--teal); }
.step-copy strong { display: block; font-size: 15px; font-weight: 600; line-height: 1.35; letter-spacing: -.01em; }
.step-copy small { display: block; margin-top: 3px; color: var(--muted); font-size: 11.5px; line-height: 1.55; }
.step.is-active .step-copy small { color: var(--ink-soft); }
.step-state { width: 16px; height: 16px; margin-top: 1px; border: 1px solid var(--line-strong); border-radius: 50%; position: relative; }
.step.is-done .step-state { border-color: var(--teal); background: var(--teal); }
.step.is-done .step-state::after {
  content: "";
  position: absolute;
  left: 4px;
  top: 1px;
  width: 5px;
  height: 9px;
  border-right: 1.5px solid #fff;
  border-bottom: 1.5px solid #fff;
  transform: rotate(40deg);
}
.step.is-active .step-state { border-color: var(--teal); box-shadow: 0 0 0 3px rgba(15, 118, 110, .12); }
.assembler-panel { display: flex; flex-direction: column; min-width: 0; }
.assembler-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 16px 24px;
  border-bottom: 1px solid var(--line);
  background: linear-gradient(180deg, #FFFFFF, #FBFAF6);
}
.assembler-identity { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; color: var(--muted); font-size: 11px; }
.assembler-identity strong { color: var(--ink); font-size: 13px; font-weight: 600; }
.assembler-identity .mono { color: var(--muted); font-size: 9px; }
.progress { display: flex; gap: 4px; flex: none; }
.progress i { display: block; width: 18px; height: 4px; border-radius: 2px; background: var(--line); transition: background .25s ease; }
.progress i.is-on { background: var(--teal); }
.panel-wrap { position: relative; flex: 1; min-height: 500px; padding: 24px; }
.step-panel { display: none; }
.step-panel.is-active { display: block; animation: panelIn .32s ease both; }
@keyframes panelIn {
  from { opacity: 0; transform: translateY(6px); }
  to { opacity: 1; transform: none; }
}
.artifact-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--line);
  color: var(--muted);
}
.artifact-head .mono { font-size: 9px; }
.panel-note { margin-top: 14px; color: var(--muted); font-size: 12px; }
.start-choice { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin-top: 18px; }
.start-choice-card { display: grid; gap: 4px; padding: 14px 16px; border: 1px solid var(--line); border-radius: 12px; background: var(--surface); }
.start-choice-card .mono { color: var(--muted); font-size: 8.5px; }
.start-choice-card strong { font-size: 14px; letter-spacing: -.01em; }
.start-choice-card small { color: var(--muted); font-size: 11.5px; line-height: 1.55; }

.profile-card {
  display: flex;
  align-items: flex-start;
  gap: 20px;
  margin-top: 16px;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: linear-gradient(180deg, #FFFFFF, #FBFAF6);
}
.profile-avatar { width: 118px; height: auto; margin: -18px 0 -12px -8px; object-fit: contain; flex: none; }
.profile-main { min-width: 0; flex: 1; }
.profile-top { display: flex; align-items: center; flex-wrap: wrap; gap: 10px; }
.profile-top h3 { font-size: 26px; letter-spacing: -.035em; }
.status-pill {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 3px 8px;
  border: 1px solid #C9E5DF;
  border-radius: 999px;
  background: var(--teal-soft);
  color: var(--teal-ink);
  font-size: 10px;
}
.profile-id { margin-top: 4px; color: var(--muted); font-size: 9px; }
.profile-meta { display: grid; gap: 9px; margin-top: 16px; }
.profile-meta > div { display: grid; grid-template-columns: 66px minmax(0, 1fr); gap: 12px; align-items: baseline; }
.profile-meta dt { color: var(--muted); font-size: 11px; }
.profile-meta dd { color: var(--ink-soft); font-size: 12.5px; line-height: 1.6; }

.knowledge-tree {
  margin-top: 16px;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #FBFAF6;
}
.tree-row {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 34px;
  padding: 5px 9px;
  border-radius: 7px;
  color: var(--ink-soft);
  font-size: 12.5px;
  line-height: 1.5;
}
.tree-root { background: var(--surface); border: 1px solid var(--line); }
.tree-root strong { font-weight: 600; }
.tree-root .mono { margin-left: auto; color: var(--muted); font-size: 9px; }
.tree-icon { width: 12px; height: 14px; border: 1.5px solid var(--teal); border-radius: 2px; position: relative; flex: none; }
.tree-icon::after { content: ""; position: absolute; left: 3px; top: 4px; width: 5px; height: 1px; background: var(--teal); box-shadow: 0 3px 0 var(--teal); }
.tree-l1 { padding-left: 24px; }
.tree-l2 { padding-left: 40px; }
.tree-l3 { padding-left: 56px; color: var(--ink); }
.tree-line { width: 10px; height: 1px; background: var(--line-strong); flex: none; }
.citation {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 12px;
  padding: 9px 12px;
  border: 1px solid #C9E5DF;
  border-radius: 8px;
  background: var(--teal-soft);
  color: var(--teal-ink);
  font-size: 11.5px;
}
.citation .mono { font-size: 8px; color: var(--teal); }
.cite-index { margin-left: auto; font-family: var(--font-mono); font-size: 10px; }

.sop-graph { display: flex; flex-direction: column; align-items: center; margin-top: 16px; }
.sop-node {
  width: min(100%, 320px);
  padding: 9px 14px;
  border: 1px solid var(--line-strong);
  border-radius: 9px;
  background: var(--surface);
  color: var(--ink-soft);
  font-size: 12.5px;
  line-height: 1.35;
  text-align: center;
}
.sop-node small { display: block; color: var(--copper); font-size: 10px; }
.sop-start, .sop-end { background: var(--ink); border-color: var(--ink); color: #F7F3E9; font-size: 11px; }
.sop-human { border-color: #E2BFA8; background: var(--copper-soft); color: #6B3418; }
.sop-arrow { width: 1px; height: 15px; background: var(--line-strong); position: relative; flex: none; }
.sop-arrow::after {
  content: "";
  position: absolute;
  left: -2.5px;
  bottom: -1px;
  width: 0;
  height: 0;
  border-left: 3px solid transparent;
  border-right: 3px solid transparent;
  border-top: 4px solid var(--line-strong);
}
.sop-branch {
  margin-top: 14px;
  padding: 6px 12px;
  border: 1px dashed var(--line-strong);
  border-radius: 999px;
  background: #FBFAF6;
  color: var(--muted);
  font-size: 11px;
}
.sop-branch .mono { margin-right: 6px; font-size: 8px; color: var(--copper); }

.tool-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; margin-top: 16px; }
.tool-card {
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--surface);
  display: grid;
  gap: 3px;
}
.tool-card .mono { color: var(--muted); font-size: 8px; }
.tool-card strong { font-size: 14px; font-weight: 600; }
.tool-card small { color: var(--muted); font-size: 11px; }
.tool-card em { color: var(--teal); font-size: 10px; font-style: normal; }
.code-line {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 14px;
  padding: 10px 12px;
  border-radius: 8px;
  background: var(--code);
  color: #EDEAE3;
  font-size: 11px;
  overflow-x: auto;
}
.code-line .mono { color: #8E887C; font-size: 8px; }
.code-line code { font-family: var(--font-mono); white-space: nowrap; }
.code-line .ok { margin-left: auto; color: #7FD6C2; white-space: nowrap; }

.channel-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; margin-top: 16px; }
.channel-card { padding: 16px; border: 1px solid var(--line); border-radius: 12px; background: var(--surface); }
.channel-card strong { display: block; font-size: 14px; font-weight: 600; }
.channel-card small { display: block; margin-top: 2px; color: var(--muted); font-size: 11px; }
.chat-demo { display: grid; gap: 8px; margin-top: 18px; max-width: 500px; }
.chat-bubble { padding: 10px 14px; font-size: 12px; line-height: 1.65; }
.chat-user {
  justify-self: end;
  max-width: 82%;
  border-radius: 14px 14px 4px 14px;
  background: var(--ink);
  color: #F7F3E9;
}
.chat-bot {
  justify-self: start;
  max-width: 88%;
  border: 1px solid #C9E5DF;
  border-radius: 14px 14px 14px 4px;
  background: var(--teal-soft);
  color: var(--teal-ink);
}
.trace-list { margin-top: 16px; border: 1px solid var(--line); border-radius: 14px; overflow: hidden; background: var(--surface); }
.trace-row {
  display: grid;
  grid-template-columns: 8px minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  padding: 11px 14px;
  border-bottom: 1px solid var(--line);
}
.trace-row:last-child { border-bottom: 0; }
.trace-marker { width: 7px; height: 7px; border-radius: 2px; background: var(--teal); }
.trace-row strong { display: block; font-size: 12.5px; font-weight: 600; }
.trace-row small { display: block; color: var(--muted); font-size: 10.5px; }
.trace-state { color: var(--muted); font-family: var(--font-mono); font-size: 9px; }
.trace-human { background: var(--copper-soft); }
.trace-human .trace-marker { background: var(--copper); }
.trace-human .trace-state { color: var(--copper); }

/* Assets */
.asset-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.asset-card {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 9px;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--surface);
  transition: transform .22s ease, border-color .22s ease, box-shadow .22s ease;
}
.asset-card:hover { transform: translateY(-3px); border-color: var(--line-strong); box-shadow: 0 24px 48px -42px rgba(32, 32, 29, .45); }
.asset-icon {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  margin-bottom: 8px;
  border: 1px solid #C9E5DF;
  border-radius: 12px;
  background: var(--teal-soft);
  color: var(--teal-ink);
}
.asset-icon svg { width: 24px; height: 24px; }
.asset-index { position: absolute; top: 24px; right: 24px; color: var(--muted); font-size: 9px; }
.asset-card h3 { font-size: 20px; letter-spacing: -.03em; }
.asset-card p { color: var(--ink-soft); font-size: 13px; line-height: 1.75; }
.asset-card .tag-row { margin-top: auto; padding-top: 10px; }
.asset-card .tag-row span { font-size: 10.5px; }

/* Systems */
.arch-strip {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 34px minmax(0, 1.18fr) 34px minmax(0, 1fr);
  gap: 0;
  align-items: stretch;
  margin-bottom: 26px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--surface);
}
.arch-col { display: grid; gap: 7px; padding: 6px 12px; }
.arch-col > .mono { color: var(--muted); font-size: 8px; }
.arch-core { border: 1px solid #C9E5DF; border-radius: 11px; background: var(--teal-soft); }
.arch-core > .mono { color: var(--teal); }
.arch-items { display: flex; flex-wrap: wrap; gap: 5px; }
.arch-items span {
  padding: 4px 8px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--surface);
  color: var(--ink-soft);
  font-size: 11px;
  line-height: 1.3;
}
.arch-core .arch-items span { border-color: transparent; background: rgba(255, 255, 255, .72); color: var(--teal-ink); }
.arch-arrow { display: grid; place-items: center; color: var(--line-strong); font-size: 15px; }

.system-tabs { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; border-bottom: 1px solid var(--line-strong); }
.system-tab {
  position: relative;
  top: 1px;
  display: grid;
  grid-template-columns: 26px minmax(0, 1fr);
  grid-template-rows: auto auto;
  gap: 2px 8px;
  padding: 17px 18px;
  border: 1px solid transparent;
  border-bottom: 0;
  border-radius: 12px 12px 0 0;
  color: var(--muted);
  text-align: left;
  transition: background .2s ease, color .2s ease, border-color .2s ease;
}
.system-tab .mono { grid-row: 1 / span 2; padding-top: 2px; font-size: 9px; color: var(--muted); }
.system-tab strong { grid-column: 2; font-size: 16px; font-weight: 600; letter-spacing: -.01em; }
.system-tab small { grid-column: 2; font-size: 10.5px; color: var(--muted); }
.system-tab:hover { background: rgba(255, 255, 255, .5); color: var(--ink); }
.system-tab.is-active { background: var(--surface); border-color: var(--line-strong); color: var(--ink); }
.system-tab.is-active::after { content: ""; position: absolute; left: 18px; right: 18px; bottom: -1px; height: 2px; background: var(--teal); }
.system-tab.is-active .mono { color: var(--teal); }

.system-panels { padding: 32px; border: 1px solid var(--line-strong); border-top: 0; border-radius: 0 0 20px 20px; background: var(--surface); }
.system-panel { display: none; }
.system-panel.is-active { display: grid; animation: panelIn .32s ease both; }
.system-panel { grid-template-columns: minmax(0, .92fr) minmax(0, 1.08fr); gap: 40px; align-items: center; }
.system-copy h3 { margin: 10px 0 12px; font-size: clamp(24px, 2.5vw, 31px); line-height: 1.3; letter-spacing: -.035em; }
.system-copy > p { color: var(--ink-soft); font-size: 14.5px; line-height: 1.85; }
.flow { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; margin: 22px 0; }
.flow li { display: flex; align-items: baseline; gap: 5px; padding-top: 10px; border-top: 1px solid var(--line-strong); color: var(--ink-soft); font-size: 11.5px; line-height: 1.4; }
.flow .mono { color: var(--teal); font-size: 8px; }
.system-meta { display: grid; gap: 7px; }
.system-meta > div { display: grid; grid-template-columns: 52px minmax(0, 1fr); gap: 10px; align-items: baseline; }
.system-meta dt { color: var(--muted); font-size: 10.5px; }
.system-meta dd { color: var(--ink-soft); font-size: 11.5px; line-height: 1.7; }

/* Mock frame */
.mock {
  border: 1px solid var(--line-strong);
  border-radius: 14px;
  overflow: hidden;
  background: #FCFBF8;
  box-shadow: 0 30px 70px -52px rgba(32, 32, 29, .55);
}
.mock-chrome {
  display: flex;
  align-items: center;
  gap: 8px;
  height: 32px;
  padding: 0 11px;
  border-bottom: 1px solid var(--line);
  background: var(--paper-2);
}
.mock-dots { display: inline-flex; gap: 4px; }
.mock-dots i { width: 6px; height: 6px; border-radius: 50%; background: var(--line-strong); }
.mock-title { color: var(--muted); font-family: var(--font-mono); font-size: 8.5px; letter-spacing: .03em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mock-badge { margin-left: auto; padding: 2px 6px; border: 1px solid var(--line-strong); border-radius: 999px; background: var(--surface); color: var(--muted); font-size: 8px; white-space: nowrap; }
.mock-body { display: grid; gap: 9px; padding: 12px; }
.mock-chat {
  justify-self: end;
  max-width: 92%;
  padding: 7px 10px;
  border-radius: 10px 10px 2px 10px;
  background: var(--ink);
  color: #F7F3E9;
  font-size: 10px;
  line-height: 1.55;
}
.mock-note { color: var(--muted); font-size: 8px; text-align: right; line-height: 1.4; }
.mock-sub { display: flex; align-items: center; justify-content: space-between; gap: 8px; color: var(--muted); font-size: 8.5px; }
.mock-sub .mono { font-size: 7.5px; }

/* Dashboard mock */
.dash-kpis { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 5px; }
.dash-kpis > div { display: grid; gap: 1px; padding: 7px; border: 1px solid var(--line); border-radius: 7px; background: var(--surface); }
.dash-kpis small { color: var(--muted); font-size: 8px; line-height: 1.3; }
.dash-kpis strong { font-size: 14px; line-height: 1.2; letter-spacing: -.02em; }
.dash-kpis strong em { font-size: 8px; font-style: normal; font-weight: 500; color: var(--muted); }
.dash-kpis span { color: var(--muted); font-size: 7.5px; line-height: 1.3; }
.dash-kpis .up { color: var(--teal); }
.dash-kpis .warn { color: var(--copper); }
.dash-charts { display: grid; grid-template-columns: 1.32fr .68fr; gap: 5px; }
.dash-line, .dash-bars { padding: 7px; border: 1px solid var(--line); border-radius: 7px; background: var(--surface); }
.dash-line svg { display: block; width: 100%; height: 68px; margin-top: 4px; }
.dash-bars { display: grid; align-content: start; gap: 5px; }
.bar-row { display: grid; grid-template-columns: 22px minmax(0, 1fr) 22px; gap: 4px; align-items: center; color: var(--muted); font-size: 7.5px; }
.bar-row i { position: relative; display: block; height: 4px; border-radius: 2px; background: var(--paper-2); overflow: hidden; }
.bar-row i::after { content: ""; position: absolute; inset: 0 auto 0 0; width: var(--h); border-radius: 2px; background: var(--teal); }
.bar-row b { font-size: 7.5px; font-weight: 500; text-align: right; color: var(--ink-soft); }
.dash-table { border: 1px solid var(--line); border-radius: 7px; overflow: hidden; background: var(--surface); }
.dash-tr { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) 46px; gap: 6px; padding: 4px 7px; border-top: 1px solid var(--line); color: var(--ink-soft); font-size: 7.5px; line-height: 1.5; }
.dash-tr:first-child { border-top: 0; }
.dash-th { background: var(--paper); color: var(--muted); }
.dash-tr .up { color: var(--teal); }
.dash-tr .warn { color: var(--copper); }

/* ERP mock */
.erp-table { border: 1px solid var(--line); border-radius: 7px; overflow: hidden; background: var(--surface); }
.erp-tr { display: grid; grid-template-columns: 58px minmax(0, 1fr) 82px; gap: 6px; align-items: center; padding: 6px 8px; border-top: 1px solid var(--line); color: var(--ink-soft); font-size: 8.5px; line-height: 1.4; }
.erp-tr:first-child { border-top: 0; }
.erp-th { background: var(--paper); color: var(--muted); font-size: 7.5px; }
.status-chip { display: inline-flex; align-items: center; justify-content: center; width: fit-content; padding: 2px 6px; border-radius: 999px; font-size: 7.5px; line-height: 1.35; white-space: nowrap; }
.chip-warn { background: var(--copper-soft); color: #7A3F1F; }
.chip-danger { background: var(--danger-soft); color: var(--danger); }
.chip-teal { background: var(--teal-soft); color: var(--teal-ink); }
.erp-callout { padding: 8px 10px; border-left: 2px solid var(--copper); border-radius: 0 7px 7px 0; background: #FBF3EC; }
.erp-callout .mono, .erp-action .mono { display: block; color: var(--copper); font-size: 7.5px; }
.erp-callout p { margin-top: 2px; color: #6B3418; font-size: 9px; line-height: 1.6; }
.erp-action { padding: 8px 10px; border-radius: 7px; background: var(--teal-soft); }
.erp-action .mono { color: var(--teal); }
.erp-action p { margin-top: 2px; color: var(--teal-ink); font-size: 9px; line-height: 1.6; }

/* CRM mock */
.crm-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 8px 10px; border: 1px solid var(--line); border-radius: 7px; background: var(--surface); }
.crm-head strong { display: block; font-size: 11px; font-weight: 600; }
.crm-head small { display: block; margin-top: 1px; color: var(--muted); font-size: 8px; }
.crm-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 5px; }
.crm-grid > div { padding: 7px; border: 1px solid var(--line); border-radius: 7px; background: var(--surface); }
.crm-grid .mono { color: var(--muted); font-size: 7px; }
.crm-grid p { margin-top: 3px; color: var(--ink-soft); font-size: 8px; line-height: 1.7; }
.crm-outline { padding: 8px 10px; border: 1px solid var(--line); border-radius: 7px; background: var(--surface); }
.crm-outline .mono { color: var(--muted); font-size: 7px; }
.crm-outline ol { margin: 3px 0 0 13px; padding: 0; color: var(--ink-soft); font-size: 8px; line-height: 1.8; }
.crm-outline li { list-style: decimal; }

/* Control */
.control-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1px; border: 1px solid var(--line); border-radius: 18px; overflow: hidden; background: var(--line); }
.control-item { display: grid; gap: 7px; padding: 28px; background: var(--paper); }
.control-item .mono { color: var(--teal); font-size: 9px; }
.control-item h3 { font-size: 19px; letter-spacing: -.025em; }
.control-item p { color: var(--ink-soft); font-size: 13px; line-height: 1.75; }
.record-figure { margin: 34px 0 0; border: 1px solid var(--line-strong); border-radius: 16px; overflow: hidden; background: var(--surface); box-shadow: var(--shadow); }
.record-chrome { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 9px 14px; background: var(--code); color: #B9B3A6; }
.record-chrome .mono { font-size: 8px; }
.record-chrome .record-open { color: #D9D3C7; font-size: 8.5px; text-decoration: none; border-bottom: 1px solid rgba(255, 255, 255, .18); }
.record-open:hover { color: #FFFFFF; }
.record-link { display: block; line-height: 0; background: var(--paper); cursor: zoom-in; }
.record-figure img { width: 100%; height: auto; display: block; }
.figure-caption { margin: 0; padding: 12px 14px; border-top: 1px solid var(--line); background: var(--paper); color: var(--muted); font-size: 12px; line-height: 1.8; }
.record-hint { margin-left: 6px; color: var(--teal); white-space: nowrap; }

/* Start */
.path { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border-top: 1px solid var(--line-strong); }
.path-step { position: relative; padding: 26px 24px 0 0; }
.path-step + .path-step { padding-left: 24px; border-left: 1px solid var(--line); }
.path-step::before { content: ""; position: absolute; top: -4px; left: 0; width: 7px; height: 7px; border-radius: 50%; background: var(--teal); }
.path-step + .path-step::before { left: 24px; }
.path-num { color: var(--muted); font-size: 9px; }
.path-step h3 { margin-top: 8px; font-size: 19px; letter-spacing: -.025em; }
.path-step p { margin-top: 6px; color: var(--ink-soft); font-size: 12.5px; line-height: 1.75; }
.start-examples { display: flex; align-items: center; flex-wrap: wrap; gap: 14px; margin-top: 34px; padding-top: 18px; border-top: 1px dashed var(--line-strong); }
.start-examples > .mono { color: var(--muted); font-size: 8px; }

/* Deploy */
.deploy-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.deploy-card { padding: 24px; border: 1px solid var(--line); border-radius: 16px; background: var(--surface); display: grid; gap: 6px; }
.deploy-card .mono { color: var(--muted); font-size: 9px; }
.deploy-card h3 { font-size: 19px; letter-spacing: -.025em; }
.deploy-card p { color: var(--ink-soft); font-size: 13px; line-height: 1.7; }
.deploy-detail { display: grid; grid-template-columns: 1.08fr .92fr; gap: 20px; margin-top: 20px; }
.code-block { border-radius: 14px; overflow: hidden; background: var(--code); color: #EDEAE3; box-shadow: 0 24px 60px -48px rgba(32, 32, 29, .6); }
.code-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 9px 14px; border-bottom: 1px solid rgba(255, 255, 255, .1); color: #9E988B; }
.code-head .mono { font-size: 8px; }
.code-block pre { margin: 0; padding: 16px 18px; overflow-x: auto; }
.code-block code { font-family: var(--font-mono); font-size: 11.5px; line-height: 1.95; white-space: pre; }
.c-muted { color: #8E887C; }
.deploy-channels { display: grid; align-content: center; gap: 10px; padding: 22px; border: 1px solid var(--line); border-radius: 14px; background: var(--surface); }
.deploy-channels > .mono { color: var(--muted); font-size: 8px; }
.deploy-channels p { color: var(--muted); font-size: 11.5px; }

/* CTA + footer */
.cta { position: relative; overflow: hidden; padding: 96px 0 72px; background: var(--code); color: #F5F1E8; }
.cta-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(to right, rgba(245, 241, 232, .08) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(245, 241, 232, .08) 1px, transparent 1px);
  background-size: 32px 32px;
  -webkit-mask-image: radial-gradient(ellipse 70% 80% at 70% 10%, #000 0%, transparent 72%);
  mask-image: radial-gradient(ellipse 70% 80% at 70% 10%, #000 0%, transparent 72%);
  opacity: .5;
  pointer-events: none;
}
.cta-inner { position: relative; }
.cta h2 { max-width: 900px; margin: 16px 0 18px; font-size: clamp(36px, 5.1vw, 64px); line-height: 1.1; letter-spacing: -.045em; }
.cta-lede { max-width: 560px; color: #CFC8BA; font-size: 16px; line-height: 1.8; }
.cta-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 30px; }
.footer { background: var(--code); border-top: 1px solid rgba(245, 241, 232, .12); color: #B9B3A6; }
.footer-inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; padding-top: 24px; padding-bottom: 24px; }
.footer-brand { display: flex; align-items: center; gap: 10px; }
.footer-brand img { width: 26px; height: 26px; opacity: .9; }
.footer-brand strong { display: block; color: #F5F1E8; font-size: 13px; font-weight: 600; letter-spacing: -.02em; }
.footer-brand small { display: block; margin-top: 1px; color: #8E887C; font-size: 9px; }
.footer-nav { display: flex; flex-wrap: wrap; gap: 18px; }
.footer-nav a { color: #B9B3A6; font-size: 11px; }
.footer-nav a:hover { color: #F5F1E8; }
.footer-copy { color: #7E786C; font-size: 10px; }

/* Toast */
.toast {
  position: fixed;
  left: 50%;
  bottom: 26px;
  z-index: 90;
  padding: 10px 16px;
  border-radius: 999px;
  background: var(--ink);
  color: #F7F3E9;
  font-size: 12px;
  opacity: 0;
  pointer-events: none;
  transform: translate(-50%, 8px);
  transition: opacity .2s ease, transform .2s ease;
}
.toast.is-visible { opacity: 1; transform: translate(-50%, 0); }

/* Reveal */
[data-reveal] { opacity: 0; transform: translateY(14px); transition: opacity .6s ease, transform .6s ease; }
[data-reveal].is-visible { opacity: 1; transform: none; }
.no-js [data-reveal] { opacity: 1; transform: none; }

/* No JS fallback */
.no-js .step-panel[hidden] { display: block !important; }
.no-js .system-panel[hidden] { display: grid !important; }
.no-js .step-panel { padding-top: 18px; }
.no-js .step-panel + .step-panel { border-top: 1px dashed var(--line-strong); margin-top: 18px; padding-top: 22px; }

/* Responsive */
@media (max-width: 1120px) {
  .hero-grid { gap: 40px; }
  .nav { gap: 18px; }
  .model-layer { grid-template-columns: 48px 150px minmax(0, 1.2fr) minmax(0, 1fr); gap: 24px; }
}

@media (max-width: 1024px) {
  .nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    display: none;
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    padding: 10px var(--gutter) 18px;
    border-bottom: 1px solid var(--line);
    background: var(--paper);
    box-shadow: 0 24px 40px -32px rgba(32, 32, 29, .4);
  }
  .nav.is-open { display: flex; }
  .nav {
    height: calc(100vh - 64px);
    height: calc(100dvh - 64px);
    overflow-y: auto;
    padding-bottom: 26px;
  }
  .nav-cta {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    margin-top: auto;
    padding: 13px 16px !important;
    border: 0 !important;
    border-radius: 999px;
    background: var(--ink);
    color: var(--paper) !important;
    font-size: 14px !important;
    font-weight: 500;
  }
  .nav-cta:hover { color: var(--paper) !important; }
  .no-js .header-inner { flex-wrap: wrap; height: auto; padding-bottom: 8px; }
  .no-js .nav {
    position: static;
    order: 3;
    display: flex;
    width: 100%;
    height: auto;
    margin-top: 10px;
    padding: 0;
    overflow: visible;
    border-top: 1px solid var(--line);
    border-bottom: 0;
    background: transparent;
    box-shadow: none;
  }
  .no-js .nav-cta { margin-top: 12px; }
  .no-js .nav-toggle { display: none; }
  .nav a { width: 100%; padding: 12px 0; border-bottom: 1px solid var(--line); font-size: 14px; }
  .nav a:last-child { border-bottom: 0; }
  .nav a.is-active::after { display: none; }
  .nav-toggle { display: inline-flex; }
  .hero { padding: 64px 0 80px; }
  .hero-grid { grid-template-columns: 1fr; gap: 44px; }
  .hero-copy { max-width: 720px; }
  .hero-visual { max-width: 580px; }
  .section { padding: 88px 0; }
  .section-head { display: flex; flex-direction: column; gap: 18px; margin-bottom: 40px; }
  .section-intro { display: contents; }
  .section-head .eyebrow { order: 1; }
  .section-head h2 { order: 2; text-align: left; }
  .section-lede { order: 3; max-width: 680px; padding-bottom: 0; }
  .model-layer { grid-template-columns: 40px 160px minmax(0, 1fr); }
  .model-layer .tag-row { grid-column: 2 / -1; justify-content: flex-start; margin-top: -8px; }
  .assembler { grid-template-columns: 1fr; }
  .stepper {
    display: flex;
    gap: 6px;
    overflow-x: auto;
    padding: 10px;
    border-right: 0;
    border-bottom: 1px solid var(--line);
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
  }
  .step {
    min-width: 184px;
    padding: 10px 12px;
    grid-template-columns: 24px minmax(0, 1fr);
    border: 1px solid var(--line);
    border-radius: 10px;
    scroll-snap-align: start;
  }
  .step:last-child { border-bottom-color: var(--line); }
  .step-state { display: none; }
  .step-copy small { display: none; }
  .step.is-active { border-color: var(--teal); box-shadow: inset 0 0 0 1px var(--teal); }
  .panel-wrap { min-height: 0; padding: 20px; }
  .asset-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .arch-strip { grid-template-columns: 1fr; gap: 8px; }
  .arch-arrow { transform: rotate(90deg); height: 18px; }
  .system-panel { grid-template-columns: 1fr; gap: 28px; }
  .system-mock { max-width: 620px; }
  .system-panels { padding: 24px; }
  .control-grid { grid-template-columns: 1fr; }
  .path { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .path-step:nth-child(3) { border-left: 0; padding-left: 0; margin-top: 24px; }
  .path-step:nth-child(3)::before { left: 0; }
  .path-step:nth-child(4) { margin-top: 24px; }
  .deploy-detail { grid-template-columns: 1fr; }
  .footer-inner { flex-wrap: wrap; }
  .footer-copy { width: 100%; }
}

@media (max-width: 720px) {
  :root { --gutter: 20px; }
  .section-head h2.h2-reflow br { display: none; }
  .header-inner { height: 64px; }
  .no-js .header-inner { height: auto; }
  .deploy-grid { grid-template-columns: 1fr; }
  .record-chrome .record-open { display: none; }
  .header-actions .btn { display: none; }
  .hero { padding: 48px 0 64px; }
  .hero h1 { font-size: clamp(42px, 12.4vw, 58px); }
  .hero-lede { font-size: 16px; }
  .hero-actions { gap: 8px; }
  .hero-actions .btn { flex: 1 1 100%; }
  .hero-facts { gap: 8px 16px; font-size: 11px; }
  .assembly { padding: 13px; border-radius: 20px; }
  .assembly-avatar { width: 66px; }
  .assembly-person-copy strong { font-size: 16px; }
  .assembly-caps { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .section { padding: 68px 0; }
  .section-head h2 { font-size: clamp(30px, 8vw, 40px); }
  .section-lede { font-size: 15px; }
  .model-layer { grid-template-columns: 28px minmax(0, 1fr); gap: 8px 14px; padding: 22px 0; }
  .model-name { grid-column: 2; }
  .model-layer > p { grid-column: 2; }
  .model-layer .tag-row { grid-column: 2; margin-top: 0; }
  .model-name h3 { font-size: 21px; }
  .pullquote { margin-top: 48px; padding-top: 28px; font-size: 25px; }
  .assembler { border-radius: 18px; }
  .assembler-head { padding: 13px 16px; }
  .assembler-identity { font-size: 10px; }
  .assembler-identity .mono { display: none; }
  .progress i { width: 12px; }
  .start-choice { grid-template-columns: 1fr; }
  .profile-card { flex-direction: column; gap: 6px; padding: 18px; }
  .profile-avatar { width: 92px; margin: -14px 0 -12px -6px; }
  .profile-meta > div { grid-template-columns: 58px minmax(0, 1fr); }
  .tool-grid, .channel-grid { grid-template-columns: 1fr; }
  .chat-demo { max-width: none; }
  .asset-grid { grid-template-columns: 1fr; }
  .asset-card { padding: 20px; }
  .system-tabs { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 4px; }
  .system-tab { padding: 12px 10px; grid-template-columns: 1fr; gap: 1px; }
  .system-tab .mono { display: none; }
  .system-tab strong { grid-column: 1; font-size: 13px; }
  .system-tab small { display: none; }
  .system-tab.is-active::after { left: 10px; right: 10px; }
  .system-panels { padding: 16px; }
  .system-copy h3 { font-size: 23px; }
  .flow { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .dash-kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .dash-charts { grid-template-columns: 1fr; }
  .dash-bars { grid-template-columns: 1fr 1fr; }
  .dash-bars .mock-sub { grid-column: 1 / -1; }
  .crm-grid { grid-template-columns: 1fr; }
  .erp-tr { grid-template-columns: 50px minmax(0, 1fr) 74px; }
  .control-item { padding: 22px; }
  .path { grid-template-columns: 1fr; border-top: 0; }
  .path-step, .path-step + .path-step, .path-step:nth-child(3), .path-step:nth-child(4) {
    margin-top: 0;
    padding: 18px 0 18px 20px;
    border-left: 1px solid var(--line);
    border-top: 0;
  }
  .path-step::before, .path-step + .path-step::before, .path-step:nth-child(3)::before { left: -4px; top: 26px; }
  .path-step:first-child { padding-top: 8px; }
  .path-step:first-child::before { top: 16px; }
  .start-examples { align-items: flex-start; flex-direction: column; gap: 8px; }
  .cta { padding: 64px 0 48px; }
  .cta h2 { font-size: clamp(32px, 9vw, 44px); }
  .cta-actions .btn { flex: 1 1 100%; }
  .footer-inner { flex-direction: column; align-items: flex-start; gap: 16px; padding-top: 20px; padding-bottom: 20px; }
  .footer-nav { gap: 12px; }
}

@media (max-width: 420px) {
  .hero h1 { font-size: 40px; }
  .assembly-layer { grid-template-columns: 1fr; }
  .assembly-label { padding-top: 0; }
  .assembly-core { padding: 13px; }
  .profile-top h3 { font-size: 23px; }
  .system-tab strong { font-size: 12px; }
  .erp-tr { grid-template-columns: 46px minmax(0, 1fr) 68px; font-size: 8px; }
  .dash-kpis strong { font-size: 13px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }
  [data-reveal] { opacity: 1; transform: none; }
}

@media print {
  .site-header, .cta, .footer, .toast, .nav-toggle, .hero-bg { display: none !important; }
  body { background: #fff; }
  .section, .hero { padding: 24px 0; break-inside: avoid; }
  .section-alt { background: #fff; }
  .step-panel[hidden], .system-panel[hidden] { display: block !important; }
  .assembler, .system-panels, .record-figure { box-shadow: none; }
  [data-reveal] { opacity: 1; transform: none; }
  a[href^="mailto"]::after { content: " (" attr(href) ")"; font-size: 10px; color: #555; }
}
