:root {
  --bg: #07090f;
  --bg-alt: #0b0e16;
  --surface: #10141f;
  --surface-2: #171c2a;
  --line: rgba(255, 255, 255, 0.09);
  --line-strong: rgba(255, 255, 255, 0.17);
  --text: #f1f3f8;
  --muted: #a0a8b9;
  --faint: #737c8f;
  --accent: #6d8dff;
  --accent-strong: #8ea8ff;
  --accent-soft: rgba(109, 141, 255, 0.16);
  --ok: #4fe0bb;
  --ok-soft: rgba(79, 224, 187, 0.13);
  --warn: #ffc069;
  --warn-soft: rgba(255, 192, 105, 0.14);
  --sans: "Geist", "Helvetica Neue", Arial, sans-serif;
  --mono: "Geist Mono", ui-monospace, Menlo, monospace;
  color-scheme: dark;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: 96px; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 400 17px/1.6 var(--sans);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

h1, h2, h3, p, ul, ol { margin: 0; }
ul, ol { padding: 0; list-style: none; }
a { color: inherit; }

h1, h2, h3 { font-weight: 600; letter-spacing: -0.03em; line-height: 1.08; text-wrap: balance; }
h1 { font-size: clamp(2.7rem, 7vw, 5.4rem); letter-spacing: -0.045em; line-height: 1.02; }
h1 span { color: var(--muted); }
h2 { font-size: clamp(2rem, 4vw, 3.2rem); }
h3 { font-size: 1.3rem; letter-spacing: -0.02em; }

.sprite { position: absolute; width: 0; height: 0; }
.icon {
  width: 1.15em;
  height: 1.15em;
  flex: none;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.wrap { width: min(1200px, 100% - 48px); margin-inline: auto; }

.skip { position: absolute; left: 12px; top: -60px; padding: 8px 14px; background: var(--text); color: var(--bg); z-index: 30; border-radius: 8px; }
.skip:focus { top: 12px; }
:focus-visible { outline: 2px solid var(--accent-strong); outline-offset: 2px; }

/* Header */
.site-header { position: sticky; top: 14px; z-index: 20; padding-inline: 16px; margin-top: 14px; }
.header-bar {
  display: flex;
  align-items: center;
  gap: 16px;
  max-width: 1040px;
  min-height: 60px;
  margin-inline: auto;
  padding: 8px 10px 8px 20px;
  background: rgba(16, 20, 31, 0.78);
  border: 1px solid var(--line);
  border-radius: 16px;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}
.brand { display: inline-flex; align-items: center; gap: 10px; font-weight: 600; font-size: 1.08rem; letter-spacing: -0.02em; text-decoration: none; }
.mark { display: block; width: auto; height: 30px; flex: none; }
.nav { display: flex; gap: 4px; margin-left: auto; font-size: 0.94rem; }
.nav a { padding: 7px 12px; border-radius: 8px; color: var(--muted); text-decoration: none; transition: color 0.15s, background 0.15s; }
.nav a:hover { color: var(--text); background: rgba(255, 255, 255, 0.06); }
.nav-cta-mobile { display: none; }
.menu-btn { display: none; width: 42px; height: 42px; margin-left: auto; align-items: center; justify-content: center; border: 1px solid var(--line); border-radius: 10px; background: transparent; color: var(--text); font-size: 1.1rem; cursor: pointer; }

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 52px;
  padding: 0 24px;
  border: 1px solid transparent;
  border-radius: 12px;
  font: 500 1rem/1 var(--sans);
  text-decoration: none;
  cursor: pointer;
  transition: background 0.15s, border-color 0.15s, transform 0.15s;
}
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--text); color: var(--bg); }
.btn-primary:hover { background: #fff; }
.btn-primary .icon { transition: transform 0.15s; }
.btn-primary:hover .icon { transform: translateX(3px); }
.btn-secondary { background: rgba(255, 255, 255, 0.05); border-color: var(--line-strong); color: var(--text); }
.btn-secondary:hover { background: rgba(255, 255, 255, 0.1); }
.btn-small { min-height: 42px; padding: 0 16px; font-size: 0.92rem; border-radius: 10px; white-space: nowrap; }

/* Hero */
.hero { position: relative; padding-top: clamp(64px, 9vw, 112px); }
.hero::before {
  content: "";
  position: absolute;
  inset: -90px 0 auto;
  height: 980px;
  z-index: -1;
  background:
    radial-gradient(ellipse 58% 44% at 50% 30%, rgba(79, 112, 255, 0.3), transparent 70%),
    radial-gradient(ellipse 30% 26% at 76% 56%, rgba(79, 224, 187, 0.09), transparent 70%);
  pointer-events: none;
}
.hero-copy { display: flex; flex-direction: column; align-items: center; text-align: center; }
.pill {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  margin-bottom: 26px;
  padding: 7px 14px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--line);
  border-radius: 99px;
  color: var(--muted);
  font-size: 0.88rem;
}
.pill-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--ok); }
.lead { max-width: 37em; margin-top: 26px; color: var(--muted); font-size: clamp(1.08rem, 1.7vw, 1.26rem); line-height: 1.55; text-wrap: pretty; }
.actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-top: 36px; }

