﻿/* ============================================
   WINDOWS STUDIO — Premium Landing Page CSS
   Modern Dark Theme + Glassmorphism + Gradients
   ============================================ */

/* Ranije je ovde stajalo cetiri @font-face pravila sa "src: local(...)".
   Nisu radila nista: nijedan telefon nema instaliran Inter, Montserrat ni
   Font Awesome, pa se izvor nikad nije razresio. Pravila za ikonice su sada
   nize u ovom fajlu, a tekstualni fontovi dobijaju font-display kroz
   &display=swap u Google URL-u. */

/* === CSS CUSTOM PROPERTIES === */
:root {
  --bg-primary: #f0f4f8;
  --bg-secondary: #ffffff;
  --bg-card: rgba(255, 255, 255, 0.85);
  --bg-glass: rgba(255, 255, 255, 0.6);
  --bg-glass-hover: rgba(255, 255, 255, 0.9);

  --accent-primary: #667eea;
  --accent-secondary: #764ba2;
  --accent-gradient: linear-gradient(135deg, #667eea, #764ba2);
  --accent-gradient-reverse: linear-gradient(135deg, #764ba2, #667eea);
  --accent-glow: rgba(102, 126, 234, 0.2);

  --text-primary: #0f172a;
  --text-secondary: #475569;
  --text-muted: #94a3b8;

  --border-subtle: rgba(0, 0, 0, 0.08);
  --border-accent: rgba(102, 126, 234, 0.3);

  --radius-sm: 12px;
  --radius-md: 20px;
  --radius-lg: 28px;
  --radius-xl: 36px;
  --radius-full: 9999px;

  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.05);
  --shadow-md: 0 12px 32px rgba(0, 0, 0, 0.08);
  --shadow-lg: 0 20px 48px rgba(0, 0, 0, 0.12);
  --shadow-glow: 0 0 40px var(--accent-glow);

  --font-main: 'Inter', sans-serif;
  --font-display: 'Montserrat', sans-serif;

  --transition-fast: 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-smooth: 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-spring: 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
}

/* === IKONICE ============================================================
   Ranije se ucitavao ceo Font Awesome sa cdnjs-a: all.min.css (102 KB) plus
   tri fajla fonta. Od svega toga koriscene su 42 ikonice.
   Sada stoji samo ovo: jedan lokalni fajl fonta i 39 pravila ispod.
   Time nestaje i treca strana sa kriticne putanje (DNS + TLS ka cdnjs-u),
   a sa njom i sva njihova @font-face pravila sa font-display:block, zbog
   kojih su ikonice umele da budu nevidljive do 3 sekunde.

   Tri znaka drustvenih mreza (Facebook, Instagram, TikTok) su ubacena pravo
   u HTML kao SVG - zbog njih se skidao ceo Brands font od 108 KB.

   Ikonice: Font Awesome Free 6.4.0, CC BY 4.0, https://fontawesome.com
   ======================================================================== */

@font-face {
  font-family: 'Font Awesome 6 Free';
  font-style: normal;
  font-weight: 900;
  /* 'fallback', a ne 'block': prvih 100ms se ceka font (dovoljno kad je
     kesiran, pa nema bljeska praznih kvadratica), a posle se ne blokira. */
  font-display: fallback;
  src: url('webfonts/fa-solid-900.woff2') format('woff2');
}

.fas {
  font-family: 'Font Awesome 6 Free';
  font-weight: 900;
  font-style: normal;
  font-variant: normal;
  line-height: 1;
  display: inline-block;
  text-rendering: auto;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* SVG znaci drustvenih mreza: prate velicinu slova i boju roditelja. */
.ico {
  width: 1em;
  height: 1em;
  fill: currentColor;
  flex: none;
}

.fa-archway::before { content: "\f557"; }
.fa-arrow-right::before { content: "\f061"; }
.fa-arrow-right-to-bracket::before { content: "\f090"; }
.fa-bars::before { content: "\f0c9"; }
.fa-bolt::before { content: "\f0e7"; }
.fa-border-all::before { content: "\f84c"; }
.fa-boxes-stacked::before { content: "\f468"; }
.fa-calculator::before { content: "\f1ec"; }
.fa-chart-line::before { content: "\f201"; }
.fa-check::before { content: "\f00c"; }
.fa-chevron-down::before { content: "\f078"; }
.fa-chevron-left::before { content: "\f053"; }
.fa-chevron-right::before { content: "\f054"; }
.fa-circle-check::before { content: "\f058"; }
.fa-clock::before { content: "\f017"; }
.fa-cloud::before { content: "\f0c2"; }
.fa-cogs::before { content: "\f085"; }
.fa-cube::before { content: "\f1b2"; }
.fa-cut::before { content: "\f0c4"; }
.fa-door-open::before { content: "\f52b"; }
.fa-drafting-compass::before { content: "\f568"; }
.fa-envelope::before { content: "\f0e0"; }
.fa-file-excel::before { content: "\f1c3"; }
.fa-file-invoice-dollar::before { content: "\f571"; }
.fa-file-pdf::before { content: "\f1c1"; }
.fa-hand-pointer::before { content: "\f25a"; }
.fa-layer-group::before { content: "\f5fd"; }
.fa-list-check::before { content: "\f0ae"; }
.fa-mobile-alt::before { content: "\f3cd"; }
.fa-mobile-screen::before { content: "\f3cf"; }
.fa-mouse-pointer::before { content: "\f245"; }
.fa-pen-ruler::before { content: "\f5ae"; }
.fa-phone-alt::before { content: "\f879"; }
.fa-robot::before { content: "\f544"; }
.fa-shield-halved::before { content: "\f3ed"; }
.fa-sign-in-alt::before { content: "\f2f6"; }
.fa-star::before { content: "\f005"; }
.fa-times::before { content: "\f00d"; }
.fa-users::before { content: "\f0c0"; }

/* === OBAVESTENJA O GRESCI (zamena za Bootstrap alert) === */
.alert {
  position: relative;
  max-width: 1152px;
  margin: 16px auto 0;
  padding: 15px 48px 15px 20px;
  border-radius: var(--radius-md);
  font-size: 15px;
  font-weight: 500;
  line-height: 1.5;
  border: 1px solid transparent;
}

.alert-danger {
  color: #842029;
  background: #f8d7da;
  border-color: #f5c2c7;
}

.alert .btn-close {
  position: absolute;
  top: 50%;
  right: 14px;
  transform: translateY(-50%);
  width: 30px;
  height: 30px;
  padding: 0;
  border: none;
  border-radius: 50%;
  background: transparent;
  color: inherit;
  cursor: pointer;
  opacity: 0.55;
  transition: opacity var(--transition-fast), background var(--transition-fast);
}

.alert .btn-close::before {
  content: '\00d7';
  font-size: 24px;
  line-height: 1;
}

.alert .btn-close:hover {
  opacity: 1;
  background: rgba(0, 0, 0, 0.07);
}

/* === RESET & BASE === */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Sidra u meniju i tackice sa strane (scrollIntoView block:'start') dovodile su
   vrh sekcije tacno pod sticky header (~57px zbijen), pa je prvi red naslova
   bio presecen. Ovoliko rezerve ostavlja sekciju ispod njega. */
#galerija,
#funkcije,
#zasto,
#kako-radi,
#paketi,
#faq,
#partneri,
#kontakt {
  scroll-margin-top: 72px;
}

body {
  margin: 0;
  font-family: var(--font-main);
  font-weight: 400;
  color: var(--text-primary);
  background: var(--bg-primary);
  background-image:
    radial-gradient(circle at top right, rgba(102, 126, 234, 0.08), transparent 400px),
    radial-gradient(circle at bottom left, rgba(118, 75, 162, 0.1), transparent 400px);
  background-attachment: fixed;
  min-height: 100vh;
  overflow-x: hidden;
  line-height: 1.6;
}



/* ============================================
   CYBER LINES BACKGROUND ANIMATION
   ============================================ */
/* ============================================
   DIGITAL ARCHITECTURE GRID SYSTEM
   ============================================ */
.cyber-lines {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  z-index: -2;
  pointer-events: none;
  overflow: hidden;
  opacity: 0.8;
}

/* Mreza je na ::before koji je za jedno polje veci i klizi transformom.
   Ranije se animirao `background-position`, sto nije poslo kompozitoru —
   ceo viewport se prefarbavao 60 puta u sekundi, non-stop. */
.cyber-lines::before {
  content: '';
  position: absolute;
  top: -5vh;
  left: -5vw;
  width: calc(100vw + 5vw);
  height: calc(100vh + 5vh);
  background-image:
    linear-gradient(rgba(102, 126, 234, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(102, 126, 234, 0.05) 1px, transparent 1px);
  background-size: 5vw 5vh;
  animation: gridDrift 40s linear infinite;
  will-change: transform;
}

@keyframes gridDrift {
  0%   { transform: translate3d(0, 0, 0); }
  100% { transform: translate3d(5vw, 5vh, 0); }
}

/* Mouse-reactive glow — lights up the grid where the cursor moves.
   Nekad je ovo bio sloj preko celog ekrana kome se pomerala pozicija
   gradijenta => prefarbavanje celog viewporta na SVAKI pomeraj misa.
   Sada je to jedan krug od 520px koji se samo translira (posao kompozitora). */
.cyber-spotlight {
  position: absolute;
  top: 0;
  left: 0;
  width: 520px;
  height: 520px;
  margin: -260px 0 0 -260px;
  background: radial-gradient(circle closest-side,
    rgba(102, 126, 234, 0.35) 0%,
    rgba(118, 75, 162, 0.16) 45%,
    transparent 70%);
  transform: translate3d(var(--mx, -9999px), var(--my, -9999px), 0);
  opacity: 0;
  transition: opacity 0.6s ease;
  mix-blend-mode: screen;
  will-change: transform;
}

.cyber-lines.active .cyber-spotlight {
  opacity: 1;
}

/* Mouse-reactive bulge — the grid squares appear to swell outward around the cursor,
   like a glass lens pressed into the mesh (no distortion filters, so lines stay crisp) */
.cyber-bulge {
  position: absolute;
  top: 0;
  left: 0;
  width: 300px;
  height: 300px;
  margin: -150px 0 0 -150px;
  border-radius: 50%;
  /* Isti efekat kao pre, ali na povrsini 300x300 umesto celog ekrana:
     ranije je `clip-path` sekao sloj preko celog viewporta, pa je svaki
     pomeraj misa bio repaint od ~2 miliona piksela. Negativni
     background-position drzi mrezu zakucanu za ekran, da lupa u krupniju
     mrezu ispod (utisak da su polja "nabubrila"). */
  background-image:
    linear-gradient(rgba(102, 126, 234, 0.16) 1px, transparent 1px),
    linear-gradient(90deg, rgba(102, 126, 234, 0.16) 1px, transparent 1px);
  background-size: 6.75vw 6.75vh;
  background-position: calc(150px - var(--mx, 0px)) calc(150px - var(--my, 0px));
  transform: translate3d(var(--mx, -9999px), var(--my, -9999px), 0);
  box-shadow: inset 0 0 60px rgba(102, 126, 234, 0.3);
  opacity: 0;
  transition: opacity 0.4s ease;
  will-change: transform;
}

.cyber-lines.active .cyber-bulge {
  opacity: 1;
}

@media (prefers-reduced-motion: reduce) {
  .cyber-lines {
    animation: none;
  }
}

/* ============================================
   CURSOR GLOW 
   ============================================ */
.cursor-glow {
  width: 480px;
  height: 480px;
  background: radial-gradient(circle, rgba(102, 126, 234, 0.16) 0%, rgba(102, 126, 234, 0) 65%);
  position: fixed;
  border-radius: 50%;
  pointer-events: none;
  top: 0;
  left: 0;
  transform: translate(-50%, -50%);
  z-index: -1;
  will-change: transform;
}

/* === AUTOFILL OVERRIDES === */
input:-webkit-autofill {
  -webkit-box-shadow: 0 0 0 1000px #ffffff inset !important;
  -webkit-text-fill-color: #0f172a !important;
  transition: background-color 5000s ease-in-out 0s;
  caret-color: #0f172a;
}

input:-webkit-autofill::first-line {
  font-family: var(--font-main);
}

input[type="password"]:-webkit-autofill {
  -webkit-box-shadow: 0 0 0 1000px #ffffff inset !important;
  -webkit-text-fill-color: #0f172a !important;
}

input:focus {
  outline: none;
  box-shadow: none;
}

/* === TYPOGRAPHY === */
h1 {
  font-family: var(--font-display);
  font-size: clamp(36px, 5vw, 56px);
  font-weight: 800;
  color: var(--text-primary);
  letter-spacing: -0.02em;
  line-height: 1.1;
}

h2 {
  font-family: var(--font-display);
  font-size: clamp(24px, 3vw, 36px);
  font-weight: 700;
  color: var(--text-primary);
  padding-bottom: 0;
  line-height: 1.3;
}

/* === ERROR ALERT (Bootstrap override) === */
.alert.alert-danger {
  background: rgba(239, 68, 68, 0.12);
  border: 1px solid rgba(239, 68, 68, 0.3);
  color: #fca5a5;
  border-radius: var(--radius-sm);
  backdrop-filter: blur(12px);
  margin: 16px auto;
  max-width: 600px;
  font-family: var(--font-main);
  animation: slideDown 0.4s ease;
}

.alert .btn-close {
  filter: invert(1) grayscale(100%) brightness(200%);
}

@keyframes slideDown {
  from { opacity: 0; transform: translateY(-12px); }
  to { opacity: 1; transform: translateY(0); }
}

/* === MAIN CONTAINER === */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
  position: relative;
  z-index: 1;
}

/* === HEADER / NAVBAR === */
.header {
  background: #fff;
  border-radius: 0 0 var(--radius-lg) var(--radius-lg);
  padding: 14px 26px;
  /* tri zone: logo | meni (tacno na sredini) | CTA */
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 20px;
  border: 1px solid var(--border-subtle);
  border-top: none;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
  position: sticky;
  top: 0;
  z-index: 100;
  /* Namerno BEZ `padding` u tranziciji: header je sticky i menja visinu, pa bi
     animirani padding 350ms pomerao ceo dokument ispod sebe (reflow po kadru) —
     to je bilo glavno seckanje na vrhu strane. Boja/senka su jeftine. */
  transition: background 0.35s ease, box-shadow 0.35s ease, border-color 0.35s ease;
}

.header > .left_side { justify-self: start; min-width: 0; }
.header > .navigation { justify-self: center; }

.header > .right_side {
  justify-self: end;
  display: flex;
  align-items: center;
  gap: 10px;
}

/* Tanka gradijentna linija koja se pojavi tek kad se krene sa skrolovanjem */
.header::after {
  content: '';
  position: absolute;
  left: 22px;
  right: 22px;
  bottom: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(102, 126, 234, 0.5), rgba(155, 89, 182, 0.5), transparent);
  opacity: 0;
  transition: opacity 0.35s ease;
  pointer-events: none;
}

/* Pri skrolovanju se skuplja i postaje staklen */
.header.is-scrolled {
  padding: 8px 22px;
  /* Ranije rgba(...,0.82) + backdrop-filter. Blur se preracunavao na svaki kadar
     skrola preko snimka koji ide ispod headera. Gusca bela podloga izgleda
     prakticno isto, a kosta nista. */
  background: rgba(255, 255, 255, 0.94);
  border-color: rgba(255, 255, 255, 0.7);
  box-shadow: 0 10px 30px rgba(15, 23, 42, 0.10);
}

.header.is-scrolled::after { opacity: 1; }

/* === LOGO: vodoravni sklop (znak + natpis) === */
.logo {
  display: flex;
  align-items: center;
  gap: 11px;
  min-width: 0;
}

/* Iz logo-opt.webp (215x130) prikazujemo samo znak: x 15..144, y 1..96.
   Sve je izrazeno preko visine znaka, pa se skalira jednim brojem. */
.logo-mark {
  --mark-h: 40px;
  position: relative;
  flex: 0 0 auto;
  height: var(--mark-h);
  width: calc(var(--mark-h) * 130 / 96);
  overflow: hidden;
  /* height/width se namerno ne animiraju — menjaju visinu sticky headera i
     povlace reflow cele strane tokom skrola (vidi .header iznad). */
  transition: transform var(--transition-smooth);
}

.logo-mark img {
  position: absolute;
  max-width: none;
  width: calc(var(--mark-h) * 215 / 96);
  height: auto;
  left: calc(var(--mark-h) * -15 / 96);
  top: calc(var(--mark-h) * -1 / 96);
}

.logo:hover .logo-mark { transform: rotate(-3deg) scale(1.06); }

.logo-word {
  display: flex;
  gap: 6px;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 19px;
  line-height: 1;
  letter-spacing: -0.015em;
  color: var(--text-primary);
  white-space: nowrap;
}

.logo-word em {
  font-style: normal;
  background: var(--accent-gradient);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.header.is-scrolled .logo-mark { --mark-h: 34px; }
.header.is-scrolled .logo-word { font-size: 17px; }

/* Sigurnosna mreza za deploy: ako novi CSS ode na server pre novog HTML-a,
   stari markup ima <img> direktno u .logo (bez .logo-mark). Bez ovoga bi se
   slika prikazala u punoj velicini. U novom markupu selektor ne hvata nista. */
.logo > img {
  height: 46px;
  width: auto;
  object-fit: contain;
}

.navigation ul {
  list-style: none;
  display: flex;
  align-items: center;
  gap: 4px;
  margin: 0;
  padding: 0;
}

.navigation a {
  text-decoration: none;
  color: var(--text-secondary);
  font-weight: 600;
  font-size: 14px;
  padding: 9px 16px;
  border-radius: var(--radius-full);
  transition: color 0.25s ease, background 0.25s ease, transform 0.25s ease;
  position: relative;
  letter-spacing: 0.01em;
  display: block;
}

/* hover i aktivna sekcija: akcentna pilula (ranije je bila skoro belo na belom) */
.navigation a:hover:not(.nav-login-btn),
.navigation a.active:not(.nav-login-btn) {
  color: var(--accent-primary);
  background: rgba(102, 126, 234, 0.10);
}

.navigation a:hover:not(.nav-login-btn) { transform: translateY(-1px); }

.navigation a.active:not(.nav-login-btn) {
  font-weight: 700;
}

/* Aktivnu sekciju oznacava tackica ispod — mirnije od podvlacenja preko pilule */
.navigation a:not(.nav-login-btn)::after {
  content: '';
  position: absolute;
  bottom: -1px;
  left: 50%;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--accent-gradient);
  transform: translateX(-50%) scale(0);
  transition: transform 0.3s var(--transition-spring, ease);
}

.navigation a.active:not(.nav-login-btn)::after {
  transform: translateX(-50%) scale(1);
}

/* CTA se pojavljuje samo tamo gde treba: desno na desktopu, u fioci na telefonu */
.nav-drawer-cta { display: none; }

/* Selektor je namerno bez ".navigation": CTA na desktopu stoji desno u
   headeru, izvan navigacije, a isti stil koristi i kopija u mobilnoj fioci. */
