/* Blue349 — v0.1
   Direction: editorial / engineering drawing. Paper background, navy ink,
   cyan used only as a signal. The node-and-line grammar comes from the logo. */

:root {
  --paper: #F6F5F1;
  --white: #FFFFFF;
  --ink: #0B1B33;
  --navy: #073573;
  --navy-deep: #06204A;
  --night: #041630;
  --cyan: #12AEEA;
  --muted: #4E5A6B;
  --soft: #6B7688;
  --line: #DCD8CE;
  --line-dark: rgba(255, 255, 255, 0.16);

  --font: 'Manrope', 'Avenir Next', 'Segoe UI', -apple-system, BlinkMacSystemFont, sans-serif;
  --mono: 'IBM Plex Mono', ui-monospace, SFMono-Regular, Menlo, monospace;
  --brand: 'Sora', 'Manrope', sans-serif;

  --wrap: 1240px;
  --gutter: clamp(16px, 4vw, 40px);
  --section: clamp(72px, 10vw, 140px);
  --radius: 4px;
  --header-h: 72px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 16px); }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.6;
  font-feature-settings: 'ss01';
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; }
h1, h2, h3, p, ul, ol, dl, dd, figure { margin: 0; }
ul, ol { padding: 0; list-style: none; }
:focus-visible { outline: 2px solid var(--cyan); outline-offset: 3px; border-radius: 2px; }

.wrap { width: 100%; max-width: calc(var(--wrap) + 2 * var(--gutter)); margin: 0 auto; padding: 0 var(--gutter); }
.skip { position: absolute; left: 16px; top: -100px; z-index: 100; background: var(--ink); color: #fff; padding: 10px 16px; border-radius: var(--radius); }
.skip:focus { top: 12px; }

/* ---------- Type ---------- */

.h2 {
  font-size: clamp(2rem, 1.2rem + 3vw, 3.5rem);
  line-height: 1.04;
  letter-spacing: -0.035em;
  font-weight: 800;
  max-width: 20ch;
  text-wrap: balance;
}
.h2 em { font-style: normal; color: var(--soft); }
.h3 { font-size: 1.3rem; line-height: 1.25; letter-spacing: -0.015em; font-weight: 700; }
.lead { font-size: clamp(1.06rem, 1rem + 0.3vw, 1.22rem); line-height: 1.55; color: var(--muted); max-width: 40rem; margin-top: 1.25rem; text-wrap: pretty; }
.label {
  display: block;
  font-family: var(--mono);
  font-size: 0.74rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--soft);
  margin-bottom: 0.9rem;
}
.kicker {
  display: flex; align-items: center; gap: 12px;
  font-family: var(--mono); font-size: 0.78rem; font-weight: 500;
  letter-spacing: 0.1em; text-transform: uppercase; color: var(--navy);
  margin-bottom: 1.5rem;
}
.kicker__node { position: relative; flex: 0 0 auto; width: 9px; height: 9px; border-radius: 50%; background: var(--cyan); }
.kicker::after { content: ''; flex: 0 0 40px; height: 1.5px; background: currentColor; opacity: 0.35; order: -1; }
.kicker { flex-direction: row; }

.text-link { display: inline-block; font-weight: 700; color: var(--navy); text-decoration: none; border-bottom: 1.5px solid currentColor; padding-bottom: 1px; margin-top: 1.25rem; }
.text-link:hover { color: var(--ink); }

