@font-face {
  font-family: Inter;
  src: url('inter.woff2') format('woff2');
  font-weight: 400 800;
  font-display: swap;
}

@font-face {
  font-family: Sora;
  src: url('sora.woff2') format('woff2');
  font-weight: 400 800;
  font-display: swap;
}

:root {
  color-scheme: dark;
  --background: #0b1425;
  --surface: #121e32;
  --inset: #0d1829;
  --line: #2a3b53;
  --text: #f5f7fc;
  --muted: #b3c1d5;
  --link: #a6c2ff;
  --cyan: #65e2df;
  --button: #2256df;
  --button-hover: #1b47c5;
  --wrap: 1184px;
  --heading: Sora, Inter, system-ui, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-padding-top: 24px; }
body { margin: 0; background: var(--background); color: var(--text); font: 16px/1.65 Inter, system-ui, sans-serif; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; }
button, summary { cursor: pointer; }
a, button, summary { touch-action: manipulation; }
[hidden] { display: none !important; }
:focus-visible { outline: 2px solid var(--cyan); outline-offset: 5px; }

h1, h2, h3, p { margin: 0; }
h1, h2, h3 { font-family: var(--heading); line-height: 1.16; font-weight: 600; letter-spacing: -.035em; text-wrap: balance; }
h2 { font-size: clamp(30px, 3.25vw, 44px); }
h3 { font-size: 22px; }
p { color: var(--muted); }

.wrap { width: min(var(--wrap), calc(100% - 96px)); margin-inline: auto; }
.section { padding-block: clamp(48px, 6vw, 84px); }
.lede { max-width: 57ch; font-size: clamp(17px, 1.6vw, 21px); line-height: 1.6; }
.caption { font-size: 14px; color: var(--muted); }
.skip { position: absolute; left: 14px; top: -100px; z-index: 10; padding: 9px 16px; background: var(--surface); }
.skip:focus { top: 12px; }