/* Demo aplikacija */
#demo { margin-top: clamp(52px, 7vw, 80px); scroll-margin-top: 96px; }
.app {
  margin: 0;
  overflow: hidden;
  background: var(--surface);
  border: 1px solid var(--line-strong);
  border-radius: 18px;
  box-shadow: 0 40px 120px -30px rgba(40, 70, 220, 0.5);
}
.app-bar { display: flex; align-items: center; gap: 14px; padding: 13px 18px; border-bottom: 1px solid var(--line); font-size: 0.86rem; }
.app-bar strong { font-weight: 500; }
.app-note { margin-left: auto; color: var(--faint); font: 400 0.76rem/1 var(--mono); }
.dots { display: flex; gap: 6px; }
.dots i { width: 10px; height: 10px; border-radius: 50%; background: rgba(255, 255, 255, 0.16); }
.app-body { display: grid; grid-template-columns: 170px minmax(0, 1fr) 250px; min-height: 560px; }
.app-side { padding: 14px 10px; border-right: 1px solid var(--line); display: flex; flex-direction: column; gap: 2px; }
.side-item { display: flex; align-items: center; gap: 10px; padding: 9px 10px; border-radius: 8px; color: var(--faint); font-size: 0.88rem; }
.side-item.active { background: var(--accent-soft); color: var(--accent-strong); }
.app-main { padding: 22px; min-width: 0; }
.app-head { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 14px; align-items: flex-start; }
.app-head h2 { font-size: 1.3rem; letter-spacing: -0.02em; }
.app-head p { margin-top: 5px; color: var(--muted); font-size: 0.86rem; }
.tabs { display: flex; flex-wrap: wrap; gap: 3px; padding: 3px; background: var(--bg); border: 1px solid var(--line); border-radius: 10px; }
.tab { padding: 6px 11px; border: 0; border-radius: 7px; background: transparent; color: var(--muted); font: 500 0.82rem/1.2 var(--sans); cursor: pointer; white-space: nowrap; }
.tab:hover { color: var(--text); }
.tab[aria-pressed="true"] { background: var(--surface-2); color: var(--text); box-shadow: inset 0 0 0 1px var(--line); }

.kpis { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; margin: 18px 0; }
.kpi { padding: 12px 14px; background: var(--bg-alt); border: 1px solid var(--line); border-radius: 12px; min-width: 0; }
.kpi span { display: block; color: var(--muted); font-size: 0.78rem; }
.kpi b { display: block; margin-top: 3px; font: 500 1.45rem/1.15 var(--mono); letter-spacing: -0.03em; }
.meter { height: 4px; margin-top: 8px; background: rgba(255, 255, 255, 0.09); border-radius: 3px; overflow: hidden; }
.meter i { display: block; height: 100%; width: 0; background: var(--ok); border-radius: 3px; transition: width 0.3s; }

