/* ==========================================================================
   Skyner — v2 redesign. Dark, cinematic, photo-forward.
   Fonts: Chakra Petch (display) · IBM Plex Sans (body) · IBM Plex Mono (data)
   ========================================================================== */

:root {
  --bg: #05080d;
  --bg-2: #0a0f17;
  --bg-3: #111923;
  --line: rgba(255, 255, 255, .08);
  --line-2: rgba(255, 255, 255, .14);
  --text: #eef2f6;
  --muted: #9aa8b8;
  --dim: #6b7887;
  --blue: #5bb2e9;
  --blue-2: #2f8fd0;
  --blue-glow: rgba(91, 178, 233, .35);
  --green: #3ddc84;
  --red: #ff5a3c;
  --amber: #f5b53f;
  --head: 'Orbitron', 'Chakra Petch', 'Segoe UI', system-ui, sans-serif;
  --body: 'IBM Plex Sans', 'Segoe UI', system-ui, sans-serif;
  --mono: 'IBM Plex Mono', ui-monospace, Menlo, Consolas, monospace;
  --wrap: 1280px;
  --gutter: clamp(20px, 4vw, 48px);
  --ease: cubic-bezier(.22, 1, .36, 1);
  --r: 6px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--bg); color: var(--text);
  font: 400 17px/1.6 var(--body); overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, h4 { font-family: var(--head); font-weight: 700; line-height: 1.12; margin: 0; letter-spacing: .005em; }
