@font-face {
  font-family: "Onest";
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url("assets/fonts/onest-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  --ink: #1b2638;
  --ink-2: #4a5568;
  --navy: #374b66;
  --blue: #3f5f92;
  --blue-hover: #34507d;
  --blue-mid: #6687b6;
  --blue-light: #729ad4;
  --blue-pale: #c9d8ee;
  --line: #e3e8f0;
  --tint: #f6f8fb;
  --white: #ffffff;
  --up: #1b7a4e;
  --down: #b4373a;

  --radius: 12px;
  --radius-sm: 10px;
  --shadow-1: 0 1px 2px rgba(27, 38, 56, .06), 0 4px 14px rgba(27, 38, 56, .06);
  --shadow-2: 0 2px 4px rgba(27, 38, 56, .06), 0 18px 40px rgba(27, 38, 56, .12);
  --ease-out: cubic-bezier(.22, 1, .36, 1);
  --font: "Onest", system-ui, -apple-system, "Segoe UI", sans-serif;
  --wrap: 1180px;
  --gutter: clamp(16px, 4vw, 40px);
  --section: clamp(72px, 10vw, 128px);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 88px; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--white);
  color: var(--ink);
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img { display: block; max-width: 100%; height: auto; }
picture { display: contents; }
h1, h2, h3 { margin: 0; color: var(--ink); text-wrap: balance; }
p { margin: 0; text-wrap: pretty; }
a { color: var(--blue); text-underline-offset: 3px; text-decoration-thickness: 1px; }
::selection { background: var(--blue-pale); color: var(--ink); }
:focus-visible { outline: 2px solid var(--blue); outline-offset: 3px; border-radius: 6px; }
.tnum { font-variant-numeric: tabular-nums; }

html { scrollbar-color: var(--blue-pale) var(--white); }
::-webkit-scrollbar { width: 12px; }
::-webkit-scrollbar-track { background: var(--white); }
::-webkit-scrollbar-thumb { background: var(--blue-pale); border: 3px solid var(--white); border-radius: 8px; }

.skip { position: absolute; left: -999px; top: 8px; background: var(--ink); color: #fff; padding: 8px 14px; border-radius: 8px; z-index: 100; }
.skip:focus { left: 8px; }

.wrap { width: 100%; max-width: calc(var(--wrap) + 2 * var(--gutter)); margin: 0 auto; padding: 0 var(--gutter); }

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: #fff;
  border-bottom: 1px solid transparent;
  transition: border-color .3s var(--ease-out), box-shadow .3s var(--ease-out);
}
.site-header.scrolled { border-bottom-color: var(--line); box-shadow: 0 6px 20px rgba(27, 38, 56, .05); }
.header-inner { display: flex; align-items: center; gap: 32px; height: 84px; }
.brand img { height: 68px; width: auto; }
nav { margin-left: auto; }
.nav-links { display: flex; gap: 6px; list-style: none; margin: 0; padding: 0; }
.nav-links a {
  display: block; padding: 8px 14px; border-radius: 8px;
  color: var(--ink-2); font-size: 15px; font-weight: 500; text-decoration: none;
  transition: color .2s var(--ease-out), background-color .2s var(--ease-out);
}
.nav-links a:hover { color: var(--ink); background: var(--tint); }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  min-height: 50px; padding: 0 22px;
  border-radius: 10px; border: 1px solid transparent;
  font: 600 16px/1 var(--font); text-decoration: none; white-space: nowrap;
  transition: background-color .2s var(--ease-out), border-color .2s var(--ease-out), color .2s var(--ease-out), transform .2s var(--ease-out), box-shadow .2s var(--ease-out);
}
.btn svg { width: 19px; height: 19px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; flex: none; }
.btn:active { transform: translateY(1px) scale(.99); }
.btn-sm { min-height: 42px; padding: 0 18px; font-size: 15px; }
.btn-primary { background: var(--blue); color: #fff; box-shadow: 0 1px 2px rgba(27,38,56,.12), 0 6px 16px rgba(63,95,146,.22); }
.btn-primary:hover { background: var(--blue-hover); box-shadow: 0 1px 2px rgba(27,38,56,.12), 0 10px 22px rgba(63,95,146,.28); }
.btn-ghost { background: var(--white); color: var(--navy); border-color: var(--line); }
.btn-ghost:hover { border-color: var(--blue-pale); background: var(--tint); }
.btn-light { background: #fff; color: var(--navy); }
.btn-light:hover { background: #eef3fa; }
.btn-outline-light { color: #fff; border-color: rgba(255,255,255,.4); }
.btn-outline-light:hover { border-color: #fff; background: rgba(255,255,255,.08); }

.tag {
  display: inline-flex; align-items: center; height: 24px; padding: 0 10px;
  border-radius: 999px; background: #eef3fa; color: var(--navy);
  font-size: 12px; font-weight: 600; letter-spacing: .01em; white-space: nowrap;
}

/* Hero */
.hero { padding: clamp(40px, 7vw, 96px) 0 clamp(64px, 9vw, 120px); }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); gap: clamp(40px, 6vw, 80px); align-items: center; }
.hero h1 {
  font-size: clamp(2.6rem, 5.6vw, 4.6rem); font-weight: 700;
  line-height: 1.02; letter-spacing: -0.03em; color: var(--navy);
}.lede { margin-top: 24px; font-size: clamp(1.1rem, 1.6vw, 1.3rem); line-height: 1.5; color: var(--ink); max-width: 34ch; }
.hero-sub { margin-top: 14px; color: var(--ink-2); max-width: 44ch; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 36px; }
.tools { display: flex; flex-wrap: wrap; gap: 8px 22px; list-style: none; margin: 40px 0 0; padding: 20px 0 0; border-top: 1px solid var(--line); color: var(--ink-2); font-size: 15px; font-weight: 500; }
.tools li { display: flex; align-items: center; gap: 22px; }
.tools a { color: inherit; text-decoration: none; text-underline-offset: 3px; }
.tools a:hover { color: var(--blue); text-decoration: underline; }

/* FAQ */
.faq { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 clamp(40px, 6vw, 88px); }
.faq-item { padding: 24px 0; border-top: 1px solid var(--line); }
.faq-item p { margin-top: 8px; color: var(--ink-2); max-width: 60ch; }
@media (max-width: 760px) { .faq { grid-template-columns: 1fr; } }
.tools li + li::before { content: ""; width: 4px; height: 4px; border-radius: 50%; background: var(--blue-light); margin-left: -13px; margin-right: -9px; }

.hero-visual { position: relative; padding-bottom: 48px; }
.hero-photo { margin: 0; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-2); aspect-ratio: 4 / 3.3; }
.hero-photo img { width: 100%; height: 100%; object-fit: cover; object-position: 62% 50%; }
.float-panel {
  position: absolute; left: clamp(-48px, -3vw, -16px); bottom: 0;
  width: min(340px, 78%);
  background: #fff; border-radius: var(--radius); padding: 18px 20px 14px;
  box-shadow: var(--shadow-2);
}
.panel-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.panel-title { font-size: 14px; font-weight: 600; color: var(--ink-2); }
.panel-kpi { display: flex; align-items: baseline; gap: 12px; margin-top: 6px; flex-wrap: wrap; }
.kpi-num { font-size: 32px; font-weight: 700; letter-spacing: -0.02em; color: var(--navy); }
.delta { font-size: 13px; font-weight: 600; }
.delta.up { color: var(--up); }
.delta.down { color: var(--down); }
.spark { display: block; width: 100%; height: 72px; margin-top: 8px; overflow: visible; }
.spark-line { fill: none; stroke: var(--blue); stroke-width: 2.5; stroke-linejoin: round; stroke-linecap: round; vector-effect: non-scaling-stroke; }
.spark-area { fill: var(--blue-light); opacity: .16; }
.spark-dot { fill: #fff; stroke: var(--blue); stroke-width: 2.5; vector-effect: non-scaling-stroke; }

/* Sections */
.section { padding: var(--section) 0; }
.section-tint { background: var(--tint); }
.section-head { max-width: 640px; margin-bottom: clamp(36px, 5vw, 56px); }
h2 { font-size: clamp(2rem, 3.6vw, 2.9rem); font-weight: 700; line-height: 1.1; letter-spacing: -0.025em; }
.section-head p, .process-intro p { margin-top: 16px; font-size: 1.1rem; color: var(--ink-2); }
h3 { font-size: 1.25rem; font-weight: 600; line-height: 1.3; letter-spacing: -0.01em; }

/* Services */
.services { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(40px, 6vw, 88px); align-items: center; }
.services-photo { margin: 0; border-radius: var(--radius); overflow: hidden; aspect-ratio: 5 / 4.4; box-shadow: var(--shadow-1); }
.services-photo img { width: 100%; height: 100%; object-fit: cover; }
.service-list { list-style: none; margin: 0; padding: 0; }
.service { display: grid; grid-template-columns: 44px 1fr; gap: 20px; padding: 28px 0; border-top: 1px solid var(--line); }
.service:first-child { border-top: 0; padding-top: 0; }
.service-icon {
  width: 44px; height: 44px; padding: 10px; border-radius: 12px; background: #eef3fa;
  fill: none; stroke: var(--blue); stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round;
}
.service p { margin-top: 8px; color: var(--ink-2); max-width: 52ch; }

/* Dashboard demo */
.dash { background: #fff; border-radius: var(--radius); box-shadow: var(--shadow-2); padding: clamp(18px, 3vw, 32px); }
.dash-more { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 16px 32px; margin-top: clamp(24px, 3vw, 36px); }
.dash-more p { margin: 0; color: var(--ink-2); max-width: 56ch; }
.dash-bar { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.dash-tabs { position: relative; display: inline-flex; padding: 4px; background: var(--tint); border-radius: 12px; }
.dash-tabs button {
  position: relative; z-index: 1;
  appearance: none; border: 0; background: none; cursor: pointer;
  padding: 10px 18px; border-radius: 9px; min-height: 42px;
  font: 600 15px/1 var(--font); color: var(--ink-2);
  transition: color .25s var(--ease-out);
}
.dash-tabs button[aria-selected="true"] { color: var(--navy); }
.dash-tabs button:hover { color: var(--ink); }
.dash-tabs .tab-short { display: none; }
.tab-ink {
  position: absolute; top: 4px; bottom: 4px; left: 0; width: 0;
  background: #fff; border-radius: 9px; box-shadow: 0 1px 2px rgba(27,38,56,.08), 0 2px 8px rgba(27,38,56,.06);
  transition: transform .4s var(--ease-out), width .4s var(--ease-out);
}
.dash-kpis { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; margin-top: 24px; }
.kpi { display: flex; flex-direction: column; gap: 4px; padding: 18px 20px; border: 1px solid var(--line); border-radius: 12px; }
.kpi-label { font-size: 14px; font-weight: 500; color: var(--ink-2); }
.kpi-val { font-size: clamp(1.6rem, 2.6vw, 2.1rem); font-weight: 700; letter-spacing: -0.02em; color: var(--navy); line-height: 1.15; }
.dash-chart { margin-top: 16px; padding: 20px 20px 12px; border: 1px solid var(--line); border-radius: 12px; }
.chart-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; }
.chart-title { font-weight: 600; color: var(--ink); }
.legend { display: inline-flex; align-items: center; gap: 18px; font-size: 13px; color: var(--ink-2); }
.legend > span { display: inline-flex; align-items: center; gap: 6px; }
.sw { display: inline-block; width: 10px; height: 10px; border-radius: 3px; }
.sw-this { background: var(--blue); }
.sw-last { background: var(--blue-pale); }
.plot { --plot-h: 260px; display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 12px; margin-top: 20px; }
.ticks {
  display: flex; flex-direction: column; justify-content: space-between;
  height: calc(var(--plot-h) - 26px); margin: 0; padding: 0; list-style: none;
  font-size: 12px; line-height: 0; color: var(--ink-2); text-align: right;
}
.bars { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: clamp(4px, 1.2vw, 14px); height: var(--plot-h); padding-bottom: 26px; position: relative;
  background: linear-gradient(var(--line), var(--line)) 0 0 / 100% 1px no-repeat,
              linear-gradient(var(--line), var(--line)) 0 33.3% / 100% 1px no-repeat,
              linear-gradient(var(--line), var(--line)) 0 66.6% / 100% 1px no-repeat,
              linear-gradient(var(--ink-2), var(--ink-2)) 0 100% / 100% 1px no-repeat;
  background-origin: content-box; background-clip: content-box;
}
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.bar-col { position: relative; display: flex; align-items: flex-end; justify-content: center; gap: 3px; height: 100%; }
.bar { flex: 1; max-width: 18px; height: 100%; border-radius: 2px 2px 0 0; transform-origin: bottom; transform: scaleY(var(--h, 0)); transition: transform .7s var(--ease-out); }
.bar.this { background: var(--blue); }
.bar.last { background: var(--blue-pale); }
.bar-col:nth-child(n) .bar.this { transition-delay: calc(var(--i) * 30ms); }
.bar-label { position: absolute; bottom: -24px; left: 50%; transform: translateX(-50%); font-size: 12px; color: var(--ink-2); }
.bar-col:hover .bar.this { background: var(--blue-hover); }

/* Process */
.process-grid { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: clamp(40px, 6vw, 96px); align-items: start; }
.process-intro { position: sticky; top: 120px; }
.link-arrow { display: inline-flex; align-items: center; gap: 8px; margin-top: 28px; font-weight: 600; text-decoration: none; }
.link-arrow svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; transition: transform .25s var(--ease-out); }
.link-arrow:hover svg { transform: translateX(4px); }
.steps { list-style: none; margin: 0; padding: 0; }
.steps li { display: grid; grid-template-columns: 56px 1fr; gap: 20px; padding: 32px 0; border-top: 1px solid var(--line); }
.steps li:last-child { border-bottom: 1px solid var(--line); }
.step-n {
  display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%;
  background: #eef3fa; color: var(--blue); font-weight: 700; font-size: 17px;
}
.steps p { margin-top: 6px; color: var(--ink-2); max-width: 52ch; }

/* About */
.about-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(40px, 6vw, 88px); align-items: center; }
.about-photo { margin: 0; border-radius: var(--radius); overflow: hidden; aspect-ratio: 4 / 4.4; box-shadow: var(--shadow-1); }
.about-photo img { width: 100%; height: 100%; object-fit: cover; object-position: 40% 50%; }
.about-copy p { margin-top: 18px; color: var(--ink-2); max-width: 60ch; }
.about-copy h2 + p { margin-top: 22px; }
.checks { list-style: none; margin: 28px 0 0; padding: 0; display: grid; gap: 12px; }
.checks li { display: flex; align-items: center; gap: 12px; font-weight: 500; }
.checks svg { width: 22px; height: 22px; padding: 3px; flex: none; border-radius: 50%; background: #e3ecf8; fill: none; stroke: var(--blue); stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }

/* CTA */
.cta {
  display: grid; grid-template-columns: minmax(0, 1.3fr) auto; gap: 40px; align-items: center;
  background: var(--navy); color: #fff; border-radius: 16px;
  padding: clamp(36px, 6vw, 72px);
}
.cta h2 { color: #fff; }
.cta p { margin-top: 16px; color: #d6e0ee; font-size: 1.1rem; max-width: 52ch; }
.cta-actions { display: flex; flex-direction: column; gap: 12px; }
.cta .btn { justify-content: center; }

/* Footer */
.site-footer { border-top: 1px solid var(--line); padding: 48px 0 56px; }
.footer-inner { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 48px; color: var(--ink-2); font-size: 15px; }
.footer-logo { height: 64px; width: auto; }
.site-footer a { color: var(--navy); font-weight: 600; }
.fine { margin-left: auto; font-size: 14px; }

/* Entrance motion (hero only). Content is visible by default; JS opts in. */
.js .hero .reveal { opacity: 0; transform: translateY(14px); }
.js .hero.in .reveal {
  opacity: 1; transform: none;
  transition: opacity .7s var(--ease-out), transform .8s var(--ease-out);
  transition-delay: calc(var(--d, 0) * 70ms + 80ms);
}
.js .hero .hero-photo.reveal { transform: translateY(0) scale(.985); filter: blur(6px); }
.js .hero.in .hero-photo.reveal { transform: none; filter: none; transition: opacity .9s var(--ease-out), transform 1.1s var(--ease-out), filter .9s var(--ease-out); transition-delay: 120ms; }
.js .hero .float-panel.reveal { transform: translateY(24px); }
.js .hero.in .float-panel.reveal { transition-delay: 520ms; }
.js .spark-line { stroke-dasharray: 1; stroke-dashoffset: 1; }
.js .spark-area, .js .spark-dot { opacity: 0; }
.js .hero.in .spark-line { stroke-dashoffset: 0; transition: stroke-dashoffset 1.4s var(--ease-out) 800ms; }
.js .hero.in .spark-area { opacity: .16; transition: opacity .8s var(--ease-out) 1400ms; }
.js .hero.in .spark-dot { opacity: 1; transition: opacity .3s var(--ease-out) 1900ms; }

/* Responsive */
@media (max-width: 980px) {
  .nav-links { display: none; }
  .hero-grid, .about-grid, .process-grid { grid-template-columns: 1fr; }
  .hero-visual { max-width: 640px; }
  .float-panel { left: 16px; }
  .services { grid-template-columns: 1fr; }
  .services-photo { aspect-ratio: 16 / 9; }
  .process-intro { position: static; }
  .cta { grid-template-columns: 1fr; }
  .cta-actions { flex-direction: row; flex-wrap: wrap; }
  .about-photo { aspect-ratio: 16 / 10; }
}
@media (max-width: 640px) {
  .dash-tabs .tab-long { display: none; }
  .dash-tabs .tab-short { display: inline; }
  .dash-tabs { display: flex; width: 100%; }
  .dash-tabs button { flex: 1 1 auto; padding: 10px 8px; font-size: 14px; }
  body { font-size: 16px; }
  .header-inner { height: 64px; }
  .brand img { height: 48px; }
  .dash-kpis { gap: 8px; margin-top: 18px; }
  .kpi { gap: 4px; padding: 12px 8px 12px 10px; border-radius: 10px; }
  .kpi-label { flex: 1; font-size: 11.5px; line-height: 1.3; }
  .kpi-val { font-size: clamp(0.9rem, 4.6vw, 1.25rem); letter-spacing: -0.03em; }
  .kpi .delta { font-size: 11px; line-height: 1.3; }
  .plot { --plot-h: 200px; gap: 8px; }
  .ticks { font-size: 11px; }
  .bar-label { font-size: 10px; }
  .bar.last, .legend > .legend-last { display: none; }
  .actions .btn, .cta .btn { width: 100%; justify-content: center; }
  .float-panel { position: relative; left: auto; width: auto; margin: -40px 12px 0; }
  .hero-visual { padding-bottom: 0; }
  .fine { margin-left: 0; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: .01ms !important; transition-delay: 0ms !important; animation: none !important; }
  .js .hero .reveal, .js .hero .hero-photo.reveal { opacity: 1; transform: none; filter: none; }
  .js .spark-line { stroke-dashoffset: 0; }
  .js .spark-area { opacity: .16; }
  .js .spark-dot { opacity: 1; }
}
