:root {
  --bg: #03111c;
  --bg2: #061b2a;
  --text: #eef9fc;
  --muted: #a4b8c2;
  --line: rgba(157, 216, 232, 0.18);
  --mint: #a9edff;
  --cyan: #55d8ed;
  --green: #8de7c8;
}

body {
  background:
    radial-gradient(circle at 82% 8%, rgba(31, 114, 142, .18), transparent 28%),
    linear-gradient(180deg, #020d16 0%, #041522 48%, #020d16 100%);
}

.ambient-one { background: #45cce5; opacity: .09; }
.ambient-two { background: #1986aa; opacity: .08; }
.hero-image {
  width: 64vw;
  right: 1vw;
  background-image:
    linear-gradient(90deg, var(--bg) 0%, rgba(3,17,28,.88) 22%, transparent 64%),
    linear-gradient(0deg, var(--bg) 0%, transparent 32%),
    url('assets/autocert-vehicle-reference.png');
  background-position: center, center, right bottom;
  background-size: cover, cover, auto 168%;
  background-repeat: no-repeat;
  filter: saturate(.86) contrast(1.08);
}

.hero::after {
  content: '';
  position: absolute;
  width: 46vw;
  height: 46vw;
  right: -20vw;
  bottom: -24vw;
  border: 1px solid rgba(169,237,255,.14);
  border-radius: 50%;
  box-shadow: 0 0 0 42px rgba(169,237,255,.025), 0 0 0 84px rgba(169,237,255,.016);
  pointer-events: none;
}

.eyebrow, .section-kicker, .topbar-meta, .hero-foot, .fineprint { color: #a9bdc7; }
.eyebrow { font-size: 11px; }
.section-kicker { font-size: 11px; }
p { line-height: 1.72; }
.fineprint { font-size: 11px !important; }
.hero-lede { color: #c4d6dc; }
.text-link { color: #effaff; }
.hero .reveal { opacity: 1; transform: none; }

.trust-section, .scale-section {
  overflow: hidden;
}
.trust-section::after, .scale-section::before {
  content: '';
  position: absolute;
  width: 38vw;
  height: 62vh;
  right: -12vw;
  opacity: .11;
  background: url('assets/autocert-vehicle-reference.png') center bottom / cover no-repeat;
  pointer-events: none;
}
.trust-section::after { bottom: 0; }
.scale-section::before { top: 0; transform: scaleX(-1); opacity: .08; }
.trust-layout, .scale-layout, .simulation-layout { position: relative; z-index: 1; }

.market-number strong, .stat-stack strong, .result.primary strong, .result.accent-result strong { color: var(--mint); }
.result { background: rgba(29, 83, 101, .16); }
.revenue-core { background: rgba(88, 210, 235, .10); }
.revenue-growth { background: rgba(112, 235, 201, .06); }
.hero-definition { color: var(--mint); font-family: var(--serif); font-size: clamp(1.35rem, 2vw, 1.9rem); line-height: 1.15; max-width: 590px; margin-bottom: 14px; }
.problem-triad { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-top: 28px; }
.problem-triad div { border-top: 1px solid var(--line); padding-top: 12px; }
.problem-triad b { display: block; color: var(--mint); font-size: 12px; margin-bottom: 6px; }
.problem-triad span { display: block; color: var(--muted); font-size: 11px; line-height: 1.4; }
.who-pays { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2px; margin-top: 42px; border-top: 1px solid var(--line); }
.who-pays > div { padding: 20px 22px 18px 0; border-right: 1px solid var(--line); }
.who-pays > div:last-child { border-right: 0; padding-left: 22px; }
.who-pays > div:nth-child(2) { padding-left: 22px; }
.who-pays b { display: block; font-size: 24px; font-weight: 400; margin: 18px 0 8px; color: var(--text); }
.who-pays p { font-size: 12px; line-height: 1.45; }
.lifecycle-track small { display: block; color: var(--muted); font-size: 9px; margin-top: 4px; }
.lifecycle-detail { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 26px; }
.lifecycle-detail span { border: 1px solid var(--line); border-radius: 100px; padding: 7px 11px; color: var(--muted); font-size: 10px; }
.strategic-card p { color: var(--muted); margin: 22px 0 0; font-size: 13px; }
.strategic-card em { display: block; color: var(--mint); font-size: 10px; margin-top: 22px; font-style: normal; letter-spacing: .05em; }
.preset-row { display: flex; gap: 8px; margin: -20px 0 18px; flex-wrap: wrap; }
.preset { border: 1px solid var(--line); background: transparent; color: var(--muted); padding: 10px 14px; cursor: pointer; font: inherit; font-size: 11px; text-align: left; }
.preset small { display: block; color: #6f858f; margin-top: 4px; font-size: 9px; }
.preset.active { border-color: var(--mint); color: var(--mint); background: rgba(169,237,255,.06); }
.capacity-result strong { color: var(--cyan); }
.simulation-chart { display: grid; gap: 10px; margin-top: 22px; max-width: 760px; }
.simulation-chart > div { display: grid; grid-template-columns: 100px 1fr; gap: 12px; align-items: center; color: var(--muted); font-size: 10px; }
.simulation-chart i { display: block; height: 8px; background: linear-gradient(90deg, var(--cyan), var(--mint)); border-radius: 10px; transition: width .25s ease; }
.sticker-proof { display: grid; grid-template-columns: 180px 1fr; gap: 28px; align-items: center; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); padding: 22px 0; margin-top: 30px; max-width: 820px; }
.sticker-proof img { width: 180px; height: 108px; object-fit: cover; border-radius: 10px; box-shadow: 0 10px 30px rgba(0,0,0,.3); }
.sticker-proof .sticker-mockup-image { width: 230px; height: 132px; object-fit: cover; object-position: center; }
.sticker-proof h3 { font-family: var(--serif); font-size: clamp(1.35rem, 2.1vw, 2rem); font-weight: 400; line-height: 1.12; margin: 9px 0; }
.sticker-proof p { font-size: 12px; margin-bottom: 7px; }
.sticker-proof small { color: var(--mint); font-size: 10px; }
.sticker-message { border-left: 1px solid var(--mint); padding-left: 17px; margin: 22px 0; }
.sticker-message b { display: block; font-family: var(--serif); font-size: 1.55rem; font-weight: 400; line-height: 1.08; color: var(--mint); }
.sticker-message span { display: block; color: var(--muted); font-size: 11px; margin-top: 8px; }
.software-proof { display: grid; gap: 7px; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); padding: 16px 0; margin: 24px 0; color: var(--muted); font-size: 10px; line-height: 1.4; }
.software-proof b { color: var(--mint); font-size: 9px; letter-spacing: .16em; }

/* Responsive presentation polish */
.section-heading h2 { max-width: 840px; }
.sticker-proof { min-width: 0; }
.sticker-proof > div { min-width: 0; }
.sticker-proof h3, .sticker-proof p { overflow-wrap: anywhere; }
.simulation-section .fineprint { max-width: 900px; }
.mobile-break { display: none; }

@media (max-width: 800px) {
  .section { overflow: clip; }
  .section-heading { margin-bottom: 32px; }
  h2 { max-width: 100%; }
  .hero h1 { line-height: .92; }
  .hero-lede, .hero-definition { max-width: 100%; }
  .trust-layout, .acbi-layout, .simulation-layout, .scale-layout { min-width: 0; }
  .audience-columns, .revenue-grid { gap: 0; }
  .audience-columns > div { padding-bottom: 22px; }
  .ecosystem-map { height: auto; min-height: 620px; max-width: 310px; }
  .eco-center { width: 128px; height: 128px; }
  .eco-node { width: 122px; padding: 12px 8px; }
  .node-a { left: 0; top: 8%; }
  .node-b { right: 0; top: 8%; }
  .node-c { bottom: 2%; width: 150px; }
  .ecosystem-map:before, .ecosystem-map:after { width: 80px; }
  .lifecycle-track { display: grid; grid-template-columns: 1fr; gap: 0; padding: 20px 0; }
  .lifecycle-track span { padding: 9px 0 9px 18px; border-left: 1px solid var(--mint); font-size: 15px; }
  .lifecycle-track i { padding: 0 0 0 10px; transform: rotate(90deg); transform-origin: 18px 50%; width: 28px; }
  .lifecycle-detail { gap: 6px; }
  .lifecycle-detail span { font-size: 9px; padding: 6px 8px; }
  .simulation-head h2 { margin-bottom: 18px; }
  .simulation-head > p { max-width: 100%; font-size: 12px; }
  .simulation-results, .simulation-chart { width: 100%; }
  .simulation-chart > div { min-width: 0; }
  .simulation-section .fineprint { margin-top: 22px; }
  .strategic-card { padding: 22px 18px; }
  .strategic-card small { margin-top: 20px; }
  footer { position: relative; }
}

/* Final slide 05 composition: the visual proof and its explanation are
   separate regions so copy can never sit on top of the vehicle image. */
.value-section .value-flow {
  display: grid;
  grid-template-columns: minmax(0, 1fr) .28fr minmax(0, 1fr) .28fr minmax(0, 1.15fr) .28fr minmax(0, 1fr) .28fr minmax(0, 1fr) .28fr minmax(0, 1fr) .28fr minmax(0, 1fr);
  align-items: stretch;
  gap: 8px;
}
.value-section .value-flow > div {
  min-width: 0;
  text-align: center;
  align-content: center;
}
.value-section .value-flow > i {
  align-self: center;
  text-align: center;
}
.value-section .sticker-proof {
  grid-template-columns: minmax(320px, .95fr) minmax(0, 1.05fr);
  max-width: none;
  gap: clamp(24px, 4vw, 56px);
  padding: 24px;
  background: rgba(3, 17, 28, .62);
  overflow: hidden;
}
.value-section .sticker-proof .sticker-mockup-image {
  width: 100%;
  height: 230px;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  object-position: center;
}
.value-section .sticker-proof > div {
  padding: 10px 0;
}

@media (max-width: 800px) {
  .value-section .value-flow {
    display: grid;
    grid-template-columns: 1fr;
    gap: 0;
    padding: 18px 0;
  }
  .value-section .value-flow > div {
    min-height: 48px;
    padding: 11px 16px;
    border-left: 1px solid var(--mint);
    background: rgba(167, 255, 207, .035);
    text-align: left;
    display: block;
  }
  .value-section .value-flow > i {
    width: 28px;
    min-height: 24px;
    margin: 0 0 0 10px;
    transform: rotate(90deg);
    transform-origin: center;
    text-align: center;
  }
  .value-section .value-flow small { display: block; margin-top: 4px; }
  .value-section .sticker-proof {
    display: grid;
    grid-template-columns: 1fr;
    gap: 18px;
    padding: 18px 0;
  }
  .value-section .sticker-proof .sticker-mockup-image {
    width: 100%;
    height: auto;
    aspect-ratio: 16 / 9;
  }
  .value-section .sticker-proof > div { padding: 0; }

  /* ACBI becomes a readable mobile information grid instead of a compressed
     absolute-positioned orbit. */
  .acbi-section { padding-bottom: 110px; }
  .acbi-orbit { width: 100%; overflow: visible; padding-bottom: 0; }
  .acbi-orbit .orbit {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
    width: 100%;
    height: auto;
    margin-top: 42px;
    border: 0;
  }
  .acbi-orbit .orbit::before { display: none; }
  .acbi-orbit .orbit-core {
    position: relative;
    left: auto;
    top: auto;
    transform: none;
    grid-column: 1 / -1;
    justify-self: center;
    width: 104px;
    height: 104px;
    margin-bottom: 10px;
  }
  .acbi-orbit .orbit-item {
    position: relative;
    inset: auto;
    transform: none;
    min-height: 38px;
    display: grid;
    place-items: center;
    padding: 8px 6px;
    white-space: normal;
    text-align: center;
    border: 1px solid var(--line);
    background: rgba(167, 255, 207, .035);
  }
  .section-kicker, .eyebrow, .simulation-head, .simulation-head > p,
  .acbi-copy, .acbi-copy p, .acbi-copy h2 {
    max-width: 100%;
    min-width: 0;
    overflow-wrap: anywhere;
  }
  .mobile-break { display: inline; }
  .acbi-section .eyebrow, .acbi-section .section-kicker {
    font-size: 9px;
    letter-spacing: .1em;
  }
  .simulation-head > p { width: 100%; }
  .acbi-copy p { width: 100%; }
  .section p, .section h2, .sticker-proof h3, .sticker-proof p, .sticker-proof small {
    width: 100%;
    max-width: 100%;
  }
  .section > *, .section-heading, .split-copy, .trust-copy, .acbi-copy,
  .simulation-head, .simulation-layout, .scale-layout {
    width: 100%;
    max-width: 100%;
    min-width: 0;
  }
  .section h2, .section p, .section-heading h2 {
    overflow-wrap: anywhere;
    word-break: break-word;
  }
  .acbi-copy h2, .value-section .section-heading h2 {
    font-size: clamp(2rem, 8vw, 3.3rem);
    letter-spacing: -.06em;
  }
}

/* Final mobile polish */
@media (max-width: 800px) {
  .value-section .section-heading h2 {
    font-size: clamp(1.85rem, 7.2vw, 2.8rem);
    line-height: .98;
  }
  .value-section .value-note {
    font-size: 0;
    line-height: 1.35;
  }
  .value-section .value-note::after {
    content: 'Fizički rad postaje dokaz. Digitalni zapis postaje provjerljiva vrijednost.';
    display: block;
    font-size: 1.45rem;
    line-height: 1.18;
  }
  .acbi-section { padding-bottom: 72px; }
  .acbi-copy > p:not(.fineprint) {
    font-size: 0;
    line-height: 1.45;
  }
  .acbi-copy > p.eyebrow {
    font-size: 9px;
    line-height: 1.2;
  }
  .acbi-copy > p.eyebrow:not(.fineprint)::after { content: none !important; display: none; }
  .acbi-copy > p:nth-of-type(2) {
    font-size: 0;
    line-height: 1.45;
  }
  .acbi-copy > p:not(.fineprint)::after {
    content: 'ACBI daje managementu pregled volumena, troška, kapaciteta i revenue ekonomike.';
    display: block;
    font-size: 1rem;
    line-height: 1.45;
  }
  .acbi-section .eyebrow, .acbi-section .section-kicker {
    font-size: 9px;
    letter-spacing: .1em;
    overflow-wrap: anywhere;
  }
  .value-section .sticker-proof h3 {
    font-size: 1.02rem;
    line-height: 1.18;
    overflow-wrap: anywhere;
  }
  .value-section .sticker-proof p {
    font-size: 10px;
    line-height: 1.45;
    overflow-wrap: anywhere;
  }
}

@media (max-width: 800px) {
  .hero-image { width: 115vw; right: -20vw; opacity: .68; background-position: center, center, 76% bottom; background-size: cover, cover, auto 155%; }
  .hero::after { width: 80vw; height: 80vw; right: -40vw; bottom: -35vw; }
  .trust-section::after, .scale-section::before { width: 62vw; height: 42vh; right: -28vw; opacity: .08; }
  .section-kicker, .eyebrow { font-size: 10px; }
  .fineprint { font-size: 10px !important; }
  .hero-content { width: 92vw; }
  .hero h1 { font-size: clamp(3rem, 14vw, 5rem); max-width: 92vw; overflow-wrap: normal; }
  .hero-lede { max-width: 78vw; font-size: 1rem; }
  .hero-definition, .hero-lede { width: 260px; max-width: 260px; overflow-wrap: break-word; }
  .hero-definition { font-size: 1.3rem; }
  .hero-foot { font-size: 8px; }
  .hero-foot span:last-child { max-width: 42vw; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
  .problem-triad, .who-pays { grid-template-columns: 1fr; }
  .problem-triad div, .who-pays > div, .who-pays > div:nth-child(2), .who-pays > div:last-child { border-right: 0; border-bottom: 1px solid var(--line); padding: 14px 0; }
  .who-pays { margin-top: 26px; }
  .value-flow { display: flex; flex-direction: column; align-items: flex-start; gap: 0; min-width: 0; width: 100%; overflow: visible; padding: 20px 0; }
  .value-flow > div { width: 100%; min-height: 36px; display: flex; align-items: center; }
  .value-flow > i { transform: rotate(90deg); transform-origin: center; margin: 1px 0 1px 12px; line-height: 1; }
  .preset-row { margin-top: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
  .preset { min-width: 0; padding: 10px; }
  .simulation-layout { display: flex; flex-direction: column; gap: 28px; margin-top: 16px; padding: 22px 0; }
  .controls { gap: 17px; }
  .simulation-results { grid-template-columns: repeat(2, minmax(0, 1fr)); margin-top: 0; }
  .result { min-width: 0; padding: 14px 12px; min-height: 92px; overflow: hidden; }
  .result strong { font-size: clamp(1.35rem, 7vw, 2rem); margin-top: 16px; white-space: nowrap; }
  .result.primary, .result.accent-result { grid-column: span 2; }
  .result small { font-size: 9px; }
  .simulation-chart > div { grid-template-columns: 85px 1fr; }
  .sticker-proof { grid-template-columns: 110px 1fr; gap: 16px; }
  .sticker-proof img, .sticker-proof .sticker-mockup-image { width: 110px; height: 82px; }
  .sticker-proof h3 { font-size: 1.15rem; }
  .sticker-proof p { font-size: 11px; }
  .sticker-message b { font-size: 1.3rem; }
  .acbi-layout { display: block; }
  .acbi-copy { width: 100%; }
  .acbi-orbit { width: 100%; overflow: hidden; padding-bottom: 12px; }
  .orbit { width: 260px; height: 260px; margin: 42px auto 0; }
  .orbit-core { width: 96px; height: 96px; font-size: 18px; }
  .orbit-item { font-size: 9px; padding: 4px 6px; white-space: nowrap; }
  .o1 { top: 0; left: 50%; transform: translateX(-50%); }
  .o2 { right: 0; top: 24%; }
  .o3 { right: 0; bottom: 21%; }
  .o4 { bottom: 0; left: 50%; transform: translateX(-50%); }
  .o5 { left: 0; bottom: 21%; }
  .o6 { left: 0; top: 24%; }
}

/* Final strategic-value clarification: business system versus software infrastructure. */
.strategic-card > .strategic-lead {
  color: var(--muted);
  margin: 20px 0 18px;
  max-width: 44rem;
}
.strategic-split {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 2px;
  margin: 20px 0;
}
.strategic-split > div {
  min-width: 0;
  padding: 13px 14px;
  border: 1px solid var(--line);
  background: rgba(16, 44, 57, .28);
}
.strategic-split b {
  display: block;
  color: var(--mint);
  font-size: 9px;
  letter-spacing: .12em;
  margin-bottom: 8px;
}
.strategic-split span {
  display: block;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.45;
}
@media (max-width: 800px) {
  .strategic-split { grid-template-columns: 1fr; gap: 8px; }
  .strategic-card > .strategic-lead { font-size: 12px; line-height: 1.5; }
  .strategic-card { padding: 22px 18px; }
}
