:root {
  --primary: #FF6B00;
  --primary-deep: #E55A00;
  --primary-light: #FFF0E6;
  --blue: #2563EB;
  --blue-deep: #1D4ED8;
  --blue-light: #EFF6FF;
  --black: #111111;
  --charcoal: #222222;
  --mid: #555555;
  --soft: #888888;
  --white: #FFFFFF;
  --off: #FAFAF8;
  --border: #E8E8E0;
  --radius: 16px;
  --radius-sm: 8px;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: 'DM Sans', sans-serif;
  background: var(--white);
  color: var(--black);
  overflow-x: hidden;
}

/* ── TYPOGRAPHY ── */
h1, h2, h3, h4, .nav-logo { font-family: 'Syne', sans-serif; }

/* ── LANGUAGE TOGGLE ── */
.lang-btn { display: none; }
.lang-btn.active { display: block; }
[data-lang="en"] .hr-text { display: none; }
[data-lang="en"] .en-text { display: inline; }
[data-lang="hr"] .en-text { display: none; }
[data-lang="hr"] .hr-text { display: inline; }
span.en-text { display: none; }

/* ── NAV ── */
nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 5vw;
  height: 72px;
  background: rgba(255,255,255,0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1.5px solid var(--border);
}

.nav-logo {
  font-size: 1.6rem; font-weight: 800; letter-spacing: -0.5px;
  color: var(--black); text-decoration: none;
  display: flex; align-items: center; gap: 0.5rem;
}
.nav-logo span { color: var(--primary-deep); }

.nav-logo-img {
  height: 56px;
  width: 56px;
  object-fit: contain;
  padding: 6px;
  background: #0F1B3C;
  border-radius: 50%;
  display: block;
  flex-shrink: 0;
}

.nav-links {
  display: flex; align-items: center; gap: 2rem;
  list-style: none;
}
.nav-links a {
  font-family: 'DM Sans', sans-serif; font-weight: 500; font-size: 0.9rem;
  color: var(--mid); text-decoration: none; letter-spacing: 0.02em;
  transition: color 0.2s;
}
.nav-links a:hover { color: var(--black); }

.nav-actions { display: flex; align-items: center; gap: 0.75rem; }
.nav-actions .btn-outline { min-width: 80px; justify-content: center; }
.nav-actions .btn-primary { min-width: 170px; justify-content: center; }

.btn-lang {
  background: none; border: 1.5px solid var(--border);
  border-radius: 20px; padding: 0.3rem 0.8rem;
  font-family: 'DM Sans', sans-serif; font-size: 0.8rem; font-weight: 500;
  cursor: pointer; color: var(--mid); transition: all 0.2s;
}
.btn-lang:hover { border-color: var(--primary); color: var(--black); }

.btn { display: inline-flex; align-items: center; gap: 0.4rem; padding: 0.6rem 1.4rem; border-radius: 40px; font-family: 'DM Sans', sans-serif; font-weight: 500; font-size: 0.9rem; cursor: pointer; text-decoration: none; transition: all 0.2s; border: none; }
.btn-outline { background: none; border: 1.5px solid var(--border); color: var(--black); }
.btn-outline:hover { border-color: var(--black); }
.btn-primary { background: var(--primary); color: var(--white); font-weight: 700; }
.btn-primary:hover { background: var(--primary-deep); transform: translateY(-1px); box-shadow: 0 4px 20px rgba(255,107,0,0.4); }
.btn-xl { padding: 1rem 2.2rem; font-size: 1rem; border-radius: 50px; }

/* ── HERO ── */
#hero {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  padding: 120px 5vw 80px;
  gap: 4rem;
  position: relative;
  overflow: hidden;
}

.hero-bg-shape {
  position: absolute;
  top: -120px; right: -80px;
  width: 600px; height: 600px;
  background: var(--primary);
  border-radius: 50%;
  opacity: 0.10;
  pointer-events: none;
}
.hero-bg-dots {
  position: absolute;
  bottom: 60px; left: 4vw;
  width: 200px; height: 200px;
  background-image: radial-gradient(circle, var(--border) 1.5px, transparent 1.5px);
  background-size: 18px 18px;
  opacity: 0.8;
  pointer-events: none;
}

.hero-eyebrow {
  display: inline-flex; align-items: center; gap: 0.5rem;
  background: var(--primary-light); border: 1.5px solid var(--primary);
  border-radius: 40px; padding: 0.35rem 0.9rem;
  font-size: 0.78rem; font-weight: 600; color: var(--charcoal);
  letter-spacing: 0.06em; text-transform: uppercase;
  margin-bottom: 1.4rem;
}

