/* ==========================================================================
   Etusoft 2026 design system
   Loaded on every page. On the two homepages it is the only stylesheet;
   on inner pages it sits on top of the legacy bundle (bootstrap + style.css)
   and restyles the chrome (header, page hero, CTA, footer) and typography.
   ========================================================================== */

:root {
  --ink: #0a0d14;
  --ink-2: #121722;
  --ink-3: #1b2230;
  --line-dark: rgba(255, 255, 255, .09);
  --paper: #ffffff;
  --paper-2: #f5f4f0;
  --paper-3: #ecebe5;
  --line: #e3e1da;
  --text: #1a1d24;
  --muted: #5d6270;
  --muted-dark: #a3a9b6;
  --red: #e2231a;
  --red-2: #ff4b3e;
  --red-soft: rgba(226, 35, 26, .1);
  --amber: #ffb347;
  --violet: #7b61ff;
  --green: #19b37d;
  --radius: 18px;
  --radius-sm: 10px;
  --shadow: 0 1px 2px rgba(10, 13, 20, .04), 0 12px 32px -12px rgba(10, 13, 20, .18);
  --shadow-lg: 0 30px 80px -30px rgba(10, 13, 20, .45);
  --font: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-display: "Inter Tight", "Inter", system-ui, sans-serif;
  --wrap: 1240px;
  --header-h: 72px;
  --ease: cubic-bezier(.2, .8, .2, 1);
  --bounce: cubic-bezier(.34, 1.56, .64, 1);
}

