/* ============ SYNAPSA STYLESHEET ============ */
:root {
  --bg: #07111F;
  --surface: #0D1A2B;
  --elevated: #12223A;
  --border: rgba(180,200,225,0.14);
  --border-strong: rgba(180,200,225,0.22);
  --text: #F4F7FB;
  --text-dim: #9FB0C3;
  --text-soft: #6F8196;
  --blue: #0B3B76;
  --blue-2: #1B3A5C;
  --blue-ink: #041a3a;
  --teal: #2FB3A2;
  --teal-soft: rgba(47,179,162,0.14);
  --teal-strong: #3FC9B6;
  --line-weak: rgba(47,179,162,0.15);
  --line-strong: rgba(47,179,162,0.85);
  --radius: 14px;
  --radius-lg: 20px;
  --shadow: 0 20px 60px -30px rgba(0,0,0,0.6);
  --shadow-soft: 0 6px 20px -12px rgba(0,0,0,0.5);
  --maxw: 1220px;
  --pad: clamp(18px, 4vw, 40px);
  --ff-sans: 'Inter', ui-sans-serif, system-ui, -apple-system, 'Helvetica Neue', sans-serif;
  --ff-serif: 'Instrument Serif', 'Times New Roman', serif;
  --ff-mono: 'JetBrains Mono', ui-monospace, monospace;
}

html[data-theme="light"] {
  --bg: #F7F9FB;
  --surface: #FFFFFF;
  --elevated: #FFFFFF;
  --border: rgba(27, 58, 92, 0.10);
  --border-strong: rgba(27, 58, 92, 0.18);
  --text: #0B1F3A;
  --text-dim: #4A5C73;
  --text-soft: #7A8BA0;
  --blue: #0B3B76;
  --blue-2: #1B3A5C;
  --teal: #2A7F6F;
  --teal-soft: rgba(42, 127, 111, 0.10);
  --teal-strong: #2A7F6F;
  --line-weak: rgba(42, 127, 111, 0.22);
  --line-strong: rgba(42, 127, 111, 0.85);
  --shadow: 0 18px 50px -30px rgba(11, 31, 58, 0.25);
  --shadow-soft: 0 6px 20px -12px rgba(11, 31, 58, 0.15);
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--ff-sans);
  background: var(--bg);
  color: var(--text);
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  transition: background-color .5s ease, color .5s ease;
  overflow-x: hidden;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }

/* === TYPO === */
h1, h2, h3 { margin: 0; letter-spacing: -0.02em; color: var(--text); font-weight: 500; }
h1 { font-size: clamp(40px, 6.2vw, 78px); line-height: 1.02; letter-spacing: -0.03em; font-weight: 500; }
h2 { font-size: clamp(30px, 3.6vw, 52px); line-height: 1.06; letter-spacing: -0.025em; }
h3 { font-size: 19px; line-height: 1.25; font-weight: 500; }
em { font-style: italic; font-family: var(--ff-serif); font-weight: 400; color: var(--teal-strong); letter-spacing: -0.01em; }
h1 em, h2 em { font-size: 1.05em; }
p { margin: 0; color: var(--text-dim); }
.kicker {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--ff-mono); font-size: 11px;
  text-transform: uppercase; letter-spacing: 0.18em;
  color: var(--teal-strong); font-weight: 500;
}
.kicker::before {
  content: ""; width: 18px; height: 1px; background: currentColor;
}

/* === NAV === */
.nav {
  position: sticky; top: 0; z-index: 50;
  background: color-mix(in oklab, var(--bg) 78%, transparent);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid transparent;
  transition: background .3s ease, border-color .3s ease;
}
.nav.scrolled { border-bottom-color: var(--border); }
.nav-inner {
  max-width: var(--maxw); margin: 0 auto;
  padding: 14px var(--pad);
  display: flex; align-items: center; justify-content: space-between;
  gap: 20px;
}
.brand {
  display: inline-flex; align-items: center; gap: 10px;
  color: var(--text); font-weight: 600;
}
.brand-mark { width: 44px; height: 22px; color: var(--text); flex-shrink: 0; }
.brand-mark .brand-hub { fill: var(--teal-strong); }
.brand-word { font-size: 18px; letter-spacing: -0.01em; font-weight: 500; }
.nav-links {
  display: flex; gap: 4px; align-items: center;
  background: color-mix(in oklab, var(--surface) 60%, transparent);
  border: 1px solid var(--border);
  padding: 4px; border-radius: 999px;
}
.nav-links a {
  padding: 8px 14px; border-radius: 999px;
  font-size: 13.5px; color: var(--text-dim);
  transition: color .2s ease, background-color .2s ease;
}
.nav-links a:hover { color: var(--text); background: color-mix(in oklab, var(--elevated) 70%, transparent); }
.nav-actions { display: flex; align-items: center; gap: 10px; }
.theme-toggle {
  width: 38px; height: 38px; border-radius: 999px;
  border: 1px solid var(--border);
  background: color-mix(in oklab, var(--surface) 60%, transparent);
  color: var(--text); cursor: pointer; position: relative;
  display: inline-flex; align-items: center; justify-content: center;
  transition: border-color .2s ease, transform .2s ease;
}
.theme-toggle:hover { border-color: var(--teal-strong); transform: rotate(-8deg); }
.theme-toggle svg { width: 16px; height: 16px; position: absolute; transition: opacity .3s, transform .3s; }
html[data-theme="dark"] .icon-sun { opacity: 1; }
html[data-theme="dark"] .icon-moon { opacity: 0; transform: rotate(-90deg) scale(0.6); }
html[data-theme="light"] .icon-sun { opacity: 0; transform: rotate(90deg) scale(0.6); }
html[data-theme="light"] .icon-moon { opacity: 1; }

