:root { color: var(--zs-theme-text); background: var(--zs-theme-canvas); font-family: var(--zs-font-family); }
* { box-sizing: border-box; }
html { overflow-x: hidden !important; scroll-behavior: smooth; }
body { margin: 0; min-width: 320px; font-size: var(--zs-type-body); }
a { color: inherit; text-decoration: none; }

.jelly-root {
  display: block;
  color: var(--zs-theme-text);
  background: var(--zs-theme-canvas);
  --jelly-color-background-default: var(--zs-theme-canvas);
  --jelly-color-background-surface: var(--zs-theme-surface);
  --jelly-color-background-muted: color-mix(in srgb, var(--zs-theme-surface) 76%, var(--zs-theme-canvas));
  --jelly-color-background-neutral: var(--zs-theme-surface);
  --jelly-color-background-neutral-emphasis: var(--zs-theme-text);
  --jelly-color-background-accent: var(--zs-theme-accent);
  --jelly-color-background-amber: var(--zs-theme-highlight);
  --jelly-color-background-white: var(--zs-theme-inverse);
  --jelly-color-foreground-default: var(--zs-theme-text);
  --jelly-color-foreground-muted: var(--zs-theme-muted);
  --jelly-color-foreground-on-accent: var(--zs-theme-inverse);
  --jelly-color-foreground-on-emphasis: var(--zs-theme-inverse);
  --jelly-color-foreground-on-neutral: var(--zs-theme-text);
  --jelly-color-foreground-on-white: var(--zs-theme-text);
  --jelly-color-border-default: var(--zs-theme-border);
  --jelly-color-border-focus: color-mix(in srgb, var(--zs-theme-accent) 72%, var(--zs-theme-text));
  --jelly-color-shadow: color-mix(in srgb, var(--zs-theme-text) 20%, transparent);
}

section, .site-header, footer {
  padding-inline: max(var(--zs-space-page-inline), calc((100vw - 1480px) / 2));
}
.site-header {
  min-height: 92px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  border-bottom: 1px solid var(--zs-theme-border);
  background: color-mix(in srgb, var(--zs-theme-canvas) 92%, transparent);
}
.brand { display: flex; align-items: center; gap: 12px; }
.brand > img { width: 36px; height: 36px; display: block; }
.brand small {
  display: block;
  margin-top: 3px;
  color: var(--zs-theme-muted);
  font-size: var(--zs-type-label);
  letter-spacing: .1em;
  text-transform: uppercase;
}
nav { display: flex; align-items: center; gap: 28px; color: var(--zs-theme-muted); font-size: var(--zs-type-nav); }
nav a:hover { color: var(--zs-theme-accent); }
[data-zs-nav="platform-home"] { display: inline-flex; align-items: center; gap: 8px; color: var(--zs-theme-text); font-weight: 750; }

.hero {
  position: relative;
  min-height: min(820px, calc(100vh - 92px));
  display: grid;
  grid-template-columns: minmax(0, .9fr) minmax(520px, 1.1fr);
  gap: clamp(60px, 8vw, 132px);
  align-items: center;
  padding-block: clamp(82px, 9vw, 136px);
  overflow: clip;
}
.hero-copy { min-width: 0; }
.eyebrow, .index {
  color: var(--zs-theme-accent);
  font-size: var(--zs-type-label);
  font-weight: 850;
  letter-spacing: .17em;
}
.eyebrow { display: flex; align-items: center; gap: 12px; }
.eyebrow span { width: 34px; height: 1px; background: currentColor; }
h1, h2, h3, p { margin-top: 0; }
.hero h1 {
  max-width: none;
  margin: 28px 0 32px;
  font-size: var(--zs-type-display);
  line-height: .97;
  letter-spacing: -.06em;
}
.hero h1 span, .hero h1 em { display: block; white-space: nowrap; }
.hero h1 em { color: var(--zs-theme-accent); font-style: normal; }
.lead { max-width: 660px; color: var(--zs-theme-muted); font-size: var(--zs-type-body-lg); line-height: 1.85; }
.hero-actions { display: flex; align-items: center; gap: 26px; margin-top: 32px; }
.hero-actions jelly-button, .boundary-copy jelly-button { --jelly-button-min-height: 52px; }
.hero-actions a { font-weight: 750; }
.hero-actions a span { margin-left: 8px; color: var(--zs-theme-accent); }
.hero-note {
  margin: 52px 0 0;
  padding-top: 24px;
  display: flex;
  gap: 26px;
  border-top: 1px solid var(--zs-theme-border);
}
.hero-note strong, .hero-note span { display: block; }
.hero-note span { color: var(--zs-theme-muted); }