.nav-login-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--accent-gradient);
  color: white !important;
  text-decoration: none;
  font-size: 14px;
  padding: 10px 22px;
  border-radius: var(--radius-full);
  font-weight: 700;
  white-space: nowrap;
  box-shadow: 0 4px 14px rgba(102, 126, 234, 0.35);
  transition: transform var(--transition-smooth), box-shadow var(--transition-smooth);
  position: relative;
  overflow: hidden;
}

/* tanak odsjaj koji prelazi preko dugmeta na hover */
.nav-login-btn::before {
  content: '';
  position: absolute;
  top: 0;
  left: -110%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.42), transparent);
  transition: left 0.6s ease;
}

.nav-login-btn:hover::before { left: 110%; }

.nav-login-btn::after { display: none; }

.nav-login-btn:hover,
.nav-login-btn:focus-visible {
  transform: translateY(-2px);
  box-shadow: 0 8px 22px rgba(102, 126, 234, 0.5);
}

/* CTA vise nije u listi menija, pa razdvajanje crticom nije potrebno */

/* MOBILE NAV TOGGLE & OVERLAY */
.mobile-nav-toggle {
  display: none;
  background: none;
  border: none;
  color: var(--text-primary);
  font-size: 24px;
  cursor: pointer;
  padding: 8px;
  z-index: 1001;
}

.mobile-nav-close {
  display: none;
}

.mobile-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.4);
  z-index: 999;
}

.mobile-overlay.active {
  display: block;
}

/* Uzak desktop (851-1100px): tri zone su "1fr auto 1fr", pa bocni stubac dobija
   samo pola ostatka. Na 900px je logo trazio 229px a dobijao 187 — i naslezao
   na meni. Ovde se i logo i meni malo skupe da sve stane bez preklapanja. */
@media (min-width: 851px) and (max-width: 1100px) {
  .header { gap: 14px; padding: 12px 18px; }
  .header.is-scrolled { padding: 8px 16px; }

  .logo-mark { --mark-h: 34px; }
  .logo-word { font-size: 16px; }

  .navigation a { padding: 8px 11px; font-size: 13px; }
  .nav-login-btn { padding: 9px 16px; font-size: 13px; }
}

/* RESPONSIVE NAV — MOBILE */
@media (max-width: 850px) {
  .mobile-nav-toggle {
    display: block;
  }

  /* meni je izvan toka (fixed fioka), pa header ima samo dve zone */
  .header {
    grid-template-columns: auto auto;
    justify-content: space-between;
  }

  .header-cta { display: none; }        /* CTA se seli u fioku */
  .nav-drawer-cta { display: block; }

  /* Hamburger ima veci z-index od fioke, pa bi inace lebdeo preko nje.
     Dok je fioka otvorena, sakrivamo ga — zatvara se preko "X" ili overlaya. */
  .navigation.active ~ .right_side .mobile-nav-toggle {
    opacity: 0;
    pointer-events: none;
  }

  .navigation {
    position: fixed;
    top: 0;
    right: -300px;
    width: 270px;
    height: 100vh;
    background: #fff;
    z-index: 1000;
    padding: 80px 24px 40px;
    box-shadow: -4px 0 20px rgba(0, 0, 0, 0.08);
    transition: right 0.3s ease;
    overflow-y: auto;
  }

  .navigation.active {
    right: 0;
  }

  .mobile-nav-close {
    display: block;
    position: absolute;
    top: 20px;
    right: 20px;
    background: none;
    border: none;
    font-size: 22px;
    color: var(--text-primary);
    cursor: pointer;
    padding: 8px;
  }

  .navigation ul {
    flex-direction: column;
    gap: 8px;
    align-items: stretch;
  }

  .navigation a {
    font-size: 16px;
    padding: 14px 16px;
    display: block;
    border-radius: var(--radius-sm);
    color: var(--text-primary);
    text-align: left;
  }

  .navigation a:hover {
    background: var(--bg-primary);
  }

  .navigation a::after {
    display: none;
  }

  .navigation .nav-login-btn {
    text-align: center;
    margin-top: 16px;
  }

  /* logo se malo smanji da ostane mesta za hamburger.
     Dalja smanjenja su nize u fajlu, uz postojece tacke preloma (506/432/374). */
  .logo-mark { --mark-h: 34px; }
  .logo-word { font-size: 17px; }
}

/* === HERO HEADING === */
.fancy-heading {
  font-family: var(--font-display);
  margin: 60px 0 12px;
  font-size: clamp(28px, 4vw, 48px);
  font-weight: 800;
  color: transparent;
  background: linear-gradient(110deg, var(--text-primary) 0%, var(--accent-primary) 35%, var(--accent-secondary) 50%, var(--accent-primary) 65%, var(--text-primary) 100%);
  background-size: 250% auto;
  background-clip: text;
  -webkit-background-clip: text;
  text-align: center;
  letter-spacing: -0.02em;
  line-height: 1.2;
  position: relative;
  animation: gradientShift 5s linear infinite;
}

@keyframes gradientShift {
  0% { background-position: 0% 50%; }
  100% { background-position: 250% 50%; }
}

.fancy-heading::after {
  content: '';
  display: block;
  width: 80px;
  height: 3px;
  background: var(--accent-gradient);
  margin: 20px auto 0;
  border-radius: 4px;
  box-shadow: 0 0 12px var(--accent-glow);
}

.hero-subtitle {
  text-align: center;
  color: var(--text-secondary);
  font-size: clamp(16px, 2vw, 18px);
  max-width: 800px;
  margin: 0 auto 24px;
  font-weight: 500;
}

/* === SOCIAL MEDIA BAR === */
.social-links-container {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: center;
  gap: 16px;
  margin: 24px 0;
}

.social-links-container a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--bg-secondary);
  border: 1px solid var(--border-subtle);
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 20px;
  transition: all var(--transition-smooth);
  box-shadow: var(--shadow-sm);
}

.social-links-container a:hover {
  transform: translateY(-5px);
  color: white;
  background: var(--accent-gradient);
  border-color: transparent;
  box-shadow: 0 10px 20px var(--accent-glow);
}

/* === HERO SECTION (FIRST ROW) === */
.first_row {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 0;
  border-radius: var(--radius-xl);
  max-width: 100%;
  margin: 48px auto;
  overflow: hidden;
  position: relative;
  animation: fadeInUp 0.8s ease;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  box-shadow: var(--shadow-lg);
}

.first_row::before {
  content: '';
  position: absolute;
  top: -1px;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--accent-primary), var(--accent-secondary), transparent);
  z-index: 2;
}

@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(30px); }
  to { opacity: 1; transform: translateY(0); }
}

/* === LOGIN SECTION === */
.first_row .left_side {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 48px 40px;
  background: linear-gradient(160deg, #0f172a 0%, #1e3a5f 60%, #1e40af 100%);
  position: relative;
}

.login-container {
  width: 100%;
  max-width: 340px;
  text-align: center;
  animation: fadeInLeft 0.8s ease;
}

.login-container h2 {
  font-size: 28px;
  font-weight: 800;
  margin-bottom: 8px;
  color: #ffffff;
  -webkit-text-fill-color: #ffffff;
  background: none;
}

.login-subtitle {
  color: rgba(255, 255, 255, 0.65);
  font-size: 14px;
  margin-bottom: 28px;
  font-weight: 400;
}

@keyframes fadeInLeft {
  from { opacity: 0; transform: translateX(-20px); }
  to { opacity: 1; transform: translateX(0); }
}

.custom-form {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.custom-input-group {
  position: relative;
  background: #ffffff;
  border: 1.5px solid rgba(255, 255, 255, 0.4);
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  padding: 14px 24px;
  z-index: 10;
  transition: all var(--transition-smooth);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2);
}

.custom-input-group:hover {
  border-color: rgba(255, 255, 255, 0.7);
  background: #ffffff;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.25);
}

.custom-input-group:focus-within {
  border-color: #60a5fa;
  box-shadow: 0 0 0 3px rgba(96, 165, 250, 0.3), 0 4px 16px rgba(0, 0, 0, 0.2);
  background: #ffffff;
}

.custom-input {
  background: transparent;
  border: none;
  color: #0f172a;
  outline: none;
  flex: 1;
  font-size: 15px;
  font-family: var(--font-main);
  font-weight: 500;
}

.custom-input::placeholder {
  color: #94a3b8;
  font-weight: 400;
}

.custom-icon {
  margin-right: 14px;
  filter: brightness(0) saturate(100%) invert(30%) sepia(10%) saturate(500%) hue-rotate(200deg);
  width: 20px;
  height: 20px;
  opacity: 1;
  transition: all var(--transition-fast);
}

.custom-input-group:focus-within .custom-icon {
  filter: brightness(0) saturate(100%) invert(40%) sepia(80%) saturate(600%) hue-rotate(200deg);
  opacity: 1;
  transform: scale(1.1);
}

/* === LOGIN BUTTON === */
.login-btn {
  border: none;
  background: var(--accent-gradient);
  color: white;
  padding: 14px;
  border-radius: var(--radius-full);
  font-weight: 600;
  cursor: pointer;
  font-size: 15px;
  font-family: var(--font-main);
  letter-spacing: 0.02em;
  transition: all var(--transition-smooth);
  position: relative;
  overflow: hidden;
  margin-top: 4px;
}

.login-btn::before {
  content: '';
  position: absolute;
  top: 0; left: -100%;
  width: 100%; height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.4), transparent);
  transition: left 0.6s ease;
}

.login-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px var(--accent-glow);
}

.login-btn:hover::before {
  left: 100%;
}

.login-btn:active {
  transform: translateY(0);
}

/* === VIDEO SECTION === */
.first_row .right_side {
  position: relative;
  width: 100%;
  min-height: 380px;
  overflow: hidden;
}

.video-background {
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  overflow: hidden;
  /* podloga dok se snimak ne ucita (ucitava se odlozeno) */
  background: linear-gradient(160deg, #0f172a 0%, #1e3a5f 55%, #1e40af 100%);
}

/* Dva bafera stoje jedan preko drugog i smenjuju se prelivanjem, pa moraju
   biti apsolutno pozicionirani. z-index: 0 je OBAVEZAN — ::after scrim je na 1,
   .video-corners na 2, .video-caption na 3; bez toga bi snimak isao preko njih. */
.video-background video,
.hero-clip {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
}

.hero-clip {
  opacity: 0;
  transition: opacity var(--hero-fade, 600ms) ease;
  will-change: opacity;
}

.hero-clip.is-active { opacity: 1; }

/* Tanka traka napretka po dnu — bez nje smena klipova deluje nasumicno. */
.hero-progress {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 3px;
  z-index: 4;
  background: rgba(255, 255, 255, 0.14);
}

.hero-progress > span {
  display: block;
  height: 100%;
  background: var(--accent-gradient);
  transform: scaleX(0);
  transform-origin: left center;
}

/* Levi prelaz je sada TAMAN (login kartica je tamnoplava) — ranije je bio
   svetao, pa je izmedju kartice i snimka stajala tvrda bela ivica.
   Donji sloj je scrim za citljivost teksta preko snimka. */
.video-background::after {
  content: '';
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(15, 23, 42, 0.92) 0%, rgba(15, 23, 42, 0) 24%),
    linear-gradient(0deg, rgba(8, 15, 32, 0.9) 0%, rgba(8, 15, 32, 0.5) 30%, rgba(8, 15, 32, 0) 62%);
  pointer-events: none;
  z-index: 1;
}

/* CAD uglovi preko snimka */
.video-corners {
  --c: rgba(255, 255, 255, 0.45);
  --s: 22px;
  position: absolute;
  inset: 20px;
  z-index: 2;
  pointer-events: none;
  background-repeat: no-repeat;
  background-image:
    linear-gradient(var(--c), var(--c)), linear-gradient(var(--c), var(--c)),
    linear-gradient(var(--c), var(--c)), linear-gradient(var(--c), var(--c)),
    linear-gradient(var(--c), var(--c)), linear-gradient(var(--c), var(--c)),
    linear-gradient(var(--c), var(--c)), linear-gradient(var(--c), var(--c));
  background-size:
    var(--s) 1px, 1px var(--s),
    var(--s) 1px, 1px var(--s),
    var(--s) 1px, 1px var(--s),
    var(--s) 1px, 1px var(--s);
  background-position:
    left top, left top,
    right top, right top,
    left bottom, left bottom,
    right bottom, right bottom;
}

/* Bedz "uzivo" */
.video-live {
  position: absolute;
  top: 22px;
  right: 22px;
  z-index: 3;
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 7px 14px;
  border-radius: var(--radius-full);
  /* bez backdrop-filter: blur preko snimka bi se preracunavao na svaki kadar */
  background: rgba(8, 15, 32, 0.72);
  border: 1px solid rgba(255, 255, 255, 0.22);
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.video-live .dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #34d399;
  animation: videoPulse 2.4s ease-out infinite;
}

/* "UŽIVO" zadrzava uppercase i razmaknuta slova iz .video-live */
.video-live .live-word {
  flex: 0 0 auto;
}

/* Naziv klipa koji se trenutno vrti, odvojen tankom crtom. Bedz je inace
   uppercase sa razmaknutim slovima — "ULAZNA VRATA SA UKRASNIM PANELOM"
   bi tako prelilo okvir, pa se ovde vraca na normalan tekst. */
.video-live b {
  text-transform: none;
  letter-spacing: 0;
  font-weight: 700;
  font-size: 11.5px;
  max-width: 34vw;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  padding-left: 9px;
  border-left: 1px solid rgba(255, 255, 255, 0.28);
}

@keyframes videoPulse {
  0%   { box-shadow: 0 0 0 0 rgba(52, 211, 153, 0.55); }
  70%  { box-shadow: 0 0 0 9px rgba(52, 211, 153, 0); }
  100% { box-shadow: 0 0 0 0 rgba(52, 211, 153, 0); }
}

/* Tekst preko snimka */
.video-caption {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 3;
  padding: 28px 32px 30px;
  color: #fff;
}

.video-caption h3 {
  font-family: var(--font-display);
  font-size: clamp(19px, 1.7vw, 24px);
  font-weight: 800;
  line-height: 1.25;
  color: #fff;
  margin: 0 0 8px;
  text-shadow: 0 2px 14px rgba(0, 0, 0, 0.55);
}

.video-caption p {
  font-size: 14px;
  line-height: 1.55;
  color: rgba(255, 255, 255, 0.84);
  margin: 0 0 16px;
  max-width: 440px;
  text-shadow: 0 1px 10px rgba(0, 0, 0, 0.5);
}

.video-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.video-chips span {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 7px 13px;
  border-radius: var(--radius-full);
  background: rgba(255, 255, 255, 0.16);
  border: 1px solid rgba(255, 255, 255, 0.26);
  font-size: 12.5px;
  font-weight: 600;
  color: #fff;
  white-space: nowrap;
}

.video-chips i {
  font-size: 12px;
  color: #93c5fd;
}

@media (prefers-reduced-motion: reduce) {
  .video-live .dot { animation: none; }
  .hero-clip { transition: none; }   /* tvrd rez umesto prelivanja */
  .hero-progress { display: none; }
}

/* === SECOND ROW — "Otvorite prozor ka modernizaciji" === */
.second_row {
  display: flex;
  flex-direction: row;
  padding: 100px 0;
  justify-content: space-between;
  align-items: center;
  gap: 40px;
  position: relative;
  overflow: hidden;
}

/* INTERACTIVE GRID BACKGROUND */
.grid-canvas {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  opacity: 0.5;
  background-image: 
    linear-gradient(rgba(102, 126, 234, 0.15) 1px, transparent 1px),
    linear-gradient(90deg, rgba(102, 126, 234, 0.15) 1px, transparent 1px);
  background-size: 40px 40px;
  background-position: center center;
  mask-image: radial-gradient(circle 450px at var(--mouse-x, 50%) var(--mouse-y, 50%), black 20%, transparent 100%);
  -webkit-mask-image: radial-gradient(circle 450px at var(--mouse-x, 50%) var(--mouse-y, 50%), black 20%, transparent 100%);
  transition: opacity 0.6s ease;
}

.second_row:hover .grid-canvas {
  opacity: 1;
}

.second_row .left_side, 
.second_row .right_side {
  position: relative;
  z-index: 1;
}

.second_row .left_side {
  max-width: 50%;
  padding-top: 0;
}

.second_row .left_side img {
  width: 100%;
  height: auto;
  border: none;
  box-shadow: none;
  transition: transform 0.6s ease;
  filter: drop-shadow(0 20px 40px rgba(0, 0, 0, 0.3));
}

.second_row .left_side:hover img {
  transform: scale(1.08) translateY(-8px);
}

.second_row .right_side {
  position: relative;
  width: auto;
  padding-left: 20px;
  min-width: 0;   /* dozvoljava flex koloni da se skupi umesto da gura tekst van */
}

/* Na srednjim sirinama 3D prozor uzima previse mesta i gusi naslov.
   Layout se lomi u jednu kolonu tek na 768px, pa opseg 769–950px mora uzi prozor. */
@media (max-width: 1150px) {
  .window3d { width: 420px; }
}

@media (max-width: 950px) {
  .window3d { width: 330px; }
}

.second_row .right_side h1 {
  perspective: 1000px;
  margin: 0;
  padding: 0;
}

.stagger-reveal span {
  display: block;
  /* Izmereno: "modernizaciji" je 7.39x sire od font-size. Kolona pored 3D prozora
     je ~552px na sirokom ekranu → maksimum je ~74px. Zato gornja granica 70px. */
  font-size: clamp(32px, 5.2vw, 70px);
  font-weight: 900;
  line-height: 0.95;
  color: var(--text-primary);
  opacity: 0;
  transform: rotateX(-90deg) translateZ(50px);
  transform-origin: top;
  background: linear-gradient(135deg, var(--text-primary) 0%, var(--accent-primary) 50%, var(--accent-secondary) 100%);
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  transition: all 0.6s cubic-bezier(0.34, 1.56, 0.64, 1);
  animation: flipIn 1s ease forwards;
  animation-delay: calc(var(--i) * 0.15s + 0.5s);
  position: relative;
  letter-spacing: -0.03em;
  filter: drop-shadow(0 10px 20px rgba(0,0,0,0.1));
}

.stagger-reveal span::after {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 50%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
  transform: skewX(-25deg);
  transition: none;
  animation: shineText 8s infinite;
  animation-delay: calc(var(--i) * 0.5s);
}

@keyframes flipIn {
  0% { opacity: 0; transform: rotateX(-90deg) translateZ(50px); filter: blur(10px); }
  100% { opacity: 1; transform: rotateX(0deg) translateZ(0); filter: blur(0); }
}

@keyframes shineText {
  0% { left: -100%; }
  20% { left: 200%; }
  100% { left: 200%; }
}

.stagger-reveal span:hover {
  transform: scale(1.05) translateZ(30px);
  filter: drop-shadow(0 20px 40px var(--accent-glow));
  -webkit-text-fill-color: var(--accent-primary);
  cursor: pointer;
}

@keyframes fadeSlideIn {
  to { opacity: 1; transform: translateY(0); }
}

/* Decorative line accents */
.second_row .right_side::before {
  content: '';
  display: block;
  width: 0;
  height: 3px;
  background: var(--accent-gradient);
  transition: width 0.6s ease;
  margin-bottom: 16px;
  border-radius: 4px;
  box-shadow: 0 0 12px var(--accent-glow);
}

