/* =============================================
   MATRIX MENI — Premium Futuristic Site
   ============================================= */

:root {
  --clr-bg:         #070E0B;
  --clr-bg-alt:     #0F241A;
  --clr-surface:    #152E20;
  --clr-frame:      #0A1A12;
  --clr-border:     rgba(110, 196, 119, .1);
  --clr-accent:     #6EC477;
  --clr-accent-dim: #3D8B47;
  --clr-accent-bright: #8EF298;
  --clr-text:       #E2EDE5;
  --clr-text-muted: #7FA88B;
  --clr-glow:       rgba(110, 196, 119, .4);
  --clr-glow-strong:rgba(110, 196, 119, .7);

  --ff-brand: 'Orbitron', sans-serif;
  --ff-body:  'DM Sans', sans-serif;
  --ff-slogan: 'Exo 2', system-ui, sans-serif;

  --ease-out: cubic-bezier(.22, 1, .36, 1);
  --ease-expo: cubic-bezier(.16, 1, .3, 1);
  --duration: .4s;

  --frame-pad: 28px;

  /* sken-linija: visina putanje i trajanje (JS ažurira prema stvarnoj visini .site-root) */
  --scan-travel-px: 3200px;
  --scan-doc-duration: 36s;
}

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

html {
  scroll-behavior: smooth;
  scrollbar-width: none;
  -ms-overflow-style: none;
}
html::-webkit-scrollbar { display: none; }

body {
  font-family: var(--ff-body);
  font-size: 16px;
  line-height: 1.6;
  color: var(--clr-text);
  background: var(--clr-bg);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

/* Omotač cele stranice — sken-linija meri visinu od vrha do dna sadržaja */
.site-root {
  position: relative;
  isolation: isolate;
}

a { color: inherit; text-decoration: none; }

/* =============================================
   PAGE FRAME — windowed layout
   ============================================= */
.page-frame {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 var(--frame-pad);
}

/* =============================================
   DESKTOP — full-viewport ambient gradient (behind frame)
   One fixed layer, no filters — stays smooth while scrolling
   ============================================= */
@media (min-width: 1024px) {
  html {
    background-color: var(--clr-bg);
  }

  body {
    background: transparent;
  }

  body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    width: 100%;
    height: 100%;
    min-height: 100vh;
    min-height: 100dvh;
    pointer-events: none;
    z-index: 0;
    background:
      radial-gradient(ellipse 130% 95% at 50% -30%, rgba(110, 196, 119, 0.1) 0%, transparent 50%),
      radial-gradient(ellipse 75% 95% at 108% 28%, rgba(61, 139, 71, 0.08) 0%, transparent 46%),
      radial-gradient(ellipse 70% 90% at -8% 72%, rgba(142, 242, 152, 0.06) 0%, transparent 44%),
      radial-gradient(ellipse 110% 70% at 50% 108%, rgba(15, 36, 26, 0.55) 0%, transparent 58%),
      linear-gradient(
        168deg,
        #040907 0%,
        #070e0b 18%,
        #0a1510 42%,
        #08120e 68%,
        #050a08 100%
      );
    background-repeat: no-repeat;
    background-size: 100% 100%;
  }

  .page-frame {
    position: relative;
    z-index: 1;
  }
}

.container {
  width: 100%;
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 24px;
}

.section {
  padding: 100px 0;
  position: relative;
  border-radius: 20px;
}

/* Sections with alternate bg get the "panel" look */
.why-us,
.contact {
  background: var(--clr-bg-alt);
  border: 1px solid var(--clr-border);
  margin: 8px 0;
}

.features,
.how-it-works {
  background: var(--clr-frame);
  border-radius: 20px;
  margin: 8px 0;
}

.section__title {
  font-family: var(--ff-brand);
  font-size: clamp(1.5rem, 4vw, 2.25rem);
  font-weight: 700;
  text-align: center;
  margin-bottom: 56px;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--clr-accent);
  text-shadow: 0 0 30px rgba(110,196,119,.2);
  position: relative;
}

.section__title::after {
  content: '';
  display: block;
  width: 60px;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--clr-accent), transparent);
  margin: 16px auto 0;
  box-shadow: 0 0 12px var(--clr-glow);
}

/* =============================================
   GLOBAL SCANLINE — put od vrha do dna cele stranice (skroluje sa sadržajem)
   ============================================= */
.scanline {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  width: 100%;
  height: 2px;
  z-index: 200;
  pointer-events: none;
  will-change: transform;
  opacity: 0.55;
  border-radius: 1px;
  background: linear-gradient(
    90deg,
    transparent 0%,
    rgba(61, 139, 71, 0.2) 15%,
    var(--clr-accent-bright) 50%,
    rgba(61, 139, 71, 0.2) 85%,
    transparent 100%
  );
  box-shadow:
    0 0 14px rgba(110, 196, 119, 0.45),
    0 0 28px rgba(110, 196, 119, 0.2);
  transform: translateY(0);
  animation: scanDocTravel var(--scan-doc-duration, 36s) linear infinite;
}

@keyframes scanDocTravel {
  0% {
    transform: translateY(0);
  }
  100% {
    transform: translateY(calc(var(--scan-travel-px, 3200px) - 2px));
  }
}

