/* ==========================================================================
   Zcore Production — web stranica
   Brend: crno-bijelo, Inter + JetBrains Mono, mreža 8 px
   ========================================================================== */

:root {
  --ink: #0A0A0A;
  --paper: #FFFFFF;
  --gray-900: #161616;
  --gray-700: #3A3A3A;
  --gray-600: #3A3A3A;
  --gray-500: #5E5E5E;
  --gray-400: #8C8C8C;
  --gray-300: #B5B5B5;
  --gray-100: #E6E6E6;
  --gray-50: #F4F4F2;

  --sans: Inter, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, monospace;

  --radius-sm: 8px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --radius-pill: 999px;

  --container: 1200px;
  --gutter: 24px;
  --header-h: 76px;

  --ease-out: cubic-bezier(.16, 1, .3, 1);
  --ease-in-out: cubic-bezier(.65, 0, .35, 1);
}

/* ---------- Reset / base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--header-h) + 8px); }
body {
  margin: 0;
  font-family: var(--sans);
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
h1, h2, h3, p { margin: 0; }
::selection { background: var(--ink); color: var(--paper); }
.dark ::selection { background: var(--paper); color: var(--ink); }

a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible {
  outline: 2px solid var(--ink);
  outline-offset: 3px;
}
.dark a:focus-visible, .dark button:focus-visible, .dark input:focus-visible,
.dark select:focus-visible, .dark textarea:focus-visible { outline-color: var(--paper); }

.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;
}
.skip-link {
  position: fixed; left: 16px; top: -64px; z-index: 300;
  background: var(--ink); color: var(--paper); padding: 12px 20px; border-radius: var(--radius-pill);
  transition: top .2s;
}
.skip-link:focus { top: 16px; }

.container { max-width: var(--container); margin: 0 auto; padding: 0 var(--gutter); }
.section { padding: 112px 0; }
.dark { background: var(--ink); color: var(--paper); }
.alt { background: var(--gray-50); border-top: 1px solid var(--gray-100); border-bottom: 1px solid var(--gray-100); }

/* ---------- Typography ---------- */
.label {
  font-family: var(--mono); font-size: 12px; line-height: 16px; font-weight: 500;
  letter-spacing: .08em; text-transform: uppercase; color: var(--gray-500);
}
.dark .label { color: var(--gray-400); }
.h2 { font-size: clamp(36px, 5vw, 64px); line-height: 1.04; font-weight: 600; letter-spacing: -.035em; }
.h3 { font-size: 24px; line-height: 30px; font-weight: 600; letter-spacing: -.02em; }
.lead { font-size: 18px; line-height: 28px; color: var(--gray-700); }
.dark .lead { color: var(--gray-300); }
.muted { color: var(--gray-500); }
.dark .muted { color: var(--gray-300); }
.mono { font-family: var(--mono); }
.note { font-size: 14px; line-height: 20px; color: var(--gray-500); }

.section-head { display: flex; flex-direction: column; gap: 16px; max-width: 760px; margin-bottom: 56px; }

/* ---------- Buttons ---------- */
.btn {
  position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 56px; padding: 0 28px; border-radius: var(--radius-pill);
  font-size: 16px; font-weight: 500; border: 1px solid transparent; cursor: pointer;
  overflow: hidden; isolation: isolate; white-space: nowrap;
  transition: transform .4s var(--ease-out), color .35s var(--ease-out), border-color .35s;
}
.btn::before {
  content: ""; position: absolute; inset: 0; z-index: -1; border-radius: inherit;
  transform: translateY(101%); transition: transform .45s var(--ease-out);
}
.btn:hover::before { transform: translateY(0); }
.btn:active { transform: scale(.97); }
.btn .arrow { transition: transform .35s var(--ease-out); }
.btn:hover .arrow { transform: translateX(4px); }

.btn--primary { background: var(--ink); color: var(--paper); }
.btn--primary::before { background: var(--gray-700); }
.btn--outline { background: var(--paper); color: var(--ink); border-color: var(--ink); }
.btn--outline::before { background: var(--ink); }
.btn--outline:hover { color: var(--paper); }
.btn--light { background: var(--paper); color: var(--ink); }
.btn--light::before { background: var(--gray-100); }
.btn--sm { min-height: 44px; padding: 0 20px; font-size: 15px; }

/* ==========================================================================
   Loader
   ========================================================================== */