.flow-hero { position: relative; min-height: 570px; }
.flow-rail {
  position: absolute;
  top: 7%;
  bottom: 8%;
  left: 50%;
  width: 2px;
  background: linear-gradient(var(--zs-theme-accent), var(--zs-theme-highlight));
}
.flow-rail::before, .flow-rail::after {
  content: "";
  position: absolute;
  left: 50%;
  width: 11px;
  height: 11px;
  border: 3px solid var(--zs-theme-canvas);
  border-radius: 50%;
  background: var(--zs-theme-accent);
  transform: translateX(-50%);
}
.flow-rail::before { top: 0; }
.flow-rail::after { bottom: 0; background: var(--zs-theme-highlight); }
.flow-node { position: absolute; width: min(44%, 230px); --jelly-card-padding: 20px; }
.flow-node span { color: var(--zs-theme-accent); font-size: var(--zs-type-label); font-weight: 800; letter-spacing: .12em; }
.flow-node strong, .flow-node small { display: block; }
.flow-node strong { margin-top: 18px; font-size: var(--zs-type-subheading); }
.flow-node small { margin-top: 6px; color: var(--zs-theme-muted); }
.flow-node--order { top: 0; left: 0; transform: rotate(-2deg); }
.flow-node--plan { top: 27%; right: 0; transform: rotate(2deg); }
.flow-node--action { bottom: 12%; left: 1%; transform: rotate(1deg); }
.human-gate {
  position: absolute;
  top: 55%;
  left: 45%;
  width: 48%;
  padding: 14px 18px;
  border: 1px dashed var(--zs-theme-accent);
  color: var(--zs-theme-accent);
  background: var(--zs-theme-canvas);
  transform: rotate(-2deg);
}
.human-gate span, .human-gate strong { display: block; }
.human-gate span { font-size: 10px; letter-spacing: .14em; }
.human-gate strong { margin-top: 5px; font-size: var(--zs-type-nav); }
.flow-output {
  position: absolute;
  right: 0;
  bottom: 0;
  width: 48%;
  padding: 24px;
  color: var(--zs-theme-inverse);
  background: var(--zs-theme-text);
}
.flow-output span, .flow-output strong, .flow-output small { display: block; }
.flow-output span { color: var(--zs-theme-highlight); font-size: 10px; letter-spacing: .13em; }
.flow-output strong { margin-top: 8px; font-size: var(--zs-type-card); }
.flow-output small { margin-top: 5px; opacity: .7; }

.proof-section, .flow-section, .boundary-section { padding-block: clamp(96px, 10vw, 150px); }
.proof-section { display: block; color: var(--zs-theme-inverse); background: var(--zs-theme-text); }
.section-heading { display: grid; grid-template-columns: minmax(120px, .35fr) minmax(620px, 1fr); gap: 50px; }
h2 { font-size: var(--zs-type-section); line-height: 1.06; letter-spacing: -.05em; }
.section-heading h2 { justify-self: end; margin-bottom: 0; text-align: right; white-space: nowrap; }
.proof-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 74px; }
.proof-cards jelly-card { --jelly-card-padding: 32px; --jelly-fill: color-mix(in srgb, var(--zs-theme-inverse) 9%, var(--zs-theme-text)); --jelly-label: var(--zs-theme-inverse); }
.proof-cards span { color: var(--zs-theme-highlight); font-size: var(--zs-type-label); font-weight: 800; letter-spacing: .13em; }
.proof-cards h3 { margin: 76px 0 16px; font-size: var(--zs-type-subheading); }
.proof-cards p { margin-bottom: 0; color: color-mix(in srgb, var(--zs-theme-inverse) 68%, transparent); line-height: 1.75; }

