/* ============================================================
   Snoopy SP - stilovi (rekreacija Claude Design prototipa)
   Tamna "developer terminal" estetika. Vrijednosti preuzete 1:1.
   ============================================================ */

/* ---------- Design tokens ---------- */
:root {
  /* Pozadine */
  --bg:        #0d0f12; /* base */
  --bg-card:   #14171c; /* kartice / terminali */
  --bg-strip:  #101318; /* marquee traka */

  /* Tekst */
  --tx:        #e6e8eb; /* primarni */
  --tx-2:      #9aa1ab; /* sekundarni */
  --tx-muted:  #5c636e; /* muted */

  /* Akcenat - default zelena (prototip prop default #5ee6a8).
     Alternative iz dizajna: #ffb454, #7aa2ff, #ff7a9e */
  --acc:       #5ee6a8;
  --acc-hi:    #9af2cd; /* accent hover (linkovi) */

  /* Ostalo */
  --term-green: #5ee6a8;
  --err:        #ff5f57;
  --mac-r:      #ff5f57;
  --mac-y:      #febc2e;
  --mac-g:      #28c840;
  --wa:         #25d366;
  --nda-bar:    #2a2f37;

  /* Layout */
  --maxw: 1180px;
  --pad:  28px;

  /* Fontovi */
  --sans: 'Space Grotesk', system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
  --mono: 'JetBrains Mono', ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}

/* ---------- Reset ---------- */
* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--tx);
  font-family: var(--sans);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

a { color: var(--acc); text-decoration: none; }
::selection { background: var(--acc); color: #0d0f12; }
img { max-width: 100%; display: block; }

/* Zajednički kontejner širine za sekcije */
.nav__inner,
.hero,
.section,
.footer__inner { max-width: var(--maxw); margin-inline: auto; }

/* ============================================================
   Dvojezičnost: prikaži samo aktivni jezik prema data-lang
   ============================================================ */
[data-l] { display: none; }
html[data-lang="sr"] [data-l="sr"] { display: inline; }
html[data-lang="en"] [data-l="en"] { display: inline; }

/* ============================================================
   Buttons
   ============================================================ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 44px;                /* touch meta */
  padding: 14px 26px;
  border-radius: 8px;
  border: 1px solid transparent;
  font-family: var(--sans);
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  transition: transform .15s ease, filter .15s ease, border-color .15s ease, color .15s ease;
  white-space: nowrap;
}
.btn--acc   { background: var(--acc); color: #0d0f12; }
.btn--acc:hover   { filter: brightness(1.1); transform: translateY(-1px); }
.btn--wa    { background: var(--wa); color: #0d0f12; }
.btn--wa:hover    { filter: brightness(1.1); transform: translateY(-1px); }
.btn--ghost { background: transparent; color: var(--tx); border-color: rgba(255,255,255,.18); }
.btn--ghost:hover { border-color: var(--acc); color: var(--acc); }

/* ============================================================
   NAV (sticky, blur)
   ============================================================ */
.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(13,15,18,.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(255,255,255,.07);
}
.nav__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 14px var(--pad);
}

.logo {
  font-family: var(--mono);
  font-weight: 700;
  font-size: 15px;
  letter-spacing: .02em;
  color: var(--tx);
}
.logo__b { color: var(--acc); }

.nav__links {
  display: flex;
  align-items: center;
  gap: 22px;
  font-family: var(--mono);
  font-size: 12.5px;
}
.nav__links > a:not(.btn) {
  color: var(--tx-2);
  transition: color .15s ease;
}
.nav__links > a:not(.btn):hover { color: var(--tx); }

.nav__cta {
  min-height: 0;
  padding: 8px 16px;
  border-radius: 6px;
  font-family: var(--mono);
  font-size: 12.5px;
}

.lang {
  min-height: 0;
  padding: 7px 12px;
  border-radius: 6px;
  border: 1px solid rgba(255,255,255,.18);
  background: transparent;
  color: var(--tx);
  font-family: var(--mono);
  font-size: 12px;
  cursor: pointer;
  transition: border-color .15s ease, color .15s ease;
}
.lang:hover { border-color: var(--acc); color: var(--acc); }

.nav__burger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  background: transparent;
  border: 0;
  cursor: pointer;
}
.nav__burger span {
  display: block;
  height: 2px;
  width: 22px;
  margin-inline: auto;
  background: var(--tx);
  border-radius: 2px;
  transition: transform .2s ease, opacity .2s ease;
}
.nav__burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav__burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav__burger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ============================================================
   HERO
   ============================================================ */
.hero {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 48px;
  align-items: center;
  padding: 88px var(--pad) 72px;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 26px;
  padding: 6px 14px;
  border-radius: 99px;
  border: 1px solid rgba(255,255,255,.12);
  font-family: var(--mono);
  font-size: 12px;
  color: var(--acc);
}
.badge__dot {
  width: 7px; height: 7px;
  border-radius: 50%;
  background: #5ee6a8;
}