/* =============================================
   REVEAL ANIMATIONS
   ============================================= */
.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity .3s ease-out, transform .3s ease-out;
  will-change: opacity, transform;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

.features__grid .card:nth-child(1) { transition-delay: 0s; }
.features__grid .card:nth-child(2) { transition-delay: .08s; }
.features__grid .card:nth-child(3) { transition-delay: .16s; }
.features__grid .card:nth-child(4) { transition-delay: .24s; }
.features__grid .card:nth-child(5) { transition-delay: .32s; }

.steps .step:nth-child(3) { transition-delay: .12s; }
.steps .step:nth-child(5) { transition-delay: .24s; }

/* =============================================
   SECTION DIVIDERS
   ============================================= */
.section-divider {
  height: 1px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
  padding: 0 40px;
}

.section-divider__line {
  width: 100%;
  max-width: 800px;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--clr-border), rgba(110,196,119,.15), var(--clr-border), transparent);
  position: relative;
}

.section-divider__line::after {
  content: '';
  position: absolute;
  top: -1px;
  left: -20%;
  width: 30%;
  height: 3px;
  background: linear-gradient(90deg, transparent, rgba(110,196,119,.4), transparent);
  box-shadow: 0 0 10px rgba(110,196,119,.15);
  display: none;
}

/* =============================================
   HUD TOP BAR
   ============================================= */
.hud-bar {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 32px;
  z-index: 10;
  border-bottom: 1px solid rgba(110,196,119,.06);
  animation: fadeUp .5s .02s var(--ease-expo) both;
}

.hud-bar__left,
.hud-bar__center {
  display: flex;
  align-items: center;
  gap: 8px;
}

.hud-bar__right {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 10px;
}

.hud-bar__dot {
  width: 6px;
  height: 6px;
  background: var(--clr-accent);
  border-radius: 50%;
  box-shadow: 0 0 6px var(--clr-glow);
}

.hud-bar__label {
  font-family: var(--ff-brand);
  font-size: clamp(0.7rem, 2.1vw, 0.95rem);
  font-weight: 500;
  letter-spacing: .12em;
  color: var(--clr-accent-dim);
  text-transform: uppercase;
}

.hud-bar__domain {
  font-family: var(--ff-brand);
  font-size: .6rem;
  font-weight: 600;
  letter-spacing: .1em;
  color: rgba(110,196,119,.25);
  text-transform: uppercase;
}

.hud-bar__coord {
  font-family: var(--ff-brand);
  font-size: .55rem;
  font-weight: 400;
  letter-spacing: .06em;
  color: rgba(110,196,119,.2);
}

.hud-bar__coord--mobile {
  display: none;
  color: rgba(110,196,119,.38);
  font-size: .52rem;
  letter-spacing: .05em;
  text-align: right;
  max-width: 200px;
  line-height: 1.35;
}

/* =============================================
   HERO
   ============================================= */
.hero {
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
  -webkit-tap-highlight-color: transparent;
  background: var(--clr-frame);
  border-radius: 0 0 20px 20px;
}

#particleCanvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 1;
}

.hero__bg-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(110,196,119,.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(110,196,119,.03) 1px, transparent 1px);
  background-size: 50px 50px;
  mask-image: radial-gradient(ellipse 70% 60% at 50% 50%, black 10%, transparent 70%);
  -webkit-mask-image: radial-gradient(ellipse 70% 60% at 50% 50%, black 10%, transparent 70%);
  opacity: .5;
}

.hero__glow {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  pointer-events: none;
  will-change: transform;
  contain: strict;
}

.hero__glow--1 {
  width: 600px;
  height: 600px;
  background: rgba(110,196,119,.12);
  top: -20%;
  left: -15%;

}

.hero__glow--2 {
  width: 450px;
  height: 450px;
  background: rgba(60,139,71,.1);
  bottom: -15%;
  right: -10%;
}

.hero__glow--3 {
  width: 300px;
  height: 300px;
  background: rgba(142,242,152,.06);
  top: 30%;
  right: 20%;
}

.hero__inner {
  text-align: center;
  position: relative;
  z-index: 2;
}

/* ---------- Language switcher (dropdown) ---------- */
.lang-switcher {
  position: relative;
  -webkit-tap-highlight-color: transparent;
}

/* U HUD-u, ispod koordinata — skroluje sa herom */
.lang-switcher--hud {
  position: relative;
  z-index: 12;
  animation: fadeUp .5s .1s var(--ease-expo) both;
}

.lang-switcher--hud .lang-switcher__dropdown {
  left: auto;
  right: 0;
  transform: none;
}

.lang-switcher--hud .lang-switcher__toggle {
  min-width: 158px;
  padding: 9px 15px;
  font-size: .68rem;
}

.lang-switcher__toggle {
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-width: 172px;
  padding: 11px 18px;
  font-family: var(--ff-brand);
  font-size: .72rem;
  font-weight: 600;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--clr-text);
  background: rgba(15, 36, 26, .92);
  border: 1px solid var(--clr-border);
  border-radius: 100px;
  cursor: pointer;
  transition: border-color .2s, box-shadow .2s;
  position: relative;
  overflow: hidden;
}