.loader { display: none; }
.js .loader {
  position: fixed; inset: 0; z-index: 500; display: grid; place-items: center;
  background: var(--ink); color: var(--paper);
  /* samo transform: radi ga grafička kartica, glatko i na starijim računarima */
  transform-origin: 0 0; will-change: transform; backface-visibility: hidden;
}
.js .loader.is-done { animation: loaderWipe .9s var(--ease-in-out) forwards; pointer-events: none; }
@keyframes loaderWipe {
  from { transform: translate3d(0, 0, 0) skewY(0deg); }
  to   { transform: translate3d(0, -120%, 0) skewY(-9deg); }
}
.js .loader.is-done .loader__inner { animation: loaderInnerOut .45s var(--ease-in-out) forwards; }
@keyframes loaderInnerOut { to { opacity: 0; transform: translate3d(0, -24px, 0); } }
.loader__grid {
  position: absolute; inset: 0; pointer-events: none;
  background-image:
    linear-gradient(rgba(255,255,255,.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.06) 1px, transparent 1px);
  background-size: 120px 120px; background-position: center;
  animation: gridFade 1.2s var(--ease-out) both;
}
@keyframes gridFade { from { opacity: 0; transform: scale(1.06); } to { opacity: 1; transform: none; } }
.loader__inner { position: relative; display: flex; flex-direction: column; align-items: center; gap: 28px; }
.loader__mark { width: 92px; height: auto; overflow: visible; }
.loader__mark path { fill: var(--paper); }
.loader__mark .m1 { animation: markIn1 .9s var(--ease-out) .1s both; }
.loader__mark .m2 { animation: markIn2 .9s var(--ease-out) .1s both; }
.loader__mark .m3 { animation: markIn3 .8s var(--ease-out) .55s both; }
@keyframes markIn1 { from { transform: translate(-60px, -60px); opacity: 0; } to { transform: none; opacity: 1; } }
@keyframes markIn2 { from { transform: translate(60px, 60px); opacity: 0; } to { transform: none; opacity: 1; } }
@keyframes markIn3 { from { clip-path: inset(0 0 100% 0); } to { clip-path: inset(0 0 0 0); } }
.loader__mark .m3 { clip-path: inset(0 0 0 0); }
.loader__word {
  font-family: var(--mono); font-size: 13px; letter-spacing: .4em; text-indent: .4em; color: var(--gray-300);
  animation: fadeUp .8s var(--ease-out) .7s both;
}
.loader__bar { width: 180px; height: 2px; background: var(--gray-700); border-radius: 2px; overflow: hidden; animation: fadeUp .6s var(--ease-out) .8s both; }
.loader__bar span { display: block; height: 100%; width: 100%; background: var(--paper); transform-origin: left; transform: scaleX(0); }
.loader__meta {
  display: flex; justify-content: space-between; width: 180px; margin-top: -16px;
  font-family: var(--mono); font-size: 11px; letter-spacing: .08em; color: var(--gray-400);
  animation: fadeUp .6s var(--ease-out) .85s both;
}
@keyframes fadeUp { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
body.is-loading { overflow: hidden; }

/* ==========================================================================
   Header
   ========================================================================== */
.progress-line {
  position: fixed; top: 0; left: 0; height: 2px; width: 100%; z-index: 210;
  background: var(--ink); transform-origin: left; transform: scaleX(0);
}
.site-header {
  position: sticky; top: 0; z-index: 200;
  background: rgba(255,255,255,.86);
  border-bottom: 1px solid transparent;
  transition: border-color .3s, background .3s, transform .45s var(--ease-out);
}
.site-header.is-scrolled { border-bottom-color: var(--gray-100); background: rgba(255,255,255,.97); }
.site-header.is-hidden { transform: translateY(-100%); }
.site-header__in {
  height: var(--header-h); display: flex; align-items: center; justify-content: space-between; gap: 24px;
}
.brand { display: flex; align-items: center; min-height: 44px; }
.brand img { height: 26px; width: auto; }
.nav { display: flex; align-items: center; gap: 32px; font-size: 15px; }
.nav__link { position: relative; display: inline-flex; align-items: center; min-height: 44px; }
.nav__link::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 10px; height: 1px; background: currentColor;
  transform: scaleX(0); transform-origin: right; transition: transform .4s var(--ease-out);
}
.nav__link:hover::after, .nav__link.is-active::after { transform: scaleX(1); transform-origin: left; }

.menu-btn {
  display: none; width: 48px; height: 48px; border: 1px solid var(--gray-100); border-radius: var(--radius-pill);
  background: var(--paper); cursor: pointer; position: relative;
}
.menu-btn span {
  position: absolute; left: 14px; right: 14px; height: 1.5px; background: var(--ink);
  transition: transform .4s var(--ease-out), opacity .2s;
}
.menu-btn span:nth-child(1) { top: 19px; }
.menu-btn span:nth-child(2) { top: 27px; }
.menu-open .menu-btn span:nth-child(1) { transform: translateY(4px) rotate(45deg); }
.menu-open .menu-btn span:nth-child(2) { transform: translateY(-4px) rotate(-45deg); }

/* ==========================================================================
   Hero
   ========================================================================== */