.burger { display: none; background: none; border: 1px solid var(--border); width: 38px; height: 38px; border-radius: 10px; flex-direction: column; justify-content: center; align-items: center; gap: 4px; cursor: pointer; }
.burger span { width: 16px; height: 1.5px; background: var(--text); display: block; transition: transform .3s, opacity .3s; }
.burger.open span:nth-child(1) { transform: translateY(5.5px) rotate(45deg); }
.burger.open span:nth-child(2) { opacity: 0; }
.burger.open span:nth-child(3) { transform: translateY(-5.5px) rotate(-45deg); }

.nav-mobile {
  display: none;
  flex-direction: column; gap: 4px;
  padding: 8px var(--pad) 20px;
  border-top: 1px solid var(--border);
  background: var(--bg);
}
.nav-mobile a { padding: 12px 4px; color: var(--text-dim); border-bottom: 1px solid var(--border); }
.nav-mobile.open { display: flex; }

/* === BUTTONS === */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 13px 20px; border-radius: 999px;
  font-family: inherit; font-size: 14.5px; font-weight: 500;
  letter-spacing: -0.005em;
  border: 1px solid transparent; cursor: pointer;
  transition: transform .2s ease, background-color .2s ease, border-color .2s ease, color .2s ease, box-shadow .2s ease;
  white-space: nowrap;
}
.btn svg { width: 16px; height: 16px; }
.btn-sm { padding: 9px 14px; font-size: 13px; }
.btn-primary {
  background: var(--teal-strong); color: #062019;
  box-shadow: 0 10px 30px -12px color-mix(in oklab, var(--teal-strong) 80%, transparent);
}
html[data-theme="light"] .btn-primary { color: #ffffff; }
.btn-primary:hover { transform: translateY(-1px); background: color-mix(in oklab, var(--teal-strong) 85%, white); }
.btn-ghost {
  background: transparent; color: var(--text); border-color: var(--border-strong);
}
.btn-ghost:hover { border-color: var(--teal-strong); color: var(--teal-strong); }

/* === SECTION === */
.section {
  max-width: var(--maxw); margin: 0 auto;
  padding: clamp(70px, 10vw, 130px) var(--pad);
  position: relative;
}
.section.alt {
  max-width: none; background: color-mix(in oklab, var(--surface) 70%, transparent);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.section.alt > * { max-width: var(--maxw); margin-left: auto; margin-right: auto; }
.section-head { max-width: 780px; margin-bottom: clamp(40px, 6vw, 70px); }
.section-head.narrow { max-width: 680px; }
.section-head h2 { margin-top: 16px; }
.section-head p { margin-top: 18px; font-size: 17px; max-width: 62ch; }

/* === HERO === */
.hero { padding-top: clamp(40px, 8vw, 80px); padding-bottom: 0; padding-left: var(--pad); padding-right: var(--pad); }
.hero-grid {
  display: grid; grid-template-columns: 1.05fr 0.95fr; gap: clamp(30px, 6vw, 70px);
  align-items: center;
  padding-bottom: clamp(60px, 8vw, 100px);
  max-width: var(--maxw); margin: 0 auto;
}
.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 6px 14px 6px 10px; border-radius: 999px;
  background: color-mix(in oklab, var(--surface) 70%, transparent);
  border: 1px solid var(--border);
  font-family: var(--ff-mono); font-size: 11.5px; color: var(--text-dim);
  letter-spacing: 0.02em;
}
.eyebrow .dot { width: 6px; height: 6px; border-radius: 999px; background: var(--teal-strong); box-shadow: 0 0 12px var(--teal-strong); animation: pulse 2.5s infinite ease-in-out; }
@keyframes pulse { 50% { opacity: 0.3; } }
.hero-title { margin-top: 22px; max-width: 14ch; text-wrap: pretty; }
.hero-sub { margin-top: 24px; font-size: 18px; max-width: 54ch; color: var(--text-dim); }
.hero-cta { margin-top: 34px; display: flex; gap: 12px; flex-wrap: wrap; }
.hero-meta {
  margin-top: 48px;
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px;
  padding-top: 28px; border-top: 1px solid var(--border);
}
.hero-meta div { display: flex; flex-direction: column; gap: 4px; }
.hero-meta strong { font-size: 13px; font-weight: 500; color: var(--teal-strong); font-family: var(--ff-mono); text-transform: uppercase; letter-spacing: 0.1em; }
.hero-meta span { font-size: 13.5px; color: var(--text-dim); }

/* hero synapse visual */
.hero-visual { position: relative; }
.synapse { width: 100%; height: auto; }
.synapse .rings { fill: none; stroke: var(--border); stroke-dasharray: 2 4; opacity: 0.5; }
.synapse .inputs rect, .synapse .outputs rect {
  fill: color-mix(in oklab, var(--surface) 80%, transparent);
  stroke: var(--border-strong); stroke-width: 1;
}
.synapse .inputs text, .synapse .outputs text {
  font-family: var(--ff-mono); font-size: 11px; fill: var(--text-dim);
  dominant-baseline: middle;
}
.synapse .dot-in { fill: var(--teal-strong); }
.synapse .hub-core { fill: var(--blue); stroke: var(--teal-strong); stroke-width: 1.5; }
html[data-theme="light"] .synapse .hub-core { fill: var(--blue-2); }
.synapse .hub-dot { fill: var(--teal-strong); }
.synapse .pulse { fill: var(--teal-strong); filter: drop-shadow(0 0 4px var(--teal-strong)); }
.synapse .wire { animation: wireFlow 4s infinite ease-in-out; }
.wire.w1 { animation-delay: 0s; }
.wire.w2 { animation-delay: 0.6s; }
.wire.w3 { animation-delay: 1.2s; }
.wire.w4 { animation-delay: 1.8s; }
.wire.w5 { animation-delay: 2.4s; }
@keyframes wireFlow {
  0%, 100% { stroke-width: 1.3; opacity: 0.7; }
  50% { stroke-width: 1.8; opacity: 1; }
}

/* hero strip */
.hero-strip {
  margin-top: 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  overflow: hidden;
  padding: 18px 0;
  background: color-mix(in oklab, var(--surface) 40%, transparent);
}
.strip-row {
  display: flex; gap: 28px; white-space: nowrap;
  font-family: var(--ff-mono); font-size: 12.5px; color: var(--text-soft);
  text-transform: uppercase; letter-spacing: 0.12em;
  animation: strip 50s linear infinite;
}
.strip-row span:nth-child(odd) { color: var(--text-dim); }
@keyframes strip {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

/* === PAIN GRID === */
.pain-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px;
  background: var(--border);
  border: 1px solid var(--border); border-radius: var(--radius-lg);
  overflow: hidden;
}
.pain-card {
  padding: 34px 30px 30px;
  background: var(--bg);
  position: relative;
  transition: background-color .3s ease;
}
.section.alt .pain-card { background: var(--surface); }
.pain-card::before {
  content: attr(data-num);
  position: absolute; top: 24px; right: 28px;
  font-family: var(--ff-mono); font-size: 11px; color: var(--text-soft);
  letter-spacing: 0.1em;
}
.pain-glyph {
  width: 44px; height: 44px; border-radius: 12px;
  background: var(--teal-soft); color: var(--teal-strong);
  display: inline-flex; align-items: center; justify-content: center;
  margin-bottom: 20px; transition: transform .3s ease;
}
.pain-glyph svg { width: 22px; height: 22px; }
.pain-card h3 { margin-bottom: 8px; }
.pain-card p { font-size: 14.5px; }
.pain-card:hover { background: color-mix(in oklab, var(--teal) 6%, var(--bg)); }
.section.alt .pain-card:hover { background: color-mix(in oklab, var(--teal) 6%, var(--surface)); }
.pain-card:hover .pain-glyph { transform: translateY(-3px) rotate(-3deg); }

/* === TWO COL (Enfoque) === */
.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(30px, 5vw, 60px); align-items: start; }
.two-col-copy h2 { margin-top: 16px; }
.two-col-copy .lead { margin-top: 24px; font-size: 17px; max-width: 52ch; }
.pullquote {
  margin: 36px 0 0; padding: 24px 26px;
  border-left: 2px solid var(--teal-strong);
  background: var(--teal-soft);
  border-radius: 4px 14px 14px 4px;
  font-family: var(--ff-serif); font-size: 24px; line-height: 1.3;
  color: var(--text); font-style: italic;
  position: relative;
}
.pq-mark { font-size: 48px; color: var(--teal-strong); line-height: 0; vertical-align: -14px; margin-right: 4px; font-style: normal; }

