:root {
  color-scheme: dark;
  --bg: #080c19;
  --panel: #10172a;
  --panel-dark: #0c1222;
  --ink: #f0f3ff;
  --muted: #a7b5cf;
  --blue: #a4c7ff;
  --ice: #82dbff;
  --line: #283650;
  --mono: "Cascadia Mono", Consolas, monospace;
  --bar: 74px;
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-padding-top: calc(var(--bar) + 12px); scroll-behavior: smooth; }
body { margin: 0; min-width: 280px; background: var(--bg); color: var(--ink); font-family: "Segoe UI", "Helvetica Neue", Arial, sans-serif; line-height: 1.55; }
button, input, select, textarea { font: inherit; }
button, summary { cursor: pointer; }
a { color: inherit; }
:focus-visible { outline: 2px solid #bcdeff; outline-offset: 4px; }
[hidden] { display: none !important; }
.shell { width: min(91%, 1320px); margin-inline: auto; }
.skip { position: absolute; z-index: 20; left: 16px; top: 16px; padding: 10px 14px; background: var(--ink); color: var(--bg); transform: translateY(-180%); }
.skip:focus { transform: none; }
.header { position: sticky; z-index: 10; top: 0; height: var(--bar); background: #080c19ee; border-bottom: 1px solid #25304a99; backdrop-filter: blur(14px); }
.header-layout, .footer-layout { height: 100%; display: flex; justify-content: space-between; align-items: center; gap: 20px; }
.brand { display: inline-flex; gap: 10px; align-items: center; color: var(--ink); font-size: 15px; font-weight: 800; letter-spacing: .11em; text-decoration: none; white-space: nowrap; }
.brand b { color: var(--blue); }
.brand-mark { display: inline-flex; gap: 3px; align-items: flex-end; justify-content: center; width: 30px; height: 29px; padding-bottom: 5px; background: #172441; border: 1px solid #36527c; border-radius: 6px; transform: skewX(-4deg); }
.brand-mark i { width: 3px; height: 7px; transform: skewX(-14deg); background: #a4d5ff; }
.brand-mark i:nth-child(2) { height: 12px; }
.brand-mark i:nth-child(3) { height: 16px; }
.links { display: flex; align-items: center; gap: clamp(18px, 2.8vw, 42px); }
.links a, .footer a:not(.brand) { color: var(--muted); font-size: .92rem; text-decoration: none; }
.links a:hover, .footer a:hover { color: var(--ink); }
.menu-button, .links .mobile-link { display: none; }
.button { display: inline-flex; align-items: center; justify-content: center; gap: 12px; min-height: 47px; padding: 10px 18px; border: 1px solid transparent; border-radius: 7px; text-decoration: none; font-weight: 700; font-size: .92rem; transition: background .2s, color .2s, border-color .2s; }
.button-primary { background: #a9c8ff; border-color: #b7d3ff; color: #080f24; }
.button-primary:hover { background: #d3e2ff; }
.button-outline { background: #11182a9c; color: var(--ink); border-color: #405475; }
.button-outline:hover { background: #1c2a43; border-color: #789bcf; }
.button:disabled { opacity: .63; cursor: wait; }
.hero { position: relative; overflow: hidden; min-height: 595px; background: radial-gradient(ellipse at 68% 28%, #152458 0%, #0c1430 38%, transparent 68%), linear-gradient(105deg, #090e1f 20%, #090e25 72%, #0a1125); border-bottom: 1px solid var(--line); }
.hero::before { content: ""; position: absolute; inset: 0; opacity: .48; background: repeating-linear-gradient(90deg, transparent 0 75px, #93b4ff12 75px 76px), repeating-linear-gradient(0deg, transparent 0 75px, #93b4ff12 75px 76px); pointer-events: none; }
.hero-layout { position: relative; display: grid; grid-template-columns: minmax(0, .98fr) minmax(0, 1.05fr); align-items: center; gap: 16px; min-height: 595px; }
.hero-copy { z-index: 2; padding-block: 74px; }
.eyebrow { margin: 0 0 15px; color: var(--blue); font-family: var(--mono); font-size: .76rem; letter-spacing: .11em; text-transform: uppercase; }
.spark { display: inline-block; vertical-align: 1px; width: 7px; height: 7px; margin-right: 7px; background: var(--ice); border-radius: 50%; box-shadow: 0 0 13px #72d9ffad; }
h1, h2, h3, h4, p { overflow-wrap: anywhere; }
h1, h2, h3, h4 { margin: 0; line-height: 1.1; text-wrap: balance; }
h1 { font-size: clamp(3.5rem, 6.25vw, 6.25rem); letter-spacing: -.08em; line-height: .96; white-space: nowrap; }
h1 span { color: #adc8ff; font-weight: 640; }
.hero-statement { max-width: 13em; margin: 27px 0 13px; font-size: clamp(1.86rem, 3.08vw, 3.05rem); font-weight: 640; line-height: 1.11; letter-spacing: -.045em; text-wrap: balance; }
.hero-detail { color: var(--muted); max-width: 440px; margin: 0 0 27px; font-size: 1.03rem; }
.actions { display: flex; gap: 11px; flex-wrap: wrap; }
.network-scene { position: relative; aspect-ratio: 640 / 510; width: 100%; margin: 0; isolation: isolate; overflow: hidden; }
.diagram-backdrop { position: absolute; inset: 0; background: url("./assets/network.webp") center / cover no-repeat; filter: saturate(.62); opacity: .29; mask-image: radial-gradient(ellipse, #000 12%, transparent 72%); z-index: -1; }
.no-js .diagram-backdrop { opacity: .78; }
#network { position: absolute; inset: 0; width: 100%; height: 100%; }
.network-label, .network-caption { position: absolute; z-index: 2; font-family: var(--mono); font-size: clamp(.52rem, .81vw, .75rem); line-height: 1.17; }
.network-label { padding: .5em .66em; color: #d1e4ff; background: #0c1731e8; border: 1px solid #4b6caa; border-radius: 5px; white-space: nowrap; box-shadow: 0 2px 17px #091027b0; }
.network-space { top: 10%; left: 11%; }
.network-docs { top: 14%; right: 7%; }
.network-agents { top: 48%; left: 1.4%; }
.network-rag { top: 46%; right: 1%; }
.network-systems { bottom: 18%; left: 9%; }
.network-models { bottom: 17%; right: 10%; }
.network-caption { bottom: .8%; right: 3%; color: #b7cbf7; }
.manifest { background: #0c1224; border-bottom: 1px solid var(--line); }
.pillars { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 22px; padding-block: 25px; }
.pillars > div { display: grid; grid-template-columns: 35px minmax(0, 1fr); align-content: center; align-items: center; column-gap: 9px; }
.pillar-icon { grid-row: span 2; display: block; color: #9ebcfc; font-size: 1.6rem; text-align: center; }
.pillars strong { font-size: .96rem; }
.pillars small { font-size: .85rem; line-height: 1.3; color: var(--muted); }
.section { padding-block: clamp(55px, 7.5vw, 112px); border-bottom: 1px solid var(--line); }
.section-head { display: grid; grid-template-columns: 1.15fr .85fr; align-items: end; gap: clamp(18px, 6.6vw, 100px); margin-bottom: 33px; }
h2 { font-size: clamp(2.4rem, 4.7vw, 4.55rem); letter-spacing: -.062em; }
.section-head > p, .about p:not(.eyebrow), .contact p:not(.eyebrow):not(.form-status) { margin: 0; max-width: 38rem; color: var(--muted); font-size: 1.02rem; }
.catalog-toolbar { display: flex; align-items: center; gap: 15px; border: 1px solid var(--line); border-radius: 8px; padding: 12px 15px; margin-bottom: 10px; background: #11182a; }
.catalog-toolbar label, .demo-controls label { font-weight: 650; }
#agent-count { margin-left: auto; color: var(--muted); white-space: nowrap; }
input, select, textarea { min-width: 0; width: 100%; min-height: 46px; padding: 10px 12px; border: 1px solid #435577; border-radius: 6px; background: #080e20; color: var(--ink); }
input::placeholder { color: #a5b4cb; }
input[type="search"] { width: min(100%, 28rem); }
.catalog { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); align-items: start; gap: 9px; }
.agent, .sector, .legacy { background: var(--panel); border: 1px solid var(--line); border-radius: 8px; }
.agent[open], .sector[open] { border-color: #6385bd; background: #141d35; }
summary { display: flex; align-items: center; gap: 13px; padding: 14px 15px; min-height: 53px; list-style: none; }
summary::-webkit-details-marker { display: none; }
summary:hover { color: var(--blue); }
.agent summary { display: grid; grid-template-columns: minmax(0, 1fr) 20px; }
.agent summary::after, .legacy summary::after { content: "+"; color: var(--blue); justify-self: end; }
details[open] > summary::after { content: "−"; }
.agent strong { display: block; line-height: 1.25; }
.agent small { color: var(--muted); }
.agent dl { margin: 0; padding: 0 15px 15px; display: grid; gap: 7px 14px; grid-template-columns: minmax(88px, .34fr) minmax(0, 1fr); font-size: .92rem; }
.agent dt { color: #bdd2ff; font-weight: 650; }
.agent dd { margin: 0; color: #d9e3f7; overflow-wrap: anywhere; }
.architecture, .demo, .contact { background: #0d1325; }
.pipeline { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; list-style: none; margin: 0 0 40px; padding: 0; counter-reset: step; }
.pipeline li { position: relative; display: grid; grid-template-columns: minmax(0,1fr); overflow-wrap: anywhere; min-height: 114px; gap: 3px; align-content: start; padding: 14px 15px; border: 1px solid var(--line); border-radius: 8px; background: linear-gradient(135deg, #162139, #101629); }
.pipeline li:not(:nth-child(4n))::after { content: "→"; position: absolute; top: 45px; right: -13px; z-index: 1; background: #0d1325; color: var(--ice); font-size: .82rem; }
.pipeline li span { color: var(--blue); font: .76rem var(--mono); }
.pipeline li small { color: var(--muted); }
.deployment h3 { font-size: clamp(1.5rem, 3vw, 2.45rem); letter-spacing: -.035em; margin-bottom: 13px; }
.deploy-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.deploy-grid article { padding: 17px; background: var(--panel); border: 1px solid var(--line); border-radius: 8px; }
.deploy-grid h4 { margin: 8px 0; font-size: 1.12rem; }
.deploy-grid p, .architecture-note { color: var(--muted); font-size: .94rem; margin: 0; }
.architecture-note { margin-top: 15px; }
.deploy-mark { color: var(--ice); }
.sector-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 9px; align-items: start; }
.sector summary { font-weight: 650; justify-content: space-between; }
.sector summary span:last-child, .sector a { color: var(--blue); }
.sector p { color: var(--muted); margin: 0; padding: 0 15px 10px; }
.sector a { display: inline-block; padding: 2px 15px 14px; text-underline-offset: 3px; }
.demo-frame { border: 1px solid #466185; border-radius: 12px; overflow: hidden; background: #0a1021; }
.demo-top { display: flex; align-items: center; flex-wrap: wrap; gap: 9px 16px; padding: 12px 18px; border-bottom: 1px solid var(--line); background: #182440; }
.demo-top > span { color: #d8e6ff; font: .82rem var(--mono); }
.demo-top p, .demo-controls p, #demo-placeholder { margin: 0; color: var(--muted); }
.demo-top p { font-size: .91rem; }
.demo-layout { display: grid; grid-template-columns: minmax(0,.66fr) minmax(0,1.34fr); }
.demo-controls, .demo-screen { display: grid; align-content: start; gap: 13px; padding: clamp(15px,3vw,29px); }
.demo-controls { border-right: 1px solid var(--line); }
.demo-screen { min-height: 360px; }
.demo-log { list-style: none; display: grid; gap: 9px; padding: 0; margin: 0; }
.demo-log li { display: grid; grid-template-columns: 24px minmax(0, 1fr); gap: 3px 8px; padding: 9px 12px; border: 1px solid #253b61; border-radius: 6px; background: #121b31; }
.demo-log li::before { content: "✓"; grid-row: span 2; color: #91eae3; font-weight: 800; }
.demo-log li small { color: var(--muted); }
.demo-document { padding: 14px; background: #1b2846; border-left: 3px solid #88b8ff; border-radius: 6px; }
.demo-document p { margin: 6px 0; color: #d9e4fa; font-size: .92rem; }
.demo-document .button { margin-top: 8px; }
.about-layout, .contact-layout { display: grid; grid-template-columns: minmax(0,.9fr) minmax(0,1.1fr); align-items: center; gap: clamp(18px,5vw,72px); }
.about h2, .contact h2 { margin-bottom: 17px; }
.about .legacy { margin-top: 17px; }
.legacy summary::after { margin-left: auto; }
.legacy ul { margin: 0; padding: 0 17px 15px 36px; color: var(--muted); font-size: .91rem; }
.about img { width: 100%; height: auto; border: 1px solid var(--line); border-radius: 8px; }
.contact-layout { align-items: start; }
.contact p + p { padding-top: 17px; }
.contact .button-outline { margin-top: 14px; }
.lead-form { display: grid; gap: 11px; padding: clamp(15px,3vw,28px); border: 1px solid #395173; border-radius: 10px; background: #141e36; }
.lead-form label { display: grid; gap: 5px; color: #dee9fb; font-weight: 650; font-size: .91rem; }
.field-pair { display: grid; grid-template-columns: 1fr 1fr; gap: 11px; }
.lead-form .consent { display: flex; align-items: center; gap: 8px; }
.consent input { width: 19px; min-height: 32px; flex: 0 0 19px; accent-color: #a6c8ff; }
.honeypot { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
.form-status { min-height: 22px; font-size: .9rem; margin: 0; color: var(--muted); }
.form-status[data-kind="error"] { color: #ffb6bd; }
.form-status[data-kind="ok"] { color: #a6eade; }
.footer { min-height: 90px; padding: 19px 0; }
.footer p { color: var(--muted); font-size: .88rem; }
@media (max-width: 930px) {
  .header-action { display: none; }
  .hero-layout { grid-template-columns: minmax(0, 1fr) minmax(0,1fr); }
  .hero, .hero-layout { min-height: 540px; }
  .pillars { grid-template-columns: repeat(2,minmax(0,1fr)); gap: 12px 15px; }
}
@media (max-width: 700px) {
  :root { --bar: 60px; }
  .shell { width: min(92%, 540px); }
  .header-layout { justify-content: space-between; }
  .links { gap: 10px; }
  .menu-button { display: inline-flex; align-items: center; gap: 8px; justify-content: center; min-height: 44px; padding: 6px 10px; border: 1px solid #405475; background: #10182d; border-radius: 5px; color: var(--ink); }
  .header + main { position: relative; }
  .links { display: none; position: absolute; top: 100%; right: 4%; min-width: 175px; padding: 8px; border: 1px solid #456083; border-radius: 8px; background: #111a31; box-shadow: 0 16px 34px #050a19c4; }
  .links a, .links .mobile-link { display: flex; align-items: center; padding: 0 9px; min-height: 45px; }
  .links[data-open] { display: grid; }
  .no-js .menu-button, .links .mobile-link { display: none; }
  .no-js .links { display: flex; position: static; min-width: 0; background: none; box-shadow: none; border: 0; flex-wrap: wrap; }
  .no-js .links a { min-height: 28px; padding: 0; }
  .hero, .hero-layout { min-height: 0; }
  .hero-layout { grid-template-columns: minmax(0,1fr); gap: 13px; }
  .hero-copy { padding: 45px 0 0; }
  h1 { font-size: clamp(2.63rem, 10.3vw, 4.8rem); }
  .hero-statement { max-width: 15em; margin: 17px 0 11px; font-size: clamp(1.72rem,6.1vw,2.4rem); }
  .hero-detail { font-size: .98rem; margin-bottom: 15px; }
  .network-scene { margin-bottom: 17px; }
  .network-label, .network-caption { font-size: .62rem; }
  .network-caption { bottom: 0; }
  .pillars { gap: 16px 8px; padding-block: 17px; }
  .pillars > div { grid-template-columns: 24px minmax(0,1fr); column-gap: 5px; }
  .pillar-icon { font-size: 1.12rem; }
  .pillars small { font-size: .79rem; }
  .pillars strong { font-size: .88rem; }
  .section-head, .about-layout, .contact-layout, .demo-layout { grid-template-columns: minmax(0, 1fr); }
  .section-head { align-items: start; gap: 12px; margin-bottom: 20px; }
  .catalog, .sector-grid { grid-template-columns: minmax(0,1fr); }
  .catalog-toolbar { flex-wrap: wrap; gap: 6px 9px; text-align: left; }
  .catalog-toolbar input { flex-basis: 100%; width: 100%; order: 1; }
  #agent-count { font-size: .88rem; }
  .pipeline { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .pipeline li:nth-child(2n)::after { display: none; }
  .deploy-grid { grid-template-columns: minmax(0, 1fr); }
  .demo-controls { border-right: 0; border-bottom: 1px solid var(--line); }
  .demo-screen { min-height: 240px; }
  .footer-layout { flex-wrap: wrap; gap: 6px 16px; }
}
@media (max-width: 395px) {
  .field-pair { grid-template-columns: minmax(0,1fr); }
  .eyebrow { font-size: .72rem; }
  .hero-copy .actions { gap: 7px; }
  .hero-copy .button { padding-inline: 10px; gap: 6px; }
  .network-label, .network-caption { font-size: .61rem; }
  .pipeline { grid-template-columns: minmax(0,1fr); gap: 8px; }
  .pipeline li { min-height: 0; }
  .pipeline li::after { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition-duration: 0s !important; }
}