.hero {
  position: relative; overflow: hidden;
  background-color: var(--paper);
}
.hero__grid {
  position: absolute; inset: -2px; pointer-events: none;
  background-image:
    linear-gradient(rgba(10,10,10,.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(10,10,10,.06) 1px, transparent 1px);
  background-size: 120px 120px;
  -webkit-mask-image: radial-gradient(ellipse 80% 80% at 50% 40%, #000 40%, transparent 100%);
          mask-image: radial-gradient(ellipse 80% 80% at 50% 40%, #000 40%, transparent 100%);
}
.hero__spot {
  position: absolute; inset: 0; pointer-events: none; opacity: 0; transition: opacity .4s;
  background: radial-gradient(360px circle at var(--mx, 50%) var(--my, 50%), rgba(10,10,10,.05), transparent 70%);
}
.hero:hover .hero__spot { opacity: 1; }
.hero__in {
  position: relative; display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr);
  gap: 64px; align-items: center; padding-top: 88px; padding-bottom: 112px;
}
.hero__copy { display: flex; flex-direction: column; gap: 32px; min-width: 0; }
.hero__title { font-size: clamp(44px, 7vw, 88px); line-height: 1; font-weight: 700; letter-spacing: -.045em; }

/* Stage drži stalnu visinu da se stranica ne pomjera dok tekst mijenja */
.stage { position: relative; display: block; height: 1.95em; transition: height .7s var(--ease-out); }

/* Završno: veliko "Zcore", ispod dva reda iste širine (JS ih poravna od ivice do ivice) */
.reel-final { display: block; }
.reel-big {
  display: block; white-space: nowrap; font-size: 1.75em; line-height: .84; font-weight: 700; letter-spacing: -.055em;
  padding-bottom: .04em;
}
.fit-line {
  display: block; white-space: nowrap; font-size: .5em; line-height: 1.02; font-weight: 600; letter-spacing: -.035em;
  color: var(--gray-700);
}
.reel-big + .fit-line { margin-top: .06em; }
.fit-line .reel-word { margin: 0; }
.stage__type, .stage__reel { position: absolute; left: 0; right: 0; top: 0; }
.stage__type { white-space: pre-wrap; }
.caret {
  /* negativna desna margina = kursor ne zauzima širinu, pa nikad sam ne prelazi u novi red */
  display: inline-block; width: .07em; height: .86em; margin-left: .05em; margin-right: -.12em; vertical-align: -.06em;
  background: currentColor; animation: caret 1s steps(1) infinite;
}
.caret.is-typing { animation: none; }
.caret.is-gone { opacity: 0; transition: opacity .6s; animation: none; }
@keyframes caret { 50% { opacity: 0; } }

.reel-line { display: block; }
.reel-line--sub {
  font-size: .4em; line-height: 1.2; font-weight: 600; letter-spacing: -.03em; margin-top: .35em;
  color: var(--gray-700);
}
.reel-word {
  display: inline-block; opacity: 0; transform: translate3d(0, .45em, 0) scale(.86);
  transition: opacity .45s var(--ease-out), transform .6s var(--ease-out);
}
.reel-word.is-in { opacity: 1; transform: none; }
.reel-hl {
  position: relative; display: inline-block; padding: 0 .14em .04em; margin-left: -.06em; color: var(--paper); isolation: isolate;
}
.reel-hl::before {
  content: ""; position: absolute; inset: .04em 0 -.02em; z-index: -1; background: var(--ink); border-radius: .08em;
  transform: scaleX(0); transform-origin: left; transition: transform .5s var(--ease-out);
}
.reel-hl.is-in::before { transform: scaleX(1); }
.stage__reel.is-out .reel-word, .stage__reel.is-out .reel-hl {
  opacity: 0; transform: translate3d(0, -.35em, 0);
  transition: opacity .35s var(--ease-in-out), transform .45s var(--ease-in-out);
}
.reel-shake { animation: shake .5s var(--ease-out) .15s; }
@keyframes shake {
  0%, 100% { transform: none; }
  20% { transform: translateX(-.03em) rotate(-1.2deg); }
  40% { transform: translateX(.03em) rotate(1.2deg); }
  60% { transform: translateX(-.02em) rotate(-.6deg); }
  80% { transform: translateX(.02em) rotate(.6deg); }
}

.hero__lead { font-size: 20px; line-height: 30px; color: var(--gray-700); max-width: 540px; }
.hero__ctas { display: flex; flex-wrap: wrap; gap: 16px; }
.hero__meta { display: flex; flex-wrap: wrap; gap: 8px 24px; }

/* Hero intro (poslije loadera) */
.js .intro { opacity: 0; transform: translateY(24px); }
.is-ready .intro { opacity: 1; transform: none; transition: opacity .9s var(--ease-out), transform 1s var(--ease-out); transition-delay: var(--d, 0s); }

/* Dashboard kartica */
.dash {
  background: var(--gray-50); border: 1px solid var(--gray-100); border-radius: var(--radius-lg);
  padding: 24px; display: flex; flex-direction: column; gap: 14px;
  box-shadow: 0 30px 80px -40px rgba(10,10,10,.35);
  transform-style: preserve-3d; transition: transform .6s var(--ease-out);
}
.dash__head { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.dash__live { display: inline-flex; align-items: center; gap: 8px; }
.dash__live i { position: relative; width: 8px; height: 8px; border-radius: 50%; background: var(--ink); }
.dash__live i::after {
  content: ""; position: absolute; inset: 0; border-radius: 50%; background: var(--ink);
  animation: pulse 1.6s var(--ease-out) infinite; will-change: transform, opacity;
}
@keyframes pulse { from { transform: scale(1); opacity: .45; } to { transform: scale(3.2); opacity: 0; } }
.tag {
  font-family: var(--mono); font-size: 12px; line-height: 16px; font-weight: 500; letter-spacing: .08em; text-transform: uppercase;
  color: var(--gray-500); border: 1px solid var(--gray-500); border-radius: var(--radius-sm); padding: 2px 8px;
}
.order {
  background: var(--paper); border: 1px solid var(--gray-100); border-radius: var(--radius-md); padding: 16px;
  display: flex; flex-direction: column; gap: 12px;
  transition: transform .4s var(--ease-out), box-shadow .4s var(--ease-out);
}
.order:hover { transform: translateY(-2px); box-shadow: 0 12px 30px -18px rgba(10,10,10,.4); }
.order__top { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; }
.order__id { display: flex; flex-direction: column; gap: 4px; }
.order__name { font-size: 16px; font-weight: 600; }
.order__qty { font-family: var(--mono); font-size: 14px; line-height: 20px; font-variant-numeric: tabular-nums; }
.bar { height: 6px; border-radius: var(--radius-pill); background: var(--gray-100); overflow: hidden; }
.bar > span {
  display: block; height: 100%; width: var(--p, 0%); border-radius: inherit; background: var(--ink);
  transform-origin: left; transform: scaleX(0); transition: transform 1.4s var(--ease-out);
}
.is-in .bar > span, .bar.is-in > span { transform: scaleX(1); }
.status { display: flex; align-items: center; gap: 8px; font-size: 14px; line-height: 20px; color: var(--gray-500); }
/* Pregled se "učitava": statusi se pojave tek kad se brojevi napune */
.js .dash .status { opacity: 0; transform: translateY(6px); transition: opacity .5s var(--ease-out), transform .6s var(--ease-out); }
.js .dash.is-loaded .status { opacity: 1; transform: none; }
.js .dash.is-loaded .order:nth-of-type(3) .status { transition-delay: .12s; }
.js .dash.is-loaded .order:nth-of-type(4) .status { transition-delay: .24s; }
.js .dash .order { opacity: 0; transform: translateY(14px); transition: opacity .6s var(--ease-out), transform .7s var(--ease-out), box-shadow .4s; }
.js .dash.is-in .order { opacity: 1; transform: none; }
.js .dash.is-in .order:nth-of-type(3) { transition-delay: .1s; }
.js .dash.is-in .order:nth-of-type(4) { transition-delay: .2s; }
.dot { width: 10px; height: 10px; border-radius: 50%; flex: 0 0 10px; }
.dot--full { background: var(--ink); }
.dot--ring { border: 2px solid var(--ink); }
.dot--blink { animation: blink 1.2s steps(1) infinite; }
@keyframes blink { 50% { opacity: .2; } }
.kpis { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.kpi { background: var(--ink); color: var(--paper); border-radius: var(--radius-md); padding: 16px; display: flex; flex-direction: column; gap: 4px; }
.kpi .label { color: var(--gray-400); }
.kpi__val { font-size: 28px; line-height: 32px; font-weight: 600; letter-spacing: -.02em; font-variant-numeric: tabular-nums; }

/* ---------- Ticker ---------- */
.ticker { background: var(--ink); color: var(--paper); overflow: hidden; border-top: 1px solid var(--ink); }
.ticker__track { display: flex; width: max-content; animation: ticker 38s linear infinite; }
.ticker:hover .ticker__track { animation-play-state: paused; }
.ticker__group { display: flex; align-items: center; gap: 40px; padding: 18px 20px; }
.ticker__item { display: inline-flex; align-items: center; gap: 40px; font-family: var(--mono); font-size: 13px; letter-spacing: .08em; text-transform: uppercase; color: var(--gray-300); white-space: nowrap; }
.ticker__item::after { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--gray-700); }
@keyframes ticker { to { transform: translateX(-50%); } }

/* ==========================================================================
   Sekcije
   ========================================================================== */
.grid-3 { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(300px, 100%), 1fr)); gap: 32px; }
.pain { border-top: 1px solid var(--ink); padding-top: 24px; display: flex; flex-direction: column; gap: 12px; position: relative; }
.pain::before {
  content: ""; position: absolute; top: -1px; left: 0; height: 3px; width: 64px; background: var(--ink);
  transform: scaleX(0); transform-origin: left; transition: transform 1s var(--ease-out) .3s;
}
.pain.is-in::before { transform: scaleX(1); }
.pain p { font-size: 16px; line-height: 24px; color: var(--gray-500); }

/* Radnik / telefon */
.split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 64px; align-items: center; }
.steps { display: flex; flex-direction: column; }
.step { display: flex; gap: 16px; padding: 16px 0; border-top: 1px solid var(--gray-100); font-size: 16px; line-height: 24px; }
.step:last-child { border-bottom: 1px solid var(--gray-100); }
.step .num { flex: 0 0 32px; font-family: var(--mono); font-size: 12px; line-height: 24px; letter-spacing: .08em; color: var(--gray-500); }
.phone-wrap {
  background: var(--gray-50); border: 1px solid var(--gray-100); border-radius: var(--radius-lg);
  padding: 48px 24px; display: flex; justify-content: center; position: relative; overflow: hidden;
}
.phone-wrap::before {
  content: ""; position: absolute; inset: 0;
  background-image: linear-gradient(rgba(10,10,10,.05) 1px, transparent 1px), linear-gradient(90deg, rgba(10,10,10,.05) 1px, transparent 1px);
  background-size: 40px 40px;
}
.phone {
  position: relative; width: 300px; max-width: 100%; background: var(--paper); border: 8px solid var(--ink); border-radius: 44px;
  padding: 24px 16px; display: flex; flex-direction: column; gap: 16px;
  box-shadow: 0 40px 80px -40px rgba(10,10,10,.5);
}
.phone__count { display: flex; align-items: baseline; gap: 8px; }
.phone__big { font-size: 64px; line-height: 64px; font-weight: 700; letter-spacing: -.045em; font-variant-numeric: tabular-nums; display: inline-block; }
.phone__big.bump { animation: bump .45s var(--ease-out); }
@keyframes bump { 0% { transform: scale(1); } 40% { transform: scale(1.12); } 100% { transform: scale(1); } }
.pbtn {
  min-height: 64px; border-radius: var(--radius-md); font-size: 18px; font-weight: 600; cursor: pointer;
  transition: transform .15s var(--ease-out), background .2s, color .2s;
}
.pbtn:active { transform: scale(.96); }
.pbtn--dark { border: 0; background: var(--ink); color: var(--paper); }
.pbtn--light { border: 1.5px solid var(--ink); background: var(--paper); color: var(--ink); }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip {
  min-height: 44px; padding: 0 16px; border: 1px solid var(--gray-500); border-radius: var(--radius-pill);
  background: var(--paper); font-size: 14px; font-weight: 500; cursor: pointer; transition: background .2s, color .2s, border-color .2s;
}
.chip[aria-pressed="true"] { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.phone__meta { display: flex; justify-content: space-between; font-family: var(--mono); font-size: 12px; letter-spacing: .06em; color: var(--gray-500); text-transform: uppercase; }
.toast {
  position: absolute; left: 50%; bottom: 20px; transform: translate(-50%, 20px); opacity: 0;
  background: var(--ink); color: var(--paper); padding: 10px 16px; border-radius: var(--radius-pill);
  font-family: var(--mono); font-size: 12px; letter-spacing: .06em; text-transform: uppercase; white-space: nowrap;
  transition: opacity .3s, transform .4s var(--ease-out); pointer-events: none;
}
.toast.is-on { opacity: 1; transform: translate(-50%, 0); }

/* Tok proizvodnje */
.flow { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(320px, 100%), 1fr)); gap: 48px 32px; counter-reset: flow; }
.flow__item { border-top: 1px solid var(--gray-700); padding-top: 24px; display: flex; flex-direction: column; gap: 12px; position: relative; }
.flow__item::before {
  content: ""; position: absolute; top: -1px; left: 0; right: 0; height: 1px; background: var(--paper);
  transform: scaleX(0); transform-origin: left; transition: transform 1.2s var(--ease-out) calc(var(--d, 0s) + .2s);
}
.flow__item.is-in::before { transform: scaleX(1); }
.flow__num {
  font-size: 64px; line-height: 64px; font-weight: 700; letter-spacing: -.045em;
  color: transparent; -webkit-text-stroke: 1px var(--gray-400);
  background: linear-gradient(var(--paper), var(--paper)) left / 0% 100% no-repeat;
  -webkit-background-clip: text; background-clip: text;
  transition: background-size 1s var(--ease-out), -webkit-text-stroke-color .6s;
}
.flow__item:hover .flow__num { background-size: 100% 100%; -webkit-text-stroke-color: var(--paper); }
.flow__item p { font-size: 16px; line-height: 24px; color: var(--gray-300); }