.lang-switcher__toggle:hover {
  border-color: rgba(110,196,119,.2);
}

.lang-switcher.is-open .lang-switcher__toggle {
  border-color: rgba(110,196,119,.28);
  box-shadow: 0 0 24px rgba(110,196,119,.1);
}

.lang-switcher__current {
  color: var(--clr-accent);
}

.lang-switcher__chevron {
  flex-shrink: 0;
  opacity: .5;
  transition: transform .28s var(--ease-out);
}

.lang-switcher.is-open .lang-switcher__chevron {
  transform: rotate(180deg);
  opacity: .75;
}

.lang-switcher__dropdown {
  position: absolute;
  top: calc(100% + 10px);
  left: 50%;
  transform: translateX(-50%);
  width: max-content;
  min-width: 228px;
  padding: 6px;
  background: rgba(8, 22, 15, .97);
  border: 1px solid rgba(110,196,119,.12);
  border-radius: 14px;
  box-shadow:
    0 16px 48px rgba(0,0,0,.5),
    0 0 0 1px rgba(110,196,119,.05);
  flex-direction: column;
  gap: 2px;
  display: flex;
  z-index: 101;
}

/* display:flex pregazi HTML [hidden] — mora eksplicitno */
.lang-switcher__dropdown[hidden] {
  display: none !important;
  pointer-events: none;
}

.lang-switcher__option {
  display: block;
  width: 100%;
  text-align: left;
  padding: 12px 16px;
  font-family: var(--ff-body);
  font-size: .84rem;
  font-weight: 500;
  letter-spacing: .02em;
  color: var(--clr-text-muted);
  background: transparent;
  border: none;
  border-radius: 10px;
  cursor: pointer;
  transition: background .15s ease, color .15s ease;
}

.lang-switcher__option:hover {
  color: var(--clr-text);
  background: rgba(110,196,119,.07);
}

.lang-switcher__option.is-active {
  color: var(--clr-accent-bright);
  background: rgba(110,196,119,.12);
}

/* ---------- Hero Title ---------- */
.hero__title-wrap {
  position: relative;
  display: inline-block;
  margin-bottom: 20px;
  overflow: hidden;
}

.hero__title {
  font-family: var(--ff-brand);
  font-size: clamp(2.8rem, 9vw, 6rem);
  font-weight: 900;
  letter-spacing: .1em;
  line-height: 1.1;
  color: var(--clr-text);
  position: relative;
  text-shadow: 0 0 30px var(--clr-glow);
  animation: titleIn .4s var(--ease-expo) both;
}

.hero__title-scanline {
  display: block;
  position: absolute;
  left: -8%;
  width: 116%;
  height: 3px;
  top: 0;
  pointer-events: none;
  border-radius: 2px;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(142, 242, 152, 0.25) 35%,
    rgba(142, 242, 152, 0.95) 50%,
    rgba(142, 242, 152, 0.25) 65%,
    transparent
  );
  box-shadow: 0 0 16px rgba(110, 196, 119, 0.55);
  animation: heroTitleScan 3.2s ease-in-out infinite;
  z-index: 2;
  opacity: 0.85;
}

@keyframes heroTitleScan {
  0% {
    top: 0;
    opacity: 0.35;
  }
  50% {
    opacity: 1;
  }
  100% {
    top: calc(100% - 3px);
    opacity: 0.35;
  }
}

@keyframes titleIn {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: translateY(0); }
}

.hero__slogan {
  font-family: var(--ff-slogan);
  font-size: clamp(1.22rem, 4.5vw, 2.05rem);
  font-weight: 600;
  letter-spacing: .045em;
  line-height: 1.25;
  color: var(--clr-accent);
  margin-bottom: 18px;
  text-shadow: 0 0 22px rgba(110,196,119,.32), 0 0 48px rgba(110,196,119,.12);
  animation: fadeUp .5s .1s var(--ease-expo) both;
  font-feature-settings: 'kern' 1, 'liga' 1;
}

.hero__subtitle {
  font-size: clamp(.95rem, 2vw, 1.15rem);
  color: var(--clr-text-muted);
  max-width: 520px;
  margin: 0 auto 44px;
  animation: fadeUp .5s .18s var(--ease-expo) both;
}

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(24px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ---------- CTA Button ---------- */
.btn {
  display: inline-block;
  font-family: var(--ff-brand);
  font-size: .85rem;
  font-weight: 600;
  letter-spacing: .08em;
  text-transform: uppercase;
  padding: 18px 44px;
  border-radius: 100px;
  border: none;
  cursor: pointer;
  transition: all .2s var(--ease-out);
  animation: fadeUp .5s .25s var(--ease-expo) both;
  position: relative;
  overflow: hidden;
  -webkit-tap-highlight-color: transparent;
}

.btn__text { position: relative; z-index: 1; }

.btn--primary {
  background: var(--clr-accent);
  color: var(--clr-bg);
  box-shadow: 0 0 20px var(--clr-glow), 0 4px 12px rgba(0,0,0,.25);
}

.btn__shimmer { display: none; }

.btn--primary:hover {
  background: var(--clr-accent-bright);
  box-shadow: 0 0 30px var(--clr-glow), 0 4px 16px rgba(0,0,0,.25);
  transform: translateY(-3px) scale(1.02);
}

/* =============================================
   FEATURE CARDS
   ============================================= */
.features__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 24px;
}