.flow-card {
  background: var(--bg); border: 1px solid var(--border);
  border-radius: var(--radius-lg); padding: 24px;
  box-shadow: var(--shadow);
}
.section.alt .flow-card { background: var(--bg); }
.flow-card-head {
  display: flex; justify-content: space-between; align-items: center;
  font-family: var(--ff-mono); font-size: 11px; color: var(--text-soft);
  text-transform: uppercase; letter-spacing: 0.18em;
  padding-bottom: 16px; border-bottom: 1px solid var(--border);
}
.flow-dot { width: 8px; height: 8px; border-radius: 999px; background: var(--teal-strong); box-shadow: 0 0 0 4px var(--teal-soft); }
.flow-steps { list-style: none; padding: 0; margin: 0; counter-reset: step; }
.flow-steps li {
  display: grid; grid-template-columns: 44px 1fr; row-gap: 4px; column-gap: 16px;
  padding: 18px 0;
  border-bottom: 1px dashed var(--border);
  position: relative;
}
.flow-steps li:last-child { border-bottom: 0; }
.fs-n { grid-row: span 2; font-family: var(--ff-mono); font-size: 13px; color: var(--teal-strong); display: flex; align-items: center; justify-content: center; height: 32px; width: 32px; border-radius: 999px; border: 1px solid var(--border-strong); background: var(--surface); align-self: start; }
.fs-t { font-size: 15px; font-weight: 500; color: var(--text); }
.fs-d { font-size: 13.5px; color: var(--text-dim); }