/* Moduli */
.modules { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(260px, 100%), 1fr)); gap: 16px; }
.module {
  border: 1px solid var(--gray-100); border-radius: var(--radius-lg); padding: 24px; display: flex; flex-direction: column; gap: 12px;
  background: var(--paper); position: relative; overflow: hidden;
  transition: transform .5s var(--ease-out), border-color .3s, box-shadow .5s var(--ease-out);
}
.module:hover { transform: translateY(-4px); border-color: var(--ink); box-shadow: 0 24px 50px -30px rgba(10,10,10,.45); }
.module--later { border-style: dashed; border-color: var(--gray-500); }
.module__top { display: flex; align-items: center; justify-content: space-between; }
.module__n { font-family: var(--mono); font-size: 12px; line-height: 16px; letter-spacing: .08em; color: var(--gray-500); }
.module h3 { font-size: 20px; line-height: 26px; font-weight: 600; letter-spacing: -.02em; }
.module p { font-size: 14px; line-height: 20px; color: var(--gray-500); }
.badge { font-family: var(--mono); font-size: 12px; line-height: 16px; font-weight: 500; letter-spacing: .08em; padding: 2px 8px; border-radius: var(--radius-sm); }
.badge--first { background: var(--ink); color: var(--paper); }
.badge--next { border: 1px solid var(--ink); padding: 1px 7px; }
.badge--later { border: 1px dashed var(--gray-500); color: var(--gray-500); padding: 1px 7px; }