.hero__title {
  margin-bottom: 22px;
  font-size: clamp(40px, 5.2vw, 64px);
  line-height: 1.04;
  letter-spacing: -.02em;
  font-weight: 700;
}
.hero__title em { font-style: normal; color: var(--acc); }

.hero__sub {
  margin-bottom: 34px;
  max-width: 520px;
  color: var(--tx-2);
  font-size: 18px;
  line-height: 1.6;
}
.hero__cta {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

/* ============================================================
   Terminal prozor
   ============================================================ */
.term {
  background: var(--bg-card);
  border: 1px solid rgba(255,255,255,.1);
  border-radius: 12px;
  overflow: hidden;
}
.term--float {
  box-shadow: 0 24px 60px rgba(0,0,0,.5);
  animation: floaty 6s ease-in-out infinite;
}

.term__bar {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 12px 16px;
  border-bottom: 1px solid rgba(255,255,255,.07);
}
.dot { width: 11px; height: 11px; border-radius: 50%; display: inline-block; }
.dot--r { background: var(--mac-r); }
.dot--y { background: var(--mac-y); }
.dot--g { background: var(--mac-g); }
.term__title {
  margin-left: 10px;
  font-family: var(--mono);
  font-size: 11px;
  color: var(--tx-muted);
}

.term__body {
  padding: 22px 22px 26px;
  font-family: var(--mono);
  font-size: 13.5px;
  line-height: 2;
}
.term__p   { color: var(--acc); }
.term__out { color: var(--tx-2); }
.term__ok  { color: var(--term-green); }
.term__err { color: var(--err); }

/* linije koje se otkrivaju (reveal - trenutni pop na zadati delay) */
.ln { opacity: 0; animation: reveal .01s forwards; animation-delay: var(--d, 0s); }
.ln--static { opacity: 1; }

/* trepćući kursor */
.cursor {
  display: inline-block;
  width: 9px; height: 17px;
  vertical-align: middle;
  background: var(--acc);
  animation: blink 1.1s step-end infinite;
}

/* ---------- NDA terminal ---------- */
.term__body--nda { font-size: 13px; line-height: 1.9; }
.term__body--nda .term__err { margin-bottom: 16px; }
.nda { display: flex; flex-direction: column; gap: 9px; }
.nda__row {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 12.5px;
  color: var(--tx-2);
}
.nda__lbl { color: var(--term-green); white-space: pre; }
.nda__bar {
  flex: 1;
  height: 12px;
  border-radius: 3px;
}
.nda__bar--a { background: repeating-linear-gradient(90deg, var(--nda-bar) 0 26px, transparent 26px 32px); }
.nda__bar--b { background: repeating-linear-gradient(90deg, var(--nda-bar) 0 40px, transparent 40px 46px); }
.nda__bar--c { background: repeating-linear-gradient(90deg, var(--nda-bar) 0 20px, transparent 20px 26px); }
.nda__bar--d { background: repeating-linear-gradient(90deg, var(--nda-bar) 0 34px, transparent 34px 40px); }
.nda__lock { color: var(--tx-muted); }
.term__comment {
  margin-top: 18px;
  font-size: 12.5px;
  line-height: 1.7;
  color: var(--tx-muted);
}

/* ============================================================
   TECH MARQUEE
   ============================================================ */
.marquee {
  overflow: hidden;
  background: var(--bg-strip);
  border-block: 1px solid rgba(255,255,255,.07);
  padding-block: 16px;
}
.marquee__track {
  display: flex;
  width: max-content;
  animation: marquee 28s linear infinite;
  font-family: var(--mono);
  font-size: 13px;
  color: var(--tx-muted);
  white-space: nowrap;
}
.mq   { padding: 0 18px; }
.mq-s { color: var(--acc); }

/* ============================================================
   Sekcije
   ============================================================ */
.section { padding: 64px var(--pad); }
.section--usluge { padding: 88px var(--pad) 40px; }
.section--kontakt { padding: 40px var(--pad) 90px; }

.mono-pre {
  font-family: var(--mono);
  font-size: 13px;
  color: var(--acc);
  margin-bottom: 12px;
}
.h2 {
  font-size: clamp(30px, 3.4vw, 42px);
  font-weight: 700;
  letter-spacing: -.01em;
  line-height: 1.1;
  margin-bottom: 44px;
}

/* Usluge grid */
.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 18px;
}
.card {
  background: var(--bg-card);
  border: 1px solid rgba(255,255,255,.08);
  border-radius: 12px;
  padding: 26px;
  transition: transform .2s ease, border-color .2s ease;
}
.card:hover { transform: translateY(-4px); border-color: var(--acc); }
.card__dir {
  font-family: var(--mono);
  font-size: 12px;
  color: var(--acc);
  margin-bottom: 14px;
}
.card__title { font-size: 19px; font-weight: 600; margin-bottom: 10px; }
.card__text { color: var(--tx-2); font-size: 14.5px; line-height: 1.6; }

