:root {
  color-scheme: dark;

  --bg: #06120E;         /* pozadina stranice */
  --surface: #0D1F19;    /* kartice, okviri */
  --stage: #0E281F;      /* scena za preuzimanje */
  --text: #E6F4EC;       /* osnovni tekst */
  --text-2: #9FBBAE;     /* sporedni tekst */
  --leaf: #4FE08F;       /* linkovi i ikone */
  --lime: #25DE16;       /* početak gradijenta iz logotipa */
  --teal: #0E9A76;       /* kraj gradijenta iz logotipa */
  --teal-2: #14B87A;
  --on-accent: #04120C;  /* tekst na zelenom dugmetu */
  --amber: #F6C453;      /* napomene */
  --rule: rgba(230, 244, 236, .12);
  --rule-2: rgba(230, 244, 236, .22);

  --font-display: 'Chakra Petch', 'Segoe UI', system-ui, sans-serif;
  --font-body: 'Manrope', 'Segoe UI', system-ui, sans-serif;

  --wrap: 1120px;
  --gutter: clamp(20px, 5vw, 48px);
  --cut: clamp(28px, 5vw, 72px);   /* visina kosog reza scene */
}

*, *::before, *::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: 88px;
  scrollbar-color: #2B4A3F var(--bg);
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 400 1.0625rem/1.65 var(--font-body);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

::selection { background: rgba(37, 222, 22, .32); color: #fff; }

img { display: block; max-width: 100%; height: auto; }
h1, h2, h3, h4 { margin: 0; font-family: var(--font-display); text-wrap: balance; }
p { margin: 0; max-width: 60ch; text-wrap: pretty; }
a { color: var(--leaf); }
strong { font-weight: 700; }
[hidden] { display: none !important; }

html[lang="sr"] [lang="en"],
html[lang="en"] [lang="sr"] { display: none !important; }

.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
.wrap { width: min(100% - 2 * var(--gutter), var(--wrap)); margin-inline: auto; }

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

.skip {
  position: absolute; left: 12px; top: -64px; z-index: 100;
  padding: 10px 16px; border-radius: 6px;
  background: var(--text); color: var(--bg); font-weight: 700; text-decoration: none;
}
.skip:focus { top: 12px; }

/* ---------- Dugmad ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  min-height: 48px; padding: .75rem 1.6rem;
  border: 0; border-radius: 6px;
  background: linear-gradient(135deg, var(--lime), var(--teal-2));
  color: var(--on-accent);
  font: 700 1.0625rem/1.1 var(--font-display);
  text-decoration: none; text-align: center; cursor: pointer;
  transition: transform .15s ease, box-shadow .15s ease;
}
.btn:hover { transform: translateY(-1px); box-shadow: 0 12px 28px -10px rgba(37, 222, 22, .55); }
.btn-sm { min-height: 40px; padding: .5rem 1.1rem; font-size: 1rem; }
.btn-lg { width: 100%; min-height: 58px; font-size: 1.25rem; }
.btn-ghost { background: transparent; color: var(--text); box-shadow: inset 0 0 0 2px var(--rule-2); }
.btn-ghost:hover { box-shadow: inset 0 0 0 2px var(--lime); }
.btn[aria-disabled="true"] {
  background: rgba(230, 244, 236, .1); color: rgba(230, 244, 236, .72);
  cursor: not-allowed; transform: none; box-shadow: none;
}

.link {
  color: var(--text); font-weight: 700;
  text-decoration: underline; text-decoration-color: var(--teal-2);
  text-decoration-thickness: 2px; text-underline-offset: 6px;
}
.link:hover { text-decoration-color: var(--lime); }

.chip {
  padding: .3rem .8rem; border: 0; border-radius: 999px;
  background: rgba(230, 244, 236, .14); color: var(--text);
  font: 600 .875rem/1.4 var(--font-body); cursor: pointer;
}
.chip:hover { background: rgba(230, 244, 236, .24); }

/* ---------- Zaglavlje ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(6, 18, 14, .84);
  -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px);
  border-bottom: 1px solid transparent;
  transition: border-color .2s ease;
}
.site-header.is-scrolled { border-bottom-color: var(--rule); }
.bar { display: flex; align-items: center; gap: 28px; min-height: 68px; }

.brand {
  display: inline-flex; align-items: center; gap: 12px;
  color: var(--text); text-decoration: none;
  font: 700 1.375rem/1 var(--font-display); letter-spacing: .01em;
}
.nav { display: flex; gap: 6px; margin-left: auto; }
.nav a {
  padding: .45rem .8rem; border-radius: 6px;
  color: var(--text-2); font-weight: 700; font-size: .975rem; text-decoration: none;
}
.nav a:hover { color: var(--text); }
.nav a[aria-current="true"] { color: var(--text); box-shadow: inset 0 -3px 0 var(--lime); border-radius: 0; }

/* Izbor jezika */
.lang {
  display: inline-flex; padding: 3px;
  border: 1px solid var(--rule-2); border-radius: 8px;
  background: rgba(230, 244, 236, .05);
}
.lang-btn {
  min-width: 40px; min-height: 34px; padding: 0 .6rem;
  border: 0; border-radius: 5px; background: transparent; color: var(--text-2);
  font: 700 .875rem/1 var(--font-display); cursor: pointer;
  transition: background .15s ease, color .15s ease;
}
.lang-btn:hover { color: var(--text); }
.lang-btn[aria-pressed="true"] { background: linear-gradient(135deg, var(--lime), var(--teal-2)); color: var(--on-accent); }

/* ---------- Hero ---------- */
.hero {
  padding-block: clamp(36px, 7vw, 88px) clamp(24px, 4vw, 56px);
  background: radial-gradient(60% 90% at 82% 30%, rgba(14, 154, 118, .20), transparent 72%);
}
.hero-grid {
  display: grid; align-items: center;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr);
  gap: clamp(24px, 5vw, 72px);
}
.hero-copy h1 {
  max-width: 11ch;
  font-size: clamp(2.9rem, 7.2vw, 5.25rem);
  font-weight: 700; line-height: 1.02; letter-spacing: -.015em;
}
.lead { max-width: 44ch; margin-top: 24px; color: var(--text-2); font-size: 1.25rem; line-height: 1.6; }
.actions { display: flex; flex-wrap: wrap; align-items: center; gap: 20px 28px; margin-top: 36px; }

