/* ============ KOVAČNICA — kovačka paleta ============
   željezo (pozadine): #0d0e10 / #15171a / #1c1f23
   užareni bakar (akcent): #e8833a → #ff9a3c gradijent
   toplo bijeli tekst: #ece7df · čelik (sekundarno): #98938a
==================================================== */

:root {
  --iron-0: #0d0e10;
  --iron-1: #15171a;
  --iron-2: #1c1f23;
  --iron-line: #2a2e33;
  --ember: #e8833a;
  --ember-hot: #ff9a3c;
  --ember-deep: #c25e1f;
  --text: #ece7df;
  --text-dim: #98938a;
  --radius: 14px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  background: var(--iron-0);
  color: var(--text);
  font-family: "Segoe UI", system-ui, -apple-system, sans-serif;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

/* ---------- NAV ---------- */
.nav {
  position: sticky; top: 0; z-index: 50;
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px 6vw;
  background: rgba(13, 14, 16, 0.86);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--iron-line);
}
.nav-logo {
  display: flex; align-items: center; gap: 10px;
  color: var(--text); text-decoration: none;
  font-weight: 700; font-size: 1.25rem; letter-spacing: 0.02em;
}
.logo-mark { width: 34px; height: 34px; }
.nav-links { display: flex; align-items: center; gap: 26px; }
.nav-links a {
  color: var(--text-dim); text-decoration: none; font-size: 0.95rem;
  transition: color 0.2s;
}
.nav-links a:hover { color: var(--ember-hot); }
.nav-cta {
  color: var(--iron-0) !important;
  background: linear-gradient(135deg, var(--ember-hot), var(--ember-deep));
  padding: 8px 18px; border-radius: 999px; font-weight: 600;
}
.nav-burger {
  display: none; background: none; border: 1px solid var(--iron-line);
  color: var(--text); font-size: 1.2rem; padding: 6px 12px;
  border-radius: 8px; cursor: pointer;
}