.hero-title {
  font-size: clamp(2.8rem, 5vw, 4.2rem);
  font-weight: 800; line-height: 1.05; letter-spacing: -1.5px;
  color: var(--black);
  margin-bottom: 1.2rem;
}
.hero-title .accent { color: var(--primary-deep); }

.hero-desc {
  font-size: 1.1rem; line-height: 1.7; color: var(--mid);
  max-width: 480px; margin-bottom: 2.2rem;
}

.hero-cta { display: flex; align-items: center; gap: 1rem; flex-wrap: wrap; }

.hero-trust {
  margin-top: 3rem;
  display: flex; align-items: center; gap: 1.2rem;
}
.hero-trust-avatars { display: flex; }
.hero-trust-avatars span {
  width: 36px; height: 36px; border-radius: 50%;
  background: var(--blue); border: 2px solid var(--white);
  display: flex; align-items: center; justify-content: center;
  font-size: 0.85rem; font-weight: 700; margin-left: -10px;
  color: var(--white);
}
.hero-trust-avatars span:first-child { margin-left: 0; }
.hero-trust-text { font-size: 0.82rem; color: var(--soft); line-height: 1.4; }
.hero-trust-text strong { color: var(--black); }

/* ── HERO RIGHT / MOCKUP ── */
.hero-mockup {
  position: relative;
  display: flex; align-items: center; justify-content: center;
}

.mockup-card {
  background: var(--white);
  border: 1.5px solid var(--border);
  border-radius: 24px;
  padding: 2rem;
  box-shadow: 0 20px 60px rgba(0,0,0,0.08);
  width: 100%; max-width: 420px;
  position: relative;
}

