/* RayGeoHub — reklamni sajt. Paleta preuzeta iz RayGeoHub-a (HubIcon / HubTheme):
   noćno nebo, more, pesak + boje aplikacija. */
:root {
  --night: #0f1922;
  --night-1: #15222e;
  --night-2: #1f2d3d;
  --night-3: #2b4752;
  --sea: #4e8c8e;
  --sea-deep: #2c5e66;
  --sand: #d2b47a;
  --sand-2: #b8995b;
  --text: #e9edf0;
  --muted: #9aa8b4;
  --line: rgba(255, 255, 255, .09);
  --card: rgba(255, 255, 255, .04);
  --ok: #6fbf84;
  --warn: #e2b259;
  --err: #e07b72;

  --c-transform: #d08a66;
  --c-geopack: #7fa0c8;
  --c-rgz: #8db384;
  --c-elab: #d2b47a;
  --c-esalter: #5fb3ae;
  --c-irls: #a994c4;
  --c-katastar: #d08a93;

  --radius: 18px;
  --maxw: 1200px;
  --font: "Manrope", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --mono: "JetBrains Mono", Consolas, "Courier New", monospace;
  color-scheme: dark;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 76px; }
body {
  margin: 0;
  font-family: var(--font);
  background: var(--night);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
h1, h2, h3 { line-height: 1.12; margin: 0; letter-spacing: -0.02em; }
p { margin: 0; }
.wrap { width: min(var(--maxw), 100% - 32px); margin-inline: auto; }

/* ---------- navigacija ---------- */
.nav {
  position: fixed; inset: 0 0 auto 0; z-index: 50;
  transition: background .3s, box-shadow .3s, padding .3s;
  padding: 18px 0;
}
.nav.scrolled {
  background: rgba(15, 25, 34, .82);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  box-shadow: 0 1px 0 var(--line);
  padding: 10px 0;
}
.nav .wrap { display: flex; align-items: center; gap: 28px; }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 800; font-size: 19px; }
.brand svg { width: 34px; height: 34px; }
.brand b { color: var(--sand); font-weight: 800; }
.nav-links { display: flex; gap: 22px; margin-left: auto; font-size: 14.5px; font-weight: 600; color: var(--muted); }
.nav-links a { position: relative; transition: color .2s; }
.nav-links a:hover, .nav-links a.active { color: var(--text); }
.nav-links a.active::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -6px; height: 2px;
  border-radius: 2px; background: var(--sand);
}
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 12px 22px; border-radius: 999px; font-weight: 700; font-size: 15px;
  border: 1px solid transparent; cursor: pointer; transition: transform .2s, box-shadow .2s, background .2s;
  font-family: inherit;
}
.btn:hover { transform: translateY(-2px); }
.btn-sand { background: var(--sand); color: #1b1408; box-shadow: 0 8px 30px -8px rgba(210, 180, 122, .6); }
.btn-sand:hover { box-shadow: 0 12px 36px -8px rgba(210, 180, 122, .8); }
.btn-ghost { border-color: rgba(255, 255, 255, .22); color: var(--text); background: rgba(255, 255, 255, .03); }
.btn-ghost:hover { background: rgba(255, 255, 255, .08); }
.btn-sm { padding: 9px 16px; font-size: 14px; }
.burger { display: none; background: none; border: 0; color: var(--text); padding: 6px; cursor: pointer; }

/* ---------- hero ---------- */
.hero {
  position: relative; min-height: 100vh; min-height: 100svh;
  display: flex; align-items: center; overflow: hidden;
  background:
    radial-gradient(1200px 700px at 75% 40%, rgba(78, 140, 142, .22), transparent 60%),
    radial-gradient(900px 600px at 10% 90%, rgba(210, 180, 122, .10), transparent 60%),
    linear-gradient(180deg, #0c141c 0%, var(--night) 100%);
}
.hero canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
.hero-glow {
  position: absolute; width: 520px; height: 520px; border-radius: 50%;
  background: radial-gradient(circle, rgba(210, 180, 122, .13), transparent 65%);
  pointer-events: none; transform: translate(-50%, -50%); left: 50%; top: 50%;
  transition: left .25s ease-out, top .25s ease-out;
}
.hero .wrap { position: relative; z-index: 2; padding: 120px 0 80px; }
.hero-text { max-width: 600px; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 13px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase;
  color: var(--sand); padding: 7px 14px; border-radius: 999px;
  background: rgba(210, 180, 122, .08); border: 1px solid rgba(210, 180, 122, .25);
}
.eyebrow .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--ok); box-shadow: 0 0 0 0 rgba(111, 191, 132, .7); animation: ping 2s infinite; }
@keyframes ping { 70% { box-shadow: 0 0 0 9px rgba(111, 191, 132, 0); } 100% { box-shadow: 0 0 0 0 rgba(111, 191, 132, 0); } }
.hero h1 { font-size: clamp(40px, 6.4vw, 78px); font-weight: 800; margin: 22px 0 20px; }
.hero h1 .grad {
  background: linear-gradient(90deg, var(--sand) 0%, #f1dcae 35%, var(--sea) 70%, var(--sand) 100%);
  background-size: 200% auto; -webkit-background-clip: text; background-clip: text; color: transparent;
  animation: shine 6s linear infinite;
}
@keyframes shine { to { background-position: 200% center; } }
.hero .lead { font-size: clamp(17px, 1.6vw, 20px); color: #c4ced6; max-width: 540px; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 34px; }
.rotator { display: inline-block; color: var(--text); font-weight: 700; border-bottom: 2px solid var(--sand); min-width: 1ch; }
.rotator::after { content: "|"; color: var(--sand); animation: blink 1s steps(1) infinite; margin-left: 2px; font-weight: 400; }
@keyframes blink { 50% { opacity: 0; } }
.scroll-hint {
  position: absolute; bottom: 26px; left: 50%; transform: translateX(-50%); z-index: 2;
  width: 26px; height: 42px; border: 2px solid rgba(255, 255, 255, .3); border-radius: 14px;
}
.scroll-hint::after {
  content: ""; position: absolute; left: 50%; top: 8px; width: 4px; height: 8px; margin-left: -2px;
  background: var(--sand); border-radius: 2px; animation: wheel 1.8s infinite;
}
@keyframes wheel { 0% { opacity: 0; transform: translateY(0); } 30% { opacity: 1; } 100% { opacity: 0; transform: translateY(14px); } }

/* ---------- marquee ---------- */
.marquee { border-block: 1px solid var(--line); background: var(--night-1); overflow: hidden; padding: 16px 0; }
.marquee-track { display: flex; gap: 46px; width: max-content; animation: marquee 40s linear infinite; }
.marquee:hover .marquee-track { animation-play-state: paused; }
.marquee span { white-space: nowrap; font-family: var(--mono); font-size: 14px; color: var(--muted); display: inline-flex; align-items: center; gap: 46px; }
.marquee span::after { content: "◆"; color: var(--sand); font-size: 9px; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------- sekcije ---------- */
section { position: relative; }
.section { padding: 110px 0; }
.section-head { max-width: 720px; margin-bottom: 56px; }
.section-head.center { text-align: center; margin-inline: auto; }
.kicker { font-size: 13px; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; color: var(--sand); }
.section-head h2 { font-size: clamp(30px, 4vw, 48px); font-weight: 800; margin: 12px 0 16px; }
.section-head p { color: var(--muted); font-size: 18px; }

/* brojevi */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.stat {
  padding: 28px 24px; border-radius: var(--radius); background: var(--card); border: 1px solid var(--line);
  position: relative; overflow: hidden;
}
.stat::before {
  content: ""; position: absolute; inset: auto -40% -60% auto; width: 160px; height: 160px; border-radius: 50%;
  background: radial-gradient(circle, rgba(78, 140, 142, .25), transparent 70%);
}
.stat .num { font-size: 46px; font-weight: 800; color: var(--sand); line-height: 1; font-variant-numeric: tabular-nums; }
.stat .num small { font-size: 22px; color: var(--muted); font-weight: 700; margin-left: 2px; }
.stat .lbl { color: var(--muted); margin-top: 10px; font-size: 15px; }

/* kartice aplikacija */
.apps-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.app-card {
  --c: var(--sand);
  position: relative; padding: 26px; border-radius: var(--radius); overflow: hidden;
  background: linear-gradient(160deg, rgba(255, 255, 255, .06), rgba(255, 255, 255, .015));
  border: 1px solid var(--line); transition: transform .25s ease, border-color .25s, box-shadow .25s;
  transform-style: preserve-3d; will-change: transform; cursor: pointer; display: flex; flex-direction: column;
}
.app-card::before {
  content: ""; position: absolute; inset: 0; opacity: 0; transition: opacity .3s;
  background: radial-gradient(400px 220px at var(--mx, 50%) var(--my, 0%), color-mix(in srgb, var(--c) 28%, transparent), transparent 70%);
}
.app-card:hover { border-color: color-mix(in srgb, var(--c) 55%, transparent); box-shadow: 0 30px 60px -30px color-mix(in srgb, var(--c) 60%, transparent); }
.app-card:hover::before { opacity: 1; }
.app-card > * { position: relative; }
.app-card img, .app-card .ico { width: 58px; height: 58px; border-radius: 14px; }
.app-card h3 { font-size: 20px; margin: 18px 0 6px; }
.app-card p { color: var(--muted); font-size: 14.5px; flex: 1; }
.app-card .more { margin-top: 16px; font-size: 14px; font-weight: 700; color: var(--c); display: inline-flex; gap: 6px; align-items: center; }
.app-card .more i { transition: transform .2s; font-style: normal; }
.app-card:hover .more i { transform: translateX(4px); }
.app-card.hub-card {
  background: linear-gradient(150deg, rgba(210, 180, 122, .18), rgba(78, 140, 142, .12));
  border-color: rgba(210, 180, 122, .35);
}

/* tok rada */
.flow { position: relative; display: grid; grid-template-columns: repeat(6, 1fr); gap: 14px; }
.flow-line { position: absolute; left: 6%; right: 6%; top: 38px; height: 2px; background: var(--line); overflow: hidden; }
.flow-line::after {
  content: ""; position: absolute; inset: 0; width: 30%;
  background: linear-gradient(90deg, transparent, var(--sand), transparent); animation: flowline 3.2s linear infinite;
}
@keyframes flowline { from { transform: translateX(-100%); } to { transform: translateX(340%); } }
.flow-step { text-align: center; position: relative; }
.flow-step .bubble {
  width: 76px; height: 76px; margin: 0 auto 18px; border-radius: 50%; display: grid; place-items: center;
  background: var(--night-2); border: 2px solid var(--line); font-weight: 800; font-size: 22px; color: var(--sand);
  position: relative; z-index: 1; transition: border-color .3s, transform .3s;
}
.flow-step:hover .bubble { border-color: var(--sand); transform: scale(1.06); }
.flow-step h4 { margin: 0 0 6px; font-size: 17px; }
.flow-step p { color: var(--muted); font-size: 14px; }
.flow-step .chips { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px; margin-top: 12px; }
.chip {
  display: inline-flex; align-items: center; gap: 6px; padding: 4px 11px; border-radius: 999px; font-size: 12.5px; font-weight: 700;
  background: color-mix(in srgb, var(--c, var(--sand)) 16%, transparent); color: var(--c, var(--sand));
  border: 1px solid color-mix(in srgb, var(--c, var(--sand)) 35%, transparent);
}

/* ---------- sekcija jedne aplikacije ---------- */
.app {
  --c: var(--sand);
  padding: 110px 0; border-top: 1px solid var(--line); overflow: hidden;
}
.app::before {
  content: ""; position: absolute; width: 900px; height: 900px; border-radius: 50%; pointer-events: none;
  background: radial-gradient(circle, color-mix(in srgb, var(--c) 13%, transparent), transparent 62%);
  top: 50%; transform: translateY(-50%); right: -380px;
}
.app.flip::before { right: auto; left: -380px; }
.app .wrap { display: grid; grid-template-columns: 1fr 1.25fr; gap: 64px; align-items: center; position: relative; }
.app.flip .app-text { order: 2; }
.app-head { display: flex; align-items: center; gap: 16px; }
.app-head img, .app-head .ico { width: 66px; height: 66px; border-radius: 16px; box-shadow: 0 16px 40px -14px color-mix(in srgb, var(--c) 80%, transparent); }
.app-head .tag { font-size: 12.5px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; color: var(--c); }
.app-head h2 { font-size: clamp(30px, 3.6vw, 44px); font-weight: 800; }
.app-text .tagline { font-size: 21px; font-weight: 700; margin: 22px 0 12px; color: #f2f4f5; }
.app-text .desc { color: var(--muted); font-size: 16.5px; }
.features { list-style: none; padding: 0; margin: 26px 0 0; display: grid; gap: 12px; }
.features li { display: grid; grid-template-columns: 34px 1fr; gap: 12px; align-items: start; font-size: 15.5px; }
.features li .fi {
  width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center;
  background: color-mix(in srgb, var(--c) 15%, transparent); color: var(--c); font-size: 16px;
}
.features li b { display: block; color: var(--text); font-weight: 700; }
.features li span { color: var(--muted); font-size: 14.5px; }
.specs { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 24px; }

/* prozor aplikacije (showcase) */
.showcase { position: relative; perspective: 1400px; }
.win {
  border-radius: 14px; overflow: hidden; background: #0b131a; border: 1px solid rgba(255, 255, 255, .12);
  box-shadow: 0 50px 100px -40px rgba(0, 0, 0, .8), 0 0 0 1px rgba(0, 0, 0, .3), 0 30px 80px -50px var(--c);
  transform: rotateY(-6deg) rotateX(3deg); transition: transform .6s cubic-bezier(.2, .8, .2, 1);
}
.app.flip .win { transform: rotateY(6deg) rotateX(3deg); }
.showcase:hover .win { transform: rotateY(0) rotateX(0); }
.win-bar {
  display: flex; align-items: center; gap: 10px; padding: 10px 14px; background: #17232e; border-bottom: 1px solid rgba(255, 255, 255, .07);
}
.win-dots { display: flex; gap: 6px; }
.win-dots i { width: 11px; height: 11px; border-radius: 50%; background: #3a4752; }
.win-dots i:nth-child(1) { background: #e07b72; } .win-dots i:nth-child(2) { background: #e2b259; } .win-dots i:nth-child(3) { background: #6fbf84; }
.win-title { font-size: 12.5px; color: var(--muted); font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.win-tabs { margin-left: auto; display: flex; gap: 4px; background: rgba(255, 255, 255, .05); padding: 3px; border-radius: 9px; flex-shrink: 0; }
.win-tabs button {
  border: 0; background: none; color: var(--muted); font: 700 12px var(--font); padding: 6px 11px; border-radius: 7px; cursor: pointer;
  transition: background .2s, color .2s; position: relative; overflow: hidden;
}
.win-tabs button.on { background: var(--c); color: #10161c; }
.win-tabs button .prog { position: absolute; left: 0; bottom: 0; height: 2px; background: rgba(0, 0, 0, .35); width: 0; }
.win-body { position: relative; aspect-ratio: 16 / 10.4; }
.pane { position: absolute; inset: 0; opacity: 0; visibility: hidden; transition: opacity .5s, visibility .5s; }
.pane.on { opacity: 1; visibility: visible; }
.pane canvas { width: 100%; height: 100%; display: block; }
.pane video { width: 100%; height: 100%; object-fit: cover; background: #000; }
.badge-ill {
  position: absolute; right: 10px; bottom: 10px; z-index: 3; font-size: 11px; font-weight: 700; letter-spacing: .04em;
  background: rgba(15, 25, 34, .72); color: #cfd6dc; padding: 3px 9px; border-radius: 999px; pointer-events: none;
}
.floaty {
  position: absolute; z-index: 4; padding: 10px 14px; border-radius: 12px; font-size: 13px; font-weight: 700;
  background: rgba(21, 34, 46, .9); border: 1px solid rgba(255, 255, 255, .12); backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px); box-shadow: 0 20px 40px -20px rgba(0, 0, 0, .8);
  display: flex; align-items: center; gap: 10px; animation: bob 5s ease-in-out infinite;
}
.floaty .big { font-size: 20px; color: var(--c); font-weight: 800; }
.floaty.f1 { top: 22%; left: -34px; }
.app.flip .floaty.f1 { left: auto; right: -34px; }
.floaty.f2 { bottom: -24px; right: -18px; animation-delay: -2.5s; }
.app.flip .floaty.f2 { right: auto; left: -18px; }
@keyframes bob { 50% { transform: translateY(-9px); } }

/* galerija pravih screenshotova */
.gallery { position: absolute; inset: 0; background: #0b131a; }
.gallery img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; opacity: 0; transition: opacity .6s; cursor: zoom-in; }
.gallery img.on { opacity: 1; }
.gallery-nav { position: absolute; left: 0; right: 0; bottom: 10px; display: flex; justify-content: center; gap: 6px; z-index: 2; }
.gallery-nav button { width: 8px; height: 8px; border-radius: 50%; border: 0; background: rgba(255, 255, 255, .35); cursor: pointer; padding: 0; }
.gallery-nav button.on { background: var(--c); width: 22px; border-radius: 4px; }

/* lightbox */
.lightbox { position: fixed; inset: 0; z-index: 100; background: rgba(5, 9, 13, .92); display: none; place-items: center; padding: 24px; cursor: zoom-out; }
.lightbox.on { display: grid; }
.lightbox img { max-height: 92vh; border-radius: 10px; box-shadow: 0 30px 80px rgba(0, 0, 0, .7); }

/* ---------- mockupi ekrana (svetla JavaFX tema) ---------- */
/* mockup se crta u širini 680 px i skalira na veličinu prozora (main.js postavlja --s i --mh) */
.mock {
  position: absolute; left: 0; top: 0; width: 680px; height: calc(var(--mh, 442) * 1px);
  transform: scale(var(--s, 1)); transform-origin: 0 0; background: #f3f4f1; color: #1f2933; font: 11px/1.35 "Segoe UI", var(--font);
  display: flex; flex-direction: column; overflow: hidden; container-type: inline-size;
}
.mock * { box-sizing: border-box; }
.m-menu { display: flex; gap: 14px; padding: 5px 10px; background: #fcfcfa; border-bottom: 1px solid #e1e4df; font-size: 11px; color: #444; }
.m-row { display: flex; gap: 8px; align-items: center; }
.m-main { flex: 1; display: flex; min-height: 0; }
.m-side { width: 24%; background: #e8ebe6; border-right: 1px solid #d8dcd5; padding: 8px; display: flex; flex-direction: column; gap: 5px; }
.m-side .grp { background: #d9dfe3; border-radius: 4px; padding: 6px 8px; font-weight: 700; font-size: 10.5px; }
.m-side .grp.on { background: #c8d8ea; border-left: 3px solid #5f7a99; }
.m-side .it { background: #fbfbfa; border: 1px solid #cfd4d8; border-radius: 4px; padding: 5px 6px; font-weight: 600; text-align: center; font-size: 10px; margin-left: 8px; }
.m-side .it.on { background: #dfe6ee; }
.m-content { flex: 1; display: flex; flex-direction: column; min-width: 0; padding: 8px; gap: 8px; }
.m-tabs { display: flex; gap: 2px; border-bottom: 1px solid #cfd4d8; }
.m-tabs span { padding: 3px 9px; background: #e3e6e2; border: 1px solid #cfd4d8; border-bottom: 0; border-radius: 3px 3px 0 0; font-size: 10px; }
.m-tabs span.on { background: #fff; font-weight: 700; }
.m-panel { background: #fff; border: 1px solid #dcdfe2; border-radius: 4px; padding: 7px; }
.m-panel h6 { margin: 0 0 5px; font-size: 10.5px; }
.m-field { display: flex; align-items: center; gap: 6px; font-size: 10px; }
.m-input { border: 1px solid #c5cbd0; background: #fff; border-radius: 3px; padding: 2px 6px; font-size: 10px; min-width: 0; flex: 1; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.m-select::after { content: " ▾"; float: right; color: #666; }
.m-btn { border: 1px solid #b9c0c6; background: linear-gradient(#fff, #e8ebee); border-radius: 3px; padding: 3px 9px; font-size: 10px; font-weight: 600; white-space: nowrap; }
.m-btn.pri { background: #3e7c7f; color: #fff; border-color: #346a6d; }
.m-table { width: 100%; border-collapse: collapse; font-size: 9.5px; background: #fff; }
.m-table th { background: #eceeea; text-align: left; padding: 3px 5px; border: 1px solid #dfe2dd; font-weight: 700; white-space: nowrap; }
.m-table td { padding: 2.5px 5px; border: 1px solid #edefec; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 120px; }
.m-table tr.sel td { background: #d8e7f5; }
.m-table .num { text-align: right; font-family: var(--mono); }
.st { display: inline-block; padding: 0 6px; border-radius: 8px; font-weight: 700; font-size: 9px; }
.st.g { background: #d7eedc; color: #2d6b3c; } .st.y { background: #f6ead0; color: #8a6418; } .st.r { background: #f6dad6; color: #9a3a31; } .st.b { background: #dbe6f3; color: #2f5680; }
.m-status { padding: 4px 10px; background: #fcfcfa; border-top: 1px solid #e1e4df; font-size: 10px; color: #555; display: flex; gap: 14px; align-items: center; }
.led { width: 8px; height: 8px; border-radius: 50%; background: #4e8a5b; display: inline-block; box-shadow: 0 0 6px #4e8a5b; }
.m-map { position: relative; flex: 1; border-radius: 4px; overflow: hidden; border: 1px solid #cfd4d8; background: #dfe7da; }
.m-map svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.subwin { position: absolute; background: #fff; border: 1px solid #b8c0c7; border-radius: 6px; box-shadow: 0 8px 24px rgba(0, 0, 0, .18); display: flex; flex-direction: column; overflow: hidden; }
.subwin .sw-bar { background: linear-gradient(#5f7a99, #4f6987); color: #fff; font-weight: 700; padding: 3px 8px; font-size: 10px; display: flex; justify-content: space-between; }
.subwin .sw-body { padding: 6px; flex: 1; position: relative; min-height: 0; }
.mono { font-family: var(--mono); }

/* ---------- Projektovanje i optimizacija (IRLS) ---------- */
.opt {
  border-top: 1px solid var(--line); overflow: hidden;
  background:
    radial-gradient(900px 500px at 50% 0%, color-mix(in srgb, var(--c) 16%, transparent), transparent 70%),
    linear-gradient(180deg, var(--night-1), var(--night) 60%);
}
.opt .section-head h2 { font-size: clamp(32px, 4.6vw, 56px); }
.opt-pre { color: var(--c); position: relative; white-space: nowrap; }
.opt-pre::after { content: ""; position: absolute; left: 0; right: 0; bottom: .02em; height: .12em; border-radius: 4px; background: var(--c); opacity: .45; }
.opt-stage { position: relative; max-width: 1080px; margin: 0 auto; }
.opt-stage .win { transform: none; }
.opt-stage .win-body { aspect-ratio: 16 / 8.2; }
.opt-stage canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.opt-stage .floaty.f1 { top: 18%; left: -40px; }
.opt-stage .floaty.f2 { bottom: -22px; right: -24px; }
.opt-steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin: 64px 0 56px; }
.opt-step { position: relative; padding: 26px 24px 24px; border-radius: var(--radius); background: var(--card); border: 1px solid var(--line); }
.opt-step .n {
  width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center; font-weight: 800;
  background: color-mix(in srgb, var(--c) 18%, transparent); color: var(--c); border: 1px solid color-mix(in srgb, var(--c) 45%, transparent);
}
.opt-step h4 { margin: 14px 0 6px; font-size: 18px; }
.opt-step p { color: var(--muted); font-size: 14.5px; }
.opt-step p b { color: var(--text); }
.opt-grid { display: grid; grid-template-columns: 1fr 1.15fr; gap: 28px; align-items: start; }
.calc {
  padding: 30px; border-radius: 22px; position: relative;
  background: linear-gradient(160deg, color-mix(in srgb, var(--c) 14%, transparent), rgba(255, 255, 255, .02));
  border: 1px solid color-mix(in srgb, var(--c) 40%, transparent);
}
.calc h3, .acc h3 { font-size: 22px; margin-bottom: 8px; }
.calc-note { color: var(--muted); font-size: 13.5px; }
.seg { display: flex; gap: 4px; padding: 4px; margin: 20px 0 18px; border-radius: 12px; background: rgba(0, 0, 0, .25); }
.seg button {
  flex: 1; border: 0; border-radius: 9px; padding: 9px 10px; cursor: pointer; font: 700 13.5px var(--font);
  background: none; color: var(--muted); transition: background .2s, color .2s;
}
.seg button.on { background: var(--c); color: #12101a; }
.calc-lbl { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; font-size: 14.5px; color: var(--muted); }
.calc-lbl b { font-size: 24px; color: var(--text); font-variant-numeric: tabular-nums; }
.calc input[type=range] { width: 100%; margin: 12px 0 20px; accent-color: var(--c); height: 22px; }
.calc-out { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.co { padding: 12px 14px; border-radius: 12px; background: rgba(0, 0, 0, .22); border: 1px solid var(--line); display: flex; flex-direction: column; gap: 2px; }
.co span { font-size: 12.5px; color: var(--muted); }
.co b { font-family: var(--mono); font-size: 19px; font-variant-numeric: tabular-nums; }
.co.big, .co.wide { grid-column: span 2; }
.co.big { flex-direction: row; justify-content: space-between; align-items: center; border-color: color-mix(in srgb, var(--c) 45%, transparent); }
.co.big b { font-size: 30px; color: var(--c); }
.co b.flash { animation: flash .5s; }
@keyframes flash { from { color: var(--sand); } }
.calc-hint { margin-top: 14px; font-size: 13.5px; color: #c9c1db; min-height: 2.6em; }
.acc-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 16px; }
.acc-it {
  padding: 16px 16px 16px 58px; border-radius: 14px; background: var(--card); border: 1px solid var(--line); position: relative;
  transition: border-color .25s, transform .25s;
}
.acc-it:hover { border-color: color-mix(in srgb, var(--c) 55%, transparent); transform: translateY(-2px); }
.acc-it i {
  position: absolute; left: 14px; top: 16px; width: 32px; height: 32px; border-radius: 9px; display: grid; place-items: center; font-style: normal;
  background: color-mix(in srgb, var(--c) 16%, transparent); color: var(--c); font-size: 16px;
}
.acc-it b { display: block; font-size: 15px; }
.acc-it span { display: block; font-size: 13.5px; color: var(--muted); margin-top: 2px; }
.opt-link {
  display: inline-flex; align-items: center; gap: 8px; margin-top: 18px; padding: 11px 18px; border-radius: 12px; font-weight: 700; font-size: 15px;
  color: var(--c); background: color-mix(in srgb, var(--c) 12%, transparent); border: 1px solid color-mix(in srgb, var(--c) 45%, transparent);
  transition: background .2s;
}
.opt-link:hover { background: color-mix(in srgb, var(--c) 22%, transparent); }
.opt-link i { font-style: normal; transition: transform .2s; }
.opt-link:hover i { transform: translateX(4px); }

/* ---------- Hub / bezbednost ---------- */
.hub-grid { display: grid; grid-template-columns: 1.1fr 1fr; gap: 56px; align-items: center; }
.hub-canvas { border-radius: 20px; overflow: hidden; border: 1px solid var(--line); background: var(--night-1); aspect-ratio: 4 / 3.2; }
.hub-canvas canvas { width: 100%; height: 100%; display: block; }
.sec-list { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.sec-item { padding: 20px; border-radius: 14px; background: var(--card); border: 1px solid var(--line); transition: border-color .25s, transform .25s; }
.sec-item:hover { border-color: rgba(210, 180, 122, .45); transform: translateY(-3px); }
.sec-item .si { font-size: 22px; }
.sec-item h4 { margin: 10px 0 4px; font-size: 16px; }
.sec-item p { color: var(--muted); font-size: 14px; }

/* FAQ */
.faq { max-width: 820px; margin-inline: auto; display: grid; gap: 12px; }
.faq details { border-radius: 14px; background: var(--card); border: 1px solid var(--line); padding: 0 22px; transition: border-color .2s; }
.faq details[open] { border-color: rgba(210, 180, 122, .4); }
.faq summary { cursor: pointer; list-style: none; padding: 20px 0; font-weight: 700; font-size: 16.5px; display: flex; justify-content: space-between; gap: 16px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--sand); font-size: 22px; line-height: 1; transition: transform .25s; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { color: var(--muted); padding-bottom: 20px; }

/* CTA */
.cta {
  border-radius: 28px; padding: 70px 48px; text-align: center; position: relative; overflow: hidden;
  background: linear-gradient(135deg, var(--sea-deep), var(--night-3) 55%, #3b3524);
  border: 1px solid rgba(210, 180, 122, .3);
}
.cta canvas { position: absolute; inset: 0; width: 100%; height: 100%; opacity: .55; }
.cta > *:not(canvas) { position: relative; }
.cta h2 { font-size: clamp(30px, 4vw, 50px); font-weight: 800; }
.cta p { color: #cbd6dc; font-size: 18px; max-width: 620px; margin: 16px auto 32px; }
.cta .hero-cta { justify-content: center; }

footer { padding: 40px 0 50px; color: var(--muted); font-size: 14px; border-top: 1px solid var(--line); margin-top: 110px; }
footer .wrap { display: flex; flex-wrap: wrap; gap: 16px; justify-content: space-between; align-items: center; }

/* ---------- reveal animacije ---------- */
.reveal { opacity: 0; transform: translateY(34px); transition: opacity .9s cubic-bezier(.2, .8, .2, 1), transform .9s cubic-bezier(.2, .8, .2, 1); }
.reveal.in { opacity: 1; transform: none; }
.reveal.d1 { transition-delay: .08s; } .reveal.d2 { transition-delay: .16s; } .reveal.d3 { transition-delay: .24s; }
.reveal.d4 { transition-delay: .32s; } .reveal.d5 { transition-delay: .40s; } .reveal.d6 { transition-delay: .48s; } .reveal.d7 { transition-delay: .56s; }

.progress { position: fixed; top: 0; left: 0; height: 3px; z-index: 60; background: linear-gradient(90deg, var(--sea), var(--sand)); width: 0; }

/* ---------- prezentacija ---------- */
.deck {
  --c: var(--sand);
  position: fixed; inset: 0; z-index: 90; display: none; background: radial-gradient(1200px 800px at 70% 40%, #183039, #0b131a 70%);
}
.deck.on { display: block; }
.deck canvas {
  position: absolute; left: 38%; top: 10%; width: 58%; height: 80%; border-radius: 20px;
  box-shadow: 0 40px 90px -30px rgba(0, 0, 0, .9), 0 0 0 1px rgba(255, 255, 255, .08), 0 30px 90px -50px var(--c);
}
.deck-text { position: absolute; z-index: 2; left: max(4vw, 24px); top: 50%; transform: translateY(-50%); width: calc(34% - max(4vw, 24px)); }
.deck-text > * { opacity: 0; transform: translateY(24px); }
.deck-text.in > * { animation: deckIn .8s cubic-bezier(.2, .8, .2, 1) forwards; }
.deck-text.in > *:nth-child(2) { animation-delay: .12s; } .deck-text.in > *:nth-child(3) { animation-delay: .24s; } .deck-text.in > *:nth-child(4) { animation-delay: .36s; }
@keyframes deckIn { to { opacity: 1; transform: none; } }
.deck-k { display: inline-block; font-size: 14px; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; color: var(--c); padding: 6px 14px; border-radius: 999px; border: 1px solid var(--c); background: rgba(0, 0, 0, .3); }
.deck-text h2 { font-size: clamp(28px, 3.6vw, 56px); font-weight: 800; margin: 18px 0 14px; text-shadow: 0 4px 30px rgba(0, 0, 0, .6); }
.deck-text p { font-size: clamp(16px, 1.6vw, 21px); color: #cfd8de; text-shadow: 0 2px 16px rgba(0, 0, 0, .7); }
.deck-text .hero-cta { margin-top: 26px; }
.deck-bar { position: absolute; z-index: 3; top: 16px; left: 16px; right: 16px; }
.deck-prog { display: flex; gap: 6px; }
.deck-prog i { flex: 1; height: 4px; border-radius: 2px; background: rgba(255, 255, 255, .18); overflow: hidden; }
.deck-prog b { display: block; height: 100%; width: 0; background: var(--c); }
.deck-prog i.done b { background: rgba(255, 255, 255, .7); }
.deck-ctrl { position: absolute; z-index: 3; right: 20px; bottom: 20px; display: flex; gap: 8px; }
.deck-ctrl button {
  width: 46px; height: 46px; border-radius: 50%; border: 1px solid rgba(255, 255, 255, .2); background: rgba(21, 34, 46, .8);
  color: var(--text); font-size: 18px; cursor: pointer; transition: background .2s;
}
.deck-ctrl button:hover { background: rgba(255, 255, 255, .15); }
@media (max-width: 760px), (max-aspect-ratio: 1/1) {
  .deck canvas { left: 16px; top: 44px; width: calc(100% - 32px); height: 46%; }
  .deck-text { top: auto; transform: none; bottom: 88px; left: 20px; width: calc(100% - 40px); }
}

/* ---------- responsive ---------- */
@media (max-width: 1050px) {
  .apps-grid { grid-template-columns: repeat(2, 1fr); }
  .stats { grid-template-columns: repeat(2, 1fr); }
  .app .wrap, .hub-grid { grid-template-columns: 1fr; gap: 44px; }
  .app.flip .app-text { order: 0; }
  .win, .app.flip .win { transform: none; }
  .flow { grid-template-columns: 1fr; gap: 26px; }
  .opt-grid { grid-template-columns: 1fr; }
  .opt-steps { grid-template-columns: 1fr; margin: 48px 0 40px; }
  .flow-line { display: none; }
  .flow-step { display: grid; grid-template-columns: 76px 1fr; gap: 18px; text-align: left; align-items: center; }
  .flow-step .bubble { margin: 0; }
  .flow-step .chips { justify-content: flex-start; }
}
@media (max-width: 760px) {
  .nav-links {
    position: fixed; inset: 64px 16px auto 16px; flex-direction: column; gap: 0; padding: 8px;
    background: rgba(21, 34, 46, .97); border: 1px solid var(--line); border-radius: 14px;
    transform: translateY(-12px); opacity: 0; pointer-events: none; transition: .25s;
  }
  .nav-links.open { transform: none; opacity: 1; pointer-events: auto; }
  .nav-links a { padding: 12px 14px; }
  .nav-links a.active::after { display: none; }
  .nav .btn { display: none; }
  .burger { display: block; margin-left: auto; }
  .section, .app { padding: 76px 0; }
  .apps-grid, .sec-list { grid-template-columns: 1fr; }
  .stats { grid-template-columns: 1fr 1fr; gap: 12px; }
  .stat { padding: 20px 16px; }
  .stat .num { font-size: 34px; }
  .floaty { display: none; }
  .win-tabs button { padding: 5px 8px; }
  .win-title { display: none; }
  .cta { padding: 50px 22px; }
  .win-body { aspect-ratio: 4 / 3.4; }
  .opt-stage .win-body { aspect-ratio: 4 / 3.6; }
  .acc-grid, .calc-out { grid-template-columns: 1fr; }
  .co.big, .co.wide { grid-column: auto; }
  .calc { padding: 22px 18px; }
  .seg button { font-size: 12.5px; padding: 9px 6px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  .reveal { opacity: 1; transform: none; }
}