.card {
  background: rgba(15, 36, 26, .6);
  border: 1px solid var(--clr-border);
  border-radius: 16px;
  padding: 40px 28px 36px;
  text-align: center;
  transition: transform .2s var(--ease-out), border-color .2s, box-shadow .2s;
  position: relative;
  overflow: hidden;
  will-change: transform;
  -webkit-tap-highlight-color: transparent;
  isolation: isolate;
}

/* Soft clockwise rim light — blurred wide wedge, no hard edge */
.card__border {
  display: block;
  position: absolute;
  left: 50%;
  top: 50%;
  width: 185%;
  height: 185%;
  margin: 0;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  pointer-events: none;
  z-index: 0;
  opacity: 0.42;
  filter: blur(26px);
  will-change: transform;
  background: conic-gradient(
    from 0deg,
    rgba(7, 14, 11, 0) 0deg,
    rgba(7, 14, 11, 0) 55deg,
    rgba(110, 196, 119, 0.04) 105deg,
    rgba(190, 248, 200, 0.11) 148deg,
    rgba(142, 242, 152, 0.14) 168deg,
    rgba(110, 196, 119, 0.09) 198deg,
    rgba(110, 196, 119, 0.035) 238deg,
    rgba(7, 14, 11, 0) 295deg,
    rgba(7, 14, 11, 0) 360deg
  );
  animation: rimLightCW 14s linear infinite;
}

.card:hover .card__border {
  opacity: 0.58;
  filter: blur(28px);
}

@keyframes rimLightCW {
  from { transform: translate(-50%, -50%) rotate(0deg); }
  to   { transform: translate(-50%, -50%) rotate(360deg); }
}

.card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 130% 95% at 50% -10%, rgba(142,242,152,.12) 0%, rgba(110,196,119,.05) 38%, transparent 68%);
  opacity: 0;
  transition: opacity .35s ease-out;
  pointer-events: none;
}

.card:hover {
  border-color: rgba(110,196,119,.25);
  transform: translateY(-4px);
  box-shadow: 0 6px 24px rgba(0,0,0,.25);
}

.card:hover::before { opacity: 1; }

.card__corner {
  position: absolute;
  width: 14px;
  height: 14px;
  opacity: 0;
  transition: opacity .15s;
  z-index: 2;
}

.card:hover .card__corner { opacity: .5; }

.card__corner--tl { top: 8px; left: 8px; border-top: 2px solid var(--clr-accent); border-left: 2px solid var(--clr-accent); }
.card__corner--tr { top: 8px; right: 8px; border-top: 2px solid var(--clr-accent); border-right: 2px solid var(--clr-accent); }
.card__corner--bl { bottom: 8px; left: 8px; border-bottom: 2px solid var(--clr-accent); border-left: 2px solid var(--clr-accent); }
.card__corner--br { bottom: 8px; right: 8px; border-bottom: 2px solid var(--clr-accent); border-right: 2px solid var(--clr-accent); }

.card__icon {
  width: 56px;
  height: 56px;
  margin: 0 auto 22px;
  color: var(--clr-accent);
  position: relative;
  z-index: 1;
  transition: transform .2s var(--ease-out);
}

.card:hover .card__icon { transform: scale(1.06); }

.card__icon svg { width: 100%; height: 100%; }

.card__title {
  font-family: var(--ff-brand);
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: .04em;
  margin-bottom: 10px;
  position: relative;
  z-index: 1;
}

.card__text {
  font-size: .92rem;
  color: var(--clr-text-muted);
  line-height: 1.6;
  position: relative;
  z-index: 1;
}

/* =============================================
   TOUCH / CLICK — soft radial light (no sharp edges)
   ============================================= */
.features,
.how-it-works,
.why-us,
.contact,
.badge,
.contact__phone,
.contact__btn {
  -webkit-tap-highlight-color: transparent;
}

.touch-glow {
  position: absolute;
  left: var(--tg-x, 50%);
  top: var(--tg-y, 50%);
  width: var(--tg-size, 200px);
  height: var(--tg-size, 200px);
  margin: 0;
  border-radius: 50%;
  transform: translate(-50%, -50%) scale(0.25);
  pointer-events: none;
  z-index: 0;
  opacity: 0;
  background: radial-gradient(
    circle closest-side,
    rgba(220, 255, 230, 0.2) 0%,
    rgba(170, 245, 185, 0.11) 15%,
    rgba(110, 196, 119, 0.065) 38%,
    rgba(110, 196, 119, 0.02) 58%,
    transparent 76%
  );
  animation: touchGlowBloom 0.92s cubic-bezier(0.22, 0.92, 0.28, 1) forwards;
}

@keyframes touchGlowBloom {
  0% {
    transform: translate(-50%, -50%) scale(0.2);
    opacity: 0;
  }
  12% {
    opacity: 1;
  }
  52% {
    transform: translate(-50%, -50%) scale(1);
    opacity: 0.55;
  }
  100% {
    transform: translate(-50%, -50%) scale(1.08);
    opacity: 0;
  }
}

@media (prefers-reduced-motion: reduce) {
  .touch-glow { animation: none; display: none; }
}