.header { position: relative; z-index: 2; background: var(--background); border-bottom: 1px solid var(--line); }
.header-inner { min-height: 78px; display: flex; align-items: center; gap: 26px; }
.brand { display: inline-flex; align-items: center; width: fit-content; min-height: 44px; }
.brand-mark { position: relative; flex: none; width: clamp(56px, 6vw, 68px); aspect-ratio: 2.2; overflow: hidden; mix-blend-mode: lighten; }
.brand-mark img { position: absolute; top: 50%; left: 50%; width: 137%; height: auto; transform: translate(-50%, -50%); }
.main-nav { display: flex; align-items: center; gap: clamp(16px, 2.2vw, 30px); margin-left: auto; }
.main-nav a { padding-block: 10px; color: var(--muted); font-size: 14px; font-weight: 500; }
.main-nav a:hover, .main-nav a[aria-current] { color: var(--text); text-decoration: underline; text-decoration-color: var(--cyan); text-underline-offset: 6px; }
.mobile-menu { display: none; position: relative; margin-left: auto; }

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  min-height: 46px;
  width: fit-content;
  padding: 10px 17px;
  border: 1px solid transparent;
  border-radius: 7px;
  background: var(--button);
  color: white;
  font-size: 14px;
  font-weight: 650;
  line-height: 1.35;
  transition: background-color .18s ease, border-color .18s ease;
}
.button:hover { background: var(--button-hover); }
.header .button { min-height: 42px; white-space: nowrap; border-color: #5079c1; background: transparent; }
.header .button:hover { background: #193052; border-color: var(--link); }
.arrow { line-height: 1; }
.text-link { display: inline-flex; gap: 8px; align-items: center; width: fit-content; padding: 5px 0; border: 0; background: transparent; color: var(--link); font-size: 14px; font-weight: 600; }
.text-link:hover { color: var(--text); text-decoration: underline; text-underline-offset: 5px; }

main, .footer { position: relative; }
.home-story { position: relative; isolation: isolate; overflow: clip; }
.hero, .contact-band { position: relative; }
.hero { isolation: isolate; overflow: hidden; }
.home-story {
  background: radial-gradient(ellipse at 88% 14%, #15334e, transparent 40%),
    linear-gradient(180deg, #0b1425, #102238 55%, #0b1425);
}
.story-motion { position: absolute; inset: 0; pointer-events: none; z-index: -1; }
.story-routes { display: block; width: 100%; height: 100%; }
.dispatch-branch.is-receiving { stroke: #8bcde5; stroke-opacity: .9; }
.dispatch-signal {
  position: absolute; top: 0; left: 0; width: 8px; height: 8px; border-radius: 50%;
  background: #d0f5ff; box-shadow: 0 0 9px #71cde8; offset-rotate: 0deg;
}

.hero-wave { position: absolute; inset: 0; overflow: hidden; pointer-events: none; z-index: -2; }
.hero-wave-sheet {
  position: absolute; top: 0; left: -5%; width: 110%; height: 100%;
  transform-origin: var(--wave-origin);
  animation: wave-drift 12s ease-in-out infinite alternate;
  animation-play-state: paused;
}
.hero-wave.is-moving .hero-wave-sheet { animation-play-state: running; }
@keyframes wave-drift {
  from { transform: rotate(-2deg) scaleY(1.02); }
  to { transform: rotate(3deg) scaleY(1.17); }
}
.hero::after {
  content: ''; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background: linear-gradient(100deg, #0b142581, #0b142570 43%, transparent 77%);
}
.hero-inner {
  min-height: clamp(530px, 80svh, 760px); display: flex; align-items: center;
  padding-block: clamp(68px, 12svh, 120px);
}
.hero-copy { display: grid; justify-items: start; gap: clamp(20px, 2.5vw, 32px); }
.hero h1 {
  max-width: 18ch; font-size: clamp(40px, 5.3vw, 83px); line-height: 1.06;
  font-weight: 620; letter-spacing: -.052em; text-wrap: balance;
}
.hero h1 span { display: block; color: #bce6f2; }
.hero .lede { max-width: 48ch; color: #d8e3f2; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 8px 24px; align-items: center; }
.hero-actions .text-link { min-height: 44px; }

.console-section { border-top: 1px solid var(--line); }
.console-layout {
  display: grid; grid-template-columns: minmax(0, .84fr) minmax(0, 1.16fr);
  align-items: center; gap: clamp(28px, 6vw, 90px);
}
.console-copy h2 { max-width: 19ch; }
.console-copy p { max-width: 41ch; margin-top: 14px; }
.console-copy .text-link { margin-top: 16px; }
.agent-console {
  position: relative; margin: 0; min-width: 0;
  background: #0c1827; border: 1px solid #36526d; border-radius: 8px;
}
.agent-console figcaption > .console-dock {
  position: absolute; top: 28px; right: -1px; transform: translate(50%, -50%);
  width: 7px; height: 7px; border-radius: 50%; background: #86b7ce;
}
.agent-console.is-running .console-dock { background: #d0f5ff; box-shadow: 0 0 9px #71cde8; }
.agent-console.is-running .console-avatar { border-color: #84cce7; }
.agent-console figcaption {
  display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between;
  gap: 3px 12px; padding: 15px 20px; border-bottom: 1px solid #28435a;
}
.agent-console figcaption strong { display: inline-flex; align-items: center; gap: 10px; font-size: 14px; font-weight: 650; }
.agent-console figcaption > span { font-size: 12px; color: #aabed2; }
.console-avatar {
  display: inline-grid; place-items: center; flex: 0 0 28px; height: 28px;
  color: #a8d5ef; background: #1c354b; border: 1px solid #385875; border-radius: 6px;
}
.console-avatar svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.console-avatar--document { color: #efc0a4; background: #342b32; border-color: #644b4b; }
.console-avatar--test { color: #b0e0d4; background: #193740; border-color: #315d61; }
.console-session {
  display: grid; gap: 14px; padding: 20px;
  font: 13px/1.65 ui-monospace, Consolas, monospace; overflow-wrap: anywhere;
}
.console-session p { display: grid; min-width: 0; color: #bad0e4; }
.console-session p > span { grid-area: 1 / 1; }
.console-session p > .console-sizer { visibility: hidden; }
.console-session .console-command { grid-template-columns: auto minmax(0, 1fr); column-gap: 9px; color: #e0f3fb; }
.console-command > span:not(.console-prompt) { grid-column: 2; }
.console-prompt { color: #92d6e9; }
.console-session.is-typing [data-console-command]::after,
.console-session.is-streaming [data-console-output]::after { content: '▍'; position: absolute; color: #92d6e9; }
.visually-hidden {
  position: absolute; width: 1px; height: 1px; padding: 0; overflow: hidden;
  clip-path: inset(50%); white-space: nowrap;
}

.services-band { border-block: 1px solid var(--line); background: #121e32d9; }
.home-services { display: grid; grid-template-columns: .63fr 1.37fr; gap: clamp(26px, 6vw, 96px); }
.service-intro p { max-width: 28ch; margin-top: 12px; }
.service-intro .text-link { margin-top: 14px; }
.service-list { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.service-list li { border-bottom: 1px solid var(--line); }
.service-list a {
  display: grid;
  grid-template-columns: minmax(150px, .85fr) minmax(0, 1.25fr) auto;
  align-items: center;
  gap: 17px;
  padding: 17px 8px;
  transition: background-color .18s ease;
}
.service-list a:hover { background: #203451; }
.service-list h3 { font-size: 17px; letter-spacing: -.02em; }
.service-list p { font-size: 14px; line-height: 1.5; }
.service-list .arrow { color: var(--link); }

.contact-band { background: var(--surface); border-top: 1px solid var(--line); }
.home-story .contact-band { background: #121e32bf; }
.band-content { min-height: 225px; display: flex; align-items: center; justify-content: space-between; gap: 24px; padding-block: 38px; }
.band-content p { margin-top: 10px; }
.band-content .button { flex: none; }

.page-intro { padding-block: clamp(43px, 6vw, 85px); background: var(--surface); border-bottom: 1px solid var(--line); }
.page-intro h1 { font-size: clamp(37px, 5vw, 66px); margin-bottom: 13px; }

.service-detail { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(24px, 6vw, 85px); border-top: 1px solid var(--line); padding-block: 30px; }
.service-detail:last-of-type { border-bottom: 1px solid var(--line); }
.service-detail h2 { font-size: clamp(27px, 3vw, 38px); margin-bottom: 10px; }
.service-detail > div > p { max-width: 49ch; }
.deliverables h3 { font-size: 17px; letter-spacing: -.01em; }
.deliverables ul { margin-block: 7px 15px; padding-left: 19px; }
.deliverables li, .deliverables p { font-size: 15px; }
.deliverables p { margin-block: 5px 8px; }
.section-end { margin-top: 18px; }

.cases { display: grid; gap: 17px; }
.case { display: grid; grid-template-columns: .9fr 1.1fr; gap: 28px; align-items: center; border: 1px solid var(--line); border-radius: 8px; padding: clamp(18px, 3vw, 32px); }
.case h2 { font-size: clamp(25px, 2.7vw, 36px); }
.case-copy > p { margin-block: 9px 10px; }
.demo { min-width: 0; }
.demo-steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 5px; list-style: none; padding: 0; margin: 0 0 8px; }
.demo-steps button { text-align: left; width: 100%; height: 100%; min-height: 55px; padding: 8px; font-size: 14px; font-weight: 600; line-height: 1.35; border: 1px solid var(--line); border-radius: 5px; background: var(--inset); color: var(--text); }
.demo-steps button:hover { border-color: var(--link); }
.demo-steps button[aria-pressed=true] { background: #1d3457; border-color: #759de3; }
.demo-detail { min-height: 65px; padding: 12px; background: var(--surface); border-radius: 5px; font-size: 15px; }
.play-demo { margin-top: 8px; min-height: 40px; }

.phase-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 25px; margin-top: 24px; }
.phase-grid article { border-top: 1px solid var(--line); padding-top: 16px; }
.phase-grid h3 { margin-bottom: 7px; }
.company-phases strong { display: block; font-size: 14px; margin-top: 12px; font-weight: 600; }
.feature-band { background: var(--surface); }
.faq { display: grid; grid-template-columns: .8fr 1.2fr; gap: 30px; }
.faq details { border-top: 1px solid var(--line); }
.faq details:last-child { border-bottom: 1px solid var(--line); }
.faq summary { padding: 12px 0; font-weight: 600; }
.faq summary:hover { color: var(--link); }
.faq details p { padding-bottom: 14px; max-width: 60ch; }

.contact-grid { display: grid; grid-template-columns: .72fr 1.28fr; gap: clamp(25px, 6vw, 84px); }
.contact-info h2 { font-size: clamp(28px, 3vw, 41px); }
.contact-info h2 + p { margin-block: 9px; max-width: 38ch; }
.brief-form { display: grid; gap: 15px; min-width: 0; padding: clamp(17px, 3vw, 31px); background: var(--surface); border: 1px solid var(--line); border-radius: 9px; }
.brief-form h2 { font-size: 26px; }
.form-row { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 12px; }
.brief-form label { display: block; font-size: 15px; font-weight: 600; }
.brief-form label span { font-size: 13px; color: var(--muted); font-weight: 400; }
.brief-form input, .brief-form select, .brief-form textarea {
  display: block;
  width: 100%;
  min-height: 44px;
  padding: 7px 10px;
  margin-top: 6px;
  border: 1px solid #48617c;
  border-radius: 5px;
  background: var(--inset);
  color: var(--text);
  font-size: 16px;
}
.brief-form textarea { resize: vertical; }
.brief-form .caption:empty { display: none; }

.footer { background: var(--background); border-top: 1px solid var(--line); }
.footer-main { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 6px 24px; padding-top: 30px; }
.footer-identity { display: flex; align-items: center; gap: 10px clamp(20px, 3vw, 40px); }
.footer-tagline { color: var(--text); font-size: 15px; font-weight: 600; line-height: 1.35; }
.footer-tagline span { color: var(--link); }
.footer-top { display: inline-flex; align-items: center; gap: 6px; min-height: 44px; font-size: 14px; font-weight: 600; }
.footer-top span { color: var(--cyan); }
.footer nav { display: flex; flex-wrap: wrap; gap: 0 24px; }
.footer nav a { display: inline-flex; align-items: center; min-height: 44px; }
.footer-nav { padding-block: 12px 19px; color: var(--link); font-size: 14px; }
.footer a:hover, .footer a[aria-current] { color: var(--text); text-decoration: underline; text-underline-offset: 4px; }
.footer-base { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 5px 24px; border-top: 1px solid var(--line); padding-block: 10px; font-size: 13px; color: var(--muted); }
.footer-base > a { display: inline-flex; align-items: center; min-height: 44px; }

.policy { max-width: 760px; display: grid; gap: 30px; }
.policy-date { font-size: 14px; }
.policy h2 { font-size: clamp(22px, 3vw, 27px); text-wrap: pretty; }
.policy p + p, .policy h2 + p, .policy h2 + ul { margin-top: 9px; }
.policy ul { margin-bottom: 0; padding-left: 1.4em; color: var(--muted); }
.policy li + li { margin-top: 8px; }
.policy a, .brief-form .caption a { color: var(--link); text-decoration: underline; text-underline-offset: .18em; overflow-wrap: anywhere; }

@media (max-width: 900px) {
  .wrap { width: calc(100% - 60px); }
  .home-services { grid-template-columns: .62fr 1.38fr; gap: 24px; }
  .service-list a { grid-template-columns: minmax(115px, .85fr) minmax(0, 1.25fr) auto; }
}

@media (max-width: 800px) {
  .header-inner { min-height: 66px; }
  .header .button, .main-nav { display: none; }
  .mobile-menu { display: block; }
  .mobile-menu summary { display: flex; align-items: center; min-height: 42px; list-style: none; border: 1px solid #48617c; border-radius: 6px; padding-inline: 11px; font-size: 14px; }
  .mobile-menu summary::-webkit-details-marker { display: none; }
  .mobile-menu summary::after { content: '+'; margin-left: 8px; color: var(--link); }
  .mobile-menu[open] summary::after { content: '−'; }
  .mobile-menu nav { position: absolute; top: calc(100% + 7px); right: 0; display: grid; min-width: 188px; padding: 6px; background: var(--surface); border: 1px solid var(--line); border-radius: 8px; box-shadow: 0 12px 24px #0005; }
  .mobile-menu a { padding: 10px; font-size: 14px; }
  .mobile-menu a[aria-current], .mobile-menu a:hover { color: var(--cyan); }
}

@media (max-width: 650px) {
  .wrap { width: calc(100% - 40px); }
  .hero::after { background: linear-gradient(180deg, #0b142563 0%, #0b142576 55%, transparent); }
  .hero-inner { min-height: clamp(475px, 75svh, 600px); padding-block: 56px 94px; }
  .hero h1 { font-size: clamp(32px, 8.45vw, 52px); }
  .hero .lede { max-width: 38ch; }
  .console-layout { grid-template-columns: minmax(0, 1fr); }
  .agent-console figcaption, .console-session { padding-inline: 14px; }
  .home-services, .service-detail, .case, .phase-grid, .faq, .contact-grid { grid-template-columns: 1fr; gap: 20px; }
  .service-list a { grid-template-columns: 1fr auto; gap: 6px 14px; padding: 15px 2px; }
  .service-list p { grid-column: 1; grid-row: 2; }
  .service-list .arrow { grid-column: 2; grid-row: 1 / 3; }
  .band-content { align-items: flex-start; flex-direction: column; gap: 16px; }
  .footer-main { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: start; gap: 12px; }
  .footer-identity { flex-direction: column; align-items: flex-start; }
  .footer nav { column-gap: 17px; }
  .footer-base { display: grid; gap: 0; padding-top: 16px; }
  .footer-base > a { justify-self: start; }
  .band-content { min-height: 0; }
}

@media (max-width: 430px) {
  .form-row { grid-template-columns: 1fr; }
  .demo-steps button { font-size: 13px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; }
  .hero-wave-sheet { animation: none; }
  .dispatch-signal { display: none; }
}

.service-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 18px; }
.routing-demo { min-width: 0; padding: 20px; border-radius: 8px; background: var(--surface); }
.routing-controls { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 8px 10px; align-items: end; }
.routing-controls label { grid-column: 1 / -1; font-weight: 600; font-size: 14px; }
.routing-controls select { width: 100%; min-height: 46px; padding: 7px; color: var(--text); background: var(--inset); border: 1px solid #48617c; border-radius: 5px; }
.routing-controls button { white-space: nowrap; }
.routing-result { margin-top: 14px; min-height: 3em; font-size: 14px; }
.routing-result dl { display: grid; gap: 8px; margin: 0; }
.routing-result dl > div { display: grid; grid-template-columns: 78px minmax(0, 1fr); gap: 10px; padding-top: 8px; border-top: 1px solid var(--line); }
.routing-result dt { color: var(--muted); }
.routing-result dd { margin: 0; }
.brief-preview { margin-top: 18px; padding: clamp(17px, 3vw, 31px); background: var(--surface); border: 1px solid var(--line); border-radius: 9px; }
.brief-preview h2 { font-size: 24px; }
.brief-preview pre { white-space: pre-wrap; overflow-wrap: anywhere; margin: 14px 0; padding: 14px; color: var(--text); background: var(--inset); border-radius: 5px; font: inherit; }
.brief-preview .text-link { min-height: 44px; }
#brief-status { margin-top: 10px; }
#brief-status:empty { display: none; }
.contact-info .text-link { margin-top: 10px; }
@media (max-width: 520px) {
  .routing-controls { grid-template-columns: 1fr; }
}