/* ============================================================
   Iskustvo + NDA
   ============================================================ */
.exp__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: start;
}
.exp__left .h2 { margin-bottom: 24px; }
.exp__text {
  color: var(--tx-2);
  font-size: 16px;
  line-height: 1.7;
  max-width: 480px;
  margin-bottom: 36px;
}
.stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}
.stat {
  border: 1px solid rgba(255,255,255,.09);
  border-radius: 10px;
  padding: 18px 16px;
}
.stat__num {
  display: block;
  font-family: var(--mono);
  font-size: 34px;
  font-weight: 700;
  color: var(--acc);
  line-height: 1;
}
.stat__lbl {
  display: block;
  margin-top: 4px;
  font-size: 12.5px;
  color: var(--tx-2);
}

/* ============================================================
   Proces
   ============================================================ */
.steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 18px;
}
.step {
  padding: 22px 4px 0;
  border-top: 2px solid rgba(255,255,255,.14);
}
.step--acc { border-top-color: var(--acc); }
.step__idx {
  font-family: var(--mono);
  font-size: 13px;
  color: var(--acc);
}
.step__title { margin: 10px 0 8px; font-size: 18px; font-weight: 600; }
.step__text { color: var(--tx-2); font-size: 14px; line-height: 1.6; }

/* ============================================================
   Kontakt
   ============================================================ */
.contact {
  position: relative;
  overflow: hidden;
  background: var(--bg-card);
  border: 1px solid rgba(255,255,255,.1);
  border-radius: 16px;
  padding: clamp(36px, 5vw, 64px);
  text-align: center;
}
.contact__glow {
  position: absolute;
  inset: 0;
  background: radial-gradient(600px 240px at 50% 0%, color-mix(in oklab, var(--acc) 14%, transparent), transparent);
  pointer-events: none;
}
.contact__inner { position: relative; }
.contact .mono-pre { margin-bottom: 14px; }
.contact .h2 { margin-bottom: 14px; font-size: clamp(30px, 3.6vw, 46px); }
.contact__sub {
  margin-bottom: 36px;
  color: var(--tx-2);
  font-size: 16px;
}
.contact__btns {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 14px;
}

/* ============================================================
   Footer
   ============================================================ */
.footer {
  border-top: 1px solid rgba(255,255,255,.07);
}
.footer__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  padding: 26px var(--pad);
}
.footer__brand {
  font-family: var(--mono);
  font-size: 12.5px;
  color: var(--tx-muted);
}
.footer__meta {
  font-family: var(--mono);
  font-size: 12px;
  color: var(--tx-muted);
}

/* ============================================================
   Scanlines overlay
   ============================================================ */
.scanlines {
  position: fixed;
  inset: 0;
  z-index: 99;
  pointer-events: none;
  background: repeating-linear-gradient(0deg, rgba(255,255,255,.02) 0 1px, transparent 1px 3px);
}

/* ============================================================
   Animacije
   ============================================================ */
@keyframes blink   { 0%,49% { opacity: 1; } 50%,100% { opacity: 0; } }
@keyframes reveal  { to { opacity: 1; } }
@keyframes marquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }
@keyframes floaty  { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-6px); } }

/* ============================================================
   Responsive (< ~900px: hero/iskustvo u jednu kolonu, hamburger)
   ============================================================ */
@media (max-width: 900px) {
  .hero,
  .exp__grid {
    grid-template-columns: 1fr;
    gap: 36px;
  }
  .hero { padding-top: 56px; }
  /* Footer u kolonu, ravnomjeran razmak izmedju sva tri reda */
  .footer__inner { flex-direction: column; align-items: flex-start; gap: 8px; }
  .footer__meta { line-height: 1.7; text-align: center; align-self: stretch; }

  /* Hamburger meni */
  .nav__burger { display: flex; }
  .nav__links {
    position: fixed;
    top: 58px;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
    padding: 18px var(--pad) 24px;
    background: rgba(13,15,18,.97);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(255,255,255,.07);
    transform: translateY(-150%);
    transition: transform .25s ease;
    font-size: 14px;
  }
  .nav__links.open { transform: translateY(0); }
  .nav__links > a:not(.btn) { padding: 10px 4px; min-height: 44px; display: flex; align-items: center; }
  .nav__cta { min-height: 44px; }
  .lang { min-height: 44px; align-self: flex-start; }
}

@media (max-width: 520px) {
  :root { --pad: 20px; }
  .stats { grid-template-columns: 1fr; }
  .contact__btns .btn { width: 100%; }

  /* Zadnja recenica footera ide cijela u novi red (bez loma na pola) */
  .footer__sep { display: none; }
  .footer__hand { display: block; white-space: nowrap; }
}

/* ============================================================
   Reduced motion
   ============================================================ */
@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; scroll-behavior: auto !important; }
  .ln { opacity: 1 !important; }
}