/* ---------- HERO ---------- */
.hero {
  position: relative; overflow: hidden;
  padding: 110px 6vw 90px;
  text-align: center;
  background:
    radial-gradient(ellipse 70% 55% at 50% 108%, rgba(232, 131, 58, 0.22), transparent 70%),
    radial-gradient(ellipse 45% 35% at 50% 115%, rgba(255, 154, 60, 0.30), transparent 70%),
    var(--iron-0);
}
.hero-bg {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover; opacity: 0.5;
}
.hero-scrim {
  position: absolute; inset: 0;
  background:
    radial-gradient(ellipse 62% 62% at 50% 42%, rgba(13, 14, 16, 0.5), rgba(13, 14, 16, 0.86) 78%),
    linear-gradient(180deg, rgba(13, 14, 16, 0.88), rgba(13, 14, 16, 0.45) 45%, rgba(13, 14, 16, 0.94));
}
@media (prefers-reduced-motion: reduce) { .hero-bg { display: none; } }
.hero-glow {
  position: absolute; left: 50%; bottom: -140px; transform: translateX(-50%);
  width: 620px; height: 260px; border-radius: 50%;
  background: radial-gradient(ellipse, rgba(255, 154, 60, 0.35), transparent 68%);
  filter: blur(28px); pointer-events: none;
}
.hero-inner { position: relative; max-width: 860px; margin: 0 auto; }
.hero-kicker {
  display: inline-block; margin-bottom: 22px;
  padding: 6px 16px; border-radius: 999px;
  border: 1px solid rgba(232, 131, 58, 0.45);
  color: var(--ember-hot); font-size: 0.85rem; letter-spacing: 0.06em;
  text-transform: uppercase; font-weight: 600;
}
.hero h1 {
  font-size: clamp(2.1rem, 5.2vw, 3.6rem);
  line-height: 1.14; font-weight: 800; letter-spacing: -0.01em;
}
.molten {
  background: linear-gradient(110deg, var(--ember-hot) 15%, #ffc07a 50%, var(--ember) 85%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.hero-sub {
  max-width: 640px; margin: 26px auto 0;
  color: var(--text-dim); font-size: 1.08rem;
}
.hero-actions {
  display: flex; gap: 16px; justify-content: center; flex-wrap: wrap;
  margin-top: 38px;
}
.hero-proof {
  display: flex; gap: 26px; justify-content: center; flex-wrap: wrap;
  margin-top: 46px; color: var(--text-dim); font-size: 0.9rem;
}

/* iskre */
.sparks { position: absolute; inset: 0; pointer-events: none; }
.sparks i {
  position: absolute; bottom: -8px;
  width: 3px; height: 3px; border-radius: 50%;
  background: var(--ember-hot);
  opacity: 0;
  animation: spark 5.2s linear infinite;
}
.sparks i:nth-child(1)  { left: 38%; animation-delay: 0s;   }
.sparks i:nth-child(2)  { left: 45%; animation-delay: 0.9s; width: 2px; height: 2px; }
.sparks i:nth-child(3)  { left: 52%; animation-delay: 2.1s; }
.sparks i:nth-child(4)  { left: 58%; animation-delay: 0.4s; width: 2px; height: 2px; }
.sparks i:nth-child(5)  { left: 62%; animation-delay: 3.0s; }
.sparks i:nth-child(6)  { left: 41%; animation-delay: 3.8s; width: 2px; height: 2px; }
.sparks i:nth-child(7)  { left: 49%; animation-delay: 1.6s; }
.sparks i:nth-child(8)  { left: 55%; animation-delay: 4.4s; width: 4px; height: 4px; }
.sparks i:nth-child(9)  { left: 35%; animation-delay: 2.7s; }
.sparks i:nth-child(10) { left: 65%; animation-delay: 1.2s; width: 2px; height: 2px; }
.sparks i:nth-child(11) { left: 47%; animation-delay: 5.0s; }
.sparks i:nth-child(12) { left: 60%; animation-delay: 2.4s; width: 2px; height: 2px; }
@keyframes spark {
  0%   { transform: translateY(0) translateX(0); opacity: 0; }
  8%   { opacity: 0.95; }
  60%  { opacity: 0.5; }
  100% { transform: translateY(-340px) translateX(22px); opacity: 0; }
}
@media (prefers-reduced-motion: reduce) { .sparks i { animation: none; } }

/* iskre preko cijele stranice — fiksni sloj iznad sadržaja, ispod navigacije */
.sparks-page { position: fixed; inset: 0; z-index: 6; }
.sparks-page i {
  bottom: -12px;
  box-shadow: 0 0 7px rgba(255, 154, 60, 0.75);
  animation-name: sparkPage;
}
.sparks-page i:nth-child(1)  { left: 6%;  animation-duration: 11s;  animation-delay: 0s; }
.sparks-page i:nth-child(2)  { left: 14%; animation-duration: 13s;  animation-delay: 3.2s; width: 2px; height: 2px; }
.sparks-page i:nth-child(3)  { left: 23%; animation-duration: 10s;  animation-delay: 6.5s; }
.sparks-page i:nth-child(4)  { left: 31%; animation-duration: 14s;  animation-delay: 1.6s; width: 2px; height: 2px; }
.sparks-page i:nth-child(5)  { left: 42%; animation-duration: 12s;  animation-delay: 8.4s; }
.sparks-page i:nth-child(6)  { left: 55%; animation-duration: 15s;  animation-delay: 4.8s; width: 2px; height: 2px; }
.sparks-page i:nth-child(7)  { left: 64%; animation-duration: 11s;  animation-delay: 10.2s; }
.sparks-page i:nth-child(8)  { left: 72%; animation-duration: 13s;  animation-delay: 2.4s; width: 4px; height: 4px; }
.sparks-page i:nth-child(9)  { left: 81%; animation-duration: 10s;  animation-delay: 7.3s; width: 2px; height: 2px; }
.sparks-page i:nth-child(10) { left: 89%; animation-duration: 14s;  animation-delay: 5.6s; }
.sparks-page i:nth-child(11) { left: 95%; animation-duration: 12s;  animation-delay: 9.1s; width: 2px; height: 2px; }
.sparks-page i:nth-child(12) { left: 48%; animation-duration: 16s;  animation-delay: 12.5s; }
@keyframes sparkPage {
  0%   { transform: translateY(0) translateX(0); opacity: 0; }
  6%   { opacity: 0.85; }
  50%  { opacity: 0.45; transform: translateY(-55vh) translateX(18px); }
  100% { transform: translateY(-108vh) translateX(-12px); opacity: 0; }
}
@media (prefers-reduced-motion: reduce) { .sparks-page i { animation: none; } }

/* ---------- GUMBI ---------- */
.btn {
  position: relative; overflow: hidden;
  display: inline-block; padding: 13px 30px; border-radius: 999px;
  font-weight: 700; font-size: 1rem; text-decoration: none;
  transition: transform 0.25s cubic-bezier(0.2, 0.8, 0.3, 1), box-shadow 0.3s, background 0.2s, filter 0.2s;
}
.btn-primary {
  color: #141210;
  background: linear-gradient(135deg, var(--ember-hot), var(--ember-deep));
  box-shadow: 0 8px 28px rgba(232, 131, 58, 0.35);
}
.btn-primary:hover { transform: translateY(-2px) scale(1.02); box-shadow: 0 14px 40px rgba(232, 131, 58, 0.55), 0 0 24px rgba(255, 154, 60, 0.25); }
.btn-primary:active { transform: translateY(0) scale(0.99); }
/* užareni odsjaj koji povremeno prijeđe preko gumba */
.btn-primary::after, .btn-card-primary::after {
  content: ""; position: absolute; top: 0; left: -80%;
  width: 45%; height: 100%;
  background: linear-gradient(105deg, transparent, rgba(255, 255, 255, 0.45), transparent);
  transform: skewX(-20deg);
  animation: shimmer 4s ease-in-out infinite;
  pointer-events: none;
}
@keyframes shimmer {
  0%   { left: -80%; }
  45%  { left: 140%; }
  100% { left: 140%; }
}
@media (prefers-reduced-motion: reduce) {
  .btn-primary::after, .btn-card-primary::after { animation: none; }
}
.btn-ghost {
  color: var(--text); border: 1px solid var(--iron-line);
  background: rgba(255, 255, 255, 0.03);
}
.btn-ghost:hover { border-color: var(--ember); color: var(--ember-hot); }

/* ---------- SEKCIJE ---------- */
.section { padding: 90px 6vw; max-width: 1160px; margin: 0 auto; }
.section-alt {
  max-width: none;
  background: var(--iron-1);
  border-top: 1px solid var(--iron-line);
  border-bottom: 1px solid var(--iron-line);
}
.section-alt > * { max-width: 1160px; margin-left: auto; margin-right: auto; }
.section-kicker {
  color: var(--ember-hot); font-size: 0.85rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: 0.1em; margin-bottom: 10px;
}
.section h2, .lp-section h2 {
  font-size: clamp(1.6rem, 3.4vw, 2.3rem); font-weight: 800; margin-bottom: 18px;
  position: relative; padding-bottom: 14px;
}
.section h2::after, .lp-section h2::after {
  content: ""; position: absolute; left: 0; bottom: 0;
  width: 64px; height: 3px; border-radius: 3px;
  background: linear-gradient(90deg, var(--ember-hot), var(--ember-deep));
  box-shadow: 0 0 12px rgba(255, 154, 60, 0.5);
}
.cta-box h2::after, .cta-final h2::after { left: 50%; transform: translateX(-50%); }
.section-sub { color: var(--text-dim); max-width: 620px; margin-bottom: 12px; }

/* ---------- KARTICE ---------- */
.cards-3, .cards-2 {
  display: grid; gap: 22px; margin-top: 44px;
  grid-template-columns: repeat(3, 1fr);
}
.cards-2 { grid-template-columns: repeat(2, 1fr); }

.card {
  position: relative;
  background: var(--iron-2);
  border: 1px solid var(--iron-line);
  border-radius: var(--radius);
  padding: 30px 26px;
  display: flex; flex-direction: column;
  transition: transform 0.35s cubic-bezier(0.2, 0.8, 0.3, 1), border-color 0.35s, box-shadow 0.4s;
}
/* topli odsjaj preko cijele kartice na hover */
.card::before {
  content: ""; position: absolute; inset: 0; border-radius: var(--radius);
  background: radial-gradient(ellipse 85% 65% at 50% 0%, rgba(232, 131, 58, 0.12), transparent 70%);
  opacity: 0; transition: opacity 0.45s;
  pointer-events: none;
}
.card:hover::before { opacity: 1; }
/* užareni rub koji se pali na hover */
.card::after {
  content: ""; position: absolute; top: -1px; left: 14%; right: 14%; height: 2px;
  border-radius: 2px;
  background: linear-gradient(90deg, transparent, var(--ember-hot), transparent);
  opacity: 0; transition: opacity 0.4s;
  pointer-events: none;
}
.card:hover::after { opacity: 1; }
.card:hover {
  transform: translateY(-6px);
  border-color: rgba(232, 131, 58, 0.55);
  box-shadow: 0 20px 52px rgba(0, 0, 0, 0.5), 0 0 34px rgba(232, 131, 58, 0.14);
}
.card-icon { transition: transform 0.35s cubic-bezier(0.2, 0.8, 0.3, 1); }
.card:hover .card-icon { transform: translateY(-3px) scale(1.15); }
.card-list strong { transition: text-shadow 0.3s; }
.card:hover .card-list strong { text-shadow: 0 0 14px rgba(255, 154, 60, 0.45); }
.card-featured {
  border-color: rgba(232, 131, 58, 0.65);
  background: linear-gradient(180deg, rgba(232, 131, 58, 0.08), transparent 45%), var(--iron-2);
}
.card-badge {
  position: absolute; top: -13px; left: 24px;
  background: linear-gradient(135deg, var(--ember-hot), var(--ember-deep));
  color: #141210; font-size: 0.75rem; font-weight: 700;
  padding: 4px 14px; border-radius: 999px; letter-spacing: 0.04em;
}
.card-icon { font-size: 1.9rem; margin-bottom: 16px; animation: iconFloat 4.5s ease-in-out infinite; display: flex; justify-content: center; }
.card-icon svg { width: 56px; height: 56px; display: block; filter: drop-shadow(0 6px 14px rgba(232, 131, 58, 0.25)); }
.cards-3 .card:nth-child(2) .card-icon { animation-delay: 1.5s; }
.cards-3 .card:nth-child(3) .card-icon { animation-delay: 3s; }
@keyframes iconFloat { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-6px); } }
@media (prefers-reduced-motion: reduce) { .card-icon { animation: none; } }
.card h3 { font-size: 1.2rem; margin-bottom: 10px; }
.card-desc { color: var(--text-dim); font-size: 0.95rem; flex-grow: 1; }
.card-list { list-style: none; margin: 18px 0 22px; }
.card-list li {
  padding: 7px 0 7px 24px; position: relative;
  font-size: 0.95rem; border-top: 1px dashed var(--iron-line);
}
.card-list li::before { content: "✓"; position: absolute; left: 0; color: var(--ember-hot); font-weight: 800; font-size: 0.9rem; }
.card-list strong { color: var(--ember-hot); }
.btn-card {
  display: block; text-align: center; text-decoration: none;
  padding: 11px 0; border-radius: 10px; font-weight: 700;
  color: var(--text); border: 1px solid var(--iron-line);
  transition: border-color 0.2s, color 0.2s, background 0.2s;
}
.btn-card:hover { border-color: var(--ember); color: var(--ember-hot); }
.btn-card-primary {
  color: #141210; border: none;
  background: linear-gradient(135deg, var(--ember-hot), var(--ember-deep));
}
.btn-card-primary:hover { color: #141210; filter: brightness(1.08); }

/* zašto */
.why { padding: 26px; border-left: 3px solid var(--ember); background: var(--iron-2); border-radius: 0 var(--radius) var(--radius) 0; }
.why h3 { margin-bottom: 10px; font-size: 1.1rem; }
.why p { color: var(--text-dim); font-size: 0.95rem; }

/* alati */
.tool-tag {
  display: inline-block; align-self: flex-start; margin-bottom: 14px;
  font-size: 0.75rem; font-weight: 700; letter-spacing: 0.05em;
  color: var(--ember-hot); border: 1px dashed rgba(232, 131, 58, 0.5);
  padding: 3px 12px; border-radius: 999px;
}

/* radovi */
.work {
  background: var(--iron-2); border: 1px solid var(--iron-line);
  border-radius: var(--radius); padding: 26px;
  transition: transform 0.3s cubic-bezier(0.2, 0.8, 0.3, 1), border-color 0.3s, box-shadow 0.35s;
}
a.work { display: block; text-decoration: none; color: inherit; }
.work.has-bg { background-size: cover; background-position: top center; }
.work.has-bg p { color: #b8b3aa; }
a.work:hover {
  transform: translateY(-4px);
  border-color: rgba(232, 131, 58, 0.55);
  box-shadow: 0 16px 42px rgba(0, 0, 0, 0.45);
}
.work-head { font-weight: 700; font-size: 1.1rem; margin-bottom: 10px; color: var(--text); }
.work p { color: var(--text-dim); font-size: 0.93rem; }
.work-go { display: block; margin-top: 12px; color: var(--ember-hot); font-weight: 700; font-size: 0.85rem; }
.work-soon {
  display: inline-block; margin-left: 8px; vertical-align: middle;
  font-size: 0.68rem; font-weight: 700; letter-spacing: 0.05em;
  color: var(--text-dim); border: 1px dashed var(--iron-line);
  padding: 2px 10px; border-radius: 999px;
}

/* WhatsApp plutajući gumb */
.wa-float {
  position: fixed; right: 22px; bottom: 22px; z-index: 60;
  width: 56px; height: 56px; border-radius: 50%;
  background: #25d366;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
  transition: transform 0.2s, box-shadow 0.25s;
}
.wa-float:hover { transform: scale(1.1); box-shadow: 0 14px 36px rgba(37, 211, 102, 0.35); }
.wa-float svg { width: 30px; height: 30px; fill: #fff; }
@media (max-width: 900px) { .wa-float { right: 16px; bottom: 16px; } }
.work-note { margin-top: 26px; color: var(--text-dim); font-size: 0.9rem; font-style: italic; }

/* ---------- PROCES ---------- */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; margin-top: 44px; }
.step { position: relative; padding: 30px 24px 26px; background: var(--iron-2); border: 1px solid var(--iron-line); border-radius: var(--radius); }
.step-num {
  width: 40px; height: 40px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-weight: 800; color: #141210; margin-bottom: 16px;
  background: linear-gradient(135deg, var(--ember-hot), var(--ember-deep));
}
.step h3 { margin-bottom: 8px; font-size: 1.1rem; }
.step p { color: var(--text-dim); font-size: 0.94rem; }

/* ---------- CTA ---------- */
.section-cta { padding-bottom: 110px; }
.cta-box {
  text-align: center; padding: 60px 30px;
  border-radius: 20px; border: 1px solid rgba(232, 131, 58, 0.4);
  background:
    radial-gradient(ellipse 60% 90% at 50% 115%, rgba(232, 131, 58, 0.2), transparent 70%),
    var(--iron-1);
}
.cta-box h2 { font-size: clamp(1.6rem, 3.4vw, 2.2rem); margin-bottom: 12px; }
.cta-box p { color: var(--text-dim); max-width: 520px; margin: 0 auto; }

/* ---------- FOOTER ---------- */
.footer { border-top: 1px solid var(--iron-line); background: var(--iron-1); }
.footer-inner {
  max-width: 1160px; margin: 0 auto; padding: 34px 6vw;
  display: flex; justify-content: space-between; gap: 24px; flex-wrap: wrap;
  font-size: 0.9rem;
}
.footer-dim { color: var(--text-dim); }

/* ---------- MOBILE ---------- */
@media (max-width: 900px) {
  .cards-3, .cards-2, .steps { grid-template-columns: 1fr; }
  .nav-burger { display: block; }
  .nav-links {
    display: none;
    position: absolute; top: 100%; left: 0; right: 0;
    flex-direction: column; gap: 0;
    background: var(--iron-1); border-bottom: 1px solid var(--iron-line);
  }
  .nav-links.open { display: flex; }
  .nav-links a { padding: 15px 6vw; width: 100%; border-top: 1px solid var(--iron-line); }
  .nav-cta { border-radius: 0; text-align: center; }
  .hero { padding: 70px 6vw 70px; }
  .hero-proof { flex-direction: column; gap: 10px; align-items: center; }
}
