/* =====================================================================
   MNTIOM — Digitalni marketing
   Locked design system. Do NOT add colors or fonts.
   ===================================================================== */

:root {
  /* --- Colors (the 5 brand colors + 2 derived neutrals) --- */
  --ink:      #0D1117;  /* text + hard rules — near-black navy */
  --surface:  #1C2333;  /* dark panels & sections — deep navy */
  --paper:    #FFFFFF;  /* background — white */
  --blue:     #2563EB;  /* primary accent on light — signal, not decoration */
  --sky:      #00BFFF;  /* accent on dark surfaces + luminous glows */
  --muted:    #5A6478;  /* secondary text — cool slate (derived) */
  --hairline: #E3E7EE;  /* borders / dividers — cool light gray (derived) */
  --wash:     #EAF1FB;  /* alternating section band — light blue tint */

  /* --- Type --- */
  --sans: "IBM Plex Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, "SFMono-Regular", Menlo, monospace;

  /* --- Layout --- */
  --container: 1200px;
  --pad: clamp(1.25rem, 5vw, 4rem);

  /* --- Motion --- */
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --hover: 0.22s ease;
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  font-family: var(--sans);
  font-size: 18px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
}

img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: none; cursor: pointer; }

.mono { font-family: var(--mono); font-feature-settings: "tnum" 1; }
.is-amber { color: var(--blue); }

/* ---------- Accessibility helpers ---------- */
.skip-link {
  position: absolute; left: -9999px; top: 0; z-index: 200;
  background: var(--ink); color: var(--paper);
  padding: 0.6rem 1rem; font-family: var(--mono); font-size: 13px;
}
.skip-link:focus { left: 1rem; top: 1rem; }

:focus-visible {
  outline: 2px solid var(--blue);
  outline-offset: 3px;
  border-radius: 2px;
}

/* ---------- Container ---------- */
.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--pad);
}

/* ---------- Shared type ---------- */
.eyebrow {
  font-family: var(--mono);
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--muted);
}
.eyebrow--center { text-align: center; }
.eyebrow--invert { color: rgba(255, 255, 255, 0.7); }

.section-title {
  font-size: clamp(2rem, 5.5vw, 3.6rem);
  font-weight: 700;
  line-height: 1.0;
  letter-spacing: -0.03em;
  text-wrap: balance;
  margin-top: 1.1rem;
  max-width: 18ch;
}
.section-lead {
  margin-top: 1.1rem;
  color: var(--muted);
  max-width: 46ch;
}

/* ---------- Section rhythm ---------- */
main > section { padding-block: clamp(52px, 9vw, 110px); }

/* Alternating bands — every other section gets a faint blue wash so the
   long scroll reads as planned rhythm (white → wash → white …). The navy
   .cta keeps its own dark background and is excluded. Applies uniformly
   across the homepage and all subpages (phero is section 1 → stays white). */
main > section:nth-of-type(even):not(.cta) { background: var(--wash); }

/* Cards lift off the tinted band → white, so they keep their definition
   instead of blending into the wash. (On white sections they keep the
   faint-blue fill from their base rule.) */
main > section:nth-of-type(even):not(.cta) :is(
  .step-card, .trust-card, .svc-card, .flow-step, .ministeps li,
  .callout, .compare, .placeholder--dashed, .field input, .field textarea
) { background: var(--paper); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.55em;
  font-weight: 600;
  transition: background var(--hover), color var(--hover), transform var(--hover);
}
.btn--pill { border-radius: 999px; padding: 0.85em 1.5em; }
.btn--amber {
  background: var(--blue);
  color: var(--paper);
}
.btn--amber:hover { transform: translateY(-2px); }
.btn__arrow { transition: transform var(--hover); }
.btn:hover .btn__arrow { transform: translateX(4px); }

.link-arrow {
  display: inline-flex; align-items: center; gap: 0.4em;
  font-family: var(--mono); font-size: 14px; color: var(--ink);
  white-space: nowrap;
}
.link-arrow__a { transition: transform var(--hover); }
.link-arrow:hover .link-arrow__a { transform: translateX(5px); }

/* =====================================================================
   NAV
   ===================================================================== */
.nav {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255, 255, 255, 0.78);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color var(--hover), background var(--hover);
}
.nav.is-scrolled { border-bottom-color: var(--hairline); }
.nav__inner {
  display: flex; align-items: center; justify-content: space-between;
  height: 68px;
}
.wordmark {
  font-weight: 700; font-size: 1.4rem; letter-spacing: -0.04em;
}
.wordmark__i { color: var(--blue); }
.wordmark--sm { font-size: 1.2rem; }

.nav__links { display: flex; gap: clamp(1rem, 2.5vw, 2.2rem); }
.nav__links a {
  font-size: 15px; color: var(--muted);
  transition: color var(--hover);
}
.nav__links a:hover { color: var(--ink); }

.nav__right { display: flex; align-items: center; gap: 0.9rem; }
.nav__cta { font-size: 14px; padding: 0.55em 1.1em; background: var(--ink); color: var(--paper); }
.nav__cta:hover { transform: translateY(-1px); }

