/* ==========================================================================
   AI Budućnost — naslovna kao funnel (11.11.2026). Jedna strana, jedno dugme.
   Samostalan fajl: ne nasleđuje styles.css / theme-hugency.css (arhivirani).
   Isti tokeni i font kao /poziv (css/poziv.css) i kao oglasi: tamno + narandžasta.
   Mobile-first; pravila bez media upita važe za telefon.
   ========================================================================== */
@font-face { font-family: 'Onest'; src: url('../fonts/onest-var-latin-ext.woff2') format('woff2'); font-weight: 200 900; font-display: swap; unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: 'Onest'; src: url('../fonts/onest-var-latin.woff2') format('woff2'); font-weight: 200 900; font-display: swap; unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }

:root {
  --bg: #050505; --bg-2: #0d0d10; --bg-3: #17171c;
  --text: #f4f4f0; --soft: #d6d6cf; --dim: #9c9c94;
  --rule: rgba(255,255,255,.1); --rule-2: rgba(255,255,255,.18);
  --acc: #FF7A3D; --acc-2: #E55A1F;
  --grad: linear-gradient(135deg, #FF8A4F, #E55A1F 60%, #C2491A);
  --bone: #f1efe9; --ink: #121214;
  --f: 'Onest', -apple-system, system-ui, 'Segoe UI', sans-serif;
  --w: 1120px; --g: 18px;
  --ease: cubic-bezier(.2,.7,.2,1);
}
*, *::before, *::after { box-sizing: border-box; }
html { background: var(--bg); color: var(--text); font: 400 16px/1.55 var(--f); -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 84px; }
body { margin: 0; background: var(--bg); overflow-x: hidden; -webkit-font-smoothing: antialiased; }
img, video { display: block; max-width: 100%; }
a { color: inherit; }
button, input, select { font: inherit; color: inherit; }
h1, h2, h3, p, ol, ul { margin: 0; }
ol, ul { padding: 0; list-style: none; }
::selection { background: var(--acc-2); color: #fff; }
:focus-visible { outline: 2px solid var(--acc); outline-offset: 3px; border-radius: 6px; }
[hidden] { display: none !important; }
.wrap { width: min(100% - 2 * var(--g), var(--w)); margin-inline: auto; }
.gt { background-image: var(--grad); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; color: transparent; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }

/* ---------- dugme ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 54px; padding: 15px 26px; border: 0; border-radius: 100px; background: var(--grad); color: #fff; font-weight: 650; font-size: 16.5px; letter-spacing: -.01em; line-height: 1.15; text-decoration: none; text-align: center; cursor: pointer;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.28), 0 14px 32px -12px rgba(229,90,31,.7); transition: transform .18s var(--ease), filter .18s; }
.btn:hover { transform: translateY(-1px); filter: brightness(1.07); }
.btn:active { transform: translateY(0); }
.btn--sm { min-height: 40px; padding: 9px 16px; font-size: 14px; box-shadow: none; }
.btn--full { width: 100%; }
.btn[disabled] { opacity: .6; cursor: default; transform: none; }

/* ---------- vrh ---------- */
.top { padding: 16px 0 0; }
.top__in { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.brand { font-weight: 750; font-size: 17px; letter-spacing: -.02em; text-transform: uppercase; text-decoration: none; }
.top .btn { display: none; }

/* ---------- heroj ---------- */
.hero { position: relative; padding: 26px 0 44px; overflow: clip; }
.hero::before { content: ''; position: absolute; z-index: -1; width: 760px; height: 760px; right: -260px; top: -200px; border-radius: 50%; background: radial-gradient(closest-side, rgba(229,90,31,.2), transparent 70%); pointer-events: none; }
.hero__in { display: grid; gap: 26px; }
.eyebrow { display: inline-block; margin-bottom: 16px; padding: 6px 12px; border-radius: 100px; border: 1px solid rgba(255,122,61,.4); font-size: 13px; font-weight: 500; color: #ffd4bd; }
.hero .eyebrow { display: none; }   /* telefon: svaki red manje = video ranije na ekranu */
.hero h1 { font-size: clamp(40px, 11.6vw, 54px); font-weight: 750; letter-spacing: -.05em; line-height: .98; }
.hero h1 span { display: block; }
.hero__sub { margin-top: 16px; max-width: 30em; font-size: 17px; font-weight: 300; color: var(--soft); }
.hero__sub b { font-weight: 500; color: var(--text); }
.hero__act { display: flex; align-items: stretch; gap: 10px; margin-top: 22px; }
.hero__act .btn { flex: 1 1 auto; padding-inline: 16px; }
.price { flex: none; display: inline-flex; flex-direction: column; justify-content: center; min-height: 54px; padding: 6px 15px; border-radius: 16px; background: var(--bone); color: var(--ink); line-height: 1.1; }
.price small { font-size: 11.5px; font-weight: 500; letter-spacing: .02em; color: #55554f; }
.price b { font-size: 21px; font-weight: 750; letter-spacing: -.03em; white-space: nowrap; }
.hero__note { margin-top: 14px; font-size: 14px; color: var(--dim); }
.hero__brands { padding-top: 16px; border-top: 1px solid var(--rule); font-size: 13.5px; color: var(--dim); }
.hero__brands b { color: var(--soft); font-weight: 500; }
.phone { position: relative; justify-self: center; width: min(76vw, 300px); aspect-ratio: 9 / 16; padding: 7px; border-radius: 38px; background: #0e0e11; border: 1px solid rgba(255,255,255,.16); box-shadow: 0 40px 90px -36px rgba(229,90,31,.75), 0 0 0 1px rgba(0,0,0,.6); }
.phone video { width: 100%; height: 100%; object-fit: cover; border-radius: 31px; background: #111; }

/* ---------- sekcije ---------- */
.sec { padding: 56px 0; border-top: 1px solid var(--rule); }
.sec h2 { max-width: 16em; font-size: clamp(29px, 7.6vw, 46px); font-weight: 700; letter-spacing: -.04em; line-height: 1.04; }
.sec__lead { margin-top: 12px; max-width: 34em; font-size: 16.5px; font-weight: 300; color: var(--soft); }
.sec__cta { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 18px; margin-top: 30px; }
.sec__cta p { font-size: 15px; color: var(--soft); }
.sec__cta .btn { flex: 1 1 240px; max-width: 340px; }

/* ---------- galerija ---------- */
.gal { padding-top: 48px; }
.chips { display: flex; gap: 8px; margin: 22px calc(-1 * var(--g)) 0; padding: 2px var(--g) 6px; overflow-x: auto; scrollbar-width: none; -webkit-overflow-scrolling: touch; }
.chips::-webkit-scrollbar { display: none; }
.chip { flex: none; padding: 9px 15px; border-radius: 100px; border: 1px solid var(--rule-2); background: transparent; font-size: 14.5px; font-weight: 500; color: var(--soft); cursor: pointer; transition: background .15s, color .15s, border-color .15s; }
.chip:hover { border-color: rgba(255,255,255,.4); color: #fff; }
.chip[aria-pressed="true"] { background: var(--bone); border-color: var(--bone); color: var(--ink); }
/* align-items:start — kartica je <button>, a rastegnut button centrira sadržaj pa videi u redu ne bi stajali u ravni */
.grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px 12px; align-items: start; margin-top: 22px; }
.grid--w { grid-template-columns: minmax(0, 1fr); }
.gal__sub { margin-top: 40px; font-size: 13px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: var(--dim); }
.gal__sub + .grid { margin-top: 14px; }
.card { display: block; width: 100%; padding: 0; border: 0; background: none; text-align: left; cursor: pointer; }
.card__v { position: relative; display: block; aspect-ratio: 9 / 16; border-radius: 16px; overflow: hidden; background: var(--bg-3); border: 1px solid var(--rule); transition: border-color .2s, transform .25s var(--ease); }
.card--w .card__v { aspect-ratio: 16 / 9; }
.card:hover .card__v { border-color: rgba(255,122,61,.6); transform: translateY(-2px); }
.card__v img, .card__v video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.card__v video { opacity: 0; transition: opacity .35s; }
.card__v video.is-on { opacity: 1; }
.card__play { position: absolute; right: 9px; bottom: 9px; width: 34px; height: 34px; border-radius: 50%; background: rgba(0,0,0,.58); border: 1px solid rgba(255,255,255,.22); }
.card__play::after { content: ''; position: absolute; left: 13px; top: 10px; border-style: solid; border-width: 6.5px 0 6.5px 10px; border-color: transparent transparent transparent #fff; }
.card__dur { position: absolute; left: 9px; bottom: 12px; padding: 3px 8px; border-radius: 100px; background: rgba(0,0,0,.58); font-size: 11.5px; font-weight: 600; letter-spacing: .02em; font-variant-numeric: tabular-nums; }
/* pločica koja popuni rupu u poslednjem redu (širinu joj daje site.js) */
.tile { align-self: stretch; display: flex; flex-direction: column; align-items: flex-start; justify-content: flex-end; gap: 14px; min-height: 190px; padding: 16px; border-radius: 16px; border: 1px dashed rgba(255,122,61,.55); background: rgba(255,122,61,.07); text-decoration: none; transition: background .2s; }
.tile:hover { background: rgba(255,122,61,.12); }
.tile b { font-size: clamp(20px, 2.7vw, 32px); font-weight: 700; letter-spacing: -.035em; line-height: 1.08; }
.tile .btn { min-height: 42px; padding: 10px 16px; font-size: 14.5px; box-shadow: none; }
.tile small { font-size: 14px; color: var(--soft); }
.tile:not(.tile--big) small { display: none; }
.tile--big { justify-content: center; gap: 18px; padding: clamp(24px, 5vw, 60px); }
.tile--big b { max-width: 11em; font-size: clamp(28px, 4.2vw, 54px); }
.tile--big .btn { min-height: 54px; padding: 15px 26px; font-size: 16.5px; }
.card__t { display: block; margin-top: 10px; font-size: 15px; font-weight: 600; letter-spacing: -.015em; line-height: 1.25; }
.card__d { display: block; margin-top: 2px; font-size: 13px; line-height: 1.35; color: var(--dim); }

/* ---------- kako ide ---------- */
.steps { margin-top: 30px; counter-reset: s; }
.steps li { display: grid; grid-template-columns: 54px minmax(0, 1fr); gap: 4px 0; padding: 22px 0; border-top: 1px solid var(--rule); counter-increment: s; }
.steps li:last-child { border-bottom: 1px solid var(--rule); }
.steps li::before { content: counter(s); grid-row: span 2; font-size: 46px; font-weight: 200; line-height: .9; letter-spacing: -.04em; color: var(--acc); }
.steps h3 { font-size: 20px; font-weight: 650; letter-spacing: -.025em; line-height: 1.2; }
.steps p { grid-column: 2; font-size: 15.5px; font-weight: 300; color: var(--soft); }

/* ---------- cena ---------- */
.offer { display: grid; gap: 22px; padding: 26px 22px 24px; border-radius: 26px; background: var(--bone); color: var(--ink); }
.offer__k { font-size: 13px; font-weight: 650; letter-spacing: .08em; text-transform: uppercase; color: #6a6a63; }
.offer__p { margin-top: 6px; font-size: clamp(60px, 19vw, 104px); font-weight: 750; letter-spacing: -.06em; line-height: .92; white-space: nowrap; }
.offer__p small { font-size: .34em; font-weight: 600; letter-spacing: -.02em; margin-right: .18em; vertical-align: .58em; }
.offer__txt { font-size: 16.5px; color: #33332f; }
.offer__list { margin-top: 16px; border-top: 1px solid rgba(0,0,0,.14); }
.offer__list li { padding: 11px 0; border-bottom: 1px solid rgba(0,0,0,.14); font-size: 15.5px; font-weight: 500; }
.offer .btn { margin-top: 20px; width: 100%; box-shadow: inset 0 1px 0 rgba(255,255,255,.28), 0 14px 30px -14px rgba(229,90,31,.9); }

/* ---------- reference ---------- */
.refs__wall { display: flex; flex-wrap: wrap; align-items: center; gap: 22px 30px; margin-top: 30px; }
.refs__wall img { width: calc(var(--w, 90px) * .74); height: auto; opacity: .7; }
.refs__wall li { font-size: 17px; font-weight: 750; letter-spacing: -.035em; color: rgba(255,255,255,.7); white-space: nowrap; }

/* ---------- pitanja ---------- */
.faq { margin-top: 26px; border-top: 1px solid var(--rule); }
.faq details { border-bottom: 1px solid var(--rule); }
.faq summary { position: relative; padding: 19px 40px 19px 0; font-size: 17.5px; font-weight: 600; letter-spacing: -.02em; line-height: 1.3; cursor: pointer; list-style: none; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: '+'; position: absolute; right: 4px; top: 50%; transform: translateY(-52%); font-size: 26px; font-weight: 300; color: var(--acc); transition: transform .2s; }
.faq details[open] summary::after { transform: translateY(-52%) rotate(45deg); }
.faq p { padding: 0 0 20px; max-width: 42em; font-size: 16px; font-weight: 300; color: var(--soft); }
.faq p + p { margin-top: -8px; }

/* ---------- kraj ---------- */
.final { text-align: center; padding: 64px 0 72px; }
.final h2 { margin-inline: auto; }
.final h2 .gt { display: block; }
.final .sec__lead { margin-inline: auto; }
.final .btn { margin-top: 26px; width: 100%; max-width: 360px; }
.final__note { margin-top: 14px; font-size: 14px; color: var(--dim); }
.foot { padding: 26px 0 104px; border-top: 1px solid var(--rule); font-size: 13.5px; color: var(--dim); }
.foot__in { display: flex; flex-wrap: wrap; gap: 6px 18px; justify-content: space-between; }
.foot a { color: var(--soft); text-underline-offset: 3px; }
.foot p + p { margin-top: 8px; }

/* ---------- lepljiva traka (telefon) ---------- */
.stick { position: fixed; z-index: 40; left: 10px; right: 10px; bottom: calc(10px + env(safe-area-inset-bottom, 0px)); display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 8px 8px 8px 16px; border-radius: 100px; background: rgba(18,18,22,.96); border: 1px solid var(--rule-2); box-shadow: 0 18px 40px -10px rgba(0,0,0,.8); transform: translateY(160%); transition: transform .3s var(--ease); }
.stick.is-on { transform: none; }
.stick span { font-size: 13px; line-height: 1.15; color: var(--dim); }
.stick b { display: block; font-size: 16px; font-weight: 750; letter-spacing: -.02em; color: var(--text); }
.stick .btn { min-height: 44px; padding: 10px 18px; font-size: 14.5px; }

/* ---------- ceo spot (lightbox) ---------- */
.lb { position: fixed; z-index: 70; inset: 0; display: none; align-items: center; justify-content: center; padding: 14px; background: rgba(0,0,0,.93); }
.lb.is-open { display: flex; }
/* širina kutije = širina videa koji staje po visini, pa traka ispod nikad nije šira od slike */
.lb__box { width: min(100%, calc((100svh - 150px) * 9 / 16)); }
.lb.is-wide .lb__box { width: min(100%, 1040px, calc((100svh - 150px) * 16 / 9)); }
.lb video { display: block; width: 100%; height: auto; aspect-ratio: 9 / 16; border-radius: 18px 18px 0 0; background: #000; }
.lb.is-wide video { aspect-ratio: 16 / 9; }
.lb__bar { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 12px 12px 16px; border-radius: 0 0 18px 18px; background: var(--bg-3); }
.lb__bar b { display: block; font-size: 15px; font-weight: 650; letter-spacing: -.015em; line-height: 1.2; }
.lb__bar span { display: block; font-size: 12.5px; color: var(--dim); line-height: 1.3; }
.lb__bar .btn { flex: none; }
.lb__x, .sheet__x { position: absolute; width: 42px; height: 42px; border: 0; border-radius: 50%; background: rgba(255,255,255,.12); color: #fff; font-size: 24px; line-height: 1; cursor: pointer; }
.lb__x { top: 12px; right: 12px; }
.lb__x:hover, .sheet__x:hover { background: rgba(255,255,255,.22); }

/* ---------- forma ---------- */
.modal { position: fixed; z-index: 80; inset: 0; display: none; align-items: flex-end; justify-content: center; background: rgba(0,0,0,.72); }
.modal.is-open { display: flex; }
.sheet { position: relative; width: 100%; max-width: 460px; max-height: 100svh; overflow-y: auto; padding: 26px 20px calc(22px + env(safe-area-inset-bottom, 0px)); border-radius: 26px 26px 0 0; background: var(--bg-2); border: 1px solid var(--rule-2); border-bottom: 0; animation: sheet .28s var(--ease); }
@keyframes sheet { from { transform: translateY(30px); opacity: 0; } }
.sheet__x { top: 12px; right: 12px; width: 36px; height: 36px; font-size: 21px; }
.sheet h2 { padding-right: 40px; font-size: 25px; font-weight: 700; letter-spacing: -.035em; line-height: 1.1; }
.sheet__lead { margin-top: 8px; font-size: 15px; font-weight: 300; color: var(--soft); }
.field { margin-top: 15px; }
.field label { display: block; margin-bottom: 6px; font-size: 13.5px; font-weight: 500; color: var(--soft); }
.field input, .field select { width: 100%; height: 52px; padding: 0 15px; border-radius: 14px; border: 1px solid var(--rule-2); background: #060608; color: var(--text); font-size: 16px; appearance: none; -webkit-appearance: none; }
.field select { padding-right: 40px; background-image: linear-gradient(45deg, transparent 50%, #bbb 50%), linear-gradient(135deg, #bbb 50%, transparent 50%); background-position: calc(100% - 21px) 23px, calc(100% - 15px) 23px; background-size: 6px 6px; background-repeat: no-repeat; }
.field select:invalid { color: var(--dim); }
.field input::placeholder { color: #6d6d66; }
.field input:focus, .field select:focus { outline: 0; border-color: var(--acc); box-shadow: 0 0 0 3px rgba(255,122,61,.22); }
.field [aria-invalid="true"] { border-color: #ff5a4f; }
.sheet__err { min-height: 20px; margin-top: 10px; font-size: 14px; color: #ff8078; }
.sheet .btn { margin-top: 6px; }
.sheet__fine { margin-top: 12px; font-size: 12.5px; line-height: 1.45; color: var(--dim); text-align: center; }
.sheet__fine a { color: var(--soft); }

/* ---------- hvala / privatnost / 404 ---------- */
.plain { min-height: calc(100svh - 190px); display: flex; align-items: center; padding: 48px 0 64px; }
.plain h1 { font-size: clamp(36px, 9.5vw, 68px); font-weight: 750; letter-spacing: -.05em; line-height: 1; }
.plain p { margin-top: 16px; max-width: 32em; font-size: 17px; font-weight: 300; color: var(--soft); }
.plain .btn { margin-top: 26px; }
.next { margin-top: 26px; max-width: 34em; border-top: 1px solid var(--rule); counter-reset: n; }
.next li { display: grid; grid-template-columns: 34px minmax(0, 1fr); padding: 14px 0; border-bottom: 1px solid var(--rule); font-size: 15.5px; color: var(--soft); counter-increment: n; }
.next li::before { content: counter(n); font-weight: 300; font-size: 22px; line-height: 1.1; color: var(--acc); }
.legal { padding: 40px 0 64px; max-width: 720px; }
.legal h1 { font-size: clamp(32px, 8vw, 52px); font-weight: 750; letter-spacing: -.045em; line-height: 1.02; }
.legal h2 { margin-top: 30px; font-size: 20px; font-weight: 650; letter-spacing: -.02em; }
.legal p, .legal li { margin-top: 10px; font-size: 16px; font-weight: 300; color: var(--soft); }
.legal ul { padding-left: 18px; list-style: disc; }
.legal a { color: var(--acc); }
.legal .legal__date { font-size: 14px; color: var(--dim); }

/* ====================== od tableta naviše ====================== */
@media (min-width: 700px) {
  :root { --g: 32px; }
  .grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 30px 18px; }
  .grid--w { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .chips { margin-inline: 0; padding-inline: 0; flex-wrap: wrap; overflow: visible; }
  .sec { padding: 84px 0; }
  .gal { padding-top: 72px; }
  .steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0 34px; }
  .steps li, .steps li:last-child { display: block; padding: 22px 0 0; border-bottom: 0; }
  .steps li::before { display: block; margin-bottom: 18px; font-size: 64px; }
  .steps h3 { font-size: 22px; }
  .steps p { margin-top: 8px; font-size: 16px; }
  .offer { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 40px; align-items: center; padding: 44px; border-radius: 32px; }
  .offer .btn { width: auto; }
  .refs__wall { gap: 30px 46px; }
  .refs__wall img { width: var(--w, 90px); }
  .refs__wall li { font-size: 21px; }
  .lb { padding: 28px; }
  .modal { align-items: center; padding: 24px; }
  .sheet { padding: 34px 32px 30px; border-radius: 26px; border-bottom: 1px solid var(--rule-2); }
  .foot { padding-bottom: 40px; }
}
@media (min-width: 900px) {
  .top { position: fixed; z-index: 50; top: 12px; left: 0; right: 0; padding: 0; pointer-events: none; }
  .top__in { pointer-events: auto; padding: 9px 9px 9px 22px; border-radius: 100px; border: 1px solid var(--rule); background: rgba(9,9,11,.94); }
  .top .btn { display: inline-flex; }
  .stick { display: none; }
  .hero { padding: 132px 0 84px; }
  /* tekst i reference levo (kao jedna grupa po sredini), telefon desno preko oba reda */
  .hero__in { grid-template-columns: minmax(0, 1fr) auto; gap: 22px clamp(40px, 7vw, 110px); }
  .hero__txt { grid-column: 1; grid-row: 1; align-self: end; }
  .hero__brands { grid-column: 1; grid-row: 2; align-self: start; max-width: 560px; }
  .phone { grid-column: 2; grid-row: 1 / span 2; align-self: center; }
  .hero .eyebrow { display: inline-block; }
  .hero h1 { font-size: clamp(60px, 7vw, 92px); }
  .hero__sub { margin-top: 24px; font-size: 20px; }
  .hero__act { margin-top: 32px; gap: 16px; }
  .hero__act .btn { flex: none; padding-inline: 26px; }
  .price { padding-inline: 18px; }
  .phone { width: clamp(270px, 25vw, 336px); border-radius: 44px; padding: 8px; }
  .phone video { border-radius: 36px; }
  .grid { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 34px 20px; }
  .grid--w { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .tile { padding: 26px; }
  .legal { padding-top: 124px; }   /* ispod fiksiranog vrha */
  .final { padding: 104px 0 112px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .btn, .card__v, .stick, .sheet { transition: none; animation: none; }
}