/* === TIME GRID === */
.time-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.time-card {
  padding: 30px 28px; border-radius: var(--radius-lg);
  border: 1px solid var(--border); background: var(--surface);
  display: flex; flex-direction: column; gap: 14px;
  transition: transform .3s ease, border-color .3s ease;
}
.time-card:hover { transform: translateY(-4px); border-color: var(--teal-strong); }
.time-card.featured {
  background: linear-gradient(160deg, color-mix(in oklab, var(--teal) 10%, var(--surface)), var(--surface));
  border-color: var(--teal-strong);
}
.tc-index { font-family: var(--ff-mono); font-size: 12px; color: var(--text-soft); letter-spacing: 0.1em; }
.time-card p { font-size: 14.5px; flex: 1; }
.tc-bar { height: 4px; background: var(--border); border-radius: 999px; overflow: hidden; margin-top: 4px; }
.tc-bar span { display: block; height: 100%; background: linear-gradient(90deg, var(--teal), var(--teal-strong)); width: var(--p); border-radius: 999px; animation: fillBar 1.6s ease-out; transform-origin: left; }
@keyframes fillBar { from { transform: scaleX(0); } }
.tc-foot { display: flex; justify-content: space-between; font-family: var(--ff-mono); font-size: 11px; color: var(--text-soft); text-transform: uppercase; letter-spacing: 0.1em; }
.tc-foot span:last-child { color: var(--teal-strong); }

.time-quote {
  margin: 70px auto 0; max-width: 22ch;
  font-family: var(--ff-serif); font-style: italic;
  font-size: clamp(28px, 3.5vw, 44px); line-height: 1.15;
  color: var(--text); text-align: center; text-wrap: balance;
}
.time-quote em { color: var(--teal-strong); }

/* === BUILD GRID === */
.build-grid {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
.build-card {
  background: var(--bg); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 24px 22px; display: flex; flex-direction: column; gap: 10px; min-height: 180px;
  position: relative; overflow: hidden;
  transition: border-color .3s ease, background-color .3s ease, transform .3s ease;
}
.build-card:hover { border-color: var(--teal-strong); transform: translateY(-2px); }
.build-card header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 6px; }
.bc-tag { font-family: var(--ff-mono); font-size: 11px; color: var(--teal-strong); letter-spacing: 0.1em; text-transform: uppercase; padding: 4px 10px; border-radius: 999px; background: var(--teal-soft); }
.bc-n { font-family: var(--ff-mono); font-size: 11px; color: var(--text-soft); }
.build-card h3 { letter-spacing: -0.015em; }
.build-card p { font-size: 14px; }
.build-card.feature { grid-column: span 2; background: linear-gradient(135deg, var(--bg), color-mix(in oklab, var(--teal) 6%, var(--bg))); }
.bc-vis { margin-top: 18px; color: var(--teal-strong); opacity: 0.7; height: 90px; }
.bc-vis .hub-dot { fill: var(--teal-strong); filter: drop-shadow(0 0 6px var(--teal-strong)); }

/* === SCALE GRID === */
.scale-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.scale-block {
  padding: 36px 34px; border: 1px solid var(--border);
  border-radius: var(--radius-lg); background: var(--surface);
  display: flex; flex-direction: column;
}
.scale-block.featured {
  background: linear-gradient(160deg, var(--blue-ink), var(--surface));
  border-color: var(--border-strong);
}
html[data-theme="light"] .scale-block.featured { background: linear-gradient(160deg, color-mix(in oklab, var(--blue) 8%, white), white); }
.scale-head { margin-bottom: 28px; padding-bottom: 20px; border-bottom: 1px solid var(--border); }
.sb-label { font-family: var(--ff-mono); font-size: 11px; letter-spacing: 0.2em; color: var(--teal-strong); text-transform: uppercase; }
.scale-head h3 { font-size: 24px; margin-top: 10px; letter-spacing: -0.015em; font-weight: 500; }
.scale-list { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 0; }
.scale-list li {
  padding: 18px 0; display: grid; gap: 4px;
  border-bottom: 1px dashed var(--border);
}
.scale-list li:last-child { border-bottom: 0; }
.sl-t { font-size: 15.5px; font-weight: 500; color: var(--text); }
.sl-d { font-size: 13.5px; color: var(--text-dim); }

/* === METHOD === */
.method { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 0; border-top: 1px solid var(--border); }
.method-step {
  display: grid; grid-template-columns: 80px 1fr auto; align-items: center; gap: 30px;
  padding: 26px 0;
  border-bottom: 1px solid var(--border);
  transition: background-color .3s ease;
  position: relative;
}
.method-step::before {
  content: ""; position: absolute; left: 0; right: 0; top: 0; bottom: 0;
  background: var(--teal-soft); opacity: 0;
  transition: opacity .3s ease; pointer-events: none;
  margin: 0 calc(var(--pad) * -1); border-radius: 0;
}
.method-step:hover::before { opacity: 0.5; }
.ms-num { font-family: var(--ff-serif); font-style: italic; font-size: 44px; color: var(--teal-strong); line-height: 1; }
.ms-body h3 { font-size: 22px; font-weight: 500; margin-bottom: 4px; }
.ms-body p { font-size: 14.5px; max-width: 60ch; }
.ms-tag { font-family: var(--ff-mono); font-size: 11px; color: var(--text-soft); letter-spacing: 0.15em; text-transform: uppercase; padding: 6px 12px; border: 1px solid var(--border-strong); border-radius: 999px; }

.method-quote {
  margin-top: 60px; font-family: var(--ff-serif);
  font-size: clamp(24px, 3vw, 36px); color: var(--text); text-align: center;
  letter-spacing: -0.01em;
}

/* === TOOLS === */
.tools-grid { display: flex; flex-wrap: wrap; gap: 10px; }
.tool {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 11px 16px;
  border: 1px solid var(--border); border-radius: 999px;
  background: var(--surface);
  font-size: 14px; color: var(--text);
  transition: border-color .2s, transform .2s;
}
.tool:hover { border-color: var(--teal-strong); transform: translateY(-2px); }
.tool-dot { width: 6px; height: 6px; border-radius: 999px; background: var(--teal-strong); }
.tools-foot {
  margin-top: 50px; font-family: var(--ff-serif);
  font-size: clamp(22px, 2.4vw, 30px); color: var(--text-dim); text-align: left;
  max-width: 40ch;
}
.tools-foot em { color: var(--teal-strong); }

