/* Layout: blueprint grid. Asymmetric, left-aligned sections on a faint engineering-paper grid;
   one deep "control room" band carries the automation story. */
:root {
  --paper: #F3F4F1;
  --surface: #FFFFFF;
  --ink: #11161D;
  --muted: #586070;
  --line: #DCDFD8;
  --accent: #2340E8;
  --accent-soft: #E4E8FD;
  --accent-ink: #FFFFFF;
  --signal: #0E9F7A;
  --amber: #E39B2D;
  --deep: #0E1420;
  --deep-2: #161E2D;
  --deep-fg: #E8ECF2;
  --deep-muted: #8E98AB;
  --deep-line: #26304200;
  --deep-rule: #263042;
  --grid: rgba(17, 22, 29, .05);
  --shadow: 0 1px 2px rgba(14, 20, 32, .06), 0 12px 32px -12px rgba(14, 20, 32, .18);

  --f-display: "Bricolage Grotesque", "Segoe UI", system-ui, sans-serif;
  --f-body: "Instrument Sans", "Segoe UI", system-ui, -apple-system, sans-serif;
  --f-mono: "JetBrains Mono", ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace;

  --s-xs: .8125rem;
  --s-sm: .9375rem;
  --s-md: 1.0625rem;
  --s-lg: 1.375rem;
  --s-xl: clamp(1.75rem, 1.2rem + 2vw, 2.5rem);
  --s-2xl: clamp(2.4rem, 1.4rem + 4.2vw, 4.4rem);

  --wrap: 1180px;
  --gutter: clamp(16px, 4vw, 40px);
  --radius: 14px;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --paper: #0B0F16;
    --surface: #121925;
    --ink: #E8ECF2;
    --muted: #9AA3B4;
    --line: #232C3A;
    --accent: #7086FF;
    --accent-soft: #1A2448;
    --accent-ink: #0B0F16;
    --signal: #3DD3A6;
    --amber: #F2B455;
    --deep: #121A27;
    --deep-2: #1A2333;
    --deep-fg: #E8ECF2;
    --deep-muted: #8E98AB;
    --deep-rule: #2A3447;
    --grid: rgba(232, 236, 242, .04);
    --shadow: 0 1px 2px rgba(0, 0, 0, .3), 0 16px 40px -16px rgba(0, 0, 0, .6);
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --paper: #0B0F16;
  --surface: #121925;
  --ink: #E8ECF2;
  --muted: #9AA3B4;
  --line: #232C3A;
  --accent: #7086FF;
  --accent-soft: #1A2448;
  --accent-ink: #0B0F16;
  --signal: #3DD3A6;
  --amber: #F2B455;
  --deep: #121A27;
  --deep-2: #1A2333;
  --deep-fg: #E8ECF2;
  --deep-muted: #8E98AB;
  --deep-rule: #2A3447;
  --grid: rgba(232, 236, 242, .04);
  --shadow: 0 1px 2px rgba(0, 0, 0, .3), 0 16px 40px -16px rgba(0, 0, 0, .6);
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 88px; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--f-body);
  font-size: var(--s-md);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img, svg { max-width: 100%; }
a { color: inherit; }
h1, h2, h3, h4 { font-family: var(--f-display); line-height: 1.08; margin: 0; text-wrap: balance; letter-spacing: -.02em; }
p { margin: 0; }
ul { margin: 0; padding: 0; list-style: none; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 6px; }

.wrap { width: 100%; max-width: var(--wrap); margin-inline: auto; padding-inline: var(--gutter); }
.section { padding-block: clamp(72px, 9vw, 128px); }
.eyebrow {
  font-family: var(--f-mono);
  font-size: var(--s-xs);
  text-transform: uppercase;
  letter-spacing: .12em;
  color: var(--accent);
  display: inline-flex; align-items: center; gap: 10px;
}
.eyebrow::before { content: ""; width: 18px; height: 1px; background: currentColor; }
.section-head { display: grid; gap: 18px; max-width: 760px; margin-bottom: clamp(40px, 5vw, 64px); }
.section-head h2 { font-size: var(--s-xl); font-weight: 700; }
.section-head p { color: var(--muted); font-size: var(--s-md); max-width: 62ch; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  font: 600 var(--s-sm)/1 var(--f-body);
  padding: 15px 22px; border-radius: 999px; text-decoration: none;
  border: 1px solid transparent; cursor: pointer;
  transition: transform .2s ease, background-color .2s ease, border-color .2s ease, color .2s ease;
}
.btn svg { width: 16px; height: 16px; transition: transform .2s ease; }
.btn:hover svg { transform: translateX(3px); }
.btn-primary { background: var(--accent); color: var(--accent-ink); }
.btn-primary:hover { transform: translateY(-1px); }
.btn-ghost { border-color: var(--line); color: var(--ink); background: var(--surface); }
.btn-ghost:hover { border-color: var(--ink); }

