:root {
  --board: #06182B;
  --board-2: #0B2338;
  --board-line: rgba(255, 255, 255, 0.09);
  --navy: #002E5B;
  --paper: #F1F3F5;
  --card: #FFFFFF;
  --ink: #16212D;
  --muted: #5A6775;
  --line: #DDE2E7;
  --run: #3DD68C;
  --run-ink: #12804D;
  --idle: #F2B705;
  --error: #EC1C24;
  --on-board: #E8EEF4;
  --on-board-dim: #8A9BAD;
  --accent: #5AA9FF;

  --display: "Archivo", system-ui, sans-serif;
  --body: "Archivo", system-ui, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, Menlo, monospace;

  --r: 8px;
  --wrap: 1180px;
  --gutter: clamp(16px, 4vw, 40px);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--body);
  font-size: 17px;
  line-height: 1.6;
  font-variation-settings: "wdth" 100;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; }
p { margin: 0 0 1em; }
button { font: inherit; cursor: pointer; }
.mono { font-family: var(--mono); font-variant-numeric: tabular-nums; letter-spacing: 0; }
.dim { color: var(--on-board-dim); }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }

.skip { position: absolute; left: -999px; top: 8px; background: #fff; color: var(--navy); padding: 8px 12px; z-index: 100; }
.skip:focus { left: 8px; }
:focus-visible { outline: 2px solid var(--idle); outline-offset: 3px; border-radius: 2px; }

/* ---------- type ---------- */
.display {
  font-family: var(--display);
  font-variation-settings: "wdth" 118;
  font-weight: 760;
  font-size: clamp(2.3rem, 5.4vw, 4.3rem);
  line-height: 1.02;
  letter-spacing: -0.025em;
  margin: 0 0 24px;
  text-wrap: balance;
}
.display-sm { font-size: clamp(2rem, 4.2vw, 3.3rem); }
.h2 {
  font-family: var(--display);
  font-variation-settings: "wdth" 112;
  font-weight: 720;
  font-size: clamp(1.7rem, 3vw, 2.45rem);
  line-height: 1.1;
  letter-spacing: -0.018em;
  color: var(--navy);
  margin: 0 0 20px;
  text-wrap: balance;
}
.board .h2 { color: #fff; }
.h3 { font-family: var(--display); font-variation-settings: "wdth" 108; font-weight: 680; font-size: 1.12rem; line-height: 1.25; margin: 0 0 8px; color: var(--navy); }
.lede { font-size: clamp(1.05rem, 1.4vw, 1.2rem); line-height: 1.55; max-width: 34em; }
.narrow { max-width: 18em; }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 48px; padding: 0 22px; border: 0;
  font-family: var(--body); font-weight: 650; font-size: 1rem;
  text-decoration: none; border-radius: var(--r);
  transition: background .2s, color .2s, border-color .2s, transform .2s;
}
.btn-sm { min-height: 40px; padding: 0 16px; font-size: .93rem; }
.btn-light { background: #fff; color: var(--navy); }
.btn-light:hover { background: #DCE8F4; }
.btn-ghost { background: transparent; color: #fff; border: 1px solid rgba(255,255,255,.28); }
.btn-ghost:hover { border-color: #fff; }
.btn-navy { background: var(--navy); color: #fff; }
.btn-navy:hover { background: #0B4176; }
.btn:disabled { opacity: .6; cursor: default; }
.wide { width: 100%; }

/* ---------- header ---------- */
.site-header { background: var(--board); color: var(--on-board); position: sticky; top: 0; z-index: 20; border-bottom: 1px solid var(--board-line); }
.header-inner { display: flex; align-items: center; gap: 32px; height: 66px; }
.lockup { display: flex; align-items: baseline; gap: 8px; text-decoration: none; color: #fff; }
.lockup-mark { font-family: var(--display); font-variation-settings: "wdth" 125; font-weight: 800; font-size: 1.25rem; letter-spacing: .02em; }
.lockup-by { font-size: .85rem; color: var(--on-board-dim); }
.nav { display: flex; gap: 26px; margin-left: auto; }
.nav a { text-decoration: none; font-size: .93rem; color: var(--on-board); opacity: .82; }
.nav a:hover { opacity: 1; }

/* ---------- board surfaces ---------- */
.board { background: var(--board); color: var(--on-board); }

/* ---------- hero ---------- */
.hero { padding: clamp(64px, 9vw, 120px) 0 0; position: relative; overflow: hidden; }
.hero::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background-image: linear-gradient(var(--board-line) 1px, transparent 1px), linear-gradient(90deg, var(--board-line) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: radial-gradient(ellipse at 50% 20%, #000 0%, transparent 65%);
  opacity: .5;
}
.hero-copy { position: relative; text-align: center; display: flex; flex-direction: column; align-items: center; }
.hero .display { color: #fff; font-size: clamp(2.3rem, 5.6vw, 4.8rem); line-height: 1.04; margin-bottom: 0; }
.hero .display .line { display: block; }
.hero-sub { margin: 28px 0 0; max-width: 34em; color: var(--on-board); font-size: clamp(1.05rem, 1.5vw, 1.25rem); line-height: 1.5; text-wrap: balance; }
@media (min-width: 640px) { .hero-sub .br { display: block; height: 0; overflow: hidden; } }   /* one sentence per line */
@media (min-width: 760px) { .hero .display .line { white-space: nowrap; } }
.hero .display .accent { color: var(--accent); }
.cta-row { display: flex; flex-wrap: wrap; gap: 12px; margin: 32px 0 0; }
.hero .cta-row { justify-content: center; margin-top: 40px; }

/* product shot, tilted and running off the bottom edge */
.hero-shot { position: relative; margin-top: clamp(48px, 7vw, 88px); perspective: 2400px; padding: 0 var(--gutter); height: clamp(260px, 42vw, 600px); overflow: hidden; -webkit-mask-image: linear-gradient(#000 50%, transparent 100%); mask-image: linear-gradient(#000 50%, transparent 100%); }
.shot {
  margin: 0 auto; max-width: 1200px;
  border-radius: 14px 14px 0 0; overflow: hidden;
  background: var(--board-2); border: 1px solid var(--board-line); border-bottom: 0;
  box-shadow: 0 -20px 80px -20px rgba(77,163,255,.18), 0 40px 120px -20px rgba(0,0,0,.7);
  transform: rotateX(14deg); transform-origin: 50% 0;
  animation: tilt-in 1.1s .15s cubic-bezier(.2,.7,.2,1) both;
}
.shot { position: relative; aspect-ratio: 1600 / 1000; }
@keyframes tilt-in { from { opacity: 0; transform: rotateX(28deg) translateY(40px); } to { opacity: 1; transform: rotateX(14deg); } }

/* load sequence */
.hero-copy > * { animation: rise .7s cubic-bezier(.2,.7,.2,1) both; }
.hero-copy > :nth-child(2) { animation-delay: .1s; }
@keyframes rise { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }

/* ---------- live cell (signature) ---------- */
.cell {
  background: var(--board-2);
  border: 1px solid var(--board-line);
  border-radius: 12px;
  padding: 18px;
  box-shadow: 0 30px 80px -30px rgba(0,0,0,.6);
}
.cell-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 14px; }
.cell-title { font-size: .85rem; color: #fff; }
.tick { position: relative; width: 36px; height: 36px; display: grid; place-items: center; }
.tick-ring { position: absolute; inset: 0; transform: rotate(-90deg); }
.tick-track { fill: none; stroke: var(--board-line); stroke-width: 3; }
.tick-fill { fill: none; stroke: var(--run); stroke-width: 3; stroke-linecap: round; stroke-dasharray: 94.25; stroke-dashoffset: 94.25; }
.tick-num { font-size: .78rem; color: #fff; }

.machines { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; }
.m {
  --state: var(--run);
  position: relative;
  background: rgba(255,255,255,.035);
  border-radius: var(--r);
  padding: 12px 12px 10px;
  overflow: hidden;
  transition: background .4s;
}
.m::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 3px; background: var(--state); transition: background .4s; }
.m[data-state="idle"] { --state: var(--idle); }
.m[data-state="error"] { --state: var(--error); background: rgba(236,28,36,.1); }
.m-code { font-family: var(--mono); font-size: .66rem; color: var(--on-board-dim); display: flex; justify-content: space-between; gap: 6px; white-space: nowrap; }
.m-code span:first-child { color: var(--on-board); }
.m-state { font-family: var(--display); font-variation-settings: "wdth" 112; font-weight: 700; font-size: .98rem; color: #fff; margin: 6px 0 2px; }
.m-state::first-letter { color: var(--state); }
.m-speed { font-family: var(--mono); font-size: 1.35rem; font-weight: 500; color: #fff; line-height: 1.1; font-variant-numeric: tabular-nums; }
.m-speed small { font-size: .62rem; color: var(--on-board-dim); margin-left: 3px; font-weight: 400; }
.m-out { font-family: var(--mono); font-size: .64rem; line-height: 1.35; color: var(--on-board-dim); margin-top: 6px; font-variant-numeric: tabular-nums; min-height: 2.7em; }
.m-err { font-family: var(--mono); font-size: .64rem; line-height: 1.35; color: #FF8A8E; margin-top: 6px; min-height: 2.7em; }
.m.flash { animation: flash .6s ease-out; }
@keyframes flash { from { box-shadow: inset 0 0 0 1px var(--state); } to { box-shadow: inset 0 0 0 1px transparent; } }

.cell-foot { display: flex; flex-wrap: wrap; gap: 16px; margin-top: 14px; font-size: .74rem; color: var(--on-board); }
.cell-foot b { color: #fff; font-weight: 600; margin-left: 4px; }
.cell-foot .dim { margin-left: auto; }
.dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; margin-right: 6px; vertical-align: 1px; }
.dot.run { background: var(--run); }
.dot.idle { background: var(--idle); }
.dot.error { background: var(--error); }

/* ---------- light sections ---------- */
.section { padding: clamp(72px, 10vw, 128px) 0; }
.section-tight { padding-top: 0; }
.split { display: grid; grid-template-columns: 1fr 1.15fr; gap: clamp(36px, 6vw, 88px); align-items: center; }
.split-rev { grid-template-columns: 1.15fr 1fr; }
.split-copy p { color: var(--muted); max-width: 32em; }

.panel { margin: 0; background: var(--card); border-radius: 12px; padding: 22px; box-shadow: 0 1px 2px rgba(16,33,51,.06), 0 18px 40px -24px rgba(16,33,51,.25); }
.panel-head { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 8px; font-size: .76rem; color: var(--muted); margin-bottom: 18px; }
.legend .dot { margin-left: 10px; }
.caption { font-size: .74rem; color: var(--muted); margin-top: 14px; font-family: var(--mono); }

.timelines { display: grid; gap: 7px; }
.tl { display: grid; grid-template-columns: 52px 1fr; gap: 10px; align-items: center; }
.tl-code { font-family: var(--mono); font-size: .7rem; color: var(--muted); }
.tl-bar { display: flex; height: 14px; border-radius: 3px; overflow: hidden; background: #EEF1F4; }
.tl-bar span { height: 100%; transform-origin: left; }
.tl-bar .run { background: var(--run); }
.tl-bar .idle { background: var(--idle); }
.tl-bar .error { background: var(--error); }
.tl-bar .oos { background: repeating-linear-gradient(135deg, #D5DBE1 0 4px, #EEF1F4 4px 8px); }
.axis { display: flex; justify-content: space-between; margin: 8px 0 0 62px; font-size: .66rem; color: var(--muted); }

.kpis { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin: 22px 0 0; padding-top: 18px; border-top: 1px solid var(--line); }
.kpis dt { font-size: .76rem; color: var(--muted); }
.kpis dd { margin: 2px 0 0; font-size: clamp(1.1rem, 2.2vw, 1.55rem); font-weight: 600; color: var(--navy); }

.bars { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.bar-row { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 4px 12px; font-size: .86rem; }
.bar-name { color: var(--ink); }
.bar-val { font-family: var(--mono); font-size: .8rem; color: var(--muted); }
.bar-track { grid-column: 1 / -1; height: 8px; background: #EEF1F4; border-radius: 4px; overflow: hidden; }
.bar-fill { height: 100%; width: 0; background: var(--navy); border-radius: 4px; transition: width 1.1s cubic-bezier(.2,.7,.2,1); }
.bar-row:first-child .bar-fill { background: var(--error); }

/* ---------- floor ---------- */
.floor-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 40px; }
.floor-card { background: var(--card); border-radius: 12px; padding: 22px; box-shadow: 0 1px 2px rgba(16,33,51,.06); }
.floor-card p { color: var(--muted); font-size: .95rem; margin: 0; }
.floor-card > div:first-child { min-height: 168px; border-radius: var(--r); margin-bottom: 22px; }

.sms { background: #EEF1F4; padding: 18px; display: flex; flex-direction: column; justify-content: center; }
.sms-from { font-size: .68rem; color: var(--muted); margin-bottom: 6px; }
.sms-bubble { background: #fff; border-radius: 14px 14px 14px 4px; padding: 12px 14px; font-size: .9rem; line-height: 1.4; max-width: 92%; box-shadow: 0 1px 2px rgba(16,33,51,.08); border-left: 3px solid var(--error); }
.sms-time { font-size: .66rem; color: var(--muted); margin-top: 6px; }

.wall { background: var(--board); padding: 14px; display: flex; align-items: center; }
.wall-grid { display: grid; grid-template-columns: repeat(6, 1fr); gap: 6px; width: 100%; }
.wall-grid i { aspect-ratio: 1.3; border-radius: 3px; background: var(--run); opacity: .85; transition: background .4s; }
.wall-grid i.idle { background: var(--idle); }
.wall-grid i.error { background: var(--error); }

.kiosk { background: #EEF1F4; padding: 16px; }
.kiosk-head { font-size: .68rem; color: var(--muted); }
.kiosk-q { font-weight: 650; color: var(--navy); margin: 8px 0 12px; font-size: .95rem; }
.kiosk-opts { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; }
.kiosk-opts span { background: #fff; border-radius: 6px; padding: 8px; font-size: .78rem; text-align: center; }
.kiosk-opts .on { background: var(--navy); color: #fff; }

/* ---------- data path ---------- */
.path-intro { max-width: 40em; }
.path-intro p { color: var(--on-board); }
.path-line { list-style: none; padding: 0; margin: 56px 0 0; display: grid; grid-template-columns: repeat(6, 1fr); position: relative; }
.path-line::before { content: ""; position: absolute; left: 0; right: 0; top: 7px; height: 2px; background: var(--board-line); }
.path-line li { position: relative; padding: 32px 14px 0 0; }
.path-line li::before { content: ""; position: absolute; left: 0; top: 0; width: 16px; height: 16px; border-radius: 50%; background: var(--board); border: 2px solid var(--on-board-dim); }
.path-line li:nth-child(3)::before { border-color: var(--idle); }
.node-k { display: block; color: #fff; font-size: .85rem; font-weight: 600; margin-bottom: 6px; }
.node-d { display: block; color: var(--on-board-dim); font-size: .84rem; line-height: 1.45; }
.packet { position: absolute; top: 3px; left: 0; width: 10px; height: 10px; border-radius: 50%; background: var(--run); box-shadow: 0 0 0 4px rgba(61,214,140,.18), 0 0 18px var(--run); opacity: 0; }
.path-line.go .packet { animation: travel 2.2s cubic-bezier(.5,0,.3,1) forwards; }
@keyframes travel { 0% { left: 2px; opacity: 1; } 92% { opacity: 1; } 100% { left: calc(100% * 5 / 6 + 3px); opacity: 0; } }
.facts { list-style: none; padding: 0; margin: 56px 0 0; display: flex; flex-wrap: wrap; gap: 10px; font-size: .78rem; }
.facts li { border: 1px solid var(--board-line); border-radius: 999px; padding: 7px 14px; color: var(--on-board); }

/* ---------- isolation ---------- */
.checks { list-style: none; padding: 0; margin: 0; display: grid; gap: 14px; }
.checks li { background: var(--card); border-radius: 10px; padding: 16px 18px; color: var(--muted); font-size: .95rem; }
.checks b { color: var(--navy); font-weight: 650; }

/* ---------- steps ---------- */
.steps { list-style: none; padding: 0; margin: 40px 0 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.steps li { border-top: 2px solid var(--navy); padding-top: 16px; }
.steps p { color: var(--muted); font-size: .95rem; margin: 0; }
.step-n { display: inline-block; font-size: .8rem; color: var(--navy); margin-bottom: 10px; }
.steps li:last-child { border-color: var(--run-ink); }
.pricing { margin-top: 40px; font-family: var(--display); font-variation-settings: "wdth" 112; font-weight: 680; font-size: 1.15rem; color: var(--navy); }

/* ---------- CTA + footer ---------- */
.cta-inner { max-width: 50em; }
.cta .display { color: #fff; }
.site-footer { background: #fff; padding: 40px 0; font-size: .86rem; color: var(--muted); }
.footer-inner { display: flex; align-items: center; gap: 24px; flex-wrap: wrap; }
.footer-inner p { margin: 0; flex: 1; min-width: 220px; }
.footer-inner nav { display: flex; gap: 20px; }
.footer-inner a { text-decoration: none; }
.footer-inner a:hover { color: var(--navy); }

/* ---------- demo request modal ---------- */
.modal { border: 0; padding: 0; border-radius: 14px; width: min(520px, calc(100vw - 32px)); max-height: calc(100dvh - 32px); color: var(--ink); box-shadow: 0 40px 100px -30px rgba(6,24,43,.6); }
.modal::backdrop { background: rgba(6,24,43,.6); backdrop-filter: blur(3px); }
.modal[open] { animation: pop .25s cubic-bezier(.2,.7,.2,1); }
@keyframes pop { from { opacity: 0; transform: translateY(10px) scale(.98); } to { opacity: 1; transform: none; } }
.modal-form, .modal-done { padding: 26px; display: grid; gap: 14px; }
.modal-head { display: flex; justify-content: space-between; align-items: center; }
.modal-head .h3 { font-size: 1.4rem; margin: 0; }
.x { background: none; border: 0; font-size: 1.6rem; line-height: 1; color: var(--muted); padding: 4px 8px; }
.modal-sub { color: var(--muted); font-size: .92rem; margin: -6px 0 4px; }
.modal label { display: grid; gap: 6px; font-size: .86rem; font-weight: 600; color: var(--navy); }
.modal input:not([type=radio]), .modal textarea { font: inherit; font-weight: 400; font-size: 1rem; color: var(--ink); background: var(--paper); border: 1px solid transparent; border-radius: var(--r); padding: 11px 12px; width: 100%; }
.modal input:focus, .modal textarea:focus { outline: none; border-color: var(--navy); background: #fff; }
.modal input[aria-invalid="true"] { border-color: var(--error); }
.modal fieldset { border: 0; padding: 0; margin: 0; }
.modal legend { font-size: .86rem; font-weight: 600; color: var(--navy); margin-bottom: 6px; padding: 0; }
.seg { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; }
.seg label { display: block; }
.seg input { position: absolute; opacity: 0; }
.seg span { display: block; text-align: center; background: var(--paper); border-radius: var(--r); padding: 10px 6px; font-weight: 500; color: var(--ink); font-size: .9rem; border: 1px solid transparent; }
.seg input:checked + span { background: var(--navy); color: #fff; }
.seg input:focus-visible + span { outline: 2px solid var(--idle); outline-offset: 2px; }
.fieldset-invalid .seg span { border-color: var(--error); }
.opt { font-weight: 400; color: var(--muted); }
.hp { position: absolute !important; left: -9999px; }
.form-error { color: #B3151B; font-size: .88rem; margin: 0; }
.fine { color: var(--muted); font-size: .76rem; margin: 0; text-align: center; }
.modal-done p { color: var(--muted); }

/* ---------- reveal ---------- */
.reveal { opacity: 0; transform: translateY(12px); transition: opacity .7s cubic-bezier(.2,.7,.2,1), transform .7s cubic-bezier(.2,.7,.2,1); }
.reveal.in { opacity: 1; transform: none; }
.steps li.reveal:nth-child(2) { transition-delay: .08s; }
.steps li.reveal:nth-child(3) { transition-delay: .16s; }
.steps li.reveal:nth-child(4) { transition-delay: .24s; }
.floor-card.reveal:nth-child(2) { transition-delay: .08s; }
.floor-card.reveal:nth-child(3) { transition-delay: .16s; }

/* ---------- responsive ---------- */
@media (max-width: 960px) {
  .hero-grid, .split, .split-rev { grid-template-columns: 1fr; }
  .split-rev > figure { order: 2; }
  .floor-grid { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr 1fr; }
  .nav { display: none; }
  .header-inner .btn { margin-left: auto; }
  .path-line { grid-template-columns: 1fr; gap: 22px; margin-left: 4px; }
  .path-line::before { left: 7px; right: auto; top: 0; bottom: 0; width: 2px; height: auto; }
  .path-line li { padding: 0 0 0 34px; }
  .packet { display: none; }
}
@media (max-width: 560px) {
  body { font-size: 16px; }
  .machines { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: 1fr; }
  .kpis { grid-template-columns: 1fr 1fr; }
  .cell-foot .dim { margin-left: 0; width: 100%; }
  .cta-row .btn { width: 100%; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .reveal { opacity: 1; transform: none; }
}