/* =============================================
   WHY US
   ============================================= */
.why-us__content {
  max-width: 720px;
  margin: 0 auto;
  text-align: center;
  position: relative;
}

.why-us__text {
  font-size: clamp(1rem, 2.2vw, 1.2rem);
  line-height: 1.8;
  color: var(--clr-text);
  margin-bottom: 40px;
}

.why-us__badges {
  display: flex;
  justify-content: center;
  gap: 20px;
  flex-wrap: wrap;
}

.badge {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--ff-brand);
  font-size: .72rem;
  font-weight: 500;
  letter-spacing: .04em;
  text-transform: uppercase;
  color: var(--clr-accent);
  padding: 10px 20px;
  border: 1px solid var(--clr-border);
  border-radius: 100px;
  background: rgba(110,196,119,.03);
  transition: all .2s var(--ease-out);
  position: relative;
  overflow: hidden;
}

/* badge shimmer removed for performance */

.badge:hover {
  border-color: rgba(110,196,119,.3);
}

.badge svg { width: 20px; height: 20px; flex-shrink: 0; }

/* =============================================
   HOW IT WORKS
   ============================================= */
.steps {
  max-width: 640px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: stretch;
}

.step {
  display: flex;
  align-items: flex-start;
  gap: 28px;
  padding: 32px;
  background: rgba(15, 36, 26, .55);
  border: 1px solid var(--clr-border);
  border-radius: 16px;
  transition: transform .2s var(--ease-out), border-color .2s, box-shadow .2s;
  position: relative;
  overflow: hidden;
  -webkit-tap-highlight-color: transparent;
  isolation: isolate;
}

.step::before {
  content: '';
  position: absolute;
  left: 50%;
  top: 50%;
  width: 175%;
  height: 175%;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  pointer-events: none;
  z-index: 0;
  opacity: 0.32;
  filter: blur(24px);
  will-change: transform;
  background: conic-gradient(
    from 40deg,
    rgba(7, 14, 11, 0) 0deg,
    rgba(7, 14, 11, 0) 55deg,
    rgba(110, 196, 119, 0.035) 100deg,
    rgba(175, 240, 190, 0.09) 145deg,
    rgba(142, 242, 152, 0.11) 165deg,
    rgba(110, 196, 119, 0.07) 195deg,
    rgba(110, 196, 119, 0.03) 230deg,
    rgba(7, 14, 11, 0) 290deg,
    rgba(7, 14, 11, 0) 360deg
  );
  animation: rimLightCW 18s linear infinite;
}

.step:hover::before {
  opacity: 0.46;
}

.step:hover {
  border-color: rgba(110,196,119,.25);
}

.step__number-wrap,
.step__content {
  position: relative;
  z-index: 1;
}

.step__number-wrap {
  flex-shrink: 0;
  width: 56px;
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.step__ring {
  position: absolute;
  inset: 0;
  border: 2px solid rgba(110,196,119,.12);
  border-radius: 50%;
}

.step__number {
  font-family: var(--ff-brand);
  font-size: 1.3rem;
  font-weight: 900;
  color: var(--clr-accent);
  text-shadow: 0 0 20px var(--clr-glow);
  position: relative;
  z-index: 1;
}

.step__title {
  font-family: var(--ff-brand);
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: .04em;
  margin-bottom: 8px;
}

.step__text {
  font-size: .92rem;
  color: var(--clr-text-muted);
  line-height: 1.6;
}

.step-connector {
  width: 2px;
  height: 36px;
  margin: 0 auto;
  position: relative;
  background: rgba(110,196,119,.08);
  border-radius: 2px;
  overflow: hidden;
}

.step-connector__pulse { display: none; }

/* =============================================
   CONTACT
   ============================================= */
.contact__inner {
  text-align: center;
  max-width: 520px;
  margin: 0 auto;
}

.contact__text {
  font-size: clamp(1rem, 2.2vw, 1.2rem);
  color: var(--clr-text-muted);
  margin-bottom: 28px;
}

.contact__text--lead {
  font-family: var(--ff-brand);
  /* Isti odnos dimenzija kao naslov sekcije (80% od .section__title clamp) */
  font-size: clamp(1.2rem, 3.2vw, 1.8rem);
  font-weight: 700;
  line-height: 1.35;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--clr-accent);
  text-shadow: none;
}

.contact__phone {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  font-family: var(--ff-brand);
  font-size: clamp(1.2rem, 3.5vw, 1.8rem);
  font-weight: 700;
  letter-spacing: .04em;
  color: var(--clr-accent);
  padding: 22px 44px;
  border: 1px solid var(--clr-border);
  border-radius: 16px;
  background: rgba(110,196,119,.03);
  position: relative;
  margin-bottom: 20px;
  text-decoration: none;
  cursor: pointer;
  transition: background .2s, border-color .2s, transform .2s, color .2s;
}

.contact__phone:hover {
  background: rgba(110,196,119,.08);
  border-color: rgba(110,196,119,.28);
  transform: translateY(-2px);
  color: var(--clr-accent-bright);
}

.contact__phone:focus-visible {
  outline: 2px solid var(--clr-accent);
  outline-offset: 3px;
}

.contact__phone:visited {
  color: var(--clr-accent);
}