/* Header */
.site-header {
  position: sticky; top: env(safe-area-inset-top, 0px); z-index: 50;
  background: color-mix(in srgb, var(--paper) 82%, transparent);
  backdrop-filter: saturate(1.4) blur(14px);
  -webkit-backdrop-filter: saturate(1.4) blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color .2s ease;
}
.site-header.scrolled { border-bottom-color: var(--line); }
.nav { display: flex; align-items: center; justify-content: space-between; gap: 24px; height: 72px; }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; }
.brand-mark { width: 32px; height: 32px; flex: none; }
.brand-name { font-family: var(--f-display); font-weight: 700; font-size: 1.375rem; letter-spacing: -.03em; }
.nav-links { display: flex; align-items: center; gap: 30px; }
.nav-links a:not(.btn) { text-decoration: none; font-size: var(--s-sm); color: var(--muted); font-weight: 500; transition: color .15s; }
.nav-links a:not(.btn):hover { color: var(--ink); }
.nav-links .btn { padding: 12px 18px; }
.nav-toggle {
  display: none; width: 44px; height: 44px; border-radius: 12px;
  border: 1px solid var(--line); background: var(--surface); color: var(--ink); cursor: pointer;
  align-items: center; justify-content: center;
}
.nav-toggle svg { width: 20px; height: 20px; }
@media (max-width: 880px) {
  .nav-toggle { display: inline-flex; }
  .nav-links {
    position: absolute; left: 0; right: 0; top: 72px;
    flex-direction: column; align-items: stretch; gap: 0;
    background: var(--paper); border-bottom: 1px solid var(--line);
    padding: 8px var(--gutter) 20px;
    display: none;
  }
  .nav-links.open { display: flex; }
  .nav-links a:not(.btn) { padding: 14px 0; border-bottom: 1px solid var(--line); font-size: var(--s-md); color: var(--ink); }
  .nav-links .btn { margin-top: 16px; padding: 15px 22px; }
}

/* Hero */
.hero {
  position: relative;
  padding-block: clamp(48px, 7vw, 96px) clamp(64px, 8vw, 112px);
  background-image:
    linear-gradient(var(--grid) 1px, transparent 1px),
    linear-gradient(90deg, var(--grid) 1px, transparent 1px);
  background-size: 48px 48px;
  background-position: -1px -1px;
}
.hero::after {
  content: ""; position: absolute; inset: auto 0 0 0; height: 120px;
  background: linear-gradient(to bottom, transparent, var(--paper));
  pointer-events: none;
}
.hero-grid { position: relative; z-index: 1; display: grid; grid-template-columns: minmax(0, 1.08fr) minmax(0, .92fr); gap: clamp(40px, 5vw, 72px); align-items: center; }
.hero-copy { display: grid; gap: 28px; min-width: 0; }
.hero h1 { font-size: var(--s-2xl); font-weight: 800; letter-spacing: -.035em; }
.hero h1 em { font-style: normal; color: var(--accent); }
.hero-lead { font-size: clamp(1.0625rem, 1rem + .3vw, 1.2rem); color: var(--muted); max-width: 54ch; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 12px; }
.assurances { display: flex; flex-wrap: wrap; gap: 10px 22px; padding-top: 8px; }
.assurances li { display: inline-flex; align-items: center; gap: 8px; font-size: var(--s-sm); color: var(--muted); }
.assurances svg { width: 16px; height: 16px; color: var(--signal); flex: none; }
@media (max-width: 960px) { .hero-grid { grid-template-columns: minmax(0, 1fr); } }