.nav__toggle { display: none; width: 40px; height: 40px; flex-direction: column; justify-content: center; gap: 5px; }
.nav__toggle span {
  display: block; height: 2px; width: 22px; margin-inline: auto;
  background: var(--ink); transition: transform var(--hover), opacity var(--hover);
}
.nav.is-open .nav__toggle span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav.is-open .nav__toggle span:nth-child(2) { opacity: 0; }
.nav.is-open .nav__toggle span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---------- Nav dropdown group ("O nama") ---------- */
.nav__group { position: relative; display: flex; align-items: center; }
.nav__group-toggle {
  display: inline-flex; align-items: center; gap: 0.35em;
  font: inherit; font-size: 15px; color: var(--muted);
  background: none; border: 0; padding: 0; cursor: pointer;
  transition: color var(--hover);
}
.nav__group-toggle:hover,
.nav__group:hover .nav__group-toggle,
.nav__group:focus-within .nav__group-toggle,
.nav__group-toggle.is-active { color: var(--ink); }
.nav__caret { font-size: 0.72em; line-height: 1; transition: transform var(--hover); }
.nav__group:hover .nav__caret,
.nav__group:focus-within .nav__caret,
.nav__group.is-open .nav__caret { transform: rotate(180deg); }

.nav__dropdown {
  position: absolute; top: calc(100% + 12px); right: 0;
  min-width: 200px; z-index: 110;
  display: flex; flex-direction: column; gap: 2px;
  background: var(--paper);
  border: 1px solid var(--hairline); border-radius: 14px;
  padding: 0.4rem;
  box-shadow: 0 24px 40px -28px rgba(13, 17, 23, 0.45);
  opacity: 0; visibility: hidden; transform: translateY(-6px);
  transition: opacity var(--hover), transform var(--hover), visibility var(--hover);
}
.nav__dropdown::before { content: ""; position: absolute; top: -12px; left: 0; right: 0; height: 12px; }
.nav__group:hover .nav__dropdown,
.nav__group:focus-within .nav__dropdown,
.nav__group.is-open .nav__dropdown { opacity: 1; visibility: visible; transform: none; }
.nav__dropdown a {
  display: block; padding: 0.5rem 0.7rem; border-radius: 8px;
  font-size: 15px; color: var(--muted); white-space: nowrap;
  transition: color var(--hover), background var(--hover);
}
.nav__dropdown a:hover { color: var(--ink); background: rgba(13, 17, 23, 0.05); }
.nav__dropdown a[aria-current="page"] { color: var(--blue); }
.nav__links .nav__dropdown a[aria-current="page"]::after { display: none; }

@media (max-width: 820px) {
  .nav__links {
    position: absolute; top: 68px; left: 0; right: 0;
    flex-direction: column; gap: 0;
    background: var(--paper);
    box-shadow: 0 24px 40px -28px rgba(13, 17, 23, 0.45);
    backdrop-filter: blur(14px);
    border-bottom: 1px solid var(--hairline);
    padding: 0.5rem var(--pad) 1.25rem;
    transform: translateY(-12px); opacity: 0; pointer-events: none;
    transition: transform var(--hover), opacity var(--hover);
  }
  .nav.is-open .nav__links { transform: none; opacity: 1; pointer-events: auto; }
  .nav__links a { padding: 0.85rem 0; border-bottom: 1px solid var(--hairline); font-size: 1.1rem; }
  .nav__toggle { display: flex; }
  .nav__cta { display: none; }
  /* dropdown collapses to a flat list inside the hamburger */
  .nav__group { display: contents; }
  .nav__group-toggle { display: none; }
  .nav__dropdown {
    position: static; display: contents;
    opacity: 1; visibility: visible; transform: none;
    box-shadow: none; border: 0; padding: 0; min-width: 0;
  }
  .nav__dropdown::before { display: none; }
}

/* =====================================================================
   1 · HERO
   ===================================================================== */
.hero { position: relative; overflow: clip; padding-block: clamp(96px, 16vw, 190px) clamp(72px, 12vw, 150px); }
.hero__bloom {
  position: absolute; top: -20%; right: -10%;
  width: 70vw; height: 70vw; max-width: 900px; max-height: 900px;
  background: radial-gradient(circle at 60% 40%, rgba(0, 191, 255, 0.28), rgba(0, 191, 255, 0) 62%);
  pointer-events: none; z-index: 0;
}
/* Particle constellation — vanilla canvas, transparent over the cream bg */
.hero__canvas { position: absolute; inset: 0; z-index: 0; pointer-events: none; }
.hero__inner { position: relative; z-index: 1; max-width: 980px; }
.hero__title {
  font-size: clamp(2.85rem, 11vw, 8.5rem);
  font-weight: 700;
  line-height: 0.95;
  letter-spacing: -0.03em;
  margin-top: 1.4rem;
  text-wrap: balance;
}
.hero__sub {
  margin-top: 1.8rem;
  font-size: clamp(1.05rem, 1.6vw, 1.35rem);
  color: var(--muted);
  max-width: 44ch;
}
.hero__sub strong { color: var(--ink); font-weight: 600; }
.hero__cta { margin-top: 2.4rem; font-size: 1.05rem; }

/* Circular stamp */
.stamp {
  position: absolute; z-index: 2;
  top: clamp(80px, 13vw, 150px); right: var(--pad);
  width: clamp(96px, 13vw, 160px); aspect-ratio: 1;
  display: grid; place-items: center;
}
.stamp__svg { width: 100%; height: 100%; }
.stamp__text {
  font-family: var(--mono);
  font-size: 11.5px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  fill: var(--muted);
}
.stamp__arrow {
  position: absolute; font-size: 1.4rem; color: var(--ink);
}
@media (max-width: 560px) { .stamp { display: none; } }

/* =====================================================================
   2 · INTRO + scroll-tilt
   ===================================================================== */