.hero-art { justify-self: end; width: 100%; max-width: 560px; filter: drop-shadow(0 30px 50px rgba(37, 222, 22, .16)); }
.hero-art img { width: 100%; animation: unfold 1.1s cubic-bezier(.2, .7, .2, 1) .15s both; }
/* Logotip se otvara dijagonalno, istim smerom kao njegov gradijent. */
@keyframes unfold {
  from { clip-path: polygon(0 0, 0 0, 0 0); }
  to   { clip-path: polygon(0 0, 230% 0, 0 230%); }
}

/* ---------- Sekcije sa naslovom levo i sadržajem desno ---------- */
.section { padding-block: clamp(56px, 9vw, 112px); }
.split {
  display: grid; align-items: start;
  grid-template-columns: minmax(0, 4fr) minmax(0, 7fr);
  gap: clamp(32px, 6vw, 96px);
}
.split-head h2 { font-size: clamp(1.9rem, 3.6vw, 2.75rem); font-weight: 700; line-height: 1.1; }
.split-head p { margin-top: 18px; color: var(--text-2); }
.split-head .btn { margin-top: 26px; }
.muted { color: var(--text-2); }

.ledger { margin: 0; padding: 0; list-style: none; }
.ledger li {
  display: grid; grid-template-columns: 32px 1fr; gap: 22px;
  padding-block: 28px; border-top: 1px solid var(--rule);
}
.ledger li:last-child { border-bottom: 1px solid var(--rule); }
.ledger li:first-child { padding-top: 24px; }
.ledger svg { margin-top: 3px; color: var(--leaf); }
.ledger h3 { font-size: 1.3125rem; font-weight: 600; line-height: 1.25; }
.ledger p { margin-top: 8px; color: var(--text-2); }

/* ---------- Scena za preuzimanje ---------- */
.stage {
  position: relative;
  margin-block: calc(var(--cut) * -1);
  padding-block: calc(var(--cut) + clamp(48px, 8vw, 104px));
  background:
    radial-gradient(50% 60% at 12% 18%, rgba(37, 222, 22, .09), transparent 70%),
    var(--stage);
  color: var(--text);
  clip-path: polygon(0 var(--cut), 100% 0, 100% calc(100% - var(--cut)), 0 100%);
}
.stage-grid {
  display: grid; align-items: start;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: clamp(32px, 6vw, 88px);
}

.dl { position: sticky; top: 96px; }
.dl h2 { font-size: clamp(1.9rem, 3.6vw, 2.75rem); font-weight: 700; line-height: 1.1; }
.stage-lead { margin-top: 14px; color: rgba(230, 244, 236, .78); }