/* ---------- base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { overflow-x: clip; scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 16px); -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.65;
  color: var(--text);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
img { max-width: 100%; height: auto; }
a { color: var(--red); text-decoration: none; transition: color .2s; }
a:hover { color: var(--ink); }
h1, h2, h3, h4, h5 { font-family: var(--font-display); color: var(--ink); letter-spacing: -.02em; line-height: 1.15; font-weight: 650; margin: 0 0 .6em; }
p { margin: 0 0 1.1em; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip-link { position: absolute; left: 12px; top: -60px; z-index: 1000; background: var(--red); color: #fff; padding: 10px 16px; border-radius: 8px; }
.skip-link:focus { top: 12px; color: #fff; }
:focus-visible { outline: 2px solid var(--red); outline-offset: 3px; border-radius: 4px; }
svg.i { width: 1em; height: 1em; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; flex: none; }

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 24px; }
@media (max-width: 640px) { .wrap { padding: 0 16px; } body { font-size: 16px; } }

/* ---------- buttons ---------- */
.btn-x {
  display: inline-flex; align-items: center; gap: .55em;
  font: 600 15px/1 var(--font); letter-spacing: -.005em;
  padding: 15px 22px; border-radius: 999px; border: 1px solid transparent;
  cursor: pointer; white-space: nowrap;
  transition: transform .25s var(--ease), background .25s, color .25s, box-shadow .25s, border-color .25s;
}
.btn-x .i { transition: transform .25s var(--ease); }
.btn-x:hover .i { transform: translateX(3px); }
.btn-x--primary { background: var(--red); color: #fff; box-shadow: 0 10px 30px -10px rgba(226, 35, 26, .7); }
.btn-x--primary:hover { background: var(--red-2); color: #fff; transform: translateY(-1px); }
.btn-x--ghost { color: #fff; border-color: rgba(255, 255, 255, .25); background: rgba(255, 255, 255, .04); }
.btn-x--ghost:hover { color: #fff; border-color: rgba(255, 255, 255, .6); background: rgba(255, 255, 255, .08); }
.btn-x--dark { background: var(--ink); color: #fff; }
.btn-x--dark:hover { background: var(--ink-3); color: #fff; }
.btn-x--line { color: var(--ink); border-color: var(--line); background: #fff; }
.btn-x--line:hover { border-color: var(--ink); color: var(--ink); }
.btn-x--sm { padding: 11px 18px; font-size: 14px; }
.link-arrow { display: inline-flex; align-items: center; gap: .4em; font-weight: 600; color: var(--ink); }
.link-arrow .i { color: var(--red); transition: transform .25s var(--ease); }
.link-arrow:hover { color: var(--red); }
.link-arrow:hover .i { transform: translateX(4px); }

/* ---------- announcement bar ---------- */
.announce {
  background: linear-gradient(90deg, #1b0f12, #2a0d0d 40%, #1b0f12);
  color: #f0d9d6; font-size: 13.5px; text-align: center; padding: 9px 16px; position: relative; z-index: 60;
}
.announce a { color: #fff; font-weight: 600; display: inline-flex; align-items: center; gap: 6px; }
.announce a:hover { color: var(--amber); }
.announce .pill { display: inline-block; background: var(--red); color: #fff; font-size: 11px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; padding: 3px 8px; border-radius: 999px; margin-right: 8px; vertical-align: 1px; }

/* ---------- header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(10, 13, 20, .78);
  -webkit-backdrop-filter: saturate(160%) blur(16px); backdrop-filter: saturate(160%) blur(16px);
  border-bottom: 1px solid var(--line-dark);
  transition: background .3s, box-shadow .3s;
}
.site-header.is-scrolled { background: rgba(10, 13, 20, .94); box-shadow: 0 10px 30px -15px rgba(0, 0, 0, .6); }
.site-header .wrap { display: flex; align-items: center; height: var(--header-h); gap: 28px; }
.brand { display: flex; align-items: center; flex: none; }
.brand img { height: 30px; width: auto; display: block; }
.nav { display: flex; align-items: center; gap: 2px; margin: 0; padding: 0; list-style: none; flex: 1; }
.nav > li { position: static; }
.nav-link-x {
  display: inline-flex; align-items: center; gap: 6px; height: var(--header-h);
  padding: 0 14px; color: #d9dce3; font: 500 15px/1 var(--font); background: none; border: 0; cursor: pointer; position: relative;
}
.nav-link-x::after { content: ""; position: absolute; left: 14px; right: 14px; bottom: 18px; height: 2px; background: var(--red); transform: scaleX(0); transform-origin: left; transition: transform .3s var(--ease); }
.nav-link-x:hover, .nav > li.is-active > .nav-link-x, .nav > li.is-open > .nav-link-x { color: #fff; }
.nav > li.is-active > .nav-link-x::after, .nav-link-x:hover::after { transform: scaleX(1); }
.nav-link-x .i { font-size: 13px; opacity: .7; transition: transform .25s; }
.nav > li.is-open > .nav-link-x .i { transform: rotate(180deg); }

.mega {
  position: absolute; left: 0; right: 0; top: 100%;
  background: #fff; color: var(--text);
  border-bottom: 1px solid var(--line);
  box-shadow: 0 40px 60px -30px rgba(10, 13, 20, .35);
  opacity: 0; visibility: hidden; transform: translateY(-8px);
  transition: opacity .22s, transform .3s var(--ease), visibility 0s .3s;
}
.nav > li.is-open > .mega { opacity: 1; visibility: visible; transform: none; transition: opacity .22s, transform .3s var(--ease); }
.mega .wrap { height: auto; display: grid; grid-template-columns: 240px 1fr 320px; gap: 40px; padding-top: 36px; padding-bottom: 40px; align-items: start; }
.mega-intro .eyebrow { margin-bottom: 10px; }
.mega-intro p { color: var(--muted); font-size: 15px; margin: 0 0 16px; }
.mega-intro h3 { font-size: 22px; margin-bottom: 8px; }
.mega-links { display: grid; grid-template-columns: 1fr 1fr; gap: 6px 24px; margin: 0; padding: 0; list-style: none; }
.mega-links a { display: flex; gap: 14px; padding: 14px; border-radius: 12px; color: var(--ink); transition: background .2s; }
.mega-links a:hover { background: var(--paper-2); color: var(--ink); }
.mega-links .ico { width: 40px; height: 40px; border-radius: 10px; background: var(--red-soft); color: var(--red); display: grid; place-items: center; flex: none; font-size: 19px; }
.mega-links strong { display: block; font-weight: 600; font-size: 15.5px; line-height: 1.3; }
.mega-links span { display: block; color: var(--muted); font-size: 13.5px; line-height: 1.45; margin-top: 3px; }
.mega-feature { background: var(--ink); color: #c9ced8; border-radius: var(--radius); padding: 24px; position: relative; overflow: hidden; }
.mega-feature::before { content: ""; position: absolute; width: 260px; height: 260px; right: -90px; top: -110px; background: radial-gradient(circle, rgba(226, 35, 26, .55), transparent 65%); }
.mega-feature > * { position: relative; }
.mega-feature h4 { color: #fff; font-size: 19px; margin-bottom: 8px; }
.mega-feature p { font-size: 14px; margin-bottom: 18px; }

.header-actions { display: flex; align-items: center; gap: 14px; margin-left: auto; }
.lang-switch { display: inline-flex; align-items: center; gap: 7px; color: #c9ced8; font-size: 13.5px; font-weight: 600; padding: 7px 10px; border-radius: 8px; border: 1px solid var(--line-dark); }
.lang-switch:hover { color: #fff; border-color: rgba(255, 255, 255, .3); }
.lang-switch svg { border-radius: 2px; }
.header-phone { color: #c9ced8; font-size: 14px; font-weight: 500; display: inline-flex; align-items: center; gap: 7px; }
.header-phone:hover { color: #fff; }
.menu-toggle { display: none; background: none; border: 1px solid var(--line-dark); color: #fff; width: 44px; height: 44px; border-radius: 10px; font-size: 22px; cursor: pointer; align-items: center; justify-content: center; }

@media (max-width: 1180px) { .header-phone { display: none; } .mega .wrap { grid-template-columns: 1fr 300px; } .mega-intro { display: none; } }
@media (max-width: 1023px) {
  .menu-toggle { display: inline-flex; }
  .header-actions .btn-x { display: none; }
  .nav {
    position: fixed; inset: calc(var(--header-h) + var(--announce-h, 0px)) 0 0 0; z-index: 49;
    flex-direction: column; align-items: stretch; gap: 0;
    background: var(--ink); padding: 8px 16px 120px; overflow-y: auto;
    transform: translateX(100%); transition: transform .35s var(--ease); visibility: hidden;
  }
  body.nav-open { overflow: hidden; }
  /* backdrop-filter makes the header the containing block for the fixed drawer, so drop it while open */
  body.nav-open .site-header { -webkit-backdrop-filter: none; backdrop-filter: none; background: var(--ink); }
  body.nav-open .nav { transform: none; visibility: visible; }
  .nav-link-x { width: 100%; height: 60px; justify-content: space-between; font-size: 18px; padding: 0 8px; border-bottom: 1px solid var(--line-dark); }
  .nav-link-x::after { display: none; }
  .mega { position: static; opacity: 1; visibility: visible; transform: none; box-shadow: none; background: transparent; border: 0; display: none; }
  .nav > li.is-open > .mega { display: block; }
  .mega .wrap { display: block; padding: 8px 0 16px; }
  .mega-links { grid-template-columns: 1fr; }
  .mega-links a { color: #fff; padding: 12px 8px; }
  .mega-links a:hover { background: rgba(255, 255, 255, .05); color: #fff; }
  .mega-links span { color: var(--muted-dark); }
  .mega-feature { display: none; }
  .nav .nav-mobile-cta { display: block; padding-top: 24px; }
  .nav .nav-mobile-cta .btn-x { width: 100%; justify-content: center; }
}
@media (min-width: 1024px) { .nav .nav-mobile-cta { display: none; } }

/* ---------- section scaffolding ---------- */
.section { padding: 120px 0; position: relative; }
.section--tight { padding: 80px 0; }
.section--paper { background: var(--paper-2); }
.section--dark { background: var(--ink); color: #c4c9d4; }
.section--dark h2, .section--dark h3, .section--dark h4 { color: #fff; }
@media (max-width: 760px) { .section { padding: 80px 0; } .section--tight { padding: 56px 0; } }

.eyebrow { display: inline-flex; align-items: center; gap: 8px; font: 600 12.5px/1 var(--font); letter-spacing: .12em; text-transform: uppercase; color: var(--red); margin-bottom: 18px; }
.eyebrow::before { content: ""; width: 18px; height: 2px; background: currentColor; border-radius: 2px; }
.section--dark .eyebrow, .hero .eyebrow { color: var(--red-2); }
.section-head { max-width: 760px; margin-bottom: 56px; }
.section-head--center { text-align: center; margin-left: auto; margin-right: auto; }
.section-head--center .eyebrow::before { display: none; }
.section-head h2 { font-size: clamp(32px, 4.2vw, 52px); margin-bottom: 18px; }
.section-head p { font-size: 19px; color: var(--muted); margin: 0; }
.section--dark .section-head p { color: var(--muted-dark); }
.section-head-row { display: flex; justify-content: space-between; align-items: end; gap: 32px; flex-wrap: wrap; margin-bottom: 56px; }
.section-head-row .section-head { margin-bottom: 0; }

/* ---------- hero ---------- */
.hero {
  position: relative; overflow: hidden; isolation: isolate;
  background: var(--ink); color: #c4c9d4;
  padding: 120px 0 140px; margin-top: calc(var(--header-h) * -1); padding-top: calc(var(--header-h) + 96px);
}
.hero .wrap { display: grid; grid-template-columns: 1.05fr .95fr; gap: 64px; align-items: center; }
.hero h1 { color: #fff; font-size: clamp(38px, 5vw, 68px); line-height: 1.02; letter-spacing: -.035em; font-weight: 650; margin-bottom: 24px; }
.hero h1 em { font-style: normal; background: linear-gradient(100deg, #ff6a4d, var(--red) 45%, #ff9a5a); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero-lead { font-size: clamp(18px, 1.5vw, 21px); color: #b9bfcc; max-width: 590px; margin-bottom: 36px; }
.hero-ctas { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 36px; }
.hero-proof { display: flex; flex-wrap: wrap; gap: 10px 24px; list-style: none; padding: 0; margin: 0; font-size: 14px; color: #9aa1af; }
.hero-proof li { display: inline-flex; align-items: center; gap: 8px; }
.hero-proof .i { color: var(--green); font-size: 16px; }
@media (max-width: 1023px) {
  .hero { padding-bottom: 96px; padding-top: calc(var(--header-h) + 64px); }
  .hero .wrap { grid-template-columns: 1fr; gap: 56px; }
}

/* animated backgrounds */
.bg-grid { position: absolute; inset: 0; z-index: -2; pointer-events: none;
  background-image: linear-gradient(rgba(255, 255, 255, .045) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 255, 255, .045) 1px, transparent 1px);
  background-size: 64px 64px;
  -webkit-mask-image: radial-gradient(ellipse 80% 70% at 50% 30%, #000 30%, transparent 75%); mask-image: radial-gradient(ellipse 80% 70% at 50% 30%, #000 30%, transparent 75%);
}
.bg-aurora { position: absolute; inset: -20%; z-index: -3; pointer-events: none; filter: blur(70px); opacity: .9; }
.bg-aurora span { position: absolute; border-radius: 50%; mix-blend-mode: screen; animation: drift 22s ease-in-out infinite alternate; }
.bg-aurora span:nth-child(1) { width: 46vw; height: 46vw; left: 48%; top: 2%; background: radial-gradient(circle, rgba(226, 35, 26, .55), transparent 62%); }
.bg-aurora span:nth-child(2) { width: 38vw; height: 38vw; left: 66%; top: 34%; background: radial-gradient(circle, rgba(123, 97, 255, .4), transparent 62%); animation-duration: 28s; animation-delay: -6s; }
.bg-aurora span:nth-child(3) { width: 34vw; height: 34vw; left: 4%; top: 52%; background: radial-gradient(circle, rgba(255, 140, 70, .22), transparent 62%); animation-duration: 32s; animation-delay: -12s; }
@keyframes drift {
  0% { transform: translate3d(0, 0, 0) scale(1); }
  50% { transform: translate3d(-6%, 5%, 0) scale(1.08); }
  100% { transform: translate3d(5%, -4%, 0) scale(.95); }
}
.bg-noise { position: absolute; inset: 0; z-index: -1; pointer-events: none; opacity: .06;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E"); }
.bg-photo { position: absolute; inset: 0; z-index: -4; background-size: cover; background-position: center; opacity: .35; }

/* ---------- hero demo: documents dropping into an agent ---------- */
.agent-demo { position: relative; min-height: 600px; perspective: 1400px; }
.agent-panel {
  position: absolute; z-index: 1; right: 0; bottom: 0; width: min(100%, 440px);
  background: linear-gradient(180deg, rgba(27, 34, 48, .92), rgba(18, 23, 34, .96));
  border: 1px solid rgba(255, 255, 255, .1); border-radius: 22px; padding: 20px;
  box-shadow: var(--shadow-lg), inset 0 1px 0 rgba(255, 255, 255, .06);
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
}
.agent-panel-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 16px; font-size: 13px; color: #9aa1af; }
.agent-panel-head strong { color: #fff; font-weight: 600; font-size: 14px; display: flex; align-items: center; gap: 8px; }
.live-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--green); box-shadow: 0 0 0 0 rgba(25, 179, 125, .6); animation: pulse 2s infinite; }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(25, 179, 125, .55); } 70% { box-shadow: 0 0 0 10px rgba(25, 179, 125, 0); } 100% { box-shadow: 0 0 0 0 rgba(25, 179, 125, 0); } }
.agent-log { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.agent-log li {
  display: grid; grid-template-columns: 28px 1fr auto; gap: 12px; align-items: center;
  background: rgba(255, 255, 255, .035); border: 1px solid rgba(255, 255, 255, .06);
  border-radius: 12px; padding: 11px 12px; font-size: 13.5px; color: #d6d9e0;
  opacity: 0; transform: translateY(10px);
}
.agent-log li.show { opacity: 1; transform: none; transition: opacity .5s, transform .5s var(--ease); }
.agent-log .ico { width: 28px; height: 28px; border-radius: 8px; display: grid; place-items: center; font-size: 14px; background: rgba(25, 179, 125, .14); color: #3be0a3; }
.agent-log .ico.warn { background: rgba(255, 179, 71, .14); color: var(--amber); }
.agent-log small { display: block; color: #8b92a1; font-size: 12px; }
.tag { font-size: 11.5px; font-weight: 600; padding: 4px 8px; border-radius: 999px; white-space: nowrap; }
.tag--ok { background: rgba(25, 179, 125, .16); color: #3be0a3; }
.tag--human { background: rgba(255, 179, 71, .16); color: var(--amber); }
.agent-meter { margin-top: 16px; padding-top: 16px; border-top: 1px solid rgba(255, 255, 255, .07); display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.agent-meter div { font-size: 12px; color: #8b92a1; }
.agent-meter b { display: block; color: #fff; font: 650 22px/1.2 var(--font-display); letter-spacing: -.02em; }

.doc-card {
  position: absolute; z-index: 2; width: 230px; background: #fff; color: var(--ink); border-radius: 14px; padding: 16px;
  box-shadow: 0 24px 50px -18px rgba(0, 0, 0, .6); font-size: 12.5px;
  opacity: 0; will-change: transform, opacity;
}
.doc-card .doc-type { display: flex; align-items: center; gap: 8px; font-weight: 700; font-size: 13px; margin-bottom: 10px; }
.doc-card .doc-type i { width: 26px; height: 26px; border-radius: 7px; display: grid; place-items: center; font-style: normal; color: #fff; font-size: 13px; }
.doc-card .bar { height: 7px; border-radius: 4px; background: var(--paper-3); margin: 7px 0; }
.doc-card .bar.hl { background: linear-gradient(90deg, rgba(226, 35, 26, .25), rgba(226, 35, 26, .08)); }
.doc-card .row-x { display: flex; justify-content: space-between; color: var(--muted); margin-top: 10px; font-size: 12px; }
.doc-card .row-x b { color: var(--ink); }
.doc-card.d1 { left: 0; top: 0; --r: -7deg; }
.doc-card.d2 { left: 46%; top: 6px; --r: 6deg; }
.doc-card.d3 { left: 16%; top: 96px; --r: -3deg; }
.is-ready .doc-card { animation: dropIn 1s var(--bounce) forwards, bob 6s ease-in-out 1.2s infinite alternate; }
.is-ready .doc-card.d1 { animation-delay: .2s, 1.4s; }
.is-ready .doc-card.d2 { animation-delay: .45s, 1.8s; }
.is-ready .doc-card.d3 { animation-delay: .7s, 2.2s; }
@keyframes dropIn {
  0% { opacity: 0; transform: translateY(-160px) rotate(calc(var(--r) * -3)) scale(.9); }
  60% { opacity: 1; }
  100% { opacity: 1; transform: translateY(0) rotate(var(--r)) scale(1); }
}
@keyframes bob { from { transform: translateY(0) rotate(var(--r)); } to { transform: translateY(-10px) rotate(calc(var(--r) * .6)); } }
.agent-panel { opacity: 0; transform: translateY(30px) scale(.97); }
.is-ready .agent-panel { opacity: 1; transform: none; transition: opacity .8s .9s, transform 1s .9s var(--ease); }
@media (max-width: 1023px) { .agent-demo { min-height: 600px; max-width: 540px; } }
@media (max-width: 520px) { .doc-card { width: 160px; padding: 12px; font-size: 11.5px; } .doc-card .doc-type { font-size: 12px; } .doc-card.d2 { left: auto; right: 0; } .doc-card.d3 { display: none; } .agent-demo { min-height: 600px; } .agent-log li { grid-template-columns: 28px 1fr; } .agent-log .tag { display: none; } }

/* ---------- logo marquee ---------- */
.logos { padding: 44px 0; border-bottom: 1px solid var(--line); background: #fff; }
.logos p { text-align: center; color: var(--muted); font-size: 14px; margin-bottom: 24px; }
.marquee { overflow: hidden; -webkit-mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent); mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent); }
.marquee-track { display: flex; gap: 72px; width: max-content; animation: marquee 40s linear infinite; align-items: center; }
.marquee:hover .marquee-track { animation-play-state: paused; }
.marquee-track img { height: 44px; width: auto; max-width: 150px; object-fit: contain; filter: grayscale(1); opacity: .6; transition: opacity .3s, filter .3s; }
.marquee-track img:hover { filter: none; opacity: 1; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------- stats ---------- */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.stat { padding: 40px 28px; border-left: 1px solid var(--line); }
.stat:first-child { border-left: 0; padding-left: 0; }
.stat b { display: block; font: 650 clamp(38px, 4.4vw, 58px)/1 var(--font-display); letter-spacing: -.04em; color: var(--ink); margin-bottom: 12px; }
.stat b small { font-size: .5em; color: var(--red); margin-left: 2px; }
.stat > span { color: var(--muted); font-size: 15px; line-height: 1.45; display: block; }
@media (max-width: 900px) { .stats { grid-template-columns: 1fr 1fr; } .stat:nth-child(3) { border-left: 0; padding-left: 0; } .stat:nth-child(n+3) { border-top: 1px solid var(--line); } }
@media (max-width: 480px) { .stat { padding: 28px 14px; } }

/* ---------- use-case cards ---------- */
.cards { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
@media (max-width: 1100px) { .cards { grid-template-columns: 1fr 1fr; } }
@media (max-width: 620px) { .cards { grid-template-columns: 1fr; } }
.card-x {
  position: relative; display: flex; flex-direction: column; background: #fff; border: 1px solid var(--line);
  border-radius: var(--radius); padding: 28px; color: var(--text); overflow: hidden;
  transition: transform .35s var(--ease), box-shadow .35s, border-color .35s;
}
.card-x:hover { transform: translateY(-6px); box-shadow: var(--shadow); border-color: transparent; color: var(--text); }
.card-x::after { content: ""; position: absolute; inset: auto 0 0 0; height: 3px; background: linear-gradient(90deg, var(--red), var(--amber)); transform: scaleX(0); transform-origin: left; transition: transform .45s var(--ease); }
.card-x:hover::after { transform: scaleX(1); }
.card-x .ico { width: 52px; height: 52px; border-radius: 14px; display: grid; place-items: center; font-size: 24px; background: var(--red-soft); color: var(--red); margin-bottom: 24px; }
.card-x h3 { font-size: 21px; margin-bottom: 10px; }
.card-x p { color: var(--muted); font-size: 15.5px; flex: 1; }
.card-x .metric { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 8px; padding-top: 18px; border-top: 1px dashed var(--line); font-size: 13.5px; color: var(--muted); }
.card-x .metric b { font: 650 22px/1 var(--font-display); color: var(--ink); letter-spacing: -.02em; }

/* ---------- scroll story (sticky steps) ---------- */
.story { display: grid; grid-template-columns: .9fr 1.1fr; gap: 80px; align-items: start; }
.story-sticky { position: sticky; top: calc(var(--header-h) + 56px); }
.story-sticky h2 { font-size: clamp(32px, 4vw, 50px); }
.story-sticky p { color: var(--muted); font-size: 18px; }
.story-progress { height: 4px; background: var(--paper-3); border-radius: 4px; overflow: hidden; margin: 32px 0; max-width: 360px; }
.story-progress span { display: block; height: 100%; width: 0; background: linear-gradient(90deg, var(--red), var(--amber)); border-radius: 4px; transition: width .15s linear; }
.steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 24px; counter-reset: step; }
.step {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 36px;
  min-height: 260px; display: flex; flex-direction: column; justify-content: flex-end;
  transition: opacity .5s, transform .5s var(--ease), box-shadow .5s, border-color .5s; opacity: .45; transform: scale(.97);
}
.step.is-current { opacity: 1; transform: none; box-shadow: var(--shadow); border-color: transparent; }
.step-num { font: 650 13px/1 var(--font); color: var(--red); letter-spacing: .1em; text-transform: uppercase; margin-bottom: auto; padding-bottom: 40px; display: flex; justify-content: space-between; }
.step-num em { font-style: normal; color: var(--muted); letter-spacing: 0; text-transform: none; font-weight: 500; }
.step h3 { font-size: 26px; margin-bottom: 10px; }
.step p { color: var(--muted); margin: 0; }
@media (max-width: 900px) { .story { grid-template-columns: 1fr; gap: 32px; } .story-sticky { position: static; } .step { opacity: 1; transform: none; min-height: 0; } .step-num { padding-bottom: 20px; } }

/* ---------- compliance (dark) ---------- */
.dark-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
@media (max-width: 900px) { .dark-cards { grid-template-columns: 1fr; } }
.dark-card {
  position: relative; border-radius: var(--radius); padding: 32px; background: linear-gradient(180deg, var(--ink-2), var(--ink));
  border: 1px solid var(--line-dark); color: #b4bac7; overflow: hidden; transition: border-color .3s, transform .35s var(--ease);
}
.dark-card:hover { border-color: rgba(226, 35, 26, .45); transform: translateY(-4px); color: #b4bac7; }
.dark-card::before { content: ""; position: absolute; width: 280px; height: 280px; right: -120px; top: -120px; background: radial-gradient(circle, rgba(226, 35, 26, .28), transparent 65%); opacity: 0; transition: opacity .4s; }
.dark-card:hover::before { opacity: 1; }
.dark-card > * { position: relative; }
.dark-card .badge-x { display: inline-block; font: 700 12px/1 var(--font); letter-spacing: .08em; padding: 7px 10px; border-radius: 6px; background: rgba(255, 255, 255, .06); color: #fff; margin-bottom: 22px; }
.dark-card h3 { font-size: 22px; }
.dark-card p { font-size: 15.5px; }
.dark-card .link-arrow { color: #fff; }

/* ---------- deployment options ---------- */
.options { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; background: #fff; }
.option { padding: 36px 32px; border-left: 1px solid var(--line); position: relative; }
.option:first-child { border-left: 0; }
.option .tagline { font-size: 13px; font-weight: 600; color: var(--red); margin-bottom: 14px; display: block; }
.option h3 { font-size: 22px; }
.option p { color: var(--muted); font-size: 15.5px; margin: 0; }
.option.is-featured { background: var(--paper-2); }
@media (max-width: 900px) { .options { grid-template-columns: 1fr; } .option { border-left: 0; border-top: 1px solid var(--line); } .option:first-child { border-top: 0; } }

/* ---------- split / why ---------- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 72px; align-items: center; }
@media (max-width: 900px) { .split { grid-template-columns: 1fr; gap: 40px; } }
.split h2 { font-size: clamp(30px, 3.6vw, 46px); }
.split .lead-x { font-size: 19px; color: var(--muted); }
.checklist { list-style: none; padding: 0; margin: 24px 0 32px; display: grid; gap: 14px; }
.checklist li { display: flex; gap: 12px; align-items: flex-start; }
.checklist .i { color: var(--red); margin-top: 5px; font-size: 18px; }
.problem-stack { position: relative; display: grid; gap: 14px; }
.problem {
  display: flex; gap: 16px; align-items: center; background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 18px 20px; box-shadow: 0 1px 2px rgba(0, 0, 0, .03);
}
.problem:nth-child(2) { margin-left: 32px; }
.problem:nth-child(3) { margin-left: 64px; }
.problem:nth-child(4) { margin-left: 16px; }
.problem .ico { width: 42px; height: 42px; border-radius: 10px; display: grid; place-items: center; background: var(--paper-2); color: var(--ink); font-size: 20px; flex: none; }
.problem strong { display: block; font-size: 15.5px; color: var(--ink); }
.problem span { font-size: 14px; color: var(--muted); }
@media (max-width: 620px) { .problem:nth-child(n) { margin-left: 0; } }

/* ---------- testimonials ---------- */
.quotes { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
@media (max-width: 1000px) { .quotes { grid-template-columns: 1fr; } }
.quote { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 32px; display: flex; flex-direction: column; margin: 0; }
.quote blockquote { margin: 0 0 28px; font-size: 17px; line-height: 1.6; color: var(--ink); flex: 1; }
.quote blockquote::before { content: "\201C"; display: block; font: 700 64px/0.6 Georgia, serif; color: var(--red); margin-bottom: 14px; height: 30px; }
.quote figcaption { display: flex; gap: 14px; align-items: center; font-size: 14px; color: var(--muted); }
.quote figcaption img { width: 48px; height: 48px; object-fit: contain; border-radius: 10px; background: var(--paper-2); padding: 6px; }
.quote figcaption strong { display: block; color: var(--ink); font-size: 15px; }
.stars { color: #f5a623; letter-spacing: 2px; }
.quote > .stars { font-size: 16px; margin-bottom: 14px; }
.quote figcaption .avatar { width: 48px; height: 48px; border-radius: 50%; display: grid; place-items: center; flex: none; background: var(--red-soft); color: var(--red); font: 650 19px/1 var(--font-display); }
.g-rating { display: inline-flex; align-items: center; gap: 10px; font-size: 15px; color: var(--muted); }
.g-rating b { color: var(--ink); }
.g-ratings { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px 32px; margin-top: 32px; }
/* review wall: masonry columns, so any number of quotes of any length packs neatly */
.quotes--wall { display: block; columns: 3 300px; column-gap: 20px; }
.quotes--wall .quote { break-inside: avoid; margin-bottom: 20px; }
.quotes--wall .quote blockquote { flex: none; }
/* client logo wall: every logo gets the same box, whatever the image's own size */
.logo-wall { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 16px; margin: 32px 0 0; padding: 0; list-style: none; }
.logo-wall li { height: 112px; display: grid; place-items: center; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 20px 24px; margin: 0; }
.logo-wall img { max-width: 100%; max-height: 60px; width: auto; height: auto; object-fit: contain; filter: grayscale(1); opacity: .75; transition: filter .3s, opacity .3s; }
.logo-wall li:hover img { filter: none; opacity: 1; }

/* ---------- faq ---------- */
.faq-x { max-width: 860px; margin: 0 auto; border-top: 1px solid var(--line); }
.faq-x details { border-bottom: 1px solid var(--line); }
.faq-x summary { list-style: none; cursor: pointer; padding: 24px 48px 24px 0; position: relative; font: 600 19px/1.4 var(--font-display); color: var(--ink); letter-spacing: -.01em; }
.faq-x summary::-webkit-details-marker { display: none; }
.faq-x summary::after { content: ""; position: absolute; right: 6px; top: 50%; width: 14px; height: 14px; margin-top: -9px; border-right: 2px solid var(--red); border-bottom: 2px solid var(--red); transform: rotate(45deg); transition: transform .3s var(--ease); }
.faq-x details[open] summary::after { transform: rotate(-135deg); margin-top: -2px; }
.faq-x details p { color: var(--muted); padding-right: 48px; margin: 0 0 24px; }

/* ---------- CTA band ---------- */
.cta-band { position: relative; overflow: hidden; isolation: isolate; background: var(--ink); color: #c4c9d4; padding: 110px 0; }
.cta-band .wrap { display: grid; grid-template-columns: 1.3fr .7fr; gap: 48px; align-items: center; }
.cta-band h2 { color: #fff; font-size: clamp(32px, 4.4vw, 56px); margin-bottom: 18px; }
.cta-band p { font-size: 18px; max-width: 640px; margin: 0; color: #aeb4c1; }
.cta-band .cta-side { display: flex; flex-direction: column; gap: 12px; align-items: flex-start; }
.cta-band .cta-side small { color: #8b92a1; font-size: 13.5px; }
.cta-band .cta-side a.tel { color: #fff; font-weight: 600; }
@media (max-width: 900px) { .cta-band .wrap { grid-template-columns: 1fr; } .cta-band { padding: 80px 0; } }

/* ---------- inner page hero ---------- */
.page-hero { position: relative; overflow: hidden; isolation: isolate; background: var(--ink); color: #b9bfcc; margin-top: calc(var(--header-h) * -1); padding: calc(var(--header-h) + 64px) 0 72px; }
.page-hero h1 { color: #fff; font-size: clamp(34px, 4.6vw, 60px); letter-spacing: -.03em; max-width: 900px; margin: 0; }
.crumbs { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; padding: 0; margin: 0 0 20px; font-size: 13.5px; }
.crumbs li { display: flex; align-items: center; gap: 8px; color: #8b92a1; }
.crumbs li + li::before { content: "/"; color: #4d5463; }
.crumbs a { color: #c4c9d4; }
.crumbs a:hover { color: #fff; }
.page-hero .bg-aurora { opacity: .6; }
.page-hero .bg-photo { background-image: url("/assets/img/hero-texture-1400.webp"); opacity: .55; }
@media (min-width: 1400px) { .page-hero .bg-photo { background-image: url("/assets/img/hero-texture.webp"); } }

/* ---------- inner page content polish (on top of bootstrap) ---------- */
.page-body { padding: 72px 0 0; }
.page-body > section:not(.cta-band), .page-body .inner-page { padding-top: 0; padding-bottom: 72px; }
.page-body .cta-band h2 { font-size: clamp(32px, 4.4vw, 56px); margin-top: 0; }
.page-body .container { max-width: var(--wrap); padding-left: 24px; padding-right: 24px; }
.page-body h2 { font-size: clamp(28px, 3vw, 38px); margin-top: 1.4em; }
.page-body h3 { font-size: 24px; margin-top: 1.4em; }
.page-body h4 { font-size: 19px; }
.page-body .lead { font-size: 20px; color: var(--muted); font-weight: 400; }
.page-body .inner-page > .container > .row:first-child h2:first-child { margin-top: 0; }
.page-body ul li, .page-body ol li { margin-bottom: .45em; }
.page-body .border { border-color: var(--line) !important; border-radius: var(--radius); }
.page-body .card { border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; transition: transform .35s var(--ease), box-shadow .35s; }
.page-body .card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.page-body .btn-primary { background: var(--red); border-color: var(--red); border-radius: 999px; padding: 10px 20px; font-weight: 600; }
.page-body .btn-primary:hover { background: var(--red-2); border-color: var(--red-2); }
.page-body .form-control { border-radius: 10px; border-color: var(--line); padding: 12px 14px; height: auto; }
.page-body .form-control:focus { border-color: var(--red); box-shadow: 0 0 0 3px var(--red-soft); }
.page-body .section-title h2 { font-size: clamp(28px, 3vw, 38px); }
.page-body .section-title h2::after { display: none; }
.page-body .clients-strip { padding: 24px 0; }
.page-body .card-x h3, .page-body .section-head h2 { margin-top: 0; }
.page-body .card-x .checklist { margin: 0; font-size: 15.5px; }
.page-body .faq-x summary { margin: 0; }

/* ---------- footer ---------- */
.site-footer { background: #07090e; color: #8b92a1; font-size: 15px; padding-top: 88px; position: relative; overflow: hidden; }
.site-footer a { color: #b4bac7; }
.site-footer a:hover { color: #fff; }
.footer-grid { display: grid; grid-template-columns: 1.4fr repeat(3, 1fr); gap: 48px; padding-bottom: 64px; }
@media (max-width: 900px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .footer-grid { grid-template-columns: 1fr; } }
.footer-brand img { height: 30px; width: auto; margin-bottom: 20px; }
.footer-brand p { max-width: 320px; }
.footer-contact { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.footer-contact li { display: flex; gap: 10px; align-items: center; }
.footer-contact .i { color: var(--red-2); }
.site-footer h4 { color: #fff; font: 600 14px/1 var(--font); letter-spacing: .06em; text-transform: uppercase; margin-bottom: 20px; }
.site-footer ul.links { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.footer-bottom { border-top: 1px solid var(--line-dark); padding: 24px 0 32px; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px; font-size: 13.5px; }
.footer-bottom nav { display: flex; gap: 20px; flex-wrap: wrap; }
.footer-word { width: min(1100px, 92%); margin: -26px auto -1.6%; user-select: none; pointer-events: none; }
.footer-word svg { display: block; width: 100%; aspect-ratio: 359.5 / 51.6; fill: none; stroke: rgba(255, 255, 255, .09); stroke-width: 1px; vector-effect: non-scaling-stroke; }

/* ---------- reveal on scroll ---------- */
.js [data-reveal] { opacity: 0; transform: translateY(32px); transition: opacity .8s var(--ease), transform .9s var(--ease); transition-delay: var(--d, 0s); }
.js [data-reveal="drop"] { transform: translateY(-70px) rotate(var(--rot, -3deg)); transition: opacity .6s ease, transform 1s var(--bounce); transition-delay: var(--d, 0s); }
.js [data-reveal="left"] { transform: translateX(-40px); }
.js [data-reveal="right"] { transform: translateX(40px); }
.js [data-reveal="zoom"] { transform: scale(.94); }
.js [data-reveal].is-in { opacity: 1; transform: none; }
[data-parallax] { will-change: transform; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; scroll-behavior: auto !important; }
  .js [data-reveal] { opacity: 1; transform: none; }
  .doc-card, .agent-panel, .agent-log li { opacity: 1 !important; transform: rotate(var(--r, 0)) !important; }
}

/* ---------- industries (image tiles, gradient fallback when no photo) ---------- */
.industries { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
@media (max-width: 1000px) { .industries { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .industries { grid-template-columns: 1fr; } }
.industry { position: relative; aspect-ratio: 3 / 4; border-radius: var(--radius); overflow: hidden; isolation: isolate; color: #fff; display: flex; flex-direction: column; justify-content: flex-end; padding: 24px; background: var(--g, linear-gradient(160deg, #2a1416, #0a0d14)); }
@media (max-width: 520px) { .industry { aspect-ratio: 4 / 3; } }
.industry img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; transition: transform 1.2s var(--ease); }
.industry::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(10, 13, 20, 0) 30%, rgba(10, 13, 20, .9)); }
.industry:hover img { transform: scale(1.06); }
.industry h3 { color: #fff; font-size: 22px; margin-bottom: 6px; }
.industry p { color: #c9ced8; font-size: 14.5px; margin: 0; }
.industry .ico-lg { position: absolute; top: 22px; left: 22px; width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; background: rgba(255, 255, 255, .1); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); font-size: 20px; }
.demo-note { position: absolute; left: 0; bottom: -34px; font-size: 12px; color: #6f7686; }

/* ---------- homepage review rows: two marquees running in opposite directions ---------- */
.review-rows { display: grid; gap: 20px; width: 100vw; margin-left: calc(50% - 50vw); }
.review-row { overflow-x: auto; scrollbar-width: none; -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); }
.review-row::-webkit-scrollbar { display: none; }
.review-track { display: flex; align-items: stretch; gap: 20px; width: max-content; padding: 4px 24px; }
.review-track .quote { width: 380px; flex: none; padding: 26px; }
.review-track .quote blockquote { font-size: 16px; margin-bottom: 22px; }
.review-row.is-looping { overflow: hidden; }
.review-row.is-looping .review-track { padding: 4px 0; animation: marquee var(--dur, 80s) linear infinite; }
.review-row--rev.is-looping .review-track { animation-direction: reverse; }
.review-row.is-looping:hover .review-track, .review-row.is-looping:focus-within .review-track { animation-play-state: paused; }
.review-foot { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 16px 40px; margin-top: 40px; }
.review-foot .g-ratings { margin-top: 0; }
@media (max-width: 620px) { .review-track .quote { width: 300px; } }

/* ---------- language menu ---------- */
.lang-menu { position: relative; }
.lang-menu summary { list-style: none; cursor: pointer; }
.lang-menu summary::-webkit-details-marker { display: none; }
.lang-menu summary .i { font-size: 12px; opacity: .7; transition: transform .25s; }
.lang-menu[open] summary .i { transform: rotate(180deg); }
.lang-menu ul { position: absolute; right: 0; top: calc(100% + 8px); z-index: 60; min-width: 170px; margin: 0; padding: 6px; list-style: none; background: #fff; border-radius: 12px; box-shadow: 0 20px 40px -12px rgba(10, 13, 20, .45); }
.lang-menu ul a { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 8px; color: var(--ink); font-size: 14.5px; font-weight: 500; }
.lang-menu ul a:hover { background: var(--paper-2); color: var(--ink); }
.lang-menu ul a.is-current { color: var(--red); font-weight: 600; }
.lang-menu svg[viewBox] { border-radius: 2px; flex: none; }