.contact__phone svg {
  width: 28px;
  height: 28px;
  flex-shrink: 0;
}

.contact__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
  align-items: stretch;
}

.contact__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-width: 158px;
  padding: 14px 22px;
  font-family: var(--ff-brand);
  font-size: .72rem;
  font-weight: 600;
  letter-spacing: .06em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--clr-accent);
  border: 1px solid var(--clr-border);
  border-radius: 14px;
  background: rgba(15, 36, 26, .55);
  transition: background .2s, border-color .2s, transform .2s, color .2s;
  -webkit-tap-highlight-color: transparent;
}

.contact__btn:hover {
  background: rgba(110,196,119,.08);
  border-color: rgba(110,196,119,.28);
  transform: translateY(-2px);
  color: var(--clr-accent-bright);
}

.contact__btn--viber {
  border-color: rgba(102, 92, 172, .35);
  color: #b8aee8;
}

.contact__btn--viber:hover {
  border-color: rgba(142, 130, 220, .5);
  background: rgba(102, 92, 172, .12);
  color: #d4ccf5;
}

.contact__btn-icon {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
}

.contact__btn-icon.icon-viber-logo {
  width: 22px;
  height: 22px;
}

/* =============================================
   HERO → KONTAKT prelaz (full-screen HUD)
   ============================================= */
.contact-jump {
  position: fixed;
  inset: 0;
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 28px;
  min-height: 100vh;
  min-height: 100dvh;
  box-sizing: border-box;
  padding: env(safe-area-inset-top, 0) env(safe-area-inset-right, 0) env(safe-area-inset-bottom, 0) env(safe-area-inset-left, 0);
  background: #020805;
  overflow: hidden;
  pointer-events: none;
  -webkit-tap-highlight-color: transparent;
}

.contact-jump[hidden] {
  display: none !important;
}

.contact-jump:not([hidden]) {
  pointer-events: auto;
  touch-action: none;
  overscroll-behavior: none;
  isolation: isolate;
}

.contact-jump__grid {
  position: absolute;
  inset: -30%;
  background-image:
    linear-gradient(rgba(110, 196, 119, 0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(110, 196, 119, 0.06) 1px, transparent 1px);
  background-size: 56px 56px;
  transform-origin: center;
  animation: cj-grid-pulse 0.55s ease-in-out infinite alternate;
  pointer-events: none;
}

@keyframes cj-grid-pulse {
  from { opacity: 0.35; transform: scale(1) translateY(0); }
  to { opacity: 0.7; transform: scale(1.02) translateY(-6px); }
}

.contact-jump__vignette {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 55% 45% at 50% 50%, transparent 0%, rgba(2, 8, 5, 0.4) 100%),
    linear-gradient(180deg, rgba(110, 196, 119, 0.07) 0%, transparent 22%, transparent 78%, rgba(61, 139, 71, 0.06) 100%);
  pointer-events: none;
}

