:root {
  color-scheme: dark;
  --surface: #080f16;
  --deep: #060d14;
  --pine: #0c1923;
  --paper: var(--surface);
  --ink: #edf4fa;
  --muted: #a5b7c7;
  --line: #263b4b;
  --amber: #ffad66;
  --orange: var(--amber);
  --warm: #ffd5ae;
  --cyan: #99e2f0;
  --green: #75d8b4;
  --mint: var(--green);
  --gutter: clamp(18px, 4.6vw, 70px);
  --measure: 1370px;
  font-family: Inter, system-ui, sans-serif;
  font-synthesis: none;
  background: var(--surface);
  color: var(--ink);
}

*, *::after, *::before { box-sizing: border-box; }
body { margin: 0; }
button, a, summary { touch-action: manipulation; }
button, summary { font: inherit; }
a { color: inherit; text-underline-offset: .22em; }
button, summary { cursor: pointer; }
:focus-visible { outline: 2px solid var(--amber); outline-offset: 4px; }
img { display: block; max-width: 100%; }
h1, h2, h3, p { margin: 0; }
h1, h2, h3 { font-weight: 600; line-height: 1.13; letter-spacing: -.041em; }
h1 { font-size: clamp(36px, 5.3vw, 77px); }
h2 { font-size: clamp(24px, 3.1vw, 44px); }
h3 { font-size: clamp(18px, 1.65vw, 25px); line-height: 1.24; }
p { line-height: 1.58; }
[hidden] { display: none !important; }

.wrap, .bar-inner {
  width: 100%;
  max-width: var(--measure);
  margin-inline: auto;
  padding-inline: var(--gutter);
}
.band { padding-block: clamp(38px, 5vw, 72px); }
.skip {
  position: fixed;
  z-index: 40;
  top: 12px;
  left: 12px;
  padding: 8px 14px;
  background: var(--amber);
  color: var(--deep);
  transform: translateY(-200%);
}
.skip:focus { transform: translateY(0); }

