/* ─── RESET & BASE ─────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --bg:        #fffaf6;
  --bg2:       #fff4ec;
  --surface:   #ffffff;
  --border:    #f0dece;
  --accent:    #e8541a;
  --accent2:   #c93a08;
  --orange-light: #ff8c42;
  --text:      #1a1a2e;
  --muted:     #7a6555;
  --radius:    14px;
  --glow:      0 0 40px rgba(232,84,26,0.18);
  --grad:      linear-gradient(135deg, #e8541a 0%, #c93a08 60%, #a02a00 100%);
  --grad-warm: linear-gradient(135deg, #ff8c42 0%, #e8541a 100%);
}

html { scroll-behavior: smooth; }

body {
  font-family: 'Inter', sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  overflow-x: hidden;
}

/* ─── SCROLLBAR ─────────────────────────────────────────────── */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--bg2); }
::-webkit-scrollbar-thumb { background: var(--accent); border-radius: 3px; }

/* ─── UTILITY ───────────────────────────────────────────────── */
.container { max-width: 1160px; margin: 0 auto; padding: 0 24px; }
.accent { color: var(--accent); }
.gradient-text {
  background: linear-gradient(135deg, #ff8c42 0%, var(--accent) 50%, var(--accent2) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ─── NAVBAR ────────────────────────────────────────────────── */
.navbar {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  background: transparent;
  overflow: visible;
}
.navbar-bg {
  position: absolute; top: 0; left: 0; right: 0;
  height: 120px; z-index: 0; pointer-events: none;
  filter: drop-shadow(0 6px 14px rgba(232,84,26,0.13));
}
.navbar-bg svg { width: 100%; height: 120px; display: block; }
.nav-inner {
  max-width: 1160px; margin: 0 auto; padding: 0 24px;
  display: flex; align-items: flex-start; justify-content: space-between;
  height: 120px;
  position: relative; z-index: 1;
  overflow: visible;
}
.nav-inner > ul.nav-links,
.nav-inner > button.hamburger { align-self: center; }
.logo {
  display: flex; align-items: center; justify-content: center;
  text-decoration: none;
  padding: 10px 16px 0;
  margin-left: -24px;
}
.logo-img { height: 92px; width: auto; display: block; }
.logo-img-footer { height: 40px; filter: brightness(0) invert(1); }
/* ─── NAV WAVE (disabled) ───────────────────────────────────── */
.nav-wave { display: none; }
.nav-links { list-style: none; display: flex; gap: 32px; align-items: center; }
.nav-links a { text-decoration: none; color: var(--muted); font-size: 0.9rem; transition: color 0.2s; }
.nav-links a:hover { color: var(--accent); }
.btn-nav {
  background: linear-gradient(135deg, #ff8c42, var(--accent)); color: #fff !important; font-weight: 700;
  padding: 8px 20px; border-radius: 8px; transition: opacity 0.2s !important;
  box-shadow: 0 2px 12px rgba(232,84,26,0.35);
}
.btn-nav:hover { opacity: 0.88; }
.hamburger {
  display: none; background: none; border: none;
  color: var(--accent); font-size: 1.5rem; cursor: pointer;
}
.nav-mobile {
  display: none; list-style: none;
  flex-direction: column; gap: 0;
  background: var(--surface); border-top: 1px solid var(--border);
  padding: 16px 24px;
}
.nav-mobile.open { display: flex; }
.nav-mobile li a {
  display: block; padding: 11px 20px;
  text-decoration: none; color: var(--muted);
  font-size: 0.9rem; font-weight: 600;
  border-radius: 50px;
  border: 1.5px solid var(--border);
  background: var(--bg);
  text-align: center;
  margin-bottom: 8px;
  transition: background 0.2s, color 0.2s, border-color 0.2s;
}
.nav-mobile li a:hover { background: var(--bg2); color: var(--accent); border-color: var(--accent); }
.mobile-link-cta {
  margin-top: 4px;
}
.mobile-link-cta a.btn-nav {
  display: block; text-align: center;
  padding: 12px 20px !important;
  border-radius: 50px !important;
  border: none !important;
  margin-bottom: 0;
  background: linear-gradient(135deg, #ff8c42, var(--accent)) !important;
  color: #fff !important;
}

/* ─── BUTTONS ───────────────────────────────────────────────── */
.btn-primary {
  display: inline-block;
  background: linear-gradient(135deg, #ff8c42, var(--accent), var(--accent2));
  color: #fff; font-weight: 700; font-size: 0.95rem;
  padding: 14px 32px; border-radius: 10px; text-decoration: none;
  border: none; cursor: pointer;
  box-shadow: 0 4px 20px rgba(232,84,26,0.35);
  transition: transform 0.2s, box-shadow 0.2s;
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 8px 28px rgba(232,84,26,0.45); }
.btn-ghost {
  display: inline-block; padding: 14px 32px;
  border: 2px solid var(--accent); color: var(--accent);
  border-radius: 10px; text-decoration: none; font-weight: 700;
  transition: background 0.2s, color 0.2s;
}
.btn-ghost:hover { background: var(--accent); color: #fff; }
.btn-full { width: 100%; text-align: center; padding: 16px; font-size: 1rem; }

/* ─── HERO ──────────────────────────────────────────────────── */
.hero {
  min-height: 100vh; padding: 0;
  position: relative; overflow: hidden;
  display: block;
}
.hero-bg-glow {
  position: absolute; inset: 0;
  background: linear-gradient(135deg, #ff8c42 0%, #e8541a 50%, #a02a00 100%);
  clip-path: polygon(0 0, 100% 0, 100% 65%, 0 100%);
  pointer-events: none; z-index: 0;
}
/* wrapper inside hero for layout */
.hero > .hero-bg-glow + * {
  position: relative; z-index: 1;
}
.hero-content-wrap {
  max-width: 1160px; margin: 0 auto; padding: 145px 24px 100px;
  display: flex; align-items: center; gap: 64px;
  position: relative; z-index: 1;
}
.hero-content { flex: 1; }
.hero-badge {
  display: inline-block;
  background: rgba(255,255,255,0.2); border: 1px solid rgba(255,255,255,0.4);
  color: #fff; font-size: 0.82rem; font-weight: 700;
  padding: 6px 14px; border-radius: 20px; margin-bottom: 24px;
  letter-spacing: 0.5px;
}
.hero-content h1 {
  font-size: clamp(2.4rem, 5vw, 4rem);
  font-weight: 900; line-height: 1.1; margin-bottom: 20px; color: #fff;
}
.hero-content h1 .gradient-text {
  background: none; -webkit-text-fill-color: unset; color: #ffe0c8;
}
.hero-sub {
  font-size: 1.05rem; color: rgba(255,255,255,0.88); max-width: 520px;
  margin-bottom: 36px; line-height: 1.75;
}
.hero-cta { display: flex; gap: 16px; flex-wrap: wrap; margin-bottom: 48px; }
.hero-cta .btn-primary {
  background: #fff; color: var(--accent) !important;
  box-shadow: 0 4px 20px rgba(0,0,0,0.2);
}
.hero-cta .btn-primary:hover { background: #fff5f0; }
.hero-cta .btn-ghost {
  border-color: rgba(255,255,255,0.7); color: #fff;
}
.hero-cta .btn-ghost:hover { background: rgba(255,255,255,0.15); color: #fff; border-color: #fff; }
.hero-stats { display: flex; gap: 24px; align-items: center; flex-wrap: wrap; }
.stat { display: flex; flex-direction: column; }
.stat-num { font-size: 2rem; font-weight: 900; color: #fff; line-height: 1; }
.stat-suffix { font-size: 1.2rem; color: #ffe0c8; }
.stat-label { font-size: 0.78rem; color: rgba(255,255,255,0.75); margin-top: 2px; }
.stat-divider { width: 1px; height: 40px; background: rgba(255,255,255,0.3); }

/* ─── PHONE MOCKUP ──────────────────────────────────────────── */
.hero-visual { flex: 0 0 auto; position: relative; }
.phone-mockup {
  position: relative; width: 260px;
  background: var(--surface);
  border: 2px solid rgba(255,255,255,0.5);
  border-radius: 28px;
  box-shadow: 0 0 0 8px rgba(255,255,255,0.12), 0 32px 64px rgba(0,0,0,0.25);
  overflow: visible;
  animation: float 4s ease-in-out infinite;
}
@keyframes float {
  0%, 100% { transform: translateY(0); }
  50%       { transform: translateY(-12px); }
}
.phone-screen { padding: 20px; }
.phone-header { display: flex; gap: 6px; margin-bottom: 16px; }
.ph-dot { width: 10px; height: 10px; border-radius: 50%; }
.ph-dot.red    { background: #ff5f57; }
.ph-dot.yellow { background: #febc2e; }
.ph-dot.green  { background: #28c840; }
.ph-logo { font-weight: 800; font-size: 1rem; color: var(--accent); margin-bottom: 8px; }
.ph-table {
  display: inline-block;
  background: #fff4ec; color: var(--accent);
  font-size: 0.75rem; padding: 3px 10px; border-radius: 6px; margin-bottom: 14px; font-weight: 700;
}
.ph-items { display: flex; flex-direction: column; gap: 8px; margin-bottom: 14px; }
.ph-item {
  display: flex; justify-content: space-between;
  font-size: 0.82rem; padding: 8px 10px;
  background: var(--bg2); border-radius: 8px;
  border: 1px solid var(--border);
}
.ph-price { color: var(--accent); font-weight: 600; }
.ph-total {
  font-weight: 700; font-size: 0.9rem;
  text-align: right; margin-bottom: 12px;
  color: var(--text);
}
.ph-btn {
  width: 100%; padding: 10px;
  background: linear-gradient(135deg, #ff8c42, var(--accent));
  border: none; border-radius: 8px;
  color: #fff; font-weight: 700; font-size: 0.85rem; cursor: pointer;
}
.qr-badge {
  position: absolute; bottom: -20px; right: -36px;
  background: var(--surface); border: 2px solid var(--border);
  border-radius: 14px; padding: 12px 14px;
  display: flex; flex-direction: column; align-items: center; gap: 6px;
  font-size: 0.7rem; color: var(--muted);
  box-shadow: 0 8px 24px rgba(232,84,26,0.15);
}
.qr-grid {
  display: grid; grid-template-columns: repeat(5, 10px);
  gap: 2px;
}
.qr-grid > div { width: 10px; height: 10px; background: var(--bg2); border-radius: 2px; }
.qr-grid > .qr-f { background: var(--accent); }

/* ─── SECTIONS ──────────────────────────────────────────────── */
.section { padding: 96px 0; }
.section-dark { background: var(--bg2); }
.section-header { text-align: center; margin-bottom: 64px; }
.section-badge {
  display: inline-block;
  background: rgba(232,84,26,0.1); border: 1px solid rgba(232,84,26,0.25);
  color: var(--accent); font-size: 0.78rem; font-weight: 700;
  padding: 5px 14px; border-radius: 20px; margin-bottom: 16px; letter-spacing: 0.5px;
}
.section-header h2 { font-size: clamp(1.8rem, 3.5vw, 2.6rem); font-weight: 800; margin-bottom: 12px; }
.section-header p { color: var(--muted); max-width: 520px; margin: 0 auto; }

/* ─── VIDEO ──────────────────────────────────────────────────── */
.video-wrap {
  max-width: 860px; margin: 0 auto;
  border-radius: 20px; overflow: hidden;
  box-shadow: 0 16px 64px rgba(232,84,26,0.18), 0 0 0 1px var(--border);
}
.video-wrap video {
  display: block; width: 100%; height: auto;
  background: #000;
}

/* ─── STEPS ─────────────────────────────────────────────────── */
.steps {
  display: flex; align-items: flex-start; gap: 12px;
  flex-wrap: wrap; justify-content: center;
}
.step {
  flex: 1; min-width: 180px; max-width: 220px;
  background: var(--surface); border: 2px solid var(--border);
  border-radius: var(--radius); padding: 28px 20px; text-align: center;
  position: relative; transition: border-color 0.3s, transform 0.3s, box-shadow 0.3s;
}
.step:hover { border-color: var(--accent); transform: translateY(-4px); box-shadow: 0 8px 24px rgba(232,84,26,0.15); }
.step::before {
  content: attr(data-step);
  position: absolute; top: -16px; left: 50%; transform: translateX(-50%);
  background: linear-gradient(135deg, #ff8c42, var(--accent));
  color: #fff; font-weight: 800; font-size: 0.78rem;
  width: 32px; height: 32px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 2px 8px rgba(232,84,26,0.4);
}
.step-icon { font-size: 2rem; margin-bottom: 12px; }
.step h3 { font-size: 1rem; font-weight: 700; margin-bottom: 8px; }
.step p { font-size: 0.82rem; color: var(--muted); }
.step-arrow {
  font-size: 1.5rem; color: var(--accent); opacity: 0.4; align-self: center;
  flex-shrink: 0; margin-top: -10px;
}

/* ─── FEATURES GRID ─────────────────────────────────────────── */
.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 20px;
}
.feature-card {
  background: var(--surface); border: 2px solid var(--border);
  border-radius: var(--radius); padding: 28px;
  position: relative; transition: border-color 0.3s, transform 0.3s, box-shadow 0.3s;
}
.feature-card:hover { border-color: var(--accent); transform: translateY(-3px); box-shadow: 0 8px 24px rgba(232,84,26,0.12); }
.feature-card.featured {
  border-color: var(--accent);
  background: linear-gradient(135deg, #fff4ec, #fff);
  box-shadow: 0 4px 24px rgba(232,84,26,0.15);
}
.feat-icon { font-size: 2rem; margin-bottom: 14px; }
.feature-card h3 { font-size: 1.05rem; font-weight: 700; margin-bottom: 8px; color: var(--text); }
.feature-card p { font-size: 0.85rem; color: var(--muted); line-height: 1.65; }
.feat-tag {
  position: absolute; top: 20px; right: 20px;
  background: linear-gradient(135deg, #ff8c42, var(--accent)); color: #fff;
  font-size: 0.7rem; font-weight: 700; padding: 3px 10px; border-radius: 6px;
}

/* ─── BENEFITS ──────────────────────────────────────────────── */
.benefits-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 24px;
}
.benefit {
  display: flex; gap: 18px; align-items: flex-start;
  background: var(--surface); border: 2px solid var(--border);
  border-radius: var(--radius); padding: 24px;
  transition: border-color 0.3s, box-shadow 0.3s;
}

/* ─── HUB & SPOKE ───────────────────────────────────────────── */
.hub-wrap {
  position: relative;
  width: 100%; max-width: 860px;
  margin: 0 auto;
  aspect-ratio: 800 / 600;
}
.hub-lines {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  pointer-events: none; z-index: 0;
}
.hub-center {
  position: absolute;
  left: 50%; top: 50%;
  transform: translate(-50%, -50%);
  width: 170px; height: 170px;
  background: #fff;
  border-radius: 50%;
  border: 3px solid var(--border);
  box-shadow: 0 8px 32px rgba(232,84,26,0.18);
  display: flex; align-items: center; justify-content: center;
  z-index: 2;
  overflow: hidden;
}
.hub-center img { width: 150px; height: 150px; object-fit: contain; }
.hub-node {
  position: absolute;
  width: 170px;
  background: var(--surface);
  border: 2px solid var(--border);
  border-radius: var(--radius);
  padding: 16px;
  text-align: center;
  z-index: 2;
  transition: border-color 0.3s, transform 0.3s, box-shadow 0.3s;
}
.hub-node:hover {
  border-color: var(--accent);
  transform: scale(1.04);
  box-shadow: 0 6px 20px rgba(232,84,26,0.15);
}
.hub-icon { font-size: 1.6rem; margin-bottom: 6px; }
.hub-node h4 { font-size: 0.88rem; font-weight: 700; margin-bottom: 4px; color: var(--text); }
.hub-node p  { font-size: 0.75rem; color: var(--muted); line-height: 1.5; }
/* pozicije – gore lijevo/desno, sredina, dolje lijevo/desno */
.hub-tl { top:  2%; left:  2%; }
.hub-tr { top:  2%; right: 2%; }
.hub-ml { top: 50%; left:  0; transform: translateY(-50%); }
.hub-mr { top: 50%; right: 0; transform: translateY(-50%); }
.hub-bl { bottom: 2%; left:  2%; }
.hub-br { bottom: 2%; right: 2%; }
.hub-ml:hover, .hub-mr:hover { transform: translateY(-50%) scale(1.04); }
@media (max-width: 700px) {
  .hub-wrap {
    max-width: 100%;
    aspect-ratio: 800 / 600;
  }
  .hub-node {
    width: 26vw;
    padding: 8px;
  }
  .hub-node h4 { font-size: 0.65rem; }
  .hub-node p  { display: none; }
  .hub-icon    { font-size: 1.2rem; margin-bottom: 2px; }
  .hub-center  {
    width: 18vw; height: 18vw;
  }
  .hub-center img { width: 90%; height: 90%; }
}
.benefit:hover { border-color: var(--accent); box-shadow: 0 6px 20px rgba(232,84,26,0.1); }
.benefit-icon { font-size: 1.8rem; flex-shrink: 0; }
.benefit h4 { font-size: 1rem; font-weight: 700; margin-bottom: 6px; }
.benefit p { font-size: 0.83rem; color: var(--muted); line-height: 1.6; }

/* ─── CTA / KONTAKT ─────────────────────────────────────────── */
.section-cta { background: var(--bg2); }
.cta-box {
  position: relative; overflow: hidden;
  background: var(--surface); border: 2px solid var(--border);
  border-radius: 24px; padding: 60px 48px; text-align: center;
  max-width: 720px; margin: 0 auto;
  box-shadow: 0 8px 40px rgba(232,84,26,0.1);
}
.cta-glow {
  position: absolute; top: -80px; left: 50%; transform: translateX(-50%);
  width: 400px; height: 250px;
  background: radial-gradient(ellipse, rgba(232,84,26,0.07) 0%, transparent 70%);
  pointer-events: none;
}
.cta-box h2 { font-size: clamp(1.6rem, 3vw, 2.2rem); font-weight: 800; margin-bottom: 12px; }
.cta-box p { color: var(--muted); margin-bottom: 36px; }
.contact-form { text-align: left; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-bottom: 12px; }
.contact-form input,
.contact-form textarea {
  width: 100%; padding: 12px 16px;
  background: var(--bg2); border: 2px solid var(--border);
  border-radius: 10px; color: var(--text); font-family: inherit; font-size: 0.9rem;
  outline: none; transition: border-color 0.2s;
}
.contact-form input:focus,
.contact-form textarea:focus { border-color: var(--accent); background: var(--surface); }
.contact-form textarea { resize: vertical; margin-bottom: 14px; }
.form-success {
  display: none; text-align: center; color: var(--accent);
  margin-top: 14px; font-weight: 600; font-size: 0.9rem;
}

/* ─── GDPR ───────────────────────────────────────────────────── */
.gdpr-wrap {
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 14px 0;
  margin: 4px 0;
}
.gdpr-label {
  display: flex; align-items: flex-start; gap: 10px;
  cursor: pointer;
}
.gdpr-label input[type="checkbox"] {
  flex-shrink: 0;
  width: 18px; height: 18px; margin-top: 2px;
  accent-color: var(--accent);
  cursor: pointer;
}
.gdpr-label span {
  font-size: 0.8rem; color: var(--muted); line-height: 1.5;
}
.gdpr-label a {
  color: var(--accent); text-decoration: underline;
}

/* ─── SUCCESS MODAL ─────────────────────────────────────────── */
.modal-overlay {
  display: none;
  position: fixed; inset: 0; z-index: 999;
  background: rgba(26,26,46,0.7);
  backdrop-filter: blur(4px);
  align-items: center; justify-content: center;
}
.modal-overlay.open { display: flex; }
.modal-box {
  background: var(--surface);
  border: 2px solid var(--border);
  border-radius: 20px;
  padding: 48px 40px;
  max-width: 420px; width: 90%;
  text-align: center;
  box-shadow: 0 24px 80px rgba(232,84,26,0.2);
  animation: popIn 0.4s cubic-bezier(0.34,1.56,0.64,1) both;
}
.modal-icon { font-size: 3.5rem; margin-bottom: 16px; }
.modal-box h3 { font-size: 1.6rem; font-weight: 800; margin-bottom: 10px; color: var(--text); }
.modal-box p  { color: var(--muted); margin-bottom: 28px; line-height: 1.6; }

/* ─── FOOTER ────────────────────────────────────────────────── */
.footer {
  padding: 32px 0;
  background: #1a1a2e;
}
.footer-inner {
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 12px; text-align: center;
}
.footer .logo-text { color: #fff; }
.footer-copy { font-size: 0.82rem; color: rgba(255,255,255,0.45); }
.footer-links { display: flex; gap: 24px; }
.footer-links a { font-size: 0.82rem; color: rgba(255,255,255,0.45); text-decoration: none; transition: color 0.2s; }
.footer-links a:hover { color: #ff8c42; }

/* ─── RESPONSIVE ────────────────────────────────────────────── */
@media (max-width: 900px) {
  .hero-content-wrap { flex-direction: column; gap: 48px; padding-top: 110px; }
  .hero-visual { width: 100%; display: flex; justify-content: center; }
  .nav-links { display: none; }
  .hamburger { display: block; }
  .step-arrow { display: block; transform: rotate(90deg); margin: -8px auto; text-align: center; width: 100%; }
  .steps { gap: 8px; flex-direction: column; align-items: center; padding-top: 20px; }
  .step { max-width: 100%; width: 100%; margin-top: 8px; }
}
@media (max-width: 600px) {
  .form-row { grid-template-columns: 1fr; }
  .cta-box { padding: 36px 20px; }
  .footer-inner { flex-direction: column; text-align: center; }
  .hero-stats { gap: 16px; }
  .phone-mockup { width: 220px; }
  .qr-badge { right: -10px; }
  .features-grid { grid-template-columns: 1fr 1fr; gap: 12px; }
  .feature-card { padding: 16px; }
  .feat-icon { font-size: 1.5rem; margin-bottom: 8px; }
  .feature-card h3 { font-size: 0.88rem; }
  .feature-card p { font-size: 0.75rem; }
}

/* ─── SCROLL ANIMATIONS ─────────────────────────────────────── */
.fade-in {
  opacity: 0; transform: translateY(24px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.fade-in.visible { opacity: 1; transform: translateY(0); }
