/* =========================================================
   VARIJABLE I TEMELJNE POSTAVKE
   ========================================================= */
:root {
  --bg-dark: #0B0F17;
  --bg-card: rgba(17, 24, 39, 0.75);
  --border-subtle: rgba(255, 255, 255, 0.08);
  --border-focus: rgba(16, 185, 129, 0.5);
  --text-main: #F9FAFB;
  --text-muted: #9CA3AF;
  --text-dim: #6B7280;
  --emerald: #10B981;
  --cyan: #06B6D4;
  --amber: #F59E0B;
  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --font-mono: 'JetBrains Mono', monospace;
  --radius-sm: 6px;
  --radius-md: 12px;
  --radius-lg: 16px;
}

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

html {
  scroll-behavior: smooth;
}

body {
  background-color: var(--bg-dark);
  color: var(--text-main);
  font-family: var(--font-sans);
  line-height: 1.6;
  overflow-x: hidden;
  position: relative;
}

/* =========================================================
   POZADINSKI SVJETLOSNI EFEKTI
   ========================================================= */
.bg-ambient {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
}

.ambient-blob {
  position: absolute;
  filter: blur(120px);
  border-radius: 50%;
  opacity: 0.15;
}

.ambient-1 {
  width: 500px;
  height: 500px;
  background: var(--emerald);
  top: -100px;
  left: -100px;
}

.ambient-2 {
  width: 600px;
  height: 600px;
  background: var(--cyan);
  top: 40%;
  right: -150px;
}

.ambient-3 {
  width: 450px;
  height: 450px;
  background: var(--amber);
  bottom: -50px;
  left: 20%;
}

/* =========================================================
   TIPOGRAFIJA I ZAJEDNIČKI ELEMENTI
   ========================================================= */
.gradient-text {
  background: linear-gradient(135deg, #10B981 0%, #06B6D4 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.section-badge {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  font-weight: 700;
  color: var(--emerald);
  background: rgba(16, 185, 129, 0.1);
  border: 1px solid rgba(16, 185, 129, 0.25);
  padding: 0.3rem 0.8rem;
  border-radius: 9999px;
  margin-bottom: 0.8rem;
  text-transform: uppercase;
}

.section-title {
  font-size: 2.2rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  margin-bottom: 0.8rem;
  color: #FFFFFF;
}

.section-desc {
  color: var(--text-muted);
  font-size: 1.05rem;
  max-width: 650px;
  line-height: 1.6;
}

.btn-primary, .btn-secondary {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 600;
  font-size: 0.95rem;
  padding: 0.75rem 1.5rem;
  border-radius: var(--radius-sm);
  text-decoration: none;
  cursor: pointer;
  transition: all 0.2s ease;
  border: none;
}

.btn-primary {
  background: linear-gradient(135deg, #10B981 0%, #059669 100%);
  color: #FFFFFF;
  box-shadow: 0 4px 14px rgba(16, 185, 129, 0.3);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(16, 185, 129, 0.45);
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.05);
  color: #FFFFFF;
  border: 1px solid var(--border-subtle);
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.1);
}

.pulse-dot {
  width: 8px;
  height: 8px;
  background-color: var(--emerald);
  border-radius: 50%;
  display: inline-block;
  box-shadow: 0 0 8px var(--emerald);
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0% { transform: scale(0.95); opacity: 0.8; }
  50% { transform: scale(1.2); opacity: 1; }
  100% { transform: scale(0.95); opacity: 0.8; }
}

/* =========================================================
   ZAGLAVLJE I NAVIGACIJA
   ========================================================= */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(11, 15, 23, 0.8);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border-subtle);
}

.nav-container {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.85rem 1.5rem;
}

.brand-wrapper {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
  color: inherit;
}

.brand-icon img {
  width: 34px;
  height: 34px;
  border-radius: 6px;
  display: block;
}

.brand-title {
  font-size: 1.05rem;
  font-weight: 800;
  letter-spacing: -0.01em;
}

.brand-badge {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  color: var(--emerald);
  background: rgba(16, 185, 129, 0.12);
  padding: 0.15rem 0.4rem;
  border-radius: 4px;
  margin-left: 0.4rem;
  vertical-align: middle;
}

.nav-links {
  display: flex;
  list-style: none;
  gap: 1.5rem;
}

.nav-links a {
  text-decoration: none;
  color: var(--text-muted);
  font-size: 0.9rem;
  font-weight: 500;
  transition: color 0.2s;
}

.nav-links a:hover {
  color: var(--text-main);
}

/* =========================================================
   HERO SEKCIJA
   ========================================================= */
.hero-section {
  max-width: 1000px;
  margin: 4rem auto 3rem;
  padding: 0 1.5rem;
  text-align: center;
  position: relative;
  z-index: 2;
}