.intro { text-align: center; overflow: clip; }
.intro__title {
  font-size: clamp(2.6rem, 6vw, 5rem);
  font-weight: 700; line-height: 0.98; letter-spacing: -0.03em;
  text-wrap: balance;
  margin: 1.1rem auto 0; max-width: 16ch;
  will-change: transform;
}
.intro__sub {
  margin: 1.4rem auto 0; color: var(--muted);
  max-width: 50ch;
}

.tilt {
  perspective: 1000px;
  margin-top: clamp(48px, 8vw, 96px);
  padding-inline: var(--pad);
  overflow: clip;
}
.tilt__card {
  max-width: 1000px; margin-inline: auto;
  background: var(--surface);
  border-radius: 26px;
  padding: clamp(14px, 2vw, 22px);
  box-shadow: 0 40px 90px -30px rgba(13, 17, 23, 0.5);
  transform-origin: center top;
  /* default FLAT so no-JS / reduced-motion shows it resting */
  transform: none;
  will-change: transform;
}

/* ---------- Reserved placeholder panels ---------- */
.placeholder {
  position: relative;
  display: grid; place-content: center; gap: 0.5rem; text-align: center;
  border-radius: 16px;
  min-height: 0;
}
.placeholder--dark {
  aspect-ratio: 16 / 9;
  background: linear-gradient(135deg, var(--surface), var(--ink));
  border: 1px dashed rgba(255, 255, 255, 0.16);
}
.placeholder--dark .placeholder__label { color: rgba(255, 255, 255, 0.66); }
.placeholder--dashed {
  background: rgba(37, 99, 235, 0.05);
  border: 1px dashed var(--hairline);
}
.placeholder__label {
  font-family: var(--mono); font-size: 13px; letter-spacing: 0.04em;
  color: var(--muted);
}
.placeholder__sub { font-size: 11px; color: var(--muted); opacity: 0.7; }

/* =====================================================================
   3 · USLUGE slider
   ===================================================================== */
.usluge__grid {
  display: grid; grid-template-columns: 1fr; gap: clamp(28px, 5vw, 60px);
  margin-top: clamp(28px, 4vw, 48px);
  align-items: start;
}
@media (min-width: 860px) {
  .usluge__grid { grid-template-columns: 1.1fr 0.9fr; }
}

.usluge__list { list-style: none; padding: 0; display: flex; flex-direction: column; gap: 0.1rem; }
.srv {
  display: block; width: 100%; text-align: left;
  font-size: clamp(2rem, 6vw, 3.4rem);
  font-weight: 700; letter-spacing: -0.03em; line-height: 1.04;
  text-transform: uppercase;
  color: var(--ink); opacity: 0.22;
  transition: opacity var(--hover);
  padding-block: 0.12em;
}
.srv.is-active { opacity: 1; }

/* unroll: two stacked copies */
.srv__roll {
  display: inline-grid; overflow: hidden; vertical-align: top;
}
.srv__a, .srv__b { grid-area: 1 / 1; transition: transform 0.4s var(--ease-out); }
.srv__a { transform: translateY(0); }
.srv__b { transform: translateY(108%); }
.srv:hover .srv__a, .srv:focus-visible .srv__a, .srv.is-active .srv__a { transform: translateY(-108%); }
.srv:hover .srv__b, .srv:focus-visible .srv__b, .srv.is-active .srv__b { transform: translateY(0); }

/* right panel — clip-path wipe */
.usluge__panel { position: relative; }
.panel-card {
  position: relative;
  aspect-ratio: 3 / 4;
  background: var(--surface); color: var(--paper);
  border-radius: 18px;
  padding: 0; overflow: hidden;
  clip-path: polygon(0 0, 100% 0, 100% 100%, 0 100%);
  transition: clip-path 0.7s cubic-bezier(0.33, 1, 0.68, 1);
}
.panel-card__img { width: 100%; height: 100%; object-fit: cover; object-position: top center; display: block; }
.panel-card.is-wiping { clip-path: polygon(0 0, 100% 0, 100% 0, 0 0); }
.panel-card__index { font-size: 14px; color: var(--sky); letter-spacing: 0.08em; }
.panel-card__name {
  font-size: clamp(2rem, 4.5vw, 3rem); font-weight: 700; letter-spacing: -0.03em;
  line-height: 1.0;
}
.panel-card__vizual {
  font-size: 12px; letter-spacing: 0.04em; color: rgba(255, 255, 255, 0.55);
  border: 1px dashed rgba(255, 255, 255, 0.22);
  border-radius: 8px; padding: 0.5rem 0.7rem; align-self: flex-start;
}

/* =====================================================================
   4 · PROCES
   ===================================================================== */
.proces__rule {
  height: 2px; background: var(--ink);
  margin-block: clamp(40px, 6vw, 72px);
}
.proces__cards {
  display: grid; grid-template-columns: 1fr; gap: clamp(16px, 2vw, 24px);
}
@media (min-width: 760px) { .proces__cards { grid-template-columns: repeat(3, 1fr); } }

.step-card {
  border: 1px solid var(--hairline);
  background: rgba(37, 99, 235, 0.04);
  border-radius: 14px;
  padding: clamp(1.5rem, 2.5vw, 2rem);
  transition: border-color var(--hover);
}
.step-card--hook { border-color: var(--ink); }
.step-card:hover { border-color: var(--ink); }
.step-card__fig {
  display: block; font-size: clamp(2.6rem, 6vw, 3.6rem);
  font-weight: 600; line-height: 1; letter-spacing: -0.02em;
}
.step-card__label {
  display: block; font-size: 13px; color: var(--muted);
  margin-top: 0.4rem; letter-spacing: 0.04em;
}
.step-card__title { font-size: 1.3rem; font-weight: 700; margin-top: 1.3rem; letter-spacing: -0.01em; }
.step-card__text { color: var(--muted); margin-top: 0.6rem; font-size: 16px; }

