/* ─── Dizajn: svijetla siva podloga, bijeli zaobljeni paneli, mekane sjene, pill gumbi ─── */
:root {
  --canvas: #eef0f4;
  --panel: #ffffff;
  --soft: #f5f6f8;
  --soft-2: #eceef2;
  --ink: #1b1f27;
  --ink-2: #4b5563;
  --muted: #8a94a6;
  --line: #e6e8ee;
  --accent: #3b82f6;
  --accent-ink: #1e3a8a;
  --accent-soft: #dbe7ff;
  --accent-soft-2: #edf3ff;
  --ok: #22c55e;
  --warn: #f59e0b;
  --radius-xl: 28px;
  --radius-lg: 20px;
  --radius-md: 14px;
  --shadow-panel: 0 24px 60px rgba(27, 31, 39, .07), 0 2px 6px rgba(27, 31, 39, .04);
  --shadow-soft: 0 10px 30px rgba(27, 31, 39, .06);
  --max: 1180px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: Poppins, Inter, system-ui, -apple-system, "Segoe UI", sans-serif;
  color: var(--ink);
  background: var(--canvas);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; }
h1, h2, h3, h4 { line-height: 1.2; margin: 0 0 .5em; letter-spacing: -.01em; font-weight: 600; }
h1 { font-size: clamp(2rem, 4.2vw, 3.1rem); font-weight: 700; }
h2 { font-size: clamp(1.5rem, 2.8vw, 2.1rem); }
h3 { font-size: 1.05rem; }
p { margin: 0 0 1em; }
.muted { color: var(--muted); }
.small { font-size: .85rem; }

.container { max-width: var(--max); margin: 0 auto; padding: 0 24px; }
.container.narrow { max-width: 820px; }

/* Sekcije kao paneli */
.section { padding: 32px 0; }
.section > .container { background: var(--panel); border-radius: var(--radius-xl); box-shadow: var(--shadow-panel); padding: 72px 64px; }
.section-alt > .container { background: transparent; box-shadow: none; padding: 40px 24px; }
.section-head { max-width: 640px; margin: 0 auto 44px; text-align: center; }
.section-head p { color: var(--ink-2); font-size: 1rem; }
.eyebrow {
  display: inline-block; font-size: .74rem; font-weight: 600; letter-spacing: .1em;
  text-transform: uppercase; color: var(--accent); margin-bottom: 12px;
}