.grid { display: grid; grid-template-columns: 46px repeat(3, minmax(0, 1fr)); gap: 4px; }
.col-head { padding: 2px 4px 6px; color: var(--muted); font-size: 0.78rem; font-weight: 500; text-align: center; overflow-wrap: anywhere; }
.time { align-self: center; color: var(--faint); font: 400 0.72rem/1 var(--mono); }
.slot {
  min-height: 35px;
  padding: 3px 8px;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: transparent;
  color: var(--faint);
  font: 500 0.76rem/1.15 var(--sans);
  text-align: left;
  cursor: pointer;
  overflow: hidden;
  transition: background 0.12s, border-color 0.12s;
}
.slot:hover { border-color: var(--line-strong); background: rgba(255, 255, 255, 0.05); }
.slot.booked { background: var(--ok-soft); border-color: rgba(79, 224, 187, 0.26); color: var(--ok); }
.slot.new { background: var(--accent-soft); border-color: rgba(142, 168, 255, 0.55); color: var(--accent-strong); }

.app-feed { padding: 22px 16px; border-left: 1px solid var(--line); }
.app-feed h3 { display: flex; align-items: center; gap: 8px; margin-bottom: 14px; font-size: 0.92rem; font-weight: 500; letter-spacing: -0.01em; }
.app-feed li { padding: 11px 0; border-top: 1px solid var(--line); font-size: 0.82rem; line-height: 1.4; color: var(--muted); }
.app-feed li b { display: block; color: var(--text); font-weight: 500; }

/* Djelatnosti */
.industries { padding: clamp(52px, 7vw, 80px) 0 0; text-align: center; }
.industries p { color: var(--faint); font-size: 0.92rem; }
.industries ul { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px 34px; margin-top: 20px; color: var(--muted); }
.industries li { display: flex; align-items: center; gap: 9px; font-weight: 500; }

/* Sekcije */
.section { padding: clamp(80px, 10vw, 128px) 0; }
.section-alt { background: var(--bg-alt); border-block: 1px solid var(--line); }
.section-head { max-width: 760px; margin-bottom: clamp(36px, 5vw, 56px); }
.kicker { margin-bottom: 14px; color: var(--accent-strong); font: 500 0.82rem/1.3 var(--mono); }