/* =====================================================================
   5 · RADOVI
   ===================================================================== */
.radovi__head {
  display: flex; flex-wrap: wrap; gap: 1.5rem;
  align-items: flex-end; justify-content: space-between;
}
.radovi__list {
  list-style: none; padding: 0;
  margin-top: clamp(36px, 5vw, 60px);
  border-top: 1px solid var(--hairline);
}
.work {
  display: grid; grid-template-columns: 1fr; gap: 1.5rem;
  padding-block: clamp(28px, 4vw, 44px);
  border-bottom: 1px solid var(--hairline);
  align-items: center;
}
@media (min-width: 760px) {
  .work { grid-template-columns: 1fr 0.8fr; gap: clamp(2rem, 5vw, 4rem); }
  .work--flip .work__meta { order: 2; }
  .work--flip .work__thumb { order: 1; }
}
.work__index { font-size: 14px; color: var(--blue); letter-spacing: 0.08em; }
.work__name {
  font-size: clamp(1.6rem, 3.5vw, 2.4rem); font-weight: 700;
  letter-spacing: -0.025em; line-height: 1.02; margin-top: 0.5rem;
}
.work__cat { display: block; font-size: 13px; color: var(--muted); margin-top: 0.7rem; letter-spacing: 0.04em; }
.work__did { color: var(--muted); margin-top: 0.5rem; max-width: 40ch; }
.work__thumb { aspect-ratio: 16 / 10; }

.radovi__note {
  margin-top: clamp(28px, 4vw, 44px);
  font-size: 13px; color: var(--muted); line-height: 1.7;
  max-width: 70ch;
}

/* =====================================================================
   6 · KAKO SE RAZLIKUJEMO
   ===================================================================== */
.diff-list {
  list-style: none; padding: 0;
  margin-top: clamp(36px, 5vw, 60px);
  border-top: 1px solid var(--hairline);
}
.diff {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: clamp(1rem, 3vw, 2.4rem);
  align-items: start;
  padding: clamp(22px, 3vw, 34px) clamp(0.75rem, 2vw, 1.5rem);
  border-bottom: 1px solid var(--hairline);
  border-radius: 12px;
  transition: background var(--hover);
}
.diff__num {
  font-size: clamp(1.1rem, 2vw, 1.4rem); color: var(--muted);
  letter-spacing: 0.04em; transition: color var(--hover);
  padding-top: 0.2em;
}
.diff.is-active .diff__num { color: var(--blue); }
.diff__body { transition: transform var(--hover); }
.diff__cat { display: block; font-size: 13px; color: var(--muted); letter-spacing: 0.06em; text-transform: uppercase; }
.diff__title { font-size: clamp(1.25rem, 2.5vw, 1.7rem); font-weight: 700; letter-spacing: -0.02em; margin-top: 0.4rem; }
.diff__text { color: var(--muted); margin-top: 0.6rem; max-width: 56ch; font-size: 16px; }
.diff__arrow {
  font-size: 1.3rem; color: var(--muted); padding-top: 0.1em;
  opacity: 0; transform: translateX(-6px);
  transition: opacity var(--hover), transform var(--hover), color var(--hover);
}
.diff:hover {
  background: rgba(37, 99, 235, 0.07);
}
.diff:hover .diff__body { transform: translateX(8px); }
.diff:hover .diff__num,
.diff:hover .diff__arrow { color: var(--blue); }
.diff:hover .diff__arrow { opacity: 1; transform: translateX(0); }

/* comparison */
.compare {
  margin-top: clamp(48px, 7vw, 80px);
  border: 1px solid var(--hairline);
  border-radius: 16px;
  padding: clamp(1.5rem, 4vw, 2.6rem);
  background: rgba(37, 99, 235, 0.03);
}
.compare__title { font-size: clamp(1.3rem, 3vw, 1.9rem); font-weight: 700; letter-spacing: -0.02em; }
.compare__rows { margin-top: 1.6rem; display: flex; flex-direction: column; gap: 0.9rem; }
.compare__row {
  display: grid; grid-template-columns: 1fr; gap: 0.5rem;
  padding-block: 0.9rem; border-top: 1px solid var(--hairline);
}
.compare__row:first-child { border-top: none; }
@media (min-width: 700px) { .compare__row { grid-template-columns: 1fr 1fr; gap: 2rem; } }
.compare__them, .compare__us { font-size: 15px; display: flex; gap: 0.55em; align-items: baseline; }
.compare__them { color: var(--muted); }
.compare__us { color: var(--ink); font-weight: 600; }
.compare__mark { color: var(--muted); }
.compare__mark--ok { color: var(--blue); }

/* =====================================================================
   7 · ZAŠTO MNTIOM
   ===================================================================== */
.trust-grid {
  display: grid; grid-template-columns: 1fr; gap: clamp(16px, 2vw, 22px);
  margin-top: clamp(36px, 5vw, 60px);
}
@media (min-width: 620px) { .trust-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 960px) { .trust-grid { grid-template-columns: repeat(3, 1fr); } }