/* Gumbi (pill) */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 13px 24px; border-radius: 999px; font-weight: 500; font-size: .95rem;
  border: 1px solid transparent; cursor: pointer; transition: transform .12s, box-shadow .12s, background .12s, color .12s;
  font-family: inherit;
}
.btn:hover { transform: translateY(-1px); }
.btn-primary { background: var(--accent-soft); color: var(--accent-ink); }
.btn-primary:hover { background: #cbdcff; }
.btn-ghost { background: var(--panel); color: var(--ink); border-color: var(--line); }
.btn-ghost:hover { background: var(--soft); }
.btn-outline { background: var(--panel); color: var(--ink); border-color: var(--line); }
.btn-outline:hover { border-color: #cfd4dd; }
.btn-dark { background: var(--ink); color: #fff; }
.btn-dark:hover { background: #2a303c; }
.btn-sm { padding: 9px 18px; font-size: .875rem; }

/* Header */
.site-header { position: sticky; top: 16px; z-index: 50; padding: 0 24px; }
.site-header .nav {
  max-width: var(--max); margin: 0 auto; display: flex; align-items: center; gap: 28px; height: 64px;
  background: rgba(255, 255, 255, .92); backdrop-filter: blur(12px); border-radius: 999px;
  padding: 0 12px 0 22px; box-shadow: var(--shadow-soft);
}
.logo { display: inline-flex; align-items: center; gap: 10px; font-weight: 700; font-size: 1.15rem; letter-spacing: -.01em; }
.logo-mark {
  width: 34px; height: 34px; border-radius: 11px; background: var(--ink); color: #fff;
  display: inline-grid; place-items: center; font-size: .9rem; font-weight: 700;
}
.nav-links { display: flex; gap: 26px; margin-left: auto; font-weight: 500; color: var(--muted); font-size: .93rem; }
.nav-links a:hover { color: var(--ink); }
.nav-toggle { display: none; background: none; border: 0; font-size: 1.4rem; cursor: pointer; margin-left: auto; }

/* Hero */
.hero { padding: 56px 0 8px; }
.hero > .container { background: var(--panel); border-radius: var(--radius-xl); box-shadow: var(--shadow-panel); padding: 72px 64px; }
.hero-grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: 56px; align-items: center; }
.lead { font-size: 1.05rem; color: var(--ink-2); max-width: 520px; }
.hero-actions { display: flex; gap: 12px; margin: 28px 0 28px; flex-wrap: wrap; }
.hero-proof { list-style: none; padding: 0; margin: 0; display: flex; gap: 22px; flex-wrap: wrap; color: var(--ink-2); font-size: .88rem; }
.hero-proof li::before { content: "✓ "; color: var(--ok); font-weight: 700; }

/* Chat mock */
.chat-mock {
  max-width: 380px; margin-left: auto; border-radius: 24px; background: var(--soft);
  overflow: hidden; font-size: .88rem; border: 1px solid var(--line);
}
.chat-mock-head { display: flex; align-items: center; gap: 12px; padding: 16px 18px; background: var(--panel); border-bottom: 1px solid var(--line); }
.chat-mock-head small { display: block; color: var(--muted); font-size: .74rem; }
.chat-avatar { width: 38px; height: 38px; border-radius: 12px; background: var(--accent-soft); display: grid; place-items: center; }
.chat-mock-body { padding: 18px; display: flex; flex-direction: column; gap: 10px; }
.bubble { max-width: 86%; padding: 11px 15px; border-radius: 18px; line-height: 1.5; }
.bubble.user { align-self: flex-end; background: var(--ink); color: #fff; border-bottom-right-radius: 6px; }
.bubble.bot { align-self: flex-start; background: var(--panel); border-bottom-left-radius: 6px; border: 1px solid var(--line); }
.bubble.system { align-self: center; background: #dcfce7; color: #166534; font-size: .78rem; padding: 6px 14px; border-radius: 999px; }
.product-row { display: flex; gap: 8px; }
.product-card {
  flex: 1; border-radius: 14px; padding: 8px; background: var(--panel); font-size: .76rem; border: 1px solid var(--line);
  display: flex; flex-direction: column; gap: 4px;
}
.product-card b { font-weight: 600; }
.product-card span { color: var(--accent); font-weight: 600; }
.product-img { height: 54px; border-radius: 10px; background: linear-gradient(135deg, var(--soft-2), var(--soft)); }
.chat-mock-input { padding: 14px 18px; margin: 0 14px 14px; border-radius: 999px; background: var(--panel); color: var(--muted); border: 1px solid var(--line); }

/* Stats: red s okomitim linijama kao na dashboardu */
.stats { padding: 24px 0 8px; }
.stats-grid { max-width: var(--max); margin: 0 auto; padding: 0 24px; display: grid; grid-template-columns: repeat(4, 1fr); }
.stats-grid > div { padding: 18px 28px; border-left: 1px solid var(--line); }
.stats-grid > div:first-child { border-left: 0; }
.stats-grid strong { display: block; font-size: 1.6rem; font-weight: 600; color: var(--ink); line-height: 1.2; }
.stats-grid span { color: var(--muted); font-size: .86rem; }

/* Funkcije */
.feature-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.feature {
  position: relative; background: var(--soft); border-radius: var(--radius-lg); padding: 24px;
  transition: transform .15s, background .15s;
}
.feature:hover { transform: translateY(-2px); background: var(--soft-2); }
.feature-icon {
  width: 48px; height: 48px; border-radius: 50%; background: var(--panel); display: grid; place-items: center;
  font-size: 1.25rem; margin-bottom: 14px; box-shadow: 0 1px 2px rgba(27,31,39,.06);
}
.feature p { color: var(--ink-2); font-size: .9rem; margin-bottom: 14px; }
.tag {
  display: inline-block; font-size: .7rem; font-weight: 600; letter-spacing: .06em; text-transform: uppercase;
  padding: 4px 10px; border-radius: 999px; background: var(--accent-soft); color: var(--accent-ink);
}
.tag-pro { background: #fde9c8; color: #92400e; }

/* Koraci */
.steps { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.steps li { background: var(--panel); border-radius: var(--radius-lg); padding: 30px; box-shadow: var(--shadow-soft); }
.step-num {
  display: inline-grid; place-items: center; width: 44px; height: 44px; border-radius: 50%;
  background: var(--accent-soft); color: var(--accent-ink); font-weight: 600; margin-bottom: 16px;
}
.steps p { color: var(--ink-2); font-size: .92rem; margin: 0; }

/* Cjenik */
.pricing-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; align-items: stretch; }
.plan {
  position: relative; display: flex; flex-direction: column; background: var(--soft);
  border-radius: 24px; padding: 32px 28px; border: 1px solid transparent;
}
.plan-featured { background: var(--panel); border-color: var(--line); box-shadow: var(--shadow-soft); }
.badge {
  position: absolute; top: -14px; left: 50%; transform: translateX(-50%); background: var(--ink); color: #fff;
  font-size: .72rem; font-weight: 500; padding: 6px 14px; border-radius: 999px; white-space: nowrap;
}
.plan h3 { font-size: 1.2rem; margin-bottom: 2px; }
.plan-desc { color: var(--muted); margin-bottom: 18px; font-size: .92rem; }
.price { font-size: 2.8rem; font-weight: 600; line-height: 1; display: flex; align-items: baseline; gap: 4px; }
.price .currency { font-size: 1.3rem; color: var(--muted); font-weight: 500; }
.price .period { font-size: .95rem; color: var(--muted); font-weight: 400; }
.plan-limit { margin: 14px 0 20px; padding: 10px 14px; background: var(--panel); border-radius: 999px; font-size: .88rem; display: inline-block; }
.plan-featured .plan-limit { background: var(--accent-soft-2); }
.plan-features { list-style: none; padding: 0; margin: 0 0 22px; display: flex; flex-direction: column; gap: 10px; font-size: .9rem; flex: 1; }
.plan-features li::before { content: "✓"; color: var(--ok); font-weight: 700; margin-right: 8px; }
.plan-features li.muted::before { content: "–"; color: var(--muted); }
.plan-extra { font-size: .8rem; color: var(--muted); margin-bottom: 18px; }
.pricing-note { text-align: center; color: var(--muted); font-size: .86rem; margin-top: 28px; }

/* Usporedba */
.table-wrap { overflow-x: auto; border-radius: var(--radius-lg); background: var(--panel); box-shadow: var(--shadow-soft); }
.compare { width: 100%; border-collapse: collapse; font-size: .9rem; min-width: 640px; }
.compare th, .compare td { padding: 13px 18px; border-bottom: 1px solid var(--line); text-align: center; }
.compare th:first-child, .compare td:first-child { text-align: left; }
.compare thead th { background: var(--soft); font-weight: 600; }
.compare thead th:nth-child(3) { color: var(--accent); }
.compare tr.group td { background: var(--soft); font-weight: 600; font-size: .74rem; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); text-align: left; }
.compare tbody tr:last-child td { border-bottom: 0; }

/* Demo */
.demo-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center; }
.demo-hints { list-style: none; padding: 0; margin: 0 0 16px; display: flex; flex-direction: column; gap: 8px; }
.demo-hints li { background: var(--soft); color: var(--ink-2); padding: 9px 14px; border-radius: 999px; font-size: .9rem; width: fit-content; }
.demo-frame {
  position: relative; height: 640px; border-radius: 24px; overflow: hidden; background: var(--soft);
}
.demo-frame iframe { width: 100%; height: 100%; border: 0; display: block; }
.demo-placeholder { position: absolute; inset: 0; display: grid; place-items: center; text-align: center; color: var(--muted); padding: 24px; }

/* FAQ */
details { background: var(--panel); border-radius: 16px; padding: 0 22px; margin-bottom: 10px; box-shadow: var(--shadow-soft); }
summary { cursor: pointer; font-weight: 500; padding: 18px 0; list-style: none; display: flex; justify-content: space-between; align-items: center; }
summary::-webkit-details-marker { display: none; }
summary::after { content: "+"; color: var(--muted); font-weight: 500; font-size: 1.2rem; }
details[open] summary::after { content: "–"; }
details p { color: var(--ink-2); padding-bottom: 18px; margin: 0; font-size: .93rem; }

/* CTA */
.cta { padding: 32px 0 64px; }
.cta > .container { background: transparent; box-shadow: none; padding: 0 24px; }
.cta-box {
  display: grid; grid-template-columns: 1.1fr .9fr; gap: 40px; align-items: center; background: var(--ink); color: #fff;
  border-radius: var(--radius-xl); padding: 52px; box-shadow: var(--shadow-panel);
}
.cta-box h2 { color: #fff; }
.cta-box p { color: #aab2c0; margin: 0; }
.cta-form { display: flex; flex-direction: column; gap: 10px; }
.cta-form input { padding: 14px 18px; border-radius: 999px; border: 1px solid #343b48; background: #262c37; color: #fff; font: inherit; }
.cta-form input::placeholder { color: #8a94a6; }
.cta-form .btn { align-self: flex-start; }

/* Footer */
.site-footer { padding: 24px 0 32px; font-size: .9rem; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 32px; }
.footer-grid p { color: var(--muted); margin-top: 12px; max-width: 280px; }
.footer-grid h4 { font-size: .78rem; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); margin-bottom: 12px; font-weight: 600; }
.footer-grid a { display: block; color: var(--ink-2); margin-bottom: 8px; }
.footer-grid a:hover { color: var(--ink); }
.footer-bottom { margin-top: 32px; padding-top: 20px; border-top: 1px solid var(--line); color: var(--muted); font-size: .82rem; }

/* Responsive */
@media (max-width: 1000px) {
  .section > .container, .hero > .container { padding: 48px 32px; }
  .feature-grid { grid-template-columns: repeat(2, 1fr); }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .stats-grid > div:nth-child(3) { border-left: 0; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 820px) {
  .site-header { top: 8px; padding: 0 12px; }
  .hero { padding: 32px 0 8px; }
  .hero-grid, .demo-grid, .cta-box { grid-template-columns: 1fr; }
  .chat-mock { margin: 0 auto; }
  .pricing-grid, .steps { grid-template-columns: 1fr; }
  .plan-featured { order: -1; }
  .nav-links, .nav .btn { display: none; }
  .nav-toggle { display: block; }
  .nav { position: relative; }
  .nav.open .nav-links {
    display: flex; flex-direction: column; position: absolute; top: 72px; left: 0; right: 0;
    background: #fff; padding: 16px 24px 24px; border-radius: 24px; box-shadow: var(--shadow-soft); gap: 14px;
  }
  .demo-frame { height: 560px; }
}
@media (max-width: 520px) {
  .section > .container, .hero > .container { padding: 40px 20px; border-radius: 20px; }
  .feature-grid, .stats-grid, .footer-grid { grid-template-columns: 1fr; }
  .stats-grid > div { border-left: 0; border-top: 1px solid var(--line); }
  .stats-grid > div:first-child { border-top: 0; }
  .cta-box { padding: 28px; }
}
