/* ===== Tokeni ===== */
:root {
  --bg: #121A3A;
  --bg-alt: #172046;
  --surface: #1D2752;
  --line: #2E3A73;
  --text: #EEF0FB;
  --muted: #A6ADD6;
  --amber: #FFB547;
  --amber-hover: #FFC56E;
  --on-amber: #241500;

  --font-display: "Unbounded", system-ui, sans-serif;
  --font-body: "Manrope", system-ui, sans-serif;

  --wrap: 1180px;
  --radius: 14px;
  --ease-out: cubic-bezier(.2, .8, .2, 1);
  --ease-spring: cubic-bezier(.34, 1.56, .64, 1);
  color-scheme: dark;
}

/* ===== Osnova ===== */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 88px; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; }
a { color: inherit; }
h1, h2, h3 { font-family: var(--font-display); font-weight: 600; line-height: 1.12; margin: 0; letter-spacing: -.02em; }
h1 { font-size: clamp(2.2rem, 4.6vw, 3.9rem); }
h2 { font-size: clamp(1.8rem, 3.2vw, 2.7rem); }
h3 { font-size: 1.15rem; letter-spacing: -.01em; }
p { margin: 0; }
.muted { color: var(--muted); }
.lead { font-size: 1.15rem; color: var(--muted); max-width: 34em; }

.wrap { width: min(100% - 32px, var(--wrap)); margin-inline: auto; }

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

.skip {
  position: absolute; left: 16px; top: -60px; z-index: 100;
  background: var(--amber); color: var(--on-amber); padding: 10px 16px; border-radius: 8px; font-weight: 700;
}
.skip:focus { top: 12px; }

/* ===== Dugmad ===== */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .4em;
  background: var(--amber); color: var(--on-amber);
  font-weight: 700; font-size: 1rem; text-decoration: none;
  padding: 14px 22px; border-radius: 12px; border: 1.5px solid var(--amber);
  transition: background .2s, border-color .2s, transform .2s var(--ease-out);
}
.btn:hover { background: var(--amber-hover); border-color: var(--amber-hover); }
.btn:active { transform: translateY(1px); }
.btn-ghost { background: transparent; color: var(--text); border-color: var(--line); }
.btn-ghost:hover { background: var(--surface); border-color: var(--muted); }
.btn-small { padding: 9px 16px; font-size: .92rem; }

/* ===== Logo ===== */
.logo {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--font-display); font-weight: 600; font-size: 1.2rem; text-decoration: none; letter-spacing: -.01em;
}
.logo-mark { display: grid; grid-template-columns: repeat(2, 9px); gap: 3px; }
.logo-mark i { width: 9px; height: 9px; border-radius: 2px; background: var(--text); }
.logo-mark i:last-child { background: var(--amber); }
.logo:hover .logo-mark i:last-child { animation: hop .5s var(--ease-spring); }
@keyframes hop { 50% { transform: translate(-12px, -12px); } }
.logo-small { font-size: 1rem; }

/* ===== Header ===== */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: color-mix(in srgb, var(--bg) 82%, transparent);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid transparent;
  transition: border-color .3s;
}
.site-header.scrolled { border-bottom-color: var(--line); }
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 72px; }
.nav { display: flex; align-items: center; gap: 28px; }
.nav a:not(.btn) { text-decoration: none; color: var(--muted); font-weight: 600; font-size: .95rem; transition: color .2s; }
.nav a:not(.btn):hover { color: var(--text); }

/* ===== Hero ===== */
.hero { padding: 64px 0 96px; }
.hero-grid { display: grid; grid-template-columns: 5fr 6fr; gap: 56px; align-items: center; }
.hero-copy .lead { margin-top: 22px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }
.hero-facts { list-style: none; padding: 0; margin: 40px 0 0; display: grid; gap: 10px; color: var(--muted); font-size: .97rem; }
.hero-facts li { position: relative; padding-left: 21px; }
.hero-facts li::before { content: ""; position: absolute; left: 0; top: .6em; width: 9px; height: 9px; border-radius: 2px; background: var(--amber); }
.hero-facts strong { color: var(--text); font-weight: 700; }