.second_row .right_side::after {
  content: '';
  display: block;
  width: 0;
  height: 3px;
  background: var(--accent-gradient);
  transition: width 0.6s ease;
  margin-top: 16px;
  border-radius: 4px;
  box-shadow: 0 0 12px var(--accent-glow);
}

.second_row .right_side:hover::before,
.second_row .right_side:hover::after {
  width: 60%;
}

@keyframes wave {
  0% { transform: translateY(20px); opacity: 0; }
  60% { transform: translateY(-4px); }
  100% { transform: translateY(0); opacity: 1; }
}

/* === VIDEO HIGHLIGHT (Tutorial) === */
/* === UPUTSTVO SECTION & BROWSER MOCKUP === */
.uputstvo-section {
  padding: 80px 24px;
  max-width: 1100px;
  margin: 0 auto;
  text-align: center;
}

.uputstvo-text {
  margin-bottom: 48px;
}

.uputstvo-text h2 {
  font-size: clamp(28px, 4vw, 42px);
  font-weight: 800;
  color: var(--text-primary);
  margin-bottom: 16px;
  line-height: 1.2;
}

.uputstvo-text h2 span {
  background: var(--accent-gradient);
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.uputstvo-text p {
  color: var(--text-secondary);
  font-size: clamp(16px, 2vw, 18px);
  font-weight: 500;
  max-width: 650px;
  margin: 0 auto;
}

.video-showcase-wrapper {
  perspective: 1200px;
  padding: 0 10px;
}

.browser-mockup.highlight {
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  box-shadow: 0 20px 40px rgba(15, 23, 42, 0.15), 0 0 0 1px rgba(255,255,255,0.5);
  overflow: hidden;
  position: relative;
  transform: rotateX(4deg) translateY(0) scale(0.98);
  transform-style: preserve-3d;
  transition: all 0.8s cubic-bezier(0.34, 1.56, 0.64, 1);
  margin: 0 auto;
  max-width: 1000px;
}

.browser-mockup.highlight.active {
  transform: rotateX(0deg) translateY(-8px) scale(1);
  box-shadow: 0 30px 60px rgba(102, 126, 234, 0.25), 0 0 0 1px var(--border-accent), 0 0 30px var(--accent-glow);
}

.browser-header {
  background: rgba(248, 250, 252, 0.85);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border-subtle);
  padding: 12px 20px;
  display: flex;
  align-items: center;
  position: relative;
  z-index: 10;
}

.browser-header .dots {
  display: flex;
  gap: 8px;
  position: absolute;
  left: 20px;
}

.browser-header .dot {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  box-shadow: inset 0 1px 2px rgba(0,0,0,0.1);
}

.dot.close { background-color: #ff5f56; }
.dot.minimize { background-color: #ffbd2e; }
.dot.expand { background-color: #27c93f; }

.browser-title {
  margin: 0 auto;
  font-size: 13px;
  font-weight: 600;
  color: var(--text-secondary);
  background: #ffffff;
  padding: 6px 32px;
  border-radius: 6px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.04);
  letter-spacing: 0.02em;
  font-family: var(--font-main);
  border: 1px solid var(--border-subtle);
}

@media (max-width: 500px) {
  /* Naslov prozorcica je i ranije bio sakriven; sada sklanjamo celu laznu
     "browser" traku. Tri tackice bez naslova izgledaju kao zaostatak, a ta
     traka nosi backdrop-filter koji se preracunavao preko snimka koji ide. */
  .browser-title  { display: none; }
  .browser-header { display: none; }

  /* Snimak ide od ivice do ivice — namerno, kao ekran aplikacije.
     Negativna margina ponistava 16px sa .container; body ima overflow-x:hidden,
     pa nema bocnog skrola. */
  .uputstvo-section       { padding: 32px 0; }
  .uputstvo-text          { padding: 0 16px; }
  .video-showcase-wrapper { padding: 0; margin: 0 -16px; }

  .browser-mockup.highlight {
    max-width: none;
    border-radius: 0;
    box-shadow: 0 8px 22px rgba(15, 23, 42, 0.16);
  }
}

.browser-content {
  position: relative;
  aspect-ratio: 16/9;
  width: 100%;
  background: #0f172a;
  overflow: hidden;
}

.video-tag {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.video-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(15, 23, 42, 0.3), transparent 30%, rgba(15, 23, 42, 0.1));
  pointer-events: none;
  z-index: 3;
  transition: opacity 0.8s ease;
}

.browser-mockup.highlight.active .video-overlay {
  opacity: 0;
}

/* ============================================
   THIRD ROW — 3D IMPACT SECTION
   ============================================ */
.third_row.impact-3d {
  padding: 120px 0;
  overflow: visible;
  perspective: 1500px;
}

.impact-perspective-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 60px;
  transform-style: preserve-3d;
  width: 100%;
  /* Rezerva sa strane: obe kutije su pod perspektivom i "izlaze" iz ravni,
     pa im se projektovana ivica na hover pomeri ka spolja (tekst ulevo,
     slika udesno). Bez ove rezerve je naslov na uzim ekranima izlazio iz
     kontejnera i lepio se za ivicu prozora. */
  padding-inline: clamp(10px, 2.2vw, 30px);
}

.impact-text-box {
  flex: 1;
  max-width: 600px;
  transform: rotateY(-12deg) translateZ(50px);
  transform-style: preserve-3d;
  transition: transform 0.6s cubic-bezier(0.34, 1.56, 0.64, 1);
}

/* Blaze nego ranije (bilo -5deg / 80px): sto je kutija bliza posmatracu, to
   je projekcija vise gura ka svojoj strani ekrana — a tekstualna kutija je
   krajnje levo, pa je prva izlazila iz kontejnera. */
.impact-3d:hover .impact-text-box {
  transform: rotateY(-8deg) translateZ(58px);
}

.impact-headline {
  font-size: clamp(38px, 5vw, 64px);
  font-weight: 900;
  line-height: 1.05;
  color: var(--text-primary);
  margin-bottom: 30px;
  display: flex;
  flex-direction: column;
}

.impact-headline span {
  display: block;
}

.impact-headline .line-3 {
  background: var(--accent-gradient);
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  filter: drop-shadow(0 10px 20px rgba(155, 89, 182, 0.3));
}

.impact-headline .line-3 span {
  display: inline;
  font-style: italic;
  text-decoration: underline;
  text-underline-offset: 8px;
}

.impact-subtext {
  font-size: 20px;
  color: var(--text-secondary);
  line-height: 1.6;
  max-width: 500px;
  transform: translateZ(30px);
}

.impact-subtext strong {
  color: var(--accent-primary);
  font-weight: 700;
}

.impact-image-box {
  flex: 1;
  display: flex;
  justify-content: center;
  align-items: center;
  transform: rotateY(18deg) translateZ(20px);
  transform-style: preserve-3d;
  transition: transform 0.8s ease;
}

.impact-3d:hover .impact-image-box {
  transform: rotateY(25deg) translateZ(50px) scale(1.05);
}

.image-3d-wrapper {
  position: relative;
  width: 100%;
  max-width: 500px;
}

.image-3d-wrapper img {
  width: 100%;
  height: 550px;
  object-fit: cover;
  object-position: center;
  display: block;
  /* box-shadow umesto drop-shadow: filter unutar preserve-3d konteksta
     prisiljava spljostavanje i zna da iscrta senku sa tvrdim ivicama */
  box-shadow: -24px 34px 54px rgba(0, 0, 0, 0.34);
  border-radius: var(--radius-lg);
  transform-style: preserve-3d;
}

.image-3d-wrapper::before {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--accent-gradient);
  opacity: 0.1;
  filter: blur(80px);
  z-index: -1;
  transform: translateZ(-50px);
}

/* RESPONSIVE IMPACT */
@media (max-width: 900px) {
  .impact-perspective-container {
    flex-direction: column-reverse;
    text-align: center;
    gap: 40px;
  }
  .impact-text-box, .impact-image-box {
    transform: none !important;
    max-width: 100%;
  }
  .impact-headline {
    font-size: 42px;
  }
  .impact-subtext {
    margin: 0 auto;
  }
}

.highlight-animate {
  background: var(--accent-gradient);
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  font-weight: 700;
  font-size: clamp(24px, 3vw, 32px);
  display: inline-block;
  animation: pulseGlow 3s ease-in-out infinite;
}

@keyframes pulseGlow {
  0%, 100% { filter: drop-shadow(0 0 4px rgba(102, 126, 234, 0.4)); }
  50% { filter: drop-shadow(0 0 16px rgba(102, 126, 234, 0.6)); }
}

.fade-in-text {
  opacity: 0;
  animation: fadeInText 1.2s ease forwards;
  animation-delay: 0.8s;
  display: inline-block;
  background: var(--accent-gradient-reverse);
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  font-weight: 600;
}

@keyframes fadeInText {
  to { opacity: 1; }
}

.highlight-word {
  position: relative;
  display: inline-block;
  cursor: default;
  color: var(--text-primary);
  -webkit-text-fill-color: var(--text-primary);
  transition: color var(--transition-smooth);
}

.highlight-word::after {
  content: '';
  position: absolute;
  left: 0; bottom: -2px;
  width: 100%;
  height: 2px;
  background: var(--accent-gradient);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--transition-smooth);
  border-radius: 2px;
}

.highlight-word:hover::after {
  transform: scaleX(1);
}

.highlight-word:hover {
  color: var(--accent-primary);
  -webkit-text-fill-color: var(--accent-primary);
}

/* ============================================
   SHOWCASE BENTO GALLERY
   ============================================ */
.showcase-section {
  padding: 100px 0;
  text-align: center;
}

.showcase-title {
  font-size: clamp(32px, 5vw, 48px);
  font-weight: 800;
  margin-bottom: 12px;
  background: var(--accent-gradient);
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  font-family: var(--font-display);
}

.showcase-subtitle {
  color: var(--text-secondary);
  font-size: clamp(16px, 2vw, 18px);
  font-weight: 500;
  margin-bottom: 48px;
}

.bento-gallery {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-auto-rows: 240px;
  grid-auto-flow: dense;
  gap: 24px;
  max-width: 1300px;
  margin: 0 auto;
  padding: 0 24px;
}

/* Base item styling */
.bento-item {
  position: relative;
  border-radius: var(--radius-xl);
  overflow: hidden;
  cursor: pointer;
  box-shadow: var(--shadow-sm);
  transition: transform 0.5s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.5s ease, opacity 0.6s ease;
  background: linear-gradient(110deg, #ececec 8%, #f5f5f5 18%, #ececec 33%);
  background-size: 200% 100%;
  animation: shimmer 1.5s linear infinite;
  will-change: transform;
  contain: layout paint;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

@keyframes shimmer {
  0% { background-position: -200% 0; }
  100% { background-position: 200% 0; }
}

/* Image settings */
.bento-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.8s cubic-bezier(0.34, 1.56, 0.64, 1), opacity 0.5s;
  opacity: 0.9;
  will-change: transform;
}

/* Bento grid sizing classes */
.bento-item.large {
  grid-column: span 2;
  grid-row: span 2;
}

.bento-item.tall {
  grid-row: span 2;
}

.bento-item.wide {
  grid-column: span 2;
}

/* Overlay & Icons styling */
.bento-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, rgba(15,23,42,0.95) 0%, rgba(15,23,42,0.3) 50%, transparent 100%);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  align-items: flex-start;
  padding: 32px;
  opacity: 1;
  transition: background 0.5s ease;
}

.bento-overlay i {
  background: var(--accent-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  color: transparent;
  font-size: 36px;
  margin-bottom: 8px;
  transform: translateY(20px);
  opacity: 0.7;
  transition: transform 0.5s cubic-bezier(0.34, 1.56, 0.64, 1), opacity 0.4s ease, filter 0.3s ease;
  filter: drop-shadow(0 4px 6px rgba(0,0,0,0.5));
}

.bento-overlay span {
  color: #ffffff;
  font-size: 22px;
  font-weight: 700;
  font-family: var(--font-display);
  letter-spacing: 0.5px;
  line-height: 1.3;
  transform: translateY(20px);
  opacity: 0.7;
  transition: transform 0.6s cubic-bezier(0.34, 1.56, 0.64, 1), opacity 0.5s ease;
  text-shadow: 0 4px 12px rgba(0,0,0,0.8);
}

/* Hover effects */
.bento-item:hover {
  --ty: -6px;
  --sc: 1.02;
  box-shadow: 0 40px 80px rgba(102, 126, 234, 0.25), 0 0 0 1px var(--accent-primary);
  z-index: 10;
}

.bento-item:hover img {
  transform: scale(1.15);
  opacity: 0.6;
}

.bento-item:hover .bento-overlay {
  background: linear-gradient(0deg, rgba(15,23,42,0.95) 0%, rgba(15,23,42,0.7) 40%, rgba(15,23,42,0.2) 100%);
}

.bento-item:hover .bento-overlay i,
.bento-item:hover .bento-overlay span {
  transform: translateY(0);
  opacity: 1;
}

.bento-item:hover .bento-overlay i {
  filter: drop-shadow(0 0 12px var(--accent-glow));
}

/* Responsive constraints */
@media (max-width: 1024px) {
  .bento-gallery {
    grid-template-columns: repeat(3, 1fr);
    grid-auto-rows: 220px;
    gap: 20px;
  }
}

@media (max-width: 768px) {
  .bento-gallery {
    grid-template-columns: repeat(2, 1fr);
    grid-auto-rows: 200px;
    gap: 16px;
    padding: 0 16px;
  }
  .bento-item.large {
    grid-column: span 2;
    grid-row: span 2;
  }
  .bento-item.wide {
    grid-column: span 2;
  }
  /* On tablets, tall elements might force weird gaps on a 2 col grid if not careful, but dense flow handles it */
}

@media (max-width: 550px) {
  .bento-gallery {
    grid-template-columns: 1fr;
    grid-auto-rows: 260px;
    gap: 16px;
  }
  .bento-item.large,
  .bento-item.wide,
  .bento-item.tall,
  .bento-item {
    grid-column: span 1 !important;
    grid-row: span 1 !important;
  }
  .bento-overlay span {
    font-size: 20px;
  }
}

/* ============================================
   FEATURES HIGHLIGHT CARDS
   ============================================ */
.features-section {
  padding: 80px 24px;
  max-width: 1200px;
  margin: 0 auto;
}

.section-title {
  font-size: clamp(28px, 4vw, 40px);
  font-weight: 800;
  text-align: center;
  margin-bottom: 48px;
  background: var(--accent-gradient);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  font-family: var(--font-display);
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 24px;
}

.feature-card {
  background: var(--bg-card);
  /* bez backdrop-filter: filter grupise element i "spljosti" 3D decu (ikonicu) */
  border-radius: var(--radius-md);
  padding: 32px 24px;
  border: 1px solid var(--border-subtle);
  box-shadow: var(--shadow-sm);
  transition: all 0.4s ease;
  position: relative;
  z-index: 1;
}

.feature-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  border-radius: inherit;
  background: linear-gradient(135deg, rgba(102, 126, 234, 0.05), transparent);
  z-index: -1;
}

.feature-card:hover {
  --ty: -8px;
  box-shadow: var(--shadow-md), 0 10px 30px rgba(102, 126, 234, 0.15);
  border-color: rgba(102, 126, 234, 0.3);
}

.feature-card .icon-box {
  width: 56px;
  height: 56px;
  border-radius: var(--radius-sm);
  background: var(--accent-gradient);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
  color: #fff;
  font-size: 24px;
  box-shadow: 0 8px 16px rgba(102, 126, 234, 0.3);
  transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.feature-card:hover .icon-box {
  transform: scale(1.1) rotate(5deg);
}

.feature-card h3 {
  font-size: 19px;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 12px;
  line-height: 1.3;
}

.feature-card p {
  font-size: 15px;
  color: var(--text-secondary);
  line-height: 1.6;
  margin: 0;
}

/* === FULLSCREEN PREVIEW === */
/* === IMMERSIVE FULLSCREEN SHOWCASE === */
/* ============================================
   FULLSCREEN PREVIEW (galerija) — redizajn
   --------------------------------------------
   Layout je kolona: traka (brojac + X) -> sadrzaj.
   Slika i tekst dele preostalu visinu preko grida, pa se
   slika uklapa u SVOJ okvir umesto u fiksnih 82vh —
   time vise ne moze da bude odsecena na malim ekranima.
   ============================================ */
.fullscreen-preview {
  display: none;
  position: fixed;
  inset: 0;
  background: #05070d;
  z-index: 9999;
  overflow: hidden;
  /* dvh prati stvarnu visinu na telefonu (adresna traka se skuplja/siri) */
  height: 100dvh;
}

/* Immersive Background Extension */
.fullscreen-preview::before {
  content: '';
  position: absolute;
  inset: -100px;
  background: var(--bg-image) center/cover no-repeat;
  filter: blur(60px) brightness(0.3);
  opacity: 0;
  transition: opacity 0.8s ease;
  z-index: 0;
}

.fullscreen-preview.active::before {
  opacity: 1;
}

.fullscreen-preview.active {
  display: flex !important;
  flex-direction: column;
  animation: modalFadeIn 0.4s ease forwards;
}

/* Gornja traka — nosi brojac i dugme za zatvaranje */
.preview-bar {
  position: relative;
  z-index: 12;
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: calc(env(safe-area-inset-top, 0px) + 14px) 16px 12px;
}

.preview-counter {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: rgba(255, 255, 255, 0.92);
  background: rgba(10, 14, 25, 0.72);
  border: 1px solid rgba(255, 255, 255, 0.16);
  padding: 9px 15px;
  border-radius: var(--radius-full);
  backdrop-filter: blur(10px);
  font-variant-numeric: tabular-nums;
}

.preview-content {
  flex: 1;
  min-height: 0;              /* bez ovoga grid ne sme da se smanji ispod sadrzaja */
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(320px, 0.7fr);
  width: 100%;
  position: relative;
  z-index: 1;
  background: transparent;
  overflow: hidden;
}

.preview-image-side {
  position: relative;
  min-width: 0;
  min-height: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 8px 88px 24px;      /* bocni prostor je za strelice */
}

.preview-image-side img,
.preview-image-side video {
  max-width: 100%;
  max-height: 100%;            /* uklapa se u svoj okvir, ne u vh -> nikad odsecena */
  width: auto;
  height: auto;
  object-fit: contain;
  border-radius: var(--radius-md);
  box-shadow: 0 24px 56px rgba(0,0,0,0.62), 0 0 0 1px rgba(255,255,255,0.09);
  transition: transform 0.7s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.35s ease;
  opacity: 0;
  transform: scale(0.97);
}

.fullscreen-preview.active .preview-image-side img,
.fullscreen-preview.active .preview-image-side video {
  opacity: 1;
  transform: scale(1);
}

#fullscreenVideo {
  display: none;
}

/* Strelice — pune tamne, da se vide i preko potpuno bele slike */
.nav-button {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: rgba(10, 14, 25, 0.62);
  border: 1px solid rgba(255, 255, 255, 0.18);
  color: #fff;
  font-size: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 10;
  transition: background 0.3s ease, border-color 0.3s ease, transform 0.3s ease;
  backdrop-filter: blur(10px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.4);
}