.hero-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-subtle);
  padding: 0.4rem 1rem;
  border-radius: 9999px;
  font-size: 0.82rem;
  color: var(--text-muted);
  margin-bottom: 1.5rem;
}

.hero-title {
  font-size: 3.2rem;
  font-weight: 900;
  line-height: 1.15;
  letter-spacing: -0.03em;
  margin-bottom: 1.25rem;
}

.hero-subtitle {
  font-size: 1.15rem;
  color: var(--text-muted);
  line-height: 1.65;
  max-width: 780px;
  margin: 0 auto 2rem;
}

.hero-cta-group {
  display: flex;
  justify-content: center;
  gap: 1rem;
  margin-bottom: 3.5rem;
}

.metrics-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
  background: var(--bg-card);
  backdrop-filter: blur(12px);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 1.5rem;
}

.metric-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.metric-num {
  font-family: var(--font-mono);
  font-size: 1.8rem;
  font-weight: 800;
}

.metric-num.emerald { color: var(--emerald); }
.metric-num.cyan { color: var(--cyan); }
.metric-num.amber { color: var(--amber); }

.metric-label {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-top: 0.25rem;
}

/* =========================================================
   SHOWCASE / SNIMKE ZASLONA
   ========================================================= */
.showcase-section {
  max-width: 1100px;
  margin: 5rem auto;
  padding: 0 1.5rem;
  text-align: center;
  position: relative;
  z-index: 2;
}

.stage-wrapper {
  margin-top: 2rem;
}

.mockup-window {
  background: #161F30;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-subtle);
  overflow: hidden;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.6);
}

.mockup-titlebar {
  background: #0E1524;
  padding: 0.65rem 1rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--border-subtle);
}

.window-dots {
  display: flex;
  gap: 6px;
}

.window-dots span {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.2);
}

.mockup-title-text {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--text-muted);
}

.mockup-live-indicator {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--emerald);
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.screenshot-viewport {
  position: relative;
  background: #000000;
  overflow: hidden;
}

.protected-img {
  width: 100%;
  height: auto;
  display: block;
  user-select: none;
  -webkit-user-drag: none;
}

.watermark-layer {
  position: absolute;
  inset: 0;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-around;
  pointer-events: none;
  opacity: 0.08;
  overflow: hidden;
}

.watermark-token {
  font-family: var(--font-mono);
  font-weight: 800;
  font-size: 1.1rem;
  transform: rotate(-25deg);
  margin: 2rem;
  color: #FFFFFF;
}

.security-blur-shield {
  display: none;
  position: absolute;
  inset: 0;
  background: rgba(11, 15, 23, 0.95);
  backdrop-filter: blur(16px);
  z-index: 50;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  padding: 2rem;
  text-align: center;
}

.anti-grab-overlay {
  position: absolute;
  inset: 0;
  z-index: 10;
}

/* =========================================================
   ZNAČAJKE PROGRAMA (GRID)
   ========================================================= */
.features-section {
  max-width: 1100px;
  margin: 5rem auto;
  padding: 0 1.5rem;
  position: relative;
  z-index: 2;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 1.5rem;
  margin-top: 2.5rem;
}

.feature-card {
  background: var(--bg-card);
  backdrop-filter: blur(12px);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 1.75rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: transform 0.2s, border-color 0.2s;
}

.feature-card:hover {
  transform: translateY(-3px);
  border-color: rgba(255, 255, 255, 0.2);
}

.feature-icon-box {
  font-size: 2rem;
  margin-bottom: 1rem;
}

.feature-card h3 {
  font-size: 1.2rem;
  margin-bottom: 0.6rem;
  color: #FFFFFF;
}

.feature-card p {
  color: var(--text-muted);
  font-size: 0.92rem;
  line-height: 1.55;
}

.feature-pill-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-top: 1.25rem;
}

.feature-pill {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.08);
  padding: 0.2rem 0.5rem;
  border-radius: 4px;
  color: var(--text-muted);
}

/* =========================================================
   SIMULATOR VAGE I ISPLATE
   ========================================================= */
.simulator-section {
  max-width: 1000px;
  margin: 5rem auto;
  padding: 0 1.5rem;
  position: relative;
  z-index: 2;
}

.sim-box {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  background: var(--bg-card);
  backdrop-filter: blur(12px);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 2.2rem;
  margin-top: 2rem;
}

.sim-scale-display {
  background: #06090E;
  border: 2px solid #1E293B;
  border-radius: var(--radius-md);
  padding: 1.75rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  box-shadow: inset 0 2px 10px rgba(0, 0, 0, 0.8);
}

