:root {
  --sans: var(--font);
  --serif: var(--font);
  --mono: var(--font);
  --soft: var(--canvas);
  --coral-dark: var(--coral-deep);
  --gold: var(--amber);
}
html { scroll-padding-top: 96px; }
body, .splash { background: var(--canvas); }
.site-header { top: 0; background: var(--canvas); border-bottom: 1px solid var(--rule); }
.nav-shell { height: 70px; background: transparent; border: 0; border-radius: 0; padding: 0; box-shadow: none; backdrop-filter: none; -webkit-backdrop-filter: none; }
.nav-shell::before { display: none; }
.brand-lockup {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  color: var(--ink);
  font-size: 20px;
  font-weight: 500;
  line-height: 1;
  text-decoration: none;
  white-space: nowrap;
}
.brand-lockup img { display: block; width: 48px; height: 48px; object-fit: contain; }
.nav-cta, .button-primary { background: var(--fill); color: var(--text-invert); box-shadow: none; animation: none; }
.nav-cta:hover, .button-primary:hover { background: var(--fill-hover); box-shadow: none; }
.hero { display: grid; grid-template-columns: 1.05fr 1fr; gap: clamp(32px,5vw,80px); padding: 144px 0 68px; text-align: left; overflow: visible; }
.hero h1 { text-wrap: balance; font-size: clamp(50px,5.5vw,var(--fs-display)); font-weight: 500; line-height: var(--lh-display); letter-spacing: var(--ls-display); color: var(--ink); margin: 0 0 var(--s3); }
.hero p, .platform-intro p { font-size: 18px; line-height: var(--lh-body); color: var(--body); max-width: 49ch; margin: 0; font-weight: 400; }
.hero-actions { margin-top: var(--s4); justify-content: flex-start; gap: var(--s3); }
.button-primary { gap: 12px; font-size: 16px; padding-inline: 24px; }
.text-link { text-underline-offset: 5px; }










.kind { display: inline-block; width: fit-content; font-size: var(--fs-small); font-weight: 500; background: var(--pink); color: var(--ink-warm); border-radius: var(--r-pill); padding: 4px 10px; }
.clients { padding: 22px 0 36px; border-top: 1px solid var(--rule); }
.clients-label { margin-bottom: 20px; }
.clients-label p { color: var(--body); font-size: 14px; letter-spacing: 0; }
.platform { padding: clamp(56px,7vw,100px) 0; background: var(--paper); }
.section-title { margin: 0 0 32px; font-size: clamp(34px,4vw,var(--fs-h1)); line-height: var(--lh-h1); letter-spacing: var(--ls-h1); font-weight: 500; }
.platform-intro { display: flex; align-items: baseline; justify-content: space-between; gap: 32px; margin-bottom: 40px; }
.platform-intro .section-title { margin: 0; }
.architecture { background: var(--canvas); border: 1px solid var(--rule); border-radius: var(--r-media); padding: clamp(18px,3vw,36px); }
.architecture h3 { font-size: var(--fs-h3); font-weight: 500; margin: 0 0 var(--s2); }
.architecture ul { list-style: none; padding: 0; margin: 0; }
.workflows { display: grid; grid-template-columns: repeat(4,1fr); gap: 8px; }
.workflows li { display: grid; align-content: start; gap: 12px; background: var(--paper); padding: 16px; border: 1px solid var(--rule); border-radius: 8px; font-size: 18px; }
.workflows li:nth-child(2) .kind { background: var(--blush); }
.workflows li:nth-child(3) .kind { background: var(--butter); }
.workflows li:nth-child(4) .kind { background: var(--chip); }
.relation { display: flex; gap: 8px; align-items: center; justify-content: center; padding: 14px 0; font-size: 14px; color: var(--body); }
.relation span { color: var(--accent-press); font-size: 22px; }
.foundation { padding: 24px; color: var(--text-invert); background: var(--night); border-radius: 12px; border-top: 4px solid var(--coral); }
.foundation dl { margin: 0; display: grid; grid-template-columns: repeat(5,1fr); gap: 18px; }
.foundation dl div { border-top: 1px solid var(--rule-invert); padding-top: 12px; }
.foundation dt { font-weight: 500; }
.foundation dd { margin: 8px 0 0; color: var(--text-invert-2); font-size: 14px; line-height: 1.5; }
.systems { display: flex; flex-wrap: wrap; gap: 8px; }
.systems li { padding: 8px 14px; background: var(--paper); border: 1px solid var(--rule); border-radius: var(--r-pill); }





@media (max-width: 800px) {
  .hero { grid-template-columns: 1fr; padding: 118px 0 44px; gap: 32px; }
  .hero-copy { max-width: 550px; }

  .platform-intro { display: grid; gap: 16px; }
  .workflows, .foundation dl { grid-template-columns: repeat(2,1fr); }


}
@media (max-width: 480px) {
  .hero h1 { font-size: 48px; }
  .foundation dl { grid-template-columns: 1fr; }
  .foundation { padding: 18px; }
  .workflows li { font-size: 15px; padding: 12px; }
  .hero-actions { gap: 16px; }
}