h2 { font-size: clamp(26px, 3.4vw, 46px); }
h3 { font-size: clamp(18px, 1.9vw, 24px); }
p { margin: 0 0 1em; }
.wrap { width: min(var(--wrap), 100% - 2 * var(--gutter)); margin-inline: auto; }
::selection { background: var(--blue); color: #04101a; }
:focus-visible { outline: 2px solid var(--blue); outline-offset: 3px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }

/* --- typographic helpers --- */
.eyebrow {
  display: inline-flex; align-items: center; gap: 12px;
  font: 500 12px/1 var(--mono); letter-spacing: .22em; text-transform: uppercase;
  color: var(--blue); margin: 0 0 22px;
}
.bars { display: inline-flex; align-items: flex-end; gap: 2px; height: 12px; }
.bars i { width: 3px; background: currentColor; display: block; border-radius: 1px; }
.bars i:nth-child(1) { height: 3px; } .bars i:nth-child(2) { height: 5px; } .bars i:nth-child(3) { height: 7px; }
.bars i:nth-child(4) { height: 9px; } .bars i:nth-child(5) { height: 12px; }
.lead { font-size: clamp(17px, 1.4vw, 20px); color: var(--muted); max-width: 62ch; }
.mono { font-family: var(--mono); }
.dot { color: var(--blue); }

/* --- buttons --- */
.btn {
  display: inline-flex; align-items: center; gap: 10px; padding: 15px 26px;
  font: 600 12px/1 var(--head); letter-spacing: .1em; text-transform: uppercase;
  border: 1px solid var(--line-2); border-radius: var(--r); color: var(--text);
  transition: transform .35s var(--ease), background .25s, border-color .25s, color .25s, box-shadow .35s;
  position: relative; overflow: hidden; cursor: pointer; background: rgba(255,255,255,.02);
}
.btn svg { width: 16px; height: 16px; transition: transform .35s var(--ease); }
.btn:hover { border-color: var(--blue); transform: translateY(-2px); }
.btn:hover svg { transform: translateX(4px); }
.btn-solid { background: var(--blue); border-color: var(--blue); color: #04101a; box-shadow: 0 0 0 0 var(--blue-glow); }
.btn-solid:hover { background: #7cc3ef; box-shadow: 0 12px 40px -10px var(--blue-glow); }
.btn-sm { padding: 11px 16px; font-size: 11px; }
.btn-ghost { border-color: transparent; padding-inline: 8px; }
.btn-ghost:hover { border-color: transparent; color: var(--blue); transform: none; }

/* ==========================================================================
   Header
   ========================================================================== */
.site-head {
  position: fixed; inset: 0 0 auto 0; z-index: 50; height: 76px;
  transition: background .4s, backdrop-filter .4s, border-color .4s, height .4s;
  border-bottom: 1px solid transparent;
}
.site-head .wrap { height: 100%; display: flex; align-items: center; justify-content: space-between; gap: 32px; }
.site-head.solid { background: rgba(5, 8, 13, .78); backdrop-filter: blur(16px); border-color: var(--line); height: 64px; }
.logo img { width: 172px; height: auto; transition: width .4s; }
.site-head.solid .logo img { width: 128px; }
@media (max-width: 600px) { .logo img { width: 140px; } .site-head.solid .logo img { width: 118px; } }
.site-nav { display: flex; align-items: center; gap: 8px; }
.site-nav > a:not(.btn) {
  padding: 10px 14px; font: 500 14px/1 var(--body); color: var(--muted); border-radius: var(--r);
  transition: color .2s, background .2s;
}
.site-nav > a:not(.btn):hover, .site-nav > a[aria-current] { color: var(--text); background: rgba(255,255,255,.05); }
.site-nav .btn { margin-left: 10px; }
.site-nav .ext::after { content: '↗'; margin-left: 5px; font-size: 12px; opacity: .7; }
.nav-toggle { display: none; background: none; border: 1px solid var(--line-2); border-radius: var(--r); color: var(--text); width: 44px; height: 44px; align-items: center; justify-content: center; cursor: pointer; }

@media (max-width: 880px) {
  .nav-toggle { display: inline-flex; }
  .site-nav {
    position: fixed; inset: 0; background: rgba(5, 8, 13, .96); backdrop-filter: blur(20px);
    flex-direction: column; justify-content: center; gap: 6px; padding: 32px;
    opacity: 0; pointer-events: none; transition: opacity .3s;
  }
  .site-nav.open { opacity: 1; pointer-events: auto; }
  .site-nav > a:not(.btn) { font-family: var(--head); font-size: 32px; padding: 12px 0; }
  .site-nav .btn { margin: 20px 0 0; }
  /* backdrop-filter na glavi bi ujel fixed meni v svoj okvir -> ob odprtju ga umaknemo */
  .site-head.menu-open, .site-head.solid.menu-open { background: transparent; backdrop-filter: none; }
}

/* ==========================================================================
   Hero
   ========================================================================== */
.hero {
  position: relative; min-height: 100svh; display: flex; flex-direction: column;
  overflow: hidden; isolation: isolate; padding-top: 96px;
}
.hero > .wrap { display: flex; flex-direction: column; flex: 1; }
.hero-bg { position: absolute; inset: 0; z-index: -3; }
.hero-bg img {
  width: 100%; height: 100%; object-fit: cover; object-position: 60% 45%;
  animation: kenburns 28s var(--ease) infinite alternate;
  filter: saturate(.85) brightness(.9);
}
@keyframes kenburns { from { transform: scale(1) translate(0, 0); } to { transform: scale(1.12) translate(-1.5%, -1%); } }
.hero-shade {
  position: absolute; inset: 0; z-index: -2;
  background:
    linear-gradient(90deg, rgba(5,8,13,.92) 0%, rgba(5,8,13,.72) 38%, rgba(5,8,13,.25) 70%, rgba(5,8,13,.55) 100%),
    linear-gradient(180deg, rgba(5,8,13,.55) 0%, rgba(5,8,13,0) 30%, rgba(5,8,13,.2) 55%, var(--bg) 92%);
}
/* mehak iztek žarka in ozadja v spodnji rob hero modula
   (nad radar žarkom, pod vsebino) */
.hero::after {
  content: ''; position: absolute; left: 0; right: 0; bottom: 0; height: 24%;
  background: linear-gradient(180deg, transparent, var(--bg) 88%);
  z-index: 0; pointer-events: none;
}
.hero > .wrap { position: relative; z-index: 1; }
/* radar sweep over the map */
.hero-radar {
  position: absolute; z-index: -1; width: 100vmax; height: 100vmax; left: 58%; top: 45%;
  transform: translate(-50%, -50%); border-radius: 50%; pointer-events: none;
  background: conic-gradient(from 0deg, rgba(91,178,233,0) 0deg, rgba(91,178,233,0) 300deg, rgba(91,178,233,.14) 352deg, rgba(120,200,255,.38) 360deg);
  animation: sweep 7s linear infinite; opacity: .85; will-change: transform;
  -webkit-mask: radial-gradient(circle, #000 0%, #000 30%, transparent 46%);
  mask: radial-gradient(circle, #000 0%, #000 30%, transparent 46%);
}
/* izven zaslona ustavi animacije (JS doda .off) */
.hero.off .hero-radar, .hero.off .hero-rings i, .hero.off .hero-bg img { animation-play-state: paused; }
@keyframes sweep { to { transform: translate(-50%, -50%) rotate(360deg); } }
.hero-rings { position: absolute; z-index: -1; left: 58%; top: 45%; width: 0; height: 0; pointer-events: none; }
.hero-rings i {
  position: absolute; left: 50%; top: 50%; width: 24px; height: 24px; border-radius: 50%;
  border: 1.5px solid rgba(120, 200, 255, .55); transform: translate(-50%, -50%) scale(1);
  animation: ring 4.5s ease-out infinite; opacity: 0;
}
.hero-rings i:nth-child(2) { animation-delay: 1.5s; } .hero-rings i:nth-child(3) { animation-delay: 3s; }
@keyframes ring { 0% { transform: translate(-50%,-50%) scale(1); opacity: .9; } 100% { transform: translate(-50%,-50%) scale(26); opacity: 0; } }

/* --- dron, ki sledi miski (navaden kurzor ostane) --- */
.drone-cursor {
  position: absolute; left: 0; top: 0; z-index: 0; pointer-events: none; /* za tekstom in napravo (.wrap je z-index 1) */
  opacity: 0; transition: opacity .35s; will-change: transform;
}
.hero.drone-live .drone-cursor, .hero.drone-live .dc-link { opacity: 1; }
.hero.drone-ui .drone-cursor, .hero.drone-ui .dc-link { opacity: 0 !important; }
.dc-bob { display: block; animation: dc-bob 2.6s ease-in-out infinite; }
@keyframes dc-bob { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-4px); } }
.drone-cursor .dc-body {
  width: 46px; height: 46px; margin: -23px 0 0 -23px; display: block;
  filter: drop-shadow(0 8px 14px rgba(0,0,0,.7));
  transition: color .2s linear; color: var(--blue);
}
.dc-body .prop {
  transform-box: fill-box; transform-origin: center;
  animation: dc-spin .5s linear infinite; opacity: .85;
}
@keyframes dc-spin { to { transform: rotate(360deg); } }
.dc-warn {
  position: absolute; left: 50%; top: -38px; transform: translateX(-50%) scale(.6);
  width: 26px; height: 24px; color: var(--red); opacity: 0;
  transition: opacity .3s, transform .3s;
  animation: dc-warn-pulse 1s ease-in-out infinite;
}
.drone-cursor.warn .dc-warn { opacity: 1; transform: translateX(-50%) scale(1); }
@keyframes dc-warn-pulse { 0%, 100% { filter: drop-shadow(0 0 3px rgba(255,90,60,.4)); } 50% { filter: drop-shadow(0 0 12px rgba(255,90,60,.95)); } }

/* sledilna crta: od senzorja proti dronu tece tok pikic */
.dc-link {
  position: absolute; left: 0; top: 0; height: 2px; z-index: 0; pointer-events: none;
  transform-origin: 0 50%; opacity: 0; color: var(--blue);
  background: repeating-linear-gradient(90deg, currentColor 0 7px, transparent 7px 15px);
  animation: dc-flow .7s linear infinite; transition: color .2s linear;
  -webkit-mask: linear-gradient(90deg, transparent 0, #000 26px);
  mask: linear-gradient(90deg, transparent 0, #000 26px);
}
.dc-link.warn { animation-duration: .3s; height: 2.5px; }
@keyframes dc-flow { to { background-position: 22px 0; } }

/* marker senzorja v centru signala */
.dc-origin { position: absolute; left: 58%; top: 45%; z-index: 0; pointer-events: none; color: var(--blue); }
.dc-origin i {
  position: absolute; left: -5px; top: -5px; width: 10px; height: 10px; border-radius: 50%;
  background: currentColor; box-shadow: 0 0 14px currentColor; transition: color .3s;
}
.dc-origin::before, .dc-origin::after {
  content: ''; position: absolute; left: 50%; top: 50%; width: 12px; height: 12px;
  border-radius: 50%; border: 1.5px solid currentColor; opacity: 0;
  animation: dc-origin-ring 2.4s ease-out infinite;
}
.dc-origin::after { animation-delay: 1.2s; }
.dc-origin.warn { color: var(--red); }
.dc-origin.warn::before, .dc-origin.warn::after { animation-duration: 1.1s; }
@keyframes dc-origin-ring {
  0% { transform: translate(-50%, -50%) scale(1); opacity: .9; }
  100% { transform: translate(-50%, -50%) scale(5.5); opacity: 0; }
}

.hero-grid { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr); gap: 24px; align-items: center; flex: 1; padding: 24px 0 32px; }
.hero-copy { position: relative; z-index: 2; }
.hero h1 {
  font-size: clamp(38px, 6vw, 88px); line-height: 1.02; text-transform: uppercase; letter-spacing: .01em; font-weight: 800;
  margin: 0 0 26px;
}
.hero h1 > span { display: block; white-space: nowrap; }
.hero h1 .l2 { color: transparent; -webkit-text-stroke: 1.5px rgba(238, 242, 246, .85); }
.hero h1 .dot { color: var(--blue); -webkit-text-stroke: 0; }
.hero .lead { margin-bottom: 36px; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 14px; }

.hero-product { position: relative; z-index: 1; aspect-ratio: 1 / 1; min-height: 320px; max-height: 64vh; width: 106%; margin-left: -2%; }
.hero-product::before {
  content: ''; position: absolute; inset: 10% 5% 0; border-radius: 50%;
  background: radial-gradient(closest-side, rgba(91,178,233,.28), rgba(91,178,233,.06) 55%, transparent 75%);
  filter: blur(20px);
}
.hero-product img {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain;
  filter: drop-shadow(0 40px 60px rgba(0,0,0,.65));
  animation: float 7s ease-in-out infinite;
  transform-origin: 50% 60%;
}
@keyframes float { 0%, 100% { transform: translateY(0) rotate(-1deg); } 50% { transform: translateY(-16px) rotate(.6deg); } }

.hero-stats {
  position: relative; z-index: 2; display: grid; grid-template-columns: repeat(4, 1fr);
  border-top: 1px solid var(--line); padding: 24px 0 32px;
}
.hero-stats div { padding: 0 24px 0 0; border-left: 1px solid var(--line); padding-left: 22px; }
.hero-stats div:first-child { border-left: 0; padding-left: 0; }
.hero-stats b { display: block; font: 700 clamp(17px, 1.7vw, 24px)/1.1 var(--head); color: var(--text); margin-bottom: 8px; }
.hero-stats span { font: 400 13px/1.4 var(--body); color: var(--muted); }

@media (max-width: 1000px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-product { max-width: 480px; width: 100%; margin: -10px auto 0; order: -1; }
  .hero-stats { grid-template-columns: repeat(2, 1fr); row-gap: 22px; }
  .hero-stats div:nth-child(3) { border-left: 0; padding-left: 0; }
}
@media (max-width: 600px) {
  .hero { padding-top: 96px; }
  .hero-stats b { font-size: 16px; }
  .hero-stats span { font-size: 12px; }
  .hero-product { min-height: 260px; max-width: 360px; }
  .hero-stats { grid-template-columns: 1fr 1fr; }
}

/* ==========================================================================
   Sections
   ========================================================================== */
.section { padding: clamp(72px, 8vw, 112px) 0; position: relative; }
@media (max-width: 600px) { .section { padding: 52px 0; } }
.section-head { max-width: 780px; margin-bottom: clamp(40px, 5vw, 64px); }
.section-head h2 { margin-bottom: 20px; }
.section-head .lead { margin: 0; }
.section-head.center { margin-inline: auto; text-align: center; }
.section-head.center .lead { margin-inline: auto; }
.section-head.split { max-width: none; display: grid; grid-template-columns: 1fr auto; align-items: end; gap: 32px; }
@media (max-width: 760px) { .section-head.split { grid-template-columns: 1fr; } }

.grid-bg { background-image: linear-gradient(var(--line) 1px, transparent 1px), linear-gradient(90deg, var(--line) 1px, transparent 1px); background-size: 80px 80px; background-position: center; }
.grid-bg::before { content: ''; position: absolute; inset: 0; background: radial-gradient(ellipse at center, transparent 30%, var(--bg) 85%); pointer-events: none; }
.grid-bg > * { position: relative; }

/* --- sector cards (photo) --- */
.sectors { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.sector {
  position: relative; aspect-ratio: 3 / 4; overflow: hidden; border-radius: var(--r); isolation: isolate;
  display: flex; align-items: flex-end; padding: 32px; color: #fff;
}
.sector img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 65%; z-index: -2; transition: transform 1.1s var(--ease), filter .6s; filter: saturate(.8) brightness(.9); }
.sector::after { content: ''; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(5,8,13,.1) 30%, rgba(5,8,13,.9) 100%); transition: opacity .5s; }
.sector::before { content: ''; position: absolute; left: 32px; top: 32px; width: 42px; height: 2px; background: var(--blue); }
.sector > div { padding-right: 56px; }
.sector h3 { font-size: clamp(17px, 1.5vw, 21px); text-transform: uppercase; margin-bottom: 10px; line-height: 1.25; }
.sector p { color: rgba(255,255,255,.78); margin: 0; max-height: 0; overflow: hidden; opacity: 0; transition: max-height .6s var(--ease), opacity .5s .05s; font-size: 15px; }
.sector .arrow { position: absolute; right: 28px; bottom: 30px; width: 40px; height: 40px; border: 1px solid rgba(255,255,255,.35); border-radius: 50%; display: grid; place-items: center; transition: background .3s, border-color .3s; }
.sector:hover img { transform: scale(1.07); filter: saturate(1) brightness(1); }
.sector:hover p { max-height: 8em; opacity: 1; }
.sector:hover .arrow { background: var(--blue); border-color: var(--blue); }
@media (max-width: 900px) { .sectors { grid-template-columns: 1fr; } .sector { aspect-ratio: auto; min-height: 250px; padding: 20px; } .sector::before { left: 20px; top: 20px; } .sector p { max-height: none; opacity: 1; font-size: 13.5px; } .sector > div { padding-right: 0; } .sector .arrow { display: none; } }

/* --- defence chain --- */
.chain { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; position: relative; margin-top: 24px; }
.chain::before { content: ''; position: absolute; left: 0; right: 0; top: 34px; height: 1px; background: var(--line); }
.chain-line { position: absolute; left: 0; top: 34px; height: 1px; width: 0; background: linear-gradient(90deg, var(--blue), var(--red)); transition: width 2.4s var(--ease); box-shadow: 0 0 12px var(--blue-glow); }
.chain.in .chain-line { width: 100%; }
.step { padding: 0 28px 0 0; position: relative; }
.step + .step { padding-left: 28px; }
.step-ico {
  width: 68px; height: 68px; border-radius: 50%; display: grid; place-items: center; background: var(--bg);
  border: 1px solid var(--line-2); color: var(--blue); position: relative; margin-bottom: 26px;
  transition: border-color .4s, box-shadow .4s, transform .4s;
}
.step-ico svg { width: 30px; height: 30px; }
.step:last-child .step-ico { color: var(--red); }
.chain.in .step-ico { border-color: currentColor; box-shadow: 0 0 30px -6px currentColor; }
.step .num { font: 500 12px/1 var(--mono); color: var(--dim); letter-spacing: .2em; margin-bottom: 12px; display: block; }
.step h3 { text-transform: uppercase; font-size: clamp(17px, 1.5vw, 21px); margin-bottom: 12px; }
.step p { color: var(--muted); font-size: 15px; margin: 0; }
@media (max-width: 900px) {
  .chain { grid-template-columns: 1fr 1fr; row-gap: 40px; }
  .chain::before, .chain-line { display: none; }
  .step, .step + .step { padding: 0; }
}
@media (max-width: 520px) { .chain { grid-template-columns: 1fr; } }

/* --- product cards --- */
.products { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.pcard {
  position: relative; display: flex; flex-direction: column; border: 1px solid var(--line); border-radius: var(--r);
  background: linear-gradient(180deg, var(--bg-3), var(--bg-2)); overflow: hidden; isolation: isolate;
  transition: transform .5s var(--ease), border-color .4s, box-shadow .5s;
}
.pcard::before {
  content: ''; position: absolute; inset: 0; z-index: -1; opacity: .7; transition: opacity .5s;
  background: radial-gradient(60% 45% at 50% 38%, rgba(91,178,233,.22), transparent 70%);
}
.pcard-media { aspect-ratio: 1 / 1; display: grid; place-items: center; padding: 8%; position: relative; }
.pcard-media::after { content: ''; position: absolute; left: 20%; right: 20%; bottom: 9%; height: 8%; border-radius: 50%; background: radial-gradient(closest-side, rgba(0,0,0,.6), transparent); filter: blur(6px); z-index: -1; }
.pcard-media { min-height: 0; }
.pcard-media img { position: absolute; left: 7%; top: 7%; width: 86%; height: 86%; object-fit: contain; transition: transform .7s var(--ease); filter: drop-shadow(0 20px 30px rgba(0,0,0,.5)); }
.pcard-body { padding: 0 26px 26px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.pcard .cat { font: 500 11px/1 var(--mono); letter-spacing: .18em; text-transform: uppercase; color: var(--blue); }
.pcard h3 { font-size: 18px; }
.pcard p { color: var(--muted); font-size: 15px; margin: 0; flex: 1; }
.pcard-foot { display: flex; align-items: center; justify-content: space-between; margin-top: 8px; padding-top: 16px; border-top: 1px solid var(--line); }
.badges { display: flex; gap: 6px; flex-wrap: wrap; }
/* značke: umirjene, enotne (barve so bile preveč "off") */
.badge { font: 500 10.5px/1 var(--mono); letter-spacing: .12em; text-transform: uppercase; padding: 6px 8px; border-radius: 3px; border: 1px solid var(--line-2); color: var(--muted); }
.pcard .go { width: 36px; height: 36px; border-radius: 50%; border: 1px solid var(--line-2); display: grid; place-items: center; transition: background .3s, border-color .3s, transform .3s; }
.pcard .go svg { width: 14px; height: 14px; }
.pcard:hover { transform: translateY(-6px); border-color: rgba(91,178,233,.45); box-shadow: 0 30px 60px -30px rgba(0,0,0,.8); }
.pcard:hover::before { opacity: 1; }
.pcard:hover .pcard-media img { transform: scale(1.06) translateY(-4px); }
.pcard:hover .go { background: var(--blue); border-color: var(--blue); color: #04101a; transform: rotate(-45deg); }
.pcard > a.cover { position: absolute; inset: 0; z-index: 2; }
@media (max-width: 900px) { .products { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) {
  .products { grid-template-columns: 1fr; gap: 12px; }
  /* kompaktne vodoravne kartice: slika levo, tekst desno */
  .pcard { flex-direction: row; align-items: center; }
  .pcard-media { width: 122px; flex: none; aspect-ratio: auto; min-height: 128px; align-self: stretch; padding: 12px; }
  .pcard-media .code { left: 8px; top: 8px; padding: 4px 6px; font-size: 10px; }
  .pcard-body, .pcard .pcard-body { padding: 14px 16px; gap: 6px; }
  .pcard h3 { font-size: 16px; }
  .pcard p { font-size: 13px; }
  .pcard .cat { font-size: 10px; }
  .pcard > .go { display: none; }
  .badge { padding: 5px 6px; font-size: 9.5px; }
}

/* --- software / cloud --- */
.software { background: linear-gradient(180deg, var(--bg) 0%, #071220 40%, #071220 70%, var(--bg) 100%); overflow: hidden; }
.software .section-head { max-width: 900px; }
.screen-stage { perspective: 1800px; margin: 0 auto clamp(60px, 7vw, 100px); position: relative; }
.screen {
  position: relative; border-radius: 10px; overflow: hidden; border: 1px solid var(--line-2);
  background: #0b1219; box-shadow: 0 60px 120px -40px rgba(0,0,0,.9), 0 0 0 1px rgba(255,255,255,.04) inset;
  transform: rotateX(var(--tilt, 14deg)) scale(var(--sc, .96)); transform-origin: 50% 100%;
  transition: transform 1.2s var(--ease);
}
.screen-bar { height: 36px; background: #0f161f; border-bottom: 1px solid var(--line); display: flex; align-items: center; gap: 8px; padding: 0 14px; }
.screen-bar i { width: 10px; height: 10px; border-radius: 50%; background: #2a3541; }
.screen-bar span { margin-left: 12px; font: 400 12px/1 var(--mono); color: var(--dim); background: rgba(255,255,255,.04); padding: 6px 12px; border-radius: 4px; flex: 1; max-width: 320px; }
.screen img { width: 100%; display: block; }
.screen-glow { position: absolute; inset: auto 10% -40px; height: 120px; background: radial-gradient(closest-side, var(--blue-glow), transparent); filter: blur(30px); z-index: -1; }
.session-card {
  position: absolute; right: -2%; bottom: -10%; width: min(46%, 520px); border-radius: 8px; overflow: hidden;
  border: 1px solid var(--line-2); box-shadow: 0 40px 80px -20px rgba(0,0,0,.9); background: #0f161f;
  transform: translateY(30px); opacity: 0; transition: transform 1s var(--ease) .3s, opacity .8s .3s;
}
.screen-stage.in .session-card { transform: translateY(0); opacity: 1; }
.session-card img { width: 100%; display: block; }
.sw-features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.sw-f { padding: 28px; border: 1px solid var(--line); border-radius: var(--r); background: rgba(255,255,255,.02); transition: border-color .3s, background .3s; }
.sw-f:hover { border-color: rgba(91,178,233,.4); background: rgba(91,178,233,.04); }
.sw-f svg { width: 26px; height: 26px; color: var(--blue); margin-bottom: 18px; }
.sw-f h3 { font-size: 15px; margin-bottom: 10px; }
.sw-f p { color: var(--muted); font-size: 15px; margin: 0; }
.sw-cta { display: flex; justify-content: center; margin-top: 40px; }
@media (max-width: 900px) { .sw-features { grid-template-columns: 1fr 1fr; } .session-card { width: 56%; } }
@media (max-width: 600px) {
  .sw-features { grid-template-columns: 1fr 1fr; gap: 10px; }
  .sw-f { padding: 16px 14px; }
  .sw-f h3 { font-size: 13.5px; }
  .sw-f p { font-size: 12.5px; }
  .sw-f svg { width: 20px; height: 20px; margin-bottom: 10px; }
  .session-card { display: none; }
  .screen { --tilt: 0deg; }
}

/* --- marquee --- */
.marquee { border-block: 1px solid var(--line); padding: 22px 0; overflow: hidden; -webkit-mask: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent); mask: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent); }
.marquee-track { display: flex; gap: 56px; width: max-content; animation: marquee 40s linear infinite; }
.marquee span { font: 600 13px/1 var(--head); letter-spacing: .2em; text-transform: uppercase; color: var(--dim); white-space: nowrap; display: inline-flex; align-items: center; gap: 56px; }
.marquee span::after { content: ''; width: 6px; height: 6px; background: var(--blue); border-radius: 50%; opacity: .6; }
@keyframes marquee { to { transform: translateX(-50%); } }
.marquee-label { text-align: center; font: 500 11px/1 var(--mono); letter-spacing: .22em; text-transform: uppercase; color: var(--dim); margin: 0 0 16px; }

/* --- proof / why --- */
.proof { display: grid; grid-template-columns: 1.05fr .95fr; gap: clamp(32px, 5vw, 80px); align-items: center; }
.proof-list { list-style: none; margin: 32px 0 0; padding: 0; display: grid; gap: 14px; }
.proof-list li { display: flex; gap: 14px; align-items: flex-start; padding: 16px 18px; border: 1px solid var(--line); border-radius: var(--r); background: rgba(255,255,255,.02); font-size: 15.5px; }
.proof-list svg { width: 18px; height: 18px; color: var(--green); flex: none; margin-top: 3px; }
.proof-visual { position: relative; border-radius: var(--r); overflow: hidden; aspect-ratio: 4 / 5; }
.proof-visual img { width: 100%; height: 100%; object-fit: cover; }
.proof-visual::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 50%, rgba(5,8,13,.85)); }
.proof-visual .data {
  position: absolute; left: 22px; right: 22px; bottom: 22px; z-index: 1; display: grid; grid-template-columns: 1fr 1fr; gap: 10px;
}
.proof-visual .data div { background: rgba(5,8,13,.7); border: 1px solid var(--line-2); backdrop-filter: blur(8px); padding: 12px 14px; border-radius: 4px; font: 400 12px/1.5 var(--mono); color: var(--muted); }
.proof-visual .data b { display: block; color: var(--text); font-weight: 500; font-size: 14px; }
.proof-visual .data .live { color: var(--green); }
@media (max-width: 900px) { .proof { grid-template-columns: 1fr; } .proof-visual { aspect-ratio: 16 / 10; } }

/* --- solutions (alternating) --- */
.solution { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(28px, 5vw, 80px); align-items: center; padding: clamp(40px, 5vw, 72px) 0; border-top: 1px solid var(--line); }
.solution:first-of-type { border-top: 0; padding-top: 0; }
.solution:nth-child(even) .solution-media { order: 2; }
.solution-media { position: relative; border-radius: var(--r); overflow: hidden; aspect-ratio: 4 / 3; }
.solution-media img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease); filter: saturate(.85); }
/* pokoncni fotografiji: kader tako, da je naprava vidna (ne odrezan senzor/antene) */
#perimeter .solution-media img { object-position: 50% 9%; }
#fusion .solution-media img { object-position: 50% 18%; }
.solution:hover .solution-media img { transform: scale(1.05); }
.solution-media .num { position: absolute; left: 20px; top: 16px; font: 700 64px/1 var(--head); color: rgba(255,255,255,.14); }
.solution h3 { font-size: clamp(20px, 2.2vw, 30px); margin-bottom: 16px; text-transform: uppercase; }
.solution p { color: var(--muted); }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 20px; }
.chip { font: 500 12px/1 var(--mono); letter-spacing: .1em; padding: 9px 12px; border: 1px solid var(--line-2); border-radius: 4px; color: var(--text); transition: border-color .25s, color .25s; }
.chip:hover { border-color: var(--blue); color: var(--blue); }
@media (max-width: 800px) { .solution { grid-template-columns: 1fr; } .solution:nth-child(even) .solution-media { order: 0; } }

/* --- contact --- */
#contact { position: relative; isolation: isolate; }
#contact::before {
  content: ''; position: absolute; inset: 0; z-index: -1;
  background:
    linear-gradient(180deg, var(--bg) 0%, rgba(5,8,13,.52) 45%, rgba(5,8,13,.6) 65%, var(--bg) 100%),
    url('/assets/img/contact-bg-1800.webp') center / cover no-repeat;
}
.contact-wrap { position: relative; isolation: isolate; border-radius: 10px; overflow: hidden; border: 1px solid var(--line); background: var(--bg-2); }
.contact-wrap::before { content: ''; position: absolute; inset: 0; z-index: -1; background: radial-gradient(60% 80% at 0% 50%, rgba(91,178,233,.14), transparent 60%); }
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 5vw, 80px); padding: clamp(32px, 5vw, 64px); }
.contact-info h2 { margin-bottom: 18px; }
.contact-info p { color: var(--muted); }
.contact-mail a { font: 600 clamp(20px, 2vw, 26px)/1.2 var(--body); color: var(--text); border-bottom: 2px solid var(--blue); transition: color .2s; }
.contact-mail a:hover { color: var(--blue); }
.contact-meta { display: grid; gap: 10px; margin-top: 28px; font-size: 14px; color: var(--muted); }
.contact-meta b { color: var(--text); font-weight: 500; }
.form { display: grid; gap: 14px; }
.form label { display: grid; gap: 6px; font: 500 12px/1 var(--mono); letter-spacing: .12em; text-transform: uppercase; color: var(--dim); }
.form input, .form textarea, .form select {
  font: 400 16px/1.4 var(--body); color: var(--text); background: rgba(255,255,255,.03); border: 1px solid var(--line-2);
  border-radius: var(--r); padding: 13px 14px; width: 100%; transition: border-color .2s, background .2s;
}
.form textarea { min-height: 140px; resize: vertical; }
.form input:focus, .form textarea:focus { outline: none; border-color: var(--blue); background: rgba(91,178,233,.05); }
.form .row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.form .hp { position: absolute; left: -9999px; }
.form-note { font-size: 13px; color: var(--dim); margin: 0; }
.form-msg { padding: 12px 14px; border-radius: var(--r); font-size: 14px; display: none; }
.form-msg.ok { display: block; background: rgba(61,220,132,.1); border: 1px solid rgba(61,220,132,.4); color: var(--green); }
.form-msg.err { display: block; background: rgba(255,90,60,.1); border: 1px solid rgba(255,90,60,.4); color: var(--red); }
@media (max-width: 800px) { .contact-grid { grid-template-columns: 1fr; } .form .row { grid-template-columns: 1fr; } }

/* ==========================================================================
   Footer
   ========================================================================== */
.site-foot { border-top: 1px solid var(--line); padding: 64px 0 28px; background: var(--bg); }
.foot-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 40px; margin-bottom: 48px; }
.foot-brand img { width: 120px; margin-bottom: 18px; }
.foot-brand p { color: var(--muted); font-size: 14.5px; max-width: 34ch; }
.site-foot h4 { font: 500 11px/1 var(--mono); letter-spacing: .2em; text-transform: uppercase; color: var(--dim); margin-bottom: 18px; }
.site-foot ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.site-foot li a { color: var(--muted); font-size: 14.5px; transition: color .2s; }
.site-foot li a:hover { color: var(--text); }
.foot-base { display: flex; justify-content: space-between; gap: 20px; flex-wrap: wrap; padding-top: 22px; border-top: 1px solid var(--line); font: 400 12px/1.5 var(--mono); color: var(--dim); letter-spacing: .06em; }
@media (max-width: 800px) { .foot-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 480px) { .foot-grid { grid-template-columns: 1fr; } }

