/* =========================================================
   RESET & OSNOVNI STILOVI (IDENTIČNO KAO NA OSTALIM STRANICAMA)
   ========================================================= */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: "Montserrat", "Inter", sans-serif;
  color: #ffffff;
  background: #E1C485;
  line-height: 1.6;
  overflow-x: hidden;
}

.container {
  width: 95%;
  max-width: 1180px;
  margin: 0 auto;
}

/* =========================================================
   HEADER (IDENTIČAN OSTALIM STRANICAMA, BEZ "O NAMA")
   ========================================================= */
.site-header {
  position: sticky;
  top: 0;
  background: #E1C485;
  border-bottom: 1px solid rgba(0, 0, 0, 0.15);
  z-index: 40;
  font-family: "Inter", sans-serif;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 0;
}

.logo img {
  height: 4vw;
  min-height: 30px;
  width: auto;
  display: block;
}

.main-nav {
  display: flex;
  gap: 20px;
  align-items: center;
}

.main-nav a {
  color: #ffffff;
  text-decoration: none;
  font-size: clamp(12px, 1.5vw, 15px);
  font-weight: 600;
  padding: 6px 8px;
  position: relative;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.main-nav a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 2px;
  background: #ffffff;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.25s ease;
}

.main-nav a:hover {
  transform: translateY(-1px);
}

.main-nav a:hover::after {
  transform: scaleX(1);
}

/* =========================================================
   GLAVNA SCENA ZA LUPU I SADRŽAJ
   ========================================================= */
.analiza-main {
  padding: 44px 0 30px;
  min-height: 85vh;
}

.scan-stage {
  position: relative;
  max-width: 920px;
  margin: 0 auto;
}

/* =========================================================
   ORIGINALNA SLIKA LUPE KOJA PRATI SKROL
   ========================================================= */
.loupe-scanner {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  margin: 0 auto;
  width: clamp(200px, 25vw, 280px);
  z-index: 25;
  pointer-events: none;
  opacity: 0.92;
  will-change: transform, opacity;
  transition: opacity 0.5s ease;
}

.loupe-scanner.fade-out {
  opacity: 0;
  pointer-events: none;
}

.loupe-inner {
  width: 150%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.loupe-inner img {
  width: 100%;
  height: auto;
  display: block;
  filter: drop-shadow(0 14px 28px rgba(0, 0, 0, 0.18));
}

/* =========================================================
   DUGME DESNO "PRIKAŽI SVE ODMAH"
   ========================================================= */
.skip-anim-btn {
  position: fixed;
  bottom: 26px;
  right: 26px;
  z-index: 50;
  background: rgba(255, 255, 255, 0.22);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.48);
  color: #ffffff;
  font-family: "Montserrat", "Inter", sans-serif;
  font-size: 13.5px;
  font-weight: 700;
  letter-spacing: 0.3px;
  padding: 11px 22px;
  border-radius: 14px;
  cursor: pointer;
  box-shadow: 0 10px 26px rgba(0, 0, 0, 0.12);
  transition: transform 0.2s ease, background 0.2s ease, opacity 0.35s ease;
}

.skip-anim-btn:hover {
  background: rgba(255, 255, 255, 0.32);
  transform: translateY(-2px);
}

.skip-anim-btn.hidden {
  opacity: 0;
  pointer-events: none;
}

/* =========================================================
   EFEKAT OTKRIVANJA (IZOŠTRAVANJA) TEKSTA KAKO LUPA PROĐE
   ========================================================= */
.reveal-block {
  opacity: 0.18;
  transform: translateY(18px);
  filter: blur(3.5px);
  transition:
    opacity 0.65s cubic-bezier(0.22, 1, 0.36, 1),
    transform 0.65s cubic-bezier(0.22, 1, 0.36, 1),
    filter 0.65s ease;
  will-change: opacity, transform, filter;
}

.reveal-block.revealed {
  opacity: 1;
  transform: translateY(0);
  filter: blur(0);
}

/* =========================================================
   TIPOGRAFIJA I KARTICE TEKSTA
   ========================================================= */
