/* Stakraf landing page. One stylesheet, no framework. */

:root {
  --bg: #ffffff;
  --tint: #f4f6f9;
  --tint-2: #e9eef5;
  --ink: #15191f;
  --ink-2: #3c4552;
  --muted: #6a7482;
  --line: #dde3eb;
  --line-2: #c9d2de;
  --blue: #315c9a;
  --blue-d: #244878;
  --blue-l: #e6edf7;
  --blue-grey: #c7d3e3;
  --dark: #0f1724;
  --dark-2: #172234;
  --amber: #b7791f;
  --amber-l: #fbf1df;
  --red: #b4403a;
  --red-l: #f8e6e4;
  --ok: #2f6f62;
  --radius: 10px;
  --shadow: 0 1px 2px rgba(16, 24, 40, .05), 0 12px 32px -12px rgba(16, 24, 40, .14);
  --shadow-lg: 0 2px 4px rgba(16, 24, 40, .05), 0 32px 64px -24px rgba(16, 24, 40, .24);
  --ease: cubic-bezier(.2, .7, .2, 1);
  --font: "Plus Jakarta Sans", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 76px; -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 400 16px/1.6 var(--font); -webkit-font-smoothing: antialiased; overflow-x: hidden; }
h1, h2, h3, p, ul, ol, dl, dd, figure { margin: 0; }
ul, ol { padding: 0; list-style: none; }
a { color: inherit; }
button, input, textarea { font: inherit; color: inherit; }
img, svg { display: block; max-width: 100%; }
[hidden] { display: none !important; }

.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: 16px; top: -60px; z-index: 100; background: var(--ink); color: #fff; padding: 10px 16px; border-radius: 6px; text-decoration: none; }
.skip:focus { top: 12px; }
:focus-visible { outline: 2px solid var(--blue); outline-offset: 3px; border-radius: 4px; }