/* ==========================================================================
   Products index + product page
   ========================================================================== */
.page-hero { position: relative; padding: 160px 0 60px; overflow: hidden; isolation: isolate; }
.page-hero::before { content: ''; position: absolute; inset: 0; z-index: -1; background: radial-gradient(70% 60% at 70% 0%, rgba(91,178,233,.14), transparent 60%); }
.crumbs { display: flex; gap: 10px; font: 400 12px/1 var(--mono); color: var(--dim); letter-spacing: .1em; text-transform: uppercase; margin-bottom: 26px; }
.crumbs a:hover { color: var(--blue); }
.page-hero h1 { font-size: clamp(30px, 4.4vw, 62px); text-transform: uppercase; line-height: 1.05; margin-bottom: 20px; font-weight: 800; }

/* primerjalna tabela: na lastni podlagi, da se ne tepe z mrežastim ozadjem */
.compare { width: 100%; border-collapse: collapse; font-size: 14.5px; }
.compare th, .compare td { padding: 14px; text-align: left; vertical-align: middle; border: 0; }
.compare thead th { font: 500 11px/1 var(--mono); letter-spacing: .18em; text-transform: uppercase; color: var(--dim); border-bottom: 1px solid var(--line-2); }
.compare tbody tr:nth-child(even) { background: rgba(255,255,255,.025); }
.compare tbody tr:hover { background: rgba(91,178,233,.06); }
.compare td:first-child a { font-family: var(--head); font-weight: 600; font-size: 13px; }
.compare td:first-child a:hover { color: var(--blue); }
.compare .yes { color: var(--green); font-family: var(--mono); }
.compare .no { color: var(--dim); font-family: var(--mono); }
.compare-scroll {
  overflow-x: auto; background: var(--bg-2); border: 1px solid var(--line);
  border-radius: var(--r); padding: 8px 10px;
}