/* Bento */
.bento { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.card { overflow: hidden; padding: clamp(24px, 3vw, 36px); background: var(--surface); border: 1px solid var(--line); border-radius: 18px; transition: border-color 0.2s; }
.card:hover { border-color: var(--line-strong); }
.card > p, .card-copy > p:not(.kicker) { margin-top: 12px; color: var(--muted); }
.card-crm, .card-orders { grid-column: 1 / -1; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 32px; align-items: center; }
.card-crm h3, .card-orders h3 { font-size: clamp(1.7rem, 3vw, 2.4rem); letter-spacing: -0.03em; }
.card-orders .visual { height: auto; margin-bottom: 0; }
.checks { margin-top: 22px; display: grid; gap: 10px; }
.checks li { display: flex; align-items: center; gap: 10px; }
.checks .icon { color: var(--ok); }

.phone { position: relative; justify-self: center; width: min(300px, 100%); padding-bottom: 26px; }
.phone-screen { padding: 22px 18px; background: var(--bg); border: 1px solid var(--line-strong); border-radius: 26px; }
.phone-screen small { display: block; color: var(--faint); font-size: 0.76rem; }
.phone-screen strong { display: block; margin: 2px 0 14px; font-size: 1.1rem; font-weight: 600; letter-spacing: -0.02em; }
.days { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; }
.days i { padding: 8px 0; border: 1px solid var(--line); border-radius: 10px; color: var(--muted); font: 400 0.72rem/1.3 var(--sans); text-align: center; }
.days b { display: block; color: var(--text); font-size: 0.96rem; font-weight: 500; }
.days .on { background: var(--accent-soft); border-color: var(--accent); }
.times { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; margin: 12px 0; }
.times i { padding: 8px 0; border: 1px solid var(--line); border-radius: 9px; font: 400 0.76rem/1 var(--mono); text-align: center; }
.times .off { color: var(--faint); opacity: 0.45; text-decoration: line-through; }
.times .on { background: var(--text); color: var(--bg); border-color: var(--text); }
.phone-btn { display: block; padding: 11px; background: var(--accent); color: #0a0e1c; border-radius: 10px; font-size: 0.84rem; font-weight: 600; text-align: center; }
.toast {
  position: absolute;
  left: -30px;
  bottom: 0;
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 10px 14px;
  background: var(--surface-2);
  border: 1px solid var(--line-strong);
  border-radius: 12px;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.5);
  font-size: 0.82rem;
  white-space: nowrap;
}
.toast .icon { color: var(--ok); }

.visual { height: 148px; margin-bottom: 26px; padding: 16px; background: var(--bg); border: 1px solid var(--line); border-radius: 12px; overflow: hidden; }
.visual-app { display: grid; gap: 8px; align-content: center; }
.row { display: flex; align-items: center; gap: 10px; padding: 8px 10px; background: var(--surface); border-radius: 8px; }
.row span { flex: 1; height: 7px; max-width: 58%; background: rgba(255, 255, 255, 0.17); border-radius: 4px; }
.row span.s2 { max-width: 44%; }
.row span.s3 { max-width: 50%; }
.row em { margin-left: auto; color: var(--muted); font: 400 0.72rem/1 var(--mono); }
.st { width: 9px; height: 9px; border-radius: 50%; background: var(--faint); }
.st-ok { background: var(--ok); }
.st-go { background: var(--accent); }
.visual-web { padding: 0; }
.browser { display: flex; gap: 5px; padding: 10px 12px; border-bottom: 1px solid var(--line); }
.browser i { width: 7px; height: 7px; border-radius: 50%; background: rgba(255, 255, 255, 0.16); }
.page { padding: 16px 18px; }
.page b { display: block; width: 62%; height: 13px; background: rgba(255, 255, 255, 0.72); border-radius: 4px; }
.page span { display: block; width: 84%; height: 6px; margin-top: 11px; background: rgba(255, 255, 255, 0.15); border-radius: 3px; }
.page span.s2 { width: 66%; margin-top: 6px; }
.page u { display: block; width: 84px; height: 20px; margin-top: 13px; background: var(--accent); border-radius: 6px; }

/* Aplikacije po mjeri */
.custom {
  margin-top: 16px;
  padding: clamp(24px, 4vw, 48px);
  background: radial-gradient(ellipse 60% 100% at 100% 0%, rgba(79, 112, 255, 0.2), transparent 70%), var(--surface);
  border: 1px solid rgba(109, 141, 255, 0.42);
  border-radius: 18px;
}
.custom-head { max-width: 680px; }
.custom-head h3 { font-size: clamp(1.7rem, 3vw, 2.4rem); letter-spacing: -0.03em; }
.custom-head > p:last-child { margin-top: 14px; color: var(--muted); font-size: 1.08rem; }
.sizes { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(20px, 3vw, 36px); margin-top: 34px; }
.sizes > div { padding-top: 18px; border-top: 1px solid var(--line-strong); }
.sizes h4 { margin: 0 0 8px; font-size: 1.08rem; font-weight: 600; letter-spacing: -0.01em; }
.sizes p { color: var(--muted); font-size: 0.98rem; }

/* Rezervacije po djelatnosti */
.solutions { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.solution-icon {
  display: inline-grid;
  place-items: center;
  width: 44px;
  height: 44px;
  margin-bottom: 20px;
  background: var(--accent-soft);
  border-radius: 12px;
  color: var(--accent-strong);
  font-size: 1.15rem;
}
.solution .checks { padding-top: 18px; border-top: 1px solid var(--line); }
.solution .checks li { align-items: flex-start; font-size: 0.96rem; }
.solution .checks .icon { margin-top: 0.25em; }

/* Evidencija rada */
.attendance { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); gap: clamp(32px, 6vw, 80px); align-items: center; }
.platforms { display: grid; gap: 18px; margin-top: 34px; }
.platforms li { display: flex; gap: 14px; }
.platforms .icon { margin-top: 0.15em; color: var(--accent-strong); font-size: 1.2rem; }
.platforms b { display: block; font-weight: 500; }
.platforms span { display: block; color: var(--muted); font-size: 0.95rem; }

.terminal {
  margin: 0;
  padding: 18px;
  background: var(--surface);
  border: 10px solid #1d2230;
  border-radius: 26px;
  box-shadow: 0 30px 90px -30px rgba(40, 70, 220, 0.45);
}
.terminal-head { display: flex; justify-content: space-between; gap: 16px; align-items: flex-start; }
.terminal-head strong { display: block; font-weight: 600; letter-spacing: -0.01em; }
.terminal-head span { display: block; margin-top: 3px; color: var(--muted); font-size: 0.82rem; line-height: 1.35; }
.terminal-clock { font: 500 1.5rem/1 var(--mono); letter-spacing: -0.03em; }
.staff { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; margin-top: 16px; }
.person {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px;
  background: var(--bg-alt);
  border: 1px solid var(--line);
  border-radius: 12px;
  color: var(--text);
  font: 500 0.88rem/1.25 var(--sans);
  text-align: left;
  cursor: pointer;
  transition: border-color 0.15s, background 0.15s;
}
.person:hover { border-color: var(--line-strong); }
.person > i {
  display: grid;
  place-items: center;
  flex: none;
  width: 34px;
  height: 34px;
  background: var(--surface-2);
  border-radius: 50%;
  color: var(--muted);
  font: 500 0.74rem/1 var(--mono);
}
.person small { display: block; margin-top: 2px; color: var(--faint); font: 400 0.74rem/1.25 var(--sans); }
.person.in { background: var(--ok-soft); border-color: rgba(79, 224, 187, 0.3); }
.person.in > i { background: rgba(79, 224, 187, 0.2); color: var(--ok); }
.person.in small { color: var(--ok); }
.terminal-log { margin-top: 16px; padding-top: 14px; border-top: 1px solid var(--line); }
.terminal-log h3 { margin-bottom: 4px; font-size: 0.86rem; font-weight: 500; letter-spacing: 0; color: var(--muted); }
.terminal-log li { display: flex; justify-content: space-between; gap: 12px; padding: 7px 0; font-size: 0.84rem; }
.terminal-log time { color: var(--muted); font-family: var(--mono); font-size: 0.78rem; }
.terminal figcaption { margin-top: 8px; color: var(--faint); font: 400 0.72rem/1.3 var(--mono); }

/* Vozni park */
.fleet {
  margin: 0;
  padding: clamp(16px, 2.5vw, 24px);
  background: var(--surface);
  border: 1px solid var(--line-strong);
  border-radius: 18px;
  box-shadow: 0 30px 90px -30px rgba(40, 70, 220, 0.45);
}
.vehicles { display: grid; gap: 8px; margin-top: 16px; }
.vehicle { padding: 12px; background: var(--bg-alt); border: 1px solid var(--line); border-radius: 12px; }
.vehicle-top { display: flex; justify-content: space-between; gap: 12px; align-items: baseline; }
.vehicle-top strong { font-weight: 500; }
.vehicle-top strong small { margin-left: 6px; color: var(--faint); font-size: 0.78rem; font-weight: 400; }
.vehicle-top b { font: 500 0.88rem/1.2 var(--mono); white-space: nowrap; }
.vehicle-tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.tag-status { padding: 3px 8px; background: var(--ok-soft); border-radius: 6px; color: var(--ok); font-size: 0.76rem; line-height: 1.3; }
.tag-status.warn { background: var(--warn-soft); color: var(--warn); }
.driver-form { margin-top: 14px; gap: 10px; }
.form-error { min-height: 1.3em; color: var(--warn); font-size: 0.82rem; line-height: 1.3; }
.form-error:empty { display: none; }
.fleet .terminal-log li { align-items: baseline; }
.fleet figcaption { margin-top: 8px; color: var(--faint); font: 400 0.72rem/1.3 var(--mono); }

/* Poredjenje */
.compare { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.compare-col { padding: clamp(24px, 3vw, 36px); border: 1px solid var(--line); border-radius: 18px; }
.compare-col h3 { margin-bottom: 18px; color: var(--muted); font-size: 1.05rem; }
.compare-col li { display: flex; gap: 12px; padding: 15px 0; border-top: 1px solid var(--line); color: var(--muted); }
.compare-col .icon { margin-top: 0.25em; color: var(--faint); }
.compare-new { background: var(--surface); border-color: rgba(109, 141, 255, 0.42); }
.compare-new h3 { color: var(--text); }
.compare-new li { color: var(--text); }
.compare-new .icon { color: var(--ok); }

/* Koraci */
.steps { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 28px; counter-reset: step; }
.steps li { position: relative; counter-increment: step; }
.steps li::before {
  content: counter(step);
  position: relative;
  z-index: 1;
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  margin-bottom: 22px;
  background: var(--surface-2);
  border: 1px solid var(--line-strong);
  border-radius: 50%;
  font: 500 0.92rem/1 var(--mono);
}
.steps li:not(:last-child)::after { content: ""; position: absolute; top: 20px; left: 40px; right: -28px; height: 1px; background: var(--line-strong); }
.steps p { margin-top: 10px; color: var(--muted); font-size: 0.98rem; }

/* Pitanja */
.faq-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.5fr); gap: 48px; align-items: start; }
.faq-grid .section-head { margin-bottom: 0; }
.faq { display: grid; gap: 10px; }
.faq details { background: var(--surface); border: 1px solid var(--line); border-radius: 14px; }
.faq details[open] { border-color: var(--line-strong); }
.faq summary { position: relative; padding: 18px 52px 18px 20px; font-weight: 500; cursor: pointer; list-style: none; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 20px; top: 15px; color: var(--muted); font-size: 1.4rem; line-height: 1.3; font-weight: 300; }
.faq details[open] summary::after { content: "−"; }
.faq details p { padding: 0 20px 20px; color: var(--muted); }