.trust-card {
  border: 1px solid var(--hairline);
  background: rgba(37, 99, 235, 0.04);
  border-radius: 14px;
  padding: clamp(1.5rem, 2.5vw, 1.9rem);
  transition: border-color var(--hover), transform var(--hover);
}
.trust-card:hover { border-color: var(--ink); transform: translateY(-3px); }
.trust-card__icon {
  display: grid; place-items: center;
  width: 44px; height: 44px;
  border: 1px solid var(--hairline); border-radius: 10px;
  color: var(--ink);
}
.trust-card__icon svg { width: 22px; height: 22px; }
.trust-card__title { font-size: 1.25rem; font-weight: 700; margin-top: 1.3rem; letter-spacing: -0.01em; }
.trust-card__text { color: var(--muted); margin-top: 0.6rem; font-size: 16px; }

/* =====================================================================
   8 · FINAL CTA
   ===================================================================== */
.cta {
  position: relative; overflow: clip;
  background: var(--surface); color: var(--paper);
  border-radius: clamp(20px, 3vw, 32px);
  margin-inline: clamp(0.75rem, 2vw, 1.5rem);
}
.cta__bloom {
  position: absolute; bottom: -25%; left: -12%;
  width: 70vw; height: 70vw; max-width: 820px; max-height: 820px;
  background: radial-gradient(circle at 40% 60%, rgba(0, 191, 255, 0.42), rgba(0, 191, 255, 0) 60%);
  pointer-events: none;
}
.cta__inner { position: relative; z-index: 1; }
.cta__title {
  font-size: clamp(2.6rem, 8vw, 5.5rem); font-weight: 700;
  line-height: 0.98; letter-spacing: -0.03em; margin-top: 1.1rem;
}
.cta__text { margin-top: 1.5rem; color: rgba(255, 255, 255, 0.75); max-width: 52ch; }
.cta__actions { margin-top: 2.4rem; display: flex; flex-wrap: wrap; align-items: center; gap: 1.4rem; }
.cta__alt {
  font-family: var(--mono); font-size: 14px; color: rgba(255, 255, 255, 0.7);
  transition: color var(--hover);
}
.cta__alt:hover { color: var(--sky); }
.cta :focus-visible { outline-color: var(--sky); }

/* =====================================================================
   FOOTER
   ===================================================================== */
.footer { padding-block: clamp(40px, 6vw, 64px); border-top: 1px solid var(--hairline); }
.footer__inner {
  display: flex; flex-wrap: wrap; gap: 1rem;
  align-items: center; justify-content: space-between;
}
.footer__copy { font-size: 12px; color: var(--muted); letter-spacing: 0.02em; }

/* =====================================================================
   SCROLL REVEAL (applied once)
   ===================================================================== */
.reveal {
  opacity: 0; transform: translateY(16px);
  transition: opacity 0.4s var(--ease-out), transform 0.4s var(--ease-out);
}
.reveal.is-in { opacity: 1; transform: none; }

/* =====================================================================
   SUBPAGES — shared components for the 6 inner pages.
   Same locked tokens only: no new colors, no new fonts.
   ===================================================================== */

/* ---------- Footer nav (added on all pages) ---------- */
.footer__inner { gap: 1.4rem; }
.footer__nav {
  display: flex; flex-wrap: wrap; gap: 0.4rem 1.3rem;
  font-family: var(--mono); font-size: 13px;
}
.footer__nav a { color: var(--muted); transition: color var(--hover); }
.footer__nav a:hover { color: var(--blue); }
@media (min-width: 760px) { .footer__nav { order: 0; } }

/* current page marker in nav */
.nav__links a[aria-current="page"] { color: var(--ink); }
.nav__links a[aria-current="page"]::after {
  content: ""; display: block; height: 2px; background: var(--blue);
  margin-top: 2px; border-radius: 2px;
}
@media (max-width: 820px) {
  .nav__links a[aria-current="page"]::after { display: none; }
  .nav__links a[aria-current="page"] { color: var(--blue); }
}

/* ---------- Extra button variants ---------- */
.btn--outline {
  border: 1px solid var(--ink); color: var(--ink); background: transparent;
}
.btn--outline:hover { background: var(--ink); color: var(--paper); transform: translateY(-2px); }
.btn--invert { background: var(--paper); color: var(--ink); }
.btn--invert:hover { transform: translateY(-2px); }

/* ---------- Page hero (smaller than homepage hero) ---------- */
.phero { position: relative; overflow: clip; padding-block: clamp(80px, 12vw, 150px) clamp(40px, 6vw, 72px); }
.phero__bloom {
  position: absolute; top: -25%; right: -8%;
  width: 60vw; height: 60vw; max-width: 760px; max-height: 760px;
  background: radial-gradient(circle at 60% 40%, rgba(0, 191, 255, 0.22), rgba(0, 191, 255, 0) 62%);
  pointer-events: none; z-index: 0;
}
.phero__inner { position: relative; z-index: 1; max-width: 920px; }
.phero__title {
  font-size: clamp(2.3rem, 6.2vw, 4.6rem);
  font-weight: 700; line-height: 0.98; letter-spacing: -0.03em;
  text-wrap: balance; margin-top: 1.2rem; max-width: 20ch;
}
.phero__sub {
  margin-top: 1.6rem; font-size: clamp(1.05rem, 1.5vw, 1.3rem);
  color: var(--muted); max-width: 52ch;
}
.phero__sub strong { color: var(--ink); font-weight: 600; }
.phero__actions {
  margin-top: 2.2rem; display: flex; flex-wrap: wrap; gap: 1rem;
}

/* ---------- Mono rule band under hero ("MNTIOM · … · ↓") ---------- */
.rule-band {
  border-block: 1px solid var(--hairline);
}
.rule-band__inner {
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  padding-block: 0.9rem;
  font-family: var(--mono); font-size: 12px; letter-spacing: 0.14em;
  text-transform: uppercase; color: var(--muted);
}
.rule-band__arrow { color: var(--blue); }