.dl-card {
  margin-top: 28px; padding: 28px;
  background: rgba(230, 244, 236, .07);
  clip-path: polygon(0 0, calc(100% - 28px) 0, 100% 28px, 100% 100%, 0 100%);
}
.meta { display: grid; grid-template-columns: 1fr 1fr; gap: 18px 24px; margin: 0 0 26px; }
.meta dt { color: rgba(230, 244, 236, .68); font-size: .9375rem; }
.meta dd { margin: 2px 0 0; font: 600 1.1875rem/1.3 var(--font-display); }

.hash { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; margin-top: 20px; }
.hash-label { color: rgba(230, 244, 236, .68); font-size: .9375rem; }
.hash code {
  flex: 1 1 100%; order: 3;
  font: .8125rem/1.5 ui-monospace, SFMono-Regular, Consolas, monospace;
  color: rgba(230, 244, 236, .85); overflow-wrap: anywhere;
}
.hash .chip { margin-left: auto; }

.video { margin-top: 20px; }
.video-open {
  display: flex; align-items: center; gap: 12px; width: 100%;
  padding: 16px 20px; border: 0; border-radius: 6px;
  background: rgba(230, 244, 236, .1); color: var(--text);
  font: 600 1.0625rem/1.3 var(--font-display); cursor: pointer; text-align: left;
}
.video-open:hover { background: rgba(230, 244, 236, .18); }
.video-open svg { color: var(--lime); flex: none; }
.video-frame { display: block; width: 100%; aspect-ratio: 16 / 9; border: 0; border-radius: 6px; background: #000; }

/* ---------- Uputstvo ---------- */
.guide-head h3 { font-size: clamp(1.5rem, 2.6vw, 2rem); font-weight: 700; line-height: 1.15; }
.progress { display: flex; align-items: center; gap: 14px; margin-top: 10px; min-height: 30px; }
.progress p { color: rgba(230, 244, 236, .8); font-size: .9375rem; }
.bar-track { height: 4px; margin-top: 12px; background: rgba(230, 244, 236, .14); border-radius: 4px; overflow: hidden; }
.bar-fill {
  --p: 0;
  height: 100%; width: 100%;
  background: linear-gradient(90deg, var(--lime), var(--teal));
  transform-origin: left; transform: scaleX(var(--p));
  transition: transform .35s ease;
}

.steps { margin: 34px 0 0; padding: 0; list-style: none; }
.step { position: relative; display: grid; grid-template-columns: 44px 1fr; gap: 20px; padding-bottom: 34px; }
.step:last-child { padding-bottom: 0; }
/* Linija koja spaja korake */
.step:not(:last-child)::before {
  content: ""; position: absolute; left: 21px; top: 48px; bottom: 4px; width: 2px;
  background: rgba(230, 244, 236, .16);
}
.step-check {
  position: relative; z-index: 1;
  display: grid; place-items: center;
  width: 44px; height: 44px; padding: 0;
  border: 2px solid rgba(230, 244, 236, .4); border-radius: 8px;
  background: var(--stage); color: var(--text);
  font: 700 1.125rem/1 var(--font-display); cursor: pointer;
  transition: background .2s ease, border-color .2s ease, color .2s ease;
}
.step-check:hover { border-color: var(--lime); }
.step-check .step-n, .step-check .step-tick { grid-area: 1 / 1; }
.step-tick { display: none; }
.step-check[aria-pressed="true"] { background: linear-gradient(135deg, var(--lime), var(--teal-2)); border-color: transparent; color: var(--on-accent); }
.step-check[aria-pressed="true"] .step-n { display: none; }
.step-check[aria-pressed="true"] .step-tick { display: block; }

.step-body { padding-top: 5px; }
.step-body h4 { font-size: 1.25rem; font-weight: 600; line-height: 1.3; }
.step-body p { margin-top: 6px; color: rgba(230, 244, 236, .82); max-width: 54ch; }
.step-body strong { color: var(--text); }
.step.is-done .step-body h4 { color: rgba(230, 244, 236, .62); }

.note {
  margin-top: 44px; padding: 20px 24px;
  border-left: 4px solid var(--amber);
  background: rgba(246, 196, 83, .09);
}
.note h4 { color: var(--amber); font-size: 1.0625rem; font-weight: 600; }
.note p { margin-top: 6px; color: rgba(230, 244, 236, .85); font-size: .975rem; }

/* ---------- Izgled launchera ---------- */
.shots { position: relative; isolation: isolate; }
.shots::before {
  content: ""; position: absolute; z-index: -1; left: 0; right: 0; top: 18%; bottom: 0; pointer-events: none;
  background: radial-gradient(48% 52% at 50% 52%, rgba(14, 154, 118, .20), transparent 72%);
}
.shots-head { text-align: center; }
.shots-head h2 { font-size: clamp(1.9rem, 3.6vw, 2.75rem); font-weight: 700; line-height: 1.1; }
.shots-head p { margin: 14px auto 0; color: var(--text-2); }

.shots-stage { max-width: 960px; margin: clamp(28px, 4vw, 44px) auto 0; }

/* Prazno stanje: dok nema slika */
.shots-empty {
  display: grid; place-content: center; justify-items: center; gap: 16px;
  min-height: clamp(220px, 30vw, 340px); padding: 28px 20px; text-align: center;
  border: 2px dashed var(--rule-2); border-radius: 12px;
  background: radial-gradient(closest-side, rgba(14, 154, 118, .14), transparent), rgba(230, 244, 236, .03);
}
.shots-empty img { width: clamp(52px, 8vw, 72px); height: auto; }
.shots-empty p { margin: 0 auto; color: var(--text-2); font: 600 clamp(1rem, 2vw, 1.1875rem)/1.3 var(--font-display); }

/* Video sa okvirom i sjajem */
.showcase { margin: 0; }
.showcase-frame {
  overflow: hidden;
  border-radius: 12px; background: #050E0A;
  box-shadow:
    0 0 0 1px var(--rule-2),
    0 44px 80px -36px rgba(0, 0, 0, .85),
    0 0 90px -30px rgba(37, 222, 22, .28);
}
.showcase-frame video { display: block; width: 100%; aspect-ratio: 16 / 9; object-fit: contain; background: #050E0A; }
.showcase figcaption { margin-top: 16px; color: var(--text-2); font-size: .9375rem; text-align: center; }

/* ---------- Pitanja ---------- */
.faq-list details { border-top: 1px solid var(--rule); }
.faq-list details:last-child { border-bottom: 1px solid var(--rule); }
.faq-list summary {
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
  padding: 22px 0; cursor: pointer; list-style: none;
  font: 600 1.1875rem/1.35 var(--font-display);
}
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary:hover { color: var(--leaf); }
.faq-list summary::after {
  content: ""; flex: none; width: 16px; height: 16px;
  background:
    linear-gradient(var(--leaf), var(--leaf)) center / 100% 2px no-repeat,
    linear-gradient(var(--leaf), var(--leaf)) center / 2px 100% no-repeat;
  transition: transform .2s ease;
}
.faq-list details[open] summary::after { transform: rotate(45deg); }
.faq-list details p { padding: 0 40px 24px 0; color: var(--text-2); }

/* ---------- Podnožje ---------- */
.footer { border-top: 1px solid var(--rule); padding-block: 40px 48px; }
.foot-top { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 20px 32px; }
.foot-nav { display: flex; flex-wrap: wrap; gap: 8px 22px; }
.foot-nav a { color: var(--text-2); font-weight: 700; text-decoration: none; }
.foot-nav a:hover { color: var(--text); text-decoration: underline; text-underline-offset: 5px; }
.legal { margin-top: 18px; color: var(--text-2); font-size: .875rem; max-width: 70ch; }
.foot-top + .legal { margin-top: 28px; }

/* ---------- 404 ---------- */
.lost {
  display: grid; place-items: center; min-height: 100svh; padding: 32px var(--gutter); text-align: center;
  background: radial-gradient(50% 50% at 50% 38%, rgba(14, 154, 118, .20), transparent 72%);
}
.lost img { width: min(220px, 55vw); margin: 0 auto 28px; }
.lost h1 { font-size: clamp(2.2rem, 6vw, 3.5rem); font-weight: 700; line-height: 1.05; }
.lost p { margin: 16px auto 32px; color: var(--text-2); }

/* ---------- Manji ekrani ---------- */
@media (max-width: 900px) {
  .hero-grid, .split, .stage-grid { grid-template-columns: minmax(0, 1fr); }
  .hero-art { justify-self: start; max-width: 380px; }
  .dl { position: static; }
  .faq-list details p { padding-right: 0; }
}

@media (max-width: 720px) {
  .bar { flex-wrap: wrap; gap: 0 16px; padding-top: 8px; }
  .brand { margin-right: auto; }
  .nav { order: 3; flex: 0 0 100%; margin: 0 -8px; overflow-x: auto; }
  .nav a { white-space: nowrap; }
}

@media (max-width: 520px) {
  .dl-card { padding: 22px; }
  .meta { grid-template-columns: 1fr 1fr; gap: 16px; }
  .step { grid-template-columns: 40px 1fr; gap: 16px; }
  .step-check { width: 40px; height: 40px; }
  .step:not(:last-child)::before { left: 19px; top: 44px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}