/* Kontakt */
.contact {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr);
  gap: clamp(32px, 5vw, 72px);
  padding: clamp(28px, 5vw, 64px);
  background: radial-gradient(ellipse 80% 90% at 0% 0%, rgba(79, 112, 255, 0.26), transparent 65%), var(--surface);
  border: 1px solid var(--line-strong);
  border-radius: 24px;
}
.contact-copy > p { margin-top: 16px; color: var(--muted); font-size: 1.12rem; }
.contact-list { display: grid; gap: 14px; margin-top: 34px; }
.contact-list li { display: flex; align-items: center; gap: 12px; }
.contact-list .icon { color: var(--accent-strong); }
.contact-list a { text-decoration: none; }
.contact-list a:hover { text-decoration: underline; text-underline-offset: 3px; }
.form { display: grid; gap: 16px; }
.form-row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.form label { display: grid; gap: 7px; color: var(--muted); font-size: 0.9rem; font-weight: 500; }
.form input, .form textarea, .form select {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--line-strong);
  border-radius: 10px;
  background: var(--bg);
  color: var(--text);
  font: 400 1rem/1.4 var(--sans);
  resize: vertical;
}
.form input:focus, .form textarea:focus, .form select:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
.form-note { color: var(--faint); font-size: 0.82rem; }