/* Flow card (hero visual) */
.flow {
  position: relative; min-width: 0;
  background: var(--deep); color: var(--deep-fg);
  border-radius: 20px; padding: 22px;
  box-shadow: var(--shadow);
  border: 1px solid var(--deep-rule);
}
.flow-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding-bottom: 18px; border-bottom: 1px solid var(--deep-rule); margin-bottom: 18px; }
.flow-title { font-family: var(--f-mono); font-size: var(--s-xs); color: var(--deep-muted); letter-spacing: .04em; }
.flow-title b { color: var(--deep-fg); font-weight: 600; }
.live { display: inline-flex; align-items: center; gap: 8px; font-family: var(--f-mono); font-size: .75rem; color: var(--signal); text-transform: uppercase; letter-spacing: .1em; }
.live::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--signal); box-shadow: 0 0 0 0 var(--signal); animation: ping 2s infinite; }
@keyframes ping { 0% { box-shadow: 0 0 0 0 color-mix(in srgb, var(--signal) 60%, transparent); } 80%, 100% { box-shadow: 0 0 0 8px transparent; } }
.steps { position: relative; display: grid; gap: 10px; }
.steps::before {
  content: ""; position: absolute; left: 19px; top: 20px; bottom: 20px; width: 2px;
  background: var(--deep-rule);
}
.steps::after {
  content: ""; position: absolute; left: 19px; top: 20px; width: 2px; height: 0;
  background: linear-gradient(var(--signal), var(--accent));
  animation: run 6s ease-in-out infinite;
}
@keyframes run { 0% { height: 0; opacity: 1; } 70% { height: calc(100% - 40px); opacity: 1; } 90%, 100% { height: calc(100% - 40px); opacity: 0; } }
.step {
  position: relative; display: grid; grid-template-columns: 40px minmax(0, 1fr) auto; gap: 14px; align-items: center;
  background: var(--deep-2); border: 1px solid var(--deep-rule); border-radius: 12px; padding: 12px 14px 12px 0;
}
.step-icon {
  position: relative; z-index: 1; width: 40px; height: 40px; margin-left: -1px;
  display: grid; place-items: center;
}
.step-icon span {
  width: 26px; height: 26px; border-radius: 8px; display: grid; place-items: center;
  background: var(--deep); border: 1px solid var(--deep-rule); color: var(--deep-muted);
}
.step-icon svg { width: 14px; height: 14px; }
.step.done .step-icon span { color: var(--signal); border-color: color-mix(in srgb, var(--signal) 45%, transparent); }
.step.trigger .step-icon span { color: var(--amber); border-color: color-mix(in srgb, var(--amber) 45%, transparent); }
.step-text { min-width: 0; }
.step-text strong { display: block; font-size: var(--s-sm); font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.step-text small { display: block; font-family: var(--f-mono); font-size: .72rem; color: var(--deep-muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tag { font-family: var(--f-mono); font-size: .7rem; padding: 4px 8px; border-radius: 6px; white-space: nowrap; }
.tag.ok { color: var(--signal); background: color-mix(in srgb, var(--signal) 14%, transparent); }
.tag.in { color: var(--amber); background: color-mix(in srgb, var(--amber) 14%, transparent); }
.tag.wait { color: var(--deep-muted); background: color-mix(in srgb, var(--deep-muted) 14%, transparent); }
.flow-foot { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-top: 18px; padding-top: 16px; border-top: 1px solid var(--deep-rule); font-family: var(--f-mono); font-size: .75rem; color: var(--deep-muted); }
.flow-foot b { color: var(--deep-fg); font-weight: 600; }
.step.reveal { animation: stepIn 6s ease-in-out infinite; }
.step.reveal:nth-child(2) { animation-delay: .9s; }
.step.reveal:nth-child(3) { animation-delay: 1.8s; }
.step.reveal:nth-child(4) { animation-delay: 2.7s; }
.step.reveal:nth-child(5) { animation-delay: 3.6s; }
@keyframes stepIn { 0%, 100% { border-color: var(--deep-rule); } 8%, 22% { border-color: color-mix(in srgb, var(--signal) 55%, var(--deep-rule)); } }

/* Integrations strip */
.integrations { border-block: 1px solid var(--line); padding-block: 26px; }
.integrations .wrap { display: flex; align-items: center; gap: 18px 40px; flex-wrap: wrap; }
.integrations p { font-family: var(--f-mono); font-size: var(--s-xs); color: var(--muted); text-transform: uppercase; letter-spacing: .1em; flex: none; }
.integrations ul { display: flex; flex-wrap: wrap; gap: 12px 32px; }
.integrations li { font-family: var(--f-display); font-weight: 600; font-size: 1.0625rem; color: var(--muted); letter-spacing: -.01em; }

/* Services */
.services { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.service {
  display: grid; grid-template-rows: auto auto 1fr auto; gap: 18px;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 30px 28px; min-width: 0;
  transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
}
.service:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: transparent; }
.service-icon { width: 48px; height: 48px; border-radius: 12px; display: grid; place-items: center; background: var(--accent-soft); color: var(--accent); }
.service-icon svg { width: 24px; height: 24px; }
.service h3 { font-size: var(--s-lg); font-weight: 700; }
.service > p { color: var(--muted); font-size: var(--s-sm); margin-top: -6px; }
.checks { display: grid; gap: 10px; align-content: start; }
.checks li { display: grid; grid-template-columns: 18px minmax(0, 1fr); gap: 10px; font-size: var(--s-sm); }
.checks svg { width: 16px; height: 16px; margin-top: 4px; color: var(--accent); }
.service-link { display: inline-flex; align-items: center; gap: 8px; font-weight: 600; font-size: var(--s-sm); text-decoration: none; color: var(--accent); padding-top: 8px; border-top: 1px solid var(--line); padding-top: 18px; }
.service-link svg { width: 16px; height: 16px; transition: transform .2s; }
.service-link:hover svg { transform: translateX(3px); }
.extras { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0; margin-top: 20px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); }
.extras li { padding: 20px 22px; display: grid; gap: 4px; min-width: 0; }
.extras li + li { border-left: 1px solid var(--line); }
.extras strong { font-size: var(--s-sm); font-weight: 600; }
.extras span { font-size: var(--s-xs); color: var(--muted); }
@media (max-width: 960px) {
  .services { grid-template-columns: minmax(0, 1fr); }
  .extras { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .extras li:nth-child(3) { border-left: 0; }
  .extras li:nth-child(n+3) { border-top: 1px solid var(--line); }
}
@media (max-width: 520px) {
  .extras { grid-template-columns: minmax(0, 1fr); }
  .extras li + li { border-left: 0; border-top: 1px solid var(--line); }
}

/* Automation band */
.band { background: var(--deep); color: var(--deep-fg); }
.band .eyebrow { color: var(--signal); }
.band .section-head p { color: var(--deep-muted); }
.compare { display: grid; gap: 0; border: 1px solid var(--deep-rule); border-radius: var(--radius); overflow: hidden; }
.compare-head, .compare-row { display: grid; grid-template-columns: minmax(0, .7fr) minmax(0, 1fr) minmax(0, 1fr); }
.compare-head > div { padding: 16px 24px; font-family: var(--f-mono); font-size: var(--s-xs); text-transform: uppercase; letter-spacing: .1em; color: var(--deep-muted); background: var(--deep-2); }
.compare-head > div:last-child { color: var(--signal); }
.compare-row > div { padding: 24px; border-top: 1px solid var(--deep-rule); font-size: var(--s-sm); min-width: 0; }
.compare-row > div + div { border-left: 1px solid var(--deep-rule); }
.compare-row h3 { font-size: 1.125rem; font-weight: 700; }
.compare-row .before { color: var(--deep-muted); }
.compare-row .after { display: grid; grid-template-columns: 18px minmax(0, 1fr); gap: 10px; }
.compare-row .after svg { width: 16px; height: 16px; margin-top: 4px; color: var(--signal); }
.compare-label { display: none; font-family: var(--f-mono); font-size: .72rem; text-transform: uppercase; letter-spacing: .1em; margin-bottom: 6px; }
@media (max-width: 800px) {
  .compare-head { display: none; }
  .compare-row { grid-template-columns: minmax(0, 1fr); }
  .compare-row:first-of-type > div:first-child { border-top: 0; }
  .compare-row > div + div { border-left: 0; }
  .compare-row > div:first-child { padding-bottom: 8px; }
  .compare-row > div:not(:first-child) { border-top: 0; padding-top: 8px; }
  .compare-row + .compare-row > div:first-child { border-top: 1px solid var(--deep-rule); }
  .compare-label { display: block; }
  .before .compare-label { color: var(--deep-muted); }
  .after .compare-label { color: var(--signal); grid-column: 1 / -1; }
}

/* Process */
.process { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 0; counter-reset: step; }
.process li { position: relative; padding: 28px 24px 0 0; display: grid; gap: 10px; align-content: start; min-width: 0; }
.process li::before {
  counter-increment: step; content: counter(step, decimal-leading-zero);
  font-family: var(--f-mono); font-size: var(--s-xs); color: var(--accent); font-weight: 600;
}
.process li::after { content: ""; position: absolute; top: 0; left: 0; right: 0; height: 2px; background: var(--line); }
.process li:first-child::after { background: var(--accent); }
.process h3 { font-size: 1.1875rem; font-weight: 700; }
.process p { font-size: var(--s-sm); color: var(--muted); }
@media (max-width: 960px) {
  .process { grid-template-columns: minmax(0, 1fr); gap: 0; }
  .process li { padding: 0 0 28px 32px; }
  .process li::after { top: 6px; bottom: 0; left: 7px; right: auto; width: 2px; height: auto; }
  .process li:last-child::after { display: none; }
  .process li { padding-left: 44px; }
  .process li::after { left: 13px; top: 28px; }
  .process li::before { position: absolute; left: 0; top: -2px; width: 28px; height: 28px; border-radius: 50%; background: var(--surface); border: 2px solid var(--accent); content: counter(step); display: grid; place-items: center; font-size: .72rem; }
}

/* References */
.refs { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.ref { display: grid; gap: 18px; min-width: 0; }
.ref-shot {
  aspect-ratio: 4 / 3; max-width: 100%; border-radius: var(--radius); overflow: hidden;
  border: 1px solid var(--line); background: var(--surface); display: grid; grid-template-rows: 30px 1fr;
  transition: transform .3s ease, box-shadow .3s ease;
}
.ref:hover .ref-shot { transform: translateY(-4px); box-shadow: var(--shadow); }
.ref-bar { display: flex; align-items: center; gap: 6px; padding: 0 12px; border-bottom: 1px solid var(--line); }
.ref-bar i { width: 8px; height: 8px; border-radius: 50%; background: var(--line); }
.ref-bar span { margin-left: 10px; flex: 1; height: 12px; border-radius: 6px; background: var(--paper); }
.ref-body { padding: 16px; display: grid; gap: 10px; align-content: start; background: var(--hue-bg); }
.ref-body .blk { border-radius: 6px; background: var(--hue); }
.ref-body .h { height: 14px; width: 60%; }
.ref-body .t { height: 8px; width: 85%; opacity: .45; }
.ref-body .t2 { height: 8px; width: 70%; opacity: .45; }
.ref-body .row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-top: 8px; }
.ref-body .row b { height: 54px; border-radius: 8px; background: var(--hue); opacity: .22; }
.ref-body .tbl { display: grid; gap: 6px; margin-top: 6px; }
.ref-body .tbl b { height: 12px; border-radius: 4px; background: var(--hue); opacity: .18; }
.ref-body .tbl b:first-child { opacity: .4; }
.ref.r1 { --hue: var(--accent); --hue-bg: color-mix(in srgb, var(--accent) 6%, var(--surface)); }
.ref.r2 { --hue: var(--signal); --hue-bg: color-mix(in srgb, var(--signal) 6%, var(--surface)); }
.ref.r3 { --hue: var(--amber); --hue-bg: color-mix(in srgb, var(--amber) 7%, var(--surface)); }
.ref-meta { display: grid; gap: 6px; }
.ref-meta small { font-family: var(--f-mono); font-size: .75rem; color: var(--muted); text-transform: uppercase; letter-spacing: .08em; }
.ref-meta h3 { font-size: 1.1875rem; font-weight: 700; }
.ref-meta p { font-size: var(--s-sm); color: var(--muted); }
@media (max-width: 960px) { .refs { grid-template-columns: minmax(0, 1fr); max-width: 520px; } }

/* About */
.about { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); gap: clamp(40px, 6vw, 88px); align-items: start; }
.about-copy { display: grid; gap: 22px; }
.about-copy h2 { font-size: var(--s-xl); font-weight: 700; }
.about-copy > p { color: var(--muted); max-width: 60ch; }
.values { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; margin-top: 16px; padding-top: 28px; border-top: 1px solid var(--line); }
.values div { display: grid; gap: 6px; align-content: start; min-width: 0; }
.values h3 { font-size: 1.0625rem; font-weight: 700; }
.values p { font-size: var(--s-sm); color: var(--muted); }
.promise { background: var(--surface); border: 1px solid var(--line); border-radius: 20px; padding: 32px; display: grid; gap: 20px; }
.promise h3 { font-size: var(--s-lg); font-weight: 700; }
.promise .checks li { font-size: var(--s-md); }
.promise .checks svg { color: var(--signal); }
@media (max-width: 900px) {
  .about { grid-template-columns: minmax(0, 1fr); }
  .values { grid-template-columns: minmax(0, 1fr); }
}

/* FAQ */
.faq-grid { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: clamp(32px, 6vw, 88px); align-items: start; }
.faq-grid .section-head { margin-bottom: 0; }
.faq { border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary {
  list-style: none; cursor: pointer; padding: 22px 0; display: flex; justify-content: space-between; align-items: center; gap: 20px;
  font-family: var(--f-display); font-weight: 600; font-size: 1.125rem; letter-spacing: -.01em;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: ""; flex: none; width: 12px; height: 12px;
  border-right: 2px solid var(--muted); border-bottom: 2px solid var(--muted);
  transform: rotate(45deg) translate(-3px, -3px); transition: transform .2s ease;
}
.faq details[open] summary::after { transform: rotate(-135deg) translate(-3px, -3px); }
.faq details p { padding: 0 0 22px; color: var(--muted); max-width: 62ch; }
@media (max-width: 900px) { .faq-grid { grid-template-columns: minmax(0, 1fr); } }

/* Contact */
.contact-card {
  display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr);
  background: var(--surface); border: 1px solid var(--line); border-radius: 24px; overflow: hidden;
}
.contact-info { padding: clamp(28px, 4vw, 52px); display: grid; gap: 28px; align-content: start; background: var(--accent); color: var(--accent-ink); }
.contact-info .eyebrow { color: inherit; opacity: .8; }
.contact-info h2 { font-size: var(--s-xl); font-weight: 700; }
.contact-info > p { opacity: .85; }
.contact-list { display: grid; gap: 18px; }
.contact-list li { display: grid; gap: 2px; }
.contact-list small { font-family: var(--f-mono); font-size: .75rem; text-transform: uppercase; letter-spacing: .1em; opacity: .7; }
.contact-list span { font-weight: 600; font-size: var(--s-md); overflow-wrap: anywhere; }
.contact-list a { color: inherit; text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; }
.contact-list a:hover { text-decoration-thickness: 2px; }
.form { padding: clamp(28px, 4vw, 52px); display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; align-content: start; }
.field { display: grid; gap: 8px; min-width: 0; }
.field.full { grid-column: 1 / -1; }
.field label { font-size: var(--s-xs); font-weight: 600; color: var(--muted); }
.field input, .field select, .field textarea {
  width: 100%; font: inherit; font-size: var(--s-sm); color: var(--ink);
  background: var(--paper); border: 1px solid var(--line); border-radius: 10px; padding: 13px 14px;
  transition: border-color .15s, box-shadow .15s;
}
.field textarea { min-height: 128px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
.form-foot { grid-column: 1 / -1; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; }
.form-foot small { color: var(--muted); font-size: var(--s-xs); max-width: 40ch; }
.form-status { grid-column: 1 / -1; font-size: var(--s-sm); padding: 14px 16px; border-radius: 10px; background: color-mix(in srgb, var(--signal) 12%, transparent); color: var(--ink); border: 1px solid color-mix(in srgb, var(--signal) 40%, transparent); }
.form-status.error { background: color-mix(in srgb, #D64545 10%, transparent); border-color: color-mix(in srgb, #D64545 40%, transparent); }
@media (max-width: 900px) { .contact-card { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 560px) { .form { grid-template-columns: minmax(0, 1fr); } }

/* Footer */
.site-footer { border-top: 1px solid var(--line); padding-block: 56px 32px; }
.footer-grid { display: grid; grid-template-columns: minmax(0, 1.4fr) repeat(3, minmax(0, 1fr)); gap: 32px; }
.footer-grid > div { display: grid; gap: 14px; align-content: start; min-width: 0; }
.footer-grid p { color: var(--muted); font-size: var(--s-sm); max-width: 36ch; }
.footer-grid h4 { font-family: var(--f-mono); font-size: var(--s-xs); font-weight: 500; text-transform: uppercase; letter-spacing: .1em; color: var(--muted); }
.footer-grid ul { display: grid; gap: 10px; }
.footer-grid a { text-decoration: none; font-size: var(--s-sm); }
.footer-grid a:hover { color: var(--accent); }
.footer-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; margin-top: 48px; padding-top: 24px; border-top: 1px solid var(--line); font-size: var(--s-xs); color: var(--muted); }
.footer-bottom a { text-decoration: none; }
@media (max-width: 800px) { .footer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } .footer-grid > div:first-child { grid-column: 1 / -1; } }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .steps::after { height: calc(100% - 40px); }
}

/* ---------- Multi-page additions ---------- */
.nav-links a[aria-current="page"]:not(.btn) { color: var(--ink); }
.nav-links a[aria-current="page"]:not(.btn)::after { content: ""; display: block; height: 2px; margin-top: 4px; border-radius: 2px; background: var(--accent); }
@media (max-width: 880px) { .nav-links a[aria-current="page"]:not(.btn)::after { display: none; } .nav-links a[aria-current="page"]:not(.btn) { color: var(--accent); } }

.page-hero {
  position: relative;
  padding-block: clamp(48px, 7vw, 96px) clamp(40px, 5vw, 72px);
  border-bottom: 1px solid var(--line);
  background-image:
    linear-gradient(var(--grid) 1px, transparent 1px),
    linear-gradient(90deg, var(--grid) 1px, transparent 1px);
  background-size: 48px 48px;
  background-position: -1px -1px;
}
.page-hero .wrap { display: grid; gap: 20px; }
.crumbs { display: flex; flex-wrap: wrap; gap: 8px; font-family: var(--f-mono); font-size: var(--s-xs); color: var(--muted); }
.crumbs a { text-decoration: none; }
.crumbs a:hover { color: var(--accent); }
.crumbs span[aria-hidden] { opacity: .5; }
.page-hero h1 { font-size: clamp(2.2rem, 1.4rem + 3.4vw, 3.8rem); font-weight: 800; letter-spacing: -.035em; max-width: 18ch; }
.page-hero p { font-size: clamp(1.0625rem, 1rem + .3vw, 1.2rem); color: var(--muted); max-width: 60ch; }
.jump { display: flex; flex-wrap: wrap; gap: 10px; padding-top: 8px; }
.jump a { text-decoration: none; font-size: var(--s-sm); font-weight: 500; padding: 9px 16px; border-radius: 999px; border: 1px solid var(--line); background: var(--surface); transition: border-color .15s, color .15s; }
.jump a:hover { border-color: var(--accent); color: var(--accent); }

.section-foot { margin-top: 36px; }
.text-link { display: inline-flex; align-items: center; gap: 8px; font-weight: 600; font-size: var(--s-sm); color: var(--accent); text-decoration: none; }
.text-link svg { width: 16px; height: 16px; transition: transform .2s; }
.text-link:hover svg { transform: translateX(3px); }

/* Service detail */
.svc { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(36px, 6vw, 80px); align-items: center; }
.svc + .svc { margin-top: clamp(80px, 10vw, 140px); }
.svc.flip .svc-visual { order: -1; }
.svc-copy { display: grid; gap: 20px; min-width: 0; }
.svc-copy h2 { font-size: var(--s-xl); font-weight: 700; }
.svc-copy > p { color: var(--muted); max-width: 58ch; }
.for-whom { font-size: var(--s-sm); padding: 14px 16px; border-radius: 12px; background: var(--accent-soft); color: var(--ink); }
.for-whom b { color: var(--accent); font-weight: 600; }
.feats { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px 28px; padding-top: 8px; }
.feats li { display: grid; gap: 4px; padding-left: 16px; border-left: 2px solid var(--line); min-width: 0; }
.feats strong { font-size: var(--s-sm); font-weight: 600; }
.feats span { font-size: var(--s-xs); color: var(--muted); line-height: 1.5; }
.svc-visual { min-width: 0; }
.caption { display: block; margin-top: 12px; font-family: var(--f-mono); font-size: .72rem; color: var(--muted); text-align: right; }
@media (max-width: 960px) {
  .svc { grid-template-columns: minmax(0, 1fr); }
  .svc.flip .svc-visual { order: 0; }
}
@media (max-width: 520px) { .feats { grid-template-columns: minmax(0, 1fr); } }

/* Browser mock (web service) */
.browser { background: var(--surface); border: 1px solid var(--line); border-radius: 16px; overflow: hidden; box-shadow: var(--shadow); }
.browser-bar { display: flex; align-items: center; gap: 6px; padding: 12px 14px; border-bottom: 1px solid var(--line); }
.browser-bar i { width: 9px; height: 9px; border-radius: 50%; background: var(--line); }
.browser-bar span { margin-left: 10px; flex: 1; font-family: var(--f-mono); font-size: .72rem; color: var(--muted); background: var(--paper); border-radius: 6px; padding: 5px 10px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.browser-body { padding: 22px; display: grid; gap: 16px; }
.mini-nav { display: flex; justify-content: space-between; align-items: center; }
.mini-nav b { width: 70px; height: 12px; border-radius: 4px; background: var(--ink); opacity: .85; }
.mini-nav span { display: flex; gap: 10px; }
.mini-nav span i { width: 34px; height: 7px; border-radius: 4px; background: var(--line); }
.mini-hero { display: grid; grid-template-columns: 1.2fr 1fr; gap: 16px; align-items: center; padding: 18px; border-radius: 12px; background: var(--accent-soft); }
.mini-hero div { display: grid; gap: 8px; }
.mini-hero div i { height: 9px; border-radius: 4px; background: var(--accent); opacity: .35; }
.mini-hero div i:first-child { height: 16px; opacity: .9; width: 90%; }
.mini-hero div i:nth-child(2) { width: 75%; }
.mini-hero div em { width: 72px; height: 22px; border-radius: 999px; background: var(--accent); margin-top: 6px; }
.mini-hero figure { margin: 0; aspect-ratio: 4/3; border-radius: 10px; background: linear-gradient(135deg, color-mix(in srgb, var(--accent) 50%, transparent), color-mix(in srgb, var(--signal) 40%, transparent)); }
.mini-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.mini-cards i { height: 56px; border-radius: 10px; border: 1px solid var(--line); background: var(--paper); }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chips span { font-family: var(--f-mono); font-size: .72rem; padding: 5px 10px; border-radius: 999px; color: var(--signal); background: color-mix(in srgb, var(--signal) 12%, transparent); }

/* Portal mock (B2B) */
.portal { background: var(--surface); border: 1px solid var(--line); border-radius: 16px; overflow: hidden; box-shadow: var(--shadow); }
.portal-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; padding: 16px 18px; border-bottom: 1px solid var(--line); }
.portal-head strong { font-size: var(--s-sm); }
.portal-head small { display: block; font-size: .75rem; color: var(--muted); }
.balance { text-align: right; font-family: var(--f-mono); font-size: .75rem; color: var(--muted); }
.balance b { display: block; font-size: 1rem; color: var(--ink); font-variant-numeric: tabular-nums; }
.portal-table { overflow-x: auto; }
.portal table { width: 100%; border-collapse: collapse; font-size: .8125rem; min-width: 420px; }
.portal th { text-align: left; font-family: var(--f-mono); font-weight: 500; font-size: .7rem; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); padding: 10px 18px; background: var(--paper); }
.portal td { padding: 12px 18px; border-top: 1px solid var(--line); font-variant-numeric: tabular-nums; white-space: nowrap; }
.portal td:first-child { white-space: normal; }
.portal th:not(:first-child), .portal td:not(:first-child) { text-align: right; }
.portal s { color: var(--muted); }
.portal .disc { color: var(--signal); font-weight: 600; }
.qty { display: inline-block; min-width: 34px; padding: 3px 8px; border: 1px solid var(--line); border-radius: 6px; text-align: center; }
.portal-foot { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 14px 18px; border-top: 1px solid var(--line); background: var(--paper); font-size: var(--s-sm); }
.portal-foot b { font-variant-numeric: tabular-nums; }
.portal-foot em { font-style: normal; font-size: .8125rem; font-weight: 600; padding: 9px 14px; border-radius: 999px; background: var(--accent); color: var(--accent-ink); }

/* Extras cards */
.extra-cards { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; }
.extra-cards article { display: grid; gap: 10px; align-content: start; padding: 26px 24px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); min-width: 0; }
.extra-cards h3 { font-size: 1.125rem; font-weight: 700; }
.extra-cards p { font-size: var(--s-sm); color: var(--muted); }
@media (max-width: 960px) { .extra-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 520px) { .extra-cards { grid-template-columns: minmax(0, 1fr); } }

/* Reference filter */
.filters { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 36px; }
.filters button {
  font: 500 var(--s-sm)/1 var(--f-body); color: var(--ink); cursor: pointer;
  padding: 11px 18px; border-radius: 999px; border: 1px solid var(--line); background: var(--surface);
  transition: background-color .15s, color .15s, border-color .15s;
}
.filters button:hover { border-color: var(--ink); }
.filters button[aria-pressed="true"] { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.refs.all { row-gap: 48px; }
.ref[hidden] { display: none; }

/* CTA band */
.cta { background: var(--deep); color: var(--deep-fg); border-radius: 24px; padding: clamp(32px, 5vw, 64px); display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 28px; align-items: center; position: relative; overflow: hidden; }
.cta::before { content: ""; position: absolute; inset: 0; background-image: linear-gradient(rgba(255,255,255,.04) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.04) 1px, transparent 1px); background-size: 40px 40px; pointer-events: none; }
.cta > * { position: relative; }
.cta h2 { font-size: var(--s-xl); font-weight: 700; }
.cta p { color: var(--deep-muted); margin-top: 12px; max-width: 52ch; }
.cta .btn-ghost { background: transparent; color: var(--deep-fg); border-color: var(--deep-rule); }
.cta .btn-ghost:hover { border-color: var(--deep-fg); }
.cta-actions { display: flex; flex-wrap: wrap; gap: 12px; }
@media (max-width: 800px) { .cta { grid-template-columns: minmax(0, 1fr); } }

/* Contact page extras */
.next-steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; margin-top: 20px; counter-reset: ns; }
.next-steps li { counter-increment: ns; display: grid; gap: 6px; padding: 22px 24px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); min-width: 0; }
.next-steps li::before { content: counter(ns, decimal-leading-zero); font-family: var(--f-mono); font-size: var(--s-xs); color: var(--accent); font-weight: 600; }
.next-steps strong { font-size: 1.0625rem; font-family: var(--f-display); }
.next-steps span { font-size: var(--s-sm); color: var(--muted); }
@media (max-width: 800px) { .next-steps { grid-template-columns: minmax(0, 1fr); } }