/* ---------- Generic section head ---------- */
.section-head { max-width: 60ch; }
.section-head .section-title { max-width: 22ch; }

/* ---------- Lead paragraph / prose ---------- */
.prose { margin-top: 1.4rem; max-width: 60ch; }
.prose > * + * { margin-top: 1.1rem; }
.prose p { color: var(--muted); }
.prose strong { color: var(--ink); font-weight: 600; }

/* ---------- Customer-voice quotes ---------- */
.voices {
  list-style: none; padding: 0;
  margin-top: clamp(28px, 4vw, 44px);
  display: grid; gap: 0.8rem;
}
.voices li {
  font-style: italic; color: var(--muted);
  border-left: 2px solid var(--hairline);
  padding: 0.5rem 0 0.5rem 1.1rem;
  max-width: 60ch;
}

/* ---------- Service cards (bol → što radimo → kako znaš) ---------- */
.svc-grid {
  display: grid; grid-template-columns: 1fr; gap: clamp(16px, 2vw, 22px);
  margin-top: clamp(36px, 5vw, 56px);
}
@media (min-width: 720px) { .svc-grid { grid-template-columns: repeat(2, 1fr); } }
.svc-card {
  border: 1px solid var(--hairline);
  background: rgba(37, 99, 235, 0.04);
  border-radius: 14px;
  padding: clamp(1.5rem, 2.5vw, 2rem);
  display: flex; flex-direction: column;
  transition: border-color var(--hover), transform var(--hover);
}
.svc-card:hover { border-color: var(--ink); transform: translateY(-3px); }
.svc-card__num { font-family: var(--mono); font-size: 13px; color: var(--blue); letter-spacing: 0.08em; }
.svc-card__title { font-size: 1.3rem; font-weight: 700; margin-top: 0.7rem; letter-spacing: -0.01em; line-height: 1.15; }
.svc-card__text { color: var(--muted); margin-top: 0.7rem; font-size: 16px; }
.svc-card__signal {
  margin-top: auto; padding-top: 1.1rem;
  font-family: var(--mono); font-size: 12.5px; line-height: 1.55; color: var(--muted);
  border-top: 1px solid var(--hairline);
}
.svc-card__signal::before {
  content: "Kako znaš da radi"; display: block;
  color: var(--blue); letter-spacing: 0.06em; text-transform: uppercase;
  font-size: 11px; margin-bottom: 0.35rem;
}
.svc-card__signal { margin-top: 1.3rem; }

/* ---------- "U razvoju" callout block ---------- */
.callout {
  margin-top: clamp(28px, 4vw, 44px);
  border: 1px solid var(--ink);
  border-radius: 16px;
  padding: clamp(1.6rem, 3.5vw, 2.4rem);
  background: rgba(37, 99, 235, 0.05);
  max-width: 70ch;
}
.callout .eyebrow { color: var(--blue); }
.callout__title { font-size: clamp(1.3rem, 3vw, 1.9rem); font-weight: 700; letter-spacing: -0.02em; margin-top: 0.5rem; }
.callout__text { color: var(--muted); margin-top: 0.9rem; }

/* ---------- Person / founder block (O nama) ---------- */
.person {
  display: grid;
  grid-template-columns: minmax(0, 260px) 1fr;
  gap: clamp(1.5rem, 4vw, 3rem);
  align-items: start;
  margin-top: clamp(28px, 4vw, 44px);
}
.person__photo {
  display: block; width: 100%; aspect-ratio: 4 / 5; object-fit: cover;
  border-radius: 16px; border: 1px solid var(--hairline); background: var(--surface);
}
.person__name { font-size: clamp(1.6rem, 3vw, 2.1rem); font-weight: 700; letter-spacing: -0.02em; line-height: 1.1; }
.person__role {
  font-family: var(--mono); font-size: 13px; letter-spacing: 0.08em;
  text-transform: uppercase; color: var(--blue); margin-top: 0.45rem;
}
.person__bio { margin-top: 1.2rem; max-width: 60ch; }
.person__bio > * + * { margin-top: 1rem; }
.person__bio p { color: var(--muted); }
.person__bio strong { color: var(--ink); font-weight: 600; }
.person__cv { margin-top: 1.6rem; }
@media (max-width: 720px) {
  .person { grid-template-columns: 1fr; }
  .person__photo { max-width: 240px; }
}

/* ---------- FAQ accordion (homepage, native <details>) ---------- */
.faq {
  margin-top: clamp(28px, 4vw, 44px);
  border-top: 1px solid var(--hairline);
  max-width: 860px;
}
.faq__item { border-bottom: 1px solid var(--hairline); }
.faq__q {
  list-style: none; cursor: pointer;
  display: flex; align-items: center; justify-content: space-between; gap: 1.5rem;
  padding: clamp(1.05rem, 2.4vw, 1.45rem) 0;
  font-size: clamp(1.05rem, 2.1vw, 1.2rem); font-weight: 600;
  color: var(--ink); letter-spacing: -0.01em; line-height: 1.32;
  transition: color var(--hover);
}
.faq__q::-webkit-details-marker { display: none; }
.faq__q::marker { content: ""; }
.faq__q:hover { color: var(--blue); }
.faq__q:focus-visible { outline: 2px solid var(--blue); outline-offset: 4px; border-radius: 2px; }
.faq__icon { flex-shrink: 0; width: 22px; height: 22px; color: var(--blue); }
/* plus → minus: the vertical stroke rotates out and fades when open */
.faq__icon .faq__icon-v {
  transform-box: fill-box; transform-origin: center;
  transition: transform 0.34s var(--ease-out), opacity 0.34s var(--ease-out);
}
.faq__item[open] .faq__icon .faq__icon-v { transform: rotate(90deg); opacity: 0; }
.faq__a {
  padding: 0 0 clamp(1.05rem, 2.4vw, 1.45rem);
  color: var(--muted); max-width: 68ch;
}
.faq__a p { margin: 0; }
/* height open/close is animated in JS (Web Animations API); this keeps the
   content clipped while the <details> box animates between heights */