/* Podnozje */
.site-footer { padding: 28px 0 34px; border-top: 1px solid var(--line); color: var(--muted); font-size: 0.9rem; }
.footer-row { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px 28px; }
.site-footer strong { color: var(--text); font-weight: 500; }
.site-footer nav { display: flex; gap: 20px; }
.site-footer a { text-decoration: none; }
.site-footer a:hover { color: var(--text); }

/* Politika privatnosti */
.legal-back { margin-left: auto; padding: 7px 12px; color: var(--muted); font-size: 0.94rem; text-decoration: none; }
.legal-back:hover { color: var(--text); }
.legal { max-width: 760px; padding-block: clamp(48px, 8vw, 88px); color: var(--muted); }
.legal h1 { color: var(--text); font-size: clamp(2.2rem, 5vw, 3.4rem); letter-spacing: -0.035em; line-height: 1.08; }
.legal h2 { margin-top: 44px; color: var(--text); font-size: 1.5rem; letter-spacing: -0.02em; }
.legal h3 { margin-top: 24px; color: var(--text); font-size: 1.08rem; }
.legal p, .legal ul { margin-top: 12px; }
.legal ul { padding-left: 1.2em; list-style: disc; }
.legal li + li { margin-top: 6px; }
.legal strong { color: var(--text); font-weight: 500; }
.legal a { color: var(--accent-strong); text-underline-offset: 3px; }
.legal-date { color: var(--faint); font-size: 0.9rem; }
.form-note a { text-underline-offset: 3px; }