.nav-button:hover,
.nav-button:focus-visible {
  background: rgba(102, 126, 234, 0.9);
  border-color: rgba(255, 255, 255, 0.5);
  transform: translateY(-50%) scale(1.08);
}

.nav-button.prev { left: 18px; }
.nav-button.next { right: 18px; }

/* Info Side - Deep Glassmorphism */
.preview-info-side {
  min-width: 0;
  min-height: 0;
  padding: 56px 48px;
  background: rgba(10, 14, 25, 0.55);
  backdrop-filter: blur(34px);
  border-left: 1px solid rgba(255, 255, 255, 0.07);
  display: flex;
  flex-direction: column;
  /* "safe" centriranje: kad tekst preraste okvir, poravna se na vrh umesto da
     bude odsecen sa obe strane. Stariji pregledaci ignorisu pravilo i ostaju
     na flex-start, sto je takodje bezbedno — naslov je uvek vidljiv. */
  justify-content: safe center;
  position: relative;
  overflow-y: auto;
  overscroll-behavior: contain;
}

.preview-info-side h2 {
  font-family: var(--font-display);
  font-size: clamp(24px, 2.6vw, 44px);
  font-weight: 900;
  color: #fff;
  margin-bottom: 20px;
  line-height: 1.15;
  letter-spacing: -0.02em;
  text-wrap: balance;
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease 0.15s, transform 0.6s cubic-bezier(0.16, 1, 0.3, 1) 0.15s;
}

.preview-info-side p {
  font-size: 17px;
  line-height: 1.7;
  color: rgba(255, 255, 255, 0.82);
  margin-bottom: 28px;
  font-weight: 400;
  max-width: 60ch;
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease 0.28s, transform 0.6s cubic-bezier(0.16, 1, 0.3, 1) 0.28s;
}

.fullscreen-preview.active .preview-info-side h2,
.fullscreen-preview.active .preview-info-side p,
.fullscreen-preview.active .preview-info-side .preview-actions {
  opacity: 1;
  transform: translateY(0);
}

.preview-actions {
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.8s cubic-bezier(0.16, 1, 0.3, 1) 0.6s;
}

.preview-pdf-btn {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 18px 32px;
  background: var(--accent-gradient);
  color: white;
  text-decoration: none;
  border-radius: var(--radius-full);
  font-weight: 700;
  font-size: 16px;
  box-shadow: 0 10px 30px rgba(102, 126, 234, 0.4);
  transition: all var(--transition-spring);
  border: none;
}

.preview-pdf-btn:hover {
  transform: translateY(-5px) scale(1.05);
  box-shadow: 0 20px 40px rgba(102, 126, 234, 0.6);
  color: white;
}

.preview-pdf-btn i {
  font-size: 20px;
}

/* Dugme za zatvaranje — puna tamna podloga, citljivo i preko bele slike */
.preview-close {
  position: relative;
  flex: 0 0 auto;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: rgba(10, 14, 25, 0.72);
  border: 1px solid rgba(255, 255, 255, 0.22);
  color: #fff;
  font-size: 19px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background 0.3s ease, border-color 0.3s ease, transform 0.3s ease;
  backdrop-filter: blur(10px);
  box-shadow: 0 6px 22px rgba(0, 0, 0, 0.5);
}

.preview-close:hover,
.preview-close:focus-visible {
  background: #ef4444;
  border-color: #ef4444;
  transform: rotate(90deg);
}

/* Sigurnosna mreza za deploy: ako na server ode novi CSS a jos stari markup
   (X direktno u overlayu, bez .preview-bar), dugme se i dalje pozicionira
   gore desno i zadrzava citljivu tamnu podlogu. U novom markupu je X unutar
   .preview-bar, pa se ovo pravilo ne primenjuje. */
.fullscreen-preview > .preview-close {
  position: absolute;
  top: calc(env(safe-area-inset-top, 0px) + 14px);
  right: 16px;
  z-index: 10000;
}

@keyframes modalFadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

/* Na sirokim ekranima traka lebdi preko sadrzaja, da desni panel ide
   punom visinom umesto da mu vrh izgleda odsecen ispod trake. */
@media (min-width: 1101px) {
  .preview-bar {
    position: absolute;
    inset: 0 0 auto 0;
    pointer-events: none;          /* traka ne sme da pokupi klik na pozadinu */
  }

  .preview-counter,
  .preview-close { pointer-events: auto; }

  .preview-image-side { padding-top: 72px; }   /* slika ne ulazi pod brojac */
}

/* ---- Uzi ekrani: slika gore, tekst kao list ispod ---- */
@media (max-width: 1100px) {
  .preview-content {
    grid-template-columns: 1fr;
    /* minmax(0,1fr) dozvoljava redu sa slikom da se skupi -> slika ostaje cela */
    grid-template-rows: minmax(0, 1fr) auto;
  }

  .preview-image-side { padding: 4px 14px 14px; }

  .preview-info-side {
    max-height: 40dvh;
    padding: 22px 22px calc(env(safe-area-inset-bottom, 0px) + 22px);
    border-left: none;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    justify-content: flex-start;   /* naslov uvek od vrha, nikad odsecen */
  }
}

@media (max-width: 768px) {
  .preview-bar { padding: calc(env(safe-area-inset-top, 0px) + 10px) 12px 8px; }
  .preview-counter { font-size: 12px; padding: 8px 13px; }
  .preview-close { width: 42px; height: 42px; font-size: 17px; }

  .nav-button { width: 44px; height: 44px; font-size: 15px; }
  .nav-button.prev { left: 8px; }
  .nav-button.next { right: 8px; }

  .preview-image-side { padding: 2px 8px 10px; }
  .preview-image-side img,
  .preview-image-side video { border-radius: 14px; }

  .preview-info-side { max-height: 38dvh; padding: 18px 18px calc(env(safe-area-inset-bottom, 0px) + 18px); }
  .preview-info-side h2 { font-size: 21px; margin-bottom: 12px; }
  .preview-info-side p { font-size: 15px; line-height: 1.62; margin-bottom: 18px; }
  .preview-pdf-btn { padding: 14px 24px; font-size: 15px; }
}

/* Korisnici koji su iskljucili animacije */
@media (prefers-reduced-motion: reduce) {
  .fullscreen-preview.active { animation: none; }
  .preview-image-side img,
  .preview-image-side video,
  .preview-info-side h2,
  .preview-info-side p,
  .preview-actions { transition: none; transform: none; }
}

/* === PARTNERS CAROUSEL — POWERFUL & MINIMALIST === */
.partners-section {
  padding: 100px 0;
  background: transparent; /* No background as requested */
  position: relative;
  overflow: hidden;
}

/* Sekcija je bez pozadinskog snimka — ranije je iza logotipa isao tihi klip
   iz aplikacije, pa je uz njega ovde stajala maska i beli veo. Snimak je
   izbacen; ostaje samo slaganje slojeva, da naslov i karusel budu iznad
   podloge strane. */
.partners-section > * {
  position: relative;
  z-index: 1;
}

.partners-carousel {
  margin-top: 20px;
  overflow: hidden;
  padding: 40px 0;
  white-space: nowrap;
  position: relative;
  /* More dramatic mask for powerful fade-in/out */
  mask-image: linear-gradient(to right, transparent, black 25%, black 75%, transparent);
  -webkit-mask-image: linear-gradient(to right, transparent, black 25%, black 75%, transparent);
}

.partners-track {
  display: inline-flex;
  align-items: center;
  gap: 80px;
  animation: partnersScroll 45s linear infinite;
  padding-left: 80px;
}

.partners-track img {
  height: 70px; /* Slightly larger for power */
  width: auto;
  min-width: 140px;
  max-width: 240px;
  object-fit: contain;
  filter: grayscale(1) opacity(0.4) brightness(1.2);
  transition: all 0.5s cubic-bezier(0.16, 1, 0.3, 1);
  /* Floating shadow for depth */
  filter: drop-shadow(0 0 0 rgba(0,0,0,0));
}

.partners-track img:hover {
  filter: grayscale(0) opacity(1) brightness(1);
  transform: scale(1.1) translateY(-5px);
  /* Glow/Shadow on hover */
  filter: drop-shadow(0 15px 30px rgba(0,0,0,0.3));
}

@keyframes partnersScroll {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

/* ============================================
   DEEP DIVE FEATURES (ZIGZAG)
   ============================================ */
.detailed-features-wrapper {
  max-width: 1200px;
  /* 76 + 24 = 100px razmaka kao i pre; deo je samo prebacen iz margine u
     padding. Razlog: `content-visibility: auto` secka na kutiji wrappera, pa
     je senka prvog panela bila odsecena po vrhu, a poslednjeg po dnu. Sada
     imaju 24px vazduha unutar kutije, tacno kao sa strane. */
  margin: 76px auto;
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 100px;
}

/* === POGLAVLJA — panel po koraku, sa zaglavljem koje ostaje vidljivo u "spilu" === */
.zigzag-row {
  --ch-accent: var(--accent-primary);
  --ch-accent-2: var(--accent-secondary);
  --ch-soft: rgba(102, 126, 234, 0.10);
  display: flex;
  flex-direction: column;
}

.chapter-head {
  display: flex;
  align-items: center;
  gap: 16px;
  min-height: 48px;
  padding: 9px 26px;
  border-radius: var(--radius-xl) var(--radius-xl) 0 0;
  background: linear-gradient(100deg, var(--ch-soft) 0%, rgba(255, 255, 255, 0) 72%);
  border-bottom: 1px solid var(--border-subtle);
}

.chapter-num {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  border-radius: 9px;
  background: linear-gradient(135deg, var(--ch-accent), var(--ch-accent-2));
  color: #fff;
  font-family: var(--font-display);
  font-size: 14px;
  font-weight: 800;
  letter-spacing: 0.02em;
  box-shadow: 0 6px 14px var(--ch-soft);
}

.chapter-tag {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ch-accent);
}

.chapter-tag i { font-size: 14px; }

.chapter-of {
  margin-left: auto;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: var(--text-muted);
}

.chapter-body {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 48px;
  padding: 32px 28px 36px;
}

.zigzag-row.reverse .chapter-body {
  flex-direction: row-reverse;
}

.zigzag-content {
  flex: 1;
  max-width: 550px;
}

/* kompaktnije unutar poglavlja da panel stane u ekran */
.chapter-body .zigzag-content h2 { font-size: clamp(24px, 2.6vw, 31px); margin-bottom: 14px; }
.chapter-body .zigzag-content p { font-size: 16px; margin-bottom: 20px; }
.chapter-body .check-list { gap: 13px; }
.chapter-body .check-list li { font-size: 15.5px; }
.chapter-body .check-list li::before { background: linear-gradient(135deg, var(--ch-accent), var(--ch-accent-2)); }
.chapter-body .check-list li strong {
  background: linear-gradient(90deg, var(--ch-accent), var(--ch-accent-2));
  background-clip: text;
  -webkit-background-clip: text;
}
/* min-height mora da ostane: slike u slajderu su position:absolute,
   pa bi se drzac bez toga srusio na nulu */
.chapter-body .glass-image-holder { min-height: 300px; max-height: 330px; }
.chapter-body .glass-image-holder img { max-height: 306px; }

.subtitle-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-full);
  font-size: 14px;
  font-weight: 600;
  color: var(--accent-primary);
  margin-bottom: 20px;
  box-shadow: var(--shadow-sm);
  box-sizing: border-box;
}

.zigzag-content h2 {
  font-size: clamp(28px, 3.5vw, 36px);
  font-weight: 800;
  color: var(--text-primary);
  margin-bottom: 20px;
  line-height: 1.2;
}

.zigzag-content p {
  font-size: 17px;
  color: var(--text-secondary);
  line-height: 1.6;
  margin-bottom: 24px;
}

.check-list {
  list-style: none;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.check-list li {
  position: relative;
  font-size: 16px;
  color: var(--text-secondary);
  line-height: 1.6;
  padding-left: 32px;
  transition: all var(--transition-smooth);
}

.check-list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 6px;
  width: 14px;
  height: 14px;
  background: var(--accent-gradient);
  border-radius: 4px;
  box-shadow: 0 4px 10px var(--accent-glow);
  clip-path: polygon(14% 44%, 0 58%, 50% 100%, 100% 16%, 80% 0%, 43% 62%);
  transition: all var(--transition-spring);
}

.check-list li:hover {
  transform: translateX(8px);
  color: var(--text-primary);
}

.check-list li:hover::before {
  transform: scale(1.2) rotate(5deg);
  box-shadow: 0 6px 15px rgba(102, 126, 234, 0.4);
}

.check-list li strong {
  color: var(--accent-primary);
  font-weight: 700;
  background: linear-gradient(90deg, var(--accent-primary), var(--accent-secondary));
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  display: inline-block;
  margin-right: 4px;
}

.zigzag-image {
  flex: 1;
  display: flex;
  justify-content: center;
  align-items: center;
}

.glass-image-holder {
  position: relative;
  border-radius: var(--radius-lg);
  padding: 12px;
  background: var(--bg-glass);
  backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 255, 255, 0.4);
  box-shadow: var(--shadow-lg), 0 20px 40px rgba(155, 89, 182, 0.1);
  transition: transform 0.5s ease;
  min-height: 350px;
  width: 100%;
  max-width: 550px;
}

.glass-image-holder:not(.image-slider) {
  display: flex;
  align-items: center;
  justify-content: center;
}

.image-slider {
  overflow: hidden;
}

.slider-img {
  position: absolute;
  top: 12px;
  left: 12px;
  width: calc(100% - 24px);
  height: calc(100% - 24px);
  object-fit: contain;
  opacity: 0;
  transition: opacity 0.8s ease;
  border-radius: var(--radius-md);
  z-index: 1;
}

.slider-img.active {
  opacity: 1;
  z-index: 2;
}

.glass-image-holder:hover {
  --ty: -8px;
  box-shadow: var(--shadow-lg), 0 30px 60px rgba(155, 89, 182, 0.2);
}

/* ZIGZAG RESPONSIVE */
@media (max-width: 900px) {
  .chapter-body,
  .zigzag-row.reverse .chapter-body {
    flex-direction: column !important;
    gap: 32px;
    text-align: center;
  }

  .zigzag-content {
    max-width: 100%;
  }

  .zigzag-image {
    width: 100%;
  }

  .glass-image-holder {
    min-height: 280px;
    max-width: 100%;
  }

  .check-list li {
    padding-left: 28px;
    text-align: left;
    max-width: 450px;
    margin: 0 auto;
  }
}

.glass-image-holder img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  display: block;
}

/* FINAL CTA BANNER */
.final-cta-banner {
  margin-top: 60px;
  background: linear-gradient(135deg, rgba(255,255,255,0.9) 0%, rgba(240,244,248,0.9) 100%);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-xl);
  padding: 80px 40px;
  text-align: center;
  /* Isti razlog kao kod .zigzag-row: stoji u istom wrapperu, koji secka na
     svojoj kutiji. `--shadow-lg` (48px) i sjaj od 80px su se videli kao ostra
     linija duz ivice; sada nista ne prelazi 22px, koliko wrapper ima vazduha. */
  box-shadow:
    0 2px 4px rgba(15, 23, 42, 0.04),
    0 8px 18px rgba(15, 23, 42, 0.07),
    0 0 22px rgba(102, 126, 234, 0.07);
  backdrop-filter: blur(20px);
}

.final-cta-banner h2 {
  font-size: clamp(32px, 4vw, 42px);
  font-weight: 800;
  color: var(--text-primary);
  margin-bottom: 16px;
}

.cta-subtitle {
  font-size: 18px;
  color: var(--text-secondary);
  max-width: 600px;
  margin: 0 auto 60px;
}

.cta-features-grid {
  display: flex;
  justify-content: center;
  gap: 40px;
  margin-bottom: 60px;
  flex-wrap: wrap;
}

.cta-feature-item {
  flex: 1;
  min-width: 250px;
  max-width: 300px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.cta-icon {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: rgba(102, 126, 234, 0.1);
  color: var(--accent-primary);
  font-size: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
  transition: all 0.3s ease;
}

.cta-feature-item:hover .cta-icon {
  background: var(--accent-gradient);
  color: white;
  transform: scale(1.1);
  box-shadow: 0 10px 20px rgba(102, 126, 234, 0.3);
}

.cta-feature-item h4 {
  font-size: 20px;
  color: var(--text-primary);
  margin-bottom: 12px;
}

.cta-feature-item p {
  color: var(--text-secondary);
  font-size: 15px;
}

.cta-action h3 {
  font-size: 24px;
  color: var(--text-primary);
  line-height: 1.5;
}

.cta-action span {
  color: var(--accent-primary);
}

@media (max-width: 900px) {
  .zigzag-row, .zigzag-row.reverse {
    flex-direction: column;
    text-align: center;
    gap: 40px;
  }
  .check-list li {
    text-align: left;
  }
  .detailed-features-wrapper {
    gap: 80px;
    /* 36 + 24 = 60px kao i pre; padding ostaje da senka ima gde da se ugasi */
    margin: 36px auto;
  }
  .final-cta-banner {
    padding: 40px 20px;
  }
}

/* ============================================
   PRICING SECTION
   ============================================ */
.pricing-wrapper {
  padding: 80px 0;
  margin: 0 auto;
}

.pricing-wrapper .title {
  text-align: center;
  font-size: clamp(32px, 4vw, 48px);
  font-weight: 800;
  background: var(--accent-gradient);
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  transition: filter var(--transition-smooth);
  margin-bottom: 12px;
}

.pricing-wrapper .title:hover {
  filter: drop-shadow(0 0 12px var(--accent-glow));
}

.pricing-container {
  padding-top: 40px;
  display: flex;
  flex-direction: row;
  justify-content: center;
  gap: 24px;
  flex-wrap: wrap;
}

.pricing-card {
  background: var(--bg-card);
  backdrop-filter: blur(16px);
  border-radius: var(--radius-lg);
  padding: 90px 24px 32px;
  width: 280px;
  position: relative;
  border: 1px solid var(--border-subtle);
  box-shadow: var(--shadow-md);
  display: flex;
  flex-direction: column;
  align-items: center;
  transition: all var(--transition-smooth);
  overflow: visible;
}

.pricing-card::before {
  content: '';
  position: absolute;
  inset: -1px;
  border-radius: var(--radius-lg);
  background: linear-gradient(180deg, rgba(102, 126, 234, 0.15), transparent 40%);
  z-index: -1;
  opacity: 0;
  transition: opacity var(--transition-smooth);
}

.pricing-card:hover {
  --ty: -12px;
  border-color: var(--border-accent);
  box-shadow: var(--shadow-lg), 0 0 40px rgba(102, 126, 234, 0.15);
}

.pricing-card:hover::before {
  opacity: 1;
}

/* Card top gradient */
.card-top {
  position: absolute;
  top: 0; left: 0;
  width: 100%;
  border-top-left-radius: var(--radius-lg);
  border-top-right-radius: var(--radius-lg);
  background: var(--accent-gradient);
  height: 80px;
  display: flex;
  justify-content: center;
  padding-top: 12px;
  transition: all var(--transition-smooth);
}

.pricing-card:hover .card-top {
  background: linear-gradient(135deg, #3b82f6, #667eea, #3b82f6);
  background-size: 200% auto;
  animation: shine 2s linear infinite;
}

@keyframes shine {
  0% { background-position: 0% center; }
  100% { background-position: 200% center; }
}

.card-label {
  font-weight: 700;
  color: white;
  font-size: 15px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

/* Price badge */
.price-badge {
  position: absolute;
  top: 44px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--bg-primary);
  color: var(--text-primary);
  font-size: 17px;
  font-weight: 700;
  width: 80px; height: 80px;
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  line-height: 1.2;
  text-align: center;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.5), inset 0 1px 0 rgba(255,255,255,0.05);
  border: 2px solid rgba(102, 126, 234, 0.3);
  transition: all var(--transition-spring);
  font-family: var(--font-display);
}

.pricing-card:hover .price-badge {
  transform: translateX(-50%) scale(1.1);
  border-color: var(--accent-primary);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.5), 0 0 20px var(--accent-glow);
}