.header {
  position: relative;
  z-index: 20;
  background: #070f17;
  border-bottom: 1px solid #86c6df22;
}
.bar, .desktop-nav, .brand, .locales { display: flex; align-items: center; }
.bar { min-height: 64px; gap: clamp(12px, 2vw, 34px); }
.brand {
  flex: 0 0 auto;
  gap: 9px;
  font-size: 20px;
  font-weight: 730;
  text-decoration: none;
  letter-spacing: -.053em;
}
.brand img { width: 46px; height: auto; }
.desktop-nav { margin-inline-start: auto; gap: clamp(12px, 1.5vw, 25px); }
.desktop-nav a, .bar summary, .menu nav a {
  color: var(--muted);
  font-size: 13px;
  font-weight: 540;
  text-decoration: none;
}
.bar a:hover, .bar [aria-current="page"] { color: var(--cyan); }
.locales {
  flex: 0 0 auto;
  gap: 1px;
  padding: 3px;
  border: 1px solid var(--line);
  border-radius: 8px;
}
.locales a {
  padding: 3px 6px;
  border-radius: 4px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 650;
  text-decoration: none;
}
.locales a[aria-current="true"] { background: #1b3241; color: var(--ink); }
.desktop-nav .platform-menu { position: relative; }
.menu { display: none; }
.bar summary { list-style: none; white-space: nowrap; }
.bar summary::-webkit-details-marker { display: none; }
.bar summary::after {
  content: ""; display: inline-block; width: 6px; height: 6px; margin: 0 2px 3px 7px;
  border: solid var(--cyan); border-width: 0 1.5px 1.5px 0; transform: rotate(45deg);
}
.bar details[open] > summary::after { transform: rotate(225deg); margin-bottom: 0; }
.bar summary:hover, .platform-menu:has([aria-current="page"]) > summary { color: var(--cyan); }
.menu > nav, .desktop-nav .platform-links {
  position: absolute;
  top: calc(100% + 14px);
  inset-inline-start: 0;
  display: grid;
  width: max-content;
  max-width: min(260px, 86vw);
  padding: 7px;
  background: #101e29;
  border: 1px solid #3b5a6e;
  border-radius: 9px;
  box-shadow: 0 12px 28px #000a;
}
.menu > nav { inset: 100% var(--gutter) auto auto; max-height: 78dvh; overflow-y: auto; }
.menu nav a, .menu .platform-menu > summary, .platform-links a { display: block; padding: 8px 11px; border-radius: 4px; }
.menu .platform-links { margin-inline-start: 10px; border-inline-start: 1px solid var(--line); }
.menu nav a:hover, .platform-links a:hover { background: #192c3c; }
.platform-login { flex: 0 0 auto; padding: 6px 12px; border: 1px solid #526a74; border-radius: 7px; background: transparent; color: var(--ink); font-size: 13px; text-decoration: none; }
.platform-login:disabled { color: #b3c1c8; border-color: #40505b; cursor: default; }

.pill, .forward {
  display: inline-flex;
  gap: .75em;
  align-items: center;
  justify-content: center;
  width: fit-content;
  min-height: 40px;
  padding: 8px 15px;
  border: 1px solid #ffb87b;
  border-radius: 7px;
  background: #ffad66;
  color: #201206;
  font-size: 14px;
  font-weight: 650;
  text-decoration: none;
}
.pill:hover, .forward:hover { background: #ffc38e; }
.text-link { color: var(--cyan); font-weight: 590; font-size: 14px; }
.text-link:hover { color: #d7f7ff; }
.doclink { display: inline-block; margin-top: 20px; }
.minor { color: var(--muted); font-size: 13px; }

.inner-hero {
  --section-glow: #14425966;
  border-bottom: 1px solid #243b4c;
  background:
    linear-gradient(90deg, #6de7ff07 1px, transparent 1px) center / 32px 32px,
    linear-gradient(#6de7ff07 1px, transparent 1px) center / 32px 32px,
    radial-gradient(ellipse at 80% 5%, var(--section-glow), transparent 67%),
    linear-gradient(170deg, #0c1925, #0a131c 85%);
}
.tone-agents, .tone-employees { --section-glow: #174e465e; }
.tone-pilot, .tone-contacts { --section-glow: #71402146; }
.tone-scenarios { --section-glow: #26457068; }
.inner-hero > .wrap { padding-block: clamp(17px, 2.1vw, 31px) clamp(32px, 4vw, 58px); }
.bread {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 7px;
  margin-bottom: clamp(17px, 3vw, 38px);
  color: var(--muted);
  font-size: 12px;
}
.bread a { text-decoration: none; }
.bread a:hover { color: var(--cyan); text-decoration: underline; }
.inner-grid, .pair-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.07fr) minmax(0, 1fr);
  align-items: center;
  gap: clamp(20px, 4.2vw, 62px);
}
.inner-grid h1 { max-width: 16ch; }
.intro {
  max-width: 58ch;
  margin-top: 15px;
  color: var(--muted);
  font-size: clamp(15px, 1.3vw, 19px);
}
.inner-grid .pill { margin-top: 18px; }
.copy-wide { max-width: 830px; }
.copy-wide h1 { max-width: 23ch; }

.work-panel, .notice {
  position: relative;
  padding: clamp(16px, 2.4vw, 31px);
  border: 1px solid #3b6378;
  border-radius: 12px;
  background: linear-gradient(145deg, #122635, #0e1823 80%);
  box-shadow: inset 0 1px 0 #a2edfc17, 0 18px 40px #04080c60;
}
.work-panel::before {
  position: absolute;
  top: -1px;
  left: 18px;
  width: 32px;
  height: 2px;
  border-radius: 2px;
  background: var(--cyan);
  box-shadow: 0 1px 9px #9ce4f066;
  content: "";
}
.panel-caption {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 7px 14px;
  color: var(--cyan);
  font-size: 12px;
  font-weight: 590;
}
.panel-caption span:last-child { color: var(--warm); }
.work-panel h2 {
  margin-block: 12px 16px;
  font-size: clamp(20px, 2.2vw, 31px);
}
.work-panel dl, .process-screen dl { margin: 0; }
.work-panel dl div {
  display: grid;
  grid-template-columns: minmax(88px, .6fr) minmax(0, 1fr);
  gap: 8px 12px;
  padding-block: 8px;
  border-top: 1px solid var(--line);
}
.work-panel dt, .process-screen dt, .workflow dt {
  color: var(--cyan);
  font-size: 12px;
  font-weight: 570;
}
.work-panel dd, .process-screen dd {
  margin: 0;
  font-size: 14px;
  line-height: 1.46;
}
.notice {
  border-color: #694939;
  background: linear-gradient(150deg, #2a201c, #17171c 82%);
}
.notice h2 { color: var(--warm); font-size: clamp(20px, 2vw, 26px); }
.notice p { margin-top: 8px; color: var(--muted); font-size: 15px; }

.section-head { max-width: 920px; margin-bottom: clamp(21px, 3vw, 35px); }
.section-head p {
  max-width: 68ch;
  margin-top: 10px;
  color: var(--muted);
  font-size: clamp(15px, 1.2vw, 17px);
}
.rows {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  column-gap: clamp(24px, 5vw, 65px);
}
.row {
  padding: 17px 0 20px;
  border-top: 1px solid var(--line);
}
.row h3 { margin-bottom: 5px; }
.row p { max-width: 68ch; color: var(--muted); font-size: 15px; }
.journey {
  border-block: 1px solid var(--line);
  background: radial-gradient(ellipse at 16% 0%, #122e3d, #0b151e 68%);
}
.journey .rows { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.related {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 22px;
  margin-top: 15px;
}

.example-grid, .role-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 13px; }
.example-card, .role, .process-screen {
  border: 1px solid #2f495b;
  border-radius: 10px;
  background: linear-gradient(160deg, #10212d, #0c1721 76%);
}
.example-card, .role {
  display: flex;
  flex-direction: column;
  align-items: start;
  gap: 10px;
  padding: clamp(15px, 2vw, 25px);
  text-decoration: none;
}
.example-card { --accent: var(--cyan); border-top-color: #67a4b6; }
.ex-documents { --accent: var(--warm); border-top-color: #ac764f; }
.ex-orders { --accent: var(--green); border-top-color: #4d927e; }
.example-card:hover, .role:hover { border-color: var(--accent, var(--cyan)); background: #162733; }
.example-card p, .role p { color: var(--muted); font-size: 14px; }
.example-label, .role small {
  color: var(--accent, var(--cyan));
  font-size: 12px;
  font-weight: 630;
}
.example-card blockquote {
  width: 100%;
  margin: 0;
  padding: 6px 0 6px 11px;
  border-inline-start: 2px solid var(--accent);
  color: #d6e4ee;
  font-size: 14px;
  line-height: 1.52;
}
.example-link, .role .arrow {
  margin-top: auto;
  color: var(--accent, var(--cyan));
  font-size: 13px;
  font-weight: 630;
}
.roles { background: #0a141e; }
.roles .band { padding-top: clamp(31px, 4vw, 58px); }
.role-grid { display: flex; }
.role { flex: 1 1 0; }

.process-demo + #details { padding-top: 5px; }
.process-screen { padding: clamp(15px, 2vw, 25px); }
.process-screen h3 { margin: 7px 0 13px; }
.process-screen dl div { display: grid; gap: 3px; padding: 7px 0; border-top: 1px solid var(--line); }

.workflow-index { display: flex; flex-wrap: wrap; gap: 7px; margin-bottom: 20px; }
.workflow-index a {
  padding: 6px 11px;
  border: 1px solid #2e4c5c;
  border-radius: 6px;
  color: var(--cyan);
  font-size: 13px;
  text-decoration: none;
}
.workflow-index a:hover { background: #142c3a; }
.workflow {
  display: grid;
  grid-template-columns: minmax(155px, .8fr) minmax(0, 2fr);
  gap: clamp(18px, 4.5vw, 64px);
  padding-block: clamp(22px, 3vw, 40px);
  border-top: 1px solid var(--line);
  scroll-margin-top: 12px;
}
.workflow:target { border-top-color: var(--amber); }
.workflow h3 { margin-block: 5px 9px; }
.workflow dl {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 13px clamp(16px, 2.5vw, 37px);
  margin: 0;
}
.workflow dd { margin: 4px 0 0; color: var(--muted); font-size: 14px; line-height: 1.48; }

.faq {
  border-top: 1px solid var(--line);
  background: #0a131c;
}
.faq-grid { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.35fr); gap: 20px 50px; }
.faq details { padding: 11px 0; border-top: 1px solid var(--line); }
.faq summary { color: var(--ink); font-weight: 550; font-size: 15px; }
.faq summary::marker { color: var(--cyan); }
.faq details p {
  max-width: 65ch;
  padding-top: 7px;
  color: var(--muted);
  font-size: 14px;
}
.sources-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  align-items: start;
}
.source {
  background: #0c1b24;
  border: 1px solid var(--line);
  border-radius: 10px;
}
.source[open] { border-color: #406470; }
.source summary {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 60px;
  padding: 12px 16px;
  border-radius: 9px;
  font-weight: 620;
  list-style: none;
}
.source summary::-webkit-details-marker { display: none; }
.source summary:hover { background: #152934; }
.source summary img { flex: 0 0 28px; width: 28px; height: 28px; object-fit: contain; }
.source summary::after {
  content: ""; margin-left: auto; margin-right: 3px; flex: 0 0 8px; height: 8px;
  border: solid var(--cyan); border-width: 0 1.5px 1.5px 0;
  transform: rotate(45deg); translate: 0 -2px;
}
.source[open] summary::after { transform: rotate(225deg); translate: 0 2px; }
.source-description { margin: 0 16px; padding: 12px 0 16px; border-top: 1px solid var(--line); }
.source-description dl { margin: 0; }
.source-description dt,.source-example strong { display:block; margin-bottom:4px; color:var(--cyan); font-size:12px; font-weight:650; }
.source-description dd,.source-example { margin: 0; color:var(--ink); font-size:14px; line-height:1.5; }
.source-description dd + dt { margin-top:12px; }
.source-example { margin-top:12px; padding-top:10px; border-top:1px solid var(--line); color:var(--muted); }

.cta-band {
  border-block: 1px solid #6b432d;
  background:
    radial-gradient(ellipse at 76% 108%, #62351d70, transparent 60%),
    linear-gradient(150deg, #271b18, #111820 80%);
}
.cta-band .band { padding-block: clamp(25px, 3.5vw, 46px); }
.cta-band h2 { max-width: 22ch; color: #ffebd8; }
.cta-band p { max-width: 56ch; margin-bottom: 14px; color: #d5c5b8; font-size: 15px; }
.footer { background: var(--deep); }
.footer .wrap {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 24px 40px;
  padding-block: 30px;
}
.footer p { margin-top: 7px; color: var(--muted); font-size: 13px; }
.footer nav { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px 22px; }
.footer nav a { color: var(--muted); font-size: 13px; text-decoration: none; }
.footer nav a:hover { color: var(--cyan); text-decoration: underline; }

@media (max-width: 980px) {
  .desktop-nav { display: none; }
  .menu { display: block; margin-inline-start: auto; }
  .bar { min-height: 55px; }
}
@media (max-width: 730px) {
  .band { padding-block: 35px; }
  .inner-grid, .pair-grid, .faq-grid, .workflow { grid-template-columns: 1fr; }
  .inner-grid h1 { max-width: 21ch; }
  .brand { font-size: 18px; }
  .brand img { width: 40px; }
  .example-grid { grid-template-columns: 1fr; gap: 9px; }
  .example-card { gap: 7px; }
  .sources-list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .footer .wrap { flex-direction: column; }
}
@media (max-width: 520px) {
  .sources-list { grid-template-columns:1fr; }
  .bar { gap: 11px; }
  .role-grid { flex-direction: column; }
  .rows, .journey .rows, .workflow dl { grid-template-columns: 1fr; }
  .row { padding: 12px 0 15px; }
  .work-panel dl div { grid-template-columns: minmax(65px, .46fr) minmax(0, 1fr); }
  .footer nav { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 390px) {
  .bar-inner { padding-inline: 10px; }
  .bar { gap: 5px; }
  .bar .locales a { padding-inline: 4px; }
  .bar .brand { gap: 5px; font-size: 16px; }
  .bar .brand img { width: 30px; }
  .platform-login { padding-inline: 8px; }
}