/* ---------- Buttons ---------- */

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 48px; padding: 0 22px;
  font: 700 0.98rem/1 var(--font); letter-spacing: -0.005em;
  text-decoration: none; border-radius: var(--radius);
  border: 1.5px solid transparent; cursor: pointer;
  transition: background-color .2s, color .2s, border-color .2s, transform .2s;
}
.btn__arrow { transition: transform .2s; }
.btn:hover .btn__arrow { transform: translateX(3px); }
.btn--primary { background: var(--navy); color: #fff; }
.btn--primary:hover { background: var(--ink); }
.btn--ghost { border-color: var(--ink); color: var(--ink); background: transparent; }
.btn--ghost:hover { background: var(--ink); color: #fff; }
.btn--sm { min-height: 40px; padding: 0 16px; font-size: 0.9rem; }
.btn--lg { min-height: 54px; padding: 0 28px; }

/* ---------- Logo ---------- */

.lockup { display: inline-flex; align-items: center; gap: 9px; text-decoration: none; }
.lockup__iso { height: 27px; width: auto; }
.wordmark {
  font-family: var(--brand); font-weight: 700; font-size: 24px;
  font-synthesis: none; font-kerning: normal; font-feature-settings: 'kern' 1;
  letter-spacing: -0.02em; line-height: 1; white-space: nowrap;
}
.wordmark__blue { color: #073573; }
.wordmark__digits { color: #12AEEA; }
.lockup--white .wordmark__blue, .lockup--white .wordmark__digits { color: #fff; }

/* ---------- Header ---------- */

.site-header {
  position: sticky; top: 0; z-index: 50;
  border-bottom: 1px solid transparent;
  transition: border-color .25s;
}
/* The blur lives on a pseudo-element: backdrop-filter on the header itself would make it
   the containing block of the fixed mobile menu, squeezing the menu to the header's height. */
.site-header::before {
  content: ''; position: absolute; inset: 0; z-index: -1;
  background: rgba(246, 245, 241, 0.92);
  -webkit-backdrop-filter: saturate(1.4) blur(10px); backdrop-filter: saturate(1.4) blur(10px);
}
.site-header.is-scrolled { border-bottom-color: var(--line); }
.site-header__inner { display: flex; align-items: center; justify-content: space-between; height: var(--header-h); gap: 24px; }
.site-nav { display: flex; align-items: center; gap: 28px; }
.site-nav__list { display: flex; gap: 26px; }
.site-nav__list a { text-decoration: none; font-size: 0.93rem; font-weight: 600; color: var(--muted); padding: 6px 0; border-bottom: 1.5px solid transparent; transition: color .2s, border-color .2s; }
.site-nav__list a:hover, .site-nav__list a[aria-current='true'] { color: var(--ink); border-bottom-color: var(--cyan); }
.site-nav__actions { display: flex; align-items: center; gap: 18px; }
.lang-link { font-family: var(--mono); font-size: 0.8rem; font-weight: 500; letter-spacing: 0.06em; text-decoration: none; color: var(--muted); }
.lang-link:hover { color: var(--ink); }
.lang-link__long { display: none; }
.menu-btn { display: none; }

@media (max-width: 1020px) {
  .menu-btn {
    display: inline-flex; align-items: center; gap: 10px;
    background: none; border: 0; padding: 10px 0; cursor: pointer;
    font: 600 0.9rem var(--font); color: var(--ink);
  }
  .menu-btn__bars, .menu-btn__bars::before { display: block; width: 20px; height: 1.5px; background: currentColor; position: relative; transition: transform .2s; }
  .menu-btn__bars::before { content: ''; position: absolute; top: 6px; }
  .menu-btn__bars { transform: translateY(-3px); }
  .menu-btn[aria-expanded='true'] .menu-btn__bars { transform: rotate(45deg); }
  .menu-btn[aria-expanded='true'] .menu-btn__bars::before { transform: translateY(-6px) rotate(-90deg); }

  .site-nav {
    position: fixed; inset: var(--header-h) 0 0 0;
    flex-direction: column; align-items: stretch; justify-content: space-between; gap: 32px;
    padding: 24px var(--gutter) 40px;
    background: var(--paper);
    visibility: hidden; opacity: 0; transform: translateY(-8px);
    transition: opacity .2s, transform .2s, visibility 0s .2s;
    overflow-y: auto;
  }
  .site-nav.is-open { visibility: visible; opacity: 1; transform: none; transition: opacity .2s, transform .2s; }
  .site-nav__list { flex-direction: column; gap: 0; }
  .site-nav__list a { display: block; font-size: 1.6rem; font-weight: 700; letter-spacing: -0.02em; color: var(--ink); padding: 14px 0; border-bottom: 1px solid var(--line); }
  .site-nav__actions { flex-direction: column-reverse; align-items: stretch; gap: 20px; }
  .site-nav__actions .btn { min-height: 52px; font-size: 1rem; }
  .lang-link { text-align: center; font-size: 0.9rem; }
  .lang-link__short { display: none; }
  .lang-link__long { display: inline; }
  body.menu-open { overflow: hidden; }
}

/* ---------- Sections ---------- */

.section { padding: var(--section) 0; }
.section-head { margin-bottom: clamp(48px, 6vw, 80px); }
.section-head--wide .h2 { max-width: 24ch; }
.grid-2 { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: clamp(40px, 7vw, 120px); }
@media (max-width: 900px) { .grid-2 { grid-template-columns: 1fr; } }

/* ---------- Hero ---------- */

.hero { padding: clamp(56px, 9vw, 120px) 0 clamp(64px, 8vw, 104px); }
.hero__eyebrow { font-family: var(--mono); font-size: 0.78rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); margin-bottom: clamp(24px, 3vw, 36px); }
.hero__title {
  font-size: clamp(2.75rem, 0.9rem + 6.4vw, 6.4rem);
  line-height: 0.98;
  letter-spacing: -0.045em;
  font-weight: 800;
  max-width: 15ch;
  text-wrap: balance;
}
.hero__title span { display: block; color: var(--soft); }
.hero__row { display: flex; justify-content: space-between; align-items: flex-end; gap: 40px; margin-top: clamp(32px, 4vw, 48px); flex-wrap: wrap; }
.hero__lead { font-size: clamp(1.08rem, 1rem + 0.35vw, 1.25rem); line-height: 1.55; color: var(--muted); max-width: 38rem; }
.hero__ctas { display: flex; gap: 12px; flex-wrap: wrap; }

/* The path: Discover → Design → Build → Run */
.path { position: relative; margin-top: clamp(64px, 8vw, 104px); }
.path__stages { display: grid; grid-template-columns: repeat(4, 1fr); position: relative; }
.path__stage { position: relative; text-align: center; }
.path__stage a { display: flex; flex-direction: column; align-items: center; gap: 6px; text-decoration: none; padding-bottom: 4px; }
.path__stage::before { /* connector to next node */
  content: ''; position: absolute; top: 10px; left: 50%; width: 100%; height: 3px; margin-top: -1.5px;
  background: var(--navy); transform-origin: left; z-index: 0;
}
.path__stage:last-child::before { display: none; }
.path__node { position: relative; z-index: 1; width: 20px; height: 20px; border-radius: 50%; background: var(--navy); margin-bottom: 14px; transition: transform .25s; }
.path__stage--1 .path__node { background: var(--cyan); }
.path__stage--4 .path__node { box-shadow: 0 0 0 5px var(--paper), 0 0 0 7px var(--navy); }
.path__k { font-family: var(--mono); font-size: 0.74rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--soft); }
.path__v { font-size: clamp(1.1rem, 0.9rem + 0.8vw, 1.6rem); font-weight: 700; letter-spacing: -0.025em; color: var(--ink); }
.path__stage a:hover .path__node { transform: scale(1.25); }
.path__loop { width: 100%; height: 44px; margin-top: 6px; overflow: visible; }
.path__loop path { fill: none; stroke: var(--navy); stroke-width: 1.5; stroke-dasharray: 5 6; vector-effect: non-scaling-stroke; opacity: 0.55; }
.path__loop-label { position: absolute; left: 50%; transform: translate(-50%, -34px); font-family: var(--mono); font-size: 0.72rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--soft); background: var(--paper); padding: 0 10px; }
.path__band {
  margin-top: 26px; padding: 12px 16px; text-align: center;
  border-top: 1.5px solid var(--navy); border-bottom: 1.5px solid var(--navy);
  background: repeating-linear-gradient(-45deg, transparent 0 7px, rgba(7, 53, 115, 0.07) 7px 8px);
  font-family: var(--mono); font-size: 0.76rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--navy);
}
.path__band span { background: var(--paper); padding: 2px 10px; }

.js .path__stage::before { animation: draw .7s cubic-bezier(.6,.1,.2,1) both; }
.js .path__stage--1::before { animation-delay: .25s; }
.js .path__stage--2::before { animation-delay: .6s; }
.js .path__stage--3::before { animation-delay: .95s; }
.js .path__node { animation: pop .35s ease-out both; }
.js .path__stage--2 .path__node { animation-delay: .5s; }
.js .path__stage--3 .path__node { animation-delay: .85s; }
.js .path__stage--4 .path__node { animation-delay: 1.2s; }
@keyframes draw { from { transform: scaleX(0); } }
@keyframes pop { from { transform: scale(0); } }

@media (max-width: 720px) {
  .path__stages { grid-template-columns: 1fr; gap: 0; }
  .path__stage { text-align: left; }
  .path__stage a { flex-direction: row; align-items: baseline; gap: 14px; padding: 0 0 22px; flex-wrap: wrap; }
  .path__stage::before { top: 10px; left: 9px; width: 3px; height: 100%; margin: 0; transform-origin: top; }
  .js .path__stage::before { animation-name: drawY; }
  .path__node { flex: 0 0 20px; margin: 0; align-self: flex-start; }
  .path__k { width: 6.5rem; }
  .path__loop, .path__loop-label { display: none; }
  .path__band { margin-top: 8px; text-align: left; }
}
@keyframes drawY { from { transform: scaleY(0); } }

/* ---------- Problem ---------- */

.problem { border-top: 1px solid var(--line); }
.problem__intro { align-self: start; position: sticky; top: calc(var(--header-h) + 40px); }
.stalls li { display: grid; grid-template-columns: 44px 1fr; gap: 12px; padding: 22px 0; border-top: 1px solid var(--line); }
.stalls li:last-child { border-bottom: 1px solid var(--line); }
.stalls__n { font-family: var(--mono); font-size: 0.8rem; color: var(--navy); padding-top: 4px; }
.stalls strong { display: block; font-size: 1.15rem; line-height: 1.35; letter-spacing: -0.01em; }
.stalls span:not(.stalls__n) { display: block; color: var(--muted); margin-top: 4px; }
.problem__close { margin-top: 36px; padding-left: 20px; border-left: 3px solid var(--navy); font-size: 1.2rem; line-height: 1.5; font-weight: 600; max-width: 34rem; }
@media (max-width: 900px) { .problem__intro { position: static; } }

/* ---------- Approach ---------- */

.approach { background: var(--white); }
.stages { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; }
.stage { position: relative; padding: 36px 28px 0 0; }
.stage::before { content: ''; position: absolute; top: 8px; left: 0; right: 0; height: 2px; background: var(--navy); }
.stage:last-child::before { right: auto; width: 16px; }
.stage__node { position: absolute; top: 0; left: 0; width: 18px; height: 18px; border-radius: 50%; background: var(--navy); }
.stage--1 .stage__node { background: var(--cyan); }
.stage__n { font-family: var(--mono); font-size: 0.78rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--navy); margin-bottom: 10px; }
.stage__title { font-size: 1.35rem; line-height: 1.25; letter-spacing: -0.02em; font-weight: 700; max-width: 14ch; }
.stage__outcome { margin-top: 18px; color: var(--muted); max-width: 17rem; }
.stage__outcome .label { margin-bottom: 4px; }
.band {
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 2fr); gap: 24px; align-items: center;
  margin-top: 56px; padding: 22px 26px;
  border: 1.5px solid var(--navy); border-radius: var(--radius);
  background: repeating-linear-gradient(-45deg, transparent 0 7px, rgba(7, 53, 115, 0.05) 7px 8px);
}
.band__title { display: flex; align-items: center; gap: 12px; font-weight: 800; font-size: 1.1rem; color: var(--navy); }
.band__icon { width: 18px; height: 20px; flex: 0 0 auto; background: var(--navy); clip-path: polygon(50% 0, 100% 18%, 100% 55%, 50% 100%, 0 55%, 0 18%); }
.band__text { color: var(--ink); }
.approach__loop { margin-top: 20px; font-family: var(--mono); font-size: 0.78rem; letter-spacing: 0.04em; color: var(--soft); }
@media (max-width: 900px) {
  .stages { grid-template-columns: 1fr 1fr; row-gap: 48px; }
  .stage:nth-child(2)::before { right: auto; width: 16px; }
  .band { grid-template-columns: 1fr; gap: 10px; }
}
@media (max-width: 560px) {
  .stages { grid-template-columns: 1fr; row-gap: 0; }
  .stage { padding: 0 0 36px 40px; }
  .stage::before, .stage:nth-child(2)::before { top: 0; bottom: 0; left: 8px; right: auto; width: 2px; height: auto; }
  .stage:last-child::before { display: none; }
}