.filters { display: flex; flex-wrap: wrap; gap: 8px; margin: -24px 0 32px; }
.filter {
  min-height: 44px; padding: 0 18px; border-radius: var(--radius-pill); border: 1px solid var(--gray-100); background: var(--paper);
  font-family: var(--mono); font-size: 12px; letter-spacing: .08em; text-transform: uppercase; cursor: pointer;
  transition: background .25s, color .25s, border-color .25s;
}
.filter:hover { border-color: var(--ink); }
.filter[aria-pressed="true"] { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.module.is-hidden { display: none; }
.module.is-pop { animation: modPop .5s var(--ease-out) var(--pd, 0ms) backwards; }
@keyframes modPop { from { opacity: 0; transform: translateY(16px) scale(.97); } to { opacity: 1; transform: none; } }
.module { transition: transform .5s var(--ease-out), border-color .3s, box-shadow .5s var(--ease-out), opacity .4s; }

/* Uloge */
.roles { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(260px, 100%), 1fr)); gap: 16px; }
.role {
  background: var(--paper); border: 1px solid var(--gray-100); border-radius: var(--radius-lg); padding: 24px;
  display: flex; flex-direction: column; gap: 16px; transition: transform .5s var(--ease-out), box-shadow .5s var(--ease-out);
}
.role:hover { transform: translateY(-4px); box-shadow: 0 24px 50px -30px rgba(10,10,10,.35); }
.role__head { display: flex; flex-direction: column; gap: 8px; }
.role__icon { width: 44px; height: 44px; border-radius: 12px; background: var(--ink); color: var(--paper); display: grid; place-items: center; margin-bottom: 8px; }
.role__icon svg { width: 22px; height: 22px; }
.role ul { list-style: none; margin: 0; padding: 0; font-size: 14px; line-height: 20px; }
.role li { padding: 12px 0; border-top: 1px solid var(--gray-100); }