.scale-header-row {
  display: flex;
  justify-content: space-between;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--text-dim);
}

.scale-digits-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin: 1.5rem 0;
}

.scale-huge-number {
  font-family: var(--font-mono);
  font-size: 3.5rem;
  font-weight: 800;
  color: #10B981;
  text-shadow: 0 0 20px rgba(16, 185, 129, 0.4);
}

.scale-unit {
  font-family: var(--font-mono);
  font-size: 1.4rem;
  color: #10B981;
  margin-left: 0.5rem;
}

.scale-status-badge {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  background: rgba(16, 185, 129, 0.15);
  color: #10B981;
  border: 1px solid #10B981;
  padding: 0.25rem 0.6rem;
  border-radius: 4px;
}

.sim-controls {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.sim-control-group {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.sim-control-group label {
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--text-muted);
}

.sim-select {
  background: #111827;
  border: 1px solid var(--border-subtle);
  color: #FFFFFF;
  padding: 0.75rem 1rem;
  border-radius: var(--radius-sm);
  font-size: 0.92rem;
  width: 100%;
}

.sim-slider {
  width: 100%;
  accent-color: var(--emerald);
  cursor: pointer;
}

.sim-result-card {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.5rem;
  background: rgba(0, 0, 0, 0.35);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  padding: 1rem;
  margin-top: auto;
}

.sim-res-val {
  font-family: var(--font-mono);
  font-size: 1.15rem;
  font-weight: 700;
}

.sim-res-val.payout {
  color: var(--emerald);
}

/* =========================================================
   ZAKONSKA USKLAĐENOST (DESKTOP TABLICA)
   ========================================================= */
.compliance-section {
  max-width: 1000px;
  margin: 5rem auto;
  padding: 0 1.5rem;
  position: relative;
  z-index: 2;
}

.compliance-table-card {
  background: var(--bg-card);
  backdrop-filter: blur(12px);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  overflow: hidden;
  margin-top: 2rem;
}

.compliance-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
}

.compliance-table th {
  background: rgba(255, 255, 255, 0.03);
  padding: 1rem 1.25rem;
  font-size: 0.8rem;
  font-family: var(--font-mono);
  text-transform: uppercase;
  color: var(--text-muted);
  border-bottom: 1px solid var(--border-subtle);
}

.compliance-table td {
  padding: 1.2rem 1.25rem;
  border-bottom: 1px solid var(--border-subtle);
  font-size: 0.92rem;
  vertical-align: middle;
}

.compliance-table tr:last-child td {
  border-bottom: none;
}

.law-tag {
  display: inline-block;
  background: rgba(14, 165, 233, 0.15);
  color: #38BDF8;
  border: 1px solid rgba(14, 165, 233, 0.3);
  padding: 0.3rem 0.65rem;
  border-radius: 6px;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  font-weight: 600;
  white-space: nowrap;
}

.check-icon {
  color: var(--emerald);
  font-weight: bold;
  margin-right: 0.4rem;
}

/* =========================================================
   ČESTA PITANJA (FAQ)
   ========================================================= */
.faq-section {
  max-width: 850px;
  margin: 5rem auto;
  padding: 0 1.5rem;
  position: relative;
  z-index: 2;
}

.faq-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.faq-item {
  background: var(--bg-card);
  backdrop-filter: blur(12px);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  overflow: hidden;
  transition: border-color 0.2s;
}

.faq-item[open] {
  border-color: rgba(255, 255, 255, 0.2);
}

.faq-question {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.25rem 1.5rem;
  font-weight: 600;
  cursor: pointer;
  user-select: none;
  list-style: none;
  font-size: 1.02rem;
}

.faq-question::-webkit-details-marker {
  display: none;
}

.faq-icon-arrow {
  font-size: 0.75rem;
  color: var(--text-dim);
  transition: transform 0.2s;
}

.faq-item[open] .faq-icon-arrow {
  transform: rotate(180deg);
}

.faq-answer {
  padding: 0 1.5rem 1.25rem;
  color: var(--text-muted);
  font-size: 0.95rem;
  line-height: 1.6;
  border-top: 1px solid rgba(255, 255, 255, 0.04);
  padding-top: 1rem;
}

/* =========================================================
   KONTAKT SEKCIJA
   ========================================================= */
.contact-section {
  max-width: 1000px;
  margin: 5rem auto;
  padding: 0 1.5rem;
  position: relative;
  z-index: 2;
}

.contact-card {
  align-items: start;
}

/* =========================================================
   PODNOŽJE (FOOTER)
   ========================================================= */
.site-footer {
  border-top: 1px solid var(--border-subtle);
  background: rgba(8, 12, 18, 0.9);
  padding: 4rem 1.5rem 2rem;
  margin-top: 6rem;
  position: relative;
  z-index: 2;
}