.mockup-topbar {
  display: flex; align-items: center; gap: 0.5rem;
  margin-bottom: 1.5rem;
}
.mockup-dot { width: 10px; height: 10px; border-radius: 50%; }
.mockup-dot.r { background: #FF5F57; }
.mockup-dot.y { background: #FEBC2E; }
.mockup-dot.g { background: #28C840; }

.mockup-title-bar {
  flex: 1; background: var(--off); border-radius: 6px;
  height: 10px; margin-left: 0.5rem;
}

.chat-bubble {
  border-radius: 14px; padding: 0.7rem 1rem;
  font-size: 0.85rem; line-height: 1.5; margin-bottom: 0.6rem;
  max-width: 90%;
}
.chat-bubble.bot {
  background: var(--off);
  color: var(--charcoal);
  border-bottom-left-radius: 4px;
}
.chat-bubble.user {
  background: var(--primary);
  color: var(--white); font-weight: 500;
  margin-left: auto;
  border-bottom-right-radius: 4px;
}

.mockup-pdf-preview {
  margin-top: 1rem;
  background: linear-gradient(135deg, #fff4ec, #fffaf7);
  border: 1.5px dashed var(--primary);
  border-radius: var(--radius-sm);
  padding: 0.8rem 1rem;
  display: flex; align-items: center; gap: 0.7rem;
}
.pdf-icon {
  width: 36px; height: 36px; background: var(--primary);
  border-radius: 8px; display: flex; align-items: center;
  justify-content: center; flex-shrink: 0;
  font-size: 1.1rem;
}
.pdf-meta { flex: 1; }
.pdf-name { font-size: 0.8rem; font-weight: 600; color: var(--charcoal); }
.pdf-sub { font-size: 0.72rem; color: var(--soft); }
.pdf-dl {
  background: var(--primary); color: var(--white); border: none;
  border-radius: 6px; padding: 0.3rem 0.7rem;
  font-size: 0.75rem; font-weight: 700;
  cursor: pointer; white-space: nowrap;
}

.mockup-badge {
  position: absolute; top: -18px; right: -18px;
  background: var(--primary); color: var(--white);
  border-radius: 50%; width: 72px; height: 72px;
  display: flex; flex-direction: column; align-items: center;
  justify-content: center; font-family: 'Syne', sans-serif;
  font-weight: 800; font-size: 0.75rem; text-align: center;
  line-height: 1.1; box-shadow: 0 4px 16px rgba(255,107,0,0.45);
  transform: rotate(8deg);
}

/* ── HOW IT WORKS ── */
#how {
  padding: 100px 5vw;
  background: var(--black);
  color: var(--white);
}

.section-eyebrow {
  font-size: 0.78rem; font-weight: 600; letter-spacing: 0.1em;
  text-transform: uppercase; color: var(--blue);
  margin-bottom: 0.8rem;
}
.section-title {
  font-family: 'Syne', sans-serif;
  font-size: clamp(1.8rem, 3.5vw, 2.8rem);
  font-weight: 800; letter-spacing: -0.8px; line-height: 1.1;
  margin-bottom: 1rem;
}
.section-sub {
  font-size: 1rem; color: var(--soft); line-height: 1.7; max-width: 500px;
  margin-bottom: 3.5rem;
}

.steps-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 2rem;
}

.step-card {
  background: var(--charcoal); border-radius: var(--radius);
  padding: 1.8rem; position: relative; overflow: hidden;
  border: 1px solid #333;
  transition: transform 0.25s, border-color 0.25s;
}
.step-card:hover { transform: translateY(-4px); border-color: var(--blue); }

.step-number {
  font-family: 'Syne', sans-serif;
  font-size: 3.5rem; font-weight: 800;
  color: var(--blue); opacity: 0.2;
  position: absolute; top: 0.5rem; right: 1rem;
  line-height: 1;
}

.step-icon {
  font-size: 2rem; margin-bottom: 1.2rem;
}

.step-card h3 {
  font-size: 1rem; font-weight: 700; color: var(--white);
  margin-bottom: 0.5rem;
}
.step-card p { font-size: 0.88rem; color: #aaa; line-height: 1.6; }

/* ── FEATURES ── */
#features {
  padding: 100px 5vw;
  background: var(--off);
}

.features-layout {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 4rem; align-items: center;
}

.features-list { list-style: none; display: flex; flex-direction: column; gap: 1.5rem; }
.feature-item {
  display: flex; gap: 1rem; align-items: flex-start;
  padding: 1.2rem;
  background: var(--white);
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  transition: border-color 0.2s, box-shadow 0.2s;
  cursor: default;
}
.feature-item:hover { border-color: var(--blue); box-shadow: 0 4px 20px rgba(37,99,235,0.12); }

.feature-icon-wrap {
  width: 44px; height: 44px; flex-shrink: 0;
  background: var(--blue-light); border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.3rem;
}

.feature-text h4 { font-size: 0.95rem; font-weight: 700; margin-bottom: 0.3rem; }
.feature-text p { font-size: 0.85rem; color: var(--mid); line-height: 1.6; }

.features-visual {
  background: var(--white); border: 1.5px solid var(--border);
  border-radius: 24px; padding: 2.5rem;
  box-shadow: 0 8px 40px rgba(0,0,0,0.06);
}

.cjenik-input {
  background: var(--off); border-radius: var(--radius-sm);
  padding: 1rem; font-size: 0.82rem; color: var(--mid);
  font-family: 'DM Sans', sans-serif; line-height: 1.7;
  border: 1px solid var(--border); margin-bottom: 1rem;
}
.arrow-anim {
  text-align: center; font-size: 1.5rem; margin: 0.5rem 0;
  color: var(--blue);
}
.parsed-tags { display: flex; flex-wrap: wrap; gap: 0.4rem; }
.tag {
  background: var(--blue-light); border: 1px solid var(--blue);
  border-radius: 20px; padding: 0.25rem 0.7rem;
  font-size: 0.78rem; font-weight: 500; color: var(--charcoal);
}

/* ── PRICING ── */
#pricing {
  padding: 100px 5vw;
  background: var(--white);
}

.pricing-grid {
  display: grid; grid-template-columns: repeat(2, minmax(260px, 480px));
  gap: 1.5rem; margin-top: 3rem; justify-content: center;
}

.pricing-card {
  border: 1.5px solid var(--border); border-radius: 20px;
  padding: 2rem; position: relative; transition: transform 0.25s;
}
.pricing-card:hover { transform: translateY(-4px); }
.pricing-card.featured {
  background: var(--black); color: var(--white);
  border-color: var(--black);
  transform: scale(1.03);
}
.pricing-card.featured:hover { transform: scale(1.03) translateY(-4px); }

.pricing-badge {
  position: absolute; top: -12px; left: 50%; transform: translateX(-50%);
  background: var(--primary); color: var(--white);
  border-radius: 20px; padding: 0.2rem 0.8rem;
  font-size: 0.72rem; font-weight: 700; letter-spacing: 0.04em;
  white-space: nowrap;
}

.pricing-plan { font-size: 0.8rem; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--blue); margin-bottom: 0.6rem; }
.pricing-card.featured .pricing-plan { color: #60A5FA; }

.pricing-price {
  font-family: 'Syne', sans-serif; font-size: 2.6rem; font-weight: 800;
  line-height: 1; margin-bottom: 0.2rem;
}
.pricing-period { font-size: 0.82rem; color: var(--soft); margin-bottom: 1.5rem; }
.pricing-card.featured .pricing-period { color: #999; }

.pricing-features { list-style: none; display: flex; flex-direction: column; gap: 0.6rem; margin-bottom: 1.8rem; }
.pricing-features li {
  font-size: 0.88rem; color: var(--mid);
  display: flex; align-items: center; gap: 0.5rem;
}
.pricing-card.featured .pricing-features li { color: #ccc; }
.pricing-features li::before { content: "✓"; color: var(--blue); font-weight: 700; }

.btn-pricing-light {
  width: 100%; padding: 0.8rem; border-radius: 40px;
  background: none; border: 1.5px solid var(--border);
  font-family: 'DM Sans', sans-serif; font-weight: 600; font-size: 0.9rem;
  cursor: pointer; transition: all 0.2s; color: var(--black);
}
.btn-pricing-light:hover { background: var(--off); border-color: var(--black); }

.btn-pricing-dark {
  width: 100%; padding: 0.8rem; border-radius: 40px;
  background: var(--primary); border: none;
  font-family: 'DM Sans', sans-serif; font-weight: 700; font-size: 0.9rem;
  cursor: pointer; transition: all 0.2s; color: var(--white);
}
.btn-pricing-dark:hover { background: var(--primary-deep); }

/* ── FREE TRIAL ── */
#trial {
  padding: 80px 5vw;
  background: var(--primary);
}

.trial-inner {
  display: flex; align-items: center; justify-content: space-between;
  gap: 3rem; flex-wrap: wrap;
}
.trial-text h2 { font-family: 'Syne', sans-serif; font-size: clamp(1.6rem, 3vw, 2.4rem); font-weight: 800; letter-spacing: -0.5px; color: var(--white); margin-bottom: 0.5rem; }
.trial-text p { color: rgba(255,255,255,0.85); font-size: 1rem; max-width: 460px; }
.trial-cta { display: flex; align-items: center; gap: 1rem; flex-wrap: wrap; }
.btn-trial {
  background: var(--white); color: var(--primary);
  padding: 0.85rem 2rem; border-radius: 40px;
  font-family: 'DM Sans', sans-serif; font-weight: 700; font-size: 0.95rem;
  cursor: pointer; border: none; text-decoration: none;
  transition: all 0.2s; display: inline-block;
}
.btn-trial:hover { background: var(--off); transform: translateY(-2px); }
.trial-note { font-size: 0.8rem; color: rgba(255,255,255,0.7); }

/* ── CONTACT ── */
#contact {
  padding: 100px 5vw;
  background: var(--off);
}

.contact-layout {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 4rem; align-items: start;
}

.contact-info h2 { font-family: 'Syne', sans-serif; font-size: 2rem; font-weight: 800; margin-bottom: 1rem; letter-spacing: -0.5px; }
.contact-info p { font-size: 0.95rem; color: var(--mid); line-height: 1.7; margin-bottom: 1.5rem; }

.contact-items { display: flex; flex-direction: column; gap: 0.8rem; }
.contact-item {
  display: flex; align-items: center; gap: 0.7rem;
  font-size: 0.9rem; color: var(--charcoal);
}
.contact-item-icon {
  width: 36px; height: 36px; background: var(--blue-light);
  border-radius: 8px; display: flex; align-items: center; justify-content: center;
  font-size: 1rem; flex-shrink: 0;
}

.contact-form { display: flex; flex-direction: column; gap: 1rem; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.form-group { display: flex; flex-direction: column; gap: 0.4rem; }
.form-group label { font-size: 0.82rem; font-weight: 600; color: var(--charcoal); }
.form-group input, .form-group textarea, .form-group select {
  padding: 0.75rem 1rem;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  font-family: 'DM Sans', sans-serif; font-size: 0.9rem;
  color: var(--black); background: var(--white);
  transition: border-color 0.2s; outline: none;
}
.form-group input:focus, .form-group textarea:focus, .form-group select:focus {
  border-color: var(--blue);
}
.form-group textarea { min-height: 120px; resize: vertical; }
.form-success {
  display: flex; flex-direction: column; align-items: center;
  justify-content: center; text-align: center;
  padding: 3rem 2rem; gap: 0.8rem;
}
.form-success-icon {
  width: 56px; height: 56px; border-radius: 50%;
  background: var(--primary); color: var(--white);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.6rem; font-weight: 700; margin-bottom: 0.5rem;
}
.form-success h3 { font-family: 'Syne', sans-serif; font-size: 1.4rem; font-weight: 800; }
.form-success p { color: var(--mid); font-size: 0.95rem; }

.btn-submit {
  background: var(--primary); color: var(--white); font-weight: 700;
  padding: 0.85rem 2rem; border-radius: 40px; font-size: 0.95rem;
  border: none; cursor: pointer; transition: all 0.2s;
  font-family: 'DM Sans', sans-serif;
  align-self: flex-start;
}
.btn-submit:hover { background: var(--primary-deep); transform: translateY(-2px); }

/* ── FOOTER ── */
footer {
  background: var(--black); color: var(--white);
  padding: 60px 5vw 30px;
}

.footer-top {
  display: grid; grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 3rem; margin-bottom: 3rem;
}

.footer-brand .nav-logo { color: var(--white); margin-bottom: 0.8rem; display: block; }
.footer-brand p { font-size: 0.85rem; color: #777; line-height: 1.7; max-width: 260px; }

.footer-col h5 {
  font-family: 'Syne', sans-serif;
  font-size: 0.82rem; font-weight: 700; letter-spacing: 0.06em;
  text-transform: uppercase; color: #666; margin-bottom: 1rem;
}
.footer-col ul { list-style: none; display: flex; flex-direction: column; gap: 0.5rem; }
.footer-col ul a {
  font-size: 0.88rem; color: #aaa; text-decoration: none;
  transition: color 0.2s;
}
.footer-col ul a:hover { color: var(--primary); }

.footer-finance { display: flex; flex-direction: column; gap: 0.5rem; }
.footer-finance p { font-size: 0.82rem; color: #aaa; line-height: 1.5; }
.footer-finance-label { font-size: 0.72rem; font-weight: 600; letter-spacing: 0.05em; text-transform: uppercase; color: #555; }

.footer-bottom {
  border-top: 1px solid #222;
  padding-top: 1.5rem;
  display: flex; align-items: center; justify-content: space-between;
  flex-wrap: wrap; gap: 1rem;
}
.footer-bottom p { font-size: 0.8rem; color: #555; }
.footer-bottom a { color: #555; text-decoration: none; }
.footer-bottom a:hover { color: var(--primary); }

/* ── MOBILE NAV HAMBURGER ── */
.hamburger { display: none; flex-direction: column; gap: 5px; cursor: pointer; background: none; border: none; padding: 4px; }
.hamburger span { display: block; width: 22px; height: 2px; background: var(--black); border-radius: 2px; transition: 0.3s; }

/* ── MOBILE ── */
@media (max-width: 900px) {
  #hero { grid-template-columns: 1fr; padding-top: 100px; text-align: center; }
  .hero-desc { max-width: 100%; }
  .hero-cta { justify-content: center; }
  .hero-trust { justify-content: center; }
  .hero-mockup { order: -1; }
  .mockup-card { max-width: 340px; }

  .features-layout, .contact-layout { grid-template-columns: 1fr; }
  .pricing-grid { grid-template-columns: 1fr; }
  .footer-top { grid-template-columns: 1fr 1fr; }
  .form-row { grid-template-columns: 1fr; }

  .nav-links, .nav-actions .btn-outline { display: none; }
  .hamburger { display: flex; }
}

@media (max-width: 600px) {
  .footer-top { grid-template-columns: 1fr; }
  .trial-inner { text-align: center; }
  .trial-cta { justify-content: center; }
}

/* ── ANIMATIONS ── */
@keyframes float { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-8px); } }
.mockup-card { animation: float 5s ease-in-out infinite; }

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(24px); }
  to { opacity: 1; transform: translateY(0); }
}
.fade-up { opacity: 0; animation: fadeUp 0.6s ease forwards; }
.fade-up.d1 { animation-delay: 0.1s; }
.fade-up.d2 { animation-delay: 0.25s; }
.fade-up.d3 { animation-delay: 0.4s; }
.fade-up.d4 { animation-delay: 0.55s; }