.intro-header-block {
  text-align: center;
  margin-bottom: 30px;
}

.market-header-block {
  text-align: center;
  margin-top: 48px;
  margin-bottom: 24px;
}

.page-title {
  font-family: "Montserrat", sans-serif;
  font-size: clamp(32px, 5vw, 62px);
  font-weight: 800;
  letter-spacing: 1px;
  line-height: 1.05;
  display: flex;
  align-items: baseline;
  justify-content: center;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 10px;
}

.page-title .amp {
  font-size: 0.45em;
  align-self: center;
}

.page-title .script-sub {
  font-family: "Alex Brush", cursive;
  font-weight: 400;
  font-size: clamp(54px, 7.5vw, 96px);
  line-height: 0.9;
}

.hero-sub {
  font-family: "Lora", Georgia, serif;
  font-size: clamp(18px, 2vw, 24px);
  font-style: italic;
  color: rgba(255, 255, 255, 0.95);
}

.text-card {
  background: rgba(255, 255, 255, 0.18);
  border: 1px solid rgba(255, 255, 255, 0.38);
  border-radius: 22px;
  padding: 28px 32px;
  margin-bottom: 32px;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.06);
}

.lead-p {
  font-family: "Lora", Georgia, serif;
  font-size: clamp(16.5px, 1.45vw, 19.5px);
  color: #ffffff;
  text-align: center;
}

.section-block {
  margin-bottom: 34px;
  padding: 8px 6px;
}

.section-block h2 {
  font-family: "Montserrat", sans-serif;
  font-size: clamp(22px, 2.6vw, 31px);
  font-weight: 800;
  margin-bottom: 14px;
  color: #ffffff;
  text-shadow: 0 2px 6px rgba(0, 0, 0, 0.08);
}

.section-block p {
  font-family: "Inter", sans-serif;
  font-size: clamp(15px, 1.25vw, 17px);
  color: rgba(255, 255, 255, 0.96);
  margin-bottom: 14px;
}

/* Boks sa krunicama (♛) */
.metrics-box {
  background: #ffffff;
  color: #1c1c1e;
  border-radius: 26px;
  padding: 32px 36px;
  margin-bottom: 38px;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.12);
}

.metrics-box h3 {
  font-family: "Montserrat", sans-serif;
  font-size: clamp(18px, 2vw, 22px);
  font-weight: 700;
  color: #1c1c1e;
  margin-bottom: 20px;
}

.crown-list {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
  gap: 14px 24px;
}

.crown-list li {
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: "Inter", sans-serif;
  font-size: 15.5px;
  font-weight: 600;
  color: #2c2c2e;
  background: #f8f5ee;
  padding: 12px 16px;
  border-radius: 14px;
  border: 1px solid rgba(225, 196, 133, 0.45);
}

.crown-icon {
  color: #c7a14a;
  font-size: 20px;
  line-height: 1;
  flex-shrink: 0;
}

/* Koraci procesa (1 - 5) */
.process-header h3 {
  font-family: "Montserrat", sans-serif;
  font-size: clamp(20px, 2.2vw, 25px);
  font-weight: 800;
  margin-bottom: 18px;
}

.process-steps {
  display: flex;
  flex-direction: column;
  gap: 18px;
  margin-bottom: 40px;
}

.step-card {
  display: flex;
  align-items: flex-start;
  gap: 20px;
  background: rgba(255, 255, 255, 0.16);
  border: 1px solid rgba(255, 255, 255, 0.35);
  border-radius: 20px;
  padding: 24px 28px;
}

.step-num {
  width: 44px;
  height: 44px;
  border-radius: 14px;
  background: #ffffff;
  color: #c7a14a;
  font-family: "Montserrat", sans-serif;
  font-weight: 800;
  font-size: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.1);
}

.step-body h4 {
  font-family: "Montserrat", sans-serif;
  font-size: clamp(17px, 1.6vw, 20px);
  font-weight: 700;
  margin-bottom: 6px;
  color: #ffffff;
}

.step-body p {
  font-family: "Inter", sans-serif;
  font-size: 15.5px;
  color: rgba(255, 255, 255, 0.95);
}