/* Pravila */
.rules { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(440px, 100%), 1fr)); gap: 0 64px; }
.rule { display: flex; gap: 24px; padding: 24px 0; border-top: 1px solid var(--gray-700); }
.rule .num { flex: 0 0 32px; font-family: var(--mono); font-size: 12px; line-height: 28px; letter-spacing: .08em; color: var(--gray-400); }
.rule h3 { font-size: 20px; line-height: 28px; font-weight: 600; letter-spacing: -.02em; margin-bottom: 8px; }
.rule p { font-size: 16px; line-height: 24px; color: var(--gray-300); }

/* Sigurnost */
.sec { border-top: 1px solid var(--ink); padding-top: 24px; display: flex; flex-direction: column; gap: 12px; }
.sec__icon { width: 24px; height: 24px; margin-bottom: 4px; }
.sec h3 { font-size: 20px; line-height: 28px; font-weight: 600; letter-spacing: -.02em; }
.sec p { font-size: 16px; line-height: 24px; color: var(--gray-500); }

/* Kontakt */
.contact { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 64px; align-items: start; }
.contact__list { display: flex; flex-direction: column; }
.contact__row { display: flex; gap: 16px; padding: 16px 0; border-top: 1px solid var(--gray-700); }
.contact__row:last-child { border-bottom: 1px solid var(--gray-700); }
.contact__row .label { flex: 0 0 96px; line-height: 24px; }
.contact__row a { text-decoration: underline; text-underline-offset: 4px; }
.contact__row a:hover { color: var(--gray-300); }
.form {
  background: var(--gray-900); border: 1px solid var(--gray-700); border-radius: var(--radius-lg); padding: 32px;
  display: flex; flex-direction: column; gap: 20px;
}
.field { display: flex; flex-direction: column; gap: 8px; }
.field label { font-size: 14px; line-height: 20px; font-weight: 500; color: var(--gray-300); }
.field input, .field select, .field textarea {
  width: 100%; min-height: 52px; padding: 0 16px; border: 1px solid var(--gray-700); border-radius: var(--radius-md);
  background: var(--ink); color: var(--paper); font-size: 16px; transition: border-color .25s, box-shadow .25s;
}
.field textarea { padding: 14px 16px; line-height: 24px; resize: vertical; min-height: 120px; }
.field select { appearance: none; -webkit-appearance: none; padding-right: 44px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='none' stroke='%23B5B5B5' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m4 6 4 4 4-4'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 16px center; }
.field input:hover, .field select:hover, .field textarea:hover { border-color: var(--gray-400); }
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--paper); box-shadow: 0 0 0 3px rgba(255,255,255,.12); outline: none; }
.field input[aria-invalid="true"] { border-color: var(--paper); border-style: dashed; }
.field .err { font-size: 13px; line-height: 18px; color: var(--paper); display: none; }
.field.has-error .err { display: block; }
.consent { display: flex; gap: 12px; align-items: flex-start; }
.consent input { flex: 0 0 24px; width: 24px; height: 24px; margin: 0; accent-color: var(--paper); }
.consent label { font-size: 14px; line-height: 20px; color: var(--gray-300); }
.consent a { color: var(--paper); text-decoration: underline; text-underline-offset: 3px; }
.form__status { font-size: 14px; line-height: 20px; color: var(--gray-300); min-height: 20px; }
.form__status.is-ok { color: var(--paper); }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.btn.is-loading { pointer-events: none; opacity: .7; }

