/* Digitalni Asistent Bob — digiasistent.com */
:root {
  --navy-950: #050a14;
  --navy-900: #0b1b36;
  --navy-800: #102549;
  --navy-700: #1b3a6b;
  --bob-blue: #4aa8ff;
  --bob-blue-strong: #1f6fb8;
  --ui-blue: #1f5f93;
  --ink: #142233;
  --ink-soft: #4a5b6d;
  --line: #dde5ee;
  --paper: #ffffff;
  --paper-2: #f3f6fa;
  --ok: #2e8b57;
  --radius: 14px;
  --shadow: 0 18px 50px rgba(5, 10, 20, .35);
  --font: "Segoe UI", system-ui, -apple-system, Roboto, "Noto Sans", Arial, sans-serif;
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 76px; }
body {
  margin: 0;
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--bob-blue-strong); }
h1, h2, h3 { line-height: 1.15; margin: 0 0 .5em; letter-spacing: -.01em; }
h2 { font-size: clamp(1.7rem, 3.2vw, 2.4rem); }
h3 { font-size: 1.2rem; }
p { margin: 0 0 1em; }

.wrap { width: 100%; max-width: 1160px; margin: 0 auto; padding: 0 20px; }
.accent { color: var(--bob-blue); }
.eyebrow {
  display: inline-block; font-size: .8rem; font-weight: 700; letter-spacing: .12em;
  text-transform: uppercase; color: var(--bob-blue-strong); margin-bottom: .8rem;
}
.dark .eyebrow { color: var(--bob-blue); }
.section { padding: 88px 0; }
.section-head { max-width: 720px; margin-bottom: 44px; }
.section-head p { color: var(--ink-soft); font-size: 1.08rem; }
.dark { background: var(--navy-900); color: #e7eef8; }
.dark .section-head p, .dark p { color: #b9c8dc; }
.alt { background: var(--paper-2); }
.skip { position: absolute; left: -999px; top: 0; background: #fff; padding: 8px 14px; z-index: 100; }
.skip:focus { left: 8px; top: 8px; }

/* Dugmad */
.btn {
  display: inline-flex; align-items: center; gap: .55em; justify-content: center;
  padding: .85em 1.35em; border-radius: 10px; font-weight: 600; font-size: 1rem;
  text-decoration: none; border: 2px solid transparent; cursor: pointer;
  transition: transform .15s ease, background .15s ease, border-color .15s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn:focus-visible, a:focus-visible, button:focus-visible, summary:focus-visible {
  outline: 3px solid var(--bob-blue); outline-offset: 3px;
}
.btn-primary { background: var(--bob-blue); color: #04101f; }
.btn-primary:hover { background: #6bb9ff; }
.btn-ghost { border-color: rgba(255,255,255,.35); color: #fff; }
.btn-ghost:hover { border-color: #fff; }
.btn-dark { background: var(--ui-blue); color: #fff; }
.btn-dark:hover { background: var(--navy-700); }
.btn svg { width: 1.2em; height: 1.2em; flex: none; }

/* Zaglavlje */
.top {
  position: sticky; top: 0; z-index: 50;
  background: rgba(8, 20, 42, .92); backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(255,255,255,.08);
}
.top .wrap { display: flex; align-items: center; gap: 18px; height: 64px; }
.brand { display: flex; align-items: center; gap: 10px; color: #fff; text-decoration: none; font-weight: 700; white-space: nowrap; }
.brand img { width: 36px; height: 36px; border-radius: 50%; }
.brand span span { color: var(--bob-blue); }
.nav { display: flex; gap: 4px; margin-left: auto; }
.nav a { color: #c9d6e8; text-decoration: none; font-size: .95rem; padding: 8px 10px; border-radius: 8px; }
.nav a:hover { color: #fff; background: rgba(255,255,255,.07); }
.top-actions { display: flex; align-items: center; gap: 10px; }
.top .btn { padding: .5em .95em; font-size: .92rem; }

.script-toggle {
  display: inline-flex; border: 1px solid rgba(255,255,255,.25); border-radius: 9px; overflow: hidden;
}
.script-toggle button {
  font: inherit; font-size: .85rem; font-weight: 600; padding: 6px 10px; border: 0; cursor: pointer;
  background: transparent; color: #c9d6e8;
}
.script-toggle button[aria-pressed="true"] { background: var(--bob-blue); color: #04101f; }

.menu-btn {
  display: none; margin-left: auto; background: transparent; border: 1px solid rgba(255,255,255,.25);
  color: #fff; border-radius: 9px; width: 42px; height: 40px; cursor: pointer;
}
.menu-btn svg { width: 22px; height: 22px; }

/* Hero */
.hero {
  position: relative; overflow: hidden; color: #fff;
  background:
    radial-gradient(900px 500px at 78% 40%, rgba(74,168,255,.16), transparent 60%),
    linear-gradient(180deg, var(--navy-900) 0%, #08142a 100%);
}
.hero .wrap {
  display: grid; grid-template-columns: 1.15fr .85fr; align-items: center; gap: 40px;
  padding-top: 72px; padding-bottom: 72px;
}
.hero h1 { font-size: clamp(2.5rem, 6vw, 4.2rem); margin-bottom: .35em; }
.hero .lead { font-size: clamp(1.08rem, 1.6vw, 1.25rem); color: #c3d2e6; max-width: 600px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin: 28px 0 22px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; padding: 0; margin: 0; list-style: none; }
.chips li {
  border: 1px solid rgba(74,168,255,.45); color: #dce9f8; border-radius: 999px;
  padding: 4px 14px; font-size: .9rem; background: rgba(74,168,255,.08);
}
.hero-art { position: relative; justify-self: center; max-width: 440px; }
.hero-art img {
  -webkit-mask-image: radial-gradient(ellipse 70% 72% at 50% 46%, #000 62%, transparent 100%);
          mask-image: radial-gradient(ellipse 70% 72% at 50% 46%, #000 62%, transparent 100%);
}
.hero-note { margin-top: 14px; font-size: .92rem; color: #9fb3cc; display: flex; align-items: center; gap: 8px; }
.hero-note svg { width: 18px; height: 18px; color: var(--bob-blue); flex: none; }

/* Moduli */
.modules { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.card {
  background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 28px; display: flex; flex-direction: column;
}
.card .icon {
  width: 48px; height: 48px; border-radius: 12px; display: grid; place-items: center;
  background: linear-gradient(135deg, var(--navy-800), var(--ui-blue)); color: #fff; margin-bottom: 18px;
}
.card .icon svg { width: 26px; height: 26px; }
.card .tag { font-size: .8rem; font-weight: 700; color: var(--bob-blue-strong); text-transform: uppercase; letter-spacing: .08em; }
.card p { color: var(--ink-soft); }
.ticks { list-style: none; padding: 0; margin: 0; }
.ticks li { position: relative; padding-left: 28px; margin: 0 0 .55em; }
.ticks li::before {
  content: ""; position: absolute; left: 0; top: .42em; width: 16px; height: 16px; border-radius: 50%;
  background: var(--bob-blue) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M4 8.3l2.6 2.5L12 5.4' fill='none' stroke='%2304101f' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/12px no-repeat;
}
.dark .ticks li { color: #dce7f5; }

/* Prikaz rada (snimci) */
.show { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; margin-bottom: 96px; }
.show:last-child { margin-bottom: 0; }
.show > *, .hero .wrap > *, .split > * { min-width: 0; }
.show.flip .show-text { order: 2; }
.show h3 { font-size: clamp(1.5rem, 2.6vw, 2rem); color: #fff; }
.show-img { justify-self: center; max-width: 100%; }
.show-img img { border-radius: 12px; box-shadow: var(--shadow); }
.show-img.narrow img { max-width: min(400px, 100%); }

/* Koraci */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; counter-reset: step; list-style: none; padding: 0; margin: 0; }
.steps li { position: relative; background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: 26px 22px 22px; }
.steps li::before {
  counter-increment: step; content: counter(step);
  display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%;
  background: var(--navy-900); color: var(--bob-blue); font-weight: 800; margin-bottom: 14px;
}
.steps p { color: var(--ink-soft); margin: 0; font-size: .97rem; }

/* Bezbednost */
.trust-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.trust {
  border: 1px solid rgba(255,255,255,.1); background: rgba(255,255,255,.04);
  border-radius: var(--radius); padding: 24px;
}
.trust svg { width: 28px; height: 28px; color: var(--bob-blue); margin-bottom: 12px; }
.trust h3 { color: #fff; font-size: 1.08rem; }
.trust p { margin: 0; font-size: .97rem; }
.trust-more { margin-top: 30px; }
.trust-more a { color: var(--bob-blue); font-weight: 600; }

/* Licenca i reference */
.split { display: grid; grid-template-columns: 1.1fr .9fr; gap: 28px; align-items: stretch; }
.license {
  border-radius: var(--radius); padding: 36px; color: #fff;
  background: linear-gradient(140deg, var(--navy-900), var(--navy-700));
}
.license h3 { font-size: 1.6rem; }
.license .price { font-size: 1.05rem; color: #b9c8dc; margin: 6px 0 22px; }
.license .price strong { color: var(--bob-blue); font-size: 1.5rem; display: block; }
.license .btn { margin-top: 22px; }
.refs { border: 1px solid var(--line); border-radius: var(--radius); padding: 32px; background: var(--paper); }
.ref-list { list-style: none; padding: 0; margin: 16px 0 0; display: grid; gap: 10px; }
.ref-list li { display: flex; align-items: center; gap: 12px; padding: 14px 16px; border-radius: 10px; background: var(--paper-2); font-weight: 600; }
.ref-list svg { width: 24px; height: 24px; color: var(--ui-blue); flex: none; }
.refs .soon { color: var(--ink-soft); font-size: .95rem; margin-top: 14px; }

/* Česta pitanja */
.faq { max-width: 820px; }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary {
  list-style: none; cursor: pointer; padding: 20px 40px 20px 0; font-weight: 600; font-size: 1.08rem; position: relative;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: ""; position: absolute; right: 6px; top: 50%; width: 12px; height: 12px; margin-top: -8px;
  border-right: 2px solid var(--ui-blue); border-bottom: 2px solid var(--ui-blue); transform: rotate(45deg); transition: transform .2s;
}
.faq details[open] summary::after { transform: rotate(-135deg); margin-top: -2px; }
.faq details p { color: var(--ink-soft); padding-right: 30px; }

/* Kontakt */
.contact { text-align: center; }
.contact .section-head { margin-left: auto; margin-right: auto; }
.mail {
  display: inline-flex; align-items: center; gap: 12px; font-size: clamp(1.05rem, 2.6vw, 1.5rem); font-weight: 700;
  color: #fff; text-decoration: none; padding: 16px 26px; border-radius: 12px;
  border: 1px solid rgba(74,168,255,.5); background: rgba(74,168,255,.1); word-break: break-all;
}
.mail:hover { background: rgba(74,168,255,.2); }
.mail svg { width: 26px; height: 26px; color: var(--bob-blue); flex: none; }
.contact .hint { margin-top: 22px; font-size: .97rem; }

/* Podnožje */
.foot { background: var(--navy-950); color: #8ea2bc; font-size: .93rem; padding: 36px 0; }
.foot .wrap { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 18px; }
.foot a { color: #c9d6e8; text-decoration: none; }
.foot a:hover { color: #fff; text-decoration: underline; }
.foot-links { display: flex; flex-wrap: wrap; gap: 18px; }
.foot .brand { font-size: .98rem; }

/* Stranica politike privatnosti */
.page-head { background: var(--navy-900); color: #fff; padding: 56px 0 44px; }
.page-head h1 { font-size: clamp(1.9rem, 4vw, 2.7rem); }
.page-head p { color: #b9c8dc; margin: 0; }
.legal { max-width: 800px; padding-top: 48px; padding-bottom: 80px; }
.legal h2 { font-size: 1.3rem; margin-top: 2.2em; padding-top: .2em; }
.legal p, .legal li { color: #2b3a4a; }
.legal ul { padding-left: 1.2em; }
.legal li { margin-bottom: .35em; }
.legal .toc { background: var(--paper-2); border-radius: var(--radius); padding: 20px 26px; margin-bottom: 10px; }
.legal .toc ol { margin: 8px 0 0; padding-left: 1.3em; columns: 2; column-gap: 30px; }
.legal .toc a { text-decoration: none; }
.legal .toc a:hover { text-decoration: underline; }

/* Prilagođavanje */
@media (max-width: 1020px) {
  .nav { display: none; }
  .menu-btn { display: inline-grid; place-items: center; }
  .top-actions { margin-left: 0; }
  .top.open .nav {
    display: flex; flex-direction: column; position: absolute; top: 64px; left: 0; right: 0;
    background: #08142a; padding: 10px 16px 18px; border-bottom: 1px solid rgba(255,255,255,.1);
  }
  .top.open .nav a { padding: 12px 10px; font-size: 1.05rem; }
  .modules, .trust-grid { grid-template-columns: 1fr 1fr; }
  .steps { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 760px) {
  body { font-size: 16px; }
  .wrap { padding: 0 16px; }
  .section { padding: 64px 0; }
  .hero .wrap { grid-template-columns: 1fr; padding-top: 40px; padding-bottom: 56px; gap: 10px; }
  .hero-art { order: -1; max-width: 260px; }
  .modules, .trust-grid, .steps, .split { grid-template-columns: 1fr; }
  .show { grid-template-columns: 1fr; gap: 26px; margin-bottom: 64px; }
  .show.flip .show-text { order: 0; }
  .top-actions .btn-chrome { display: none; }
  .legal .toc ol { columns: 1; }
  .license, .refs { padding: 26px; }
}
@media (max-width: 400px) {
  .brand > span { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .btn { transition: none; }
}