/* Features list */
.features {
  list-style: none;
  padding: 0;
  margin: 48px 0 0 0;
  width: 100%;
  text-align: left;
}

.features li {
  padding: 10px 16px;
  font-weight: 500;
  font-size: 14px;
  transition: all var(--transition-fast);
  border-radius: var(--radius-sm);
  margin: 2px 0;
}

.pricing-card:hover .features li {
  transform: translateX(4px);
}

.included {
  color: #34d399;
}

.excluded {
  color: var(--text-muted);
  opacity: 0.5;
}

.pricing-card:hover .included {
  color: #4ade80;
  background: rgba(52, 211, 153, 0.05);
}

.pricing-card:hover .excluded {
  opacity: 0.7;
}

/* Discount badge (AKCIJA) */
.discount-badge {
  position: absolute;
  right: -12px;
  top: -8px;
  background: linear-gradient(135deg, #ef4444, #f97316);
  color: white;
  font-weight: 700;
  font-size: 12px;
  padding: 6px 14px;
  border-radius: var(--radius-full);
  box-shadow: 0 4px 16px rgba(239, 68, 68, 0.4);
  transform: rotate(8deg);
  z-index: 10;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  animation: pulseBadge 2s ease-in-out infinite;
}

@keyframes pulseBadge {
  0%, 100% { transform: rotate(8deg) scale(1); }
  50% { transform: rotate(8deg) scale(1.08); }
}

.old-price {
  text-decoration: line-through;
  color: #f87171;
  font-size: 11px;
  display: block;
  opacity: 0.8;
  position: absolute;
  bottom: 6px;
}

.new-price {
  position: absolute;
  font-size: 18px;
  color: var(--text-primary);
  font-weight: 700;
}

/* Highlighted pricing card */
.pricing-card.highlight {
  box-shadow: var(--shadow-md), 0 0 30px rgba(239, 68, 68, 0.2);
}

.pricing-card.highlight .price-badge {
  flex-direction: column-reverse;
}

.pricing-card.highlight:hover {
  box-shadow: var(--shadow-lg), 0 0 40px rgba(239, 68, 68, 0.3);
}

/* ============================================
   FAQ SECTION
   ============================================ */
.faq-section {
  padding: 80px 24px;
  max-width: 900px;
  margin: 0 auto;
}

.faq-container {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.faq-item {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  overflow: hidden;
  transition: all 0.3s ease;
  box-shadow: var(--shadow-sm);
}

.faq-question {
  width: 100%;
  background: transparent;
  border: none;
  padding: 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 18px;
  font-weight: 600;
  color: var(--text-primary);
  cursor: pointer;
  text-align: left;
  transition: color 0.3s;
}

.faq-question i {
  color: var(--accent-primary);
  transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
  font-size: 16px;
}

.faq-question:hover {
  color: var(--accent-primary);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s cubic-bezier(0, 1, 0, 1);
  background: rgba(255, 255, 255, 0.02);
}

.faq-item.active .faq-question i {
  transform: rotate(180deg);
}

.faq-item.active .faq-answer {
  max-height: 400px;
  transition: max-height 0.6s ease-in-out;
}

.faq-answer p {
  padding: 0 24px 24px;
  color: var(--text-secondary);
  line-height: 1.6;
  font-size: 16px;
  margin: 0;
}

/* ============================================
   ANIMATED STATS BAR
   ============================================ */
.stats-bar {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 32px;
  flex-wrap: wrap;
  background: var(--bg-card);
  backdrop-filter: blur(16px);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  padding: 32px 24px;
  margin: 32px auto 48px;
  max-width: 1100px;
}

.stat-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  min-width: 150px;
}

.stat-icon {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--accent-gradient);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  margin-bottom: 12px;
  box-shadow: 0 8px 16px rgba(102, 126, 234, 0.3);
}

.stat-value {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(24px, 3vw, 32px);
  background: var(--accent-gradient);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  line-height: 1.2;
}

.stat-label {
  font-size: 13px;
  color: var(--text-secondary);
  font-weight: 600;
  margin-top: 4px;
}

.stat-divider {
  width: 1px;
  height: 48px;
  background: var(--border-subtle);
}

/* ---- Telefon: fiksna 2x2 mreza ----
   Ranije je ovo bio flex sa wrap-om, a .stat-item je imao min-width:150px.
   Dve stavke su tako trazile 340px, pa je na 360px ekranu ispadao jedan
   stubac od 4 stavke, a na ~412px odjednom 2x2 — raspored je zavisio od
   par piksela sirine. Grid to uklanja. */
@media (max-width: 700px) {
  .stats-bar {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 22px 12px;
    padding: 26px 16px;
    margin: 24px auto 36px;
  }

  /* U grid-u mora display:none — inace bi delitelji trosili svoje celije. */
  .stat-divider { display: none; }

  .stat-item {
    min-width: 0;              /* gasi 150px iz osnovnog pravila */
    align-content: start;
  }

  .stat-icon  { width: 42px; height: 42px; font-size: 16px; margin-bottom: 10px; }
  .stat-value { font-size: clamp(22px, 6.4vw, 28px); }
  .stat-label { font-size: 12px; line-height: 1.35; }
}

/* ---- Uzak telefon: jedan stubac, ikona levo, broj i opis desno ----
   Bez ijedne izmene HTML-a: .stat-item postaje mreza sa imenovanim zonama. */
@media (max-width: 480px) {
  .stats-bar {
    grid-template-columns: 1fr;
    gap: 12px;
    padding: 20px 18px;
  }

  /* Delitelji sada dobijaju svrhu: iste tri postojece crte postaju
     vodoravni razdelnici izmedju redova. */
  .stat-divider {
    display: block;
    width: auto;
    height: 1px;
    background: var(--border-subtle);
  }

  .stat-item {
    display: grid;
    grid-template-columns: 42px minmax(0, 1fr);
    grid-template-areas:
      "icon value"
      "icon label";
    column-gap: 14px;
    align-items: center;
    text-align: left;
  }

  .stat-icon  { grid-area: icon;  align-self: center; margin-bottom: 0; }
  .stat-value { grid-area: value; font-size: 26px; }
  .stat-label { grid-area: label; margin-top: 2px; font-size: 12.5px; }
}

/* ============================================
   COMPARISON SECTION
   ============================================ */
.comparison-section {
  padding: 80px 0 40px;
  max-width: 1000px;
  margin: 0 auto;
}

.comparison-table {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 24px;
  margin-top: 40px;
}

.comparison-col {
  background: var(--bg-card);
  backdrop-filter: blur(12px);
  border-radius: var(--radius-lg);
  padding: 36px 28px;
  border: 1px solid var(--border-subtle);
  box-shadow: var(--shadow-sm);
  position: relative;
  transition: transform var(--transition-smooth);
}

.comparison-col h3 {
  font-size: 19px;
  font-weight: 700;
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.comparison-col ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.comparison-col li {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 14.5px;
  font-weight: 500;
  color: var(--text-secondary);
}

.comparison-old {
  opacity: 0.85;
  filter: saturate(0.6);
}

.comparison-old h3 { color: var(--text-muted); }

.comparison-old li i {
  color: #ef4444;
  font-size: 14px;
  flex-shrink: 0;
}

.comparison-new {
  border: 1px solid var(--border-accent);
  box-shadow: var(--shadow-lg), 0 0 40px rgba(102, 126, 234, 0.15);
  transform: scale(1.03);
}

.comparison-new:hover {
  transform: scale(1.05) translateY(-4px);
}

.comparison-new h3 {
  color: var(--text-primary);
}

.comparison-new h3 i {
  color: var(--accent-primary);
}

.comparison-new li {
  color: var(--text-primary);
}

.comparison-new li i {
  color: #34d399;
  font-size: 14px;
  flex-shrink: 0;
}

.comparison-badge {
  position: absolute;
  top: -14px;
  right: 24px;
  background: linear-gradient(135deg, #ef4444, #f97316);
  color: white;
  font-weight: 700;
  font-size: 11px;
  letter-spacing: 0.05em;
  padding: 6px 14px;
  border-radius: var(--radius-full);
  box-shadow: 0 4px 16px rgba(239, 68, 68, 0.4);
  text-transform: uppercase;
}

.comparison-vs {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--accent-gradient);
  color: white;
  font-weight: 800;
  font-size: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-md), 0 0 24px var(--accent-glow);
  flex-shrink: 0;
}

@media (max-width: 800px) {
  .comparison-table {
    grid-template-columns: 1fr;
  }
  .comparison-vs {
    margin: 0 auto;
  }
  .comparison-new {
    transform: none;
  }
  .comparison-new:hover {
    transform: translateY(-4px);
  }
}

/* ============================================
   TESTIMONIALS SECTION
   ============================================ */
.testimonials-section {
  padding: 40px 0 80px;
}

.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 24px;
  max-width: 1100px;
  margin: 40px auto 0;
}

.testimonial-card {
  background: var(--bg-card);
  backdrop-filter: blur(12px);
  border-radius: var(--radius-md);
  padding: 32px 28px;
  border: 1px solid var(--border-subtle);
  box-shadow: var(--shadow-sm);
  transition: all 0.4s ease;
}

.testimonial-card:hover {
  --ty: -8px;
  box-shadow: var(--shadow-md), 0 10px 30px rgba(102, 126, 234, 0.15);
  border-color: rgba(102, 126, 234, 0.3);
}

.testimonial-stars {
  color: #fbbf24;
  font-size: 14px;
  letter-spacing: 2px;
  margin-bottom: 16px;
}

.testimonial-text {
  color: var(--text-secondary);
  font-size: 15px;
  line-height: 1.7;
  margin-bottom: 24px;
  min-height: 90px;
}

.testimonial-author {
  display: flex;
  align-items: center;
  gap: 14px;
}

.testimonial-avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--accent-gradient);
  color: white;
  font-weight: 700;
  font-size: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.testimonial-info h4 {
  font-size: 15px;
  font-weight: 700;
  color: var(--text-primary);
}

.testimonial-info span {
  font-size: 13px;
  color: var(--text-muted);
}

/* ============================================
   STICKY FLOATING CTA
   ============================================ */
.sticky-cta {
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 900;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 22px;
  background: var(--accent-gradient);
  color: white;
  font-weight: 700;
  font-size: 15px;
  text-decoration: none;
  border-radius: var(--radius-full);
  box-shadow: 0 10px 30px rgba(102, 126, 234, 0.45);
  opacity: 0;
  transform: translateY(20px) scale(0.9);
  pointer-events: none;
  transition: all var(--transition-spring);
  animation: stickyPulse 2.5s ease-in-out infinite;
}

.sticky-cta.visible {
  opacity: 1;
  transform: translateY(0) scale(1);
  pointer-events: auto;
}

.sticky-cta:hover {
  transform: translateY(-4px) scale(1.05);
  box-shadow: 0 14px 36px rgba(102, 126, 234, 0.6);
  animation-play-state: paused;
}

@keyframes stickyPulse {
  0%, 100% { box-shadow: 0 10px 30px rgba(102, 126, 234, 0.45); }
  50% { box-shadow: 0 10px 30px rgba(102, 126, 234, 0.45), 0 0 0 10px rgba(102, 126, 234, 0.08); }
}

@media (max-width: 600px) {
  .sticky-cta {
    right: 16px;
    bottom: 16px;
    padding: 12px 18px;
    font-size: 14px;
  }
}

/* ============================================
   FOOTER REDESIGN
   ============================================ */
footer {
  background: var(--bg-secondary);
  border-top: 1px solid var(--border-subtle);
  padding: 80px 0 40px;
  position: relative;
  overflow: hidden;
  margin-top: 100px;
  border-top-left-radius: var(--radius-xl);
  border-top-right-radius: var(--radius-xl);
  box-shadow: 0 -10px 40px rgba(0, 0, 0, 0.05);
}

.footer-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

.footer-row {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1.2fr;
  gap: 60px;
  margin-bottom: 60px;
}

.footer-col h3 {
  font-size: 18px;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 24px;
  font-family: var(--font-display);
}

/* Brand Column */
.brand-col .footer-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 20px;
}

/* Futer nosi isti brend kao zaglavlje: .logo-mark (isecen znak) + .logo-word
   ("Windows" u boji teksta, "Studio" u gradijentu). Oba dolaze iz pravila za
   header gore, ovde se zadaje samo velicina — jedan izgled na oba kraja strane. */
.brand-col .footer-logo .logo-mark { --mark-h: 42px; }

.brand-col .footer-logo .logo-word { font-size: 21px; }

/* Sigurnosna mreza za deploy: stari markup ima <img> direktno u .footer-logo
   (bez .logo-mark). Ako novi CSS stigne pre novog HTML-a, slika ostane citljiva.
   Sa novim markupom selektor `>` ne hvata nista. */
.brand-col .footer-logo > img {
  width: 215px;
  max-width: 100%;
  height: auto;
}

.brand-description {
  color: var(--text-secondary);
  font-size: 15px;
  line-height: 1.6;
  margin-bottom: 24px;
  max-width: 400px;
}

.footer-social-links {
  display: flex;
  gap: 12px;
}

.footer-social-links a {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg-primary);
  border: 1px solid var(--border-subtle);
  border-radius: 12px;
  color: var(--text-secondary);
  text-decoration: none;
  transition: all var(--transition-smooth);
}

.footer-social-links a:hover {
  background: var(--accent-gradient);
  color: white;
  transform: translateY(-4px);
  border-color: transparent;
  box-shadow: 0 10px 20px rgba(102, 126, 234, 0.2);
}

/* Navigation Column */
.footer-nav-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}

.footer-nav-btn {
  display: block;
  padding: 10px 16px;
  background: var(--bg-primary);
  border: 1px solid var(--border-subtle);
  border-radius: 12px;
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  transition: all var(--transition-smooth);
  text-align: center;
}

.footer-nav-btn:hover {
  background: var(--bg-secondary);
  border-color: var(--accent-primary);
  color: var(--accent-primary);
  transform: translateX(4px);
  box-shadow: var(--shadow-sm);
}

