/* Xepard design system */
:root {
  --charcoal: #21232E;
  --charcoal-2: #2B2E3B;
  --charcoal-3: #3A3E4F;
  --blue: #105BFF;
  --blue-ink: #0A45CC;
  --blue-50: #EBF1FF;
  --blue-100: #D6E3FF;
  --blue-on-dark: #86AAFF;
  --orange: #FE8500;
  --orange-hover: #FF9727;
  --orange-ink: #A85500;
  --orange-50: #FFF3E5;
  --paper: #F4F5F8;
  --line: #E1E3EA;
  --line-2: #CDD0DA;
  --ink: #21232E;
  --ink-2: #4A4E5E;
  --ink-3: #646979;
  --on-dark: #F4F5F8;
  --on-dark-2: #A9ADBD;
  --ok: #1F9D6B;

  /* Theme tokens: light values here, dark values under [data-theme="dark"] */
  --bg: #fff;
  --surface: #fff;
  --surface-2: #FAFBFC;
  --surface-hover: #F4F5F8;
  --blue-text: #105BFF;
  --header-bg: rgba(255, 255, 255, .82);
  --header-bg-solid: rgba(255, 255, 255, .97);
  --glass: rgba(255, 255, 255, .72);
  --glass-strong: rgba(255, 255, 255, .9);
  --glass-bd: rgba(33, 35, 46, .12);
  --inv-bg: #21232E;
  --inv-fg: #fff;
  --inv-hover: #3A3E4F;
  --ok-bg: #E2F4EC;
  --ok-fg: #146B48;

  --font: "Archivo", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace;

  --r-xs: 6px;
  --r-sm: 10px;
  --r-md: 14px;
  --r-lg: 22px;
  --r-xl: 32px;

  --container: 1240px;
  --gutter: clamp(1.25rem, 4vw, 2.5rem);
  --header-h: 72px;
  --ease: cubic-bezier(.2, .8, .2, 1);
  --dots: radial-gradient(circle at 1px 1px, rgba(33, 35, 46, .14) 1px, transparent 0) 0 0 / 24px 24px;
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 1rem); }
html.menu-open { overflow: hidden; }
body {
  margin: 0;
  font-family: var(--font);
  font-size: 1.0625rem;
  line-height: 1.6;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; }
h1, h2, h3, h4 { margin: 0; font-weight: 700; line-height: 1.1; letter-spacing: -.02em; text-wrap: balance; }
p { margin: 0; text-wrap: pretty; }
ul, ol { margin: 0; padding: 0; list-style: none; }
button { font: inherit; color: inherit; }
code { font-family: var(--mono); font-size: .92em; }
:focus-visible { outline: 3px solid var(--blue); outline-offset: 3px; border-radius: 4px; }
.on-dark :focus-visible { outline-color: var(--blue-on-dark); }
[hidden] { display: none !important; }
/* Animations run for everyone by owner's decision; the OS "reduce motion" preference is intentionally not applied. */