.contact-jump__bars {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.contact-jump__bar {
  position: absolute;
  left: -5%;
  width: 110%;
  height: 4px;
  background: linear-gradient(
    90deg,
    transparent 0%,
    rgba(110, 196, 119, 0.15) 20%,
    rgba(142, 242, 152, 0.55) 50%,
    rgba(110, 196, 119, 0.15) 80%,
    transparent 100%
  );
  opacity: 0;
  filter: blur(0.5px);
}

.contact-jump.is-enter .contact-jump__bar {
  animation: cj-bar-sweep 0.72s var(--ease-expo) forwards;
}

.contact-jump__bar:nth-child(1) { top: 18%; animation-delay: 0.02s; }
.contact-jump__bar:nth-child(2) { top: 38%; height: 2px; animation-delay: 0.1s; }
.contact-jump__bar:nth-child(3) { top: 52%; animation-delay: 0.18s; }
.contact-jump__bar:nth-child(4) { top: 67%; height: 3px; animation-delay: 0.08s; }
.contact-jump__bar:nth-child(5) { top: 81%; animation-delay: 0.24s; }

@keyframes cj-bar-sweep {
  0% { transform: translateX(-100%) skewX(-12deg); opacity: 0; }
  15% { opacity: 1; }
  100% { transform: translateX(100%) skewX(-12deg); opacity: 0; }
}

.contact-jump__ring {
  position: absolute;
  width: min(320px, 78vw);
  height: min(320px, 78vw);
  border: 1px solid rgba(110, 196, 119, 0.22);
  border-radius: 50%;
  box-shadow:
    0 0 40px rgba(110, 196, 119, 0.12),
    inset 0 0 60px rgba(110, 196, 119, 0.04);
  pointer-events: none;
  animation: cj-ring-expand 0.95s var(--ease-expo) forwards;
}

.contact-jump.is-exit .contact-jump__ring {
  animation: cj-ring-fade 0.45s ease-out forwards;
}

@keyframes cj-ring-expand {
  from { transform: scale(0.35); opacity: 0; }
  40% { opacity: 1; }
  to { transform: scale(1); opacity: 0.35; }
}

@keyframes cj-ring-fade {
  to { transform: scale(1.08); opacity: 0; }
}

.contact-jump__hud {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  text-align: center;
  padding: 0 24px;
}

.contact-jump__tag {
  font-family: var(--ff-brand);
  font-size: 0.58rem;
  font-weight: 600;
  letter-spacing: 0.42em;
  color: rgba(127, 168, 139, 0.75);
  text-transform: uppercase;
  animation: cj-tag-flicker 0.22s ease-in-out 6 alternate;
}

@keyframes cj-tag-flicker {
  from { opacity: 0.55; }
  to { opacity: 1; }
}

.contact-jump__dest {
  font-family: var(--ff-brand);
  font-size: clamp(1rem, 4.2vw, 1.55rem);
  font-weight: 800;
  letter-spacing: 0.42em;
  padding-left: 0.42em;
  color: var(--clr-accent-bright);
  text-transform: uppercase;
  text-shadow:
    0 0 24px var(--clr-glow),
    0 0 48px rgba(110, 196, 119, 0.35);
  position: relative;
}

.contact-jump__dest::after {
  content: attr(data-text);
  position: absolute;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  padding-left: 0.42em;
  color: rgba(142, 242, 152, 0.35);
  clip-path: inset(0 55% 0 0);
  animation: cj-glitch-shift 0.1s steps(2) 10;
  pointer-events: none;
}

@keyframes cj-glitch-shift {
  0%, 100% { transform: translate(0, 0); }
  50% { transform: translate(2px, -1px); }
}

.contact-jump.is-enter {
  animation: cj-veil-in 0.44s var(--ease-expo) forwards;
}

.contact-jump.is-exit {
  animation: cj-veil-out 0.54s var(--ease-expo) forwards;
}

@keyframes cj-veil-in {
  0% {
    clip-path: inset(44% 0 44% 0);
    opacity: 0.2;
  }
  100% {
    clip-path: inset(0 0 0 0);
    opacity: 1;
  }
}

@keyframes cj-veil-out {
  0% {
    clip-path: inset(0 0 0 0);
    opacity: 1;
  }
  100% {
    clip-path: inset(0 0 62% 0);
    opacity: 0;
  }
}

/* Telefon / mali ekran: kraći prelaz, bez skupih efekata */
@media (max-width: 768px) {
  .contact-jump {
    gap: 20px;
  }

  .contact-jump.is-enter {
    animation-duration: 0.34s;
  }

  .contact-jump.is-exit {
    animation-duration: 0.42s;
  }

  .contact-jump__grid {
    animation: none;
    opacity: 0.42;
    transform: none;
    background-size: 72px 72px;
  }

  .contact-jump__vignette {
    background:
      radial-gradient(ellipse 55% 45% at 50% 50%, transparent 0%, rgba(2, 8, 5, 0.45) 100%),
      linear-gradient(180deg, rgba(110, 196, 119, 0.05) 0%, transparent 30%, transparent 70%, rgba(61, 139, 71, 0.04) 100%);
  }

  .contact-jump__bar {
    filter: none;
  }

  .contact-jump.is-enter .contact-jump__bar {
    animation-duration: 0.48s;
  }

  .contact-jump__ring {
    box-shadow: 0 0 28px rgba(110, 196, 119, 0.1);
    animation-duration: 0.58s;
  }

  .contact-jump.is-exit .contact-jump__ring {
    animation-duration: 0.36s;
  }

  .contact-jump__tag {
    font-size: 0.52rem;
    letter-spacing: 0.28em;
    animation-iteration-count: 4;
  }

  .contact-jump__dest {
    font-size: clamp(0.88rem, 5vw, 1.2rem);
    letter-spacing: 0.28em;
    padding-left: 0.28em;
    text-shadow:
      0 0 16px var(--clr-glow),
      0 0 28px rgba(110, 196, 119, 0.28);
  }

  .contact-jump__dest::after {
    display: none;
  }

  .contact-jump__hud {
    gap: 10px;
    padding-left: max(16px, env(safe-area-inset-left, 0px));
    padding-right: max(16px, env(safe-area-inset-right, 0px));
  }
}

/* Desktop: hint za kompozitor tokom clip-path animacije */
@media (min-width: 769px) {
  .contact-jump.is-enter,
  .contact-jump.is-exit {
    will-change: clip-path, opacity;
  }
}

/* =============================================
   FOOTER
   ============================================= */
.footer {
  padding: 56px 0 48px;
  border-top: 1px solid var(--clr-border);
  background: var(--clr-frame);
  border-radius: 0 0 20px 20px;
  position: relative;
  overflow: hidden;
  margin-bottom: 16px;
}

.footer::before {
  content: '';
  position: absolute;
  top: -1px;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(110,196,119,.3), transparent);
  opacity: .4;
}

.footer__inner { text-align: center; }

.footer__brand-wrap {
  position: relative;
  display: inline-block;
  margin-bottom: 12px;
}

.footer__brand {
  font-family: var(--ff-brand);
  font-size: clamp(1.8rem, 5vw, 2.5rem);
  font-weight: 900;
  letter-spacing: .12em;
  color: var(--clr-accent);
  position: relative;
  text-shadow:
    0 0 20px var(--clr-glow),
    0 0 60px rgba(110,196,119,.25),
    0 0 100px rgba(110,196,119,.12);
  animation: neonPulse 3s ease-in-out infinite alternate;
}