.flow-section {
  display: grid;
  grid-template-columns: minmax(300px, .72fr) minmax(520px, 1.28fr);
  gap: clamp(60px, 8vw, 130px);
  background: var(--zs-theme-canvas);
}
.flow-intro h2 { white-space: nowrap; }
.flow-intro > p:last-child { max-width: 520px; color: var(--zs-theme-muted); line-height: 1.8; }
.manufacturing-track { margin: 0; padding: 0; border-top: 1px solid var(--zs-theme-border); list-style: none; }
.manufacturing-track li {
  min-height: 108px;
  display: grid;
  grid-template-columns: 58px 1fr auto;
  align-items: center;
  gap: 24px;
  border-bottom: 1px solid var(--zs-theme-border);
}
.manufacturing-track > li > span { color: var(--zs-theme-accent); font-size: var(--zs-type-label); font-weight: 850; }
.manufacturing-track strong, .manufacturing-track small { display: block; }
.manufacturing-track strong { font-size: var(--zs-type-subheading); }
.manufacturing-track small { margin-top: 5px; color: var(--zs-theme-muted); }
.manufacturing-track em { color: var(--zs-theme-muted); font-size: 10px; font-style: normal; letter-spacing: .14em; }

.boundary-section {
  min-height: 600px;
  display: grid;
  grid-template-columns: 1.1fr .9fr;
  gap: 8vw;
  align-items: end;
  background: var(--zs-theme-highlight);
}
.boundary-copy { max-width: 540px; }
.boundary-copy p { font-size: var(--zs-type-body-lg); line-height: 1.75; }
.boundary-copy jelly-button { margin-top: 22px; }

footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 180px;
  gap: 40px;
  color: var(--zs-theme-inverse);
  background: var(--zs-theme-text);
}
.footer-brand { display: flex; align-items: center; gap: 13px; }
.footer-brand img { width: 32px; filter: brightness(0) invert(1); }
.footer-brand strong, .footer-brand small { display: block; }
.footer-brand small { margin-top: 4px; opacity: .65; font-size: var(--zs-type-label); }
.footer-meta { display: flex; gap: 26px; color: color-mix(in srgb, var(--zs-theme-inverse) 62%, transparent); font-size: var(--zs-type-label); }

@media (max-width: 1060px) {
  .hero { grid-template-columns: 1fr; }
  .flow-hero { width: min(100%, 680px); justify-self: center; }
  .flow-section { grid-template-columns: 1fr; }
}

@media (max-width: 800px) {
  .site-header { min-height: 78px; }
  nav { gap: 14px; }
  nav .desktop-link { display: none; }
  .brand small { display: none; }
  .hero { min-height: auto; padding-block: 72px 90px; }
  .hero h1 { font-size: clamp(28px, 9.3vw, 42px); }
  .hero-actions { align-items: flex-start; flex-direction: column; }
  .hero-note { align-items: flex-start; flex-direction: column; gap: 8px; }
  .flow-hero { min-height: 540px; margin-top: 18px; }
  .flow-node { width: 47%; }
  .section-heading { display: block; }
  .section-heading h2 { margin-top: 28px; text-align: left; white-space: normal; }
  .proof-cards { grid-template-columns: 1fr; }
  .proof-cards h3 { margin-top: 40px; }
  .flow-intro h2 { white-space: normal; }
  .boundary-section { grid-template-columns: 1fr; align-items: start; }
  footer, .footer-meta { align-items: flex-start; flex-direction: column; }
  footer { padding-block: 48px; }
  .footer-meta { gap: 12px; }
}

@media (max-width: 430px) {
  .brand strong { font-size: 14px; }
  [data-zs-nav="platform-home"] { font-size: 13px; }
  .flow-node { width: 50%; --jelly-card-padding: 14px; }
  .flow-node strong { font-size: var(--zs-type-nav); }
  .flow-node--order { left: -2%; }
  .flow-node--plan { right: -2%; }
  .human-gate { left: 40%; width: 60%; }
  .flow-output { width: 58%; }
  .manufacturing-track li { grid-template-columns: 42px 1fr; gap: 14px; }
  .manufacturing-track em { display: none; }
}

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