/* MAASAI — Noć u savani */

:root {
  --bg: #05060f;
  --fg: #f1f2f8;
  --muted: #9298b8;
  --chalk: rgba(178, 188, 236, .52);
  --chalk-2: rgba(178, 188, 236, .22);
  --lime: #d8ff36;
  --pink: #ff3dbb;
  --cyan: #3df2ff;
  --orange: #ffa234;
  --red: #ff3b5c;
  --yellow: #ffe45c;
  --gutter: clamp(16px, 4vw, 64px);
  --ease: cubic-bezier(.76, 0, .24, 1);
  --font: 'Epilogue', system-ui, -apple-system, 'Segoe UI', sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
.lenis.lenis-stopped { overflow: hidden; }
html, body { overflow-x: clip; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}
body.is-intro { overflow: hidden; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
h1, h2, h3, h4 { margin: 0; font-weight: 800; letter-spacing: -.03em; line-height: .95; }
em { font-style: normal; color: var(--lime); }
::selection { background: var(--lime); color: #000; }
:focus-visible { outline: 2px solid var(--lime); outline-offset: 4px; }

.eyebrow {
  margin: 0 0 22px;
  display: flex; align-items: center; gap: 12px;
  font-size: 12px; font-weight: 600; letter-spacing: .24em; text-transform: uppercase; color: var(--muted);
}
.eyebrow::before { content: ""; width: 26px; height: 1px; background: currentColor; }

/* ---------- Uvod ---------- */
.intro {
  position: fixed; inset: 0; z-index: 100;
  background: #000;
  display: grid; place-items: center;
}
.intro__dot {
  position: absolute; width: 14px; height: 14px; border-radius: 50%;
  background: #b98bff; box-shadow: 0 0 24px 6px rgba(150, 90, 255, .8);
  opacity: 0;
}
.intro__bull { width: min(62vw, 520px); overflow: visible; }
.intro__bull path {
  fill: none; stroke: var(--lime); stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round;
  filter: drop-shadow(0 0 6px rgba(216, 255, 54, .8)) drop-shadow(0 0 18px rgba(216, 255, 54, .45));
}
.intro__word {
  position: absolute; left: 0; right: 0; bottom: 18vh; margin: 0; text-align: center;
  font-size: clamp(28px, 4vw, 54px); font-weight: 800; letter-spacing: .5em; text-indent: .5em;
  color: var(--lime);
  text-shadow: 0 0 8px rgba(216,255,54,.9), 0 0 30px rgba(216,255,54,.5);
  opacity: 0;
}
.intro__hint {
  position: absolute; left: 0; right: 0; bottom: calc(18vh - 40px); margin: 0; text-align: center;
  font-size: 12px; letter-spacing: .3em; text-transform: uppercase; color: #6d6a8f; opacity: 0;
}
.intro__skip {
  position: absolute; right: var(--gutter); bottom: 28px;
  font-size: 13px; letter-spacing: .14em; text-transform: uppercase; color: #6d6a8f;
}
.intro__skip:hover { color: var(--fg); }

/* ---------- Scena ---------- */
.stage { position: fixed; inset: 0; overflow: hidden; z-index: 0; }
.sky {
  position: absolute; inset: 0;
  background: linear-gradient(180deg, #05060f 0%, #0b0e2a 46%, #1a1748 78%, #2a1d52 100%);
}
.sky::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, #2a2a6e 0%, #8d5aa8 38%, #ff8a5c 70%, #ffd27a 100%);
  opacity: var(--dawn, 0);
}
.stars { position: absolute; inset: 0; width: 100%; height: 100%; }
.celestial { position: absolute; inset: 0; width: 100%; height: 100%; }
.moon__disc { fill: #eef0ff; filter: drop-shadow(0 0 30px rgba(200, 210, 255, .55)); }
.moon__crater { fill: #d5d9f2; }
.sun {
  position: absolute; left: 50%; bottom: 0; width: 46vh; height: 46vh; margin-left: -23vh;
  border-radius: 50%;
  background: radial-gradient(circle, #fff3c4 0%, #ffd27a 40%, rgba(255, 138, 92, 0) 70%);
  transform: translateY(100%);
  opacity: 0;
}

.layer { position: absolute; top: 0; left: 0; height: 100%; will-change: transform; }
.art { position: absolute; top: 0; overflow: visible; }

/* Crtež: boje dolaze iz promenljivih, pa ista grupa izgleda kao kreda ili kao neon */
.art path, .art rect, .art circle { fill: none; stroke: var(--ink); stroke-width: calc(var(--k, 1) * 2.1px); stroke-linecap: round; stroke-linejoin: round; }
.art .ghost { opacity: .45; stroke-width: calc(var(--k, 1) * 1.1px); }
.art .hatch { stroke: var(--ink); opacity: .45; stroke-width: calc(var(--k, 1) * 1.2px); }
.art .c-ink { stroke: var(--ink); }
.art .c-grass { stroke: var(--grass); stroke-width: calc(var(--k, 1) * 1.6px); }
.art .c-tree { stroke: var(--tree); }
.art .c-lime { stroke: var(--c-lime); }
.art .c-pink { stroke: var(--c-pink); }
.art .c-cyan { stroke: var(--c-cyan); }
.art .c-orange { stroke: var(--c-orange); }
.art .c-red { stroke: var(--c-red); }
.art .c-yellow { stroke: var(--c-yellow); }
.art .c-snow { stroke: var(--snow); }
.art .fill.c-red { fill: var(--f-red); }
.art .fill.c-lime { fill: var(--f-lime); }
.art .fill.c-cyan { fill: var(--f-cyan); }
.art .fill.c-orange { fill: var(--f-orange); }
.art .fill.c-pink { fill: var(--f-pink); }
.art .bull path { stroke-width: calc(var(--k, 1) * 2.1px / var(--bs, 1)); }
.art .far2 { opacity: .5; }
.art .lbl { fill: var(--label); stroke: none; font-family: var(--font); font-size: 26px; font-weight: 700; letter-spacing: .02em; }
.art .lbl.q { font-size: 110px; font-weight: 800; fill: var(--chalk-2); }
.art .lbl.sign { font-size: 22px; letter-spacing: .08em; }

.art--base {
  --ink: var(--chalk); --grass: var(--chalk); --tree: var(--chalk); --snow: rgba(230, 236, 255, .8);
  --c-lime: var(--chalk); --c-pink: var(--chalk); --c-cyan: var(--chalk); --c-orange: var(--chalk); --c-red: var(--chalk); --c-yellow: var(--chalk);
  --f-red: none; --f-lime: none; --f-cyan: none; --f-orange: none; --f-pink: none;
  --label: rgba(178, 188, 236, .7); --label-q: rgba(178, 188, 236, .22);
}
.art--neon, .art .nv {
  --ink: #8fa2ff; --grass: #5dffb0; --tree: #3df2ff; --snow: #fff;
  --c-lime: var(--lime); --c-pink: var(--pink); --c-cyan: var(--cyan); --c-orange: var(--orange); --c-red: var(--red); --c-yellow: var(--yellow);
  --f-red: rgba(255, 59, 92, .55); --f-lime: rgba(216, 255, 54, .6); --f-cyan: rgba(61, 242, 255, .5); --f-orange: rgba(255, 162, 52, .55); --f-pink: rgba(255, 61, 187, .65);
  --label: #fff; --label-q: rgba(255, 255, 255, .12);
}
.art--neon .glow { --k: 4.2; opacity: .22; }
.art .found { filter: drop-shadow(0 0 8px var(--pink)); }
.art--near .blade { fill: #04050d; stroke: var(--chalk-2); stroke-width: 1.4px; }
.art--near .rock { fill: #04050d; stroke: var(--chalk-2); stroke-width: 1.6px; }
.art--neon .flame { fill: var(--f-orange); stroke-width: 2.4px; mix-blend-mode: screen; }
.art--neon .flame.c-red { fill: var(--f-red); }
.art--neon .flame.c-yellow { fill: rgba(255, 228, 92, .6); }
.art .spark { fill: var(--yellow); stroke: none; }

.lampwin, .firewin { position: absolute; left: 0; top: 0; overflow: hidden; pointer-events: none; }
.lampwin {
  will-change: transform;
  -webkit-mask-image: radial-gradient(closest-side, #000 50%, rgba(0,0,0,.55) 74%, transparent 100%);
          mask-image: radial-gradient(closest-side, #000 50%, rgba(0,0,0,.55) 74%, transparent 100%);
}
.firewin {
  -webkit-mask-image: radial-gradient(closest-side, #000 22%, rgba(0,0,0,.5) 55%, transparent 100%);
          mask-image: radial-gradient(closest-side, #000 22%, rgba(0,0,0,.5) 55%, transparent 100%);
  animation: firelight .18s steps(2) infinite alternate;
}
@keyframes firelight { to { opacity: .88; } }
.lamp-glow {
  position: absolute; left: 0; top: 0; width: 60vh; height: 60vh; margin: -30vh 0 0 -30vh;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(150, 90, 255, .2) 0%, rgba(150, 90, 255, .07) 40%, transparent 70%);
  mix-blend-mode: screen;
  pointer-events: none;
  will-change: transform;
}
.vignette {
  position: absolute; inset: 0; pointer-events: none;
  background:
    linear-gradient(90deg, rgba(5, 6, 15, .88) 0%, rgba(5, 6, 15, .55) 28%, transparent 48%),
    radial-gradient(ellipse at 50% 120%, transparent 50%, rgba(0, 0, 0, .5));
}

/* ---------- Gornja traka ---------- */
.bar {
  position: fixed; top: 0; left: 0; right: 0; z-index: 60;
  display: grid; grid-template-columns: 1fr auto 1fr; align-items: center;
  padding: 18px var(--gutter);
  pointer-events: none;
}
.bar > * { pointer-events: auto; }
.bar__logo { justify-self: start; width: 58px; transition: transform .5s var(--ease); }
.bar__logo img, .bar__logo svg { width: 100%; height: auto; display: block; overflow: visible; }
.bar__logo:hover { transform: rotate(-8deg) scale(1.06); }
.burger { position: relative; width: 52px; height: 52px; border-radius: 50%; }
.burger span { position: absolute; left: 12px; right: 12px; top: 50%; height: 1.5px; background: var(--fg); transition: transform .6s var(--ease), background .3s; }
.burger span:nth-child(1) { transform: translateY(-5px); }
.burger span:nth-child(2) { transform: translateY(5px); }
.burger:hover span { background: var(--lime); }
.menu-open .burger span:nth-child(1) { transform: rotate(45deg); }
.menu-open .burger span:nth-child(2) { transform: rotate(-45deg); }
.pill { justify-self: end; display: inline-flex; align-items: center; gap: 14px; font-weight: 500; }
.pill__plus { position: relative; width: 38px; height: 38px; border-radius: 50%; background: var(--fg); transition: background .3s, transform .6s var(--ease); }
.pill__plus::before, .pill__plus::after { content: ""; position: absolute; left: 50%; top: 50%; width: 14px; height: 2px; margin: -1px 0 0 -7px; background: #000; }
.pill__plus::after { transform: rotate(90deg); }
.pill:hover .pill__plus { background: var(--lime); transform: rotate(90deg); }

/* ---------- Meni ---------- */
.menu {
  position: fixed; inset: 0; z-index: 55;
  background: #04040b;
  visibility: hidden;
  clip-path: circle(0% at 50% 44px);
}
.menu__inner { height: 100%; display: flex; flex-direction: column; justify-content: center; padding: 100px var(--gutter) 60px; }
.menu__list { list-style: none; margin: 0; padding: 0; }
.menu__list li { overflow: hidden; }
.menu__list a { display: flex; align-items: center; gap: clamp(16px, 4vw, 60px); }
.menu__list i { font-style: normal; font-size: 13px; font-weight: 600; color: #565b7c; width: 2em; }
.menu__list span {
  font-size: clamp(42px, 8vw, 116px); font-weight: 700; letter-spacing: -.04em; line-height: 1.08; color: #b0b3c6;
  transition: color .3s, transform .6s var(--ease), text-shadow .3s;
  display: inline-block;
}
.menu__list a:hover span { color: var(--lime); transform: translateX(20px); text-shadow: 0 0 24px rgba(216,255,54,.45); }
.menu__side { margin-top: 48px; display: flex; flex-wrap: wrap; gap: 8px 32px; color: var(--muted); }
.menu__side a:hover { color: var(--lime); }

/* ---------- Table sa tekstom ---------- */
.panels { position: relative; z-index: 10; }
.panel {
  position: fixed; left: var(--gutter); top: 50%; z-index: 10;
  width: min(36vw, 520px);
  transform: translateY(-50%);
  opacity: 0; visibility: hidden;
}
.title { font-size: clamp(54px, 7.2vw, 118px); line-height: .9; letter-spacing: -.05em; margin-bottom: 26px; }
.title > span { display: block; }
.title .word { white-space: nowrap; }
.t-out { color: var(--fg); filter: url(#ol-2); }
.big-num { color: var(--lime); text-shadow: 0 0 40px rgba(216,255,54,.35); }
.lead { margin: 0 0 18px; font-size: clamp(17px, 1.35vw, 21px); color: rgba(241, 242, 248, .86); max-width: 460px; }
.lead strong { color: var(--fg); }
.note { margin: 0; color: var(--muted); max-width: 440px; }
.hint { display: flex; align-items: center; gap: 14px; margin: 34px 0 0; font-size: 14px; color: var(--muted); max-width: 400px; }
.hint__lamp { flex: 0 0 auto; width: 34px; height: 34px; border-radius: 50%; border: 1px solid rgba(185, 139, 255, .7); box-shadow: 0 0 18px rgba(150, 90, 255, .6), inset 0 0 10px rgba(150, 90, 255, .6); animation: lamp 2.4s ease-in-out infinite; }
.hint__touch { display: none; }
@keyframes lamp { 50% { transform: scale(.82); box-shadow: 0 0 30px rgba(150, 90, 255, .9), inset 0 0 14px rgba(150, 90, 255, .8); } }

.svc { position: relative; min-height: 190px; }
.svc__item { position: absolute; inset: 0 auto auto 0; opacity: 0; visibility: hidden; max-width: 440px; }
.svc__item b { display: block; font-size: 13px; letter-spacing: .2em; color: var(--lime); margin-bottom: 8px; }
.svc__item h3 { font-size: clamp(28px, 2.6vw, 40px); margin-bottom: 14px; }
.svc__item p { margin: 0; color: rgba(241, 242, 248, .8); }
.svc__dots { display: flex; gap: 10px; margin-top: 10px; }
.svc__dots i { width: 28px; height: 3px; border-radius: 2px; background: rgba(255,255,255,.18); transition: background .3s, width .4s var(--ease); }
.svc__dots i.on { background: var(--lime); width: 48px; }

.btn {
  display: inline-flex; align-items: center; gap: 18px; margin-top: 14px;
  padding: 18px 28px; border-radius: 999px;
  background: var(--lime); color: #000; font-weight: 700;
  box-shadow: 0 0 0 0 rgba(216,255,54,.4);
  transition: box-shadow .4s, transform .4s var(--ease);
}
.btn i { font-style: normal; transition: transform .4s var(--ease); }
.btn:hover { box-shadow: 0 0 40px 4px rgba(216,255,54,.35); }
.btn:hover i { transform: translateX(6px); }
.mail {
  display: inline-block; margin: 6px 0 12px;
  font-size: clamp(26px, 3vw, 46px); font-weight: 700; letter-spacing: -.03em;
  background: linear-gradient(var(--orange), var(--orange)) left bottom / 0% 3px no-repeat;
  transition: background-size .6s var(--ease), color .3s;
  padding-bottom: 4px;
}
.mail:hover { background-size: 100% 3px; color: var(--orange); }
.phone { display: block; color: var(--muted); font-size: 18px; }
.phone:hover { color: var(--fg); }
.foot { display: grid; grid-template-columns: 1fr 1fr; gap: 32px; margin: 8px 0 26px; }
.foot h4 { font-size: 18px; margin-bottom: 12px; }
.foot p { margin: 0 0 6px; color: rgba(241,242,248,.75); font-size: 15px; }
.foot a:hover, .copy a:hover { color: var(--lime); }
.copy { margin: 0; padding-top: 18px; border-top: 1px dashed rgba(255,255,255,.2); font-size: 13px; color: var(--muted); }

/* ---------- HUD: putanja i UV brojač ---------- */
.hud {
  position: fixed; left: var(--gutter); right: var(--gutter); bottom: 22px; z-index: 50;
  display: flex; align-items: center; gap: 28px;
  pointer-events: none;
}
.route { position: relative; flex: 1; height: 34px; }
.route__line { position: absolute; left: 0; right: 0; top: 50%; height: 1px; background: rgba(255, 255, 255, .18); }
.route__fill { position: absolute; left: 0; top: 0; bottom: 0; width: 100%; background: var(--lime); transform-origin: left; transform: scaleX(0); box-shadow: 0 0 8px var(--lime); }
.route__stops { position: absolute; inset: 0; }
.route__stops button {
  position: absolute; top: 50%; width: 22px; height: 22px; margin: -11px 0 0 -11px;
  pointer-events: auto;
}
.route__stops button::before {
  content: ""; position: absolute; left: 50%; top: 50%; width: 7px; height: 7px; margin: -3.5px;
  border-radius: 50%; background: var(--bg); border: 1px solid rgba(255,255,255,.5);
  transition: background .3s, transform .3s;
}
.route__stops button.on::before { background: var(--lime); border-color: var(--lime); transform: scale(1.3); }
.route__stops button span {
  position: absolute; bottom: 22px; left: 50%; transform: translateX(-50%);
  font-size: 11px; letter-spacing: .14em; text-transform: uppercase; white-space: nowrap; color: var(--muted);
  opacity: 0; transition: opacity .3s;
}
.route__stops button:hover span { opacity: 1; }
.route__bull { position: absolute; top: 3px; left: 0; width: 34px; height: 24px; margin-left: -17px; overflow: visible; }
.route__bull path { fill: var(--lime); stroke: none; filter: drop-shadow(0 0 4px rgba(216,255,54,.7)); }
.uv {
  flex: 0 0 auto; display: flex; align-items: center; gap: 10px;
  padding: 9px 16px 9px 12px; border-radius: 999px;
  border: 1px solid rgba(255, 61, 187, .35); background: rgba(5, 6, 15, .6);
  font-size: 13px; color: var(--muted);
}
.uv__eye { width: 14px; height: 14px; border-radius: 50%; background: var(--pink); box-shadow: 0 0 10px var(--pink); }
.uv__count { color: var(--fg); font-variant-numeric: tabular-nums; }
.uv__count b { color: var(--pink); }
.uv.pop { animation: pop .6s var(--ease); }
@keyframes pop { 40% { transform: scale(1.15); box-shadow: 0 0 30px rgba(255,61,187,.6); } }

.toast {
  position: fixed; left: 50%; bottom: 84px; z-index: 70;
  transform: translate(-50%, 20px);
  padding: 12px 22px; border-radius: 999px;
  background: rgba(10, 8, 26, .9); border: 1px solid rgba(255, 61, 187, .5);
  box-shadow: 0 0 30px rgba(255, 61, 187, .3);
  font-size: 14px; white-space: nowrap;
  opacity: 0; pointer-events: none;
}

.cursor {
  position: fixed; left: 0; top: 0; z-index: 90; width: 10px; height: 10px; margin: -5px 0 0 -5px;
  border-radius: 50%; background: #c9a6ff; box-shadow: 0 0 12px 3px rgba(150, 90, 255, .8);
  pointer-events: none;
  transition: width .3s var(--ease), height .3s var(--ease), margin .3s var(--ease), background .3s;
}
.cursor.is-link { width: 46px; height: 46px; margin: -23px 0 0 -23px; background: rgba(216, 255, 54, .15); box-shadow: 0 0 0 1px var(--lime); }
@media (hover: hover) and (pointer: fine) { body, a, button { cursor: none; } }
@media (hover: none), (pointer: coarse) {
  .cursor { display: none; }
  .hint__desk { display: none; }
  .hint__touch { display: inline; }
}

.scroller { width: 1px; }

/* ---------- Telefon ---------- */
@media (max-width: 820px) {
  .bar { padding-top: 12px; padding-bottom: 12px; }
  .bar__logo { width: 46px; }
  .pill__text { display: none; }
  .pill__plus { width: 34px; height: 34px; }
  .panel { left: var(--gutter); right: var(--gutter); top: 84px; width: auto; transform: none; }
  .title { font-size: clamp(44px, 13vw, 72px); margin-bottom: 16px; }
  .lead { font-size: 16px; }
  .note { font-size: 14px; }
  .hint { margin-top: 18px; }
  .svc { min-height: 170px; }
  .svc__item p { font-size: 15px; }
  .foot { grid-template-columns: 1fr; gap: 14px; }
  .foot p { font-size: 14px; }
  .panel--end .title { font-size: 44px; }
  .sun { width: 34vh; height: 34vh; margin-left: -17vh; }
  .panel { text-shadow: 0 1px 12px rgba(5, 6, 15, .8); }
  .vignette {
    background:
      linear-gradient(180deg, rgba(5, 6, 15, .92) 0%, rgba(5, 6, 15, .7) 34%, transparent 58%),
      radial-gradient(ellipse at 50% 120%, transparent 50%, rgba(0, 0, 0, .5));
  }
  .hud { bottom: max(14px, env(safe-area-inset-bottom)); gap: 14px; }
  .uv__label { display: none; }
  .route__stops button span { display: none; }
  .toast { bottom: 70px; font-size: 13px; }
}

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