/* === STAGE === */
.stage-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.stage-card {
  padding: 30px 28px; border-radius: var(--radius-lg);
  border: 1px solid var(--border); background: var(--bg);
  display: flex; flex-direction: column; gap: 14px;
  transition: border-color .3s, transform .3s;
}
.section.alt .stage-card { background: var(--surface); }
.stage-card:hover { border-color: var(--teal-strong); transform: translateY(-4px); }
.sc-top { display: flex; align-items: center; gap: 14px; margin-bottom: 4px; }
.sc-n {
  width: 34px; height: 34px; border-radius: 10px;
  background: var(--teal-soft); color: var(--teal-strong);
  display: inline-flex; align-items: center; justify-content: center;
  font-family: var(--ff-mono); font-weight: 600; font-size: 14px;
}
.sc-label { font-family: var(--ff-mono); font-size: 11px; letter-spacing: 0.15em; color: var(--text-soft); text-transform: uppercase; }
.stage-card.middle { background: linear-gradient(160deg, color-mix(in oklab, var(--teal) 8%, var(--bg)), var(--bg)); }
.section.alt .stage-card.middle { background: linear-gradient(160deg, color-mix(in oklab, var(--teal) 8%, var(--surface)), var(--surface)); }
.stage-card h3 { letter-spacing: -0.015em; }
.stage-card p { font-size: 14.5px; }
.stage-card ul { list-style: none; padding: 0; margin: 10px 0 0; display: flex; flex-direction: column; gap: 8px; border-top: 1px solid var(--border); padding-top: 16px; }
.stage-card ul li { font-size: 13.5px; color: var(--text-dim); padding-left: 18px; position: relative; }
.stage-card ul li::before { content: ""; position: absolute; left: 0; top: 8px; width: 8px; height: 1px; background: var(--teal-strong); }

/* === MANIFESTO === */
.manifesto {
  background: radial-gradient(ellipse at top, color-mix(in oklab, var(--teal) 12%, var(--bg)), var(--bg) 60%);
  max-width: none;
  padding-left: var(--pad); padding-right: var(--pad);
}
.manifesto-inner {
  max-width: 880px; margin: 0 auto; text-align: center;
}
.manifesto-inner h2 { margin-top: 18px; }
.manifesto-inner p { margin-top: 28px; font-size: 18px; line-height: 1.55; }
.manifesto-lines {
  margin-top: 50px; display: flex; flex-wrap: wrap; justify-content: center; gap: 12px;
}
.manifesto-lines span {
  font-family: var(--ff-mono); font-size: 12.5px; color: var(--teal-strong);
  padding: 10px 18px; border: 1px solid var(--teal-strong);
  border-radius: 999px;
  background: color-mix(in oklab, var(--teal) 8%, transparent);
}

/* === CONTACT === */
.contact-grid { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: clamp(30px, 5vw, 60px); align-items: start; }
.contact-copy h2 { margin-top: 14px; }
.contact-copy > p { margin-top: 18px; font-size: 17px; max-width: 42ch; }
.contact-cards { margin-top: 30px; display: flex; flex-direction: column; gap: 1px; background: var(--border); border-radius: var(--radius); overflow: hidden; border: 1px solid var(--border); }
.contact-line {
  display: flex; justify-content: space-between; align-items: baseline;
  padding: 18px 22px; background: var(--surface);
  transition: background-color .2s;
  font-family: inherit; border: 0; text-align: left; width: 100%; cursor: pointer;
  color: var(--text); font-size: 15px;
}
.contact-line:hover { background: color-mix(in oklab, var(--teal) 6%, var(--surface)); }
.cl-label { font-family: var(--ff-mono); font-size: 11px; color: var(--text-soft); letter-spacing: 0.15em; text-transform: uppercase; }
.cl-val { color: var(--text); font-size: 15px; font-weight: 500; }
.contact-line.clickable .cl-val { color: var(--teal-strong); }
.contact-foot { margin-top: 24px; font-size: 13px; color: var(--text-soft); max-width: 46ch; }