/* Demo links on reference cards */
.ref-link { display: block; text-decoration: none; border-radius: var(--radius); }
.ref-shot { position: relative; }
.demo-badge { position: absolute; top: 40px; right: 12px; font-family: var(--f-mono); font-size: .7rem; font-weight: 600; text-transform: uppercase; letter-spacing: .08em; padding: 5px 9px; border-radius: 6px; background: var(--ink); color: var(--paper); }
.ref-open { position: absolute; inset: auto 12px 12px auto; font-size: var(--s-xs); font-weight: 600; padding: 8px 12px; border-radius: 999px; background: var(--accent); color: var(--accent-ink); opacity: 0; transform: translateY(6px); transition: opacity .2s, transform .2s; }
.ref-link:hover .ref-open, .ref-link:focus-visible .ref-open { opacity: 1; transform: none; }
@media (hover: none) { .ref-open { opacity: 1; transform: none; } }
.ref-meta .text-link { margin-top: 4px; }

/* Integrations: marquee strip on home, grouped grid on services */
.integrations { padding-block: 28px 32px; display: grid; gap: 16px; overflow: hidden; }
.integrations .integ-head { display: flex; align-items: baseline; gap: 10px 20px; flex-wrap: wrap; }
.integrations .integ-head p { font-family: var(--f-mono); font-size: var(--s-xs); color: var(--muted); text-transform: uppercase; letter-spacing: .1em; }
.integ-count { font-size: var(--s-sm); color: var(--muted); }
.integ-count b { font-family: var(--f-display); font-size: 1.25rem; color: var(--ink); }
.integ-head .text-link { margin-left: auto; }
.marquee { display: flex; gap: 12px; width: 100%; overflow: hidden; -webkit-mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent); mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent); }
.marquee ul { display: flex; gap: 12px; flex: none; animation: marquee 60s linear infinite; }
.marquee.rev ul { animation-direction: reverse; animation-duration: 70s; }
.marquee:hover ul { animation-play-state: paused; }
@keyframes marquee { to { transform: translateX(calc(-100% - 12px)); } }
.ig { display: inline-flex; align-items: center; gap: 10px; padding: 8px 16px 8px 8px; border: 1px solid var(--line); border-radius: 999px; background: var(--surface); font-weight: 600; font-size: var(--s-sm); white-space: nowrap; }
.ig.text { padding-left: 16px; }
.ig.text::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--accent); opacity: .5; }
.ig-ic { width: 32px; height: 32px; border-radius: 50%; background: #FFFFFF; border: 1px solid #E6E8EC; display: grid; place-items: center; flex: none; }
.ig-ic svg { width: 18px; height: 18px; }
.ig-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 340px), 1fr)); gap: 20px; }
.ig-group { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; display: grid; gap: 16px; align-content: start; min-width: 0; }
.ig-group h3 { font-size: 1.0625rem; font-weight: 700; display: flex; justify-content: space-between; align-items: baseline; gap: 12px; }
.ig-group h3 small { font-family: var(--f-mono); font-size: var(--s-xs); color: var(--muted); font-weight: 500; }
.ig-group ul { display: flex; flex-wrap: wrap; gap: 8px; }
.ig-group .ig { background: var(--paper); }
@media (prefers-reduced-motion: reduce) {
  .marquee { -webkit-mask-image: none; mask-image: none; }
  .marquee ul { flex-wrap: wrap; flex: 1; }
  .marquee ul[aria-hidden] { display: none; }
}