/* Contact Column */
.footer-contact-info {
  list-style: none;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.footer-contact-info li {
  display: flex;
  align-items: flex-start;
  gap: 16px;
}

.footer-contact-info i {
  font-size: 18px;
  color: var(--accent-primary);
  margin-top: 4px;
}

.info-content span {
  display: block;
  font-size: 12px;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 4px;
}

.info-content a, .info-content p {
  color: var(--text-primary);
  text-decoration: none;
  font-size: 15px;
  font-weight: 600;
  transition: color var(--transition-fast);
  margin: 0;
}

.info-content a:hover {
  color: var(--accent-primary);
}

/* Footer Bottom */
.footer-bottom {
  padding-top: 32px;
  border-top: 1px solid var(--border-subtle);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 20px;
}

.copyright {
  font-size: 14px;
  color: var(--text-muted);
}

.copyright strong {
  color: var(--text-secondary);
}

.footer-legal {
  display: flex;
  align-items: center;
  gap: 16px;
}

.footer-legal a {
  font-size: 14px;
  color: var(--text-muted);
  text-decoration: none;
  transition: color var(--transition-fast);
}

.footer-legal a:hover {
  color: var(--text-secondary);
}

.footer-legal .sep {
  color: var(--border-subtle);
}

/* Responsive Footer */
@media (max-width: 992px) {
  .footer-row {
    grid-template-columns: 1fr 1fr;
    gap: 40px;
  }
  .brand-col {
    grid-column: span 2;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
  }
  .brand-description {
    max-width: 500px;
  }
}

@media (max-width: 650px) {
  footer {
    padding: 60px 0 30px;
  }
  .footer-row {
    grid-template-columns: 1fr;
    text-align: center;
  }
  .brand-col {
    grid-column: span 1;
  }
  /* znak i natpis su sada uski i idu u jednom redu, samo centrirano */
  .brand-col .footer-logo {
    flex-wrap: nowrap;
    justify-content: center;
  }
  .footer-nav-grid {
    max-width: 400px;
    margin: 0 auto;
  }
  .footer-contact-info li {
    justify-content: center;
  }
  .footer-bottom {
    flex-direction: column;
    text-align: center;
  }
}

/* ============================================
   RESPONSIVE DESIGN
   ============================================ */
@media (max-width: 1000px) {
  .pricing-wrapper {
    padding: 40px 20px;
  }
  .stacked-item {
    width: 280px;
    height: 350px;
  }
  .third_row {
    margin-bottom: 20px;
  }
}

@media (max-width: 870px) {
  .stacked-item {
    width: 260px;
    height: 320px;
  }
}

@media (max-width: 800px) {
  .stacked-item {
    width: 240px;
    height: 300px;
    margin-left: -180px;
  }
}

@media (max-width: 768px) {
  .container {
    padding: 0 16px;
  }

  .header {
    padding: 12px 10px !important;
    border-radius: 0 0 var(--radius-md) var(--radius-md);
    display: flex !important;
    justify-content: space-between !important;
    width: 100%;
    margin: 0 !important;
  }
  .header .left_side {
    margin: 0 !important;
    padding: 0 !important;
    display: flex;
    justify-content: flex-start;
    flex: 0 1 auto;
  }
  .header .logo {
    margin: 0 !important;
    padding: 0 !important;
    display: flex;
    justify-content: flex-start;
    align-items: center;
  }
  .logo img {
    margin-left: 0 !important;
    padding-left: 0 !important;
  }


  .fancy-heading {
    margin: 36px 0 8px;
  }

  .first_row {
    grid-template-columns: 1fr;
    margin: 32px auto;
  }

  .first_row .left_side {
    padding: 36px 28px;
  }

  .first_row .right_side {
    min-height: 340px;
    border-radius: 0 0 var(--radius-xl) var(--radius-xl);
  }

  .video-background::after {
    background:
      linear-gradient(180deg, rgba(15, 23, 42, 0.92) 0%, rgba(15, 23, 42, 0) 22%),
      linear-gradient(0deg, rgba(8, 15, 32, 0.92) 0%, rgba(8, 15, 32, 0.5) 42%, rgba(8, 15, 32, 0) 72%);
  }

  .video-corners { inset: 14px; --s: 16px; }
  .video-live { top: 16px; right: 16px; font-size: 10px; padding: 6px 12px; gap: 7px; }
  .video-live b { max-width: 44vw; font-size: 10.5px; padding-left: 7px; }
  .video-caption { padding: 20px 22px 22px; }
  .video-caption p { display: none; }
  .video-chips span { font-size: 11.5px; padding: 6px 11px; }

  .second_row {
    flex-direction: column-reverse;
    padding: 48px 0;
    gap: 24px;
  }

  .second_row .left_side {
    max-width: 80%;
    margin: 0 auto;
  }

  .second_row .right_side {
    padding-left: 0;
    text-align: center;
  }

  /* mora da cilja span — on nosi font-size, pa bi pravilo na h1 bilo pregazeno */
  .second_row .right_side .stagger-reveal span {
    font-size: clamp(30px, 9.5vw, 64px);
  }

  .second_row .right_side::before,
  .second_row .right_side::after {
    margin-left: auto;
    margin-right: auto;
  }

  .third_row {
    flex-direction: column;
    text-align: center;
    padding: 48px 0;
    gap: 24px;
  }

  .third_row .left_side,
  .third_row .right_side {
    flex: 1 1 100%;
    padding: 0;
    min-width: auto;
  }

  /* Pravilo iznad je .third_row (specificnost 0,1,0) i NIKAD nije gazilo
     .third_row.impact-3d (0,2,0) sa pocetka fajla, pa je na telefonu ostajalo
     120px paddinga. To je bio glavni izvor ogromne praznine ispod uputstva.
     Ovde izjednacavamo specificnost — kasnije u fajlu, pa pobedjuje. */
  .third_row.impact-3d {
    padding: 56px 0;
  }

  /* --- UPUTSTVO na telefonu --- */
  .uputstvo-section {
    padding: 40px 12px;         /* bilo 80px 24px */
  }

  .uputstvo-text {
    margin-bottom: 26px;        /* bilo 48px */
  }

  .video-showcase-wrapper {
    padding: 0;                 /* bilo 0 10px */
    perspective: none;          /* nema 3D dece na telefonu — jedan sloj manje */
  }

  /* Nagib od 4 stepena na sirini od ~330px daje oko 1px pomeraja — cist trosak.
     Uz to je .active pomerao ceo blok za -8px dok se skroluje pored njega. */
  .browser-mockup.highlight,
  .browser-mockup.highlight.active {
    transform: none;
    transform-style: flat;
  }

  .browser-mockup.highlight {
    box-shadow: 0 10px 24px rgba(15, 23, 42, 0.14), 0 0 0 1px rgba(255, 255, 255, 0.5);
    transition: box-shadow 0.4s ease;
  }

  .pricing-container {
    gap: 20px;
  }
}

/* Dopuna za uzak ekran. Glavni blok za uputstvo je gore u fajlu, ali blok
   @media (max-width: 500px) stoji PRE ovog 768 bloka, pa je 768 gazio njegov
   padding i snimak nije isao do same ivice. Ovde se to vraca — isto pravilo,
   ali kasnije u fajlu. */
@media (max-width: 500px) {
  .uputstvo-section { padding: 32px 0; }
  .uputstvo-text    { padding: 0 16px; }
}

/* Na najuzim ekranima bedz zadrzava samo "UŽIVO" — naziv klipa bi ga prelio.
   Iznad ovoga se naziv skracuje trotackom (max-width + text-overflow). */
@media (max-width: 374px) {
  .video-live b { display: none; }
}

@media (max-width: 665px) {
  .stacked-item {
    width: 220px;
    height: 280px;
    margin-left: -180px;
  }
}

@media (max-width: 550px) {
  .stacked-item {
    width: 200px;
    height: 260px;
    margin-left: -170px;
  }
  .stacked-gallery {
    padding: 40px 20px;
  }
}

@media (max-width: 506px) {
  .header .right_side {
    font-size: 12px;
  }

  .navigation ul {
    gap: 4px;
  }

  .navigation a {
    padding: 6px 10px;
    font-size: 12px;
  }

  .logo-mark { --mark-h: 32px; }
  .logo-word { font-size: 16px; }
}

@media (max-width: 432px) {
  .header .right_side {
    font-size: 10px;
  }

  .navigation a {
    padding: 5px 8px;
    font-size: 10px;
  }

  .logo-mark { --mark-h: 29px; }
  .logo-word { font-size: 14px; }
}

@media (max-width: 374px) {
  .header .right_side {
    font-size: 9px;
  }

  .logo-mark { --mark-h: 26px; }
  .logo-word { font-size: 13px; gap: 5px; }

  .custom-input-group {
    padding: 10px 14px;
  }

  .login-btn {
    padding: 10px;
    font-size: 13px;
  }

  .login-container h2 {
    font-size: 22px;
  }
}

@media (max-width: 340px) {
  .stacked-item {
    width: 180px;
    height: 200px;
    margin-left: -160px;
  }
}

/* ============================================
   SCROLL-TRIGGERED REVEAL ANIMATIONS
   ============================================ */
.reveal {
  opacity: 0;
  transform: translateY(50px) scale(0.97);
  transition: opacity 0.9s cubic-bezier(0.16, 1, 0.3, 1), transform 0.9s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0) scale(1);
}

/* Cascading child reveal for grids inside a revealed section
   NOTE: kartice sa 3D tiltom dobijaju pomeraj preko --rvY promenljive,
   da reveal ne bi pregazio transform koji koristi tilt (vidi 3D SLOJ na dnu). */
.reveal .features-grid > .feature-card,
.reveal .bento-gallery > .bento-item,
.reveal .testimonials-grid > .testimonial-card,
.reveal .pricing-container > .pricing-card {
  opacity: 0;
  --rvY: 28px;
}

.reveal.visible .features-grid > .feature-card,
.reveal.visible .bento-gallery > .bento-item,
.reveal.visible .testimonials-grid > .testimonial-card,
.reveal.visible .pricing-container > .pricing-card {
  opacity: 1;
  --rvY: 0px;
}

.reveal .comparison-table > .comparison-col,
.reveal .comparison-table > .comparison-vs {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.6s cubic-bezier(0.16, 1, 0.3, 1), transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal.visible .comparison-table > .comparison-col,
.reveal.visible .comparison-table > .comparison-vs {
  opacity: 1;
  transform: translateY(0);
}

/* Kad se reveal zavrsi, skidamo stagger kasnjenje da hover/tilt budu trenutni */
.reveal.reveal-done .features-grid > .feature-card,
.reveal.reveal-done .bento-gallery > .bento-item,
.reveal.reveal-done .testimonials-grid > .testimonial-card,
.reveal.reveal-done .pricing-container > .pricing-card,
.reveal.reveal-done .comparison-table > * {
  transition-delay: 0s !important;
}

.reveal.visible .features-grid > .feature-card:nth-child(1),
.reveal.visible .bento-gallery > .bento-item:nth-child(1),
.reveal.visible .testimonials-grid > .testimonial-card:nth-child(1),
.reveal.visible .pricing-container > .pricing-card:nth-child(1),
.reveal.visible .comparison-table > *:nth-child(1) { transition-delay: 0.05s; }

.reveal.visible .features-grid > .feature-card:nth-child(2),
.reveal.visible .bento-gallery > .bento-item:nth-child(2),
.reveal.visible .testimonials-grid > .testimonial-card:nth-child(2),
.reveal.visible .pricing-container > .pricing-card:nth-child(2),
.reveal.visible .comparison-table > *:nth-child(2) { transition-delay: 0.15s; }

.reveal.visible .features-grid > .feature-card:nth-child(3),
.reveal.visible .bento-gallery > .bento-item:nth-child(3),
.reveal.visible .testimonials-grid > .testimonial-card:nth-child(3),
.reveal.visible .pricing-container > .pricing-card:nth-child(3),
.reveal.visible .comparison-table > *:nth-child(3) { transition-delay: 0.25s; }

.reveal.visible .features-grid > .feature-card:nth-child(4),
.reveal.visible .bento-gallery > .bento-item:nth-child(4) { transition-delay: 0.35s; }

.reveal.visible .features-grid > .feature-card:nth-child(5),
.reveal.visible .bento-gallery > .bento-item:nth-child(5) { transition-delay: 0.45s; }

.reveal.visible .features-grid > .feature-card:nth-child(6),
.reveal.visible .bento-gallery > .bento-item:nth-child(6) { transition-delay: 0.55s; }

.reveal.visible .features-grid > .feature-card:nth-child(7),
.reveal.visible .bento-gallery > .bento-item:nth-child(7) { transition-delay: 0.65s; }

.reveal.visible .features-grid > .feature-card:nth-child(8),
.reveal.visible .bento-gallery > .bento-item:nth-child(8) { transition-delay: 0.75s; }

@media (prefers-reduced-motion: reduce) {
  .reveal,
  .reveal .features-grid > .feature-card,
  .reveal .bento-gallery > .bento-item,
  .reveal .testimonials-grid > .testimonial-card,
  .reveal .pricing-container > .pricing-card,
  .reveal .comparison-table > .comparison-col,
  .reveal .comparison-table > .comparison-vs {
    transition-delay: 0s !important;
  }
}

/* Smooth scrollbar (webkit) */
::-webkit-scrollbar {
  width: 8px;
}

::-webkit-scrollbar-track {
  background: var(--bg-primary);
}

::-webkit-scrollbar-thumb {
  background: rgba(102, 126, 234, 0.3);
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: rgba(102, 126, 234, 0.5);
}

/* Selection color */
::selection {
  background: rgba(102, 126, 234, 0.3);
  color: var(--text-primary);
}

/* ============================================
   SEKCIJA "SVE STO DOBIJATE PRETPLATOM"
   ============================================ */
.value-section {
  padding: 40px 24px 80px;
  max-width: 1300px;
  margin: 0 auto;
}

.value-section > .section-title,
.value-section > .showcase-subtitle {
  text-align: center;
}

.value-section > .showcase-subtitle {
  max-width: 760px;
  margin-left: auto;
  margin-right: auto;
}

.value-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 24px;
  margin-top: 48px;
  align-items: start;
}

.value-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 28px 26px;
  box-shadow: var(--shadow-sm);
  transition: border-color 0.35s ease, box-shadow 0.35s ease, transform 0.35s ease;
}

.value-card:hover {
  border-color: var(--border-accent);
  box-shadow: var(--shadow-md), 0 10px 30px rgba(102, 126, 234, 0.12);
  transform: translateY(-4px);
}

.value-card-wide {
  grid-column: 1 / -1;
  background: linear-gradient(135deg, rgba(102, 126, 234, 0.07) 0%, rgba(118, 75, 162, 0.05) 100%);
  border-color: var(--border-accent);
}

.value-head {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 18px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--border-subtle);
}

.value-head i {
  flex: 0 0 auto;
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-sm);
  background: var(--accent-gradient);
  color: #fff;
  font-size: 19px;
  box-shadow: 0 6px 14px rgba(102, 126, 234, 0.3);
}

.value-head h3 {
  font-size: 19px;
  font-weight: 800;
  color: var(--text-primary);
  line-height: 1.25;
  margin: 0;
}

.value-card ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 11px;
}

.value-card ul li {
  position: relative;
  padding-left: 26px;
  font-size: 15px;
  line-height: 1.5;
  color: var(--text-secondary);
}

.value-card ul li::before {
  content: '\f00c';
  font-family: 'Font Awesome 6 Free';
  font-weight: 900;
  position: absolute;
  left: 0;
  top: 1px;
  font-size: 12px;
  color: var(--accent-primary);
}

.value-lead {
  font-size: 16px;
  line-height: 1.6;
  color: var(--text-secondary);
  margin-bottom: 20px;
  max-width: 820px;
}

.value-lead strong { color: var(--text-primary); }

.value-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 22px;
}

.value-tags span {
  padding: 8px 16px;
  border-radius: var(--radius-full);
  background: var(--bg-secondary);
  border: 1px solid var(--border-subtle);
  font-size: 14px;
  font-weight: 600;
  color: var(--text-primary);
  box-shadow: var(--shadow-sm);
}

.value-note {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 16px;
  line-height: 1.55;
  color: var(--text-secondary);
  margin: 0;
}

.value-note i {
  color: #10b981;
  font-size: 17px;
  margin-top: 2px;
}

.value-note strong { color: var(--text-primary); }

@media (max-width: 600px) {
  .value-section { padding: 24px 16px 56px; }
  .value-grid { grid-template-columns: 1fr; gap: 18px; margin-top: 32px; }
  .value-card { padding: 22px 20px; }
  .value-head h3 { font-size: 17px; }
  .value-tags span { font-size: 13px; padding: 7px 13px; }
}

/* --- Bocna navigacija po sekcijama (tackice) --- */
.section-dots {
  position: fixed;
  right: 20px;
  top: 50%;
  transform: translateY(-50%);
  z-index: 850;
  display: flex;
  flex-direction: column;
  gap: 16px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.4s ease;
}

.section-dots.visible {
  opacity: 1;
  pointer-events: auto;
}

.section-dots a {
  position: relative;
  width: 11px;
  height: 11px;
  border-radius: 50%;
  border: 1.5px solid rgba(102, 126, 234, 0.45);
  background: transparent;
  transition: transform var(--transition-spring), background 0.3s ease, border-color 0.3s ease;
}

.section-dots a::after {
  content: attr(data-label);
  position: absolute;
  right: 22px;
  top: 50%;
  transform: translateY(-50%) translateX(6px);
  padding: 5px 11px;
  border-radius: var(--radius-full);
  background: var(--text-primary);
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.04em;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease, transform 0.25s ease;
}

.section-dots a:hover {
  transform: scale(1.35);
  border-color: var(--accent-primary);
}

.section-dots a:hover::after {
  opacity: 1;
  transform: translateY(-50%) translateX(0);
}

.section-dots a.active {
  background: var(--accent-gradient);
  border-color: transparent;
  transform: scale(1.3);
  box-shadow: 0 0 0 4px rgba(102, 126, 234, 0.15);
}

@media (max-width: 1200px) {
  .section-dots { display: none; }
}

/* ============================================
   SCROLL SLOJ — kinematski ulaz/izlaz sekcija
   i "stacking" paneli. Native CSS scroll
   animacije (bez JS-a i bez biblioteka).
   ============================================ */

/* --- Kinematski ulaz/izlaz sekcija ---
   Koristi zasebne `translate` / `scale` osobine (ne `transform`),
   da se dve scroll animacije ne bi gazile. */
/* Vazi na SVIM velicinama — na telefonu je stranica bila potpuno staticna.
   Scroll timeline radi van glavne niti, pa je i na slabijim telefonima jeftin. */
@supports (animation-timeline: view()) {
  @media (prefers-reduced-motion: no-preference) {
    /* JS reveal se gasi — sve preuzima scroll timeline */
    .reveal,
    .reveal.visible {
      opacity: 1;
      transform: none;
      transition: none;
    }

    /* samo mek ulazak — bez smanjivanja sekcija pri izlasku (bilo je previse) */
    .reveal:not(.zigzag-row) {
      animation: cineIn linear both;
      animation-timeline: view();
      animation-range: entry 10% cover 18%;
    }

    @keyframes cineIn {
      from { opacity: 0; translate: 0 34px; }
      to   { opacity: 1; translate: 0 0; }
    }

    /* Vrlo blaga parallax kroz bento slike */
    .bento-item img {
      animation: bentoPan linear both;
      animation-timeline: view();
      animation-range: cover 0% cover 100%;
    }

    @keyframes bentoPan {
      from { object-position: 50% 42%; }
      to   { object-position: 50% 58%; }
    }
  }

  /* Na uredjaju prenisko za spil (vidi guard nize) paneli i kartice ne
     mogu da se lepe, pa bar dobijaju ulazak. */
  @media (max-width: 900px) and (prefers-reduced-motion: no-preference) {
    .zigzag-row {
      animation: cineIn linear both;
      animation-timeline: view();
      animation-range: entry 8% cover 20%;
    }

    /* Samo .value-card — testimonial/pricing vec imaju JS stagger,
       pa bi dobili dupli pomeraj. */
    .value-card {
      animation: cardRise linear both;
      animation-timeline: view();
      animation-range: entry 5% cover 16%;
    }

    @keyframes cardRise {
      from { opacity: 0; translate: 18px 0; }
      to   { opacity: 1; translate: 0 0; }
    }
  }

  /* ============================================================
     VALUE KARTICE: ulaze s desna i gomilaju se jedna iza druge
     ------------------------------------------------------------
     Ranije je svih deset stajalo odjednom u mrezi 3x4 — dug, monoton
     spisak kroz koji se samo prolazi. Sada je isti obrazac kao kod
     `.zigzag-row` nize: kartica se zalepi, sledeca dodje s desne strane
     i legne preko nje, sa malim pomakom nadole da se vidi da ih ima jos.
     ============================================================ */
  /* Guard je po VISINI, a ne po sirini: spil trazi da kartica stane u kadar
     (zalepljena kartica visa od ekrana ostala bi odsecena ispod preloma).
     Zato isto pravilo vazi i na telefonu — samo su tamo kartice zbijenije i
     lepe se blize vrhu, vidi granu "UZI EKRANI" nize. */
  @media (min-height: 600px) and (prefers-reduced-motion: no-preference) {
    .value-grid {
      /* jedna kolona — u mrezi bi kartice iz istog reda stajale jedna PORED
         druge i nikad se ne bi preklopile */
      display: block;
      max-width: 880px;
      margin-left: auto;
      margin-right: auto;

      /* KNOB: prazan hod izmedju dve kartice. Toliko se skroluje sa karticom
         u punom kadru PRE nego sto sledeca krene da je prekriva.
         Racun: sekcija = 10 x (--karta-visina + --karta-razmak). Na 5vh je to
         oko pet ekrana; svaka kartica stoji sama oko 400px skrola. Vise od
         toga se brzo pretvori u dug prazan hod (30vh je vec osam ekrana). */
      --karta-razmak: 5vh;

      /* Odakle spil pocinje da se lepi — ispod zbijenog sajt headera. */
      --karta-vrh: 88px;

      /* Za koliko svaka sledeca kartica sedne nize od prethodne. */
      --karta-stepenik: 10px;

      /* Sve kartice u spilu su iste visine. Bez ovoga visa kartica viri ispod
         nize koja je prekriva (spisak im nije iste duzine: 260-428px), pa se
         vidi da poslednja ne pokriva pretposlednju. */
      --karta-visina: 440px;
    }

    .value-card {
      position: sticky;
      top: calc(var(--karta-vrh) + (var(--n) - 1) * var(--karta-stepenik));
      min-height: var(--karta-visina);
      margin-bottom: var(--karta-razmak);
      /* `cardRise` iz mobilne grane ovde ne vazi — kartica ima svoj ulazak.
         Ulazak se zavrsi rano (`cover 12%`), pa kartica dolazi s desna dok je
         jos ispod prethodne, a ne dok je vec preklapa. */
      animation: kartaSDesna linear both;
      animation-timeline: view();
      animation-range: entry 0% cover 12%;
    }

    /* Poslednju nema ko da prekrije, pa joj ni razmak ispod ne treba. */
    .value-card:last-child { margin-bottom: 0; }

    /* Redni broj kartice: nosi i `top` i `z-index`, da svaka sledeca legne
       PREKO prethodne. Deset pravila, isto kao kod `.zigzag-row`. */
    .value-card:nth-child(1)  { --n: 1;  z-index: 1; }
    .value-card:nth-child(2)  { --n: 2;  z-index: 2; }
    .value-card:nth-child(3)  { --n: 3;  z-index: 3; }
    .value-card:nth-child(4)  { --n: 4;  z-index: 4; }
    .value-card:nth-child(5)  { --n: 5;  z-index: 5; }
    .value-card:nth-child(6)  { --n: 6;  z-index: 6; }
    .value-card:nth-child(7)  { --n: 7;  z-index: 7; }
    .value-card:nth-child(8)  { --n: 8;  z-index: 8; }
    .value-card:nth-child(9)  { --n: 9;  z-index: 9; }
    .value-card:nth-child(10) { --n: 10; z-index: 10; }

    /* Zalepljena kartica mora da bude NEPROZIRNA: `--bg-card` je bela na 85%,
       pa bi se kroz nju videla kartica koja prolazi ispod. */
    .value-card {
      background: #ffffff;
      box-shadow:
        0 1px 2px rgba(15, 23, 42, 0.05),
        0 10px 26px rgba(15, 23, 42, 0.08);
    }

    /* Siroka kartica zadrzava svoj preliv, ali dobija belu podlogu ispod njega
       (preliv je poluprovidan) i vise ne trazi ceo red mreze — mreze nema. */
    .value-card-wide {
      grid-column: auto;
      background:
        linear-gradient(135deg, rgba(102, 126, 234, 0.07) 0%, rgba(118, 75, 162, 0.05) 100%),
        #ffffff;
    }

    /* Kartica postane NEPROZIRNA rano (do 40% ulaska), a tek onda dovozi
       poslednjih par piksela: dok je poluprovidna, kroz nju se cita tekst
       kartice ispod i oba se mrljaju. */
    @keyframes kartaSDesna {
      0%   { opacity: 0; translate: 38px 0; scale: 0.985; }
      40%  { opacity: 1; }
      100% { opacity: 1; translate: 0 0;    scale: 1; }
    }
  }

  /* --- UZI EKRANI: isti spil, samo zbijen --------------------------------
     Na telefonu su iste kartice visoke 280-643px (spisak se prelama), pa bi
     desktop mera od 440px pustila najvisu da viri ispod one koja je prekriva.

     Zato se sve mere vezuju za VISINU EKRANA (vh), a ne za fiksne piksele:
     isti stil radi i na 823px i na 640px visokom telefonu — na nizem se samo
     jos malo skupi. Slova imaju donju granicu u `clamp`, ispod koje se ne
     spustaju ni na najmanjem ekranu. */
  @media (max-width: 900px) and (min-height: 600px) and (prefers-reduced-motion: no-preference) {
    .value-grid {
      --karta-vrh: 54px;
      --karta-stepenik: 5px;
      /* Kadar minus zalepljeno zaglavlje i stepenik poslednje kartice. */
      --karta-visina: min(560px, calc(100vh - 130px));
      --karta-razmak: 4vh;
    }

    .value-card { padding: clamp(12px, 1.8vh, 18px) clamp(12px, 3.6vw, 16px); }
    .value-card .value-head {
      margin-bottom: clamp(9px, 1.6vh, 14px);
      padding-bottom: clamp(8px, 1.4vh, 12px);
      gap: 10px;
    }
    .value-card .value-head i {
      width: clamp(28px, 4.2vh, 36px);
      height: clamp(28px, 4.2vh, 36px);
      font-size: clamp(13px, 1.9vh, 16px);
      border-radius: 9px;
    }
    .value-card .value-head h3 { font-size: clamp(14.5px, 2vh, 16.5px); line-height: 1.2; }
    .value-card ul { gap: clamp(5px, 1.05vh, 8px); }
    .value-card ul li {
      font-size: clamp(12.4px, 1.72vh, 14.2px);
      line-height: 1.38;
      padding-left: 21px;
    }
    .value-card ul li::before { font-size: 10.5px; }
    .value-card .value-lead { font-size: clamp(12.6px, 1.75vh, 14.5px); margin-bottom: clamp(9px, 1.7vh, 14px); }
    .value-card .value-tags { gap: 6px; }
    .value-card .value-tags span { font-size: clamp(10.8px, 1.5vh, 12px); padding: 4px 9px; }
    .value-card .value-note { font-size: clamp(11.8px, 1.65vh, 13.5px); line-height: 1.4; }

    /* Ulazak s desna je na uskom ekranu kraci — 38px je tu skoro desetina
       sirine, pa kartica deluje kao da ulece. */
    .value-card { animation-name: kartaSDesnaUsko; }

    @keyframes kartaSDesnaUsko {
      0%   { opacity: 0; translate: 22px 0; scale: 0.99; }
      40%  { opacity: 1; }
      100% { opacity: 1; translate: 0 0;   scale: 1; }
    }
  }
}