/* Završni tekstualni blok pre grafikona */
.highlight-ending {
  background: rgba(255, 255, 255, 0.18);
  border: 1px solid rgba(255, 255, 255, 0.4);
  border-radius: 24px;
  padding: 30px 34px;
}

.final-quote {
  font-family: "Lora", Georgia, serif;
  font-size: clamp(17px, 1.5vw, 20px);
  font-style: italic;
  font-weight: 600;
  color: #ffffff;
  margin-top: 12px;
  padding-top: 14px;
  border-top: 1px solid rgba(255, 255, 255, 0.35);
}

/* =========================================================
   GRAFIKON NA DNU KOJI SE POJAVLJUJE KADA LUPA STIGNE DO KRAJA
   ========================================================= */
.chart-ending-wrapper {
  opacity: 0;
  transform: translateY(34px);
  pointer-events: none;
  transition: opacity 0.9s ease, transform 0.9s cubic-bezier(0.22, 1, 0.36, 1);
  margin-top: 38px;
}

.chart-ending-wrapper.visible {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

.chart-card {
  background: #ffffff;
  border-radius: 28px;
  padding: 22px;
  box-shadow: 0 26px 60px rgba(0, 0, 0, 0.16);
  overflow: hidden;
}

.chart-card img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 16px;
}

/* =========================================================
   CTA BOX & FOOTER (IDENTIČNO KAO NA OSTALIM STRANICAMA)
   ========================================================= */
.cta-box {
  margin-top: 44px;
  background: rgba(255, 255, 255, 0.18);
  border: 1px solid rgba(255, 255, 255, 0.4);
  border-radius: 18px;
  padding: 36px 24px;
  text-align: center;
  font-family: "Inter", sans-serif;
}

.cta-box h3 {
  font-family: "Montserrat", sans-serif;
  font-size: clamp(24px, 3vw, 34px);
  margin-bottom: 10px;
}

.cta-box p {
  margin-bottom: 20px;
  font-size: 16px;
}

.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #ffffff;
  color: #E1C485;
  height: 46px;
  padding: 0 26px;
  border-radius: 12px;
  font-weight: 700;
  text-decoration: none;
  transition: transform 0.2s ease, background 0.2s ease;
}

.btn-primary:hover {
  background: #f3f3f3;
  transform: translateY(-2px);
}

.site-footer {
  border-top: 1px solid rgba(0, 0, 0, 0.25);
  padding: 24px 0;
  margin-top: 56px;
  background: #E1C485;
  font-family: "Inter", sans-serif;
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: white;
}

.footer-links {
  display: flex;
  gap: 16px;
}

.footer-links a {
  color: #ffffff;
  text-decoration: none;
}

/* =========================================================
   MOBILNI PRIKAZ (ISPOD 900px) - BEZ HORIZONTALNOG SKROLA
   ========================================================= */
@media (max-width: 900px) {
  html,
  body {
    max-width: 100%;
    overflow-x: clip;
  }

  .container {
    width: 93%;
  }

  .analiza-main {
    padding: 28px 0 20px;
    overflow-x: clip;
  }

  .scan-stage {
    max-width: 100%;
  }

  /* Na telefonu izjednačavamo inner sa scanner-om da ne štrči 150% udesno van ekrana */
  .loupe-scanner {
    width: clamp(220px, 68vw, 280px);
  }

  .loupe-inner {
    width: 100%;
  }

  .skip-anim-btn {
    bottom: 16px;
    right: 16px;
    padding: 9px 16px;
    font-size: 12.5px;
  }

  .page-title {
    word-break: break-word;
  }

  .text-card,
  .metrics-box,
  .highlight-ending {
    padding: 22px 20px;
    border-radius: 20px;
  }

  .crown-list {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .step-card {
    flex-direction: column;
    gap: 12px;
    padding: 20px;
  }

  .chart-card {
    padding: 12px;
    border-radius: 20px;
  }

  .footer-inner {
    flex-direction: column;
    gap: 8px;
    text-align: center;
    font-size: 13px;
  }
}