/* VISIO INVENTUM — design system
   Tokens → base → layout → components → sections → pages → utilities */

/* ---------- Fonts (self-hosted, no third-party requests) ---------- */
@font-face { font-family: "Inter"; font-style: normal; font-weight: 100 900; font-display: swap;
  src: url("../fonts/inter-latin-wght-normal.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; }
@font-face { font-family: "Inter"; font-style: normal; font-weight: 100 900; font-display: swap;
  src: url("../fonts/inter-latin-ext-wght-normal.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Manrope"; font-style: normal; font-weight: 200 800; font-display: swap;
  src: url("../fonts/manrope-latin-wght-normal.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; }
@font-face { font-family: "Manrope"; font-style: normal; font-weight: 200 800; font-display: swap;
  src: url("../fonts/manrope-latin-ext-wght-normal.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }

/* ---------- Tokens ---------- */
:root {
  --navy-950: #0B1220;
  --navy-900: #111C30;
  --navy-800: #1A2742;
  --blue: #2563EB;
  --blue-600: #1D4FD7;
  --blue-soft: #EAF0FE;
  --cyan: #22D3EE;
  --white: #FFFFFF;
  --cloud: #F5F7FB;
  --ink: #17233A;
  --slate: #586880;
  --slate-light: #94A3B8;
  --border: #E2E8F0;
  --line-dark: rgba(148, 163, 184, 0.16);

  --font-head: "Manrope", system-ui, sans-serif;
  --font-body: "Inter", system-ui, sans-serif;

  --container: 1240px;
  --gutter: 24px;
  --section-y: 104px;
  --radius-card: 18px;
  --radius-btn: 11px;

  --shadow-sm: 0 1px 2px rgba(15, 23, 42, 0.06);
  --shadow-md: 0 1px 2px rgba(15, 23, 42, 0.04), 0 8px 24px -8px rgba(15, 23, 42, 0.10);
  --shadow-lg: 0 2px 4px rgba(15, 23, 42, 0.04), 0 24px 60px -20px rgba(15, 23, 42, 0.22);
  --shadow-window: 0 30px 80px -24px rgba(2, 6, 23, 0.65), 0 0 0 1px rgba(148, 163, 184, 0.14);

  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
  --t-fast: 180ms;
  --t-med: 320ms;
}

@media (max-width: 767px) {
  :root { --gutter: 16px; --section-y: 64px; }
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 88px; }
body {
  margin: 0;
  background: var(--white);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.68;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img, svg, picture { display: block; max-width: 100%; }
img { height: auto; }
a { color: var(--blue); text-decoration-thickness: 1px; text-underline-offset: 3px; }
h1, h2, h3, h4 {
  font-family: var(--font-head);
  color: var(--ink);
  margin: 0;
  line-height: 1.12;
  letter-spacing: -0.025em;
  font-weight: 750;
  text-wrap: balance;
}
h1 { font-size: clamp(2.4rem, 1.2rem + 4.2vw, 4.25rem); letter-spacing: -0.035em; font-weight: 800; line-height: 1.04; }
h2 { font-size: clamp(1.9rem, 1.2rem + 2.2vw, 2.9rem); letter-spacing: -0.03em; }
h3 { font-size: clamp(1.25rem, 1.1rem + 0.4vw, 1.5rem); letter-spacing: -0.02em; line-height: 1.25; }
p { margin: 0; text-wrap: pretty; }
ul, ol { margin: 0; padding: 0; list-style: none; }
::selection { background: rgba(37, 99, 235, 0.18); }

:focus-visible { outline: 2px solid var(--blue); outline-offset: 3px; border-radius: 6px; }
.on-dark :focus-visible, .site-footer :focus-visible { outline-color: var(--cyan); }

.skip-link {
  position: absolute; left: 16px; top: -60px; z-index: 100;
  background: var(--white); color: var(--ink); padding: 10px 16px; border-radius: 10px;
  font-weight: 600; text-decoration: none; box-shadow: var(--shadow-md);
  transition: top var(--t-fast) var(--ease);
}
.skip-link:focus { top: 12px; }

.sr-only { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }

/* ---------- Layout ---------- */
.container { width: 100%; max-width: calc(var(--container) + var(--gutter) * 2); margin: 0 auto; padding: 0 var(--gutter); }
.section { padding: var(--section-y) 0; position: relative; }
.section--cloud { background: var(--cloud); }
.section--dark { background: var(--navy-950); color: #C9D3E3; }
.section--tight { padding: calc(var(--section-y) * 0.6) 0; }
.on-dark h1, .on-dark h2, .on-dark h3, .on-dark h4 { color: var(--white); }

.grid-12 { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 32px; }

.section-head { max-width: 760px; margin-bottom: 48px; }
.section-head--center { margin-left: auto; margin-right: auto; text-align: center; }
.section-head h2 + p, .section-head .lead { margin-top: 20px; }
.section-head--split { max-width: none; display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 48px; align-items: end; }
@media (max-width: 899px) { .section-head--split { grid-template-columns: 1fr; gap: 20px; } }

.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--font-body); font-size: 13px; font-weight: 650;
  letter-spacing: 0.08em; text-transform: uppercase; color: var(--blue);
  margin-bottom: 16px;
}
.on-dark .eyebrow { color: var(--cyan); }

.lead { font-size: clamp(1.05rem, 1rem + 0.3vw, 1.2rem); line-height: 1.7; color: var(--slate); }
.on-dark .lead { color: #A9B6CB; }
.muted { color: var(--slate); }

/* ---------- Buttons & links ---------- */
.btn {
  --btn-bg: var(--blue); --btn-fg: var(--white); --btn-bd: transparent;
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 50px; padding: 0 22px;
  font: 600 15.5px/1 var(--font-body); letter-spacing: -0.005em;
  color: var(--btn-fg); background: var(--btn-bg); border: 1px solid var(--btn-bd);
  border-radius: var(--radius-btn); text-decoration: none; cursor: pointer;
  transition: background-color var(--t-fast) var(--ease), border-color var(--t-fast) var(--ease), transform var(--t-fast) var(--ease), box-shadow var(--t-fast) var(--ease);
  white-space: nowrap;
}
.btn svg { width: 18px; height: 18px; transition: transform var(--t-fast) var(--ease); }
.btn:hover { --btn-bg: var(--blue-600); box-shadow: 0 8px 24px -10px rgba(37, 99, 235, 0.7); }
.btn:hover svg { transform: translateX(3px); }
.btn:active { transform: translateY(1px); }
.btn--ghost { --btn-bg: transparent; --btn-fg: var(--ink); --btn-bd: var(--border); }
.btn--ghost:hover { --btn-bg: var(--white); --btn-bd: #CBD5E1; box-shadow: var(--shadow-sm); }
.on-dark .btn--ghost { --btn-fg: var(--white); --btn-bd: rgba(148, 163, 184, 0.32); }
.on-dark .btn--ghost:hover { --btn-bg: rgba(255, 255, 255, 0.06); --btn-bd: rgba(148, 163, 184, 0.55); box-shadow: none; }
.btn--sm { min-height: 42px; padding: 0 16px; font-size: 14.5px; }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; }

.link-arrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-weight: 600; font-size: 15.5px; color: var(--blue); text-decoration: none;
}
.link-arrow svg { width: 17px; height: 17px; transition: transform var(--t-fast) var(--ease); }
.link-arrow:hover svg { transform: translate(3px, 0); }
.link-arrow--ext:hover svg { transform: translate(2px, -2px); }
.on-dark .link-arrow { color: var(--cyan); }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(11, 18, 32, 0.94);
  backdrop-filter: saturate(160%) blur(14px); -webkit-backdrop-filter: saturate(160%) blur(14px);
  border-bottom: 1px solid var(--line-dark);
}
.site-header .container { display: flex; align-items: center; justify-content: space-between; height: 72px; gap: 24px; }
.brand { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; color: var(--white); flex-shrink: 0; }
.brand__mark { width: 34px; height: 34px; }
.brand__text { font-family: var(--font-head); font-weight: 800; font-size: 16.5px; letter-spacing: 0.06em; line-height: 1; }
.brand__text span { color: var(--cyan); font-weight: 600; }

.nav { display: flex; align-items: center; gap: 4px; }
.nav a {
  position: relative; padding: 8px 14px; border-radius: 8px;
  color: #C3CEDF; text-decoration: none; font-size: 15px; font-weight: 500;
  transition: color var(--t-fast) var(--ease), background-color var(--t-fast) var(--ease);
}
.nav a:hover { color: var(--white); background: rgba(255, 255, 255, 0.05); }
.nav a[aria-current="page"], .nav a.is-section { color: var(--white); }
.nav a[aria-current="page"]::after, .nav a.is-section::after {
  content: ""; position: absolute; left: 14px; right: 14px; bottom: 2px; height: 2px; border-radius: 2px;
  background: linear-gradient(90deg, var(--blue), var(--cyan));
}
.header-cta { display: flex; align-items: center; gap: 12px; }

.nav-toggle {
  display: none; width: 44px; height: 44px; border-radius: 10px;
  border: 1px solid var(--line-dark); background: transparent; color: var(--white); cursor: pointer;
  align-items: center; justify-content: center;
}
.nav-toggle svg { width: 22px; height: 22px; }
.nav-toggle .i-close { display: none; }
.nav-open .nav-toggle .i-close { display: block; }
.nav-open .nav-toggle .i-menu { display: none; }

.mobile-nav {
  display: none; position: fixed; inset: 72px 0 0 0; z-index: 49;
  background: var(--navy-950); padding: 24px var(--gutter) 40px; overflow-y: auto;
  opacity: 0; transform: translateY(-8px);
  transition: opacity var(--t-med) var(--ease), transform var(--t-med) var(--ease), visibility 0s linear var(--t-med);
  visibility: hidden;
}
.nav-open .mobile-nav { opacity: 1; transform: none; visibility: visible; transition-delay: 0s; }
.mobile-nav a.mobile-nav__link {
  display: flex; justify-content: space-between; align-items: center;
  padding: 18px 0; border-bottom: 1px solid var(--line-dark);
  font-family: var(--font-head); font-size: 24px; font-weight: 700; letter-spacing: -0.02em;
  color: var(--white); text-decoration: none;
}
.mobile-nav a.mobile-nav__link svg { width: 20px; height: 20px; color: var(--slate-light); }
.mobile-nav a[aria-current="page"] { color: var(--cyan); }
.mobile-nav .btn { width: 100%; margin-top: 28px; }
.mobile-nav__meta { margin-top: 28px; font-size: 15px; color: var(--slate-light); display: grid; gap: 6px; }
.mobile-nav__meta a { color: #C3CEDF; text-decoration: none; }

@media (max-width: 979px) {
  .nav, .header-cta .btn { display: none; }
  .nav-toggle { display: inline-flex; }
  .mobile-nav { display: block; }
  body.nav-open { overflow: hidden; }
}

/* ---------- Hero ---------- */
.hero {
  position: relative; overflow: hidden; isolation: isolate;
  background: var(--navy-950); color: #B4C1D6;
  padding: 104px 0 112px;
}
.hero::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: radial-gradient(900px 560px at 88% 45%, rgba(37, 99, 235, 0.20), transparent 70%);
}
.hero__grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 64px; align-items: center; }
.hero h1 { color: var(--white); max-width: 15ch; }
.hero__sub { margin-top: 26px; font-size: clamp(1.05rem, 1rem + 0.35vw, 1.22rem); line-height: 1.7; color: #A9B6CB; max-width: 32em; }
.hero .btn-row { margin-top: 38px; }
.hero__shot { margin: 0; width: 132%; }
.hero__shot .window { border-radius: 16px; }
.hero__shot figcaption { margin-top: 16px; font-size: 14px; color: #8696B0; }
.hero__shot figcaption a { color: #C3CEDF; text-underline-offset: 3px; }
.hero__shot figcaption a:hover { color: var(--white); }

@media (max-width: 979px) {
  .hero { padding: 64px 0 72px; }
  .hero__grid { grid-template-columns: 1fr; gap: 48px; }
  .hero__shot { width: 100%; }
}

/* ---------- Window frame (for screenshots) ---------- */
.window {
  border-radius: 14px; overflow: hidden; background: #0F1828;
  box-shadow: var(--shadow-window);
}
.window__bar {
  display: flex; align-items: center; gap: 7px; height: 34px; padding: 0 14px;
  background: #16223A; border-bottom: 1px solid rgba(148, 163, 184, 0.12);
}
.window__bar i { width: 10px; height: 10px; border-radius: 50%; background: #2C3B58; }
.window__bar span { margin-left: 10px; font-size: 12px; font-weight: 500; line-height: 1; color: #7D8DA9; }
.window--light { background: #fff; box-shadow: var(--shadow-lg), 0 0 0 1px var(--border); }
.window--light .window__bar { background: #F1F4F9; border-bottom-color: var(--border); }
.window--light .window__bar i { background: #D5DCE6; }
.window--light .window__bar span { color: var(--slate); }
.window img { width: 100%; }

/* ---------- Service cards ---------- */
.services-grid { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 20px; }
.services-grid > :nth-child(-n+3) { grid-column: span 2; }
.services-grid > :nth-child(n+4) { grid-column: span 3; }
@media (max-width: 979px) { .services-grid { grid-template-columns: 1fr 1fr; } .services-grid > * { grid-column: auto !important; } .services-grid > :last-child:nth-child(odd) { grid-column: 1 / -1 !important; } }
@media (max-width: 639px) { .services-grid { grid-template-columns: 1fr; } }

.card {
  position: relative; display: flex; flex-direction: column;
  background: var(--white); border: 1px solid var(--border); border-radius: var(--radius-card);
  padding: 30px; box-shadow: var(--shadow-sm);
  transition: border-color var(--t-med) var(--ease), box-shadow var(--t-med) var(--ease), transform var(--t-med) var(--ease);
}
a.card { color: inherit; text-decoration: none; }
a.card:hover, .card--hover:hover { border-color: rgba(37, 99, 235, 0.45); box-shadow: var(--shadow-lg); transform: translateY(-3px); }
.card__top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 28px; }
.icon-tile {
  width: 48px; height: 48px; border-radius: 12px; display: grid; place-items: center;
  color: var(--blue); background: var(--blue-soft); border: 1px solid rgba(37, 99, 235, 0.12);
  transition: background-color var(--t-med) var(--ease), color var(--t-med) var(--ease);
}
.icon-tile svg { width: 23px; height: 23px; }
a.card:hover .icon-tile { background: var(--blue); color: var(--white); }
.card__go {
  width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center;
  color: var(--slate-light); border: 1px solid var(--border);
  transition: background-color var(--t-med) var(--ease), color var(--t-med) var(--ease), border-color var(--t-med) var(--ease);
}
.card__go svg { width: 17px; height: 17px; }
a.card:hover .card__go { background: var(--blue); border-color: var(--blue); color: var(--white); }
.card h3 { margin-bottom: 12px; }
.card p { color: var(--slate); font-size: 16px; line-height: 1.65; }
.card .link-arrow { margin-top: auto; padding-top: 26px; font-size: 15px; }

/* ---------- Products showcase ---------- */
.products { overflow: hidden; }
.products::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(700px 400px at 85% 10%, rgba(37, 99, 235, 0.16), transparent 70%),
              radial-gradient(600px 400px at 10% 75%, rgba(34, 211, 238, 0.07), transparent 70%);
}
.product {
  position: relative; display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); gap: 64px; align-items: center;
  padding: 56px; border-radius: 28px;
  background: linear-gradient(180deg, rgba(26, 39, 66, 0.55), rgba(17, 28, 48, 0.35));
  border: 1px solid var(--line-dark);
}
.product + .product { margin-top: 32px; }
.product--flip { grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr); }
.product--flip .product__media { order: -1; }
.product__logo { display: flex; align-items: center; gap: 14px; margin: 0 0 8px; }
.product__logo img { width: 44px; height: 44px; border-radius: 10px; }
.product__logo .sm-badge { width: 44px; height: 44px; border-radius: 10px; display: grid; place-items: center; background: #1E6FD9; color: #fff; }
.product__logo .sm-badge svg { width: 24px; height: 24px; }
.product h3 { font-size: clamp(1.7rem, 1.3rem + 1.2vw, 2.25rem); letter-spacing: -0.03em; }
.product__cat { font-size: 14px; font-weight: 600; color: var(--cyan); margin-bottom: 20px; }
.product__desc { color: #A9B6CB; }
.checklist { margin-top: 26px; display: grid; gap: 12px; }
.checklist li { display: flex; gap: 12px; align-items: flex-start; font-size: 16px; }
.checklist svg { flex: none; width: 20px; height: 20px; margin-top: 3px; color: var(--cyan); }
.on-light .checklist svg, .section:not(.section--dark) .checklist svg { color: var(--blue); }
.product .btn-row { margin-top: 34px; }
.ext-note { display: block; margin-top: 12px; font-size: 13px; color: #6F80A0; }

/* Full app-window screenshots (they carry their own title bar) */
.app-shot { margin: 0; }
.app-shot img { width: 100%; border-radius: 12px; box-shadow: var(--shadow-window); }
.section:not(.section--dark) .app-shot img { box-shadow: var(--shadow-lg), 0 0 0 1px var(--border); }

@media (max-width: 979px) {
  .product, .product--flip { grid-template-columns: 1fr; gap: 40px; padding: 32px 24px; }
  .product--flip .product__media { order: 0; }
}
@media (max-width: 479px) { .product, .product--flip { padding: 24px 18px; border-radius: 20px; } }

/* ---------- Approach (why) ---------- */
.why-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.why-item { padding: 28px; border-radius: var(--radius-card); background: var(--cloud); }
.why-item .icon-tile { margin-bottom: 22px; background: var(--white); }
.why-item h3 { font-size: 1.2rem; margin-bottom: 8px; }
.why-item p { color: var(--slate); font-size: 16px; line-height: 1.65; }
@media (max-width: 599px) { .why-grid { grid-template-columns: 1fr; } }

/* ---------- Process ---------- */
.process { position: relative; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 32px; counter-reset: step; }
.process::before {
  content: ""; position: absolute; left: 0; right: 0; top: 22px; height: 1px;
  background: linear-gradient(90deg, var(--blue), var(--cyan) 60%, rgba(34, 211, 238, 0));
  transform-origin: left; transform: scaleX(var(--progress, 1));
  transition: transform 1.2s var(--ease);
}
.process__step { position: relative; padding-top: 72px; }
.process__dot {
  position: absolute; top: 0; left: 0; width: 45px; height: 45px; border-radius: 50%;
  display: grid; place-items: center; background: var(--white); border: 1px solid var(--border);
  font-family: var(--font-head); font-size: 16px; font-weight: 750; color: var(--blue);
  box-shadow: 0 0 0 6px var(--white);
}
.section--cloud .process__dot { box-shadow: 0 0 0 6px var(--cloud); }
.process__step h3 { font-size: 1.2rem; margin-bottom: 10px; }
.process__step p { color: var(--slate); font-size: 16px; }
.on-dark .process__dot { background: var(--navy-900); border-color: var(--line-dark); color: var(--cyan); box-shadow: 0 0 0 6px var(--navy-950); }
.on-dark .process__step p { color: #A9B6CB; }
@media (max-width: 899px) {
  .process { grid-template-columns: 1fr; gap: 0; }
  .process::before { left: 22px; right: auto; top: 0; bottom: 0; width: 1px; height: auto; background: linear-gradient(180deg, var(--blue), var(--cyan) 70%, rgba(34, 211, 238, 0)); transform-origin: top; transform: scaleY(var(--progress, 1)); }
  .process__step { padding: 0 0 36px 72px; min-height: 45px; }
}
.js .process { --progress: 0; }
.js .process.is-visible { --progress: 1; }

/* ---------- Web section ---------- */
.web-split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); gap: 72px; align-items: center; }
.feature-list { margin-top: 32px; display: grid; grid-template-columns: 1fr 1fr; gap: 14px 24px; }
.feature-list li { display: flex; gap: 12px; align-items: flex-start; font-size: 16px; font-weight: 500; }
.feature-list svg { flex: none; width: 20px; height: 20px; color: var(--blue); margin-top: 3px; }
@media (max-width: 979px) { .web-split { grid-template-columns: 1fr; gap: 48px; } }
@media (max-width: 479px) { .feature-list { grid-template-columns: 1fr; } }

/* This site in a browser and on a phone */
.site-shots { position: relative; margin: 0; padding-bottom: 9%; }
.site-shots .window { width: 90%; }
.site-shots .phone {
  position: absolute; right: 0; bottom: 0; z-index: 2; width: 25%;
  border-radius: 24px; padding: 6px; background: #0F1828; box-shadow: var(--shadow-lg);
}
.site-shots .phone img { width: 100%; border-radius: 18px; }
.site-shots figcaption { margin-top: 18px; font-size: 14px; color: var(--slate); }
.on-dark .site-shots figcaption { color: #8696B0; }

/* ---------- CTA band ---------- */
.cta-band { position: relative; overflow: hidden; isolation: isolate; text-align: center; padding: 112px 0; }
.cta-band::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: radial-gradient(900px 420px at 50% 115%, rgba(37, 99, 235, 0.30), transparent 70%);
}
.cta-band h2 { font-size: clamp(2rem, 1.2rem + 3vw, 3.6rem); max-width: 17ch; margin: 0 auto; letter-spacing: -0.035em; }
.cta-band .lead { max-width: 38em; margin: 24px auto 0; }
.cta-band .btn-row { justify-content: center; margin-top: 40px; }
@media (max-width: 767px) { .cta-band { padding: 80px 0; } }

/* ---------- Page hero (inner pages) ---------- */
.page-hero { position: relative; overflow: hidden; isolation: isolate; background: var(--navy-950); padding: 80px 0 88px; color: #A9B6CB; }
.page-hero::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: radial-gradient(560px 320px at 85% 0%, rgba(37, 99, 235, 0.28), transparent 70%),
              radial-gradient(380px 260px at 100% 100%, rgba(34, 211, 238, 0.10), transparent 70%);
}
.page-hero h1 { color: var(--white); font-size: clamp(2.2rem, 1.3rem + 3.2vw, 3.75rem); max-width: 18ch; }
.page-hero .lead { margin-top: 22px; max-width: 40em; }
.page-hero .btn-row { margin-top: 34px; }
.page-hero__grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 56px; align-items: center; }
@media (max-width: 979px) { .page-hero { padding: 56px 0 64px; } .page-hero__grid { grid-template-columns: 1fr; gap: 44px; } }

.breadcrumbs { display: flex; flex-wrap: wrap; gap: 8px; font-size: 14px; color: #7F8FAB; margin-bottom: 28px; }
.breadcrumbs a { color: #93A3BE; text-decoration: none; }
.breadcrumbs a:hover { color: var(--white); }
.breadcrumbs li + li::before { content: "/"; margin-right: 8px; color: #4A5A78; }

/* Service page hero: short summary of what the service covers */
.svc-panel {
  border-radius: 22px; padding: 12px 28px 8px;
  border: 1px solid var(--line-dark);
  background: linear-gradient(180deg, rgba(26, 39, 66, 0.7), rgba(17, 28, 48, 0.45));
}
.svc-panel li { display: flex; align-items: center; gap: 16px; padding: 18px 0; color: var(--white); font-family: var(--font-head); font-size: 18px; font-weight: 700; letter-spacing: -0.015em; }
.svc-panel li + li { border-top: 1px solid var(--line-dark); }
.svc-panel .icon-tile { flex: none; width: 44px; height: 44px; color: var(--cyan); background: rgba(34, 211, 238, 0.08); border-color: rgba(34, 211, 238, 0.18); }
.svc-panel .icon-tile svg { width: 21px; height: 21px; }
.svc-panel__more { display: flex; padding: 16px 0 18px; border-top: 1px solid var(--line-dark); }

/* ---------- Generic content blocks ---------- */
.two-col { display: grid; grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr); gap: 72px; align-items: start; }
@media (max-width: 899px) { .two-col { grid-template-columns: 1fr; gap: 32px; } }
.sticky-col { position: sticky; top: 112px; }
@media (max-width: 899px) { .sticky-col { position: static; } }

.problem-list { display: grid; gap: 16px; }
.problem-list li {
  display: grid; grid-template-columns: auto 1fr; gap: 18px; align-items: start;
  padding: 22px 24px; background: var(--white); border: 1px solid var(--border); border-radius: 14px;
}
.problem-list svg { width: 22px; height: 22px; color: var(--blue); margin-top: 2px; }
.problem-list strong { display: block; font-family: var(--font-head); font-size: 17.5px; font-weight: 700; letter-spacing: -0.01em; margin-bottom: 4px; }
.problem-list p { color: var(--slate); font-size: 15.5px; }

.chip-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 14px; }
.chip-grid li {
  display: flex; gap: 14px; align-items: center; padding: 18px 20px; border-radius: 14px;
  background: var(--white); border: 1px solid var(--border); font-weight: 600; font-size: 15.5px;
}
.chip-grid svg { width: 20px; height: 20px; color: var(--blue); flex: none; }
.chip-note { margin-top: 18px; font-size: 14px; color: var(--slate); }

.cap-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.cap-grid .card { padding: 28px; }
.cap-grid .card .icon-tile { margin-bottom: 22px; }
.cap-grid .card h3 { font-size: 1.15rem; }
@media (max-width: 899px) { .cap-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 599px) { .cap-grid { grid-template-columns: 1fr; } }

.split-cards { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.split-cards .card { padding: 36px; }
.split-cards .card .tag { align-self: flex-start; font-size: 12.5px; font-weight: 650; letter-spacing: 0.06em; color: var(--blue); background: var(--blue-soft); padding: 5px 10px; border-radius: 6px; margin-bottom: 20px; }
.split-cards .card ul { margin-top: 20px; display: grid; gap: 10px; }
.split-cards .card li { display: flex; gap: 10px; font-size: 15.5px; }
.split-cards .card li svg { width: 18px; height: 18px; color: var(--blue); flex: none; margin-top: 4px; }
@media (max-width: 767px) { .split-cards { grid-template-columns: 1fr; } }

/* FAQ */
.faq { border-top: 1px solid var(--border); }
.faq details { border-bottom: 1px solid var(--border); }
.faq summary {
  list-style: none; cursor: pointer; display: flex; justify-content: space-between; gap: 24px; align-items: center;
  padding: 24px 0; font-family: var(--font-head); font-size: 18px; font-weight: 700; letter-spacing: -0.015em;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary svg { flex: none; width: 20px; height: 20px; color: var(--slate); transition: transform var(--t-med) var(--ease); }
.faq details[open] summary svg { transform: rotate(45deg); color: var(--blue); }
.faq details p { padding: 0 48px 26px 0; color: var(--slate); }

/* Inline CTA panel (light pages) */
.cta-panel {
  position: relative; overflow: hidden; isolation: isolate;
  display: grid; grid-template-columns: 1fr auto; gap: 40px; align-items: center;
  padding: 56px; border-radius: 28px; background: var(--navy-950); color: #A9B6CB;
}
.cta-panel::before { content: ""; position: absolute; inset: 0; z-index: -1; background: radial-gradient(500px 300px at 100% 100%, rgba(37, 99, 235, 0.35), transparent 70%); }
.cta-panel h2 { color: var(--white); font-size: clamp(1.7rem, 1.2rem + 1.6vw, 2.5rem); max-width: 20ch; }
.cta-panel p { margin-top: 14px; max-width: 36em; }
@media (max-width: 899px) { .cta-panel { grid-template-columns: 1fr; padding: 36px 24px; gap: 28px; border-radius: 20px; } }

/* Gallery */
.gallery { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px; }
.gallery figure { margin: 0; }
.gallery figcaption { margin-top: 14px; font-size: 15px; color: var(--slate); }
.gallery figcaption strong { color: var(--ink); font-family: var(--font-head); font-weight: 700; margin-right: 6px; }
.gallery--wide figure:first-child { grid-column: 1 / -1; }
@media (max-width: 767px) { .gallery { grid-template-columns: 1fr; } }
.gallery-dark { display: grid; grid-template-columns: 1.4fr 1fr; gap: 24px; align-items: start; }
.gallery-dark .stack { display: grid; gap: 24px; }
.gallery-dark figure { margin: 0; }
.gallery-dark figure img { border-radius: 14px; box-shadow: var(--shadow-lg); }
.gallery-dark figcaption { margin-top: 12px; font-size: 14.5px; color: var(--slate); }
@media (max-width: 767px) { .gallery-dark { grid-template-columns: 1fr; } }

/* Product overview cards (/proizvodi) */
.prod-cards { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.prod-card { display: flex; flex-direction: column; border-radius: 24px; overflow: hidden; border: 1px solid var(--border); background: var(--white); color: inherit; text-decoration: none; transition: box-shadow var(--t-med) var(--ease), transform var(--t-med) var(--ease), border-color var(--t-med) var(--ease); }
.prod-card:hover { box-shadow: var(--shadow-lg); transform: translateY(-3px); border-color: rgba(37, 99, 235, 0.45); }
.prod-card__media { background: var(--navy-950); padding: 36px 36px 0; aspect-ratio: 16 / 10; overflow: hidden; display: flex; align-items: flex-end; justify-content: center; }
.prod-card__media img { border-radius: 10px 10px 0 0; box-shadow: var(--shadow-window); }
.prod-card__body { padding: 32px 36px 36px; display: flex; flex-direction: column; flex: 1; }
.prod-card__body .product__cat { color: var(--blue); margin-bottom: 10px; }
.prod-card__body h2 { font-size: 1.9rem; }
.prod-card__body p { margin-top: 14px; color: var(--slate); }
.prod-card__body .link-arrow { margin-top: auto; padding-top: 24px; }
@media (max-width: 899px) { .prod-cards { grid-template-columns: 1fr; } .prod-card__media { padding: 24px 24px 0; } .prod-card__body { padding: 26px 24px 30px; } }

/* About */
.prose { max-width: 720px; }
.prose p { font-size: 18px; line-height: 1.8; color: #334155; }
.prose p + p { margin-top: 22px; }
.prose h2 { font-size: 1.6rem; margin: 48px 0 16px; }
.prose h3 { font-size: 1.2rem; margin: 32px 0 10px; }
.prose ul { list-style: disc; padding-left: 1.3em; margin-top: 12px; color: #334155; }
.prose li + li { margin-top: 6px; }
.prose--legal p, .prose--legal li { font-size: 16.5px; line-height: 1.75; }

.facts { display: grid; gap: 0; border-top: 1px solid var(--border); }
.facts div { display: grid; grid-template-columns: 180px 1fr; gap: 20px; padding: 18px 0; border-bottom: 1px solid var(--border); font-size: 16px; }
.facts dt { font-size: 15px; color: var(--slate); }
.facts dd { margin: 0; font-weight: 500; }
.facts a { color: var(--ink); }
@media (max-width: 599px) { .facts div { grid-template-columns: 1fr; gap: 4px; } }

/* ---------- Contact ---------- */
.contact-grid { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 0.75fr); gap: 56px; align-items: start; }
@media (max-width: 979px) { .contact-grid { grid-template-columns: 1fr; } }
.form-card { background: var(--white); border: 1px solid var(--border); border-radius: 24px; padding: 44px; box-shadow: var(--shadow-md); }
@media (max-width: 599px) { .form-card { padding: 26px 20px; border-radius: 18px; } }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.form-grid .full { grid-column: 1 / -1; }
@media (max-width: 599px) { .form-grid { grid-template-columns: 1fr; } }
.field label { display: block; font-size: 14.5px; font-weight: 600; margin-bottom: 8px; }
.field label .opt { font-weight: 400; color: var(--slate); }
.field input, .field select, .field textarea {
  width: 100%; font: 400 16px/1.5 var(--font-body); color: var(--ink);
  padding: 13px 15px; border-radius: 11px; border: 1px solid #CFD8E3; background: var(--white);
  transition: border-color var(--t-fast) var(--ease), box-shadow var(--t-fast) var(--ease);
}
.field select { appearance: none; -webkit-appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='20' viewBox='0 0 24 24' fill='none' stroke='%2364748B' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 12px center; padding-right: 42px; }
.field textarea { min-height: 160px; resize: vertical; }
.field input:hover, .field select:hover, .field textarea:hover { border-color: #AEBBCB; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--blue); box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.15); }
.field [aria-invalid="true"] { border-color: #DC2626; }
.field [aria-invalid="true"]:focus { box-shadow: 0 0 0 4px rgba(220, 38, 38, 0.14); }
.field__error { display: none; margin-top: 6px; font-size: 13.5px; color: #B91C1C; }
.field.has-error .field__error { display: block; }
.field label.consent { display: flex; font-weight: 400; margin: 0; gap: 12px; align-items: flex-start; font-size: 14.5px; color: #334155; line-height: 1.55; }
.consent input { width: 20px; height: 20px; margin: 1px 0 0; flex: none; accent-color: var(--blue); }
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.form-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 16px; margin-top: 8px; }
.form-actions small { color: var(--slate); font-size: 13.5px; }
.form-status { margin-top: 20px; padding: 16px 18px; border-radius: 12px; font-size: 15.5px; display: none; }
.form-status.is-ok { display: block; background: #ECFDF5; color: #065F46; border: 1px solid #A7F3D0; }
.form-status.is-err { display: block; background: #FEF2F2; color: #991B1B; border: 1px solid #FECACA; }
.form-status a { color: inherit; font-weight: 600; }
.btn[disabled] { opacity: 0.65; cursor: progress; }

.contact-aside { display: grid; gap: 16px; }
.contact-item { display: flex; gap: 16px; align-items: flex-start; padding: 22px; border-radius: 16px; border: 1px solid var(--border); background: var(--white); color: inherit; text-decoration: none; transition: border-color var(--t-fast) var(--ease); }
a.contact-item:hover { border-color: rgba(37, 99, 235, 0.45); }
.contact-item .icon-tile { width: 44px; height: 44px; flex: none; }
.contact-item small { display: block; font-size: 14px; color: var(--slate); margin-bottom: 2px; }
.contact-item span { font-weight: 600; font-size: 16px; word-break: break-word; }

/* ---------- Footer ---------- */
.site-footer { background: var(--navy-950); color: #8D9BB3; font-size: 15px; border-top: 1px solid var(--line-dark); }
.footer-main { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1.2fr; gap: 48px; padding: 80px 0 56px; }
.footer-main h2 { font-family: var(--font-body); font-size: 13px; font-weight: 650; letter-spacing: 0.08em; text-transform: uppercase; color: #7F8FAB; margin-bottom: 18px; }
.footer-main ul { display: grid; gap: 10px; }
.footer-main a { color: #C3CEDF; text-decoration: none; }
.footer-main a:hover { color: var(--white); }
.footer-main .brand { margin-bottom: 20px; }
.footer-about { max-width: 30em; line-height: 1.7; }
.footer-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px 32px; padding: 24px 0 32px; border-top: 1px solid var(--line-dark); font-size: 13.5px; }
.footer-bottom nav { display: flex; gap: 20px; flex-wrap: wrap; }
.footer-bottom a { color: #A9B6CB; text-decoration: none; }
.footer-bottom a:hover { color: var(--white); }
.ext-icon { display: inline-block; width: 13px; height: 13px; vertical-align: -1px; margin-left: 4px; opacity: 0.7; }
@media (max-width: 979px) { .footer-main { grid-template-columns: 1fr 1fr; gap: 40px; padding: 64px 0 40px; } .footer-main > :first-child { grid-column: 1 / -1; } }
@media (max-width: 479px) { .footer-main { grid-template-columns: 1fr; } }

/* ---------- 404 ---------- */
.notfound { min-height: 64vh; display: grid; place-items: center; text-align: center; }
.notfound__code { font-size: 14px; font-weight: 650; color: var(--cyan); letter-spacing: 0.08em; }
.notfound h1 { margin: 18px auto 0; max-width: 16ch; }
.notfound .lead { margin: 20px auto 0; max-width: 32em; }
.notfound .btn-row { justify-content: center; margin-top: 36px; }

/* ---------- Reveal animations ---------- */
.js .reveal { opacity: 0; transform: translateY(18px); transition: opacity 600ms var(--ease), transform 600ms var(--ease); transition-delay: var(--d, 0ms); }
.js .reveal.is-visible { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition-duration: 1ms !important; transition-delay: 0s !important; }
  .js .reveal { opacity: 1; transform: none; }
  .js .process { --progress: 1; }
}
