/* RND Solutions — pocetna (nova struktura).
   Ucitava se posle style.css, tech.css i work.css. Ritam je namerno
   LIGHT + DARK: svetle sekcije za projekte, tekst, analitiku, proces i poverenje;
   tamne za hero, "3 stvari", teren, white label i kontakt.
   Web = emerald → cyan → plava, social = ljubicasta → magenta → koral (samo gde
   je rec o sadrzaju i videu). */

.theme-home { --h-tech: linear-gradient(100deg, var(--accent-mid), var(--tech-cyan) 55%, var(--accent-blue)); --h-soc: linear-gradient(100deg, #8b5cf6, #ec4899 56%, #fb967f); }
.theme-home h2 { font-size: clamp(1.9rem, 3.6vw, 2.9rem); }
.theme-home .btn {
  min-height: 50px;
  border-radius: 6px;
  background: #047857;
  border-color: #047857;
  box-shadow: none;
  transition: background .18s ease, border-color .18s ease;
}
.theme-home .btn:hover { background: #065f46; border-color: #065f46; transform: none; box-shadow: none; }
.theme-home .btn:active { background: #064e3b; }
.theme-home .btn.ghost { background: transparent; border-color: currentColor; box-shadow: none; }
.theme-home .hero .btn.ghost { border-color: transparent; padding-inline: 8px; text-decoration: underline; text-underline-offset: 6px; text-decoration-color: #64748b; }
.theme-home .hero .btn.ghost:hover { background: transparent; text-decoration-color: #fff; }
.theme-home a:focus-visible, .theme-home button:focus-visible { outline: 3px solid var(--accent-mid); outline-offset: 5px; }
.theme-home .h-location { color: #cbd5e1; font-size: .9rem; margin-bottom: 22px; }
.theme-home .h-why > div { border: 0; border-top: 1px solid var(--border-mid); border-radius: 0; background: none; padding: 24px 0; }
.theme-home .h-why > div > span { display: none; }
.theme-home .h-why b { margin-top: 0; }
.theme-home .h-steps .loop em { animation: none; }
.theme-home .h-svc li { border: 0; background: none; padding: 3px 0; border-radius: 0; }
.theme-home .h-svc li + li::before { content: '/'; margin-right: 8px; color: #64748b; }
.theme-home .h-svc .h-mini li + li::before { content: ''; margin-right: 0; }
.h-eyebrow { display: inline-block; font-size: .72rem; font-weight: 800; letter-spacing: .16em; text-transform: uppercase; color: var(--accent); margin: 0 0 14px; }
.h-sub { font-size: clamp(1.02rem, 1.3vw, 1.14rem); max-width: 62ch; }

/* tamne sekcije u svetloj stranici */
main.theme-home > section.h-dark { background: var(--tech-bg) !important; color: var(--tech-muted); }
main.theme-home > section.h-dark:nth-of-type(odd) { background: var(--tech-bg-2) !important; }
.h-dark h2, .h-dark h3, .h-dark strong { color: #F1F5F9; }
.h-dark p, .h-dark li { color: var(--tech-muted); }
.h-dark .h-eyebrow { color: #5EEAD4; }
.h-dark a:not(.btn) { color: #5EEAD4; }
.h-dark .btn.ghost { color: #E2E8F0; border-color: rgba(148,163,184,.35); }
.h-dark .btn.ghost:hover { background: rgba(148,163,184,.1); color: #fff; }
.h-dark h2::after { background: linear-gradient(90deg, var(--accent-mid), var(--tech-cyan)); }

/* ---------- 01 hero ---------- */
.theme-home .hero h1 { max-width: 13ch; font-size: clamp(2.4rem, 5.4vw, 4.3rem); }
.theme-home .hero h1 span { display: block; color: #5EEAD4; }
.h-hero-grid { display: grid; gap: 40px; align-items: center; }
@media (min-width: 1040px) { .h-hero-grid { grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: 40px; } }
.h-hero-meta { margin: 20px 0 0; font-size: .86rem; color: #94A3B8 !important; letter-spacing: .02em; }
.h-wall { position: relative; height: 480px; isolation: isolate; }
.h-wall::before { content: ''; position: absolute; z-index: -1; inset: 8% 10%; background: radial-gradient(ellipse at 30% 50%, rgba(34,211,238,.16), transparent 60%), radial-gradient(ellipse at 85% 45%, rgba(236,72,153,.16), transparent 60%); filter: blur(8px); }
.h-wall figure { position: absolute; margin: 0; border-radius: 14px; overflow: hidden; border: 1px solid rgba(148,163,184,.24); background: #0B1622; box-shadow: 0 30px 60px -30px rgba(0,0,0,.95); }
.h-wall img { display: block; width: 100%; height: auto; }
.h-wall .h-back { left: 0; top: 12px; width: 50%; opacity: .75; }
.h-wall .h-mid { left: 16%; top: 118px; width: 58%; z-index: 2; }
.h-wall .h-reel { right: 2%; top: 30px; width: 27%; aspect-ratio: 9 / 16; border-radius: 18px; border-color: rgba(236,72,153,.45); z-index: 3; }
.h-wall .h-reel img { height: 100%; object-fit: cover; }
.h-wall .t-bar { padding: 8px 12px; }
.h-wall .t-bar i { width: 8px; height: 8px; }
.h-wall .t-url { font-size: .7rem; }
.h-wall .t-browser img { aspect-ratio: 1200 / 544; object-fit: cover; object-position: top; }
.h-chip { position: absolute; z-index: 4; font-size: .64rem; font-weight: 800; letter-spacing: .12em; color: #E2E8F0; padding: 7px 11px; border-radius: 999px; border: 1px solid rgba(148,163,184,.3); background: rgba(10,20,32,.9); backdrop-filter: blur(6px); white-space: nowrap; }
.h-chip.w { border-color: rgba(34,211,238,.5); }
.h-chip.s { border-color: rgba(236,72,153,.5); }
.h-chip.ok { color: #5EEAD4; border-color: rgba(16,185,129,.55); }
.h-chip i { display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: var(--accent-mid); margin-right: 7px; box-shadow: 0 0 8px rgba(16,185,129,.8); }
.h-c1 { left: 2%; top: 0; } .h-c2 { left: 4%; bottom: 96px; } .h-c3 { right: 0; top: 0; } .h-c4 { right: 6%; bottom: 60px; } .h-c5 { left: 44%; top: 88px; } .h-c6 { left: 30%; bottom: 40px; }
.h-link { position: absolute; left: 0; right: 0; bottom: 0; text-align: center; font-size: .7rem; font-weight: 800; letter-spacing: .3em; color: rgba(148,163,184,.55); }
@media (max-width: 1039px) { .h-wall { height: 430px; max-width: 640px; width: 100%; margin: 0 auto; } }
@media (max-width: 639px) {
  .h-wall { height: 300px; }
  .h-wall .h-back, .h-chip, .h-link { display: none; }
  .h-wall .h-mid { left: 0; top: 20px; width: 74%; }
  .h-wall .h-reel { width: 34%; top: 0; right: 0; }
}

/* traka ispod hero-a */
main.theme-home > section.h-proof { padding-top: 20px !important; padding-bottom: 20px !important; background: #081019 !important; text-align: center; }
.h-proof p { margin: 0 auto; max-width: none; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; font-size: .86rem; color: #CBD5E1; }
.h-proof p b { color: #5EEAD4; }

/* ---------- 02 pozicioniranje ---------- */
.h-pos { display: grid; gap: 36px; align-items: center; }
@media (min-width: 960px) { .h-pos { grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); gap: 60px; } }
.h-axis { display: grid; gap: 0; justify-items: center; max-width: 420px; margin: 0 auto; width: 100%; }
.h-side { width: 100%; padding: 18px 20px; border-radius: 16px; border: 1px solid var(--border); background: var(--bg-card); text-align: center; }
.h-side small { display: block; font-size: .68rem; font-weight: 800; letter-spacing: .16em; color: var(--text-light); }
.h-side b { display: block; margin-top: 4px; font-size: 1.1rem; letter-spacing: .06em; }
.h-side.w { border-top: 3px solid transparent; border-image: var(--h-tech) 1; border-image-slice: 1; }
.h-side.w b { color: #0E7490; }
.h-side.s b { color: #BE185D; }
.h-side.s { border-bottom: 3px solid transparent; border-image: var(--h-soc) 1; }
.h-arrow { width: 2px; height: 30px; background: linear-gradient(180deg, var(--accent-mid), var(--tech-cyan)); }
.h-rnd { padding: 14px 26px; border-radius: 999px; background: var(--hero-dark); color: #fff; font-weight: 800; letter-spacing: .14em; box-shadow: 0 0 0 6px rgba(16,185,129,.12); }

/* ---------- 03 dve usluge ---------- */
.h-services { display: grid; gap: 22px; }
@media (min-width: 960px) { .h-services { grid-template-columns: 1fr 1fr; } }
.h-svc { position: relative; overflow: hidden; border-radius: 22px; background: #0B1622; color: var(--tech-muted); padding: clamp(24px, 3vw, 38px); display: flex; flex-direction: column; isolation: isolate; }
.h-svc::before { content: ''; position: absolute; inset: 0 0 auto 0; height: 4px; }
.h-svc.tech::before { background: var(--h-tech); }
.h-svc.soc::before { background: var(--h-soc); }
.h-svc::after { content: ''; position: absolute; z-index: -1; right: -20%; top: -25%; width: 70%; height: 80%; pointer-events: none; }
.h-svc.tech::after { background: radial-gradient(ellipse, rgba(34,211,238,.14), transparent 70%); }
.h-svc.soc::after { background: radial-gradient(ellipse, rgba(236,72,153,.16), transparent 70%); }
.h-svc small { font-size: .72rem; font-weight: 800; letter-spacing: .16em; color: #5EEAD4; }
.h-svc.soc small { color: #f0b8f5; }
.h-svc h3 { color: #F1F5F9; font-size: clamp(1.5rem, 2.6vw, 2.1rem); line-height: 1.15; margin: 10px 0 12px; }
.h-svc h3 span { display: block; }
.h-svc > p { color: var(--tech-muted); margin-bottom: 18px; }
.h-svc ul { list-style: none; margin: 0 0 22px; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.h-svc li { margin: 0; max-width: none; font-size: .8rem; font-weight: 600; color: #E2E8F0; padding: 6px 12px; border-radius: 8px; border: 1px solid var(--tech-line); background: rgba(13,27,42,.6); }
.h-svc-vis { margin: 0 0 22px; }
.h-svc-vis .t-browser img { width: 100%; height: auto; aspect-ratio: 1200 / 544; object-fit: cover; object-position: top; display: block; }
.h-mini { list-style: none; padding: 0; margin: 14px 0 0 !important; display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.h-mini li { display: inline-flex; align-items: center; gap: 8px; padding: 0 !important; border: 0 !important; background: none !important; }
.h-mini li + li::before { content: ''; width: 16px; height: 2px; border-radius: 2px; background: var(--h-tech); }
.h-mini span { font-size: .68rem; font-weight: 800; letter-spacing: .12em; color: #E2E8F0; padding: 6px 10px; border-radius: 8px; border: 1px solid rgba(34,211,238,.35); background: rgba(10,20,32,.7); }
.h-phones { display: flex; gap: 14px; justify-content: center; }
.h-phones figure { margin: 0; width: 42%; max-width: 190px; aspect-ratio: 9 / 16; border-radius: 20px; overflow: hidden; border: 5px solid #111b2b; box-shadow: 0 0 0 1px rgba(236,72,153,.3), 0 24px 50px -20px rgba(0,0,0,.9); }
.h-phones figure:nth-child(2) { margin-top: 28px; }
.h-phones img { width: 100%; height: 100%; object-fit: cover; display: block; }
.h-svc .btn { margin-top: auto; align-self: flex-start; }

/* ---------- 04 odabrani radovi ---------- */
.h-work { display: grid; gap: 20px; grid-template-columns: repeat(3, minmax(0, 1fr)); }
.h-work a { display: flex; flex-direction: column; border-radius: 18px; overflow: hidden; border: 1px solid var(--border); background: var(--bg-card); text-decoration: none; color: inherit; transition: transform .3s var(--ease-out), box-shadow .3s var(--ease-out), border-color .2s; }
.h-work a:hover { transform: translateY(-4px); border-color: rgba(5,150,105,.4); box-shadow: 0 24px 44px -26px rgba(15,23,42,.45); }
.h-work .h-img { aspect-ratio: 16 / 10; overflow: hidden; background: #0D1B2A; }
.h-work img { width: 100%; height: 100%; object-fit: cover; object-position: top; display: block; transition: transform .5s var(--ease-out); }
.h-work a:hover img { transform: scale(1.03); }
.h-work .h-body { padding: 18px 20px 22px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.h-work .h-cat { font-size: .68rem; font-weight: 800; letter-spacing: .14em; color: var(--accent); }
.h-work .h-cat.s { color: #BE185D; }
.h-work strong { font-size: 1.2rem; color: var(--text); }
.h-work .h-desc { font-size: .92rem; color: var(--text-muted); line-height: 1.55; }
.h-work .h-go { margin-top: auto; padding-top: 8px; font-weight: 700; font-size: .9rem; color: var(--accent); }
.h-all { margin-top: 26px; font-weight: 700; }
@media (max-width: 899px) {
  .h-work { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; gap: 14px; padding-bottom: 10px; margin-right: calc(-1 * var(--gutter)); padding-right: var(--gutter); }
  .h-work a { flex: 0 0 82%; scroll-snap-align: start; }
}

/* ---------- 05 tri stvari (postojeci panel, nova uloga) ---------- */
main.theme-home > section.pillars-section { padding: clamp(80px, 9vw, 120px) var(--bleed-pad) !important; }
.theme-home .pillars-section .h-eyebrow { color: var(--accent-gold-bright); display: block; text-align: center; }
.theme-home .pillars-h2 { max-width: 20ch; margin-left: auto; margin-right: auto; }
.theme-home .pillars-h2::after { display: none; }
.theme-home .pillar-ring { opacity: 1 !important; transform: none !important; }
.pr-text { display: block; max-width: 15ch; margin-top: 6px; font-size: .76rem; line-height: 1.35; color: rgba(236,229,214,.78); text-align: center; }
.h-all3 { margin: 30px auto 0 !important; text-align: center; font-weight: 800; font-size: 1.15rem; color: var(--accent-gold-bright) !important; letter-spacing: .02em; }

/* ---------- 06 stvarni rezultat ---------- */
.h-result { display: grid; gap: 30px; align-items: center; }
@media (min-width: 960px) { .h-result { grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: 56px; } }
.h-panel { border-radius: 22px; border: 1px solid var(--border); background: var(--bg-card); padding: clamp(20px, 3vw, 30px); box-shadow: 0 30px 60px -40px rgba(15,23,42,.45); }
.h-panel-top { display: flex; justify-content: space-between; align-items: center; gap: 10px; margin-bottom: 18px; font-size: .78rem; font-weight: 700; color: var(--text-muted); }
.h-panel-top b { color: #BE185D; }
.h-metrics { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.h-metric { padding: 18px; border-radius: 14px; background: var(--bg-alt); border: 1px solid var(--border); }
.h-metric b { display: block; font-size: clamp(1.9rem, 3.4vw, 2.6rem); letter-spacing: -.03em; line-height: 1; color: var(--text); font-variant-numeric: tabular-nums; }
.h-metric span { display: block; margin-top: 6px; font-size: .84rem; color: var(--text-muted); }
.h-thumbs { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-top: 14px; }
.h-thumbs a { display: block; aspect-ratio: 9 / 16; border-radius: 12px; overflow: hidden; border: 1px solid var(--border); }
.h-thumbs img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .4s var(--ease-out); }
.h-thumbs a:hover img { transform: scale(1.04); }
.h-source { margin: 14px 0 0; font-size: .78rem; color: var(--text-light); }

/* ---------- 07 na terenu ---------- */
.h-field { display: grid; gap: 16px; grid-template-columns: 1fr; }
@media (min-width: 900px) { .h-field { grid-template-columns: 1.5fr 1fr 1fr; align-items: stretch; } }
.h-field > figure { margin: 0; position: relative; border-radius: 18px; overflow: hidden; border: 1px solid rgba(148,163,184,.2); }
.h-field > figure img { width: 100%; height: 100%; object-fit: cover; display: block; min-height: 260px; }
.h-field > figure figcaption { position: absolute; left: 12px; bottom: 12px; font-size: .68rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: #fff; background: rgba(10,20,32,.72); padding: 5px 9px; border-radius: 6px; }
.h-field .w-reel { max-width: none; width: 100%; border-width: 4px; }
@media (max-width: 899px) { .h-field .w-reel { max-width: 300px; } .h-field .h-2nd { display: none; } }

/* ---------- 08 zasto RND ---------- */
.h-why { display: grid; gap: 16px; grid-template-columns: 1fr; }
@media (min-width: 700px) { .h-why { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1100px) { .h-why { grid-template-columns: repeat(4, 1fr); } }
.h-why div { padding: 24px; border-radius: 16px; border: 1px solid var(--border); background: var(--bg-card); }
.h-why span { font-size: .8rem; font-weight: 800; letter-spacing: .12em; color: var(--accent); }
.h-why b { display: block; margin: 10px 0 6px; font-size: 1.12rem; color: var(--text); }
.h-why p { margin: 0; font-size: .92rem; }

/* ---------- 09 proces (svetli) ---------- */
.h-steps { list-style: none; padding: 0; margin: 10px 0 0; display: grid; gap: 12px; grid-template-columns: 1fr; }
@media (min-width: 700px) { .h-steps { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1100px) { .h-steps { grid-template-columns: repeat(7, 1fr); gap: 0; } }
.h-steps li { position: relative; margin: 0; max-width: none; padding: 16px 16px 16px 62px; border-radius: 14px; border: 1px solid var(--border); background: var(--bg-card); color: var(--text); font-weight: 700; font-size: .92rem; line-height: 1.35; }
.h-steps em { position: absolute; left: 14px; top: 13px; width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; font-style: normal; font-size: .76rem; font-weight: 800; color: var(--accent); border: 1px solid rgba(5,150,105,.4); background: var(--bg); }
.h-steps .loop em { color: #0E7490; border: 1.5px dashed var(--tech-cyan); animation: t-spin 12s linear infinite; }
.h-steps .loop small { display: block; margin-top: 4px; font-size: .7rem; letter-spacing: .1em; text-transform: uppercase; color: #0E7490; font-weight: 800; }
@media (min-width: 1100px) {
  .h-steps li { padding: 58px 12px 0 0; border: 0; background: none; border-radius: 0; }
  .h-steps em { left: 0; top: 0; }
  .h-steps li:not(.loop)::before { content: ''; position: absolute; top: 17px; left: 38px; right: 4px; height: 2px; background: linear-gradient(90deg, rgba(5,150,105,.55), rgba(34,211,238,.35)); }
}

/* ---------- 10 klijenti ---------- */
.h-quotes { display: grid; gap: 18px; }
@media (min-width: 960px) { .h-quotes { grid-template-columns: 1.4fr 1fr; } .h-quotes .big { grid-row: span 2; } }
.h-q { margin: 0; padding: clamp(22px, 3vw, 32px); border-radius: 18px; border: 1px solid var(--border); background: var(--bg-card); display: flex; flex-direction: column; }
.h-q blockquote { margin: 0 0 18px; color: var(--text); line-height: 1.65; font-size: 1rem; }
.h-q.big blockquote { font-size: clamp(1.15rem, 1.8vw, 1.45rem); line-height: 1.5; font-weight: 600; letter-spacing: -.01em; }
.h-q.big { border-top: 3px solid var(--accent); background: linear-gradient(180deg, rgba(5,150,105,.05), var(--bg-card)); }
.h-q figcaption { margin-top: auto; font-size: .86rem; color: var(--text-muted); }
.h-q figcaption b { display: block; color: var(--text); font-size: .95rem; }
.h-q figcaption a { font-weight: 700; }
.h-orig { margin: 14px 0 0; font-size: .8rem; color: var(--text-light); }

/* ---------- 11 white label ---------- */
.h-wl { max-width: 780px; }
.h-wl .h-tag { display: inline-block; margin: 6px 0 22px; font-size: 1.05rem; font-weight: 800; color: #F1F5F9 !important; letter-spacing: .02em; }

/* ---------- 12 tim ---------- */
.h-team { display: grid; gap: 16px; grid-template-columns: 1fr; margin-bottom: 22px; }
@media (min-width: 800px) { .h-team { grid-template-columns: repeat(3, 1fr); } }
.h-team div { padding: 24px; border-radius: 16px; border: 1px solid var(--border); background: var(--bg-card); }
.h-av { width: 64px; height: 64px; border-radius: 50%; display: grid; place-items: center; margin-bottom: 14px; background: var(--hero-dark); color: #5EEAD4; font-weight: 800; letter-spacing: .06em; overflow: hidden; border: 2px solid rgba(5,150,105,.4); }
.h-av img { width: 100%; height: 100%; object-fit: cover; display: block; }
.h-av svg { width: 28px; height: 28px; }
.h-team b { display: block; font-size: 1.08rem; color: var(--text); }
.h-team span { display: block; font-size: .8rem; font-weight: 700; letter-spacing: .06em; color: var(--accent); margin: 4px 0 10px; }
.h-team p { margin: 0; font-size: .92rem; }

/* ---------- 14 kontakt ---------- */
.h-contact { display: grid; gap: 28px; align-items: center; }
@media (min-width: 960px) { .h-contact { grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); gap: 56px; } }
.h-contact h2 span { display: block; color: #5EEAD4; }
.h-nik { border-radius: 20px; border: 1px solid var(--tech-line); background: #0B1622; padding: 26px; }
.h-nik .c-who { margin-bottom: 18px; }
.h-nik ul { list-style: none; padding: 0; margin: 0 0 20px; display: grid; gap: 8px; }
.h-nik li { margin: 0; max-width: none; display: flex; align-items: center; gap: 10px; font-size: .92rem; color: #CBD5E1; }
.h-nik li::before { content: ''; width: 7px; height: 7px; border-radius: 50%; background: var(--accent-mid); flex: none; }

/* ---------- zavrsna izjava ---------- */
main.theme-home > section.h-final { text-align: center; padding-top: clamp(80px, 10vw, 140px) !important; padding-bottom: clamp(80px, 10vw, 140px) !important; background: var(--bg-section) !important; }
.h-final p.big { margin: 0 auto; max-width: none; font-family: var(--font-display); font-weight: 800; letter-spacing: -.035em; line-height: 1.02; font-size: clamp(2.6rem, 8vw, 6rem); color: var(--text); }
.h-final p.big span { background: none; color: var(--accent); }
.h-final p.meta { margin: 22px auto 0; font-size: .92rem; letter-spacing: .06em; color: var(--text-light); }

@media (prefers-reduced-motion: reduce) { .h-steps .loop em { animation: none; } .h-work img, .h-thumbs img { transition: none; } }

/* "3 stvari": vrati tamnu pozadinu sa fotografijom stola (opste pravilo traka iz style.css je gazi) */
main.theme-home > section.pillars-section {
  background-color: var(--panel-dark) !important;
  background-image:
    radial-gradient(120% 140% at 50% -10%, rgba(20,24,30,.4) 0%, rgba(15,18,22,.55) 45%, rgba(7,9,12,.82) 100%),
    url("/img/pillars-bg.webp") !important;
  background-size: cover, cover !important;
  background-position: center, center !important;
  background-repeat: no-repeat, no-repeat !important;
}

/* Nikola u kontakt delu (isti izgled kao na kontakt stranici; contact.css se ovde ne ucitava) */
.h-nik .c-who { display: flex; align-items: center; gap: 14px; }
.h-nik .c-who img { width: 72px; height: 72px; border-radius: 50%; object-fit: cover; border: 2px solid rgba(16,185,129,.55); box-shadow: 0 0 0 5px rgba(16,185,129,.1); flex: none; }
.h-nik .c-who b { display: block; font-size: 1.15rem; color: #fff; }
.h-nik .c-who span { display: block; font-size: .84rem; color: #94A3B8; }
/* avatar tima je <span>, pa ga opste pravilo za uloge ne sme dirati */
.h-team div > span.h-av { display: grid; margin: 0 0 14px; font-size: inherit; color: #5EEAD4; letter-spacing: 0; }
/* izjave: velika preko celog reda, dve manje ispod */
@media (min-width: 960px) { .h-quotes { grid-template-columns: 1fr 1fr; } .h-quotes .big { grid-column: 1 / -1; grid-row: auto; } }

@media (max-width: 599px) { .h-mini li + li::before { display: none; } }

/* ---------- pozadina kao na zivom sajtu: pastelni gradijent + cestice (#bg-canvas) ---------- */
body:has(main.theme-home) {
  background-color: #F8FAFC;
  background-image: linear-gradient(-45deg, #F0FDF9, #F8FAFC, #EFF6FF, #FDF4FF, #F0FDF9);
  background-size: 400% 400%;
  background-attachment: fixed;
  animation: gradientShift 28s ease-in-out infinite;
}
/* svetle sekcije su providne da se vide cestice; tamne ostaju pune */
main.theme-home > section:not(.hero):not(.h-dark):not(.pillars-section):not(.h-proof) { background: transparent !important; }
@media (prefers-reduced-motion: reduce) { body:has(main.theme-home) { animation: none; } }

/* "Nas princip" centriran iznad naslova */
.theme-home .pillars-section .h-eyebrow { max-width: none; margin-left: auto; margin-right: auto; }

/* ---------- zasto RND + terminal ---------- */
.h-why-wrap { display: grid; gap: 28px; align-items: start; }
@media (min-width: 1040px) { .h-why-wrap { grid-template-columns: minmax(0, 1.25fr) minmax(0, .75fr); } .h-why-wrap .h-why { grid-template-columns: 1fr 1fr; } }
.h-term-col .terminal { font-size: .78rem; }
.h-term-name { font-size: .65rem; color: #64748B; margin-left: .5rem; font-family: var(--font-mono); }
.h-term-last { margin-top: .4rem; }
.h-zone { margin-top: 16px; padding: 16px 18px; border-radius: 14px; border: 1px solid var(--border); background: var(--bg-card); }
.h-zone small { display: block; font-size: .66rem; font-weight: 800; letter-spacing: .15em; text-transform: uppercase; color: var(--text-light); margin-bottom: 6px; }
.h-zone p { margin: 0; font-weight: 700; color: var(--text-muted); }
.h-zone b { color: var(--accent); }

/* ---------- YouTube kanal ---------- */
.h-yt { display: grid; gap: 14px; grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (min-width: 700px) { .h-yt { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (min-width: 1100px) { .h-yt { grid-template-columns: repeat(6, minmax(0, 1fr)); } }
.h-ytv { margin: 0; }
.h-ytv button, .h-ytv iframe { display: block; width: 100%; aspect-ratio: 9 / 16; border: 0; border-radius: 14px; overflow: hidden; background: #000; }
.h-ytv button { position: relative; padding: 0; cursor: pointer; box-shadow: 0 16px 32px -20px rgba(15,23,42,.6); }
.h-ytv img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .4s var(--ease-out); }
.h-ytv button:hover img { transform: scale(1.04); }
.h-ytv button i { position: absolute; left: 50%; top: 50%; width: 52px; height: 52px; margin: -26px 0 0 -26px; border-radius: 50%; display: grid; place-items: center; background: rgba(255,255,255,.92); box-shadow: 0 8px 22px rgba(0,0,0,.4); }
.h-ytv button i svg { width: 20px; height: 20px; color: #DC2626; margin-left: 3px; }
.h-ytv button:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; }
.h-ytv figcaption { margin-top: 8px; }
.h-ytv figcaption b { display: block; font-size: .84rem; line-height: 1.35; color: var(--text); }
.h-ytv figcaption span { font-size: .74rem; color: var(--text-light); }

/* ---------- blog ---------- */
.h-blog { display: grid; gap: 18px; grid-template-columns: 1fr; }
@media (min-width: 900px) { .h-blog { grid-template-columns: repeat(3, 1fr); } }
.h-blog a { display: flex; flex-direction: column; gap: 8px; padding: 24px; border-radius: 18px; border: 1px solid var(--border); background: var(--bg-card); text-decoration: none; color: inherit; transition: transform .3s var(--ease-out), box-shadow .3s var(--ease-out), border-color .2s; }
.h-blog a:hover { transform: translateY(-3px); border-color: rgba(5,150,105,.4); box-shadow: 0 20px 40px -26px rgba(15,23,42,.4); }
.h-blog .h-cat { font-size: .68rem; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; color: var(--accent); }
.h-blog strong { font-size: 1.15rem; line-height: 1.3; color: var(--text); }
.h-blog .h-desc { font-size: .92rem; color: var(--text-muted); line-height: 1.55; }
.h-blog .h-go { margin-top: auto; padding-top: 6px; font-weight: 700; font-size: .9rem; color: var(--accent); }

/* ---------- 05 tri stvari: svetle kartice u stilu sajta (bez fotografije i zlata) ---------- */
main.wrap > section.h-pillars > ol.hp-flow { list-style: none; padding: 0; margin: 34px 0 0; max-width: none; display: grid; gap: 16px; }
@media (min-width: 860px) { .h-pillars .hp-flow { grid-template-columns: repeat(3, 1fr); gap: 22px; } }
main.wrap > section.h-pillars > ol.hp-flow > li { position: relative; margin: 0; padding: 28px 24px 26px; border-radius: 18px;
  background: rgba(255,255,255,.82); border: 1px solid var(--border); box-shadow: 0 10px 30px -18px rgba(15,23,42,.25);
  backdrop-filter: blur(6px); transition: transform .25s ease, border-color .25s ease; }
main.wrap > section.h-pillars > ol.hp-flow > li:hover { transform: translateY(-3px); border-color: rgba(5,150,105,.35); }
.h-pillars .hp-ic { position: relative; z-index: 1; display: grid; place-items: center; width: 50px; height: 50px; border-radius: 14px;
  background: var(--accent-light); color: var(--accent); border: 1px solid rgba(5,150,105,.18); }
.h-pillars .hp-num { position: absolute; top: 24px; right: 24px; font-size: .8rem; font-weight: 800; letter-spacing: .12em; color: var(--accent); opacity: .7; }
.h-pillars li b { display: block; margin: 18px 0 6px; font-size: 1.2rem; color: var(--text); }
.h-pillars li p { margin: 0; font-size: .95rem; color: var(--text-muted); }
.h-pillars .hp-all { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px 20px; margin: 22px 0 0;
  padding: 16px 22px; border-radius: 14px; background: var(--hero-dark, #0f172a); max-width: none; }
.h-pillars .hp-all span { font-size: .8rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: #94A3B8; }
.h-pillars .hp-all b { color: #34D399; font-size: 1.05rem; }
@media (prefers-reduced-motion: reduce) { main.wrap > section.h-pillars > ol.hp-flow > li { transition: none; } }

/* ---------- "Sta radimo": 3D masina (js/3d/factory.js) umesto dijagrama ---------- */
.h-machine { position: relative; }
.h-machine .af-root { display: none; }
.h-machine .af-root.af3d { display: block; }
.h-machine:has(.af3d) .h-axis { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.af3d { position: relative; width: 100%; height: clamp(340px, 34vw, 480px); font-family: inherit; }
@media (min-width: 900px) { .h-pos .h-machine .af3d { margin-right: calc(-1 * clamp(0px, 4vw, 60px)); width: calc(100% + clamp(0px, 4vw, 60px)); } }
.af3d .af-scene { position: absolute; inset: 0;
  /* ivice platna se utapaju u pozadinu, da se meka senka ispod ploce ne vidi kao pravougaonik */
  -webkit-mask-image: radial-gradient(ellipse 58% 60% at 50% 50%, #000 72%, transparent 100%);
          mask-image: radial-gradient(ellipse 58% 60% at 50% 50%, #000 72%, transparent 100%); }
.af3d .af-scene canvas { display: block; width: 100%; height: 100%; cursor: grab; }
.af3d .af-tip { position: absolute; z-index: 2; max-width: 220px; padding: 11px 14px; border-radius: 10px; pointer-events: none;
  background: rgba(15,23,42,.94); color: #E2E8F0; border: 1px solid rgba(148,163,184,.2); box-shadow: 0 12px 30px -12px rgba(2,6,23,.5);
  opacity: 0; transition: opacity .15s; }
.af3d .af-tip.visible { opacity: 1; }
.af3d .af-tip strong { font-size: .88rem; color: #fff; }
.af3d .af-tip strong span { margin-right: 8px; font-size: .74rem; color: #34D399; }
.af3d .af-tip p { margin: 5px 0 0; font-size: .8rem; line-height: 1.45; color: #CBD5E1; }
.af3d .af-loading { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; gap: 10px;
  font-size: .85rem; color: var(--text-light); transition: opacity .4s; }
.af3d .af-loading i { width: 18px; height: 18px; border-radius: 50%; border: 2px solid rgba(5,150,105,.2); border-top-color: var(--accent); animation: af-spin 1s linear infinite; }
.af3d .af-loading.done { opacity: 0; pointer-events: none; }
@keyframes af-spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .af3d .af-loading i { animation: none; } }

/* ---------- YouTube: liquid glass karusel (js/3d/carousel.js); mreza ostaje kao rezerva ---------- */
#video-gallery .h-yt:has(+ .gc) { display: none; }
.gc { position: relative; margin-top: 30px; height: clamp(440px, 58vh, 640px); border-radius: 24px; overflow: hidden;
  background: #0b1120; color: #fff; outline: none; box-shadow: 0 30px 60px -30px rgba(15,23,42,.55); }
.gc:focus-visible { box-shadow: 0 0 0 3px rgba(52,211,153,.6), 0 30px 60px -30px rgba(15,23,42,.55); }
.gc-mount { position: absolute; inset: 0; }
.gc-live { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
main.wrap > section .gc p.gc-title, main.wrap > section .gc p.gc-count { max-width: none; }
.gc-title { position: absolute; z-index: 3; left: 50%; top: 5%; margin: 0; text-align: center; pointer-events: none; opacity: 0; width: min(90%, 520px); }
.gc-title b { display: block; font-size: clamp(.95rem, 1.6vw, 1.1rem); font-weight: 700; color: #fff; letter-spacing: -.01em; }
.gc-title span { display: block; margin-top: 3px; font-size: .78rem; color: #94A3B8; }
.gc-count { position: absolute; z-index: 3; left: 50%; bottom: 6%; margin: 0; font-size: .85rem; font-weight: 700; color: #CBD5E1; font-variant-numeric: tabular-nums; pointer-events: none; opacity: 0; }
.gc-cursor { position: absolute; z-index: 4; left: 0; top: 0; padding: 7px 12px; border-radius: 999px; font-size: .78rem; font-weight: 700;
  color: #04130D; background: #34D399; pointer-events: none; }
.gc-close { position: absolute; z-index: 5; right: 4%; top: 5%; min-height: 40px; padding: 8px 16px; border-radius: 999px; font: inherit; font-size: .85rem; font-weight: 700;
  color: #fff; background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.2); cursor: pointer; opacity: 0; pointer-events: none; transition: opacity .3s; }
.gc-play { position: absolute; z-index: 5; left: 50%; bottom: 5%; transform: translateX(-50%); display: inline-flex; align-items: center; gap: 8px;
  min-height: 46px; padding: 10px 22px; border-radius: 999px; font: inherit; font-size: .92rem; font-weight: 800; cursor: pointer;
  color: #04130D; background: #34D399; border: 0; box-shadow: 0 10px 30px -10px rgba(52,211,153,.7); opacity: 0; pointer-events: none; transition: opacity .3s, background .2s; }
.gc-play:hover { background: #6EE7B7; }
.gc.is-focused .gc-close, .gc.is-focused .gc-play { opacity: 1; pointer-events: auto; }
.gc.is-playing .gc-play { opacity: 0; pointer-events: none; }
.gc-nav { position: absolute; z-index: 5; top: 50%; transform: translateY(-50%); display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%;
  color: #fff; background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.18); cursor: pointer; opacity: 0; transition: opacity .3s, background .2s; }
.gc-nav:hover { background: rgba(255,255,255,.16); }
.gc-prev { left: 3%; } .gc-next { right: 3%; }
.gc.is-ready:not(.is-focused) .gc-nav { opacity: 1; }
.gc.is-focused .gc-nav { pointer-events: none; }
.gc-play:focus-visible, .gc-close:focus-visible, .gc-nav:focus-visible { outline: 2px solid #34D399; outline-offset: 3px; }
.gc-player { position: absolute; z-index: 4; left: 50%; top: 50%; transform: translate(-50%, -50%); aspect-ratio: 9 / 16; border-radius: 14px; overflow: hidden; background: #000;
  box-shadow: 0 30px 60px -20px rgba(0,0,0,.7); }
.gc-player[hidden] { display: none; }
.gc-player iframe { display: block; width: 100%; height: 100%; border: 0; }
@media (max-width: 640px) { .gc { height: 520px; border-radius: 18px; } .gc-nav { display: none; } }

/* "Sta radimo": 3D masina ide ispod sloja cestica (nema belog pravougaonika bez cestica
   oko nje); tekst ostaje iznad. */
main.wrap > section > .h-pos { z-index: auto; }
.h-pos > div:first-child { position: relative; z-index: 2; }
.h-pos > .h-machine { z-index: auto; }

/* Novi Sad: a geographic motion study, grounded in the RND identity. */
main.theme-home > section.h-location-story {
  display:grid; grid-template-columns:minmax(0,1fr) minmax(0,1fr); gap:clamp(32px,6vw,88px);
  align-items:center; position:relative; z-index:2 !important; background:#0d1b2a !important; color:#cbd5e1; overflow:hidden;
}
.h-location-story .h-location-art { position:relative; aspect-ratio:1; min-width:0; overflow:hidden; }
.h-earth { position:absolute; inset:5%; overflow:hidden; border-radius:50%; background:#102c39; border:1px solid #2b5360; }
.h-map-travel { position:absolute; width:200%; height:100%; left:-50%; top:0; transform-origin:55.5125% 24.8583%; transform:scale(3.2) translate(-1.72265625%,7.85678125%); }
.h-map-travel img { width:100%; height:100%; display:block; max-width:none; opacity:.9; }
.h-ns-pin { position:absolute; left:55.5125%; top:24.8583%; width:3px; height:3px; margin:-1.5px; border-radius:50%; background:#fff; box-shadow:0 0 0 1.5px #0d1b2a; }
.h-city-label { position:absolute; z-index:2; left:50%; top:54%; transform:translateX(-50%); text-align:center; white-space:nowrap; padding:10px 16px; background:#0d1b2a; }
.h-city-label b { display:block; color:#fff; font-size:clamp(1.3rem,2.4vw,1.8rem); letter-spacing:-.03em; }
.h-city-label span { display:block; color:#bdd1dc; font-size:.8rem; margin-top:4px; }
.h-map-replay { position:absolute; bottom:0; left:50%; transform:translateX(-50%); background:none; border:0; color:#bdd1dc; padding:12px 18px; min-height:44px; font:inherit; font-size:.8rem; cursor:pointer; }
.h-map-replay:hover { color:#fff; }
.h-location-copy h2 { color:#fff; margin:0 0 24px; letter-spacing:-.035em; line-height:1.16; }
.h-location-copy h2 span { color:#5eead4; }
.h-location-copy h2::after { display:none; }
.h-location-copy > p { color:#bdd1dc; max-width:48ch; }
.h-principles { margin:30px 0; }
.h-principles > div { display:grid; grid-template-columns:120px 1fr; gap:18px; padding:18px 0; border-top:1px solid #ffffff20; }
.h-principles dt { color:#fff; font-size:1rem; font-weight:700; }
.h-principles dd { margin:0; color:#bdd1dc; font-size:.94rem; line-height:1.6; }
.theme-home .btn { gap:20px; border-radius:4px; font-weight:600; }
.theme-home .btn svg { flex:none; transition:transform .2s ease; }
.theme-home .btn:hover svg { transform:translateX(3px); }
.h-location-art.is-travelling .h-map-travel { animation:rnd-map-arrival 4s cubic-bezier(.22,1,.36,1) both; }
.h-location-art.is-travelling .h-city-label { animation:rnd-city-label 4s ease both; }
@keyframes rnd-map-arrival { 0%,12% { transform:scale(1) translate(0,0); } 100% { transform:scale(3.2) translate(-1.72265625%,7.85678125%); } }
@keyframes rnd-city-label { 0%,55% { opacity:0; } 85%,100% { opacity:1; } }
@media(max-width:800px) {
  main.theme-home > section.h-location-story { grid-template-columns:1fr; gap:28px; }
  .h-location-art { width:min(100%,420px); margin:auto; }
  .h-principles > div { grid-template-columns:100px 1fr; gap:12px; }
}
@media(prefers-reduced-motion:reduce) {
  .h-location-art.is-travelling .h-map-travel,.h-location-art.is-travelling .h-city-label { animation:none; }
  .theme-home .btn svg { transition:none; }
}

/* ==========================================================================
   Tamna tema pocetne — isti izgled kao podstranice (theme-tech).
   Svetli tokeni se unutar .theme-home prepisuju tamnim vrednostima, pa sve
   komponente koje koriste --bg-card/--text/--border same prelaze u tamno.
   Pastelni gradijent tela se gasi; cestice (#bg-canvas) idu preko traka.
   ========================================================================== */
.theme-home {
  --bg: #0A1420;
  --bg-section: #0D1B2A;
  --bg-alt: rgba(148,163,184,.07);
  --bg-card: rgba(15,29,44,.78);
  --text: #F1F5F9;
  --text-body: #CBD5E1;
  --text-muted: var(--tech-muted);
  --text-light: #8A9AAE;
  --border: var(--tech-line);
  --border-mid: rgba(148,163,184,.26);
  --accent: #34D399;
  --accent-light: rgba(16,185,129,.12);
  color: var(--tech-muted);
}
body:has(main.theme-home) {
  background-color: var(--tech-bg);
  background-image: linear-gradient(180deg, var(--tech-bg) 0%, var(--tech-bg-2) 100%);
  background-size: auto;
  animation: none;
}
main.theme-home > section:not(.hero):not(.h-proof) {
  background: var(--tech-bg) !important;
  border-top: 1px solid var(--tech-line);
}
main.theme-home > section:nth-of-type(even):not(.hero):not(.h-proof) { background: var(--tech-bg-2) !important; }
.theme-home h2, .theme-home h3, .theme-home strong { color: #F1F5F9; }
.theme-home h2::after { background: linear-gradient(90deg, var(--accent-mid), var(--tech-cyan)); }
.theme-home p, .theme-home li { color: var(--tech-muted); }
.theme-home a:not(.btn) { color: #5EEAD4; }
.theme-home a:not(.btn):hover { color: var(--tech-cyan); }
.theme-home .btn.ghost { color: #E2E8F0; border-color: rgba(148,163,184,.35); }
.theme-home .btn.ghost:hover { background: rgba(148,163,184,.1); color: #fff; }
.theme-home ::selection { background: rgba(34,211,238,.28); color: #fff; }
.theme-home .faq summary { color: #F1F5F9; }
.theme-home .faq summary:hover { color: #5EEAD4; }
.theme-home .faq summary::after { border-color: var(--tech-cyan); }
/* kartice: poluprovidne kao na podstranicama, da se mreza nazire */
main.wrap > section.h-pillars > ol.hp-flow > li { background: var(--bg-card); box-shadow: 0 20px 40px -26px rgba(0,0,0,.8); }
main.wrap > section.h-pillars > ol.hp-flow > li:hover { border-color: rgba(34,211,238,.35); }
.h-pillars .hp-ic { border-color: rgba(52,211,153,.25); }
.h-pillars .hp-all { background: rgba(8,16,25,.85); border: 1px solid var(--tech-line); }
.theme-home .h-panel { box-shadow: 0 30px 60px -40px rgba(0,0,0,.9); }
.theme-home .h-work a:hover, .theme-home .h-blog a:hover { border-color: rgba(34,211,238,.35); }
.theme-home .gc { box-shadow: 0 30px 60px -30px rgba(0,0,0,.9); border: 1px solid var(--tech-line); }
/* Keep this geographic interlude opaque above the shared particle canvas. */
main.wrap.theme-home > section#pillars.h-location-story { background:#0d1b2a !important; z-index:2 !important; }