.wrap { width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 32px; }
.section { padding: 128px 0; }
.section--tint { background: var(--tint); }
.section--dark { background: var(--dark); color: #e8edf4; }
.center { text-align: center; margin-top: 48px; }
.muted { color: var(--muted); font-size: 14px; }

/* Type */
.eyebrow { font-size: 12.5px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--blue); margin-bottom: 18px; }
.section--dark .eyebrow { color: #8fb0dc; }
h1 { font-size: clamp(40px, 5.6vw, 68px); line-height: 1.04; letter-spacing: -.035em; font-weight: 750; }
h2 { font-size: clamp(32px, 4vw, 50px); line-height: 1.08; letter-spacing: -.03em; font-weight: 720; max-width: 18ch; }
h3 { font-size: 18px; line-height: 1.3; letter-spacing: -.01em; font-weight: 680; }
.lead { font-size: clamp(17px, 1.5vw, 19px); line-height: 1.6; color: var(--ink-2); max-width: 60ch; margin-top: 24px; }
.section--dark .lead { color: #b6c2d3; }
.head { margin-bottom: 64px; }
.head--center { text-align: center; }
.head--center h2 { margin: 0 auto; max-width: 22ch; }
.statement { margin-top: 88px; font-size: clamp(24px, 2.8vw, 34px); line-height: 1.25; letter-spacing: -.02em; font-weight: 650; max-width: 26ch; }
.statement span { color: var(--blue); display: block; }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; padding: 0 22px; border-radius: 8px; border: 1px solid transparent; font-weight: 650; font-size: 15.5px; text-decoration: none; cursor: pointer; transition: background .2s, border-color .2s, transform .2s var(--ease), box-shadow .2s; white-space: nowrap; }
.btn--sm { min-height: 40px; padding: 0 16px; font-size: 14.5px; }
.btn--primary { background: var(--blue); color: #fff; box-shadow: 0 1px 0 rgba(255,255,255,.15) inset, 0 6px 16px -8px rgba(49, 92, 154, .7); }
.btn--primary:hover { background: var(--blue-d); transform: translateY(-1px); }
.btn--ghost { background: #fff; border-color: var(--line-2); color: var(--ink); }
.btn--ghost:hover { border-color: var(--ink-2); }
.btn--light { background: #fff; color: var(--dark); }
.btn--light:hover { background: var(--blue-l); }
.btn--outline-light { background: transparent; border-color: rgba(255,255,255,.28); color: #fff; }
.btn--outline-light:hover, .btn--outline-light[aria-pressed="true"] { border-color: #fff; background: rgba(255,255,255,.06); }
.cta-row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 40px; }
.cta-row--center { justify-content: center; }

.pill { display: inline-block; font-size: 11.5px; font-weight: 650; padding: 2px 8px; border-radius: 999px; background: var(--tint-2); color: var(--ink-2); font-style: normal; line-height: 1.6; }
.pill--live { background: #e3f0ec; color: var(--ok); }
.pill--live::before { content: ""; display: inline-block; width: 6px; height: 6px; border-radius: 50%; background: currentColor; margin-right: 6px; vertical-align: 1px; animation: blink 2s infinite; }
.pill--blue { background: var(--blue-l); color: var(--blue); }
.pill--warn { background: var(--amber-l); color: var(--amber); }
.pill--ok { background: #e3f0ec; color: var(--ok); }
.sev { display: inline-block; font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; padding: 3px 7px; border-radius: 4px; flex: none; }
.sev--high { background: var(--red-l); color: var(--red); }
.sev--med { background: var(--amber-l); color: var(--amber); }
.sev--low { background: var(--tint-2); color: var(--ink-2); }

/* Nav */
.nav { position: sticky; top: 0; z-index: 50; background: rgba(255,255,255,.88); backdrop-filter: saturate(1.4) blur(12px); -webkit-backdrop-filter: saturate(1.4) blur(12px); border-bottom: 1px solid transparent; transition: border-color .2s; }
.nav.is-scrolled { border-bottom-color: var(--line); }
.nav__inner { display: flex; align-items: center; justify-content: space-between; height: 68px; }
.logo { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; font-weight: 800; letter-spacing: .16em; font-size: 15px; }
.logo__mark { width: 26px; height: 26px; fill: var(--blue); }
.nav__menu { display: flex; align-items: center; gap: 4px; }
.nav__menu a:not(.btn) { display: block; padding: 8px 14px; text-decoration: none; font-size: 14.5px; font-weight: 550; color: var(--ink-2); border-radius: 6px; }
.nav__menu a:not(.btn):hover { color: var(--ink); background: var(--tint); }
.nav__cta-li { margin-left: 12px; }
.nav__toggle { display: none; width: 44px; height: 44px; background: none; border: 0; cursor: pointer; border-radius: 8px; }
.nav__bars, .nav__bars::before, .nav__bars::after { display: block; width: 20px; height: 2px; background: var(--ink); border-radius: 2px; margin: 0 auto; position: relative; transition: transform .25s var(--ease), opacity .2s; }
.nav__bars::before, .nav__bars::after { content: ""; position: absolute; left: 0; }
.nav__bars::before { top: -6px; } .nav__bars::after { top: 6px; }
.nav__toggle[aria-expanded="true"] .nav__bars { background: transparent; }
.nav__toggle[aria-expanded="true"] .nav__bars::before { transform: translateY(6px) rotate(45deg); }
.nav__toggle[aria-expanded="true"] .nav__bars::after { transform: translateY(-6px) rotate(-45deg); }

/* Hero */
.hero { padding: 88px 0 120px; position: relative; overflow: hidden; }
.hero::before { content: ""; position: absolute; inset: 0; background: radial-gradient(60% 60% at 85% 30%, rgba(49,92,154,.08), transparent 70%), linear-gradient(var(--line) 1px, transparent 1px) 0 0 / 100% 64px; mask-image: linear-gradient(180deg, rgba(0,0,0,.6), transparent 85%); -webkit-mask-image: linear-gradient(180deg, rgba(0,0,0,.6), transparent 85%); opacity: .55; pointer-events: none; }
.hero__grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.12fr); gap: 56px; align-items: center; position: relative; }
.hero h1 { max-width: 13ch; }

.hero__visual { display: grid; grid-template-columns: 184px 64px minmax(0, 1fr); align-items: center; height: 420px; }
.sources { display: grid; grid-template-rows: repeat(5, 1fr); height: 100%; gap: 0; align-items: center; }
.source { display: flex; align-items: center; gap: 10px; background: #fff; border: 1px solid var(--line); border-radius: 8px; padding: 8px 10px; box-shadow: 0 1px 2px rgba(16,24,40,.04); font-size: 13px; line-height: 1.25; opacity: 0; transform: translateX(-12px); animation: in-left .7s var(--ease) forwards; }
.source:nth-child(1) { animation-delay: .1s; } .source:nth-child(2) { animation-delay: .2s; } .source:nth-child(3) { animation-delay: .3s; } .source:nth-child(4) { animation-delay: .4s; } .source:nth-child(5) { animation-delay: .5s; }
.source b { display: block; font-weight: 650; }
.source small { color: var(--muted); font-size: 11.5px; }
.source__ico { width: 26px; height: 26px; flex: none; display: grid; place-items: center; border-radius: 6px; background: var(--blue-l); color: var(--blue); font-size: 13px; }
.flows { width: 100%; height: 84%; overflow: visible; }
.flows path { fill: none; stroke: var(--blue-grey); stroke-width: 1.5; vector-effect: non-scaling-stroke; }
.flows path { stroke-dasharray: 3 5; animation: flow 1.6s linear infinite; }
.workspace { background: #fff; border: 1px solid var(--line); border-radius: 12px; box-shadow: var(--shadow-lg); overflow: hidden; opacity: 0; transform: translateY(10px) scale(.98); animation: in-up .8s .6s var(--ease) forwards; }
.ws__bar { display: flex; align-items: center; gap: 12px; padding: 10px 14px; border-bottom: 1px solid var(--line); background: #fbfcfd; font-size: 12px; color: var(--muted); }
.ws__dots { display: inline-flex; gap: 5px; } .ws__dots i, .win__bar i { width: 8px; height: 8px; border-radius: 50%; background: var(--line-2); display: inline-block; }
.ws__crumb { flex: 1; }
.ws__body { padding: 18px 18px 8px; }
.ws__head { display: flex; gap: 12px; align-items: flex-start; padding-bottom: 14px; border-bottom: 1px solid var(--line); }
.ws__head h3 { font-size: 16px; }
.ws__head p { font-size: 12.5px; color: var(--muted); margin-top: 2px; }
.steps li { display: flex; align-items: center; gap: 10px; padding: 11px 0; font-size: 13.5px; font-weight: 550; border-bottom: 1px solid var(--tint-2); opacity: .25; transition: opacity .5s var(--ease); }
.steps li:last-child { border-bottom: 0; }
.steps li.on { opacity: 1; }
.steps time, .steps em { margin-left: auto; font-style: normal; font-size: 12px; color: var(--muted); font-weight: 500; }
.tick { width: 18px; height: 18px; flex: none; border-radius: 50%; border: 1.5px solid var(--line-2); position: relative; transition: background .3s, border-color .3s; }
.steps li.on .tick { background: var(--blue); border-color: var(--blue); }
.steps li.on .tick::after { content: ""; position: absolute; left: 5.5px; top: 2.5px; width: 4px; height: 8px; border: solid #fff; border-width: 0 2px 2px 0; transform: rotate(45deg); }

/* Problem */
.problem { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: 64px; align-items: start; }
.problem__visual { position: relative; background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 20px; box-shadow: var(--shadow); }
.toggle { display: inline-flex; background: var(--tint); border: 1px solid var(--line); border-radius: 8px; padding: 3px; margin-bottom: 16px; }
.toggle button { border: 0; background: none; padding: 7px 14px; border-radius: 6px; font-size: 13.5px; font-weight: 600; color: var(--muted); cursor: pointer; min-height: 36px; }
.toggle button[aria-pressed="true"] { background: #fff; color: var(--ink); box-shadow: 0 1px 2px rgba(16,24,40,.1); }
.windows { position: relative; height: 380px; }
.win, .unified { position: absolute; background: #fff; border: 1px solid var(--line); border-radius: 8px; box-shadow: var(--shadow); font-size: 12px; overflow: hidden; transition: transform .7s var(--ease), opacity .5s var(--ease); }
.win__bar { display: flex; gap: 5px; align-items: center; padding: 7px 10px; background: #f7f9fb; border-bottom: 1px solid var(--line); color: var(--muted); font-size: 11.5px; font-weight: 600; }
.win__bar span { margin-left: 6px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.win--alarm { left: 0; top: 0; width: 56%; transform: rotate(-1.2deg); }
.win--sheet { right: 0; top: 34px; width: 50%; transform: rotate(1deg); }
.win--chat { left: 4%; bottom: 0; width: 46%; transform: rotate(.8deg); padding-bottom: 8px; }
.win--report { right: 3%; bottom: 14px; width: 46%; transform: rotate(-1.4deg); padding-bottom: 10px; }
.mini, .grid { width: 100%; border-collapse: collapse; font-variant-numeric: tabular-nums; }
.mini td { padding: 6px 10px; border-bottom: 1px solid var(--tint-2); font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 11px; }
.mini tr.hot td { color: var(--red); font-weight: 600; background: #fdf6f5; }
.grid th, .grid td { border: 1px solid var(--tint-2); padding: 4px 8px; font-size: 11px; text-align: left; }
.grid th { background: #f7f9fb; color: var(--muted); font-weight: 600; }
.bubble { margin: 8px 10px 0; padding: 6px 10px; background: var(--tint); border-radius: 10px 10px 10px 2px; width: fit-content; max-width: 88%; }
.bubble--me { margin-left: auto; background: var(--blue-l); border-radius: 10px 10px 2px 10px; }
.doc-l { height: 6px; background: var(--tint-2); border-radius: 3px; margin: 10px 12px 0; }
.w80 { width: 70%; } .w60 { width: 52%; } .w90 { width: 82%; }
.doc-note { margin: 10px 12px 0; padding: 6px 8px; background: var(--amber-l); border-radius: 4px; font-style: italic; }
.unified { left: 10%; right: 10%; top: 60px; opacity: 0; transform: scale(.94); pointer-events: none; box-shadow: var(--shadow-lg); }
.unified__body { padding: 16px; }
.u-title { display: flex; gap: 10px; align-items: center; font-size: 15px; font-weight: 700; padding-bottom: 12px; border-bottom: 1px solid var(--line); }
.kv div { display: grid; grid-template-columns: 96px 1fr; gap: 10px; padding: 9px 0; border-bottom: 1px solid var(--tint-2); font-size: 13px; }
.kv div:last-child { border-bottom: 0; }
.kv dt { color: var(--muted); }
.kv dd { font-weight: 600; }
.problem__visual[data-state="after"] .win { opacity: 0; }
.problem__visual[data-state="after"] .win--alarm { transform: translate(30%, 40%) scale(.7); }
.problem__visual[data-state="after"] .win--sheet { transform: translate(-30%, 30%) scale(.7); }
.problem__visual[data-state="after"] .win--chat { transform: translate(30%, -40%) scale(.7); }
.problem__visual[data-state="after"] .win--report { transform: translate(-30%, -40%) scale(.7); }
.problem__visual[data-state="after"] .unified { opacity: 1; transform: none; pointer-events: auto; transition-delay: .15s; }
.issues { display: grid; gap: 0; }
.issues li { padding: 22px 0; border-top: 1px solid var(--line-2); }
.issues li:last-child { border-bottom: 1px solid var(--line-2); }
.issues p { color: var(--ink-2); margin-top: 6px; font-size: 15.5px; }

/* Approach */
.actions { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; margin-bottom: 72px; }
.actions li { border-top: 2px solid var(--ink); padding-top: 22px; }
.num { display: block; font-size: 13px; font-weight: 700; color: var(--blue); letter-spacing: .08em; margin-bottom: 14px; font-variant-numeric: tabular-nums; }
.actions h3 { font-size: 24px; letter-spacing: -.02em; }
.actions p { margin-top: 10px; color: var(--ink-2); }

/* Signature demo */
.demo { background: linear-gradient(180deg, var(--tint), #fff); border: 1px solid var(--line); border-radius: 18px; padding: 28px; }
.demo__hint { display: flex; align-items: center; gap: 10px; font-size: 14px; font-weight: 600; color: var(--ink-2); margin-bottom: 18px; }
.pulse-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--blue); box-shadow: 0 0 0 0 rgba(49,92,154,.5); animation: pulse 2s infinite; flex: none; }
.demo__caption { text-align: center; margin-top: 28px; font-size: 18px; color: var(--ink-2); }
.demo__caption b { color: var(--ink); }
.app { display: grid; grid-template-columns: 168px 300px minmax(0, 1fr); min-height: 520px; background: #fff; border: 1px solid var(--line); border-radius: 12px; box-shadow: var(--shadow-lg); overflow: hidden; }
.app__side { background: var(--dark); color: #b6c2d3; padding: 16px 10px; font-size: 13.5px; }
.app__brand { display: flex; align-items: center; gap: 8px; color: #fff; font-weight: 700; padding: 4px 8px 18px; }
.app__brand svg { width: 20px; fill: #8fb0dc; }
.app__side li { padding: 8px 10px; border-radius: 6px; display: flex; justify-content: space-between; }
.app__side li.on { background: rgba(255,255,255,.08); color: #fff; font-weight: 600; }
.app__side li b { font-size: 11px; background: var(--blue); color: #fff; border-radius: 999px; padding: 0 7px; line-height: 18px; }
.app__list { border-right: 1px solid var(--line); padding: 16px 12px; background: #fbfcfd; }
.app__label { font-size: 11.5px; text-transform: uppercase; letter-spacing: .1em; color: var(--muted); font-weight: 700; padding: 0 6px 10px; }
.events { display: grid; gap: 6px; }
.event { width: 100%; display: grid; grid-template-columns: auto 1fr; gap: 3px 10px; align-items: center; text-align: left; padding: 12px; border-radius: 8px; border: 1px solid transparent; background: none; cursor: pointer; transition: background .2s, border-color .2s; }
.event:hover { background: #fff; border-color: var(--line); }
.event[aria-selected="true"] { background: #fff; border-color: var(--blue); box-shadow: 0 0 0 3px var(--blue-l); }
.event__t { font-weight: 650; font-size: 13.5px; }
.event__m { grid-column: 2; font-size: 12px; color: var(--muted); }
.event--attn { animation: attn 2.4s var(--ease) infinite; }
.app__detail { position: relative; min-width: 0; }
.empty { position: absolute; inset: 0; display: grid; place-content: center; justify-items: center; gap: 14px; text-align: center; color: var(--muted); font-size: 14px; padding: 24px; }
.empty svg { width: 48px; fill: none; stroke: var(--line-2); stroke-width: 2; }
.empty b { color: var(--ink); }
.ctx { padding: 22px 24px; animation: fade-in .45s var(--ease); }
.ctx__head { display: flex; gap: 12px; align-items: flex-start; justify-content: space-between; flex-wrap: wrap; padding-bottom: 16px; border-bottom: 1px solid var(--line); }
.ctx__head > div { flex: 1; min-width: 0; }
.ctx__head h3 { font-size: 19px; }
.ctx__head p { color: var(--muted); font-size: 13px; margin-top: 2px; }
.ctx__chips { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }
.chip { font-size: 12px; font-weight: 600; padding: 4px 9px; border-radius: 6px; background: var(--tint); border: 1px solid var(--line); }
.chip b { color: var(--muted); font-weight: 600; margin-right: 4px; }
.ctx__tabs { display: flex; gap: 2px; border-bottom: 1px solid var(--line); margin-top: 6px; overflow-x: auto; scrollbar-width: none; }
.ctx__tabs button { border: 0; background: none; padding: 12px 12px 10px; font-size: 13.5px; font-weight: 600; color: var(--muted); border-bottom: 2px solid transparent; cursor: pointer; white-space: nowrap; }
.ctx__tabs button[aria-selected="true"] { color: var(--ink); border-bottom-color: var(--blue); }
.ctx__pane { padding: 16px 0 4px; min-height: 196px; animation: fade-in .35s var(--ease); }
.ctx__grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px 24px; font-size: 13.5px; }
.ctx__grid span { display: block; color: var(--muted); font-size: 12px; }
.ctx__grid b { font-weight: 600; }
.tl { display: grid; gap: 0; font-size: 13.5px; }
.tl li { position: relative; padding: 0 0 14px 22px; }
.tl li::before { content: ""; position: absolute; left: 4px; top: 7px; width: 8px; height: 8px; border-radius: 50%; background: var(--blue-grey); }
.tl li::after { content: ""; position: absolute; left: 7.5px; top: 18px; bottom: 2px; width: 1px; background: var(--line); }
.tl li:last-child::after { display: none; }
.tl li.new::before { background: var(--blue); box-shadow: 0 0 0 4px var(--blue-l); }
.tl time { display: block; font-size: 11.5px; color: var(--muted); font-weight: 600; }
.notes { display: grid; gap: 10px; font-size: 13.5px; }
.notes li { padding: 12px 14px; border: 1px solid var(--line); border-radius: 8px; }
.notes small { display: block; color: var(--muted); font-size: 12px; margin-bottom: 4px; }
.thumbs { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.thumb { aspect-ratio: 4/3; border-radius: 8px; border: 1px solid var(--line); background: var(--tint); display: grid; place-items: end start; padding: 8px; font-size: 11.5px; font-weight: 600; color: var(--ink-2); position: relative; overflow: hidden; }
.thumb svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.thumb span { position: relative; background: rgba(255,255,255,.9); padding: 2px 6px; border-radius: 4px; }
.team { display: grid; gap: 8px; font-size: 13.5px; }
.team li { display: flex; align-items: center; gap: 12px; padding: 8px 0; }
.avatar { width: 32px; height: 32px; border-radius: 50%; background: var(--blue-l); color: var(--blue); display: grid; place-items: center; font-weight: 700; font-size: 12px; flex: none; }
.team em { margin-left: auto; font-style: normal; }
.next { margin-top: 16px; padding: 16px; border-radius: 10px; background: var(--blue-l); display: flex; align-items: center; gap: 16px; justify-content: space-between; flex-wrap: wrap; }
.next p { font-size: 14px; }
.next p b { display: block; font-size: 12px; text-transform: uppercase; letter-spacing: .08em; color: var(--blue); }
.assign { margin-top: 16px; padding: 18px; border: 1px solid var(--blue); border-radius: 10px; display: grid; gap: 12px; animation: fade-in .3s var(--ease); }
.assign h4 { margin: 0; font-size: 15px; }
.assign__row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.assign label, .modal label { display: grid; gap: 6px; font-size: 13px; font-weight: 600; color: var(--ink-2); }
.assign select, .assign input, .modal input, .modal textarea { width: 100%; padding: 10px 12px; border: 1px solid var(--line-2); border-radius: 8px; background: #fff; font-size: 14.5px; min-height: 42px; }
.assign select:focus, .assign input:focus, .modal input:focus, .modal textarea:focus { outline: none; border-color: var(--blue); box-shadow: 0 0 0 3px var(--blue-l); }
.assign__btns { display: flex; gap: 8px; justify-content: flex-end; }
.done-banner { margin-top: 16px; padding: 14px 16px; border-radius: 10px; background: #e3f0ec; color: var(--ok); font-size: 14px; font-weight: 600; display: flex; gap: 10px; align-items: center; animation: fade-in .4s var(--ease); }
.done-banner button { margin-left: auto; background: none; border: 0; color: var(--ok); font-weight: 650; text-decoration: underline; cursor: pointer; min-height: 32px; }

/* Core */
.core { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 2fr) minmax(0, 1fr); gap: 32px; align-items: center; }
.caps { display: grid; gap: 28px; }
.cap { padding: 20px; border-radius: var(--radius); border: 1px solid transparent; transition: border-color .25s, background .25s; }
.cap:hover, .cap.is-lit { background: #fff; border-color: var(--line); }
.cap h3 { display: flex; align-items: center; gap: 10px; }
.cap h3::before { content: ""; width: 8px; height: 8px; border-radius: 2px; background: var(--blue); flex: none; }
.cap p { margin-top: 8px; color: var(--ink-2); font-size: 15px; }
.record { background: #fff; border: 1px solid var(--line); border-radius: 14px; box-shadow: var(--shadow-lg); overflow: hidden; }
.record__bar { display: flex; gap: 12px; align-items: center; padding: 12px 16px; border-bottom: 1px solid var(--line); background: #fbfcfd; font-size: 12.5px; color: var(--muted); }
.record__bar b { color: var(--ink); }
.record__tabs { display: flex; gap: 2px; padding: 0 12px; border-bottom: 1px solid var(--line); overflow-x: auto; scrollbar-width: none; }
.record__tabs button { border: 0; background: none; padding: 14px 12px 12px; font-size: 14px; font-weight: 600; color: var(--muted); border-bottom: 2px solid transparent; cursor: pointer; white-space: nowrap; }
.record__tabs button[aria-selected="true"] { color: var(--ink); border-bottom-color: var(--blue); }
.record__pane { padding: 22px; min-height: 276px; animation: fade-in .35s var(--ease); }
.fields { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px 28px; font-size: 14px; }
.fields > div > span { display: block; font-size: 12px; color: var(--muted); }
.fields b { font-weight: 600; }
.link { color: var(--blue); }
.custom-note { margin-top: 20px; padding-top: 16px; border-top: 1px dashed var(--line-2); font-size: 13px; color: var(--ink-2); }
.rel li { display: grid; grid-template-columns: 96px 1fr auto; gap: 12px; align-items: baseline; padding: 11px 0; border-bottom: 1px solid var(--tint-2); font-size: 14px; font-weight: 600; }
.rel li:last-child { border-bottom: 0; }
.rel__k { font-size: 12px; color: var(--muted); font-weight: 500; }
.rel em { font-style: normal; color: var(--muted); font-size: 12.5px; font-weight: 500; }
.flow { display: grid; grid-template-columns: repeat(5, 1fr); gap: 6px; margin-bottom: 20px; counter-reset: s; }
.flow li { counter-increment: s; font-size: 12.5px; font-weight: 600; padding: 34px 6px 0; position: relative; text-align: center; color: var(--muted); }
.flow li::before { content: counter(s); position: absolute; top: 0; left: 50%; transform: translateX(-50%); width: 24px; height: 24px; border-radius: 50%; border: 1.5px solid var(--line-2); background: #fff; display: grid; place-items: center; font-size: 11px; z-index: 1; }
.flow li::after { content: ""; position: absolute; top: 12px; left: calc(-50% + 14px); width: calc(100% - 28px + 6px); height: 1.5px; background: var(--line-2); }
.flow li:first-child::after { display: none; }
.flow li.done, .flow li.cur { color: var(--ink); }
.flow li.done::before { background: var(--blue); border-color: var(--blue); color: #fff; content: "✓"; }
.flow li.done::after, .flow li.cur::after { background: var(--blue); }
.flow li.cur::before { border-color: var(--blue); color: var(--blue); box-shadow: 0 0 0 4px var(--blue-l); }
.grow { margin-top: 80px; display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1.4fr) auto; gap: 40px; align-items: center; padding: 36px 40px; background: #fff; border: 1px solid var(--line); border-radius: 16px; }
.grow h3 { font-size: 24px; letter-spacing: -.02em; }
.grow p { color: var(--ink-2); margin-top: 10px; font-size: 15.5px; }
.grow__steps { display: grid; gap: 10px; }
.grow__steps li { display: grid; grid-template-columns: 72px 1fr; gap: 12px; font-size: 14.5px; padding-left: 14px; border-left: 2px solid var(--blue-grey); }
.grow__steps li:first-child { border-left-color: var(--blue); }
.grow__steps b { color: var(--blue); font-size: 12px; text-transform: uppercase; letter-spacing: .08em; padding-top: 2px; }

/* Edge */
.edge { background: var(--dark-2); border: 1px solid rgba(255,255,255,.08); border-radius: 16px; padding: 24px; }
.edge__controls { display: flex; flex-wrap: wrap; gap: 16px; align-items: center; margin-bottom: 12px; }
.edge__status { font-size: 14px; color: #b6c2d3; }
.edge__status b { color: #f2c27a; }
.arch-scroll { overflow-x: auto; }
.arch { width: 100%; height: auto; color: #8fb0dc; font-family: var(--font); }
.arch text { fill: #b6c2d3; font-size: 12px; text-anchor: middle; font-weight: 600; }
.arch__labels text { text-anchor: start; fill: #6f86a6; font-size: 11px; letter-spacing: .12em; text-transform: uppercase; font-weight: 700; }
.arch .site__name { text-anchor: start; fill: #e8edf4; font-size: 13px; font-weight: 650; }
.arch .tiny { font-size: 10px; fill: #7f93b0; font-weight: 500; }
.arch .eq rect { fill: #1f2d44; stroke: #36486a; }
.arch .sw { fill: #1a2638; stroke: #36486a; }
.arch .node rect { fill: #213a61; stroke: #4c76b3; stroke-width: 1.5; }
.arch .node text { fill: #fff; }
.arch .wire { stroke: #36486a; stroke-width: 1.5; fill: none; }
.arch .uplink { stroke: #6f9be0; stroke-width: 1.75; fill: none; stroke-dasharray: 4 6; animation: flow 1.4s linear infinite; transition: stroke .3s, opacity .3s; }
.arch .core-node rect { fill: #315c9a; stroke: #8fb0dc; stroke-width: 1.5; }
.arch .core-node text { fill: #fff; font-size: 14px; }
.arch .core-node .b { font-size: 22px; font-weight: 750; }
.arch .core-node .tiny { fill: #d3def0; font-size: 10.5px; font-weight: 500; }
.site.is-down .uplink { stroke: #e0a35a; stroke-dasharray: 2 10; opacity: .5; animation: none; }
.site.is-down .node rect { stroke: #e0a35a; }
.site.is-down .buffer { fill: #f2c27a; }
.trio { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; margin-top: 56px; }
.trio li { border-top: 1px solid rgba(255,255,255,.18); padding-top: 22px; }
.trio h3 { color: #fff; }
.trio p { color: #b6c2d3; margin-top: 8px; font-size: 15.5px; }

/* Engineering */
.eng { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: 72px; align-items: center; }
.eng__copy > p:not(.eyebrow):not(.lead) { margin-top: 14px; color: var(--ink-2); font-size: 17px; }
.eng__caps { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px 32px; margin-top: 44px; }
.eng__caps li { border-top: 1px solid var(--line-2); padding-top: 18px; }
.eng__caps p { margin-top: 6px; color: var(--ink-2); font-size: 15px; }
.eng__visual { background: var(--tint); border: 1px solid var(--line); border-radius: 16px; padding: 24px; }
.eng__visual svg { width: 100%; height: auto; font-family: var(--font); }
.eng__visual .rk { fill: #1b2433; }
.eng__visual .rk-units rect { fill: #2a3548; stroke: #3a4a63; }
.eng__visual .rk-units .hl { fill: #315c9a; stroke: #8fb0dc; }
.eng__visual .rk-units .hl2 { fill: #2b4a78; stroke: #8fb0dc; }
.eng__visual .leds circle { fill: #7ec4a5; animation: blink 3s infinite; }
.eng__visual .leds circle:nth-child(2n) { animation-delay: 1.1s; }
.eng__visual .anno path { fill: none; stroke: var(--blue); stroke-width: 1.25; stroke-dasharray: 3 3; }
.eng__visual .anno text { fill: var(--ink); font-size: 13px; font-weight: 700; }
.eng__visual .anno .s { fill: var(--muted); font-weight: 500; font-size: 11.5px; }
.eng__visual figcaption { font-size: 12px; color: var(--muted); margin-top: 12px; text-align: center; }

/* Ecosystem */
.eco { display: grid; grid-template-columns: minmax(0, 1fr) 80px minmax(0, 1fr); align-items: center; max-width: 980px; margin: 0 auto; }
.eco__card { display: block; text-decoration: none; background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 28px; transition: transform .25s var(--ease), box-shadow .25s, border-color .25s; }
.eco__card:hover { transform: translateY(-2px); box-shadow: var(--shadow); border-color: var(--line-2); }
.eco__card h3 { font-size: 22px; margin-top: 10px; letter-spacing: -.02em; }
.eco__card p { color: var(--ink-2); margin-top: 6px; }
.eco__card--core { background: var(--blue); color: #fff; border-color: var(--blue); padding: 40px 32px; }
.eco__card--core p { color: #dbe5f3; }
.eco__card--core .tag { background: rgba(255,255,255,.14); color: #fff; }
.tag { display: inline-block; font-size: 11.5px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; padding: 3px 9px; border-radius: 999px; background: var(--blue-l); color: var(--blue); }
.eco__ext { display: grid; gap: 16px; }
.eco__links { position: relative; height: 100%; min-height: 200px; }
.eco__links span { position: absolute; left: 50%; right: 0; height: 25%; border: 1.5px dashed var(--blue-grey); border-right: 0; }
.eco__links span:first-child { top: 25%; border-bottom: 0; border-radius: 12px 0 0 0; }
.eco__links span:last-child { top: 50%; border-top: 0; border-radius: 0 0 0 12px; }
.eco__links::before { content: ""; position: absolute; left: 0; width: 50%; top: 50%; border-top: 1.5px solid var(--blue); }
.eco__text { text-align: center; max-width: 52ch; margin: 56px auto 0; color: var(--ink-2); font-size: 18px; }
.eco__text b { display: block; margin-top: 10px; color: var(--ink); font-size: 20px; }

/* Use cases */
.cases { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
.case { position: relative; padding: 32px; border: 1px solid var(--line); border-radius: 14px; background: #fff; transition: border-color .25s, box-shadow .25s, transform .25s var(--ease); display: flex; flex-direction: column; }
.case:hover, .case:focus-within { border-color: var(--blue-grey); box-shadow: var(--shadow); transform: translateY(-2px); }
.case h3 { font-size: 21px; letter-spacing: -.015em; }
.case > p { color: var(--ink-2); margin-top: 8px; font-size: 15.5px; }
.case__out { margin-top: auto; padding-top: 24px; font-size: 15px; font-weight: 600; line-height: 1.5; }
.case__out::before { content: ""; display: block; border-top: 1px solid var(--line); margin-bottom: 18px; }
.case__out span { display: block; font-size: 11.5px; letter-spacing: .12em; text-transform: uppercase; color: var(--blue); margin-bottom: 6px; font-weight: 700; }

/* Open */
.principles { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0; border-top: 1px solid var(--line-2); border-bottom: 1px solid var(--line-2); }
.principles > div { padding: 28px 24px 32px; border-left: 1px solid var(--line-2); }
.principles > div:first-child { border-left: 0; padding-left: 0; }
.principles dt { font-weight: 700; font-size: 19px; letter-spacing: -.01em; }
.principles dd { margin-top: 8px; color: var(--ink-2); font-size: 15px; }

/* Final */
.final { padding: 160px 0 150px; text-align: center; background: radial-gradient(50% 60% at 50% 0%, var(--blue-l), transparent 70%); }
.final h2 { margin: 0 auto; max-width: 16ch; font-size: clamp(36px, 5vw, 60px); }
.final .lead { margin: 22px auto 0; }
.signoff { margin-top: 96px; display: grid; gap: 4px; }
.signoff b { letter-spacing: .3em; font-size: 15px; font-weight: 800; }
.signoff i { color: var(--blue); font-size: 15px; }

/* Footer */
.footer { border-top: 1px solid var(--line); padding: 56px 0 28px; font-size: 14px; }
.footer__grid { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 40px; }
.footer__about p { margin-top: 14px; color: var(--muted); max-width: 42ch; }
.footer h2 { font-size: 12px; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); font-weight: 700; margin-bottom: 14px; }
.footer li { margin-bottom: 8px; }
.footer nav a { text-decoration: none; color: var(--ink-2); }
.footer nav a:hover { color: var(--blue); text-decoration: underline; }
.footer__base { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-top: 48px; padding-top: 20px; border-top: 1px solid var(--line); color: var(--muted); font-size: 13px; }

/* Modal */
.modal { border: 0; padding: 0; border-radius: 16px; width: min(520px, calc(100vw - 32px)); max-height: calc(100vh - 32px); box-shadow: var(--shadow-lg); color: var(--ink); }
.modal::backdrop { background: rgba(15, 23, 36, .5); backdrop-filter: blur(2px); }
.modal form { padding: 32px; display: grid; gap: 14px; position: relative; }
.modal h2 { font-size: 26px; max-width: none; }
.modal .eyebrow { margin-bottom: 0; }
.modal--sm { width: min(420px, calc(100vw - 32px)); }
.modal__x { position: absolute; right: 12px; top: 12px; width: 40px; height: 40px; border: 0; background: none; font-size: 26px; line-height: 1; cursor: pointer; border-radius: 8px; color: var(--muted); }
.modal__x:hover { background: var(--tint); color: var(--ink); }
.modal__actions { display: flex; gap: 10px; justify-content: flex-end; margin-top: 6px; }
.notice { font-size: 13.5px; padding: 12px 14px; background: var(--amber-l); border-radius: 8px; color: #6b4a14; }
.form-msg { font-size: 13.5px; min-height: 1em; }
.form-msg.err { color: var(--red); }
.form-msg.ok { color: var(--ok); }
.modal textarea { resize: vertical; }

/* Reveal on scroll */
.js .reveal { opacity: 0; transform: translateY(16px); transition: opacity .8s var(--ease), transform .8s var(--ease); }
.js .reveal.is-in { opacity: 1; transform: none; }

@keyframes in-left { to { opacity: 1; transform: none; } }
@keyframes in-up { to { opacity: 1; transform: none; } }
@keyframes flow { to { stroke-dashoffset: -16; } }
@keyframes blink { 50% { opacity: .35; } }
@keyframes pulse { 70% { box-shadow: 0 0 0 10px rgba(49,92,154,0); } 100% { box-shadow: 0 0 0 0 rgba(49,92,154,0); } }
@keyframes fade-in { from { opacity: 0; transform: translateY(4px); } to { opacity: 1; transform: none; } }
@keyframes attn { 0%, 100% { box-shadow: 0 0 0 0 rgba(180,64,58,0); } 50% { box-shadow: 0 0 0 4px rgba(180,64,58,.14); border-color: #e7c2bf; background: #fff; } }

/* Responsive */
@media (max-width: 1080px) {
  .hero__grid { grid-template-columns: 1fr; gap: 56px; }
  .hero h1 { max-width: 16ch; }
  .core { grid-template-columns: 1fr 1fr; }
  .record { grid-column: 1 / -1; order: -1; }
  .caps { gap: 12px; }
  .grow { grid-template-columns: 1fr 1fr; }
  .grow .btn { grid-column: 1 / -1; justify-self: start; }
  .app { grid-template-columns: 240px minmax(0, 1fr); }
  .app__side { display: none; }
  .eng { grid-template-columns: 1fr; gap: 48px; }
  .eng__visual { max-width: 460px; }
  .principles { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .principles > div:nth-child(3) { border-left: 0; padding-left: 0; }
  .principles > div:nth-child(n+3) { border-top: 1px solid var(--line-2); }
}

@media (max-width: 860px) {
  .section { padding: 88px 0; }
  .wrap { padding: 0 24px; }
  .nav__toggle { display: grid; place-items: center; }
  .nav__menu { position: absolute; left: 0; right: 0; top: 68px; flex-direction: column; align-items: stretch; gap: 0; padding: 8px 16px 20px; background: #fff; border-bottom: 1px solid var(--line); box-shadow: var(--shadow); display: none; }
  .nav__menu.is-open { display: flex; }
  .nav__menu a:not(.btn) { padding: 14px 8px; font-size: 16px; border-bottom: 1px solid var(--tint-2); border-radius: 0; }
  .nav__cta-li { margin: 16px 0 0; }
  .nav__cta-li .btn { width: 100%; min-height: 48px; }
  .problem { grid-template-columns: 1fr; gap: 40px; }
  .actions { grid-template-columns: 1fr; gap: 28px; margin-bottom: 56px; }
  .trio { grid-template-columns: 1fr; gap: 24px; }
  .cases { grid-template-columns: 1fr; }
  .eco { grid-template-columns: 1fr; gap: 0; }
  .eco__links { min-height: 40px; height: 40px; }
  .eco__links span { display: none; }
  .eco__links::before { left: 50%; width: 0; top: 0; bottom: 0; border-top: 0; border-left: 1.5px dashed var(--blue-grey); }
  .eco__ext { grid-template-columns: 1fr 1fr; }
  .footer__grid { grid-template-columns: 1fr 1fr; }
  .footer__about { grid-column: 1 / -1; }
  .statement { margin-top: 64px; }
  .demo { padding: 16px; border-radius: 14px; }
  .app { grid-template-columns: 1fr; min-height: 0; }
  .app__list { border-right: 0; border-bottom: 1px solid var(--line); }
  .app__detail { min-height: 220px; }
  .edge__scroll, .arch-wrap { overflow-x: auto; }
  .arch { min-width: 680px; }
  .edge { overflow-x: auto; }
}

@media (max-width: 600px) {
  .wrap { padding: 0 16px; }
  .hero { padding: 48px 0 80px; }
  .hero__visual { grid-template-columns: 1fr; height: auto; gap: 0; }
  .sources { grid-template-rows: none; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
  .source:last-child { grid-column: 1 / -1; }
  .flows { display: none; }
  .hero__visual::after { content: ""; order: 2; }
  .workspace { margin-top: 20px; }
  .head { margin-bottom: 44px; }
  .windows { height: 530px; }
  .win--alarm, .win--sheet, .win--chat, .win--report { width: 84%; bottom: auto; }
  .win--alarm { left: 0; top: 0; }
  .win--sheet { right: 0; left: auto; top: 112px; }
  .win--chat { left: 0; top: 222px; }
  .win--report { right: 0; left: auto; top: 372px; }
  .unified { left: 0; right: 0; }
  .problem__visual { padding: 14px; }
  .core { grid-template-columns: 1fr; }
  .fields, .ctx__grid { grid-template-columns: 1fr 1fr; gap: 12px 16px; }
  .rel li { grid-template-columns: 1fr; gap: 2px; }
  .flow { grid-template-columns: 1fr; gap: 0; }
  .flow li { text-align: left; padding: 4px 0 14px 36px; }
  .flow li::before { left: 0; transform: none; }
  .flow li::after { left: 11.5px; top: -14px; width: 1.5px; height: 18px; }
  .grow { grid-template-columns: 1fr; padding: 24px; gap: 24px; }
  .eng__caps { grid-template-columns: 1fr; }
  .eco__ext { grid-template-columns: 1fr; }
  .principles { grid-template-columns: 1fr; }
  .principles > div { border-left: 0; padding-left: 0; border-top: 1px solid var(--line-2); }
  .principles > div:first-child { border-top: 0; }
  .assign__row { grid-template-columns: 1fr; }
  .thumbs { grid-template-columns: 1fr 1fr; }
  .case { padding: 24px; }
  .modal form { padding: 24px 20px; }
  .final { padding: 104px 0 96px; }
  .footer__grid { grid-template-columns: 1fr 1fr; }
  .btn { white-space: normal; text-align: center; }
  .cta-row .btn { flex: 1 1 auto; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; scroll-behavior: auto !important; }
  .flows path, .arch .uplink { animation: none; }
  .js .reveal { opacity: 1; transform: none; }
}