.footer-container {
  max-width: 1100px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.5fr;
  gap: 2.5rem;
  margin-bottom: 3rem;
}

.footer-col h4 {
  font-size: 0.95rem;
  color: #FFFFFF;
  margin-bottom: 1rem;
}

.footer-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.footer-links a {
  text-decoration: none;
  color: var(--text-muted);
  font-size: 0.88rem;
  transition: color 0.2s;
}

.footer-links a:hover {
  color: #FFFFFF;
}

.footer-bottom {
  max-width: 1100px;
  margin: 0 auto;
  padding-top: 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.85rem;
  color: var(--text-dim);
}

/* =========================================================
   KOMPLETNA RESPONZIVNOST ZA MOBITELE (do 850px)
   ========================================================= */
@media screen and (max-width: 850px) {

  /* 1. Navigacija i zaglavlje */
  .nav-links,
  .nav-actions {
    display: none;
  }

  .nav-container {
    justify-content: center;
    padding: 1rem;
  }

  /* 2. Hero sekcija */
  .hero-section {
    margin: 2rem auto 2rem;
    padding: 0 1rem;
  }

  .hero-title {
    font-size: 1.85rem;
    line-height: 1.22;
  }

  .hero-subtitle {
    font-size: 0.95rem;
    line-height: 1.55;
  }

  .hero-cta-group {
    flex-direction: column;
    gap: 0.75rem;
    margin-bottom: 2.5rem;
  }

  .metrics-strip {
    grid-template-columns: 1fr 1fr;
    gap: 1rem 0.5rem;
    padding: 1.2rem;
  }

  .metric-num {
    font-size: 1.45rem;
  }

  .metric-label {
    font-size: 0.72rem;
  }

  /* 3. Prebacivanje zakonske tablice u mobilne kartice */
  .compliance-table thead {
    display: none !important;
  }

  .compliance-table,
  .compliance-table tbody {
    display: block !important;
    width: 100% !important;
  }

  .compliance-table tr {
    display: flex !important;
    flex-direction: column !important;
    align-items: flex-start !important;
    gap: 0.65rem !important;
    padding: 1.25rem 1rem !important;
    margin-bottom: 1rem !important;
    background: rgba(255, 255, 255, 0.02) !important;
    border: 1px solid rgba(255, 255, 255, 0.08) !important;
    border-radius: 12px !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }

  .compliance-table td {
    display: block !important;
    width: 100% !important;
    padding: 0 !important;
    border: none !important;
    text-align: left !important;
    box-sizing: border-box !important;
  }

  .compliance-table td:nth-child(1) {
    font-size: 1.05rem !important;
    font-weight: 700 !important;
    color: #FFFFFF !important;
  }

  .compliance-table td:nth-child(2) {
    display: block !important;
    width: 100% !important;
  }

  .law-tag {
    display: inline-block !important;
    width: auto !important;
    max-width: 100% !important;
    white-space: nowrap !important;
    padding: 0.35rem 0.75rem !important;
    font-size: 0.8rem !important;
    border-radius: 6px !important;
    background: rgba(14, 165, 233, 0.18) !important;
    border: 1px solid #0EA5E9 !important;
    color: #38BDF8 !important;
  }

  .compliance-table td:nth-child(3) {
    font-size: 0.92rem !important;
    line-height: 1.55 !important;
    color: var(--text-muted) !important;
    margin-top: 0.25rem !important;
  }

  /* 4. Simulator na mobitelu */
  .sim-box {
    grid-template-columns: 1fr;
    padding: 1.25rem;
    gap: 1.5rem;
  }

  .scale-huge-number {
    font-size: 2.6rem;
  }

  .sim-result-card {
    grid-template-columns: 1fr;
    gap: 0.75rem;
  }

  /* 5. Kontakt kartica i obrazac */
  #contactCard,
  .contact-card {
    grid-template-columns: 1fr !important;
    display: flex !important;
    flex-direction: column !important;
    padding: 1.25rem !important;
    gap: 1.75rem !important;
  }

  .contact-card .section-title {
    font-size: 1.55rem;
  }

  #contactForm {
    width: 100% !important;
  }

  .sim-control-group {
    width: 100% !important;
  }

  .sim-control-group input,
  .sim-select {
    width: 100% !important;
    min-height: 48px !important;
    font-size: 1rem !important;
    box-sizing: border-box !important;
  }

  #formSubmitBtn {
    width: 100% !important;
    min-height: 50px !important;
  }

  /* 6. Podnožje stranice */
  .footer-container {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .footer-bottom {
    flex-direction: column;
    gap: 0.75rem;
    text-align: center;
  }
}