.faq__item[style*="overflow"] { will-change: height; }
@media (prefers-reduced-motion: reduce) {
  .faq__icon .faq__icon-v, .faq__q { transition: none; }
}

/* ---------- Fears / objections list ---------- */
.fears {
  list-style: none; padding: 0;
  margin-top: clamp(36px, 5vw, 56px);
  border-top: 1px solid var(--hairline);
}
.fear {
  padding-block: clamp(20px, 3vw, 30px);
  border-bottom: 1px solid var(--hairline);
}
.fear__q {
  font-size: clamp(1.15rem, 2.2vw, 1.5rem); font-weight: 700;
  letter-spacing: -0.015em; color: var(--ink);
  display: flex; gap: 0.55em; align-items: baseline; max-width: 48ch;
}
.fear__q::before { content: "“"; color: var(--blue); font-size: 1.3em; line-height: 0; position: relative; top: 0.18em; }
.fear__a { color: var(--muted); margin-top: 0.7rem; max-width: 60ch; font-size: 16.5px; }

/* ---------- Timeline (process steps) ---------- */
.timeline {
  list-style: none; padding: 0;
  margin-top: clamp(36px, 5vw, 56px);
  border-top: 1px solid var(--hairline);
}
.tl-item {
  display: grid; grid-template-columns: 1fr; gap: 0.5rem;
  padding-block: clamp(22px, 3.5vw, 36px);
  border-bottom: 1px solid var(--hairline);
}
@media (min-width: 720px) {
  .tl-item { grid-template-columns: minmax(140px, 200px) 1fr; gap: clamp(1.5rem, 4vw, 3rem); align-items: start; }
}
.tl-item__time {
  font-family: var(--mono); font-weight: 600;
  font-size: clamp(1.8rem, 4vw, 2.6rem); line-height: 1;
  letter-spacing: -0.02em; color: var(--ink);
}
.tl-item__tag {
  display: block; margin-top: 0.6rem;
  font-family: var(--mono); font-size: 11px; letter-spacing: 0.08em;
  text-transform: uppercase; color: var(--blue);
}
.tl-item__title { font-size: clamp(1.2rem, 2.4vw, 1.55rem); font-weight: 700; letter-spacing: -0.015em; }
.tl-item__text { color: var(--muted); margin-top: 0.6rem; max-width: 58ch; font-size: 16.5px; }

/* ---------- "Što ne radimo" / negative list ---------- */
.nolist {
  list-style: none; padding: 0;
  margin-top: clamp(28px, 4vw, 44px);
  display: grid; gap: 0.9rem; max-width: 70ch;
}
.nolist li {
  display: grid; grid-template-columns: auto 1fr; gap: 0.8em;
  align-items: baseline; color: var(--muted);
  padding-bottom: 0.9rem; border-bottom: 1px solid var(--hairline);
}
.nolist li::before {
  content: "×"; color: var(--blue); font-family: var(--mono);
  font-size: 1.1em; line-height: 1;
}

/* ---------- Tick list (values) ---------- */
.ticklist {
  list-style: none; padding: 0;
  margin-top: clamp(24px, 3vw, 36px);
  display: grid; gap: 0.8rem; max-width: 64ch;
}
.ticklist li {
  display: grid; grid-template-columns: auto 1fr; gap: 0.8em;
  align-items: baseline; color: var(--ink);
}
.ticklist li::before {
  content: "→"; color: var(--blue); font-family: var(--mono); line-height: 1.4;
}

/* ---------- Compact numbered steps (kontakt) ---------- */
.ministeps {
  list-style: none; padding: 0; counter-reset: ms;
  margin-top: clamp(28px, 4vw, 44px);
  display: grid; gap: clamp(14px, 2vw, 20px);
}
@media (min-width: 720px) { .ministeps { grid-template-columns: repeat(3, 1fr); } }
.ministeps li {
  counter-increment: ms;
  border: 1px solid var(--hairline);
  background: rgba(37, 99, 235, 0.04);
  border-radius: 14px; padding: clamp(1.4rem, 2.5vw, 1.8rem);
  color: var(--muted);
}
.ministeps li::before {
  content: counter(ms, decimal-leading-zero);
  display: block; font-family: var(--mono); color: var(--blue);
  font-size: 14px; letter-spacing: 0.08em; margin-bottom: 0.7rem;
}

/* ---------- Contact layout: form + side ---------- */
.contact-grid {
  display: grid; grid-template-columns: 1fr; gap: clamp(32px, 5vw, 56px);
  margin-top: clamp(36px, 5vw, 56px); align-items: start;
}
@media (min-width: 880px) { .contact-grid { grid-template-columns: 1.3fr 0.7fr; } }