.container { width: min(100% - 2 * var(--gutter), var(--container)); margin-inline: auto; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip-link { position: absolute; left: 1rem; top: -100px; z-index: 100; background: var(--charcoal); color: #fff; padding: .6rem 1rem; border-radius: var(--r-sm); text-decoration: none; }
.skip-link:focus { top: .75rem; }

/* ---------- Type ---------- */
.display {
  font-size: clamp(2.6rem, 1.15rem + 5.2vw, 5.6rem);
  font-stretch: 112%;
  font-weight: 780;
  line-height: .98;
  letter-spacing: -.042em;
}
.h1 { font-size: clamp(2.4rem, 1.2rem + 4vw, 4.6rem); font-stretch: 112%; font-weight: 770; line-height: 1; letter-spacing: -.04em; }
.h2 { font-size: clamp(2rem, 1.25rem + 2.6vw, 3.4rem); font-stretch: 110%; font-weight: 740; line-height: 1.03; letter-spacing: -.032em; }
.h3 { font-size: clamp(1.25rem, 1.1rem + .5vw, 1.5rem); font-stretch: 104%; font-weight: 680; line-height: 1.2; letter-spacing: -.015em; }
.h4 { font-size: 1.0625rem; font-weight: 650; line-height: 1.3; letter-spacing: -.005em; }
.lead { font-size: clamp(1.125rem, 1rem + .4vw, 1.3rem); line-height: 1.55; color: var(--ink-2); max-width: 60ch; }
.muted { color: var(--ink-2); }
.small { font-size: .875rem; }
.on-dark .lead, .on-dark .muted { color: var(--on-dark-2); }

.link {
  color: var(--blue-text);
  font-weight: 620;
  text-decoration: underline;
  text-decoration-thickness: 1.5px;
  text-underline-offset: .28em;
  text-decoration-color: color-mix(in srgb, currentColor 30%, transparent);
  transition: text-decoration-color .2s, color .2s;
}
.link:hover { text-decoration-color: currentColor; }
.on-dark .link { color: var(--blue-on-dark); }

/* ---------- Buttons ---------- */
.btn {
  --bg: transparent; --fg: var(--ink); --bd: var(--line-2);
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  min-height: 50px; padding: .75rem 1.4rem;
  border: 1px solid var(--bd); border-radius: 999px;
  background: var(--bg); color: var(--fg);
  font-size: 1rem; font-weight: 640; font-stretch: 104%; letter-spacing: -.005em;
  text-decoration: none; white-space: nowrap; cursor: pointer;
  transition: background-color .2s, border-color .2s, color .2s, transform .25s var(--ease), box-shadow .25s;
}
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0); }
.btn--primary {
  --bg: var(--orange); --fg: var(--charcoal); --bd: var(--orange);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .35), 0 10px 24px -12px rgba(254, 133, 0, .9);
}
.btn--primary:hover { --bg: var(--orange-hover); --bd: var(--orange-hover); }
.btn--dark { --bg: var(--inv-bg); --fg: var(--inv-fg); --bd: var(--inv-bg); }
.btn--dark:hover { --bg: var(--inv-hover); --bd: var(--inv-hover); }
.btn--ghost:hover { --bd: var(--ink); }
.on-dark .btn--ghost, .cta .btn--ghost { --fg: #fff; --bd: rgba(255, 255, 255, .35); }
.on-dark .btn--ghost:hover, .cta .btn--ghost:hover { --bd: #fff; }
.btn--sm { min-height: 40px; padding: .45rem 1.05rem; font-size: .9375rem; }
.btn--block { width: 100%; }
.btn svg { width: 18px; height: 18px; }

/* ---------- Header ---------- */
[data-site-header] { display: block; height: var(--header-h); }
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: var(--header-bg);
  -webkit-backdrop-filter: saturate(1.5) blur(16px);
  backdrop-filter: saturate(1.5) blur(16px);
  border-bottom: 1px solid transparent;
  transition: border-color .25s, background-color .25s;
}
.site-header.is-scrolled, .site-header.is-open { background: var(--header-bg-solid); border-bottom-color: var(--line); }
/* backdrop-filter makes the header the containing block of the fixed mobile menu; drop it while that menu is open */
html.menu-open .site-header { -webkit-backdrop-filter: none; backdrop-filter: none; background: var(--bg); border-bottom-color: var(--line); }
.header__bar { display: flex; align-items: center; gap: 2rem; height: var(--header-h); }

.brand { display: inline-flex; align-items: center; gap: .6rem; text-decoration: none; font-weight: 800; font-stretch: 120%; font-size: 1.3rem; letter-spacing: -.04em; }
.brand__word { width: auto; height: 22px; flex: none; fill: currentColor; }
.brand__x2 { fill: var(--orange); stroke: var(--brand-knock, #fff); stroke-width: 5; paint-order: stroke; }
.brand--light { color: #fff; --brand-knock: var(--charcoal); }

.nav { flex: 1; }
.nav__list { display: flex; align-items: center; gap: .15rem; }
.nav__trigger, .nav__link {
  display: inline-flex; align-items: center; gap: .3rem;
  height: 40px; padding: 0 .85rem;
  border: 0; border-radius: 999px; background: none;
  font-size: .96875rem; font-weight: 560; color: var(--ink); text-decoration: none; cursor: pointer;
  transition: background-color .15s, color .15s;
}
.nav__trigger:hover, .nav__link:hover, .nav__trigger[aria-expanded="true"] { background: var(--paper); }
.nav__link[aria-current="page"], .nav__trigger.is-current { color: var(--blue-text); }
.nav__trigger svg { width: 14px; height: 14px; transition: transform .25s var(--ease); }
.nav__trigger[aria-expanded="true"] svg { transform: rotate(180deg); }
.header__actions { display: flex; align-items: center; gap: .75rem; margin-left: auto; }

.mega {
  position: absolute; left: 0; right: 0; top: 100%;
  background: var(--surface); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line);
  box-shadow: 0 40px 60px -40px rgba(33, 35, 46, .35);
  opacity: 0; visibility: hidden; transform: translateY(-8px);
  transition: opacity .18s, transform .28s var(--ease), visibility 0s .28s;
}
.mega.is-open { opacity: 1; visibility: visible; transform: none; transition: opacity .18s, transform .28s var(--ease); }
.mega__inner { display: grid; gap: 2.5rem; padding-block: 2rem 2.5rem; }
.mega__title { font-size: .8125rem; font-weight: 600; color: var(--ink-3); margin-bottom: .6rem; }
.mega__list { display: grid; gap: .1rem; }
.mega__list--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 1.5rem; }
.mega__item {
  display: flex; align-items: flex-start; gap: .85rem;
  padding: .6rem .75rem; margin-inline: -.75rem;
  border-radius: var(--r-sm); text-decoration: none;
  transition: background-color .15s;
}
.mega__item:hover { background: var(--surface-hover); }
.mega__text strong { display: block; font-weight: 620; font-size: .96875rem; line-height: 1.35; }
.mega__text > span { display: block; margin-top: .15rem; font-size: .875rem; color: var(--ink-2); line-height: 1.45; }
.mega__icon { flex: none; width: 36px; height: 36px; border-radius: 10px; display: grid; place-items: center; background: var(--blue-50); color: var(--blue-text); }
.mega__icon svg { width: 19px; height: 19px; }
.mega__feature {
  position: relative; overflow: hidden; isolation: isolate;
  display: flex; flex-direction: column; justify-content: flex-end; gap: .5rem;
  min-height: 220px; padding: 1.5rem;
  background: var(--charcoal); color: var(--on-dark);
  border-radius: var(--r-md); text-decoration: none;
}
.mega__feature strong { font-size: 1.15rem; font-stretch: 108%; font-weight: 700; line-height: 1.2; letter-spacing: -.02em; color: #fff; }
.mega__feature > span:not(.mega__feature-art) { font-size: .9rem; color: var(--on-dark-2); }
.mega__feature-cta { display: inline-flex !important; align-items: center; gap: .4rem; margin-top: .4rem; color: var(--orange) !important; font-weight: 620; }
.mega__feature-cta svg { width: 16px; height: 16px; transition: transform .25s var(--ease); }
.mega__feature:hover .mega__feature-cta svg { transform: translateX(4px); }
.mega__feature-art {
  position: absolute; inset: 0; z-index: -1;
  background:
    radial-gradient(circle at 1px 1px, rgba(255, 255, 255, .12) 1px, transparent 0) 0 0 / 18px 18px,
    radial-gradient(60% 70% at 100% 0%, rgba(16, 91, 255, .55), transparent 70%);
}

.menu-toggle { display: none; width: 44px; height: 44px; border: 1px solid var(--line); border-radius: 12px; background: var(--surface); cursor: pointer; position: relative; }
.menu-toggle span { position: absolute; left: 12px; right: 12px; height: 2px; border-radius: 2px; background: var(--ink); transition: transform .3s var(--ease), top .3s var(--ease); }
.menu-toggle span:first-child { top: 16px; }
.menu-toggle span:last-child { top: 25px; }
.menu-toggle[aria-expanded="true"] span:first-child { top: 20.5px; transform: rotate(45deg); }
.menu-toggle[aria-expanded="true"] span:last-child { top: 20.5px; transform: rotate(-45deg); }

.m-menu { position: fixed; inset: var(--header-h) 0 0; background: var(--surface); overflow-y: auto; border-top: 1px solid var(--line); }
.m-menu__inner { display: flex; flex-direction: column; padding-block: 1rem 2.5rem; }
.m-menu__link, .m-menu__group summary {
  display: flex; align-items: center; justify-content: space-between;
  padding: 1rem 0; border-bottom: 1px solid var(--line);
  font-size: 1.2rem; font-weight: 650; font-stretch: 106%; text-decoration: none; cursor: pointer; list-style: none;
}
.m-menu__group summary::-webkit-details-marker { display: none; }
.m-menu__group summary svg { width: 18px; height: 18px; transition: transform .25s var(--ease); }
.m-menu__group[open] summary svg { transform: rotate(180deg); }
.m-menu__group[open] { padding-bottom: .75rem; border-bottom: 1px solid var(--line); }
.m-menu__group[open] summary { border-bottom: 0; }
.m-menu__title { font-size: .8125rem; font-weight: 600; color: var(--ink-3); margin: .75rem 0 .25rem; }
.m-menu__group a { display: block; padding: .5rem 0; text-decoration: none; color: var(--ink-2); font-size: 1.0625rem; }
.m-menu__inner > .btn { margin-top: 1.75rem; }

/* ---------- Sections ---------- */
.section { padding-block: clamp(4.5rem, 9vw, 8rem); }
.section--paper { background: var(--paper); }
.section--tight { padding-block: clamp(3rem, 6vw, 5rem); }
.section--cta { padding-top: 0; }
.on-dark { background: var(--charcoal); color: var(--on-dark); }
.section__head { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr); gap: 1.5rem 4rem; align-items: end; margin-bottom: clamp(2.5rem, 5vw, 4rem); }
.section__head--stack { display: block; max-width: 780px; }
.section__head--stack .lead { margin-top: 1.25rem; }
.section__head--center { margin-inline: auto; text-align: center; }
.section__head--center .lead { margin-inline: auto; }
.section__foot { margin-top: 2.5rem; }

/* ---------- Hero ---------- */
.hero { position: relative; overflow: hidden; isolation: isolate; padding-block: clamp(2.5rem, 5vw, 4.5rem) clamp(2rem, 4vw, 3rem); background: var(--paper); }
.hero::after { content: ""; position: absolute; inset: auto 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.02fr) minmax(0, 1fr); gap: clamp(2rem, 4vw, 4rem); align-items: center; }
.hero__title { font-size: clamp(2.6rem, 1.2rem + 4.1vw, 4.5rem); }
.hero .lead { margin-top: 1.6rem; max-width: 34em; }
.hero__actions { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: 2.2rem; }
.hero__note { margin-top: 1.25rem; font-size: .9rem; color: var(--ink-3); }
.announce {
  display: inline-flex; align-items: center; gap: .65rem; margin-bottom: 1.75rem;
  padding: .3rem .9rem .3rem .3rem; border: 1px solid var(--line); border-radius: 999px; background: var(--surface);
  font-size: .875rem; font-weight: 560; text-decoration: none; color: var(--ink-2);
  transition: border-color .2s;
}
.announce:hover { border-color: var(--ink-3); }
.announce b { padding: .2rem .6rem; border-radius: 999px; background: var(--charcoal); color: #fff; font-weight: 650; font-size: .8125rem; }
.announce svg { width: 15px; height: 15px; transition: transform .25s var(--ease); }
.announce:hover svg { transform: translateX(3px); }

/* 3D layer stack: data, flow and app planes assembling from the data up */
.stack { position: relative; height: clamp(420px, 44vw, 580px); perspective: 1900px; --spread: 100px; --rx: 54deg; --rz: -36deg; --s: 1; }
.stack__scene {
  position: absolute; left: 50%; top: 52%; width: 440px; height: 310px; margin: -155px 0 0 -220px;
  transform-style: preserve-3d;
  transform: scale(var(--s)) rotateX(var(--rx)) rotateZ(var(--rz));
  transition: transform .7s var(--ease);
}
.plane {
  position: absolute; inset: 0; border-radius: 18px; transform-style: preserve-3d;
  transform: translateZ(calc(var(--i) * var(--spread)));
  transition: transform 1.25s var(--ease) calc(var(--i) * 170ms + 150ms), opacity .7s ease calc(var(--i) * 170ms + 150ms);
}
.stack:not(.is-built) .plane { transform: translateZ(-40px); opacity: 0; }
.stack.is-ready .plane { transition: transform .45s var(--ease); }
.plane__tag { position: absolute; left: -12px; top: -14px; padding: .22rem .6rem; border-radius: 7px; font-size: 12px; font-weight: 700; color: #fff; background: var(--charcoal); white-space: nowrap; }
.plane--data { --i: 0; background: var(--surface); border: 1px solid var(--line-2); box-shadow: 0 50px 80px -30px rgba(33, 35, 46, .45); }
.plane--flow { --i: 1; background: rgba(235, 241, 255, .78); border: 1px solid rgba(16, 91, 255, .4); }
.plane--flow .plane__tag { background: var(--orange); color: var(--charcoal); }
.plane--app { --i: 2; background: var(--surface); border: 1px solid var(--line); box-shadow: 0 30px 60px -28px rgba(16, 91, 255, .55); }
.plane--app .plane__tag { background: var(--blue); }

.p-data { padding: 22px; display: grid; gap: 10px; }
.p-data__title { display: flex; align-items: center; gap: 8px; font-family: var(--mono); font-size: 12px; color: var(--ink-2); margin-bottom: 4px; }
.p-data__title i { width: 10px; height: 10px; border-radius: 3px; background: var(--charcoal); }
.p-data .r { display: grid; grid-template-columns: .5fr 1.3fr .8fr .7fr; gap: 12px; }
.p-data .r i { height: 9px; border-radius: 5px; background: #E3E6ED; }
.p-data .r:first-of-type i { background: #BFC4D0; }
.p-data .r i.b { background: var(--blue-100); }

.p-flow { width: 100%; height: 100%; }
.p-flow rect { fill: #fff; stroke: rgba(16, 91, 255, .45); }
.p-flow path { fill: none; stroke: var(--blue); stroke-width: 2; stroke-dasharray: 5 6; animation: dash 1.4s linear infinite; }
.p-flow text { font-size: 13px; font-weight: 600; fill: var(--ink); }
.p-flow .acc { fill: var(--orange); stroke: none; }

.p-app { display: grid; grid-template-columns: 52px 1fr; height: 100%; border-radius: 17px; overflow: hidden; }
.p-app__side { background: var(--charcoal); display: grid; align-content: start; gap: 12px; padding: 16px 14px; }
.p-app__side i { height: 8px; border-radius: 4px; background: rgba(255, 255, 255, .22); }
.p-app__side i:first-child { width: 24px; height: 24px; border-radius: 7px; background: var(--orange); margin-bottom: 6px; }
.p-app__main { padding: 16px; display: grid; gap: 12px; align-content: start; }
.p-app__title { font-size: 14px; font-weight: 700; }
.p-kpis { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.p-kpis div { border: 1px solid var(--line); border-radius: 8px; padding: 7px 9px; font-size: 10px; color: var(--ink-3); line-height: 1.25; }
.p-kpis b { display: block; font-size: 15px; color: var(--ink); font-stretch: 110%; }
.p-chart { display: flex; align-items: flex-end; gap: 6px; height: 54px; padding: 0 2px; border-bottom: 1px solid var(--line); }
.p-chart i { flex: 1; border-radius: 3px 3px 0 0; background: var(--blue-100); }
.p-chart i:nth-child(6) { background: var(--blue); }
.p-rows { display: grid; gap: 6px; }
.p-rows div { display: grid; grid-template-columns: 1fr 1.4fr .8fr; gap: 10px; align-items: center; }
.p-rows i { height: 7px; border-radius: 4px; background: #E6E8EE; }
.p-rows b { height: 13px; border-radius: 999px; background: var(--orange-50); border: 1px solid #FFD3A1; }
.p-rows div:nth-child(2) b { background: #E6F6EF; border-color: #BFE6D4; }


/* ---------- Logo strip ---------- */
.logos { padding-block: 1.5rem 3.5rem; background: var(--paper); }
.logos__label { font-size: .9375rem; color: var(--ink-3); }
.logos__row { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 1.5rem 2.5rem; margin-top: 1.35rem; color: #7C8090; }
.wordmark { display: inline-flex; align-items: center; gap: .45rem; font-size: 1.3rem; line-height: 1; white-space: nowrap; letter-spacing: -.02em; }
.wordmark svg { width: 22px; height: 22px; }
.wm-1 { font-weight: 800; font-stretch: 125%; letter-spacing: -.05em; }
.wm-2 { font-weight: 400; font-stretch: 85%; letter-spacing: .02em; font-size: 1.4rem; }
.wm-3 { font-weight: 650; font-stretch: 100%; }
.wm-4 { font-weight: 900; font-stretch: 70%; font-size: 1.5rem; letter-spacing: 0; }
.wm-5 { font-weight: 500; font-stretch: 118%; letter-spacing: -.03em; }
.wm-6 { font-weight: 720; font-stretch: 92%; letter-spacing: .04em; font-size: 1.15rem; }

/* ---------- Product tour (tabs) ---------- */
.tabs { display: flex; gap: .25rem; width: max-content; max-width: 100%; padding: .3rem; overflow-x: auto; scrollbar-width: none; background: var(--surface); border: 1px solid var(--line); border-radius: 999px; margin-bottom: 2.5rem; }
.tabs::-webkit-scrollbar { display: none; }
.tab { display: inline-flex; align-items: center; gap: .5rem; padding: .6rem 1.15rem; border: 0; border-radius: 999px; background: none; font-size: .96875rem; font-weight: 620; color: var(--ink-2); cursor: pointer; white-space: nowrap; transition: background-color .2s, color .2s; }
.tab svg { width: 18px; height: 18px; }
.tab:hover { color: var(--ink); }
.tab[aria-selected="true"] { background: var(--inv-bg); color: var(--inv-fg); }
.tabpanel { display: grid; grid-template-columns: minmax(0, .78fr) minmax(0, 1.22fr); gap: clamp(2rem, 5vw, 4.5rem); align-items: center; }
.tabpanel.is-entering .mock { animation: mock-in .55s var(--ease); }
.tabpanel.is-entering .tabpanel__copy { animation: copy-in .45s var(--ease); }
@keyframes mock-in { from { opacity: 0; transform: translateY(14px) scale(.985); } }
@keyframes copy-in { from { opacity: 0; transform: translateX(-10px); } }
.tabpanel__copy .h3 { font-size: clamp(1.5rem, 1.2rem + 1vw, 2rem); font-stretch: 108%; letter-spacing: -.025em; }
.tabpanel__copy p { margin-top: 1rem; color: var(--ink-2); }
.tabpanel__copy .link { display: inline-block; margin-top: 1.5rem; }

.checklist { margin-top: 1.5rem; display: grid; }
.checklist li { display: flex; gap: .75rem; padding: .7rem 0; border-top: 1px solid var(--line); font-size: 1rem; }
.checklist li:last-child { border-bottom: 1px solid var(--line); }
.checklist svg { flex: none; width: 20px; height: 20px; margin-top: .15rem; color: var(--blue-text); }
.on-dark .checklist li { border-color: var(--charcoal-3); }
.on-dark .checklist svg { color: var(--orange); }

/* ---------- Product UI mock frame ---------- */
.mock {
  position: relative; overflow: hidden;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg);
  box-shadow: 0 60px 100px -50px rgba(33, 35, 46, .45), 0 24px 50px -36px rgba(16, 91, 255, .4);
  font-size: .8125rem; line-height: 1.4; color: var(--ink);
}
.mock__bar { display: flex; align-items: center; gap: .5rem; height: 44px; padding: 0 .9rem; border-bottom: 1px solid var(--line); background: var(--surface-2); }
.mock__dots { display: flex; gap: 6px; margin-right: .4rem; }
.mock__dots i { width: 10px; height: 10px; border-radius: 50%; background: #DADDE5; }
.mock__title { font-weight: 650; color: var(--ink); margin-right: auto; }
.m-btn { display: inline-block; padding: .3rem .65rem; border-radius: 7px; background: var(--blue); color: #fff; font-size: .6875rem; font-weight: 650; white-space: nowrap; }
.m-btn--ghost { background: var(--surface); color: var(--ink); border: 1px solid var(--line); }
.m-chip { padding: .2rem .55rem; border-radius: 6px; background: var(--paper); border: 1px solid var(--line); font-family: var(--mono); font-size: .6875rem; color: var(--ink-2); }
.m-status { display: inline-flex; align-items: center; gap: .4rem; font-size: .75rem; font-weight: 600; color: var(--ok); }
.m-status--o { color: var(--orange-ink); }
.m-status--o i { width: 8px; height: 8px; border-radius: 50%; background: var(--orange); box-shadow: 0 0 0 3px var(--orange-50); animation: pulse 1.8s ease-in-out infinite; }
.dot-ok { display: inline-block; flex: none; width: 8px; height: 8px; border-radius: 50%; background: var(--ok); box-shadow: 0 0 0 3px #E2F4EC; }
@keyframes pulse { 50% { box-shadow: 0 0 0 6px rgba(254, 133, 0, .12); } }
@keyframes dash { to { stroke-dashoffset: -22; } }

.m-panel { display: flex; flex-direction: column; gap: .35rem; padding: .9rem; background: var(--surface-2); border-right: 1px solid var(--line); font-size: .75rem; }
.m-panel--props { border-right: 0; border-left: 1px solid var(--line); }
.m-panel__t { font-weight: 700; font-size: .75rem; margin-bottom: .2rem; }
.m-label { margin-top: .4rem; font-size: .6875rem; color: var(--ink-3); }
.m-input { display: block; padding: .35rem .5rem; border: 1px solid var(--line); border-radius: 6px; background: var(--surface); font-size: .6875rem; }

.m-table { position: relative; border: 1px solid var(--line); border-radius: 8px; font-size: .6875rem; }
.m-row { display: grid; grid-template-columns: .8fr 1.1fr .9fr 1.1fr; gap: .4rem; align-items: center; padding: .45rem .6rem; border-top: 1px solid var(--line); }
.m-row--h { border-top: 0; background: var(--surface-2); border-radius: 8px 8px 0 0; color: var(--ink-3); font-weight: 600; }
.pill { display: inline-block; width: max-content; padding: .1rem .45rem; border-radius: 999px; font-size: .625rem; font-weight: 650; }
.pill--o { background: var(--orange-50); color: var(--orange-ink); }
.pill--b { background: var(--blue-50); color: var(--blue-ink); }
.pill--g { background: #E2F4EC; color: #146B48; }

.m-flow { background: radial-gradient(circle at 1px 1px, #D7DAE3 1px, transparent 0) 0 0 / 14px 14px, #F5F6F9; }
.m-flow svg { width: 100%; height: auto; padding: .75rem .5rem 0; }
.fline { fill: none; stroke: #B5BBC9; stroke-width: 1.6; stroke-dasharray: 5 6; animation: dash 1.4s linear infinite; }
.fline--on { stroke: var(--blue); }
.fline__label { font-size: 11px; fill: var(--ink-3); }
.fnode__box { fill: #fff; stroke: #D7DAE3; }
.fnode__t { font-size: 10.5px; fill: var(--ink-3); }
.fnode__v { font-size: 12.5px; font-weight: 650; fill: var(--ink); }
.m-log { display: flex; align-items: center; gap: .55rem; padding: .75rem .95rem; border-top: 1px solid var(--line); background: var(--surface); font-size: .75rem; color: var(--ink-2); }



/* ---------- Steps (a real sequence) ---------- */
.steps { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1.25rem; counter-reset: step; }
.step { position: relative; padding: 2rem 0 0; border-top: 2px solid var(--line); }
.step::before {
  counter-increment: step; content: counter(step);
  position: absolute; top: -17px; left: 0;
  width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center;
  background: var(--surface); border: 2px solid var(--line); font-weight: 750; font-size: .9375rem; color: var(--ink);
}
.step:first-child::before { background: var(--blue); border-color: var(--blue); color: #fff; }
.step p { margin-top: .6rem; color: var(--ink-2); max-width: 34ch; }
.section--paper .step::before { background: var(--paper); }
.section--paper .step:first-child::before { background: var(--blue); }

/* ---------- Feature grid on dark ---------- */
.dark-split { display: grid; grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr); gap: clamp(2.5rem, 6vw, 6rem); align-items: start; }
.dark-split .lead { margin-top: 1.25rem; }
.dark-split .btn { margin-top: 2rem; }
.fgrid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); border-top: 1px solid var(--charcoal-3); }
.fgrid > div { padding: 1.6rem 1.5rem 1.6rem 0; border-bottom: 1px solid var(--charcoal-3); }
.fgrid > div:nth-child(odd) { padding-right: 2rem; border-right: 1px solid var(--charcoal-3); }
.fgrid > div:nth-child(even) { padding-left: 2rem; }
.fgrid svg { width: 24px; height: 24px; color: var(--orange); margin-bottom: 1rem; }
.fgrid h3 { font-size: 1.0625rem; font-weight: 650; color: #fff; letter-spacing: -.01em; }
.fgrid p { margin-top: .4rem; font-size: .9375rem; color: var(--on-dark-2); line-height: 1.55; }
.fgrid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.fgrid--3 > div, .fgrid--3 > div:nth-child(odd), .fgrid--3 > div:nth-child(even) { padding: 1.75rem 1.75rem 1.75rem 0; border-right: 0; }
.fgrid--3 > div:not(:nth-child(3n + 1)) { padding-left: 1.75rem; border-left: 1px solid var(--charcoal-3); }

/* ---------- Hairline grid (use cases) ---------- */
.hgrid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border-top: 1px solid var(--line); border-left: 1px solid var(--line); background: var(--surface); }
.hgrid--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.hgrid > * { display: flex; flex-direction: column; gap: .55rem; padding: clamp(1.5rem, 2.5vw, 2.25rem); border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); text-decoration: none; }
a.hcell { transition: background-color .25s; }
a.hcell:hover { background: var(--surface-hover); }
.hcell svg { width: 26px; height: 26px; color: var(--blue-text); margin-bottom: .75rem; transition: transform .35s var(--ease); }
a.hcell:hover svg { transform: translateY(-3px); }
.hcell p { color: var(--ink-2); font-size: .96875rem; }
.hcell small { margin-top: auto; padding-top: .9rem; font-size: .8125rem; color: var(--ink-3); }

/* ---------- Index list (sectors) ---------- */
.index-list { border-top: 1px solid var(--line); }
.index-row {
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr) auto; gap: 2rem; align-items: center;
  padding: 1.6rem 0; border-bottom: 1px solid var(--line); text-decoration: none;
  transition: padding-left .35s var(--ease), color .2s;
}
.index-row__name { font-size: clamp(1.5rem, 1.05rem + 1.6vw, 2.5rem); font-stretch: 116%; font-weight: 720; letter-spacing: -.035em; line-height: 1.05; }
.index-row__meta { color: var(--ink-2); }
.index-row__go { width: 46px; height: 46px; border-radius: 50%; border: 1px solid var(--line-2); display: grid; place-items: center; transition: background-color .25s, border-color .25s, color .25s, transform .35s var(--ease); }
.index-row__go svg { width: 20px; height: 20px; }
.index-row:hover { padding-left: 1rem; color: var(--blue-text); }
.index-row:hover .index-row__go { background: var(--blue); border-color: var(--blue); color: #fff; transform: rotate(-45deg); }

/* ---------- Integration chips ---------- */
.chips { display: flex; flex-wrap: wrap; gap: .6rem; }
.chip { display: inline-flex; align-items: center; gap: .6rem; padding: .5rem 1rem .5rem .5rem; border: 1px solid var(--line); border-radius: 999px; background: var(--surface); font-size: .9375rem; font-weight: 560; }
.chip i { width: 26px; height: 26px; border-radius: 8px; display: grid; place-items: center; font-style: normal; font-size: .6875rem; font-weight: 800; color: #fff; background: var(--charcoal); }
.chip:nth-child(3n + 2) i { background: var(--blue); }
.chip:nth-child(3n) i { background: var(--orange); color: var(--charcoal); }
.integrations { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: clamp(2rem, 5vw, 5rem); align-items: center; }
.integrations .lead { margin-top: 1.25rem; }
.integrations .link { display: inline-block; margin-top: 1.5rem; }

/* ---------- Resource cards ---------- */
.cards-3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.25rem; }
.res-card {
  display: flex; flex-direction: column; overflow: hidden;
  border: 1px solid var(--line); border-radius: var(--r-md); background: var(--surface); text-decoration: none;
  transition: border-color .25s, transform .35s var(--ease), box-shadow .35s;
}
a.res-card:hover { border-color: var(--ink); transform: translateY(-3px); box-shadow: 0 24px 44px -30px rgba(33, 35, 46, .5); }
.res-card__art { position: relative; aspect-ratio: 16 / 8.5; overflow: hidden; background: var(--paper); border-bottom: 1px solid var(--line); }
.res-card__art::before, .res-card__art::after { content: ""; position: absolute; transition: transform .6s var(--ease); }
a.res-card:hover .res-card__art::after { transform: translate(-6px, -6px) rotate(-4deg); }
.art-rehber { background: var(--dots), var(--blue-50); }
.art-rehber::before { inset: 22% 30% 22% 14%; border-radius: 10px; background: var(--surface); border: 1px solid var(--blue-100); box-shadow: 0 12px 24px -16px rgba(16, 91, 255, .5); }
.art-rehber::after { right: 14%; bottom: 18%; width: 34%; height: 46%; border-radius: 10px; background: var(--blue); }
.art-blog { background: var(--orange-50); }
.art-blog::before { left: 12%; top: 18%; width: 42%; aspect-ratio: 1; border-radius: 50%; background: var(--orange); }
.art-blog::after { right: 12%; bottom: 16%; width: 46%; height: 40%; border-radius: 12px; background: var(--charcoal); }
.art-webinar { background: var(--charcoal); }
.art-webinar::before { inset: 18% 18%; border-radius: 12px; border: 1px solid var(--charcoal-3); background: radial-gradient(circle at 1px 1px, rgba(255, 255, 255, .14) 1px, transparent 0) 0 0 / 14px 14px; }
.art-webinar::after { left: 50%; top: 50%; width: 52px; height: 52px; margin: -26px 0 0 -26px; border-radius: 50%; background: var(--orange); clip-path: polygon(30% 20%, 30% 80%, 80% 50%); }
.art-sablon { background: var(--paper); }
.art-sablon::before { left: 12%; top: 16%; width: 34%; height: 68%; border-radius: 8px; background: var(--surface); border: 1px solid var(--line); }
.art-sablon::after { right: 12%; top: 16%; width: 42%; height: 68%; border-radius: 8px; background: linear-gradient(var(--blue) 0 22%, #fff 22%); border: 1px solid var(--line); }
.art-dokumantasyon { background: var(--surface); }
.art-dokumantasyon::before { left: 10%; top: 20%; right: 10%; height: 60%; border-radius: 8px; background: repeating-linear-gradient(to bottom, var(--line) 0 2px, transparent 2px 16px); }
.art-dokumantasyon::after { left: 10%; top: 20%; width: 30%; height: 10px; border-radius: 5px; background: var(--blue); }
.res-card__body { display: flex; flex: 1; flex-direction: column; gap: .55rem; padding: 1.3rem 1.4rem 1.5rem; }
.res-card__type { font-size: .8125rem; font-weight: 650; color: var(--blue-text); }
.res-card h3 { font-size: 1.125rem; font-weight: 660; line-height: 1.3; letter-spacing: -.012em; }
.res-card p { font-size: .9375rem; color: var(--ink-2); }
.res-card__meta { margin-top: auto; padding-top: .5rem; font-size: .8125rem; color: var(--ink-3); }

/* ---------- CTA band ---------- */
.cta {
  position: relative; overflow: hidden; isolation: isolate;
  display: grid; grid-template-columns: minmax(0, 1.4fr) auto; gap: 2rem; align-items: end;
  padding: clamp(2.5rem, 6vw, 5rem);
  border-radius: var(--r-xl); background: var(--blue); color: #fff;
}
.cta .h2 { max-width: 15ch; }
.cta p { margin-top: 1.1rem; max-width: 46ch; color: rgba(255, 255, 255, .86); font-size: 1.125rem; }
.cta__actions { display: flex; flex-wrap: wrap; gap: .75rem; }
.cta__mark { position: absolute; right: -6%; top: -30%; z-index: -1; width: 46%; aspect-ratio: 1; transform: perspective(900px) rotateY(-28deg) rotateX(14deg); opacity: .18; }
.cta__mark path { stroke-width: 3.2; }

/* ---------- Footer ---------- */
.site-footer { padding-block: 4.5rem 2rem; font-size: .9375rem; color: var(--on-dark-2); }
.footer__top { display: grid; grid-template-columns: minmax(0, 1.5fr) repeat(4, minmax(0, 1fr)); gap: 2.5rem; }
.footer__brand p { margin-top: 1.1rem; max-width: 34ch; }
.footer__contact { display: flex; flex-direction: column; gap: .3rem; }
.footer__contact a { color: #fff; font-weight: 600; text-decoration: none; }
.footer__contact a:hover { text-decoration: underline; text-underline-offset: .25em; }
.footer__col h2 { margin-bottom: .9rem; font-size: .9375rem; font-weight: 650; letter-spacing: 0; color: #fff; }
.footer__col a { display: inline-block; padding: .28rem 0; text-decoration: none; transition: color .15s; }
.footer__col a:hover, .footer__bottom a:hover { color: #fff; }
.footer__bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 1rem; margin-top: 4rem; padding-top: 1.5rem; border-top: 1px solid var(--charcoal-3); font-size: .875rem; }
.footer__bottom a { text-decoration: none; }

/* ---------- Sub-page hero ---------- */
.page-hero { position: relative; overflow: hidden; padding-block: clamp(3.5rem, 7.5vw, 6.5rem) clamp(3rem, 6vw, 5rem); background: var(--dots), var(--paper); border-bottom: 1px solid var(--line); }
.page-hero__grid { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, .8fr); gap: 2rem 4rem; align-items: end; }
.page-hero .h1 { max-width: 15ch; }
.page-hero .lead { margin-top: 1.4rem; }
.page-hero__actions { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: 2rem; }
.jump { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: 2.5rem; }
.jump a { display: inline-flex; align-items: center; gap: .45rem; padding: .5rem .95rem; border: 1px solid var(--line); border-radius: 999px; background: var(--surface); font-size: .9375rem; font-weight: 560; text-decoration: none; transition: border-color .2s, color .2s; }
.jump a:hover { border-color: var(--blue); color: var(--blue-text); }
.jump svg { width: 17px; height: 17px; }

/* ---------- Split rows (platform, sectors) ---------- */
.split { display: grid; grid-template-columns: minmax(0, .82fr) minmax(0, 1.18fr); gap: clamp(2rem, 5vw, 5rem); align-items: center; }
.split--flip > :first-child { order: 2; }
.split + .split { margin-top: clamp(4.5rem, 9vw, 8rem); }
.product-name { display: inline-flex; align-items: center; gap: .55rem; margin-bottom: 1.1rem; font-weight: 680; color: var(--blue-text); }
.product-name svg { width: 22px; height: 22px; }
.split .lead { margin-top: 1.1rem; }
.split .link { display: inline-block; margin-top: 1.75rem; }
.split .lead .link { display: inline; margin-top: 0; }
.flist { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.5rem 2rem; margin-top: 2.25rem; padding-top: 2rem; border-top: 1px solid var(--line); }
.flist h3 { font-size: 1rem; font-weight: 660; letter-spacing: -.005em; }
.flist p { margin-top: .3rem; font-size: .9375rem; line-height: 1.5; color: var(--ink-2); }

/* Deployment options */
.options { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.25rem; }
.option { display: flex; flex-direction: column; gap: 1rem; padding: clamp(1.75rem, 3vw, 2.5rem); border: 1px solid var(--line); border-radius: var(--r-lg); background: var(--surface); }
.option svg.option__icon { width: 34px; height: 34px; color: var(--blue-text); }
.option--dark { background: var(--charcoal); color: var(--on-dark); border-color: var(--charcoal); }
.option--dark svg.option__icon { color: var(--orange); }
.option--dark p { color: var(--on-dark-2); }
.option--dark .checklist li { border-color: var(--charcoal-3); }
.option--dark .checklist svg { color: var(--orange); }
.option p { color: var(--ink-2); }
.option .checklist { margin-top: auto; }

/* Teams / use-case detail blocks */
.blocks { display: grid; gap: 1.25rem; }
.block { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: 1.5rem 3rem; padding: clamp(1.75rem, 3vw, 2.5rem); border: 1px solid var(--line); border-radius: var(--r-lg); background: var(--surface); scroll-margin-top: calc(var(--header-h) + 1.5rem); }
.block__head { display: flex; flex-direction: column; gap: .75rem; }
.block__head svg { width: 30px; height: 30px; color: var(--blue-text); }
.block__head p { color: var(--ink-2); }
.block__examples { display: grid; gap: .6rem; align-content: start; }
.block__examples h4 { font-size: .875rem; font-weight: 620; color: var(--ink-3); }
.tag-list { display: flex; flex-wrap: wrap; gap: .5rem; }
.tag-list li { padding: .4rem .8rem; border-radius: 999px; background: var(--paper); border: 1px solid var(--line); font-size: .9375rem; }
.block__quote { margin-top: .75rem; padding-left: 1rem; border-left: 3px solid var(--orange); color: var(--ink-2); font-size: .96875rem; }

/* Sector sections */
.sector { scroll-margin-top: calc(var(--header-h) + 1rem); }
.sector__lists { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.5rem 2rem; margin-top: 2rem; }
.sector__lists h3 { font-size: .9375rem; font-weight: 650; margin-bottom: .5rem; }
.sector__lists li { padding: .45rem 0; border-top: 1px solid var(--line); font-size: .96875rem; color: var(--ink-2); }

/* ---------- Filters ---------- */
.toolbar { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 1rem; margin-bottom: 2rem; }
.filters { display: flex; flex-wrap: wrap; gap: .5rem; }
.filter { padding: .5rem 1rem; border: 1px solid var(--line); border-radius: 999px; background: var(--surface); font-size: .9375rem; font-weight: 580; cursor: pointer; transition: background-color .2s, border-color .2s, color .2s; }
.filter:hover { border-color: var(--ink-3); }
.filter[aria-pressed="true"] { background: var(--inv-bg); border-color: var(--inv-bg); color: var(--inv-fg); }
.search { position: relative; flex: 0 1 320px; }
.search svg { position: absolute; left: .9rem; top: 50%; width: 18px; height: 18px; transform: translateY(-50%); color: var(--ink-3); pointer-events: none; }
.search input { width: 100%; padding: .7rem 1rem .7rem 2.6rem; border: 1px solid var(--line-2); border-radius: 999px; background: var(--surface); font: inherit; font-size: .96875rem; color: var(--ink); }
.search input:focus { outline: none; border-color: var(--blue); box-shadow: 0 0 0 3px var(--blue-100); }
.result-count { font-size: .875rem; color: var(--ink-3); margin-bottom: 1rem; }
.empty { padding: 3rem 1.5rem; border: 1px dashed var(--line-2); border-radius: var(--r-md); text-align: center; color: var(--ink-2); }
.empty .btn { margin-top: 1rem; }
.grid-auto { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 330px), 1fr)); gap: 1.25rem; }

/* ---------- Pricing ---------- */
.plans { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem; align-items: stretch; }
.plan { position: relative; display: flex; flex-direction: column; gap: 1.25rem; padding: 1.75rem 1.6rem; border: 1px solid var(--line); border-radius: var(--r-lg); background: var(--surface); }
.plan--featured { border-color: var(--blue); box-shadow: 0 0 0 1px var(--blue), 0 40px 70px -45px rgba(16, 91, 255, .75); }
.plan__badge { position: absolute; top: -13px; left: 1.6rem; padding: .2rem .7rem; border-radius: 999px; background: var(--orange); color: var(--charcoal); font-size: .8125rem; font-weight: 700; }
.plan__name { font-size: 1.25rem; font-weight: 720; font-stretch: 108%; letter-spacing: -.02em; }
.plan__desc { margin-top: .35rem; font-size: .9375rem; color: var(--ink-2); min-height: 3em; }
.plan__price { display: flex; align-items: baseline; gap: .4rem; flex-wrap: wrap; }
.plan__price strong { font-size: 2.6rem; font-stretch: 114%; font-weight: 770; letter-spacing: -.045em; line-height: 1; }
.plan__price span { font-size: .875rem; color: var(--ink-3); line-height: 1.3; }
.plan__note { font-size: .8125rem; color: var(--ink-3); min-height: 1.3em; }
.plan .checklist { margin-top: 0; }
.plan .checklist li { font-size: .9375rem; padding: .55rem 0; }
.plan .checklist li:first-child { border-top: 0; }
.plan .checklist li:last-child { border-bottom: 0; }

.compare-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--r-lg); background: var(--surface); }
.compare { width: 100%; min-width: 760px; border-collapse: collapse; font-size: .9375rem; }
.compare th, .compare td { padding: .95rem 1.25rem; text-align: left; border-bottom: 1px solid var(--line); }
.compare thead th { position: sticky; top: 0; background: var(--surface-2); font-weight: 700; font-stretch: 106%; }
.compare tbody th { font-weight: 560; color: var(--ink); }
.compare td { color: var(--ink-2); }
.compare tr:last-child th, .compare tr:last-child td { border-bottom: 0; }
.compare .yes svg { width: 20px; height: 20px; color: var(--blue-text); }
.compare .group th { padding-top: 1.5rem; background: var(--paper); font-size: .8125rem; font-weight: 650; color: var(--ink-3); }

.faq { max-width: 860px; margin-inline: auto; border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; padding: 1.35rem 0; font-size: 1.125rem; font-weight: 640; letter-spacing: -.01em; cursor: pointer; list-style: none; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: ""; flex: none; width: 14px; height: 14px; background: linear-gradient(currentColor, currentColor) center / 100% 2px no-repeat, linear-gradient(currentColor, currentColor) center / 2px 100% no-repeat; transition: transform .3s var(--ease); }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { padding: 0 3rem 1.5rem 0; color: var(--ink-2); max-width: 70ch; }

/* ---------- Contact ---------- */
.contact { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: clamp(2.5rem, 6vw, 6rem); align-items: start; }
.contact .lead { margin-top: 1.4rem; }
.contact__steps { margin-top: 2.5rem; display: grid; gap: 1.5rem; counter-reset: cstep; }
.contact__steps li { position: relative; padding-left: 3.25rem; }
.contact__steps li::before { counter-increment: cstep; content: counter(cstep); position: absolute; left: 0; top: -.15rem; width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; background: var(--surface); border: 1px solid var(--line-2); font-weight: 720; }
.contact__steps li p { margin-top: .25rem; color: var(--ink-2); font-size: .96875rem; }
.contact__mail { margin-top: 2.5rem; padding-top: 1.5rem; border-top: 1px solid var(--line); color: var(--ink-2); }

.form { display: grid; gap: 1.15rem; padding: clamp(1.5rem, 3vw, 2.5rem); border: 1px solid var(--line); border-radius: var(--r-lg); background: var(--surface); box-shadow: 0 50px 90px -60px rgba(33, 35, 46, .5); }
.form__row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.15rem; }
.field label, .field legend { display: block; margin-bottom: .45rem; padding: 0; font-size: .9375rem; font-weight: 620; }
.field fieldset { margin: 0; padding: 0; border: 0; }
.field input, .field select, .field textarea {
  width: 100%; padding: .8rem .95rem;
  border: 1px solid var(--line-2); border-radius: var(--r-sm); background: var(--surface);
  font: inherit; font-size: 1rem; color: var(--ink);
  transition: border-color .15s, box-shadow .15s;
}
.field textarea { min-height: 120px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--blue); box-shadow: 0 0 0 3px var(--blue-100); }
.field input:user-invalid, .field select:user-invalid { border-color: #C93A2A; }
.field__hint { margin-top: .35rem; font-size: .8125rem; color: var(--ink-3); }
.choice-chips { display: flex; flex-wrap: wrap; gap: .5rem; }
.choice-chips label { position: relative; margin: 0; font-weight: 560; }
.choice-chips input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.choice-chips span { display: inline-block; padding: .5rem .95rem; border: 1px solid var(--line-2); border-radius: 999px; font-size: .9375rem; cursor: pointer; transition: background-color .15s, border-color .15s, color .15s; }
.choice-chips input:checked + span { background: var(--blue-50); border-color: var(--blue); color: var(--blue-ink); }
.choice-chips input:focus-visible + span { outline: 3px solid var(--blue); outline-offset: 2px; }
.form__fine { font-size: .8125rem; color: var(--ink-3); }
.form__status { padding: 1rem 1.1rem; border-radius: var(--r-sm); background: var(--ok-bg); color: var(--ok-fg); font-size: .9375rem; }

/* ---------- Responsive ---------- */
@media (max-width: 1180px) {
  .nav, .header__cta { display: none; }
  .menu-toggle { display: block; }
  .footer__top { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .footer__brand { grid-column: 1 / -1; }
}

@media (max-width: 1024px) {
  .hero__grid, .tabpanel, .split, .dark-split, .integrations, .contact, .page-hero__grid, .block { grid-template-columns: 1fr; }
  .split--flip > :first-child { order: 0; }
  .stack { --s: .9; margin-top: 1rem; }
  .section__head { grid-template-columns: 1fr; }
  .hgrid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 3rem; }
  .fgrid--3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .fgrid--3 > div, .fgrid--3 > div:not(:nth-child(3n + 1)) { padding: 1.6rem 1.5rem 1.6rem 0; border-left: 0; }
  .fgrid--3 > div:nth-child(even) { padding-left: 1.75rem; border-left: 1px solid var(--charcoal-3); }
  .cta { grid-template-columns: 1fr; }
}

@media (max-width: 720px) {
  body { font-size: 1rem; }
  .stack { --s: .7; height: 470px; }
  .stack__scene { top: 34%; }
  .steps, .cards-3, .options, .stories, .flist, .sector__lists, .form__row { grid-template-columns: 1fr; }
  .steps { gap: 2.5rem; }
  .hgrid, .fgrid, .fgrid--3 { grid-template-columns: 1fr; }
  .fgrid > div, .fgrid > div:nth-child(odd), .fgrid > div:nth-child(even), .fgrid--3 > div:nth-child(even) { padding: 1.4rem 0; border-right: 0; border-left: 0; }
  .index-row { grid-template-columns: minmax(0, 1fr) auto; gap: .5rem 1rem; }
  .index-row__meta { grid-column: 1; grid-row: 2; font-size: .9375rem; }
  .index-row__go { grid-row: 1 / span 2; grid-column: 2; }
  .plans { grid-template-columns: 1fr; }
  .footer__top { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .faq details p { padding-right: 0; }
  .toolbar { flex-direction: column; align-items: stretch; }
  .search { flex-basis: auto; }
}

@media (max-width: 420px) {
  .stack { --s: .6; height: 430px; }
  .hero__actions .btn, .page-hero__actions .btn { width: 100%; }
}

/* ---------- Software mocks: enterprise, education, CRM, web, project ---------- */
.m-ent { display: grid; grid-template-columns: 150px minmax(0, 1fr); }
.m-nav ul { display: grid; gap: .1rem; }
.m-nav li { display: flex; align-items: center; gap: .5rem; padding: .42rem .5rem; border-radius: 6px; color: var(--ink-2); }
.m-nav svg { width: 14px; height: 14px; flex: none; }
.m-nav .is-on { background: var(--blue-50); color: var(--blue-ink); font-weight: 600; }
.m-nav .is-done { color: var(--ok); }
.m-main { display: grid; gap: .9rem; align-content: start; padding: 1rem; background: var(--surface); }
.m-kpis { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .6rem; }
.m-kpis div { padding: .6rem .7rem; border: 1px solid var(--line); border-radius: 8px; }
.m-kpis span { display: block; font-size: .6875rem; color: var(--ink-3); }
.m-kpis b { font-size: 1.05rem; font-stretch: 108%; letter-spacing: -.02em; white-space: nowrap; }
.m-row--edu { grid-template-columns: 1.1fr 1.2fr .45fr .7fr; }
.m-prog { height: 6px; border-radius: 3px; background: #E6E8EE; overflow: hidden; }
.m-prog i { display: block; height: 100%; border-radius: 3px; background: var(--blue); }

.m-kanban { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: .6rem; min-height: 350px; padding: .9rem; background: #F5F6F9; }
.m-col { display: grid; gap: .5rem; align-content: start; }
.m-col p { display: flex; justify-content: space-between; padding: 0 .2rem .2rem; font-size: .75rem; font-weight: 650; }
.m-col p b { color: var(--ink-3); font-weight: 600; }
.m-deal { display: grid; gap: .15rem; padding: .6rem .65rem; border: 1px solid var(--line); border-radius: 8px; background: var(--surface); box-shadow: 0 3px 8px -6px rgba(33, 35, 46, .35); }
.m-deal strong { font-size: .75rem; }
.m-deal > span { font-size: .6875rem; color: var(--ink-2); }
.m-deal div { display: flex; align-items: center; justify-content: space-between; gap: .3rem; margin-top: .35rem; }
.m-deal i { width: 20px; height: 20px; flex: none; border-radius: 50%; display: grid; place-items: center; background: var(--charcoal); color: #fff; font-style: normal; font-size: .5625rem; font-weight: 700; }
.m-deal em { font-style: normal; white-space: nowrap; }
.m-col:last-child .m-deal { border-color: #BFE6D4; }

.m-url { display: inline-flex; align-items: center; gap: .35rem; padding: .22rem .75rem; border: 1px solid var(--line); border-radius: 999px; background: var(--surface); font-weight: 500; font-size: .75rem; color: var(--ink-2); }
.m-url svg { width: 12px; height: 12px; color: var(--ok); }
.m-web { display: grid; grid-template-columns: minmax(0, 1fr) 170px; min-height: 350px; }
.m-site { display: grid; gap: 1rem; align-content: start; padding: 1rem 1.1rem; background: var(--surface); }
.m-site__nav { display: flex; align-items: center; gap: .65rem; }
.m-site__nav b { width: 22px; height: 22px; border-radius: 6px; background: var(--charcoal); }
.m-site__nav i { width: 38px; height: 6px; border-radius: 3px; background: #E3E6ED; }
.m-site__nav span { width: 64px; height: 22px; margin-left: auto; border-radius: 999px; background: var(--orange); }
.m-site__hero { display: grid; gap: .5rem; padding: 1.3rem 1.2rem; border-radius: 10px; background: var(--dots), var(--blue-50); }
.m-site__hero i { width: 80%; height: 13px; border-radius: 7px; background: var(--charcoal); }
.m-site__hero i:nth-child(2) { width: 58%; }
.m-site__hero i.sub { width: 70%; height: 7px; margin-top: .25rem; background: #9AA0B0; }
.m-site__hero span { width: 96px; height: 26px; margin-top: .35rem; border-radius: 999px; background: var(--blue); }
.m-site__cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .6rem; }
.m-site__cards div { height: 74px; border: 1px solid var(--line); border-radius: 8px; background: linear-gradient(var(--paper) 0 46%, #fff 46%); }
.m-score { display: flex; align-items: center; gap: .65rem; padding: .3rem 0; }
.m-score b { width: 40px; height: 40px; flex: none; border-radius: 50%; display: grid; place-items: center; font-size: .75rem; color: #146B48; background: radial-gradient(closest-side, #fff 77%, transparent 79% 100%), conic-gradient(var(--ok) calc(var(--v) * 1%), #E2F4EC 0); }

.m-proj { display: grid; gap: 1.1rem; align-content: start; min-height: 350px; padding: 1.1rem 1.2rem; background: var(--surface); }
.m-gantt { display: grid; gap: .1rem; }
.m-phase { display: grid; grid-template-columns: 112px minmax(0, 1fr); gap: .8rem; align-items: center; padding: .42rem 0; font-size: .75rem; }
.m-phase--head div { display: flex; justify-content: space-between; color: var(--ink-3); font-size: .625rem; }
.m-phase--head i { font-style: normal; }
.m-track { position: relative; height: 16px; border-radius: 5px; background: repeating-linear-gradient(90deg, #F2F3F6 0 calc(25% - 1px), var(--line) calc(25% - 1px) 25%); }
.m-track i { position: absolute; top: 0; bottom: 0; border-radius: 5px; background: #CDD0DA; }
.is-done .m-track i { background: var(--charcoal); }
.is-now span { font-weight: 650; color: var(--blue-ink); }
.is-now .m-track i { background: linear-gradient(90deg, var(--blue) 0 58%, var(--blue-100) 58%); }
.m-updates { padding-top: .9rem; border-top: 1px solid var(--line); }
.m-updates ul { display: grid; gap: .3rem; margin-top: .4rem; }
.m-updates li { display: flex; align-items: center; gap: .55rem; padding: .42rem .55rem; border-radius: 8px; font-size: .75rem; }
.m-updates b { width: 9px; height: 9px; flex: none; border-radius: 50%; background: var(--ok); box-shadow: 0 0 0 3px #E2F4EC; }
.m-updates .is-wait { background: var(--orange-50); color: var(--orange-ink); font-weight: 600; }
.m-updates .is-wait b { background: var(--orange); box-shadow: 0 0 0 3px #FFE1BF; animation: pulse 1.8s ease-in-out infinite; }

@media (max-width: 720px) {
  .m-ent { grid-template-columns: minmax(0, 1fr); }
  .m-ent .m-nav, .m-web .m-scores { display: none; }
  .m-web { grid-template-columns: minmax(0, 1fr); }
  .m-kanban { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .m-kanban .m-col:nth-child(n + 3) { display: none; }
  .m-kpis b { font-size: .9rem; }
  .m-phase { grid-template-columns: 92px minmax(0, 1fr); }
}

/* ---------- Work (real references) ---------- */
.works { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.25rem; }
.work-card { display: flex; flex-direction: column; overflow: hidden; border: 1px solid var(--line); border-radius: var(--r-lg); background: var(--surface); scroll-margin-top: calc(var(--header-h) + 1.5rem); transition: border-color .25s, box-shadow .35s; }
.work-card:hover { border-color: var(--ink-3); box-shadow: 0 28px 50px -34px rgba(33, 35, 46, .55); }
.work-card__shots { position: relative; aspect-ratio: 16 / 11; overflow: hidden; padding: 1.25rem 1.25rem 0; background: var(--dots), var(--paper); border-bottom: 1px solid var(--line); }
.work-card__desk { width: 100%; height: auto; border: 1px solid var(--line); border-radius: 10px 10px 0 0; box-shadow: 0 20px 40px -26px rgba(33, 35, 46, .6); transition: transform .5s var(--ease); }
.work-card__mob { position: absolute; right: 1.1rem; top: 32%; width: 24%; height: auto; border: 3px solid var(--charcoal); border-radius: 12px; box-shadow: 0 18px 32px -16px rgba(33, 35, 46, .6); transition: transform .5s var(--ease); }
.work-card:hover .work-card__desk { transform: translateY(-4px); }
.work-card:hover .work-card__mob { transform: translateY(-10px); }
.work-card__body { display: flex; flex: 1; flex-direction: column; gap: .45rem; padding: 1.4rem 1.5rem 1.6rem; }
.work-card__sector { font-size: .8125rem; font-weight: 650; color: var(--blue-text); }
.work-card h3 { font-size: 1.3rem; font-weight: 720; font-stretch: 106%; letter-spacing: -.02em; }
.work-card p { font-size: .9375rem; color: var(--ink-2); }
.work-card__link { display: inline-flex; align-items: center; gap: .4rem; margin-top: auto; padding-top: .75rem; color: var(--blue-text); font-weight: 620; text-decoration: none; }
.work-card__link:hover { text-decoration: underline; text-underline-offset: .25em; }
.work-card__link svg { width: 16px; height: 16px; }

/* Product band on dark */
.on-dark .product-name { color: var(--blue-on-dark); }
.on-dark .flist { border-color: var(--charcoal-3); }
.on-dark .flist h3 { color: #fff; }
.on-dark .flist p { color: var(--on-dark-2); }
.on-dark .split .btn { margin-top: 2rem; }
.m-row .mono { font-family: var(--mono); }
.m-alert { display: flex; align-items: center; gap: .5rem; padding: .5rem .7rem; border-radius: 8px; background: var(--orange-50); color: var(--orange-ink); font-size: .75rem; font-weight: 600; }
.m-alert b { width: 8px; height: 8px; flex: none; border-radius: 50%; background: var(--orange); animation: pulse 1.8s ease-in-out infinite; }

@media (max-width: 1024px) { .works { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 720px) { .works { grid-template-columns: 1fr; } }

/* Product edition badges and captioned mocks */
.badge { align-self: flex-start; margin-bottom: .2rem; padding: .15rem .6rem; border-radius: 999px; background: var(--blue-50); color: var(--blue-ink); font-size: .75rem; font-weight: 650; }
.badge--ok { background: var(--ok-bg); color: var(--ok-fg); }
.mock-figure { margin: 0; }
.mock-figure figcaption { margin-top: 1rem; font-size: .875rem; color: var(--ink-3); text-align: center; }
.on-dark .mock-figure figcaption { color: var(--on-dark-2); }

/* ---------- Hero, modern layer ---------- */
.hero__bg { position: absolute; inset: 0; z-index: -1; overflow: hidden; pointer-events: none; }
.hero__bg::before { content: ""; position: absolute; inset: 0; background: var(--dots); -webkit-mask-image: radial-gradient(ellipse 75% 65% at 62% 42%, #000 25%, transparent 78%); mask-image: radial-gradient(ellipse 75% 65% at 62% 42%, #000 25%, transparent 78%); }
.hero__glow { position: absolute; border-radius: 50%; filter: blur(70px); animation: glow-drift 18s ease-in-out infinite alternate; }
.hero__glow--a { right: -120px; top: -160px; width: 620px; height: 620px; background: radial-gradient(circle, rgba(16, 91, 255, .32), transparent 66%); }
.hero__glow--b { right: 26%; bottom: -220px; width: 520px; height: 520px; background: radial-gradient(circle, rgba(254, 133, 0, .26), transparent 66%); animation-delay: -7s; }
@keyframes glow-drift { to { transform: translate(-60px, 40px) scale(1.1); } }

.hero__title .w { display: inline-block; opacity: 0; transform: translateY(.3em); filter: blur(8px); animation: word-in .85s var(--ease) forwards; animation-delay: calc(var(--i) * 85ms + 80ms); }
@keyframes word-in { to { opacity: 1; transform: none; filter: none; } }
.hero__copy > :not(h1) { animation: rise-in .8s var(--ease) both; animation-delay: .55s; }
.hero__copy > .announce { animation-delay: 0s; }
@keyframes rise-in { from { opacity: 0; transform: translateY(12px); } }

.announce { background: var(--glass); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); border-color: var(--glass-bd); box-shadow: 0 10px 30px -18px rgba(16, 91, 255, .45); }
.announce b { background: linear-gradient(135deg, var(--blue), #4F86FF); }
.btn--glass { --bg: var(--glass); --fg: var(--ink); --bd: var(--glass-bd); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); }
.btn--glass:hover { --bd: var(--ink); --bg: var(--glass-strong); }
.btn--primary svg { transition: transform .25s var(--ease); }
.btn--primary:hover svg { transform: translateX(3px); }
.hero__proof { display: flex; flex-wrap: wrap; gap: .5rem 1.4rem; margin-top: 1.6rem; font-size: .9rem; color: var(--ink-2); }
.hero__proof li { display: inline-flex; align-items: center; gap: .4rem; }
.hero__proof svg { width: 16px; height: 16px; color: var(--ok); }

/* Live activity feed (decorative; replaces the old note card so nothing looks clickable) */
.feed {
  position: absolute; right: 0; bottom: 2%; z-index: 2; width: min(330px, 82%);
  padding: .85rem; border-radius: 18px;
  background: rgba(255, 255, 255, .7); -webkit-backdrop-filter: blur(16px) saturate(1.4); backdrop-filter: blur(16px) saturate(1.4);
  border: 1px solid rgba(255, 255, 255, .85);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .9), 0 0 0 1px rgba(33, 35, 46, .06), 0 34px 60px -30px rgba(33, 35, 46, .5);
  opacity: 0; transform: translateY(14px); transition: opacity .6s ease 1.3s, transform .9s var(--ease) 1.3s;
}
.stack.is-built .feed { opacity: 1; transform: none; }
.feed__head { display: flex; align-items: center; gap: .5rem; margin: 0 .2rem .6rem; font-size: .75rem; font-weight: 650; color: var(--ink-3); }
.feed__live { width: 8px; height: 8px; border-radius: 50%; background: var(--ok); animation: live-ping 2s ease-out infinite; }
@keyframes live-ping { 0% { box-shadow: 0 0 0 0 rgba(31, 157, 107, .5); } 70%, 100% { box-shadow: 0 0 0 8px rgba(31, 157, 107, 0); } }
.feed__list { display: grid; gap: .4rem; }
.feed__item { display: grid; grid-template-columns: 32px minmax(0, 1fr) auto; gap: .65rem; align-items: center; padding: .55rem .6rem; border: 1px solid var(--line); border-radius: 12px; background: var(--surface); font-size: .78rem; line-height: 1.35; color: var(--ink-2); }
.feed__item:nth-child(n + 4) { display: none; }
.feed__item strong { display: block; font-size: .8rem; color: var(--ink); }
.feed__item time { align-self: start; font-size: .7rem; color: var(--ink-3); white-space: nowrap; }
.feed__icon { width: 32px; height: 32px; display: grid; place-items: center; border-radius: 9px; background: var(--blue-50); color: var(--blue-text); }
.feed__icon svg { width: 17px; height: 17px; }
.feed__item[data-tone="o"] .feed__icon { background: var(--orange-50); color: var(--orange-ink); }
.feed__item[data-tone="g"] .feed__icon { background: #E2F4EC; color: #146B48; }
.feed__item.is-new { animation: feed-in .6s var(--ease); }
@keyframes feed-in { from { opacity: 0; transform: translateY(-10px) scale(.97); } }

@media (max-width: 720px) {
  .feed { right: 50%; width: min(310px, 94%); transform: translate(50%, 14px); }
  .stack.is-built .feed { transform: translate(50%, 0); }
  .feed__item:nth-child(n + 3) { display: none; }
  .hero__proof { font-size: .85rem; }
}

/* =========================================================
   Motion system. JS adds .reveal only to blocks that start below the fold,
   then .is-in when they scroll into view; .reveal is removed once settled.
   Runs regardless of the OS reduce-motion preference (owner decision).
   ========================================================= */
.reveal > * { opacity: 0; transform: translateY(26px); transition: opacity .7s var(--ease), transform .9s var(--ease); transition-delay: calc(var(--i, 0) * 70ms); }
.reveal.is-in > * { opacity: 1; transform: none; }
.index-list.reveal > * { transform: translateX(-36px); }
.reveal > .h2 { opacity: 1; transform: none; }
.reveal > .cta__mark { opacity: .18; transform: perspective(900px) rotateY(-28deg) rotateX(14deg); }

/* Headings rise out of a mask, word by word */
.wm { display: inline-block; overflow: hidden; vertical-align: top; padding-block: .12em; margin-block: -.12em; }
.wm > span { display: inline-block; transition: transform .95s var(--ease); transition-delay: calc(var(--w, 0) * 45ms + 60ms); }
.reveal .wm > span { transform: translateY(115%); }
.reveal.is-in .wm > span { transform: none; }

/* Software screens lift from a 3D tilt */
.mock.reveal, .mock-figure.reveal > .mock { opacity: 0; transform: perspective(1400px) rotateX(16deg) translateY(50px) scale(.95); transform-origin: 50% 100%; transition: opacity .8s var(--ease), transform 1.1s var(--ease); }
.mock.reveal > * { opacity: 1; transform: none; }
.mock.reveal.is-in, .mock-figure.reveal.is-in > .mock { opacity: 1; transform: none; }
:is(.mock.reveal, .mock-figure.reveal) :is(.m-row, .m-deal) { opacity: 0; transform: translateY(8px); transition: opacity .5s ease, transform .6s var(--ease); }
:is(.mock.reveal, .mock-figure.reveal).is-in :is(.m-row, .m-deal) { opacity: 1; transform: none; }
.mock :is(.m-row, .m-deal):nth-child(2) { transition-delay: .45s; }
.mock :is(.m-row, .m-deal):nth-child(3) { transition-delay: .55s; }
.mock :is(.m-row, .m-deal):nth-child(4) { transition-delay: .65s; }
.mock .m-row:nth-child(5) { transition-delay: .75s; }

/* Icons draw their strokes */
.icon-draw :is(path, circle, rect, ellipse) { stroke-dasharray: 1; stroke-dashoffset: 1; transition: stroke-dashoffset 1.3s var(--ease); transition-delay: calc(var(--i, 0) * 80ms + .25s); }
.is-in .icon-draw :is(path, circle, rect, ellipse) { stroke-dashoffset: 0; }

/* Process: a gradient line runs across, step numbers light up in order */
.steps.has-line { position: relative; }
.steps.has-line::after { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 2px; background: linear-gradient(90deg, var(--blue), var(--orange)); transform: scaleX(0); transform-origin: left; transition: transform 1.8s var(--ease) .2s; }
.steps.has-line.is-in::after { transform: scaleX(1); }
.step::before { transition: background-color .4s ease, border-color .4s ease, color .4s ease; transition-delay: calc(var(--i, 0) * 350ms + .5s); }
.steps.has-line.is-in .step::before { background: var(--blue); border-color: var(--blue); color: #fff; }

/* CTA: the X strokes slide in from opposite corners, a sheen crosses the band */
.cta__mark path { transform-box: fill-box; transition: transform 1.2s var(--ease), opacity .8s ease; }
.reveal .cta__mark path:first-child { transform: translate(-40%, -40%); opacity: 0; }
.reveal .cta__mark path:last-child { transform: translate(40%, 40%); opacity: 0; }
.reveal.is-in .cta__mark path { transform: none; opacity: 1; }
.cta::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(115deg, transparent 35%, rgba(255, 255, 255, .14) 50%, transparent 65%); background-size: 250% 100%; animation: sheen 7s ease-in-out infinite; pointer-events: none; }
@keyframes sheen { 0%, 30% { background-position: 120% 0; } 70%, 100% { background-position: -20% 0; } }

/* Cursor-following light on cards */
:is(.hcell, .work-card, .plan, .block, .option, .res-card, .fgrid > div) { position: relative; }
:is(.hcell, .work-card, .plan, .block, .option, .res-card, .fgrid > div)::after {
  content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none; opacity: 0; transition: opacity .35s ease;
  background: radial-gradient(380px circle at var(--mx, 50%) var(--my, 50%), rgba(16, 91, 255, .09), transparent 45%);
}
:is(.option--dark, .fgrid > div)::after { background: radial-gradient(380px circle at var(--mx, 50%) var(--my, 50%), rgba(254, 133, 0, .12), transparent 45%); }
:is(.hcell, .work-card, .plan, .block, .option, .res-card, .fgrid > div):hover::after { opacity: 1; }

/* Primary buttons: a light sheen passes on hover */
.btn--primary { position: relative; overflow: hidden; isolation: isolate; }
.btn--primary::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(110deg, transparent 30%, rgba(255, 255, 255, .6) 50%, transparent 70%); transform: translateX(-130%); transition: transform .75s var(--ease); }
.btn--primary:hover::before { transform: translateX(130%); }

/* Technology strip as an endless marquee */
.marquee { display: flex; overflow: hidden; margin-top: 1.35rem; -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); }
.marquee .logos__row { flex: none; flex-wrap: nowrap; justify-content: flex-start; gap: 4.5rem; margin-top: 0; padding-right: 4.5rem; animation: marquee 30s linear infinite; }
.marquee:hover .logos__row { animation-play-state: paused; }
@keyframes marquee { to { transform: translateX(-100%); } }

/* Slow aurora behind dark sections */
.section.on-dark { position: relative; overflow: hidden; isolation: isolate; }
.section.on-dark::before { content: ""; position: absolute; inset: -25%; z-index: -1; pointer-events: none; background: radial-gradient(38% 45% at 18% 28%, rgba(16, 91, 255, .24), transparent 70%), radial-gradient(32% 40% at 82% 72%, rgba(254, 133, 0, .14), transparent 70%); animation: aurora 22s ease-in-out infinite alternate; }
@keyframes aurora { to { transform: translate(7%, -5%) rotate(10deg) scale(1.08); } }

/* Featured plan: rotating light around the border */
@property --ang { syntax: "<angle>"; inherits: false; initial-value: 0deg; }
.plan--featured::before { content: ""; position: absolute; inset: -1px; z-index: 1; border-radius: inherit; padding: 2px; pointer-events: none; background: conic-gradient(from var(--ang), var(--blue), var(--orange), #7FA6FF, var(--blue)); -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask-composite: exclude; animation: spin-border 6s linear infinite; }
@keyframes spin-border { to { --ang: 360deg; } }

/* Mega menu items cascade in */
.mega.is-open .mega__list > li { animation: mega-in .45s var(--ease) both; animation-delay: calc(var(--i, 0) * 35ms + 40ms); }
.mega.is-open .mega__feature { animation: mega-in .55s var(--ease) both .12s; }
@keyframes mega-in { from { opacity: 0; transform: translateY(8px); } }

/* FAQ answers glide open where the browser supports it */
@supports selector(::details-content) {
  :root { interpolate-size: allow-keywords; }
  .faq details::details-content { block-size: 0; overflow-y: clip; transition: block-size .45s var(--ease), content-visibility .45s allow-discrete; }
  .faq details[open]::details-content { block-size: auto; }
}

/* Sub-page heroes: same word entrance and drifting light as the home hero */
h1 .w { display: inline-block; opacity: 0; transform: translateY(.3em); filter: blur(8px); animation: word-in .85s var(--ease) forwards; animation-delay: calc(var(--i) * 85ms + 80ms); }
.page-hero { isolation: isolate; }
.page-hero::before, .page-hero::after { content: ""; position: absolute; z-index: -1; border-radius: 50%; filter: blur(60px); pointer-events: none; animation: glow-drift 18s ease-in-out infinite alternate; }
.page-hero::before { right: -8%; top: -45%; width: 48%; aspect-ratio: 1; background: radial-gradient(circle, rgba(16, 91, 255, .22), transparent 65%); }
.page-hero::after { right: 30%; bottom: -60%; width: 36%; aspect-ratio: 1; background: radial-gradient(circle, rgba(254, 133, 0, .16), transparent 65%); animation-delay: -8s; }
:is(.page-hero__grid > div, .contact > div) > :not(h1), .page-hero__actions, .page-hero .jump, .contact > .form { animation: rise-in .8s var(--ease) both .45s; }

/* Reading progress under the header */
@supports (animation-timeline: scroll()) {
  .site-header::after { content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 2px; background: linear-gradient(90deg, var(--blue), var(--orange)); transform: scaleX(0); transform-origin: 0 50%; animation: read-progress linear both; animation-timeline: scroll(root); }
  @keyframes read-progress { to { transform: scaleX(1); } }
}
.plan__badge { z-index: 2; }

/* =========================================================
   Dark theme. Product screens (.mock) and the hero layer stack keep their light
   palette on purpose: they read as real app windows on a dark canvas.
   ========================================================= */
[data-theme="dark"] {
  color-scheme: dark;
  --bg: #13141B;
  --paper: #191B24;
  --surface: #1E2130;
  --surface-2: #242838;
  --surface-hover: #262A3B;
  --line: #2E3243;
  --line-2: #40455A;
  --ink: #F1F2F6;
  --ink-2: #B3B7C6;
  --ink-3: #8C91A3;
  --blue-50: rgba(16, 91, 255, .16);
  --blue-100: rgba(16, 91, 255, .32);
  --blue-ink: #A9C2FF;
  --blue-text: #86AAFF;
  --orange-50: rgba(254, 133, 0, .14);
  --orange-ink: #FFB066;
  --header-bg: rgba(19, 20, 27, .78);
  --header-bg-solid: rgba(19, 20, 27, .96);
  --glass: rgba(255, 255, 255, .06);
  --glass-strong: rgba(255, 255, 255, .12);
  --glass-bd: rgba(255, 255, 255, .14);
  --inv-bg: #F1F2F6;
  --inv-fg: #13141B;
  --inv-hover: #D6D8E1;
  --ok-bg: rgba(31, 157, 107, .16);
  --ok-fg: #7FD8B0;
  --brand-knock: #13141B;
  --dots: radial-gradient(circle at 1px 1px, rgba(255, 255, 255, .075) 1px, transparent 0) 0 0 / 24px 24px;
}
[data-theme="dark"] :is(.mock, .stack) {
  --surface: #fff; --surface-2: #FAFBFC; --surface-hover: #F4F5F8; --paper: #F4F5F8;
  --line: #E1E3EA; --line-2: #CDD0DA; --ink: #21232E; --ink-2: #4A4E5E; --ink-3: #646979;
  --blue-50: #EBF1FF; --blue-100: #D6E3FF; --blue-ink: #0A45CC; --blue-text: #105BFF;
  --orange-50: #FFF3E5; --orange-ink: #A85500; --ok-bg: #E2F4EC; --ok-fg: #146B48;
  --glass: rgba(255, 255, 255, .72); --glass-bd: rgba(33, 35, 46, .12);
  --dots: radial-gradient(circle at 1px 1px, rgba(33, 35, 46, .14) 1px, transparent 0) 0 0 / 24px 24px;
  color: var(--ink);
}
[data-theme="dark"] .mock { box-shadow: 0 60px 100px -50px rgba(0, 0, 0, .8), 0 24px 60px -30px rgba(16, 91, 255, .45); }
[data-theme="dark"] :is(.mega__feature, .option--dark) { background: #262A3B; border: 1px solid var(--line); }
[data-theme="dark"] .logos__row { color: #7D8296; }
[data-theme="dark"] .hero__glow--a { background: radial-gradient(circle, rgba(16, 91, 255, .4), transparent 66%); }
[data-theme="dark"] .hero__glow--b { background: radial-gradient(circle, rgba(254, 133, 0, .22), transparent 66%); }
[data-theme="dark"] :is(.hcell, .work-card, .plan, .block, .option, .res-card)::after { background: radial-gradient(380px circle at var(--mx, 50%) var(--my, 50%), rgba(134, 170, 255, .1), transparent 45%); }
[data-theme="dark"] .work-card:hover { border-color: var(--line-2); box-shadow: 0 28px 50px -30px rgba(0, 0, 0, .8); }
[data-theme="dark"] .field input:focus, [data-theme="dark"] .field select:focus, [data-theme="dark"] .field textarea:focus, [data-theme="dark"] .search input:focus { box-shadow: 0 0 0 3px rgba(16, 91, 255, .35); }

/* Theme toggle */
.theme-toggle { width: 40px; height: 40px; flex: none; display: grid; place-items: center; border: 1px solid var(--line); border-radius: 12px; background: var(--surface); color: var(--ink); cursor: pointer; transition: border-color .2s, background-color .2s; }
.theme-toggle:hover { border-color: var(--ink-3); }
.theme-toggle svg { grid-area: 1 / 1; width: 18px; height: 18px; transition: transform .5s var(--ease), opacity .3s ease; }
.theme-toggle__sun { opacity: 0; transform: rotate(-90deg) scale(.4); }
[data-theme="dark"] .theme-toggle__sun { opacity: 1; transform: none; }
[data-theme="dark"] .theme-toggle__moon { opacity: 0; transform: rotate(90deg) scale(.4); }

/* Theme switch: the new theme spreads from the toggle (View Transitions; instant elsewhere) */
::view-transition-old(root), ::view-transition-new(root) { animation: none; mix-blend-mode: normal; }
/* Step numbers sit above the animated progress line */
.step::before { z-index: 1; }
.steps.has-line::after { z-index: 0; }
/* CTA secondary button keeps its text readable over the decorative X */
.cta .btn--ghost { --bg: rgba(8, 26, 84, .38); --bd: rgba(255, 255, 255, .5); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); }
.cta .btn--ghost:hover { --bg: rgba(8, 26, 84, .55); --bd: #fff; }