/* ==========================================================================
   Footer
   ========================================================================== */
.site-footer { background: var(--ink); color: var(--gray-300); border-top: 1px solid var(--gray-700); }
.site-footer__in { padding-top: 64px; padding-bottom: 32px; display: flex; flex-direction: column; gap: 48px; }
.footer-top { display: flex; flex-wrap: wrap; gap: 48px 64px; justify-content: space-between; }
.footer-brand { flex: 1 1 280px; max-width: 380px; display: flex; flex-direction: column; gap: 16px; }
.footer-brand img { height: 26px; width: auto; align-self: flex-start; }
.footer-brand p { font-size: 14px; line-height: 20px; color: var(--gray-400); }
.footer-cols { display: flex; flex-wrap: wrap; gap: 32px 64px; }
.footer-col { display: flex; flex-direction: column; gap: 4px; }
.footer-col .label { padding-bottom: 8px; color: var(--gray-400); }
.footer-col a, .footer-col span, .footer-col button {
  display: inline-flex; align-items: center; min-height: 44px; font-size: 14px; transition: color .2s;
}
.footer-col button { background: none; border: 0; padding: 0; cursor: pointer; color: inherit; text-align: left; }
.footer-col a:hover, .footer-col button:hover { color: var(--paper); }
.footer-bottom {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 32px;
  padding-top: 24px; border-top: 1px solid var(--gray-700); font-size: 14px; line-height: 20px; color: var(--gray-400);
}

/* ==========================================================================
   Kolačići — baner
   ========================================================================== */
.cookie {
  position: fixed; left: 16px; right: 16px; bottom: 16px; z-index: 250; max-width: 960px; margin: 0 auto;
  background: var(--ink); color: var(--paper); border-radius: var(--radius-lg); padding: 24px 32px;
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 20px 32px;
  box-shadow: 0 30px 80px -30px rgba(0,0,0,.6);
  transform: translateY(calc(100% + 32px)); visibility: hidden;
  transition: transform .7s var(--ease-out), visibility 0s .7s;
}
.cookie.is-on { transform: none; visibility: visible; transition: transform .7s var(--ease-out), visibility 0s; }
.cookie__text { flex: 1 1 360px; display: flex; flex-direction: column; gap: 8px; }
.cookie__text .label { color: var(--gray-400); }
.cookie__text p { font-size: 14px; line-height: 20px; color: var(--gray-300); }
.cookie__text a { color: var(--paper); text-decoration: underline; text-underline-offset: 3px; }
.cookie__btns { display: flex; flex-wrap: wrap; gap: 8px; }
.cookie .btn { min-height: 48px; font-size: 14px; padding: 0 20px; }
.btn--ghost-dark { background: var(--ink); color: var(--paper); border-color: var(--gray-400); }
.btn--ghost-dark::before { background: var(--gray-700); }

/* ==========================================================================
   Pravne stranice
   ========================================================================== */
.legal-hero { background: var(--gray-50); border-bottom: 1px solid var(--gray-100); }
.legal-hero__in { padding-top: 80px; padding-bottom: 64px; display: flex; flex-direction: column; gap: 24px; }
.legal-hero h1 { font-size: clamp(44px, 6vw, 72px); line-height: 1.04; font-weight: 700; letter-spacing: -.04em; }
.legal-hero p { font-size: 18px; line-height: 28px; color: var(--gray-700); max-width: 680px; }
.legal { padding-top: 64px; padding-bottom: 96px; display: grid; grid-template-columns: 280px minmax(0, 760px); gap: 48px 64px; align-items: start; }
.toc { position: sticky; top: calc(var(--header-h) + 24px); display: flex; flex-direction: column; }
.toc .label { padding-bottom: 12px; }
.toc a { display: block; padding: 8px 0; border-top: 1px solid var(--gray-100); font-size: 14px; line-height: 20px; color: var(--gray-500); transition: color .2s, padding .3s var(--ease-out); }
.toc a:last-child { border-bottom: 1px solid var(--gray-100); }
.toc a:hover, .toc a.is-active { color: var(--ink); padding-left: 8px; }
.prose section { scroll-margin-top: calc(var(--header-h) + 24px); padding-top: 40px; border-top: 1px solid var(--gray-100); margin-top: 40px; }
.prose section:first-child { border-top: 0; margin-top: 0; padding-top: 0; }
.prose h2 { margin: 0 0 16px; font-size: 24px; line-height: 30px; font-weight: 600; letter-spacing: -.02em; }
.prose p { margin: 0 0 16px; font-size: 16px; line-height: 26px; color: var(--gray-700); }
.prose ul { margin: 0 0 16px; padding-left: 20px; font-size: 16px; line-height: 26px; color: var(--gray-700); }
.prose li { margin-bottom: 8px; }
.prose a { color: var(--ink); text-decoration: underline; text-underline-offset: 3px; }
.tw { overflow-x: auto; margin: 0 0 16px; -webkit-overflow-scrolling: touch; }
.t { width: 100%; min-width: 520px; border-collapse: collapse; font-size: 14px; line-height: 20px; color: var(--gray-700); }
.t th { text-align: left; font-family: var(--mono); font-size: 12px; line-height: 16px; font-weight: 500; letter-spacing: .08em; text-transform: uppercase; color: var(--gray-500); padding: 12px 16px 12px 0; border-bottom: 1px solid var(--ink); }
.t td { padding: 12px 16px 12px 0; border-bottom: 1px solid var(--gray-100); vertical-align: top; }
.t td:first-child { font-weight: 600; color: var(--ink); width: 30%; }