/* Reference cards: real demo screenshots */
.ref-img { display: block; width: 100%; height: 100%; min-height: 0; object-fit: cover; object-position: top center; background: var(--hue-bg); transition: transform .5s ease; }
.ref-link:hover .ref-img { transform: scale(1.03); }
@media (prefers-reduced-motion: reduce) { .ref-link:hover .ref-img { transform: none; } }

/* Intro video */
.video-sec { padding-bottom: 0; }
.video-frame { position: relative; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); background: #0B0F17; box-shadow: var(--shadow); aspect-ratio: 16 / 9; }
.video-frame video { display: block; width: 100%; height: 100%; object-fit: cover; }
.video-play { position: absolute; left: 50%; bottom: 12%; transform: translateX(-50%); display: inline-flex; align-items: center; gap: 12px; padding: 10px 22px 10px 10px; border-radius: 999px; border: 0; background: #fff; color: var(--ink, #11161D); font: inherit; font-weight: 600; cursor: pointer; box-shadow: 0 12px 30px rgba(0,0,0,.25); transition: transform .2s ease; white-space: nowrap; }
.video-play:hover { transform: translateX(-50%) scale(1.04); }
.video-play-ic { width: 46px; height: 46px; border-radius: 50%; display: grid; place-items: center; background: var(--accent); color: #fff; }
.video-frame.playing .video-play { display: none; }
@media (max-width: 600px) { .video-play { bottom: 10px; padding: 6px 14px 6px 6px; gap: 8px; font-size: .85rem; } .video-play-ic { width: 32px; height: 32px; } .video-play-ic svg { width: 18px; height: 18px; } }