/* product page */
.product-hero { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(24px, 5vw, 80px); align-items: center; }
.product-visual { position: relative; aspect-ratio: 1 / 1; display: grid; place-items: center; }
.product-visual::before { content: ''; position: absolute; inset: 8%; border-radius: 50%; background: radial-gradient(closest-side, rgba(91,178,233,.3), rgba(91,178,233,.05) 60%, transparent 75%); filter: blur(24px); }
.product-visual::after { content: ''; position: absolute; inset: 0; border-radius: 50%; border: 1px dashed rgba(91,178,233,.18); animation: spin 60s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.product-visual { min-height: 0; }
.product-visual img {
  position: absolute; left: 9%; top: 9%; width: 82%; height: 82%; object-fit: contain;
  z-index: 1; filter: drop-shadow(0 40px 60px rgba(0,0,0,.7)); animation: float 8s ease-in-out infinite;
}
.product-copy .cat { font: 500 12px/1 var(--mono); letter-spacing: .2em; text-transform: uppercase; color: var(--blue); margin-bottom: 18px; display: block; }
.product-copy h1 { font-size: clamp(30px, 4vw, 56px); margin-bottom: 20px; font-weight: 800; }
.product-copy .badges { margin: 0 0 24px; }
.product-copy .lead { margin-bottom: 30px; }
.product-copy .hero-cta { gap: 12px; }
@media (max-width: 800px) { .product-hero { grid-template-columns: 1fr; } .product-visual { max-width: 460px; margin: 0 auto; } }

.plates { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin-top: 8px; }
.plate { padding: 22px 22px 20px; border: 1px solid var(--line); border-left: 2px solid var(--blue); border-radius: var(--r); background: linear-gradient(180deg, rgba(255,255,255,.03), transparent); }
.plate span { display: block; font: 500 11px/1 var(--mono); letter-spacing: .16em; text-transform: uppercase; color: var(--dim); margin-bottom: 10px; }
.plate b { font: 600 15px/1.35 var(--head); color: var(--text); }
@media (max-width: 800px) { .plates { grid-template-columns: 1fr 1fr; } }
@media (max-width: 500px) { .plates { grid-template-columns: 1fr; } }

.about-grid { display: grid; grid-template-columns: 1fr 1.4fr; gap: clamp(28px, 5vw, 80px); align-items: start; }
.about-grid p { color: var(--muted); font-size: clamp(16px, 1.3vw, 19px); }
@media (max-width: 800px) { .about-grid { grid-template-columns: 1fr; } }

.specs details { border-top: 1px solid var(--line); }
.specs details:last-child { border-bottom: 1px solid var(--line); }
.specs summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 20px; padding: 20px 4px; font: 600 16px/1.3 var(--body); transition: color .2s; }
.specs summary::-webkit-details-marker { display: none; }
.specs summary::after { content: '+'; font: 400 22px/1 var(--mono); color: var(--blue); transition: transform .3s; flex: none; }
.specs details[open] summary::after { transform: rotate(45deg); }
.specs summary:hover { color: var(--blue); }
.specs .v { padding: 0 4px 22px; color: var(--muted); font-size: 15px; max-width: 80ch; }
.specs .v br { display: block; content: ''; margin-bottom: 6px; }
.spec-tools { display: flex; gap: 10px; margin-bottom: 8px; }
.spec-tools button { background: none; border: 1px solid var(--line-2); color: var(--muted); font: 500 11px/1 var(--mono); letter-spacing: .12em; text-transform: uppercase; padding: 9px 12px; border-radius: 4px; cursor: pointer; }
.spec-tools button:hover { border-color: var(--blue); color: var(--blue); }