.contact-form {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius-lg); padding: 32px;
  box-shadow: var(--shadow);
  position: relative; overflow: hidden;
}
.cf-head {
  display: flex; justify-content: space-between; align-items: center;
  margin-bottom: 24px; padding-bottom: 20px;
  border-bottom: 1px solid var(--border);
}
.cf-badge { font-family: var(--ff-mono); font-size: 11px; text-transform: uppercase; letter-spacing: 0.15em; color: var(--teal-strong); }
.cf-step { font-family: var(--ff-mono); font-size: 12px; color: var(--text-soft); }
.cf-step-box { border: 0; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 16px; }
.cf-step-box legend { font-size: 13px; color: var(--text-dim); margin-bottom: 8px; font-family: var(--ff-mono); text-transform: uppercase; letter-spacing: 0.1em; }
.cf-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.cf-step-box label { display: flex; flex-direction: column; gap: 6px; font-size: 12.5px; color: var(--text-dim); font-family: var(--ff-mono); text-transform: uppercase; letter-spacing: 0.1em; }
.cf-step-box input, .cf-step-box textarea {
  font-family: var(--ff-sans); font-size: 15px;
  padding: 12px 14px; border: 1px solid var(--border);
  border-radius: 10px; background: var(--bg); color: var(--text);
  transition: border-color .2s, background-color .2s;
  outline: none;
}
.cf-step-box input:focus, .cf-step-box textarea:focus { border-color: var(--teal-strong); background: color-mix(in oklab, var(--teal) 4%, var(--bg)); }
.cf-choices { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.cf-choice {
  padding: 14px 16px; border: 1px solid var(--border); border-radius: 10px;
  background: var(--bg); cursor: pointer; font-family: inherit;
  font-size: 14px !important; color: var(--text) !important;
  text-transform: none !important; letter-spacing: 0 !important;
  display: flex; align-items: center; gap: 10px;
  transition: border-color .2s, background-color .2s;
}
.cf-choice input { accent-color: var(--teal-strong); margin: 0; }
.cf-choice:has(input:checked) { border-color: var(--teal-strong); background: var(--teal-soft); }
.cf-actions { display: flex; justify-content: space-between; gap: 10px; margin-top: 28px; padding-top: 20px; border-top: 1px solid var(--border); }
.cf-actions .btn { flex: 1; }
#cfNext, #cfSubmit { flex: 1.5; }
.cf-success[hidden] { display: none !important; }
.cf-success {
  position: absolute; inset: 0; background: var(--surface);
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  padding: 40px; text-align: center; gap: 16px;
  animation: fade .4s ease;
}
.cfs-ring {
  width: 72px; height: 72px; border-radius: 50%;
  border: 2px solid var(--teal-strong);
  position: relative; margin-bottom: 10px;
}
.cfs-ring::after {
  content: ""; position: absolute; inset: -8px;
  border: 1px dashed var(--teal-strong); border-radius: 50%;
  animation: spin 6s linear infinite;
}
.cfs-ring::before {
  content: "✓"; position: absolute; inset: 0;
  display: flex; align-items: center; justify-content: center;
  color: var(--teal-strong); font-size: 32px;
}
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes fade { from { opacity: 0; } }

/* === CLOSING === */
.closing { text-align: center; }
.closing-inner { max-width: 880px; margin: 0 auto; }
.closing-inner h2 { text-wrap: balance; }
.closing-inner p { margin-top: 24px; font-size: 18px; max-width: 56ch; margin-left: auto; margin-right: auto; }
.closing-cta { margin-top: 36px; display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }

/* === FOOTER === */
.footer {
  border-top: 1px solid var(--border);
  background: color-mix(in oklab, var(--surface) 60%, transparent);
  padding-top: 60px;
}
.footer-inner {
  max-width: var(--maxw); margin: 0 auto;
  padding: 0 var(--pad);
  display: grid; grid-template-columns: 2fr 1fr 1fr 1.2fr; gap: 40px;
}
.f-col { display: flex; flex-direction: column; gap: 10px; }
.f-col a { color: var(--text-dim); font-size: 14px; transition: color .2s; }
.f-col a.f-tel { font-size: 13px; color: var(--text-soft); font-family: var(--ff-mono); letter-spacing: .04em; }
.f-col a:hover { color: var(--teal-strong); }
.f-brand .brand { margin-bottom: 8px; }
.f-desc { font-size: 14px; max-width: 40ch; }
.f-legal { font-family: var(--ff-mono); font-size: 11px; color: var(--text-soft); letter-spacing: 0.15em; text-transform: uppercase; margin-top: 14px; }
.f-label { font-family: var(--ff-mono); font-size: 11px; color: var(--text-soft); letter-spacing: 0.15em; text-transform: uppercase; margin-bottom: 4px; }
.f-motto p { font-family: var(--ff-serif); font-style: italic; font-size: 22px; color: var(--text); line-height: 1.25; max-width: 20ch; }
.f-motto em { color: var(--teal-strong); }
.footer-bottom {
  margin-top: 60px; padding: 22px var(--pad);
  border-top: 1px solid var(--border);
  display: flex; justify-content: space-between; align-items: center;
  font-family: var(--ff-mono); font-size: 11px; color: var(--text-soft); letter-spacing: 0.1em; text-transform: uppercase;
}

/* === CHATBOT === */
.bot-fab {
  position: fixed; bottom: 22px; right: 22px; z-index: 60;
  display: inline-flex; align-items: center; gap: 10px;
  padding: 12px 20px 12px 14px; border-radius: 999px;
  background: var(--surface); color: var(--text);
  border: 1px solid var(--border-strong);
  font-family: inherit; font-size: 14px; font-weight: 500;
  cursor: pointer; box-shadow: var(--shadow);
  transition: transform .2s, border-color .2s;
}
.bot-fab:hover { transform: translateY(-2px); border-color: var(--teal-strong); }
.bot-fab svg { width: 26px; height: 26px; color: var(--text); }
.bot-fab .brand-hub-fill { fill: var(--teal-strong); }
.bot-fab::after {
  content: ""; position: absolute; top: 14px; right: 14px;
  width: 8px; height: 8px; border-radius: 999px;
  background: var(--teal-strong);
  box-shadow: 0 0 0 0 var(--teal-strong);
  animation: ping 2s infinite;
}
@keyframes ping {
  0% { box-shadow: 0 0 0 0 color-mix(in oklab, var(--teal-strong) 60%, transparent); }
  70% { box-shadow: 0 0 0 12px color-mix(in oklab, var(--teal-strong) 0%, transparent); }
  100% { box-shadow: 0 0 0 0 transparent; }
}
.bot-fab.hidden { opacity: 0; pointer-events: none; transform: scale(0.8); }

.bot-panel {
  position: fixed; bottom: 22px; right: 22px; z-index: 70;
  width: min(420px, calc(100vw - 32px));
  height: min(640px, calc(100vh - 44px));
  background: var(--surface); border: 1px solid var(--border-strong);
  border-radius: 18px; box-shadow: 0 30px 80px -30px rgba(0,0,0,0.5);
  display: flex; flex-direction: column; overflow: hidden;
  opacity: 0; transform: translateY(14px) scale(0.98); pointer-events: none;
  transition: opacity .25s ease, transform .25s ease;
}
.bot-panel.open { opacity: 1; transform: none; pointer-events: all; }
.bot-head {
  display: flex; justify-content: space-between; align-items: center;
  padding: 16px 18px; border-bottom: 1px solid var(--border);
  background: linear-gradient(180deg, color-mix(in oklab, var(--teal) 8%, var(--surface)), var(--surface));
}
.bot-head-l { display: flex; align-items: center; gap: 12px; }
.bot-avatar { width: 36px; height: 36px; border-radius: 10px; background: var(--bg); border: 1px solid var(--border); display: inline-flex; align-items: center; justify-content: center; color: var(--text); }
.bot-avatar svg { width: 22px; height: 22px; }
.bot-avatar .brand-hub-fill { fill: var(--teal-strong); }
.bot-head-l strong { display: block; font-size: 14px; }
.bot-status { display: flex; align-items: center; gap: 6px; font-size: 11px; color: var(--text-soft); font-family: var(--ff-mono); letter-spacing: 0.08em; text-transform: uppercase; }
.bs-dot { width: 6px; height: 6px; border-radius: 999px; background: var(--teal-strong); box-shadow: 0 0 6px var(--teal-strong); }
.bot-close { background: transparent; border: 0; color: var(--text); font-size: 24px; cursor: pointer; width: 32px; height: 32px; border-radius: 8px; transition: background-color .2s; }
.bot-close:hover { background: var(--elevated); }

.bot-body {
  flex: 1; padding: 18px; overflow-y: auto;
  display: flex; flex-direction: column; gap: 14px;
  scrollbar-width: thin; scrollbar-color: var(--border-strong) transparent;
}
.bot-msg { display: flex; gap: 10px; animation: msgIn .3s ease; }
@keyframes msgIn { from { opacity: 0; transform: translateY(6px); } }
.bot-msg .bm-body { max-width: 82%; padding: 12px 14px; border-radius: 14px; font-size: 14px; line-height: 1.45; }
.bot-msg.bot .bm-body { background: var(--bg); border: 1px solid var(--border); border-bottom-left-radius: 4px; }
.bot-msg.user { justify-content: flex-end; }
.bot-msg.user .bm-body { background: var(--teal-strong); color: #062019; border-bottom-right-radius: 4px; }
html[data-theme="light"] .bot-msg.user .bm-body { color: white; }
.bot-options { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 2px; padding-left: 0; }
.bot-opt {
  padding: 8px 12px; border-radius: 999px;
  border: 1px solid var(--teal-strong); color: var(--teal-strong);
  background: color-mix(in oklab, var(--teal) 5%, transparent);
  font-family: inherit; font-size: 12.5px; cursor: pointer;
  transition: background-color .2s, color .2s;
}
.bot-opt:hover { background: var(--teal-strong); color: #062019; }
html[data-theme="light"] .bot-opt:hover { color: white; }
.bot-ficha {
  background: var(--bg); border: 1px solid var(--teal-strong);
  border-radius: 14px; padding: 16px;
  font-size: 13px; color: var(--text-dim);
  display: flex; flex-direction: column; gap: 10px;
}
.bot-ficha h4 { margin: 0; font-family: var(--ff-mono); text-transform: uppercase; font-size: 11px; letter-spacing: 0.15em; color: var(--teal-strong); font-weight: 500; }
.bot-ficha dl { margin: 0; display: grid; grid-template-columns: 1fr; gap: 8px; }
.bot-ficha dt { font-size: 11px; color: var(--text-soft); font-family: var(--ff-mono); text-transform: uppercase; letter-spacing: 0.1em; }
.bot-ficha dd { margin: 2px 0 0; color: var(--text); font-size: 13.5px; }

.bot-input { padding: 14px 18px; border-top: 1px solid var(--border); background: var(--surface); }
.bot-input form { display: flex; gap: 8px; }
.bot-input input { flex: 1; padding: 12px 14px; border-radius: 10px; border: 1px solid var(--border); background: var(--bg); color: var(--text); font-family: inherit; font-size: 14px; outline: none; transition: border-color .2s; }
.bot-input input:focus { border-color: var(--teal-strong); }
.bot-input button {
  width: 44px; height: 44px; border-radius: 10px;
  background: var(--teal-strong); color: #062019; border: 0; cursor: pointer;
  display: inline-flex; align-items: center; justify-content: center;
  transition: transform .2s;
}
html[data-theme="light"] .bot-input button { color: white; }
.bot-input button:hover { transform: translateX(2px); }
.bot-input button svg { width: 18px; height: 18px; }
.bot-input.mini-form { padding-bottom: 18px; }
.bot-mini-form { display: grid; gap: 8px; grid-template-columns: 1fr 1fr; width: 100%; }
.bot-mini-form input {
  grid-column: span 1;
  padding: 10px 12px; border-radius: 8px; border: 1px solid var(--border);
  background: var(--bg); color: var(--text); font-family: inherit; font-size: 13px;
}
.bot-mini-form input.full { grid-column: span 2; }
.bot-mini-form button {
  grid-column: span 2;
  padding: 12px; border-radius: 10px; border: 0;
  background: var(--teal-strong); color: #062019; cursor: pointer;
  font-size: 14px; font-weight: 500; font-family: inherit;
}
html[data-theme="light"] .bot-mini-form button { color: white; }

/* typing indicator */
.typing { display: inline-flex; gap: 4px; padding: 14px; background: var(--bg); border: 1px solid var(--border); border-radius: 14px; border-bottom-left-radius: 4px; }
.typing span { width: 6px; height: 6px; border-radius: 999px; background: var(--text-soft); animation: bounce 1.4s infinite; }
.typing span:nth-child(2) { animation-delay: .2s; }
.typing span:nth-child(3) { animation-delay: .4s; }
@keyframes bounce { 0%, 60%, 100% { transform: translateY(0); opacity: .4; } 30% { transform: translateY(-4px); opacity: 1; } }

/* === ADMIN PANEL === */
.admin-overlay { position: fixed; inset: 0; z-index: 99; background: rgba(7,17,31,.55); backdrop-filter: blur(4px); }
.admin-overlay[hidden] { display: none !important; }
.admin-panel {
  position: fixed; inset: 50% auto auto 50%; transform: translate(-50%, -50%);
  z-index: 100;
  width: min(520px, calc(100vw - 32px));
  max-height: calc(100vh - 60px);
  background: var(--surface); border: 1px solid var(--border-strong);
  border-radius: 16px; box-shadow: 0 30px 80px -20px rgba(0,0,0,.5);
  display: flex; flex-direction: column; overflow: hidden;
}
.admin-panel[hidden] { display: none !important; }
.admin-panel header {
  display: flex; justify-content: space-between; align-items: center;
  padding: 16px 20px; border-bottom: 1px solid var(--border);
  background: linear-gradient(180deg, color-mix(in oklab, var(--teal) 8%, var(--surface)), var(--surface));
}
.ap-title { font-family: var(--ff-mono); font-size: 12px; letter-spacing: .15em; text-transform: uppercase; color: var(--teal-strong); }
.ap-close { background: transparent; border: 0; color: var(--text); font-size: 22px; cursor: pointer; width: 32px; height: 32px; border-radius: 8px; }
.ap-close:hover { background: var(--elevated); }
.ap-body { padding: 20px; overflow-y: auto; display: flex; flex-direction: column; gap: 16px; }
.ap-field { display: flex; flex-direction: column; gap: 6px; font-size: 11px; font-family: var(--ff-mono); text-transform: uppercase; letter-spacing: .12em; color: var(--text-dim); }
.ap-field input, .ap-field select, .ap-field textarea {
  font-family: var(--ff-sans); font-size: 14px; text-transform: none; letter-spacing: 0;
  padding: 10px 12px; border-radius: 8px; border: 1px solid var(--border);
  background: var(--bg); color: var(--text); outline: none;
}
.ap-field input:focus, .ap-field select:focus, .ap-field textarea:focus { border-color: var(--teal-strong); }
.ap-field textarea { font-family: var(--ff-mono); font-size: 12px; }
.ap-group { display: flex; flex-direction: column; gap: 14px; padding: 16px; background: var(--bg); border: 1px dashed var(--border); border-radius: 12px; }
.ap-warn { margin: 0; font-size: 12px; color: var(--text-soft); }
.ap-actions { display: flex; gap: 10px; justify-content: flex-end; padding-top: 8px; border-top: 1px solid var(--border); }
.ap-status { font-family: var(--ff-mono); font-size: 12px; color: var(--text-soft); min-height: 18px; }
.ap-status.ok { color: var(--teal-strong); }
.ap-status.err { color: tomato; }

/* reveal on scroll */
.reveal { opacity: 0; transform: translateY(14px); transition: opacity .8s ease, transform .8s ease; }
.reveal.in { opacity: 1; transform: none; }

/* ============ RESPONSIVE ============ */
@media (max-width: 1024px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-visual { order: -1; max-width: 420px; margin: 0 auto; }
  .two-col { grid-template-columns: 1fr; }
  .build-card.feature { grid-column: span 3; }
  .scale-grid { grid-template-columns: 1fr; }
  .contact-grid { grid-template-columns: 1fr; }
  .nav-links { display: none; }
  .burger { display: inline-flex; }
  .footer-inner { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 720px) {
  h1 { font-size: clamp(36px, 9vw, 52px); }
  .nav-actions .btn-sm { display: none; }
  .pain-grid { grid-template-columns: 1fr; }
  .time-grid { grid-template-columns: 1fr; }
  .build-grid { grid-template-columns: 1fr; }
  .build-card.feature { grid-column: span 1; }
  .stage-grid { grid-template-columns: 1fr; }
  .hero-meta { grid-template-columns: 1fr; gap: 14px; }
  .method-step { grid-template-columns: 50px 1fr; row-gap: 6px; }
  .method-step .ms-tag { grid-column: 2 / 3; justify-self: start; }
  .ms-num { font-size: 34px; }
  .cf-row { grid-template-columns: 1fr; }
  .cf-choices { grid-template-columns: 1fr; }
  .footer-inner { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; gap: 8px; text-align: center; }
  .bot-panel { bottom: 12px; right: 12px; left: 12px; width: auto; height: min(78vh, 600px); }
  .bot-fab span { display: none; }
  .bot-fab { padding: 10px; border-radius: 999px; }
}

@media (prefers-reduced-motion: reduce) {
  * { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; }
  .reveal { opacity: 1; transform: none; }
}
