:root {
  --ink: #0b0d0f;
  --paper: #f5f6f3;
  --graphite: #2b3035;
  --fog: #d9dde1;
  --muted: #656b72;
  --gold: #c6a56a;
  --line: #c9cdd1;
  --sans: Inter, ui-sans-serif, system-ui, sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, monospace;
  --ease: cubic-bezier(.2, .8, .2, 1);
}

* { box-sizing: border-box; }
html { background: var(--paper); scroll-behavior: smooth; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 400 16px/1.55 var(--sans); -webkit-font-smoothing: antialiased; }
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
[hidden] { display: none !important; }
::selection { background: var(--gold); color: var(--ink); }
[id] { scroll-margin-top: 88px; }
.shell { width: min(1180px, calc(100% - 40px)); margin: auto; }
.skip { position: fixed; z-index: 10; top: -4rem; left: 1rem; padding: .75rem; background: var(--ink); color: var(--paper); }
.skip:focus { top: 1rem; }

header { position: sticky; z-index: 5; top: 0; background: color-mix(in srgb, var(--paper) 91%, transparent); border-bottom: 1px solid color-mix(in srgb, var(--line) 65%, transparent); backdrop-filter: blur(12px); transition: box-shadow 200ms var(--ease), border-color 200ms var(--ease); }
header.is-scrolled { border-bottom-color: var(--line); box-shadow: 0 1px 0 rgb(11 13 15 / 4%); }
.nav { display: flex; align-items: center; justify-content: space-between; gap: 24px; height: 76px; }
.brand img { width: 158px; }
.nav nav { display: flex; gap: 24px; color: var(--muted); font-size: 14px; }
.nav nav a { padding: 10px 0; transition: color 100ms var(--ease); }
.nav nav a.is-active { color: var(--ink); }
.nav nav a:hover, .text-link:hover, footer a:hover { color: var(--gold); }
.button { display: inline-flex; align-items: center; justify-content: center; gap: 16px; min-height: 44px; padding: 0 19px; border: 1px solid var(--ink); font: 500 13px var(--mono); cursor: pointer; transition: transform 120ms var(--ease), background-color 100ms var(--ease); }
.dark { background: var(--ink); color: var(--paper); }
.dark:hover { background: var(--graphite); transform: translateY(-1px); }
.button:active { transform: translateY(0); transition-duration: 60ms; }
.button .arr, .text-link .arr { display: inline-block; transition: transform 150ms var(--ease); }

.hero { padding: 112px 0 78px; overflow: hidden; }
.hero-grid { display: grid; grid-template-columns: 1.35fr .65fr; gap: 48px; align-items: end; }
.eyebrow, .number, small { font: 500 11px var(--mono); letter-spacing: .06em; text-transform: uppercase; }
.eyebrow { display: flex; align-items: center; gap: 9px; margin: 0 0 25px; color: var(--muted); }
.eyebrow::before { content: ""; flex: none; width: 8px; height: 8px; border-radius: 50%; background: var(--gold); }
h1, h2, h3, p { margin-top: 0; }
h1, h2 { font-weight: 500; letter-spacing: -.055em; line-height: .96; }
h1 { max-width: 770px; margin-bottom: 29px; font-size: clamp(54px, 7vw, 106px); }
h1 em { font-family: Georgia, serif; font-weight: 400; }
.intro { max-width: 540px; margin-bottom: 31px; color: var(--muted); font-size: 18px; }
.actions { display: flex; align-items: center; gap: 25px; }
.text-link { font: 500 13px var(--mono); }
.hero-mark { position: relative; display: flex; align-items: center; justify-content: center; min-height: 300px; border-left: 1px solid var(--line); }
.hero-mark img { width: 138px; height: 222px; }
.hero-mark p { position: absolute; right: 0; bottom: 0; margin: 0; color: var(--muted); font: 11px/1.45 var(--mono); text-align: right; }