.form { display: grid; gap: 1.1rem; }
.field { display: grid; gap: 0.4rem; }
.field__label {
  font-family: var(--mono); font-size: 12px; letter-spacing: 0.06em;
  text-transform: uppercase; color: var(--muted);
}
.field__label .req { color: var(--blue); }
.field input,
.field textarea {
  font: inherit; font-size: 16px; color: var(--ink);
  background: rgba(37, 99, 235, 0.04);
  border: 1px solid var(--hairline); border-radius: 10px;
  padding: 0.8rem 0.95rem; width: 100%;
  transition: border-color var(--hover), background var(--hover);
}
.field textarea { resize: vertical; min-height: 120px; }
.field input::placeholder,
.field textarea::placeholder { color: var(--muted); opacity: 0.65; }
.field input:focus,
.field textarea:focus { outline: none; border-color: var(--blue); background: var(--paper); }

.choice { display: grid; gap: 0.6rem; }
@media (min-width: 520px) { .choice { grid-template-columns: 1fr 1fr; } }
.choice label {
  display: flex; align-items: center; gap: 0.6em; cursor: pointer;
  border: 1px solid var(--hairline); border-radius: 10px;
  padding: 0.8rem 0.95rem; font-size: 15px;
  transition: border-color var(--hover), background var(--hover);
}
.choice input { accent-color: var(--blue); width: 16px; height: 16px; }
.choice label:hover { border-color: var(--ink); }
.choice input:checked + span { font-weight: 600; }
.choice label:has(input:checked) { border-color: var(--blue); background: rgba(37, 99, 235, 0.06); }

.form__note {
  font-family: var(--mono); font-size: 12.5px; color: var(--muted);
  line-height: 1.6; margin-top: 0.3rem;
}
.form button[type="submit"] { align-self: flex-start; margin-top: 0.3rem; }

.contact-side { display: grid; gap: 1.6rem; }
.altcontact { list-style: none; padding: 0; display: grid; gap: 0.9rem; }
.altcontact li { display: grid; gap: 0.15rem; }
.altcontact__k { font-family: var(--mono); font-size: 11px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--blue); }
.altcontact__v { color: var(--ink); font-size: 16px; }
.altcontact__v a:hover { color: var(--blue); }

/* ---------- Intro tilt image ---------- */
.tilt__img { display: block; width: 100%; border-radius: 14px; }

/* ---------- Real screenshots ---------- */
.shot {
  display: block; width: 100%; object-fit: cover;
  border-radius: 16px; border: 1px solid var(--hairline);
  background: var(--surface);
}
img.work__thumb { aspect-ratio: 16 / 10; }

/* ---------- Media split — text left, image right on desktop ---------- */
.media-split {
  display: grid; grid-template-columns: 1fr;
  gap: clamp(1.6rem, 4vw, 3rem); align-items: center;
  margin-top: clamp(1.4rem, 3vw, 2rem);
}
.media-split__text { min-width: 0; }
.media-split__img { max-width: 460px; margin-inline: auto; }
@media (min-width: 860px) {
  .media-split { grid-template-columns: 1.05fr 0.95fr; }
  .media-split__img { margin-inline: 0 auto; }
}

/* ---------- "uskoro" empty work card ---------- */
.work--soon { opacity: 0.85; }
.work--soon .work__name { color: var(--muted); }

/* ---------- Homepage persona router (two outline buttons) ---------- */
.intro__router {
  margin-top: 1.9rem;
  display: flex; flex-wrap: wrap; gap: 0.9rem;
  justify-content: center;
}

/* ---------- Diagnostic flow (icon boxes + arrows) ---------- */
.flow {
  list-style: none; padding: 0;
  margin-top: clamp(36px, 5vw, 56px);
  display: flex; flex-wrap: wrap; align-items: stretch;
  gap: clamp(12px, 2vw, 18px);
}
.flow-step {
  flex: 1 1 220px;
  border: 1px solid var(--hairline);
  background: rgba(37, 99, 235, 0.04);
  border-radius: 14px;
  padding: clamp(1.4rem, 2.5vw, 1.8rem);
  transition: border-color var(--hover), transform var(--hover);
}
.flow-step:hover { border-color: var(--ink); transform: translateY(-3px); }
.flow-step__icon {
  display: grid; place-items: center;
  width: 44px; height: 44px;
  border: 1px solid var(--hairline); border-radius: 10px;
  color: var(--ink);
}
.flow-step__icon svg { width: 22px; height: 22px; }
.flow-step__title { font-size: 1.2rem; font-weight: 700; margin-top: 1.2rem; letter-spacing: -0.01em; }
.flow-step__text { color: var(--muted); margin-top: 0.5rem; font-size: 15.5px; }
.flow-arrow {
  flex: 0 0 auto; align-self: center;
  font-family: var(--mono); font-size: 1.5rem; color: var(--blue);
}
@media (max-width: 700px) {
  .flow { flex-direction: column; align-items: stretch; }
  .flow-arrow { transform: rotate(90deg); align-self: center; }
}

/* ---------- Section CTA reuse: ensure inner pages' .cta sit with margin ---------- */
.page-cta { margin-top: 0; }

/* =====================================================================
   REDUCED MOTION
   ===================================================================== */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    transition-duration: 0.001ms !important;
  }
  .reveal { opacity: 1; transform: none; }
  .tilt__card { transform: none !important; }
  .intro__title { transform: none !important; }
  .panel-card { clip-path: polygon(0 0, 100% 0, 100% 100%, 0 100%) !important; }
  .srv__a { transform: translateY(-108%); }
  .srv__b { transform: translateY(0); }
  .srv:not(.is-active) .srv__a { transform: translateY(0); }
  .srv:not(.is-active) .srv__b { transform: translateY(108%); }
}