/* ---------- Services ---------- */

.offers { border-top: 1.5px solid var(--ink); }
.offer {
  display: grid; grid-template-columns: 160px minmax(0, 1.15fr) minmax(0, 1fr); gap: clamp(24px, 4vw, 56px);
  padding: clamp(32px, 4vw, 48px) 0; border-bottom: 1px solid var(--line);
}
.offer__stage { display: flex; align-items: center; gap: 10px; align-self: start; padding-top: 6px; font-family: var(--mono); font-size: 0.76rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--navy); }
.offer__node { width: 10px; height: 10px; border-radius: 50%; background: var(--navy); }
.offer:last-child .offer__node { background: none; border: 2px solid var(--navy); }
.offer--featured .offer__node { background: var(--cyan); }
.offer__badge { display: inline-block; font-family: var(--mono); font-size: 0.7rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--navy); border: 1px solid var(--navy); border-radius: 99px; padding: 3px 10px; margin-bottom: 14px; }
.offer__name { font-size: clamp(1.5rem, 1.2rem + 1vw, 2rem); line-height: 1.1; letter-spacing: -0.03em; font-weight: 800; }
.offer__for { margin-top: 14px; font-size: 1.1rem; line-height: 1.45; max-width: 30rem; }
.offer__for .label { margin-bottom: 4px; }
.offer__format { margin-top: 14px; color: var(--muted); font-size: 0.95rem; max-width: 30rem; }
.offer__formats { margin-top: 18px; display: grid; gap: 12px; max-width: 32rem; }
.offer__formats div { padding-left: 14px; border-left: 2px solid var(--line); }
.offer__formats dt { font-weight: 700; }
.offer__formats dd { color: var(--muted); font-size: 0.97rem; }
.offer .btn { margin-top: 24px; }
.offer__get { padding-top: 6px; }
.ticks li { position: relative; padding: 7px 0 7px 22px; border-bottom: 1px solid var(--line); font-size: 0.97rem; }
.ticks li:last-child { border-bottom: 0; }
.ticks li::before { content: ''; position: absolute; left: 0; top: 16px; width: 8px; height: 8px; border-radius: 50%; border: 1.5px solid var(--navy); }
.offer--featured { position: relative; }
.offer--featured::before { content: ''; position: absolute; inset: 0 calc(-1 * min(var(--gutter), 32px)); background: var(--white); z-index: -1; border-radius: var(--radius); }
.offer--featured { isolation: isolate; }
@media (max-width: 960px) {
  .offer { grid-template-columns: 1fr 1fr; }
  .offer__stage { grid-column: 1 / -1; }
}
@media (max-width: 680px) {
  .offer { grid-template-columns: 1fr; gap: 20px; }
  .offer--featured::before { inset: 0 calc(-1 * var(--gutter)); border-radius: 0; }
}