/* ===== Animacija u hero sekciji ===== */
.stage-wrap { position: relative; }
.stage { position: relative; }
.browser {
  container-type: inline-size;
  background: #0E1430;
  border: 1px solid var(--line);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 40px 80px -30px rgba(3, 6, 25, .8);
  opacity: 0; transform: translateY(16px) scale(.98);
  transition: opacity .6s var(--ease-out), transform .6s var(--ease-out);
}
.s-frame .browser { opacity: 1; transform: none; }
.browser-bar { display: flex; align-items: center; gap: 14px; padding: 12px 16px; border-bottom: 1px solid var(--line); }
.dots { display: flex; gap: 6px; }
.dots i { width: 10px; height: 10px; border-radius: 50%; background: var(--line); }
.url {
  flex: 1; background: var(--bg-alt); border-radius: 8px; padding: 5px 12px;
  font-size: .82rem; color: var(--muted); min-height: 30px; display: flex; align-items: center;
}
.caret { width: 1.5px; height: 14px; background: var(--amber); margin-left: 1px; animation: blink 1s steps(1) infinite; }
.s-color .caret { opacity: 0; animation: none; }
@keyframes blink { 50% { opacity: 0; } }

/* mini sajt cvećare: sve veličine su u cqi da bi se skalirao sa okvirom */
.mini {
  --pink: #E5487B;
  --green: #2E7A4E;
  --cocoa: #3A2A28;
  background: #E7E9F4;
  padding: 3.4cqi 4.4cqi 4.4cqi;
  font-family: var(--font-body);
  color: var(--cocoa);
  transition: background .7s ease;
}
.s-color .mini { background: #FFF4EC; }
.sk { background: #D2D6E8; border-radius: 1cqi; transition: background .6s ease, opacity .5s ease, color .5s ease; }
.mini-nav { display: flex; justify-content: space-between; align-items: center; }
.mini-logo { display: inline-block; min-width: 13cqi; height: 4.2cqi; }
.mini-logo b { display: block; font-family: var(--font-display); font-size: 3.6cqi; line-height: 4.2cqi; color: var(--pink); opacity: 0; transition: opacity .5s .2s; }
.s-color .mini-logo { background: transparent; }
.s-color .mini-logo b { opacity: 1; }
.mini-links { display: flex; gap: 2.4cqi; }
.mini-links i { display: block; width: 7cqi; height: 1.5cqi; }
.s-color .mini-links i { background: #D9C3B8; }

.mini-hero { display: grid; grid-template-columns: 1.15fr 1fr; gap: 4cqi; align-items: center; margin-top: 5.5cqi; }
.mini-h i { display: block; height: 3.6cqi; margin-bottom: 1.6cqi; }
.mini-h i.short { width: 60%; }
.s-type .sk-lines { display: none; }
.mini-h-real {
  display: none;
  font-family: var(--font-display); font-weight: 600; font-size: 4cqi; line-height: 1.15; letter-spacing: -.02em;
  min-height: calc(4cqi * 1.15 * 3);
}
.s-type .mini-h-real { display: block; }
.mini-h-real::after { content: ""; display: inline-block; width: .5cqi; height: 3.6cqi; background: var(--pink); margin-left: .4cqi; vertical-align: -.4cqi; animation: blink .8s steps(1) infinite; }
.s-btn .mini-h-real::after { display: none; }
.mini-p { margin-top: 2.6cqi; }
.mini-p i { display: block; height: 1.5cqi; margin-bottom: 1.3cqi; }
.mini-p i:last-child { width: 75%; }
.s-color .mini-p i { background: #E6D3C9; }
.mini-btn {
  display: inline-block; margin-top: 2.4cqi;
  background: var(--pink); color: #fff; font-weight: 700; font-size: 2.1cqi;
  padding: 1.6cqi 3.2cqi; border-radius: 99px;
  opacity: 0; transform: scale(.4);
  transition: opacity .3s, transform .5s var(--ease-spring), box-shadow .3s;
}
.s-btn .mini-btn { opacity: 1; transform: scale(1); }
.s-click .mini-btn { transform: scale(.92); box-shadow: 0 0 0 1.4cqi rgba(229, 72, 123, .25); }

.mini-img { position: relative; aspect-ratio: 1; border-radius: 50% 50% 3cqi 3cqi; overflow: hidden; }
.s-bloom .mini-img { background: #F8D6DF; }
.petal {
  position: absolute; width: var(--s, 13cqi); height: var(--s, 13cqi); border-radius: 50%;
  background: radial-gradient(circle, #FFE1A1 0 15%, transparent 16%), conic-gradient(from 20deg, var(--c), color-mix(in srgb, var(--c) 70%, #fff), var(--c), color-mix(in srgb, var(--c) 70%, #fff), var(--c));
  transform: scale(0) rotate(-40deg);
  transition: transform .7s var(--ease-spring);
}
.p1 { --c: #E5487B; left: 37%; top: 16%; --s: 15cqi; z-index: 2; }
.p2 { --c: #F27BA0; left: 14%; top: 30%; transition-delay: .08s; }
.p3 { --c: #FFB547; left: 60%; top: 30%; --s: 12cqi; transition-delay: .16s; }
.p4 { --c: #C9356A; left: 22%; top: 8%; --s: 10cqi; transition-delay: .24s; }
.p5 { --c: #F27BA0; left: 58%; top: 6%; --s: 10cqi; transition-delay: .32s; }
.stem {
  position: absolute; left: 50%; bottom: 0; width: 1.4cqi; height: 0; margin-left: -.7cqi;
  background: var(--green); border-radius: 1cqi; transition: height .6s var(--ease-out);
}
.s-bloom .petal { transform: scale(1) rotate(0); }
.s-bloom .stem { height: 42%; }

.mini-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2.4cqi; margin-top: 5cqi; }
.mini-cards span { height: 9cqi; display: flex; align-items: flex-end; padding: 1.6cqi 2cqi; }
.mini-cards em { font-style: normal; font-weight: 700; font-size: 2cqi; opacity: 0; transition: opacity .4s; }
.s-color .mini-cards span { background: #fff; box-shadow: inset 0 0 0 1px #F0E2DA; }
.s-color .mini-cards span:nth-child(2) { transition-delay: .1s; }
.s-color .mini-cards span:nth-child(3) { transition-delay: .2s; }
.s-btn .mini-cards em { opacity: 1; }
.s-btn .mini-cards span:first-child { background: linear-gradient(transparent 0 40%, #fff 40%), radial-gradient(circle at 50% 30%, #F27BA0 0 22%, #FBE3EA 23%); }
.s-btn .mini-cards span:nth-child(2) { background: linear-gradient(transparent 0 40%, #fff 40%), radial-gradient(circle at 50% 30%, #FFB547 0 22%, #FFF0D6 23%); }
.s-btn .mini-cards span:nth-child(3) { background: linear-gradient(transparent 0 40%, #fff 40%), radial-gradient(circle at 50% 30%, #2E7A4E 0 22%, #DCEFE3 23%); }

/* kursor i obaveštenje */
.cursor {
  position: absolute; left: 0; top: 0; z-index: 3; pointer-events: none;
  transform: translate(var(--cx, 110%), var(--cy, 120%));
  opacity: 0;
  transition: transform 1s cubic-bezier(.55, 0, .25, 1), opacity .3s;
  filter: drop-shadow(0 4px 6px rgba(0, 0, 0, .35));
}
.s-cursor .cursor { opacity: 1; }
.s-click .cursor svg { transform: scale(.85); transition: transform .15s; }
.toast {
  position: absolute; right: -14px; top: 64px; z-index: 4;
  display: flex; gap: 12px; align-items: center;
  background: var(--text); color: var(--bg);
  padding: 12px 16px; border-radius: 14px; font-size: .88rem; line-height: 1.35;
  box-shadow: 0 20px 40px -12px rgba(0, 0, 0, .55);
  opacity: 0; transform: translateY(-14px) scale(.96);
  transition: opacity .4s, transform .6s var(--ease-spring);
}
.toast strong { display: block; font-size: .92rem; }
.toast-icon { font-size: 1.4rem; }
.s-toast .toast { opacity: 1; transform: none; }

.replay {
  margin-top: 16px; background: none; border: 0; color: var(--muted); font: inherit; font-size: .9rem; font-weight: 600;
  cursor: pointer; padding: 6px 2px; opacity: 0; transition: opacity .4s, color .2s;
  text-decoration: underline; text-underline-offset: 4px; text-decoration-color: var(--line);
}
.replay.show { opacity: 1; }
.replay:hover { color: var(--text); }

/* ===== Sekcije ===== */
.section { padding: 104px 0; }
.section-alt { background: var(--bg-alt); }
.section-head { max-width: 640px; margin-bottom: 48px; }
.section-head p { margin-top: 14px; }

.split { display: grid; grid-template-columns: 4fr 7fr; gap: 64px; align-items: start; }
.split-head { position: sticky; top: 112px; }
.split-head p { margin-top: 14px; }

/* usluge */
.services { margin: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 0 48px; }
.services div { padding: 26px 0; border-top: 1px solid var(--line); }
.services dt { font-family: var(--font-display); font-weight: 600; font-size: 1.05rem; margin-bottom: 8px; }
.services dd { margin: 0; color: var(--muted); }

/* radovi */
.works { display: grid; grid-template-columns: 1fr 1fr; gap: 40px 32px; }
.work { margin: 0; }
.shot {
  display: block; width: 100%; padding: 0; border: 1px solid var(--line); border-radius: var(--radius);
  background: #0E1430; overflow: hidden; cursor: zoom-in; text-align: left;
  transition: border-color .3s, transform .4s var(--ease-out);
}
.shot:hover, .shot:focus-visible { border-color: var(--muted); }
.shot-bar { display: flex; gap: 6px; padding: 10px 14px; border-bottom: 1px solid var(--line); }
.shot-bar i { width: 8px; height: 8px; border-radius: 50%; background: var(--line); }
.shot-view { display: block; position: relative; aspect-ratio: 16 / 11; overflow: hidden; }
.shot-view img {
  position: absolute; left: 0; top: 0; width: 100%; height: auto;
  transition: top 5s cubic-bezier(.45, 0, .55, 1), transform 5s cubic-bezier(.45, 0, .55, 1);
}
.shot:hover .shot-view img, .shot:focus-visible .shot-view img { top: 100%; transform: translateY(-100%); }
.work figcaption { display: flex; justify-content: space-between; gap: 16px; margin-top: 14px; flex-wrap: wrap; }
.work figcaption strong { font-family: var(--font-display); font-weight: 600; font-size: 1rem; }
.work figcaption span { color: var(--muted); font-size: .95rem; }

/* proces */
.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 32px; position: relative; }
.steps::before {
  content: ""; position: absolute; left: 22px; right: 22px; top: 22px; height: 2px;
  background: var(--amber); transform-origin: left; transform: scaleX(0);
  transition: transform 1.6s var(--ease-out);
}
.steps.in-view::before { transform: scaleX(1); }
.steps li { position: relative; }
.step-num {
  position: relative; z-index: 1;
  display: grid; place-items: center; width: 46px; height: 46px; border-radius: 12px;
  background: var(--bg); border: 2px solid var(--line); color: var(--muted);
  font-family: var(--font-display); font-weight: 600; margin-bottom: 22px;
  transition: background .4s, border-color .4s, color .4s;
}
.steps.in-view .step-num { background: var(--amber); border-color: var(--amber); color: var(--on-amber); }
.steps.in-view li:nth-child(2) .step-num { transition-delay: .4s; }
.steps.in-view li:nth-child(3) .step-num { transition-delay: .8s; }
.steps.in-view li:nth-child(4) .step-num { transition-delay: 1.2s; }
.steps h3 { margin-bottom: 10px; }
.steps p { color: var(--muted); font-size: .97rem; }

/* paketi */
.plans { display: grid; grid-template-columns: 1fr 1.08fr 1fr; gap: 20px; align-items: stretch; }
.plan {
  display: flex; flex-direction: column;
  border: 1px solid var(--line); border-radius: 18px; padding: 32px 28px;
}
.plan h3 { font-size: 1.4rem; }
.plan-for { color: var(--muted); margin-top: 8px; }
.plan ul { list-style: none; padding: 0; margin: 24px 0 32px; display: grid; gap: 12px; flex: 1; }
.plan li { padding-left: 26px; position: relative; font-size: .97rem; }
.plan li::before {
  content: ""; position: absolute; left: 0; top: .5em; width: 12px; height: 7px;
  border-left: 2px solid var(--amber); border-bottom: 2px solid var(--amber); transform: rotate(-45deg);
}
.plan .btn { align-self: flex-start; }
.plan-main { background: var(--surface); border-color: var(--amber); padding-top: 28px; }
.plan-tag { color: var(--amber); font-weight: 700; font-size: .9rem; margin-bottom: 8px; }

/* pitanja */
.faq details { border-top: 1px solid var(--line); }
.faq details:last-child { border-bottom: 1px solid var(--line); }
.faq summary {
  list-style: none; cursor: pointer; padding: 22px 40px 22px 0; position: relative;
  font-weight: 700; font-size: 1.05rem;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: ""; position: absolute; right: 6px; top: 50%; width: 10px; height: 10px; margin-top: -7px;
  border-right: 2px solid var(--amber); border-bottom: 2px solid var(--amber);
  transform: rotate(45deg); transition: transform .3s var(--ease-out);
}
.faq details[open] summary::after { transform: rotate(-135deg); margin-top: -2px; }
.faq details p { color: var(--muted); padding: 0 40px 24px 0; max-width: 40em; }
.faq details[open] p { animation: reveal .35s var(--ease-out); }
@keyframes reveal { from { opacity: 0; transform: translateY(-6px); } }

/* kontakt */
.contact { padding: 112px 0 120px; border-top: 1px solid var(--line); }
.contact h2 { font-size: clamp(2rem, 4.4vw, 3.6rem); max-width: 14em; }
.contact .lead { margin-top: 20px; }
.contact-grid { margin-top: 48px; display: grid; gap: 28px; }
.contact-big {
  font-family: var(--font-display); font-weight: 600; font-size: clamp(1.3rem, 4.2vw, 2.6rem);
  text-decoration: none; color: var(--amber); width: fit-content; max-width: 100%; overflow-wrap: anywhere;
  background: linear-gradient(var(--amber), var(--amber)) left bottom / 0 2px no-repeat;
  padding-bottom: 6px; transition: background-size .4s var(--ease-out);
}
.contact-big:hover { background-size: 100% 2px; }
.contact-links { display: flex; flex-wrap: wrap; gap: 12px; }

/* footer */
.site-footer { border-top: 1px solid var(--line); padding: 28px 0; color: var(--muted); font-size: .92rem; }
.footer-inner { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; }
.site-footer .logo { color: var(--text); }

/* lightbox */
.lightbox {
  width: min(100% - 32px, 1000px); max-height: calc(100vh - 48px); padding: 0;
  background: var(--bg-alt); color: var(--text); border: 1px solid var(--line); border-radius: 16px; overflow: hidden;
}
.lightbox::backdrop { background: rgba(6, 9, 28, .78); backdrop-filter: blur(4px); }
.lightbox[open] { display: flex; flex-direction: column; animation: pop .35s var(--ease-out); }
@keyframes pop { from { opacity: 0; transform: scale(.96); } }
.lightbox-head { display: flex; justify-content: space-between; align-items: center; padding: 12px 12px 12px 20px; border-bottom: 1px solid var(--line); font-weight: 700; }
.lightbox-close { background: none; border: 1px solid var(--line); color: var(--text); width: 38px; height: 38px; border-radius: 10px; cursor: pointer; font-size: 1rem; }
.lightbox-close:hover { background: var(--surface); }
.lightbox-body { overflow-y: auto; }
.lightbox-body img { width: 100%; }

/* ===== Responsive ===== */
@media (max-width: 960px) {
  .hero { padding-top: 40px; }
  .hero-grid { grid-template-columns: 1fr; gap: 48px; }
  .split { grid-template-columns: 1fr; gap: 32px; }
  .split-head { position: static; }
  .steps { grid-template-columns: 1fr 1fr; gap: 40px 32px; }
  .steps::before { display: none; }
  .plans { grid-template-columns: 1fr; max-width: 560px; }
}
@media (max-width: 720px) {
  .nav a:not(.btn) { display: none; }
  .section { padding: 72px 0; }
  .services { grid-template-columns: 1fr; }
  .works { grid-template-columns: 1fr; }
  .toast { right: 8px; top: 52px; font-size: .8rem; }
  .contact { padding: 80px 0; }
}
@media (max-width: 520px) {
  .steps { grid-template-columns: 1fr; }
  .hero-actions .btn { width: 100%; }
}

/* ===== Smanjeno kretanje ===== */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; transition-delay: 0s !important; }
  .shot:hover .shot-view img, .shot:focus-visible .shot-view img { top: 0; transform: none; }
}