/* ==========================================================================
   Reveal animacije
   ========================================================================== */
.js .reveal { opacity: 0; transform: translateY(32px); transition: opacity .9s var(--ease-out), transform 1s var(--ease-out); transition-delay: var(--d, 0s); }
.js .reveal.is-in { opacity: 1; transform: none; }
.js .reveal-mask { opacity: 0; transform: translate3d(0, 40px, 0); transition: opacity 1s var(--ease-out), transform 1.1s var(--ease-out); transition-delay: var(--d, 0s); }
.js .reveal-mask.is-in { opacity: 1; transform: none; }

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (max-width: 1024px) {
  .hero__in { grid-template-columns: 1fr; gap: 56px; padding-top: 64px; padding-bottom: 88px; }
  .hero__visual { max-width: 560px; }
  .split, .contact { grid-template-columns: 1fr; gap: 48px; }
  .legal { grid-template-columns: 1fr; }
  .toc { position: static; }
}

@media (max-width: 880px) {
  :root { --header-h: 68px; }
  .menu-btn { display: block; }
  .nav {
    position: fixed; left: 0; right: 0; top: var(--header-h); bottom: 0;
    flex-direction: column; align-items: stretch; gap: 0; padding: 16px var(--gutter) 32px;
    background: var(--paper); font-size: 28px; font-weight: 600; letter-spacing: -.02em;
    clip-path: inset(0 0 100% 0); visibility: hidden;
    transition: clip-path .6s var(--ease-in-out), visibility 0s .6s;
    overflow-y: auto;
  }
  .menu-open .nav { clip-path: inset(0 0 0 0); visibility: visible; transition: clip-path .6s var(--ease-in-out), visibility 0s; }
  .nav__link { min-height: 64px; border-bottom: 1px solid var(--gray-100); opacity: 0; transform: translateY(16px); transition: opacity .4s, transform .5s var(--ease-out); }
  .nav__link::after { display: none; }
  .menu-open .nav__link { opacity: 1; transform: none; }
  .menu-open .nav__link:nth-child(1) { transition-delay: .15s; }
  .menu-open .nav__link:nth-child(2) { transition-delay: .2s; }
  .menu-open .nav__link:nth-child(3) { transition-delay: .25s; }
  .menu-open .nav__link:nth-child(4) { transition-delay: .3s; }
  .menu-open .nav__link:nth-child(5) { transition-delay: .35s; }
  .nav .btn { margin-top: 24px; min-height: 56px; font-size: 16px; letter-spacing: 0; }
  body.menu-open { overflow: hidden; }
  .site-header, .site-header.is-scrolled { background: var(--paper); }
  .site-header.menu-open { background: var(--paper); border-bottom-color: var(--gray-100); }
}

@media (max-width: 640px) {
  :root { --gutter: 16px; }
  .section { padding: 80px 0; }
  .section-head { margin-bottom: 40px; }
  .hero__in { padding-top: 40px; padding-bottom: 72px; gap: 48px; }
  .hero__copy { gap: 24px; }
  .stage { height: 2.1em; }
  .reel-big { font-size: 2.25em; }
  .hero__lead { font-size: 18px; line-height: 28px; }
  .hero__ctas .btn { flex: 1 1 100%; }
  .dash { padding: 16px; border-radius: 20px; }
  .kpi { padding: 12px; }
  .kpi__val { font-size: 22px; line-height: 28px; }
  .phone-wrap { padding: 32px 12px; }
  .form { padding: 24px 20px; }
  .contact__row { flex-direction: column; gap: 4px; }
  .contact__row .label { flex: none; }
  .cookie { padding: 20px; left: 8px; right: 8px; bottom: 8px; }
  .cookie__btns { width: 100%; }
  .cookie__btns .btn { flex: 1 1 140px; }
  .rule { gap: 16px; }
  .legal-hero__in { padding-top: 56px; padding-bottom: 48px; }
  .legal { padding-top: 40px; padding-bottom: 72px; }
}

@media (max-width: 380px) {
  .kpis { gap: 6px; }
  .kpi { padding: 10px; }
  .kpi .label { font-size: 10px; }
}

/* ---------- Slabiji računari ----------
   Animacije ostaju iste za sve (i kad je u Windowsu uključeno "Adjust for best performance",
   što preglednik javlja kao prefers-reduced-motion). Na slabijim uređajima (klasa .lite)
   gase se samo skupi ukrasi koji prate miš. */
.lite .hero__spot { display: none; }
.lite .dash { box-shadow: 0 20px 40px -30px rgba(10,10,10,.35); }

@media print {
  .loader, .site-header, .cookie, .ticker, .progress-line { display: none !important; }
  .js .reveal, .js .reveal-mask, .js .intro { opacity: 1 !important; transform: none !important; clip-path: none !important; }
}