.build-process, .customer-story { padding-block: clamp(56px, 7vw, 100px); }
.build-layout, .story-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: clamp(40px, 8vw, 112px);
}
.build-intro h2 { max-width: 12ch; }
.build-intro p, .build-steps p, .story-copy p {
  margin: 0;
  font-size: var(--fs-body);
  line-height: var(--lh-body);
  color: var(--text-body);
}
.build-intro p { max-width: 35ch; }
.build-steps { list-style: none; margin: 0; padding: 0; counter-reset: step; }
.build-steps li {
  counter-increment: step;
  position: relative;
  padding: var(--s3) 0 var(--s3) 48px;
  border-top: 1px solid var(--rule);
}
.build-steps li:first-child { border-color: var(--ink); }
.build-steps li:last-child { padding-bottom: 0; }
.build-steps li::before {
  content: counter(step, decimal-leading-zero);
  position: absolute;
  left: 0;
  top: 27px;
  font-size: var(--fs-label);
  color: var(--accent-press);
  font-variant-numeric: tabular-nums;
}
.step-icon {
  float: right;
  box-sizing: content-box;
  padding: 8px;
  margin: 0 0 8px 16px;
  background: var(--blush);
  border-radius: 12px;
  fill: none;
  stroke: var(--ink-warm);
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.build-steps li:nth-child(2) .step-icon { background: var(--butter); }
.build-steps li:nth-child(3) .step-icon { background: var(--pink); }
.step-accent { stroke: var(--coral-deep); }
.build-steps h3 { margin: 0 0 8px; font-size: var(--fs-h3); font-weight: 500; }
.customer-story { color: var(--ink); background: var(--paper); border-top: 1px solid var(--rule); }
.story-layout { align-items: center; grid-template-columns: 1.15fr .85fr; }
.story-logo { display: block; width: 104px; height: auto; margin-bottom: var(--s4); }
.story-copy h2 { max-width: 19ch; margin-bottom: var(--s3); }
.story-copy p { max-width: 48ch; color: var(--body); }
.story-link {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  margin-top: var(--s4);
  padding: 12px 20px;
  color: var(--ink);
  border: 1px solid var(--ink);
  border-radius: var(--r-pill);
  text-decoration: none;
}
.story-link:hover { color: var(--paper); background: var(--ink); }
.story-link:focus-visible { outline-color: var(--focus-ring); }
.story-panel { overflow: hidden; border: 1px solid var(--rule); border-radius: var(--r-media); background: var(--canvas); }
.story-product {
  display: grid;
  place-items: center;
  padding: 24px;
  background: linear-gradient(120deg, var(--butter), var(--blush) 65%, var(--pink));
}
.story-product img { display: block; width: min(60%, 210px); height: auto; }
.story-metric { margin: 0; padding: clamp(22px, 3vw, 36px); }
.story-metric figcaption { font-size: var(--fs-h3); font-weight: 500; }
.story-metric dl { margin: 24px 0 0; display: grid; gap: 24px; }
.story-metric dl > div { display: grid; grid-template-columns: 1fr auto; align-items: baseline; gap: 8px; }
.story-metric dt { color: var(--body); }
.story-metric dd { margin: 0; font-size: clamp(36px, 4vw, 56px); line-height: 1; letter-spacing: var(--ls-stat); }
/* Both accuracy bars use the same 0–100% scale. */
.story-metric dl > div::after {
  content: "";
  grid-column: 1 / -1;
  height: 8px;
  border-radius: var(--r-pill);
  background: linear-gradient(to right, var(--bar-color) var(--accuracy), var(--line) var(--accuracy));
}
.story-metric dl > div:first-child { --accuracy: 70%; --bar-color: var(--mute-2); }
.story-metric dl > div:last-child { --accuracy: 95%; --bar-color: var(--accent); }
@media (max-width: 760px) {
  .build-layout, .story-layout { grid-template-columns: 1fr; gap: var(--s4); }
  .build-intro h2 { max-width: 18ch; margin-bottom: var(--s2); }
  .build-intro p { max-width: 48ch; }
  .build-steps li { padding-left: 36px; }
}

.workflow-preview { margin: 0; padding: clamp(22px,3vw,44px); border-radius: var(--r-media); background: var(--bg-warm); color: var(--ink-warm); display: grid; justify-items: center; }
.workflow-preview figcaption { width: 100%; font-size: 18px; font-weight: 500; padding-bottom: 24px; }
.flow-sources { display: flex; justify-content: space-between; width: 85%; gap: 8px; }
.flow-sources span { background: var(--paper); border: 1px solid var(--rule); border-radius: var(--r-pill); padding: 8px 14px; font-size: var(--fs-small); }
.flow-join { width: 59%; height: 20px; border: solid var(--coral); border-width: 0 1px 1px; position: relative; margin-bottom: 15px; }
.flow-join::after, .flow-stem { content: ''; width: 1px; height: 15px; background: var(--coral); }
.flow-join::after { position: absolute; top: 100%; left: 50%; }
.flow-engine { background: var(--night); color: var(--canvas); padding: 17px 27px; border-radius: 8px; font-size: 20px; font-weight: 500; }
.flow-engine i { display: inline-block; width: 9px; height: 9px; background: var(--coral); border-radius: 50%; margin-right: 12px; }
.flow-result { display: grid; justify-items: start; gap: 8px; padding: 15px 23px; background: var(--paper); border: 1px solid var(--rule); border-radius: 8px; }

@media (max-width: 800px) {
  .workflow-preview { width: 100%; max-width: 550px; justify-self: center; }
}