/* --- "Stacking" paneli: svaki zigzag red se lepi i sledeci klizi preko njega --- */
/* Panel poglavlja — izgled je isti i kad se lepe i kad ne */
.zigzag-row {
  border-radius: var(--radius-xl);
  /* namerno bez backdrop-filter: 4 zalepljena panela sa blurom bi stalno
     preracunavala pozadinu tokom skrola i nepotrebno trosila GPU */
  background: #ffffff;
  border: 1px solid var(--border-subtle);
  /* Senka mora da STANE u okvir wrappera. Wrapper je dete .container-a, pa
     dobija `content-visibility: auto`, a to secka sve sto izadje iz njegove
     kutije. Ranija senka (`0 22px 50px`) je trazila 50px sa strane, a wrapper
     nudi tacno 24px padding-a — zato je izgledala kao odsecena duz obe ivice.
     Sada nijedan sloj ne prelazi 16px u stranu (16px) ni 22px nanize (6+16),
     pa se gubi u vazduhu umesto o ivicu. Usput je i mnogo blaza: cetiri
     zalepljena panela sa jakom senkom su se citala kao tamne trake. */
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.9) inset,
    0 1px 2px rgba(15, 23, 42, 0.04),
    0 6px 16px rgba(15, 23, 42, 0.06);
  /* bez overflow:hidden — sekao bi podizanje slike na hover */
}

/* Prag 640px, a ne 700: laptop 1366x768 ima ~650px viewporta, pa bi na
   njemu ceo stack bio iskljucen. Panel je ~465px + poslednji top 148px = 613px. */
@media (min-width: 901px) and (min-height: 640px) {
  .detailed-features-wrapper {
    gap: 28px;
  }

  /* Razmak 44px: broj-cip ide do 40px (1px ivica + 9px + 30px), pa ostaje
     4px rezerve da se broj i naziv koraka nikad ne odseku.

     Prvi panel je stajao na top:28px — tacno UNUTAR trake sticky headera, koji
     je zbijen ~57px visok. Njegov z-index:1 tu ne pomaze: wrapper ima
     content-visibility:auto, dakle svoj stacking context, pa su 1..4 lokalni
     brojevi i nikad ne prestizu headerovih 100. Rezultat je bilo preseceno
     zaglavlje "01 / PROJEKTOVANJE". Mobilna grana nize to vec resava preko
     .chapter-head top:58px; ovo je isti racun za desktop. */
  .zigzag-row { position: sticky; }
  .zigzag-row:nth-of-type(1) { top: 72px;  z-index: 1; }
  .zigzag-row:nth-of-type(2) { top: 116px; z-index: 2; }
  .zigzag-row:nth-of-type(3) { top: 160px; z-index: 3; }
  .zigzag-row:nth-of-type(4) { top: 204px; z-index: 4; }

  /* Spustanje spila za 44px mora negde da se vrati, inace poslednji panel ne
     stane u prag od 640px: 204px + panel. Zato se telo panela zbija za isto
     toliko — ali SAMO dok se paneli slazu, van ovog media query-ja ostaje puno.
     Visinu panela ovde diktira tekst (~336px), ne slika, pa zbijanje mora da
     ide kroz padding: 204 + 49 (zaglavlje) + 48 (padding) + 336 = 637px. */
  .chapter-body { padding: 22px 28px 26px; }
  .chapter-body .glass-image-holder { min-height: 280px; max-height: 306px; }
  .chapter-body .glass-image-holder img { max-height: 286px; }

  .final-cta-banner { position: relative; z-index: 5; }
}

/* Na visokom ekranu nema razloga za zbijanje — panel se vraca na pune mere. */
@media (min-width: 901px) and (min-height: 780px) {
  .chapter-body { padding: 32px 28px 36px; }
  .chapter-body .glass-image-holder { min-height: 300px; max-height: 330px; }
  .chapter-body .glass-image-holder img { max-height: 306px; }
}

@media (max-width: 900px) {
  /* Zaglavlje poglavlja ostaje zalepljeno u vrhu panela dok se taj korak cita —
     uvek se vidi u kom si koraku. Ide ispod sajt headera (koji je pri skrolu
     visok ~60px); ako se preklope, header je iznad po z-indexu. */
  .chapter-head {
    position: sticky;
    /* 58px = malo ispod zbijenog sajt headera (~60px), da se izmedju njih
       ne vidi traka sadrzaja koji promice */
    top: 58px;
    z-index: 4;
    padding: 11px 20px;
    /* mora da bude neprozirno kad se zalepi preko sadrzaja */
    background: linear-gradient(100deg, var(--ch-soft) 0%, rgba(255, 255, 255, 0) 72%), #ffffff;
    border-radius: var(--radius-xl) var(--radius-xl) 0 0;
  }

  .chapter-body { padding: 26px 20px 30px; gap: 28px; }
  .chapter-of { display: none; }

}

/* --- Slaganje panela i ispod 900px ---------------------------------------
   Panel se lepi za VRH kadra, isto kao na desktopu. Uslov je da panel STANE
   u kadar: zalepljen panel visi od ekrana ostao bi odsecen ispod preloma i
   donji red teksta se ne bi mogao procitati ni na koji nacin.

   Zato guard ide po VISINI ekrana, a telo panela se zbija toliko da stane —
   dve grane, jer telefon (panel je tamo bio ~950-1000px) trazi mnogo jace
   zbijanje nego tablet (~770px).
   ------------------------------------------------------------------------ */
@media (min-width: 601px) and (max-width: 900px) and (min-height: 600px) {
  /* Telo se zbija dok se paneli slazu — isti postupak kao u desktop grani,
     da poslednji panel sa svojim `top`-om jos uvek stane u kadar. Mere idu po
     visini ekrana, pa isti stil radi i na tabletu od 1180px i na uzem
     laptopu od 700px. */
  .chapter-body {
    padding: clamp(12px, 1.8vh, 20px) 18px clamp(14px, 2.1vh, 24px);
    gap: clamp(12px, 1.9vh, 22px);
  }
  .chapter-body .glass-image-holder { min-height: clamp(120px, 18vh, 210px); max-height: clamp(140px, 20vh, 240px); }
  .chapter-body .glass-image-holder img { max-height: clamp(130px, 19vh, 226px); }
  .chapter-body .zigzag-content h2 { font-size: clamp(18px, 2.4vh, 26px); line-height: 1.2; }
  .chapter-body .zigzag-content p { font-size: clamp(13px, 1.7vh, 16px); margin-bottom: clamp(10px, 1.6vh, 20px); }
  .chapter-body .check-list { gap: clamp(6px, 1.1vh, 13px); }
  .chapter-body .check-list li { font-size: clamp(13px, 1.7vh, 15.5px); line-height: 1.42; }

  /* Razmak izmedju panela: sve preko ovoga se izmedju dva zalepljena panela
     vidi kao prazna traka podloge. */
  .detailed-features-wrapper { gap: clamp(14px, 2vh, 20px); }

  /* Zaglavlje se vise ne lepi zasebno — lepi se ceo panel, pa bi dva
     zalepljena sloja jedan u drugom samo trosila kadar. */
  .chapter-head { position: static; top: auto; }

  .zigzag-row { position: sticky; }
  .zigzag-row:nth-of-type(1) { top: 58px; z-index: 1; }
  .zigzag-row:nth-of-type(2) { top: 68px; z-index: 2; }
  .zigzag-row:nth-of-type(3) { top: 78px; z-index: 3; }
  .zigzag-row:nth-of-type(4) { top: 88px; z-index: 4; }

  /* Banner posle spila mora da prekrije poslednji zalepljeni panel. */
  .final-cta-banner { position: relative; z-index: 5; }
}

/* --- Telefon: isti spil, ali panel mora da smrsa ~400px ------------------
   Na 360-412px sirine su paneli bili 950-1100px, a ekran je 640-823px.
   Zbija se sve troje sto panel cini visokim: slika, razmaci i slova — i to
   PO VISINI EKRANA (vh), pa se isti stil sam prilagodi i visem i nizem
   telefonu. Slova imaju donju granicu u `clamp` ispod koje se ne spustaju.
   ------------------------------------------------------------------------ */
@media (max-width: 600px) and (min-height: 600px) {
  .chapter-body {
    padding: clamp(10px, 1.6vh, 14px) 14px clamp(12px, 1.8vh, 16px);
    gap: clamp(10px, 1.9vh, 16px);
  }

  /* Slika ustupa mesto tekstu: na 640px visokom ekranu je ~100px, na 823px ~132px. */
  .chapter-body .glass-image-holder { min-height: clamp(84px, 16vh, 165px); max-height: clamp(96px, 18vh, 185px); }
  .chapter-body .glass-image-holder img { max-height: clamp(90px, 17vh, 175px); }

  .chapter-body .zigzag-content h2 {
    font-size: clamp(16px, 2.3vh, 19.5px);
    line-height: 1.18;
    margin-bottom: clamp(7px, 1.3vh, 10px);
  }
  .chapter-body .zigzag-content p {
    font-size: clamp(12.2px, 1.7vh, 14px);
    line-height: 1.42;
    margin-bottom: clamp(8px, 1.5vh, 12px);
  }
  .chapter-body .check-list { gap: clamp(5px, 1vh, 8px); }
  .chapter-body .check-list li { font-size: clamp(12.2px, 1.65vh, 13.8px); line-height: 1.38; }

  .chapter-head { position: static; top: auto; padding: clamp(6px, 1.1vh, 9px) 14px; }
  .detailed-features-wrapper { gap: clamp(12px, 2vh, 16px); }

  .zigzag-row { position: sticky; }
  .zigzag-row:nth-of-type(1) { top: 54px; z-index: 1; }
  .zigzag-row:nth-of-type(2) { top: 60px; z-index: 2; }
  .zigzag-row:nth-of-type(3) { top: 66px; z-index: 3; }
  .zigzag-row:nth-of-type(4) { top: 72px; z-index: 4; }

  .final-cta-banner { position: relative; z-index: 5; }
}

/* ODZIV NA DODIR — na telefonu nema hover-a, pa kartice moraju da reaguju na tap */
@media (hover: none) {
  /* ove kartice transform sklapaju iz promenljivih — menjamo samo --sc
     da ne pregazimo ostatak (rotaciju, reveal pomeraj) */
  .bento-item:active,
  .testimonial-card:active,
  .pricing-card:active {
    --sc: 0.98;
  }

  .value-card:active,
  .zigzag-row:active,
  .faq-question:active {
    transform: scale(0.985);
    transition: transform 0.12s ease;
  }

  .bento-item:active {
    box-shadow: 0 18px 40px rgba(102, 126, 234, 0.28), 0 0 0 1px var(--accent-primary);
  }

  .value-card:active {
    border-color: var(--border-accent);
    box-shadow: var(--shadow-md), 0 8px 24px rgba(102, 126, 234, 0.16);
  }

  .video-chips span:active,
  .value-tags span:active {
    transform: scale(0.94);
  }
}

/* ============================================
   3D SLOJ — animirani prozor + tilt kartice
   Cist CSS 3D, bez eksternih biblioteka
   ============================================ */

/* === ANIMIRANI 3D PROZOR (zamena za staticnu sliku) === */
.window3d {
  --fb: 22px;   /* debljina stok profila */
  --sb: 13px;   /* debljina profila krila */
  --d: 46px;    /* dubina ekstruzije stoka */
  position: relative;
  /* fiksna sirina daje flex koloni intrinsic dimenziju (ranije ju je davala <img>) */
  width: 540px;
  max-width: 100%;
  margin: 0 auto;
  padding: 46px 48px 58px;
  perspective: 1500px;
  perspective-origin: 50% 42%;
}

/* Interakcija: hvatanje i vrtenje modela */
.window3d .w3d-stage { cursor: grab; }
.window3d.is-dragging .w3d-stage { cursor: grabbing; transition: none; }
.window3d.is-dragging .w3d-float { animation-play-state: paused; }

/* Brend glow iza prozora */
.window3d::before {
  content: '';
  position: absolute;
  inset: 14% 8% 14%;
  border-radius: 50%;
  background: radial-gradient(ellipse at 50% 45%, rgba(102, 126, 234, 0.32), rgba(118, 75, 162, 0.14) 45%, transparent 70%);
  filter: blur(46px);
  pointer-events: none;
}

.w3d-stage {
  position: relative;
  width: 100%;
  aspect-ratio: 7 / 6;   /* odgovara kotama 1400 x 1200 mm */
  transform-style: preserve-3d;
  transform: rotateX(var(--wrx, 0deg)) rotateY(var(--wry, 0deg));
  transition: transform 0.5s cubic-bezier(0.22, 1, 0.36, 1);
}

.w3d-float {
  position: absolute;
  inset: 0;
  transform-style: preserve-3d;
  animation: w3dFloat 14s ease-in-out infinite;
  will-change: transform;
}

@keyframes w3dFloat {
  0%   { transform: translateY(0)     rotateY(-16deg) rotateX(3deg); }
  50%  { transform: translateY(-16px) rotateY(14deg)  rotateX(-3deg); }
  100% { transform: translateY(0)     rotateY(-16deg) rotateX(3deg); }
}

.w3d-frame {
  position: absolute;
  inset: 0;
  transform-style: preserve-3d;
  /* blur drzimo ispod slobodnog prostora u .window3d padding-u, inace
     .second_row (overflow:hidden) odsece donju ivicu senke */
  box-shadow: 0 20px 42px rgba(15, 23, 42, 0.28);
}