/* Pojavljivanje pri skrolu */
.js .reveal { opacity: 0; transform: translateY(18px); transition: opacity 0.6s ease, transform 0.6s ease; }
.js .reveal.in { opacity: 1; transform: none; }

@media (max-width: 1040px) {
  .nav { gap: 0; }
  .nav a { padding-inline: 8px; white-space: nowrap; }
  .app-body { grid-template-columns: 150px minmax(0, 1fr); }
  .app-feed { display: none; }
}

@media (max-width: 960px) {
  .nav {
    display: none;
    position: absolute;
    top: 72px;
    left: 16px;
    right: 16px;
    flex-direction: column;
    padding: 10px;
    background: var(--surface-2);
    border: 1px solid var(--line-strong);
    border-radius: 14px;
    font-size: 1rem;
  }
  .nav.open { display: flex; }
  .nav-cta-mobile { display: block; color: var(--text) !important; font-weight: 500; }
  .header-cta { display: none; }
  .menu-btn { display: inline-flex; }
  .card-crm, .card-orders, .compare, .faq-grid, .contact, .solutions, .attendance, .sizes { grid-template-columns: minmax(0, 1fr); }
  .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .steps li:not(:last-child)::after { display: none; }
  .toast { left: 0; }
  .app-side { display: none; }
  .app-body { grid-template-columns: minmax(0, 1fr); min-height: 0; }
}

@media (max-width: 640px) {
  .wrap { width: calc(100% - 32px); }
  .bento { grid-template-columns: minmax(0, 1fr); }
  .steps { grid-template-columns: minmax(0, 1fr); }
  .form-row { grid-template-columns: minmax(0, 1fr); }
  .actions, .actions .btn { width: 100%; }
  .dots { display: none; }
  .app-bar strong, .app-note { white-space: nowrap; }
  .app-main { padding: 14px 10px; }
  .app-head { padding-inline: 4px; }
  .kpi { padding: 10px; }
  .kpi span { font-size: 0.7rem; }
  .kpi b { font-size: 1.12rem; }
  .grid { grid-template-columns: 44px repeat(3, minmax(0, 1fr)); gap: 3px; }
  .terminal { padding: 12px; border-width: 7px; }
  .slot { padding: 2px 5px; min-height: 38px; font-size: 0.7rem; }
  .tabs { width: 100%; }
  .tab { flex: 1 1 auto; padding-inline: 8px; }
  .app { border-radius: 14px; }
  .contact { padding: 22px 18px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; }
  .js .reveal { opacity: 1; transform: none; }
}