/* ---------- Capabilities ---------- */

.capabilities { background: var(--white); }
.caps { display: grid; grid-template-columns: 1fr 1fr; border-top: 1.5px solid var(--ink); }
.cap { padding: clamp(32px, 4vw, 52px) clamp(0px, 3vw, 48px) clamp(32px, 4vw, 52px) 0; border-bottom: 1px solid var(--line); }
.cap:nth-child(odd) { border-right: 1px solid var(--line); }
.cap:nth-child(even) { padding-left: clamp(24px, 4vw, 52px); padding-right: 0; }
.cap__name { display: flex; align-items: baseline; gap: 12px; font-family: var(--mono); font-size: 0.8rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--navy); margin-bottom: 14px; }
.cap__n { color: var(--soft); }
.cap__title { font-size: clamp(1.4rem, 1.15rem + 0.9vw, 1.9rem); line-height: 1.12; letter-spacing: -0.03em; font-weight: 800; max-width: 18ch; }
.cap__text { margin: 14px 0 26px; color: var(--muted); max-width: 30rem; }
.dashes li { position: relative; padding: 3px 0 3px 20px; }
.dashes li::before { content: ''; position: absolute; left: 0; top: calc(0.8em + 3px); width: 10px; height: 2px; background: var(--navy); }
.cap__acc { display: flex; align-items: baseline; gap: 12px; margin-top: 26px; padding-top: 16px; border-top: 1px dashed var(--line); }
.cap__acc .label { margin: 0; }
.cap__acc a { font-weight: 700; color: var(--navy); text-decoration: none; border-bottom: 1.5px solid currentColor; }
.cap__acc strong { color: var(--navy); }