/* Pogled "napolje" — vidi se kroz staklo */
.w3d-view {
  position: absolute;
  inset: 0;
  overflow: hidden;
  transform: translateZ(calc(-1 * var(--d)));
  background:
    radial-gradient(circle at 74% 20%, rgba(255, 246, 205, 0.95), rgba(255, 246, 205, 0) 38%),
    linear-gradient(180deg, #6fb2f0 0%, #a3d3f7 44%, #d6ecff 63%, #9dbf9a 63%, #6f9c72 100%);
}

.w3d-view::after {
  content: '';
  position: absolute;
  left: -10%;
  right: -10%;
  bottom: 22%;
  height: 38%;
  background: radial-gradient(ellipse at 28% 100%, rgba(86, 128, 96, 0.8), transparent 60%),
              radial-gradient(ellipse at 80% 100%, rgba(70, 112, 88, 0.7), transparent 58%);
}

/* Bocne strane (prava ekstruzija stoka u dubinu) */
.w3d-side {
  position: absolute;
  background: linear-gradient(180deg, #d9dfea, #b9c1d1);
}

.w3d-side-t {
  left: 0; right: 0; bottom: 100%;
  height: var(--d);
  transform-origin: center bottom;
  transform: rotateX(90deg);
  background: linear-gradient(180deg, #f2f5fa, #d5dbe7);
}

.w3d-side-b {
  left: 0; right: 0; top: 100%;
  height: var(--d);
  transform-origin: center top;
  transform: rotateX(-90deg);
  background: linear-gradient(180deg, #aab2c3, #8f98ab);
}

.w3d-side-l {
  top: 0; bottom: 0; right: 100%;
  width: var(--d);
  transform-origin: right center;
  transform: rotateY(-90deg);
  background: linear-gradient(90deg, #c6cdda, #e6eaf2);
}

.w3d-side-r {
  top: 0; bottom: 0; left: 100%;
  width: var(--d);
  transform-origin: left center;
  transform: rotateY(90deg);
  background: linear-gradient(90deg, #dfe4ee, #b4bccc);
}

/* Prednje lice stoka — 4 profila */
.w3d-bar {
  position: absolute;
  background: linear-gradient(160deg, #ffffff 0%, #eef1f7 45%, #dae0eb 100%);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.95),
    inset 0 -1px 0 rgba(15, 23, 42, 0.14),
    0 0 0 1px rgba(15, 23, 42, 0.13);
}

.w3d-bar-t { top: 0; left: 0; right: 0; height: var(--fb); }
.w3d-bar-b { bottom: 0; left: 0; right: 0; height: var(--fb); }
.w3d-bar-l { top: 0; bottom: 0; left: 0; width: var(--fb); }
.w3d-bar-r { top: 0; bottom: 0; right: 0; width: var(--fb); }

/* Zavareni uglovi profila pod 45° (jedan element = 4 ugla) */
.w3d-miter {
  position: absolute;
  inset: calc(-1 * var(--sb));
  pointer-events: none;
  background-repeat: no-repeat;
  background-size: var(--sb) var(--sb);
  background-position: left top, right top, left bottom, right bottom;
  background-image:
    linear-gradient(45deg,  transparent calc(50% - 0.5px), rgba(15, 23, 42, 0.20) 50%, transparent calc(50% + 0.5px)),
    linear-gradient(135deg, transparent calc(50% - 0.5px), rgba(15, 23, 42, 0.20) 50%, transparent calc(50% + 0.5px)),
    linear-gradient(135deg, transparent calc(50% - 0.5px), rgba(15, 23, 42, 0.20) 50%, transparent calc(50% + 0.5px)),
    linear-gradient(45deg,  transparent calc(50% - 0.5px), rgba(15, 23, 42, 0.20) 50%, transparent calc(50% + 0.5px));
}

.w3d-miter-frame {
  inset: 0;
  background-size: var(--fb) var(--fb);
}

/* Sarke */
.w3d-hinge {
  position: absolute;
  right: calc(var(--fb) * 0.22);
  width: calc(var(--fb) * 0.5);
  height: 28px;
  border-radius: 3px;
  background: linear-gradient(180deg, #f4f6fa 0%, #c3cad6 55%, #969fb0 100%);
  box-shadow: 0 2px 6px rgba(15, 23, 42, 0.35), inset 0 1px 0 rgba(255, 255, 255, 0.8);
  transform: translateZ(6px);
  z-index: 4;
}

.w3d-hinge-t { top: 16%; }
.w3d-hinge-b { bottom: 16%; }

/* Krila — wing nosi KIP (rotateX), sash nosi OTKLOP (rotateY) */
.w3d-wing {
  position: absolute;
  top: var(--fb);
  bottom: var(--fb);
  width: calc(50% - var(--fb));
  transform-style: preserve-3d;
}

.w3d-wing-fix { left: var(--fb); }

.w3d-wing-live {
  right: var(--fb);
  transform-origin: center bottom;
  animation: w3dTilt 14s cubic-bezier(0.65, 0, 0.35, 1) infinite;
  will-change: transform;
  z-index: 2;
}

@keyframes w3dTilt {
  0%, 57%   { transform: rotateX(0deg); }
  67%, 79%  { transform: rotateX(-20deg); }
  87%, 100% { transform: rotateX(0deg); }
}

.w3d-sash {
  position: absolute;
  inset: 0;
  /* boji se SAMO profil krila — unutrasnjost ostaje providna da se vidi pogled iza stakla */
  border: var(--sb) solid;
  border-color: #fdfeff #dfe5ef #d2d8e5 #f5f7fb;
  border-radius: 2px;
  background: transparent;
  transform: translateZ(-6px);
  transform-style: preserve-3d;
  box-shadow:
    inset 0 0 0 1px rgba(15, 23, 42, 0.10),
    0 0 0 1px rgba(15, 23, 42, 0.10),
    0 10px 26px rgba(15, 23, 42, 0.18);
}

.w3d-sash-live {
  transform-origin: right center;
  animation: w3dSwing 14s cubic-bezier(0.65, 0, 0.35, 1) infinite;
  will-change: transform;
}

@keyframes w3dSwing {
  0%, 13%   { transform: translateZ(-6px) rotateY(0deg); }
  28%, 42%  { transform: translateZ(-6px) rotateY(44deg); }
  52%, 100% { transform: translateZ(-6px) rotateY(0deg); }
}

/* Staklo */
.w3d-glass {
  position: absolute;
  inset: 0;
  overflow: hidden;
  background:
    linear-gradient(135deg, rgba(206, 234, 255, 0.34) 0%, rgba(120, 176, 232, 0.20) 45%, rgba(226, 244, 255, 0.30) 100%);
  /* staklolajsna + ivica termopan paketa */
  box-shadow:
    inset 0 0 0 3px rgba(255, 255, 255, 0.6),
    inset 0 0 0 4px rgba(15, 23, 42, 0.13),
    inset 0 0 26px rgba(255, 255, 255, 0.22);
}

.w3d-glass::before {
  content: '';
  position: absolute;
  inset: -20%;
  background: linear-gradient(115deg, transparent 42%, rgba(255, 255, 255, 0.28) 45%, rgba(255, 255, 255, 0.28) 50%, transparent 53%);
}

.w3d-shine {
  position: absolute;
  top: -40%;
  left: 0;
  width: 26%;
  height: 190%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.8), transparent);
  filter: blur(2px);
  transform: translateX(-160%) rotate(16deg);
  animation: w3dShine 7s ease-in-out infinite;
}

.w3d-sash-live .w3d-shine { animation-delay: 0.9s; }

@keyframes w3dShine {
  0%, 100% { transform: translateX(-180%) rotate(16deg); }
  55%      { transform: translateX(430%)  rotate(16deg); }
}

/* Kvaka i lever se rotiraju kroz 3 pozicije: zatvoreno → otklop → kip */
@keyframes w3dLever {
  0%, 6%    { transform: rotate(0deg); }
  12%, 49%  { transform: rotate(-90deg); }
  55%, 82%  { transform: rotate(-180deg); }
  88%, 100% { transform: rotate(0deg); }
}

/* Indikator faze */
.w3d-phase {
  position: absolute;
  right: 48px;
  top: 4px;
  height: 26px;
  min-width: 118px;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  pointer-events: none;
}

.w3d-phase .ph {
  position: absolute;
  right: 0;
  padding: 5px 12px;
  border-radius: var(--radius-full);
  background: rgba(102, 126, 234, 0.12);
  border: 1px solid var(--border-accent);
  color: var(--accent-secondary);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  white-space: nowrap;
  opacity: 0;
  animation-duration: 14s;
  animation-timing-function: ease;
  animation-iteration-count: infinite;
}

.w3d-phase .ph-1 { animation-name: w3dPh1; }
.w3d-phase .ph-2 { animation-name: w3dPh2; }
.w3d-phase .ph-3 { animation-name: w3dPh3; }

@keyframes w3dPh1 { 0%, 8% { opacity: 1; } 11%, 89% { opacity: 0; } 93%, 100% { opacity: 1; } }
@keyframes w3dPh2 { 0%, 10% { opacity: 0; } 14%, 48% { opacity: 1; } 52%, 100% { opacity: 0; } }
@keyframes w3dPh3 { 0%, 55% { opacity: 0; } 60%, 84% { opacity: 1; } 88%, 100% { opacity: 0; } }

/* Poziv na interakciju */
.w3d-hint {
  position: absolute;
  left: 48px;
  bottom: 8px;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: var(--text-muted);
  opacity: 0;
  transition: opacity 0.4s ease;
  pointer-events: none;
}

.window3d:hover .w3d-hint { opacity: 1; }
.window3d.is-dragging .w3d-hint { opacity: 0; }

/* na dodir nema hover-a — poziv stalno stoji da se zna da moze da se vrti */
@media (hover: none) {
  .w3d-hint { opacity: 0.75; left: 28px; font-size: 10.5px; }
}

/* Kvaka */
.w3d-handle {
  position: absolute;
  left: -7px;
  top: 50%;
  width: 13px;
  height: 38px;
  margin-top: -19px;
  border-radius: 4px;
  background: linear-gradient(180deg, #f8f9fb 0%, #c9ced8 55%, #98a0af 100%);
  box-shadow: 0 3px 8px rgba(15, 23, 42, 0.35);
  transform: translateZ(8px);
  transform-style: preserve-3d;
  z-index: 3;
}

.w3d-lever {
  position: absolute;
  left: 3px;
  top: 22px;
  width: 7px;
  height: 42px;
  border-radius: 4px;
  background: linear-gradient(180deg, #e6eaf1 0%, #aeb6c4 60%, #868fa0 100%);
  box-shadow: 2px 4px 8px rgba(15, 23, 42, 0.3);
  transform-origin: 50% 4px;
  animation: w3dLever 14s cubic-bezier(0.65, 0, 0.35, 1) infinite;
}

/* CAD skener linija */
.w3d-scan {
  position: absolute;
  /* drzi se unutar prozora — ranije je strcala van i .second_row ju je secao */
  left: 0;
  right: 0;
  top: 0;
  height: 2px;
  border-radius: 2px;
  background: linear-gradient(90deg, transparent, var(--accent-primary), transparent);
  box-shadow: 0 0 12px 2px rgba(102, 126, 234, 0.4);
  transform: translateZ(56px);
  opacity: 0;
  animation: w3dScan 14s ease-in-out infinite;
  pointer-events: none;
}

@keyframes w3dScan {
  0%   { top: -2%;  opacity: 0; }
  4%   { opacity: 0.95; }
  22%  { opacity: 0.95; }
  27%  { top: 102%; opacity: 0; }
  100% { top: 102%; opacity: 0; }
}

/* Kote (blueprint) */
.w3d-dim {
  position: absolute;
  transform: translateZ(50px);
  font-family: var(--font-main);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.12em;
  color: var(--accent-primary);
  pointer-events: none;
}

.w3d-dim::before,
.w3d-dim::after {
  content: '';
  position: absolute;
  background: rgba(102, 126, 234, 0.65);
}

.w3d-dim b {
  position: absolute;
  background: var(--bg-primary);
  padding: 0 8px;
  white-space: nowrap;
  /* <b> je po podrazumevanom stilu pregledaca "bolder", sto uz nasledjenih
     700 sa .w3d-dim ispadne 900 - a Inter 900 se nigde ne ucitava, pa je
     pregledac ionako crtao 800. Zapisano izricito, da se zbog dve sicusne
     kote ne bi skidala jos dva fajla fonta. */
  font-weight: 800;
}

.w3d-dim-w {
  left: 0;
  right: 0;
  bottom: -34px;
  height: 0;
  border-top: 1px dashed rgba(102, 126, 234, 0.6);
}

.w3d-dim-w::before { left: 0; top: -6px; width: 1px; height: 13px; }
.w3d-dim-w::after  { right: 0; top: -6px; width: 1px; height: 13px; }
.w3d-dim-w b { left: 50%; top: 0; transform: translate(-50%, -50%); }

.w3d-dim-h {
  top: 0;
  bottom: 0;
  right: -32px;
  width: 0;
  border-left: 1px dashed rgba(102, 126, 234, 0.6);
}

.w3d-dim-h::before { top: 0; left: -6px; height: 1px; width: 13px; }
.w3d-dim-h::after  { bottom: 0; left: -6px; height: 1px; width: 13px; }
.w3d-dim-h b { top: 50%; left: 0; transform: translate(-50%, -50%) rotate(90deg); }

/* Senka na podu */
.w3d-ground {
  position: absolute;
  left: 16%;
  right: 16%;
  bottom: 30px;
  height: 26px;
  border-radius: 50%;
  background: radial-gradient(ellipse at center, rgba(15, 23, 42, 0.35), transparent 70%);
  filter: blur(10px);
  animation: w3dGround 14s ease-in-out infinite;
  pointer-events: none;
}

@keyframes w3dGround {
  0%, 100% { transform: scale(1);    opacity: 0.55; }
  50%      { transform: scale(0.88); opacity: 0.38; }
}

/* Badge */
.w3d-tag {
  position: absolute;
  top: 4px;
  left: 48px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  border-radius: var(--radius-full);
  background: var(--bg-glass);
  backdrop-filter: blur(10px);
  border: 1px solid var(--border-accent);
  color: var(--accent-secondary);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.04em;
  box-shadow: var(--shadow-sm);
  z-index: 4;
}

.w3d-tag i {
  color: var(--accent-primary);
  animation: w3dPulse 2.4s ease-in-out infinite;
}

@keyframes w3dPulse {
  0%, 100% { opacity: 1;   transform: scale(1); }
  50%      { opacity: 0.5; transform: scale(0.85); }
}

@media (max-width: 900px) {
  .window3d {
    --fb: 17px;
    --sb: 10px;
    --d: 34px;
    padding: 42px 38px 50px;
    width: 420px;
  }
  .w3d-handle { height: 30px; width: 11px; margin-top: -15px; left: -6px; }
  .w3d-lever { height: 34px; width: 6px; top: 18px; }
}

/* Telefon: prozor ide preko cele sirine, a bedzevi se smanjuju —
   na 390px su se "3D prikaz" i oznaka faze preklapali. */
@media (max-width: 600px) {
  /* leva kolona je flex stavka bez sopstvene sirine — zato prozor mora
     eksplicitnu px sirinu, "width:100%" ga urusi na min-content */
  .second_row .left_side { max-width: 100%; }

  .window3d {
    --fb: 15px;
    --sb: 9px;
    --d: 28px;
    width: 380px;
    max-width: 100%;
    padding: 38px 26px 44px;
  }

  .w3d-tag {
    left: 26px;
    font-size: 10.5px;
    padding: 5px 11px;
    gap: 6px;
  }

  .w3d-phase {
    right: 26px;
    min-width: 0;
    height: 22px;
  }

  .w3d-phase .ph {
    font-size: 9.5px;
    padding: 4px 9px;
    letter-spacing: 0.05em;
  }

  .w3d-dim-w { bottom: -26px; }
  .w3d-dim-h { right: -24px; }
  .w3d-dim { font-size: 10px; }
  .w3d-dim b { padding: 0 6px; }
  .w3d-handle { height: 26px; width: 10px; margin-top: -13px; left: -5px; }
  .w3d-lever { height: 30px; width: 6px; top: 16px; }
  .w3d-hinge { height: 22px; }
}

/* === 3D DUBINSKI SLOJEVI OKO "IMPACT" SLIKE === */
.image-3d-wrapper { transform-style: preserve-3d; }

.depth-layer {
  position: absolute;
  inset: 0;
  border-radius: var(--radius-lg);
  border: 1px solid rgba(102, 126, 234, 0.35);
  background: linear-gradient(135deg, rgba(102, 126, 234, 0.10), rgba(118, 75, 162, 0.06));
  backdrop-filter: blur(2px);
  pointer-events: none;
}

/* slojevi idu ULEVO-dole: udesno bi gurali sadrzaj van kontejnera */
.depth-layer.l1 { transform: translateZ(-55px) translate(-24px, 20px) scale(0.97); opacity: 0.75; }
.depth-layer.l2 { transform: translateZ(-110px) translate(-48px, 40px) scale(0.94); opacity: 0.45; }

.impact-3d:hover .depth-layer.l1 { transform: translateZ(-80px) translate(-34px, 28px) scale(0.97); }
.impact-3d:hover .depth-layer.l2 { transform: translateZ(-150px) translate(-66px, 56px) scale(0.94); }

.depth-layer { transition: transform 0.8s cubic-bezier(0.22, 1, 0.36, 1); }

/* === TILT 3D KARTICE === */
.tilt3d { transform-style: preserve-3d; }
.tilt3d:hover { will-change: transform; }

.bento-item,
.feature-card,
.testimonial-card,
.pricing-card,
.glass-image-holder,
.cta-feature-item {
  transform:
    perspective(1100px)
    rotateX(var(--rx, 0deg))
    rotateY(var(--ry, 0deg))
    translateY(calc(var(--rvY, 0px) + var(--ty, 0px)))
    scale(var(--sc, 1));
}

/* Odsjaj koji prati kursor */
.tilt3d .tilt-glare {
  position: absolute;
  inset: 0;
  border-radius: inherit;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.35s ease;
  background: radial-gradient(circle 220px at var(--gx, 50%) var(--gy, 50%),
              rgba(255, 255, 255, 0.55), rgba(255, 255, 255, 0) 60%);
  z-index: 5;
}

.tilt3d:hover .tilt-glare { opacity: 1; }

.bento-item .tilt-glare {
  background: radial-gradient(circle 260px at var(--gx, 50%) var(--gy, 50%),
              rgba(255, 255, 255, 0.28), rgba(102, 126, 234, 0.12) 45%, transparent 70%);
  mix-blend-mode: screen;
  z-index: 3;
}

/* Ikonice koje "izlaze" iz kartice */
.feature-card.tilt3d .icon-box,
.cta-feature-item.tilt3d .cta-icon { transform: translateZ(20px); }

.feature-card.tilt3d:hover .icon-box { transform: translateZ(30px) scale(1.08) rotate(3deg); }
.cta-feature-item.tilt3d:hover .cta-icon { transform: translateZ(30px) scale(1.08); }

.feature-card.tilt3d h3,
.feature-card.tilt3d p { transform: translateZ(10px); }

/* Zigzag slike — dubinski parallax */
.glass-image-holder.tilt3d { transform-style: preserve-3d; }
.glass-image-holder.tilt3d img { transition: transform 0.5s cubic-bezier(0.22, 1, 0.36, 1); }
.glass-image-holder.tilt3d:not(.image-slider):hover img { transform: translateZ(45px) scale(1.03); }

/* Ne diramo 3D na dodirnim uredjajima / smanjena animacija */
@media (hover: none), (prefers-reduced-motion: reduce) {
  .tilt3d .tilt-glare { display: none; }
  .feature-card.tilt3d .icon-box,
  .cta-feature-item.tilt3d .cta-icon { transform: none; }
}

@media (prefers-reduced-motion: reduce) {
  .w3d-float,
  .w3d-wing-live,
  .w3d-sash-live,
  .w3d-lever,
  .w3d-shine,
  .w3d-scan,
  .w3d-ground,
  .w3d-tag i,
  .w3d-phase .ph {
    animation: none !important;
  }
  .w3d-phase .ph-1 { opacity: 1; }
  .w3d-float { transform: rotateY(-10deg) rotateX(2deg); }
  .w3d-scan { opacity: 0; }
  .depth-layer { transition: none; }
}