.preview { padding-bottom: 110px; }
.app { display: grid; grid-template-columns: 0 minmax(0, 1fr); overflow: hidden; background: var(--ink); color: var(--paper); box-shadow: 0 20px 60px rgb(11 13 15 / 12%); transition: grid-template-columns 250ms var(--ease); }
.app.process-open { grid-template-columns: 264px minmax(0, 1fr); }
.app-bar { grid-column: 1 / -1; display: grid; grid-template-columns: 1fr 1fr 1fr; align-items: center; height: 51px; padding: 0 20px; border-bottom: 1px solid var(--graphite); color: #aab0b5; font: 11px var(--mono); }
.app-bar > span:nth-child(2) { text-align: center; }
.app-brand { min-height: 32px; padding: 0 6px; border: 1px solid transparent; border-radius: 3px; background: transparent; font: inherit; cursor: pointer; transition: border-color 120ms var(--ease), background-color 120ms var(--ease); }
.app-brand:hover, .app-brand[aria-expanded="true"] { border-color: #3a4147; background: #141817; }
.app-context { justify-self: center; }
.process-panel { grid-column: 1; min-width: 264px; border-right: 1px solid #3a4147; background: #101312; }
.process-head { display: flex; justify-content: space-between; padding: 14px 14px 12px; border-bottom: 1px solid #2b3035; color: #aab0b5; font: 10px var(--mono); text-transform: uppercase; letter-spacing: .06em; }
.process-head span:last-child { color: #788087; }
.process-tree { padding: 14px 8px; }
.process-label { margin: 0 6px 9px; color: #788087; font: 10px var(--mono); text-transform: uppercase; letter-spacing: .06em; }
.process-label-work { margin-top: 22px; }
.process-agent, .process-node { display: grid; grid-template-columns: 15px 9px minmax(0, 1fr) auto; align-items: center; gap: 7px; width: 100%; min-height: 34px; padding: 0 7px; border: 0; background: transparent; color: #aab0b5; font: 11px var(--mono); text-align: left; }
.process-agent { grid-template-columns: 15px minmax(0, 1fr) auto; color: var(--paper); }
.agent-glyph { color: var(--gold); }
.process-status, .process-node small { color: #788087; font: 9px var(--mono); text-transform: none; letter-spacing: 0; }
.process-node { cursor: pointer; border-radius: 3px; min-height: 38px; }
.process-node:hover, .process-node:focus-visible { background: #202428; color: var(--paper); }
.process-node[aria-current="page"] { background: #17241e; color: var(--paper); }
.tree-branch { color: #4a5450; }
.node-dot { width: 6px; height: 6px; border: 1px solid #788087; border-radius: 50%; }
.node-dot.active { border-color: #78c991; background: #78c991; box-shadow: 0 0 0 3px #14261b; }
.live { text-align: right; }
.live::before { content: ""; display: inline-block; width: 7px; height: 7px; margin-right: 7px; border-radius: 50%; background: #98b879; }
.app-brand { display: flex; align-items: center; gap: 9px; color: var(--paper); }
.app-brand img { width: 14px; height: 22px; }
.doc { grid-column: 2; max-width: 800px; padding: 50px 8% 62px; }
.doc-head { display: flex; justify-content: space-between; gap: 20px; margin-bottom: 35px; color: #aab0b5; font: 11px var(--mono); }
.doc-head p { margin: 0; color: var(--paper); font: 500 18px var(--sans); }
.entry { max-width: 660px; margin: 0 0 25px; font-size: 15px; }
.entry b { display: block; margin-bottom: 6px; color: #aab0b5; font: 400 11px var(--mono); }
.entry b em, .principles span, small { color: var(--gold); font-style: normal; }
.entry p { margin: 0; }
.agent { margin-left: 7%; padding-left: 17px; border-left: 2px solid var(--gold); }
.cursor { display: flex; align-items: center; gap: 10px; color: #788087; font-size: 13px; }
.cursor::before { content: ""; width: 2px; height: 18px; background: var(--gold); }

.section { padding: 112px 0; border-top: 1px solid var(--line); }
.split { display: grid; grid-template-columns: 220px 1fr; gap: 58px; }
.number { margin: 7px 0 0; color: var(--muted); }
h2 { max-width: 760px; margin-bottom: 22px; font-size: clamp(39px, 5vw, 69px); }
.lead { max-width: 620px; margin-bottom: 46px; color: var(--muted); font-size: 19px; }
.principles, .seats { display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid var(--line); }
.principles article, .seats article { padding: 23px 20px 0 0; border-right: 1px solid var(--line); }
.principles article + article, .seats article + article { padding-left: 20px; }
.principles article:last-child, .seats article:last-child { border: 0; }
.principles h3 { margin: 28px 0 9px; }
.principles p, .seats p { margin: 0; color: var(--muted); font-size: 14px; }
.seats small { display: block; margin-bottom: 29px; }
.seats h3 { margin-bottom: 9px; }

.inverse { background: var(--ink); color: var(--paper); border-color: var(--graphite); }
.inverse .number, .inverse .lead { color: #aab0b5; }
.router { border: 1px solid #3a4147; }
.tabs { display: flex; overflow: auto; border-bottom: 1px solid #3a4147; }
.tabs button { flex: 1; min-height: 50px; padding: 0 18px; border: 0; border-right: 1px solid #3a4147; background: transparent; color: #aab0b5; font: 12px var(--mono); cursor: pointer; }
.tabs button.is-on { background: var(--paper); color: var(--ink); }
.router p { min-height: 98px; margin: 0; padding: 25px; color: var(--fog); font-size: 16px; }

.license { padding: 112px 0; background: var(--fog); }
.license-grid { display: grid; grid-template-columns: 1fr 440px; gap: 72px; }
.license h2 { font-size: clamp(42px, 5vw, 69px); }
.license > div > p:not(.number) { max-width: 440px; color: var(--muted); font-size: 18px; }
form { padding: 32px; border: 1px solid #b8bdc1; background: var(--paper); }
form h3 { margin-bottom: 7px; }
form > p { margin-bottom: 27px; color: var(--muted); font-size: 14px; }
label { display: block; margin: 16px 0 7px; color: var(--muted); font: 11px var(--mono); }
input { display: block; width: 100%; height: 44px; padding: 0 12px; border: 1px solid var(--line); background: #fff; color: var(--ink); font: 15px var(--sans); }
input[aria-invalid="true"] { border-color: #a63c29; }
input:focus-visible, a:focus-visible, button:focus-visible, summary:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; }
form .button { width: 100%; margin-top: 24px; }
.field-error { margin: 5px 0 0 !important; color: #a63c29 !important; font-size: 12px !important; }
.form-status { margin: 13px 0 0 !important; color: #3f6d49 !important; font-size: 13px !important; }

.faq details { border-top: 1px solid var(--line); }
.faq details:last-child { border-bottom: 1px solid var(--line); }
summary { position: relative; padding: 21px 32px 21px 0; cursor: pointer; font-weight: 500; list-style: none; }
summary::-webkit-details-marker { display: none; }
summary::after { content: "+"; position: absolute; right: 4px; color: var(--gold); font: 20px var(--mono); }
details[open] summary::after { content: "−"; }
.faq details p { max-width: 600px; padding: 0 32px 21px 0; color: var(--muted); }
footer { padding: 34px 0; border-top: 1px solid var(--line); }
.footer { display: flex; align-items: center; gap: 24px; color: var(--muted); font: 12px var(--mono); }
.footer img { width: 152px; }
.footer p { flex: 1; margin: 0; }
.powered { display: inline-flex; align-items: center; gap: 12px; padding-right: 24px; border-right: 1px solid var(--line); color: var(--muted); }
.powered span { white-space: nowrap; }
.powered img { width: 176px; height: auto; transition: opacity 120ms var(--ease); }
.powered:hover img { opacity: .75; }

@media (hover: hover) {
  .tabs button:hover:not(.is-on) { background: #202428; color: var(--paper); }
}
@media (prefers-reduced-motion: no-preference) {
  @media (hover: hover) {
    .dark:hover .arr-ne, .text-link:hover .arr-ne { transform: translate(2px, -2px); }
    .dark:hover .arr-s { transform: translateY(2px); }
  }
}
.is-typing::after { content: ""; display: inline-block; width: 2px; height: 1em; margin-left: 3px; vertical-align: -0.15em; background: var(--gold); }
@supports (interpolate-size: allow-keywords) {
  :root { interpolate-size: allow-keywords; }
  details::details-content { block-size: 0; overflow: clip; transition: block-size 300ms var(--ease), content-visibility 300ms allow-discrete; }
  details[open]::details-content { block-size: auto; }
}
@media (prefers-reduced-motion: no-preference) {
  .app, .hero-mark img { animation: arrive 400ms var(--ease) both; }
  .hero-mark img { animation-delay: 100ms; }
  @keyframes arrive { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
  .live::before { animation: breathe 2.4s var(--ease) infinite; }
  @keyframes breathe { 0%, 100% { opacity: 1; } 50% { opacity: 0.45; } }
  .is-typing::after { animation: blink 900ms steps(1) infinite; }
  @keyframes blink { 50% { opacity: 0; } }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
@media (max-width: 760px) {
  .shell { width: min(100% - 32px, 1180px); }
  .nav { height: 64px; }
  .nav nav, .hero-mark { display: none; }
  .nav .button { min-height: 40px; padding: 0 12px; font-size: 11px; }
  .brand img { width: 133px; }
  .hero { padding: 73px 0 60px; }
  .hero-grid, .license-grid { grid-template-columns: 1fr; }
  .actions { flex-direction: column; align-items: flex-start; gap: 18px; }
  .preview { padding-bottom: 75px; }
  .app-bar { grid-template-columns: 1fr auto; padding: 0 13px; }
  .app-context { justify-self: end; }
  .app-bar > .live, .doc-head span { display: none; }
  .app.process-open { grid-template-columns: 220px minmax(0, 1fr); }
  .process-panel { min-width: 220px; }
  .doc { padding: 32px 18px; }
  .agent { margin-left: 0; }
  .section, .license { padding: 75px 0; }
  .split { grid-template-columns: 1fr; gap: 24px; }
  .number { margin: 0; }
  .principles, .seats { grid-template-columns: 1fr; }
  .principles article, .seats article, .principles article + article, .seats article + article { padding: 22px 0; border-right: 0; border-bottom: 1px solid var(--line); }
  .principles article:last-child, .seats article:last-child { border-bottom: 0; }
  .principles h3 { margin: 15px 0 7px; }
  .license-grid { gap: 45px; }
  form { padding: 24px; }
  .footer { flex-wrap: wrap; }
  .footer p { order: 3; flex-basis: 100%; }
  .powered { order: 4; padding-right: 0; border-right: 0; }
  .powered img { width: 150px; }
}