@keyframes neonPulse {
  0%   { text-shadow: 0 0 20px var(--clr-glow), 0 0 60px rgba(110,196,119,.2); }
  100% { text-shadow: 0 0 30px var(--clr-glow-strong), 0 0 80px rgba(110,196,119,.3); }
}

/* =============================================
   RESPONSIVE
   ============================================= */

/* --- Mobile (up to 768px) --- */
@media (max-width: 768px) {
  :root { --frame-pad: 10px; }

  /* Scroll: avoid smooth-scroll jank; kill heavy layers & continuous animations */
  html { scroll-behavior: auto; }

  .scanline {
    opacity: 0.42;
    height: 2px;
    box-shadow:
      0 0 10px rgba(110, 196, 119, 0.35),
      0 0 22px rgba(110, 196, 119, 0.15);
  }

  #particleCanvas { display: none !important; }

  .hero__glow { display: none !important; }

  .hero__bg-grid {
    opacity: 0.22;
    mask-image: none;
    -webkit-mask-image: none;
  }

  .card__border { display: none !important; }

  .step::before {
    content: none !important;
    display: none !important;
  }

  .card { will-change: auto; }

  .reveal { will-change: auto; }

  .footer__brand {
    animation: none !important;
    text-shadow:
      0 0 22px var(--clr-glow),
      0 0 48px rgba(110,196,119,.22);
  }

  .section__title {
    text-shadow: 0 0 14px rgba(110,196,119,.14);
  }

  .section { padding: 64px 0; border-radius: 16px; }
  .hero { border-radius: 0 0 16px 16px; }
  .footer { border-radius: 0 0 16px 16px; }
  .section__title { margin-bottom: 36px; }

  .features__grid { grid-template-columns: 1fr; gap: 14px; }
  .card { padding: 28px 22px; }

  .why-us__badges { gap: 10px; }
  .badge { font-size: .62rem; padding: 8px 14px; }

  .step { gap: 18px; padding: 22px; }
  .step__number-wrap { width: 44px; height: 44px; }
  .step__number { font-size: 1.1rem; }

  .contact__phone { padding: 16px 28px; }
  .contact__btn { min-width: 140px; padding: 12px 18px; font-size: .65rem; }

  .lang-switcher--hud .lang-switcher__toggle {
    min-width: 142px;
    padding: 8px 12px;
    font-size: .6rem;
    gap: 8px;
  }
  .lang-switcher__dropdown {
    min-width: 196px;
    padding: 5px;
  }
  .lang-switcher__option {
    padding: 11px 14px;
    font-size: .8rem;
  }

  .hud-bar { padding: 14px 16px; }
  .hud-bar__domain { display: none; }
  .hud-bar__coord--desktop { display: none; }
  .hud-bar__coord--mobile { display: block; }

  .hud-bar__dot {
    width: 6px;
    height: 6px;
    box-shadow: 0 0 6px var(--clr-glow);
  }

  .hud-bar__label {
    font-size: clamp(0.74rem, 3.6vw, 0.88rem);
    font-weight: 600;
    letter-spacing: 0.085em;
  }

  .hero__title { font-size: clamp(2.2rem, 11vw, 3.5rem); }
}

/* --- Small phones (up to 480px) --- */
@media (max-width: 480px) {
  :root { --frame-pad: 6px; }

  .hud-bar__label {
    font-size: clamp(0.76rem, 3.9vw, 0.92rem);
    letter-spacing: 0.08em;
  }

  .container { padding: 0 14px; }
  .hero__title { letter-spacing: .04em; }
  .why-us__badges { flex-direction: column; align-items: center; }
  .contact__phone { flex-direction: column; gap: 8px; padding: 18px 22px; }
  .contact__actions { flex-direction: column; align-items: stretch; }
  .contact__btn { width: 100%; min-width: 0; }
  .section { border-radius: 12px; }
  .hero { border-radius: 0 0 12px 12px; }
  .footer { border-radius: 0 0 12px 12px; margin-bottom: 8px; }
}

/* --- Tablet (769px - 1023px) --- */
@media (min-width: 769px) {
  .features__grid { grid-template-columns: repeat(2, 1fr); }
}

/* --- Desktop (1024px+) --- */
@media (min-width: 1024px) {
  :root { --frame-pad: 32px; }
  .features__grid { grid-template-columns: repeat(5, 1fr); }
  .card { padding: 36px 20px 32px; }
  .section { padding: 100px 0; }
}

/* --- Large desktop (1440px+) --- */
@media (min-width: 1440px) {
  :root { --frame-pad: 48px; }
}

/* --- Ultra-wide (1800px+) --- */
@media (min-width: 1800px) {
  :root { --frame-pad: 60px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
  .scanline {
    display: block;
    animation: none !important;
    transform: translateY(min(32vh, calc(var(--scan-travel-px, 1200px) * 0.28)));
    opacity: 0.22;
  }
  .hero__title-scanline {
    animation: none !important;
    top: 50%;
    opacity: 0.4;
    transform: translateY(-50%);
  }
  .card__border,
  .step::before {
    animation: none !important;
    opacity: 0.22;
  }
  .contact-jump,
  .contact-jump * {
    animation: none !important;
  }
}