/* Illustrative previews — one per capability card. Decorative (aria-hidden); the prose
   and "typical uses" list next to them carry the real, accessible content. */
.cap__demo { margin-top: 20px; max-width: 30rem; padding: 16px 18px; background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); font-size: 0.88rem; }

.demo-knowledge__q { margin-left: auto; max-width: 88%; background: var(--navy); color: #fff; font-weight: 600; padding: 9px 13px; border-radius: 10px 10px 2px 10px; }
.demo-knowledge__a { margin-top: 10px; background: var(--white); border: 1px solid var(--line); border-radius: 2px 10px 10px 10px; padding: 11px 13px; color: var(--ink); }
.demo-knowledge__src { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }
.demo-knowledge__src span { font-family: var(--mono); font-size: 0.66rem; color: var(--muted); background: var(--paper); border: 1px solid var(--line); border-radius: 99px; padding: 3px 9px; }

.demo-data__q { display: flex; align-items: center; gap: 8px; font-weight: 600; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 8px 12px; }
.demo-data__icon { width: 13px; height: 13px; color: var(--soft); flex: 0 0 auto; }
.demo-data__chart { display: flex; align-items: flex-end; gap: 14px; height: 84px; margin: 18px 6px 8px; }
.demo-data__bar { flex: 1; display: flex; flex-direction: column; justify-content: flex-end; align-items: center; height: 100%; }
.demo-data__bar::before { content: ''; display: block; width: 100%; max-width: 32px; height: var(--v); background: var(--navy); border-radius: 2px 2px 0 0; }
.demo-data__bar--hi::before { background: var(--cyan); }
.demo-data__bar span { margin-top: 6px; font-family: var(--mono); font-size: 0.66rem; color: var(--muted); }
.demo-data__note { margin-top: 2px; font-family: var(--mono); font-size: 0.66rem; color: var(--soft); }

.demo-feed { display: flex; flex-direction: column; }
.demo-feed__item { display: flex; align-items: flex-start; gap: 10px; padding: 9px 0; border-top: 1px solid var(--line); }
.demo-feed__item:first-child { border-top: 0; padding-top: 0; }
.demo-feed__dot { flex: 0 0 8px; width: 8px; height: 8px; border-radius: 50%; margin-top: 6px; background: var(--navy); }
.demo-feed__dot--cyan { background: var(--cyan); }
.demo-feed__dot--soft { background: var(--soft); }
.demo-feed__body { flex: 1; display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.demo-feed__body strong { font-size: 0.86rem; font-weight: 700; color: var(--ink); }
.demo-feed__body span { font-size: 0.78rem; color: var(--muted); }
.demo-feed__time { flex: 0 0 auto; font-family: var(--mono); font-size: 0.66rem; color: var(--soft); white-space: nowrap; }

.demo-flow__list { display: flex; flex-direction: column; }
.demo-flow__step { display: flex; align-items: center; gap: 10px; padding: 8px 0; border-top: 1px solid var(--line); color: var(--muted); }
.demo-flow__step:first-child { border-top: 0; padding-top: 0; }
.demo-flow__mark { flex: 0 0 16px; width: 16px; height: 16px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 10px; line-height: 1; }
.is-done .demo-flow__mark { background: var(--navy); color: #fff; }
.is-active { color: var(--ink); font-weight: 700; flex-wrap: wrap; }
.is-active .demo-flow__mark { border: 1.5px solid var(--cyan); }
.is-pending .demo-flow__mark { border: 1.5px dashed var(--line); }
.demo-flow__approval { flex: 1; min-width: 10rem; }
.demo-flow__actions { display: flex; gap: 6px; }
.demo-flow__btn { font-family: var(--mono); font-size: 0.68rem; font-weight: 500; padding: 4px 10px; border-radius: 99px; border: 1px solid var(--line); color: var(--muted); background: var(--white); }
.demo-flow__btn--primary { background: var(--navy); border-color: var(--navy); color: #fff; }

@media (max-width: 800px) {
  .caps { grid-template-columns: 1fr; }
  .cap, .cap:nth-child(odd), .cap:nth-child(even) { padding-left: 0; padding-right: 0; border-right: 0; }
}
@media (max-width: 420px) {
  .demo-flow__step.is-active { align-items: flex-start; }
  .demo-flow__actions { flex: 0 0 100%; margin-top: 8px; margin-left: 26px; }
}

/* ---------- Security (dark) ---------- */

.security { background: var(--navy-deep); color: #fff; }
.security .kicker { color: var(--cyan); }
.security .lead { color: rgba(255, 255, 255, 0.78); }
.security .label { color: rgba(255, 255, 255, 0.6); }
.security__grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.25fr); gap: clamp(40px, 6vw, 96px); }
.risks li { position: relative; padding: 14px 0 14px 30px; border-top: 1px solid var(--line-dark); font-size: 1.05rem; }
.risks li:last-child { border-bottom: 1px solid var(--line-dark); }
.risks li::before { content: ''; position: absolute; left: 2px; top: 22px; width: 10px; height: 10px; border: 1.5px solid var(--cyan); transform: rotate(45deg); }
.sec-services div { padding: 18px 0; border-top: 1px solid var(--line-dark); display: grid; grid-template-columns: 11rem 1fr; gap: 20px; }
.sec-services dt { font-weight: 800; font-size: 1.1rem; }
.sec-services dd { color: rgba(255, 255, 255, 0.78); }
.security__diff { margin-top: 32px; padding: 22px 24px; border: 1.5px solid rgba(18, 174, 234, 0.55); border-radius: var(--radius); }
.security__diff-title { font-weight: 800; color: var(--cyan); margin-bottom: 6px; }
.security__diff p:last-child { color: rgba(255, 255, 255, 0.85); }
.security .btn--primary { margin-top: 28px; background: var(--cyan); color: var(--night); }
.security .btn--primary:hover { background: #4fc4f0; }
@media (max-width: 900px) {
  .security__grid { grid-template-columns: 1fr; }
  .sec-services div { grid-template-columns: 1fr; gap: 4px; }
}

/* ---------- Technology ---------- */

.technology__top { align-items: start; }
.stack { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; }
.stack__body { display: grid; grid-template-columns: 1fr 108px; gap: 10px; }
.stack__layers { display: grid; gap: 8px; }
.stack__layer { padding: 12px 16px; border: 1.5px solid var(--navy); border-radius: var(--radius); }
.stack__layer strong { display: block; font-size: 0.98rem; }
.stack__layer span { display: block; font-size: 0.86rem; color: var(--muted); }
.stack__layer--models { border-style: dashed; background: repeating-linear-gradient(-45deg, transparent 0 7px, rgba(18, 174, 234, 0.1) 7px 8px); }
.stack__layer--base { background: var(--navy); color: #fff; }
.stack__layer--base span { color: rgba(255, 255, 255, 0.78); }
.stack__trust { display: flex; flex-direction: column; justify-content: space-between; gap: 8px; padding: 14px 12px; border-radius: var(--radius); background: var(--ink); color: #fff; }
.stack__trust strong { font-family: var(--mono); font-size: 0.68rem; font-weight: 500; letter-spacing: 0.08em; text-transform: uppercase; color: var(--cyan); }
.stack__trust ul { display: flex; flex-direction: column; gap: 10px; flex: 1; justify-content: space-around; }
.stack__trust li { font-size: 0.84rem; font-weight: 700; }
.stack__trust li { display: flex; align-items: center; gap: 7px; }
.stack__trust li::before { content: ''; flex: 0 0 7px; height: 7px; border-radius: 50%; background: var(--cyan); }

.accs { margin-top: clamp(64px, 8vw, 104px); display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.6fr); align-items: start; gap: clamp(32px, 5vw, 80px); padding-top: 32px; border-top: 1.5px solid var(--ink); }
.accs__head p { color: var(--muted); margin-top: 12px; }

.agent-teaser {
  display: grid; grid-template-columns: 150px 1fr; gap: 32px; align-items: center;
  padding: 28px 32px; text-decoration: none;
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius);
  transition: border-color .2s;
}
.agent-teaser:hover { border-color: var(--navy); }
.agent-teaser img { width: 100%; height: auto; }
.agent-teaser__title { display: block; font-family: var(--brand); font-weight: 700; font-size: 1.6rem; letter-spacing: -0.02em; color: var(--navy); }
.agent-teaser__title span { display: block; font-family: var(--mono); font-weight: 500; font-size: 0.74rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--soft); margin-top: 4px; }
.agent-teaser__text { display: block; margin-top: 10px; color: var(--muted); max-width: 44rem; }
.agent-teaser .text-link { margin-top: 12px; }
@media (max-width: 900px) {
  .accs { grid-template-columns: 1fr; }
}
@media (max-width: 600px) {
  .stack { padding: 14px; }
  .stack__body { grid-template-columns: 1fr; }
  .stack__trust { flex-direction: row; flex-wrap: wrap; align-items: center; }
  .stack__trust strong { width: 100%; }
  .stack__trust ul { flex-direction: row; flex-wrap: wrap; gap: 8px 18px; }
  .agent-teaser { grid-template-columns: 1fr; gap: 16px; padding: 24px; }
  .agent-teaser img { width: 120px; }
}

/* ---------- Markets & partners ---------- */

.markets { background: var(--white); }
.sectors { display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1.5px solid var(--ink); }
.sector { padding: 32px 32px 32px 0; }
.sector + .sector { padding-left: 32px; border-left: 1px solid var(--line); }
.sector__sub { font-family: var(--mono); font-size: 0.74rem; letter-spacing: 0.04em; color: var(--soft); margin: 8px 0 18px; }
.markets__region { display: flex; align-items: center; gap: 12px; margin-top: 24px; font-weight: 600; color: var(--navy); }
.partners {
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 2fr) auto; gap: clamp(24px, 4vw, 56px); align-items: center;
  margin-top: clamp(56px, 7vw, 88px); padding: 32px 36px; background: var(--paper); border-radius: var(--radius);
}
.partners__intro p { color: var(--muted); margin-top: 6px; }
.partners__split { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; }
.partners__split dt { margin-bottom: 6px; }
@media (max-width: 1000px) {
  .partners { grid-template-columns: 1fr; }
  .partners .btn { justify-self: start; }
}
@media (max-width: 800px) {
  .sectors { grid-template-columns: 1fr; }
  .sector, .sector + .sector { padding: 28px 0; border-left: 0; }
  .sector + .sector { border-top: 1px solid var(--line); }
  .partners { padding: 28px 20px; }
  .partners__split { grid-template-columns: 1fr; }
}

/* ---------- Contact ---------- */

.contact { background: var(--navy); color: #fff; }
.contact__grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: clamp(40px, 6vw, 96px); align-items: start; }
.contact .kicker { color: #fff; }
.contact .h2 { max-width: 16ch; }
.contact .lead { color: rgba(255, 255, 255, 0.82); }
.contact .label { color: rgba(255, 255, 255, 0.62); margin-top: 40px; }
.next-steps { counter-reset: s; }
.next-steps li { counter-increment: s; position: relative; padding: 12px 0 12px 44px; border-top: 1px solid var(--line-dark); color: rgba(255, 255, 255, 0.9); }
.next-steps li::before { content: '0' counter(s); position: absolute; left: 0; top: 13px; font-family: var(--mono); font-size: 0.8rem; color: var(--cyan); }

.form { background: var(--white); color: var(--ink); padding: clamp(24px, 4vw, 44px); border-radius: var(--radius); display: grid; gap: 18px; }
.form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.field { display: grid; gap: 6px; }
.field label { font-size: 0.88rem; font-weight: 700; }
.field__opt { font-weight: 500; color: var(--soft); }
.field input, .field select, .field textarea {
  width: 100%; min-height: 48px; padding: 11px 14px;
  font: 500 1rem var(--font); color: var(--ink);
  background: var(--white); border: 1.5px solid #C4C0B5; border-radius: var(--radius);
  transition: border-color .15s, box-shadow .15s;
}
.field select { appearance: none; background-image: linear-gradient(45deg, transparent 50%, var(--ink) 50%), linear-gradient(135deg, var(--ink) 50%, transparent 50%); background-position: calc(100% - 20px) 21px, calc(100% - 15px) 21px; background-size: 5px 5px; background-repeat: no-repeat; padding-right: 40px; }
.field textarea { resize: vertical; min-height: 110px; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--navy); box-shadow: 0 0 0 3px rgba(18, 174, 234, 0.35); }
.field.is-invalid input, .field.is-invalid select { border-color: #B42318; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form__foot { display: flex; align-items: center; gap: 20px; flex-wrap: wrap; margin-top: 6px; }
.form__note { font-size: 0.86rem; color: var(--muted); }
.form__status { font-weight: 600; min-height: 1.5em; }
.form__status.is-error { color: #B42318; }
.form__status.is-ok { color: var(--navy); }
@media (max-width: 900px) { .contact__grid { grid-template-columns: 1fr; } }
@media (max-width: 560px) {
  .form__row { grid-template-columns: 1fr; }
  .form .btn--lg { width: 100%; }
}

/* ---------- Footer ---------- */

.site-footer { background: var(--night); color: rgba(255, 255, 255, 0.72); padding: 64px 0 48px; font-size: 0.92rem; }
.site-footer__inner { display: grid; grid-template-columns: 1.2fr 1fr 1.2fr; gap: 40px; }
.site-footer__brand p { margin-top: 16px; max-width: 18rem; }
.site-footer__nav ul { display: grid; grid-template-columns: 1fr 1fr; gap: 8px 24px; }
.site-footer a { text-decoration: none; }
.site-footer a:hover { color: #fff; }
.site-footer__meta { display: grid; gap: 10px; align-content: start; }
@media (max-width: 800px) { .site-footer__inner { grid-template-columns: 1fr; } }

/* ---------- Agent349 page ---------- */

.agent-hero { padding: clamp(48px, 7vw, 96px) 0 clamp(40px, 5vw, 64px); }
.crumbs { font-family: var(--mono); font-size: 0.78rem; letter-spacing: 0.06em; text-transform: uppercase; color: var(--soft); margin-bottom: 36px; }
.crumbs a { color: var(--navy); text-decoration: none; }
.agent-hero__logo { display: flex; align-items: center; gap: 20px; margin-bottom: 28px; }
.agent-hero__logo img { width: 96px; height: auto; mix-blend-mode: multiply; }
.wordmark--agent { font-size: clamp(2.2rem, 1.6rem + 2.4vw, 3.6rem); }
.agent-hero__title { font-size: clamp(1.9rem, 1.1rem + 3vw, 3.4rem); line-height: 1.05; letter-spacing: -0.035em; font-weight: 800; max-width: 22ch; text-wrap: balance; }
.agent-hero__ctas { display: flex; gap: 12px; flex-wrap: wrap; margin-top: clamp(28px, 4vw, 40px); }
.agent-flow-sec { padding-top: 0; }
.flow { display: grid; grid-template-columns: repeat(6, 1fr); gap: 0; margin-top: 8px; }
.flow__step { position: relative; display: grid; align-content: start; gap: 4px; padding: 20px 26px 20px 18px; border: 1.5px solid var(--navy); background: var(--white); margin-right: 18px; border-radius: var(--radius); }
.flow__step::after { content: '→'; position: absolute; right: -17px; top: 50%; transform: translateY(-50%); color: var(--navy); font-weight: 700; }
.flow__step:last-child { margin-right: 0; }
.flow__step:last-child::after { display: none; }
.flow__step--agent { background: var(--navy); color: #fff; }
.flow__step--agent span { color: rgba(255, 255, 255, 0.8) !important; }
.flow__n { font-family: var(--mono); font-size: 0.72rem; color: var(--soft); }
.flow__step--agent .flow__n { color: var(--cyan) !important; }
.flow__step strong { font-size: 1.05rem; }
.flow__step span:last-child { font-size: 0.88rem; color: var(--muted); line-height: 1.4; }
.flow__foot { display: flex; align-items: center; gap: 12px; margin-top: 20px; padding: 12px 16px; border-top: 1.5px solid var(--navy); border-bottom: 1.5px solid var(--navy); background: repeating-linear-gradient(-45deg, transparent 0 7px, rgba(7, 53, 115, 0.07) 7px 8px); font-family: var(--mono); font-size: 0.78rem; letter-spacing: 0.06em; text-transform: uppercase; color: var(--navy); }
.agent-groups { background: var(--white); }
.groups { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(28px, 4vw, 56px); }
.group h2 { padding-bottom: 14px; border-bottom: 1.5px solid var(--ink); margin-bottom: 4px; }
.group dl div { padding: 14px 0; border-bottom: 1px solid var(--line); }
.group dt { font-weight: 700; }
.group dd { color: var(--muted); font-size: 0.97rem; }
.agent-principle .btn { margin-top: 28px; }
@media (max-width: 1000px) {
  .flow { grid-template-columns: repeat(3, 1fr); row-gap: 18px; }
  .flow__step:nth-child(3)::after { display: none; }
  .flow__step:nth-child(3) { margin-right: 0; }
}
@media (max-width: 800px) { .groups { grid-template-columns: 1fr; } }
@media (max-width: 600px) {
  .flow { grid-template-columns: 1fr; row-gap: 18px; }
  .flow__step { margin-right: 0; }
  .flow__step::after, .flow__step:nth-child(3)::after { display: block; content: '↓'; right: auto; left: 22px; top: auto; bottom: -19px; transform: none; }
  .flow__step:last-child::after { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

@media print {
  .site-header, .form, .menu-btn { display: none; }
  .security, .contact { background: none; color: var(--ink); }
}