.pager { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.pager a { display: flex; flex-direction: column; gap: 6px; padding: 24px 26px; border: 1px solid var(--line); border-radius: var(--r); transition: border-color .3s, background .3s; }
.pager a:hover { border-color: rgba(91,178,233,.45); background: rgba(91,178,233,.04); }
.pager a.next { text-align: right; align-items: flex-end; }
.pager span { font: 500 11px/1 var(--mono); letter-spacing: .18em; text-transform: uppercase; color: var(--dim); }
.pager b { font: 600 15px/1.3 var(--head); }
@media (max-width: 560px) { .pager { grid-template-columns: 1fr; } }

/* --- pravne strani --- */
.legal { max-width: 74ch; }
.legal h2 { font-size: clamp(18px, 2vw, 24px); margin: 40px 0 12px; }
.legal h2:first-child { margin-top: 0; }
.legal p { color: var(--muted); }
.legal a { color: var(--blue); }
.legal b { color: var(--text); font-weight: 600; }

/* 404 */
.notfound { min-height: 100svh; display: grid; place-items: center; text-align: center; padding: 120px 0 60px; }
.notfound h1 { font-size: clamp(80px, 20vw, 220px); line-height: .9; color: transparent; -webkit-text-stroke: 2px rgba(238,242,246,.5); }

/* ==========================================================================
   v3 — capability legend, families, plate media, spec rows, subnav
   ========================================================================== */

/* --- capability legend: kompaktna vrstica (ne cela sekcija) --- */
.legend-bar {
  display: flex; flex-wrap: wrap; align-items: center; gap: 8px 20px;
  margin-top: 28px; padding: 16px 20px; border: 1px solid var(--line); border-radius: var(--r);
  background: rgba(255,255,255,.02);
}
.legend-bar .legend-t { font: 500 12px/1.4 var(--mono); letter-spacing: .1em; text-transform: uppercase; color: var(--dim); margin-right: 6px; }
.legend-bar .lg { display: inline-flex; align-items: center; gap: 8px; font-size: 13.5px; color: var(--muted); white-space: nowrap; }
.legend-bar .lg b {
  display: inline-grid; place-items: center; width: 24px; height: 24px;
  font: 700 13px/1 var(--head); color: var(--blue); border: 1px solid rgba(91,178,233,.45);
  border-radius: 4px; background: rgba(91,178,233,.08);
}
.legend-bar .lg.x b { color: #04101a; background: var(--blue); border-color: var(--blue); }
@media (max-width: 700px) { .legend-bar { gap: 8px 14px; padding: 14px 16px; } .legend-bar .lg { font-size: 12.5px; } }

/* --- family tiles --- */
.fams { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.fam {
  position: relative; display: flex; flex-direction: column; border: 1px solid var(--line); border-radius: var(--r);
  background: linear-gradient(180deg, var(--bg-3), var(--bg-2)); overflow: hidden; isolation: isolate;
  transition: transform .5s var(--ease), border-color .4s, box-shadow .5s;
}
.fam::before {
  content: ''; position: absolute; inset: 0; z-index: -1; opacity: .55; transition: opacity .5s;
  background: radial-gradient(70% 45% at 50% 30%, rgba(91,178,233,.18), transparent 70%);
}
.fam-media { height: 210px; display: flex; align-items: center; justify-content: center; padding: 22px 22px 0; }
.fam-media img { max-height: 100%; width: auto; max-width: 78%; object-fit: contain; filter: drop-shadow(0 18px 26px rgba(0,0,0,.55)); transition: transform .7s var(--ease); }
.fam-body { padding: 20px 24px 24px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.fam-count { font: 500 11px/1 var(--mono); letter-spacing: .18em; text-transform: uppercase; color: var(--blue); }
.fam h3 { font-size: 18px; }
.fam p { color: var(--muted); font-size: 14.5px; margin: 0; flex: 1; }
.fam-codes { display: inline-flex; gap: 5px; margin-top: 12px; }
.fam-codes b {
  display: inline-grid; place-items: center; min-width: 22px; height: 22px; padding: 0 5px;
  font: 700 11px/1 var(--head); color: var(--blue); border: 1px solid rgba(91,178,233,.4);
  border-radius: 4px; background: rgba(91,178,233,.07);
}
.fam .go { position: absolute; right: 20px; bottom: 20px; width: 36px; height: 36px; border-radius: 50%; border: 1px solid var(--line-2); display: grid; place-items: center; transition: background .3s, border-color .3s, transform .3s; }
.fam .go svg { width: 14px; height: 14px; }
.fam:hover { transform: translateY(-6px); border-color: rgba(91,178,233,.45); box-shadow: 0 30px 60px -30px rgba(0,0,0,.8); }
.fam:hover::before { opacity: 1; }
.fam:hover .fam-media img { transform: scale(1.06) translateY(-4px); }
.fam:hover .go { background: var(--blue); border-color: var(--blue); color: #04101a; transform: rotate(-45deg); }
.fam .fam-body { padding-right: 68px; }
@media (max-width: 900px) { .fams { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) {
  .fams { grid-template-columns: 1fr; gap: 12px; }
  .fam { flex-direction: row; align-items: center; }
  .fam-media { width: 116px; height: auto; min-height: 116px; flex: none; padding: 12px 0 12px 12px; }
  .fam-media img { max-width: 100%; max-height: 116px; }
  .fam-body, .fam .fam-body { padding: 14px 46px 14px 14px; }
  .fam h3 { font-size: 16px; }
  .fam p { font-size: 13px; }
  .fam .go { right: 12px; bottom: auto; top: 50%; transform: translateY(-50%); width: 30px; height: 30px; }
  .fam:hover .go { transform: translateY(-50%) rotate(-45deg); }
}

/* --- koda zmožnosti na kartici (temna, kot ostala UI) --- */
.pcard-media .code {
  position: absolute; left: 14px; top: 14px; font: 600 11px/1 var(--mono); letter-spacing: .14em;
  color: var(--blue); background: rgba(5,8,13,.65); border: 1px solid rgba(91,178,233,.35);
  backdrop-filter: blur(6px); padding: 6px 9px; border-radius: 3px;
}
/* kartice brez foot vrstice: puščica v kot */
.pcard > .go { position: absolute; right: 18px; bottom: 18px; z-index: 1; }
.pcard .pcard-body { padding-bottom: 22px; padding-right: 64px; }

/* --- product page: plate visual --- */
.product-visual.plate::before, .product-visual.plate::after { display: none; }
.product-visual.plate img { width: 100%; border-radius: var(--r); animation: none; filter: none; }

/* --- metric plates (big value) --- */
.plate .big { display: block; font: 700 clamp(24px, 2.6vw, 38px)/1.1 var(--head); color: var(--text); margin-bottom: 10px; }
.plate .big + span { margin-bottom: 0; }

/* --- legenda: kombinirani SDJP element (namesto samostojnega X) --- */
.legend-bar .lg.combo b { width: 20px; height: 20px; font-size: 11px; border-radius: 3px; margin-right: -4px; }
.legend-bar .lg.combo b:last-of-type { margin-right: 2px; }
.legend-bar .lg.combo .eq { color: var(--muted); }

/* --- subnav (families) --- */
.subnav { position: sticky; top: 63px; z-index: 40; background: rgba(5,8,13,.82); backdrop-filter: blur(14px); border-block: 1px solid var(--line); }
.subnav-track { display: flex; gap: 4px; overflow-x: auto; padding: 10px 0; scrollbar-width: none; }
.subnav-track::-webkit-scrollbar { display: none; }
.subnav-track a {
  flex: none; padding: 9px 14px; border-radius: 999px; font: 500 13px/1 var(--body);
  color: var(--muted); border: 1px solid transparent; transition: color .2s, border-color .2s, background .2s;
}
.subnav-track a:hover { color: var(--text); background: rgba(255,255,255,.05); }
.subnav-track a.cmp { margin-left: auto; color: var(--blue); border-color: rgba(91,178,233,.35); display: inline-flex; align-items: center; gap: 8px; }
.subnav-track a.cmp svg { width: 13px; height: 13px; }
.fam-sec { scroll-margin-top: 120px; padding: clamp(44px, 5vw, 68px) 0; }
.fam-sec h2 { font-size: clamp(22px, 2.6vw, 34px); text-transform: uppercase; }
.fam-sec .fam-lead { color: var(--muted); font-size: 15px; margin: 10px 0 0; max-width: 58ch; }
.fam-sec .section-head { margin-bottom: clamp(24px, 3vw, 36px); }
.count-tag { font: 500 12px/1 var(--mono); letter-spacing: .16em; text-transform: uppercase; color: var(--dim); border: 1px solid var(--line); padding: 9px 12px; border-radius: 999px; white-space: nowrap; }
#compare { scroll-margin-top: 120px; }

/* --- spec rows (data plate) --- */
.spec-rows { margin: 0; border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; }
.spec-row { display: grid; grid-template-columns: minmax(200px, 1fr) 2.2fr; border-top: 1px solid var(--line); }
.spec-row:first-child { border-top: 0; }
.spec-row dt {
  font: 500 12px/1.5 var(--mono); letter-spacing: .08em; text-transform: uppercase; color: var(--blue);
  background: rgba(255,255,255,.025); padding: 15px 18px; border-right: 1px solid var(--line);
}
.spec-row dd { margin: 0; padding: 14px 18px; font-size: 15px; color: var(--text); }
@media (max-width: 640px) {
  .spec-row { grid-template-columns: 1fr; }
  .spec-row dt { border-right: 0; padding-bottom: 6px; background: none; }
  .spec-row dd { padding-top: 0; color: var(--muted); }
}

/* --- razsirljiva polna specifikacija --- */
.full-specs { margin-top: 14px; }
.full-specs summary {
  list-style: none; cursor: pointer; display: flex; align-items: center; justify-content: space-between;
  gap: 16px; padding: 16px 18px; border: 1px solid var(--line-2); border-radius: var(--r);
  font: 600 13px/1 var(--head); letter-spacing: .08em; text-transform: uppercase; color: var(--text);
  background: rgba(255,255,255,.02); transition: border-color .25s, color .25s, background .25s;
}
.full-specs summary::-webkit-details-marker { display: none; }
.full-specs summary svg { width: 15px; height: 15px; color: var(--blue); transform: rotate(90deg); transition: transform .3s; flex: none; }
.full-specs summary:hover { border-color: var(--blue); color: var(--blue); }
.full-specs[open] summary { border-color: var(--blue); border-bottom-left-radius: 0; border-bottom-right-radius: 0; }
.full-specs[open] summary svg { transform: rotate(-90deg); }
.full-specs .spec-rows { border-top: 0; border-top-left-radius: 0; border-top-right-radius: 0; }

/* --- benefits + notes --- */
.benefits { list-style: none; margin: 28px 0 0; padding: 0; display: grid; gap: 12px; }
.benefits li { display: flex; gap: 12px; align-items: flex-start; font-size: 15px; color: var(--text); }
.benefits svg { width: 18px; height: 18px; color: var(--green); flex: none; margin-top: 2px; }
.note { font-size: 14px; color: var(--dim); border-left: 2px solid var(--line-2); padding-left: 14px; }
.table-note { font-size: 13px; color: var(--dim); margin: 18px 0 0; max-width: 90ch; }
.compare .fam-cell { color: var(--dim); font-size: 13px; }

/* --- solutions: arhitekturni diagram (kot v katalogu) --- */
.arch { max-width: 860px; margin: 0 auto; display: flex; flex-direction: column; align-items: center; }
.arch-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; width: 100%; }
.arch-box {
  background: var(--bg-3); border: 1px solid var(--line-2); border-radius: var(--r);
  padding: 18px 12px; text-align: center; font: 600 14px/1.3 var(--head); letter-spacing: .04em;
}
.arch-lines { display: grid; grid-template-columns: repeat(3, 1fr); width: 100%; height: 34px; }
.arch-lines i { justify-self: center; width: 1px; background: linear-gradient(180deg, var(--line-2), var(--blue)); }
.arch-hub {
  width: min(420px, 100%); text-align: center; padding: 22px 16px; border-radius: var(--r);
  background: var(--blue); color: #04101a; font: 700 20px/1.2 var(--head);
  box-shadow: 0 18px 50px -18px var(--blue-glow);
}
.arch-line { width: 1px; height: 34px; background: linear-gradient(180deg, var(--blue), var(--line-2)); }
.arch-out { font: 600 15px/1.4 var(--body); color: var(--text); text-align: center; border: 1px dashed var(--line-2); border-radius: var(--r); padding: 14px 22px; }
.arch-note { text-align: center; margin-left: auto; margin-right: auto; }
.sw-arch { margin-bottom: clamp(40px, 5vw, 64px); }
.solution { scroll-margin-top: 92px; }
@media (max-width: 560px) { .arch-box { font-size: 12px; padding: 14px 8px; } .arch-hub { font-size: 17px; } }

/* ==========================================================================
   Reveal + motion
   ========================================================================== */
.js .rv { opacity: 0; transform: translateY(28px); transition: opacity .9s var(--ease), transform 1s var(--ease); transition-delay: calc(var(--i, 0) * 90ms); }
.js .rv.in { opacity: 1; transform: none; }
.js .rv-scale { opacity: 0; transform: scale(.96); transition: opacity .9s var(--ease), transform 1.1s var(--ease); }
.js .rv-scale.in { opacity: 1; transform: none; }
.cursor-glow { position: fixed; z-index: 0; width: 600px; height: 600px; border-radius: 50%; pointer-events: none; left: 0; top: 0; transform: translate(-50%, -50%); background: radial-gradient(closest-side, rgba(91,178,233,.07), transparent); opacity: 0; transition: opacity .6s; }
.js .cursor-glow.on { opacity: 1; }
main { position: relative; z-index: 1; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001s !important; animation-iteration-count: 1 !important; transition-duration: .001s !important; }
  .js .rv, .js .rv-scale { opacity: 1; transform: none; }
  .hero-bg img { animation: none; }
  html { scroll-behavior: auto; }
}
