/* Crogura, dizajn prema referenci Crogura Web.dc.html
   Fontovi: Manrope varijabilni, samostalno posluženi (latin + latin-ext) */

@font-face {
  font-family: "Manrope";
  font-style: normal;
  font-weight: 400 800;
  font-display: swap;
  src: url("../fonts/manrope-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Manrope";
  font-style: normal;
  font-weight: 400 800;
  font-display: swap;
  src: url("../fonts/manrope-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  --ink: #12324E;
  --muted: #5C6E7E;
  --muted-2: #3D5262;
  --navy-deep: #0A1C2A;
  --navy: #0C2233;
  --navy-hero: #123A52;
  --bg: #F5F8FA;
  --bg-2: #EEF2F5;
  --line: #E3EAEE;
  --line-2: #EDF2F4;
  --field-line: #D8E0E5;
  --teal: #2BB5A0;
  --teal-light: #57C9B6;
  --teal-ink: #06231F;
  --teal-deep: #0F6B55;
  --blue: #4A9FD8;
  --lime: #9CCB4E;
  --red-soft: #E8A0A0;
  --on-navy: #F2F7F8;
  --on-navy-soft: rgba(226, 240, 242, 0.75);
  --on-navy-mut: rgba(226, 240, 242, 0.62);
  --shadow-card: 0 2px 10px rgba(18, 50, 78, 0.06);
  --shadow-pop: 0 30px 80px rgba(0, 0, 0, 0.45);
  --r: 14px;
  --shell: 1240px;
  --mono: ui-monospace, Menlo, "SF Mono", Consolas, monospace;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: "Manrope", "Helvetica Neue", Helvetica, Arial, sans-serif;
  background: var(--bg);
  color: var(--ink);
  font-size: 17px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img { max-width: 100%; display: block; }
a { color: var(--teal); text-decoration: none; }
a:hover { color: var(--teal-light); }

.shell { max-width: var(--shell); margin: 0 auto; padding: 0 28px; }
.mono { font-family: var(--mono); }
.soft { color: var(--muted); font-weight: 600; }

h1, h2, h3 { text-wrap: balance; }
h2 { font-size: clamp(32px, 4vw, 44px); font-weight: 800; letter-spacing: -1px; margin-bottom: 14px; }
.lead { font-size: 19px; color: var(--muted); font-weight: 600; max-width: 680px; margin-bottom: 46px; text-wrap: pretty; }
.lead-sm { margin-bottom: 30px; font-size: 17px; }
p { text-wrap: pretty; }

.kicker {
  font-family: var(--mono);
  font-size: 13px; letter-spacing: 2px; font-weight: 700;
  display: block; margin-bottom: 16px; text-transform: uppercase;
}
.kicker-teal { color: var(--teal); }
.kicker-red { color: var(--red-soft); }
.kicker-mut { color: var(--muted); letter-spacing: 1.5px; font-size: 12.5px; }

/* ---------- Gumbi ---------- */
.btn {
  display: inline-block; cursor: pointer; text-align: center;
  font-family: inherit; font-weight: 800; border-radius: 9px;
  border: none; white-space: nowrap;
  transition: background 0.15s ease, border-color 0.15s ease, transform 0.1s ease;
}
.btn:active { transform: translateY(1px); }
.btn-accent { background: var(--teal); color: var(--teal-ink); font-size: 15.5px; padding: 11px 20px; }
.btn-accent:hover { background: var(--teal-light); color: var(--teal-ink); }
.btn-ghost { border: 2px solid rgba(255, 255, 255, 0.28); color: var(--on-navy); font-weight: 700; background: transparent; }
.btn-ghost:hover { border-color: rgba(255, 255, 255, 0.6); color: #fff; }
.btn-lg { font-size: 17px; padding: 14px 24px; }
.btn-ghost.btn-lg { padding: 12px 22px; }
.btn-outline { border: 2px solid var(--ink); color: var(--ink); background: transparent; font-size: 16px; font-weight: 800; padding: 11px 22px; border-radius: 8px; }
.btn-outline:hover { background: var(--ink); color: #fff; }

/* ---------- Zaglavlje ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(10, 28, 42, 0.96);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}
.header-inner { display: flex; align-items: center; gap: 26px; height: 74px; }
.brand { display: flex; align-items: center; gap: 11px; color: var(--on-navy); }
.brand:hover { color: #fff; }
.brand span { font-size: 22px; font-weight: 800; letter-spacing: -0.3px; }
.main-nav { display: flex; gap: 18px; font-size: 15.5px; font-weight: 600; white-space: nowrap; align-items: center; }
.main-nav a { color: rgba(235, 246, 246, 0.78); }
.main-nav a:hover { color: #fff; }
.lang-switch {
  font-family: var(--mono); font-size: 13px; letter-spacing: 1px;
  border: 1.5px solid rgba(255, 255, 255, 0.25); border-radius: 6px; padding: 4px 9px;
}
.header-cta { margin-left: auto; flex-shrink: 0; }
.nav-toggle { display: none; margin-left: auto; background: none; border: 1px solid rgba(255, 255, 255, 0.25); border-radius: 8px; padding: 8px 10px; cursor: pointer; }
.nav-toggle span { display: block; width: 22px; height: 2px; background: var(--on-navy); margin: 5px 0; }

/* ---------- Hero ---------- */
.hero {
  background: radial-gradient(1100px 700px at 28% 30%, var(--navy-hero) 0%, #0C2233 62%);
  padding: 96px 0 90px;
  color: var(--on-navy);
  overflow: hidden;
}
.hero-grid { display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 64px; align-items: center; }
.hero .kicker { margin-bottom: 22px; letter-spacing: 2.5px; font-size: 14px; color: var(--teal-light); }
.hero h1 { font-size: clamp(40px, 5vw, 66px); line-height: 1.06; letter-spacing: -1.8px; font-weight: 800; }
.hero-sub { margin-top: 26px; font-size: 21px; line-height: 1.55; color: rgba(226, 240, 242, 0.82); max-width: 540px; }
.hero-ctas { display: flex; gap: 14px; margin-top: 38px; flex-wrap: wrap; }
.hero-trust { margin-top: 34px; font-size: 13.5px; color: rgba(226, 240, 242, 0.55); letter-spacing: 0.4px; }

.hero-visual { position: relative; min-height: 560px; }
.hero-photo {
  position: absolute; right: 0; top: 10px; width: 88%; height: 500px;
  border-radius: 16px; overflow: hidden;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.35);
}
.hero-photo img { width: 100%; height: 100%; object-fit: cover; }
.hero-photo::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(200deg, rgba(12, 34, 51, 0) 45%, rgba(12, 34, 51, 0.45) 100%);
}
.hero-photo-fallback { background: linear-gradient(160deg, #1A4059, #0C2233 70%); }

.atest-card {
  position: absolute; left: 0; bottom: 24px; width: 340px;
  background: #fff; color: var(--ink);
  border-radius: var(--r); box-shadow: var(--shadow-pop);
  padding: 22px 24px;
}
.atest-kicker { font-size: 12px; letter-spacing: 1.5px; color: var(--muted); font-weight: 600; }
.atest-row { display: flex; justify-content: space-between; align-items: center; margin-top: 10px; }
.atest-row span { font-size: 15px; color: var(--muted); font-weight: 600; }
.atest-row strong { font-size: 17px; font-weight: 700; }
.badge-pass {
  font-style: normal; background: #DCFCE7; color: #15803D;
  font-size: 14px; font-weight: 800; padding: 3px 12px; border-radius: 99px;
}
.atest-foot { margin-top: 16px; padding-top: 14px; border-top: 1.5px solid var(--line-2); font-size: 14.5px; font-weight: 700; color: var(--teal-deep); }

/* Ulazna animacija kartice ateста */
.js .atest-card > * { opacity: 0; transform: translateY(10px); animation: aRow 0.5s ease forwards; }
.js .atest-card .a1 { animation-delay: 0.5s; }
.js .atest-card .a2 { animation-delay: 0.75s; }
.js .atest-card .a3 { animation-delay: 1s; }
.js .atest-card .a4 { animation-delay: 1.25s; }
.js .atest-card .a5 { animation-delay: 1.6s; }
.js .atest-card .atest-kicker { animation-delay: 0.3s; }
@keyframes aRow { to { opacity: 1; transform: none; } }

/* ---------- Statistička traka ---------- */
.stat-band { background: #fff; border-bottom: 1px solid var(--line); }
.stat-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 28px; padding-top: 34px; padding-bottom: 34px; }
.stat-n { font-size: 34px; font-weight: 800; letter-spacing: -0.5px; }
.stat-t { font-size: 15.5px; color: var(--muted); font-weight: 600; margin-top: 4px; }

/* ---------- Sekcije ---------- */
.sec { padding: 96px 0; }
.sec-white { background: #fff; }
.sec-gray { background: var(--bg-2); }
.sec-bg { background: var(--bg); }
.sec-navy { background: var(--navy); color: var(--on-navy); }
.sec-navy h2 { color: var(--on-navy); }
.sec-navy .lead { color: var(--on-navy-mut); }

.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }

.card { background: #fff; border-radius: var(--r); padding: 30px; box-shadow: var(--shadow-card); }
.card h3 { font-size: 22px; font-weight: 800; margin-bottom: 12px; }
.card p { font-size: 18.5px; line-height: 1.55; }
.card p.soft { font-size: 17px; line-height: 1.6; color: var(--muted-2); font-weight: 400; }

/* Moduli */
.mod-card {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--r); padding: 32px;
  transition: border-color 0.2s ease, background 0.2s ease;
}
.mod-card:hover { border-color: rgba(255, 255, 255, 0.25); background: rgba(255, 255, 255, 0.07); }
.mod-card h3 { font-size: 24px; font-weight: 800; color: var(--on-navy); }
.mod-card p { margin-top: 12px; font-size: 17px; line-height: 1.6; color: var(--on-navy-soft); }
.diamond { display: block; width: 14px; height: 14px; transform: rotate(45deg); border-radius: 3px; margin-bottom: 20px; }
.d-teal { background: var(--teal); }
.d-blue { background: var(--blue); }
.d-lime { background: var(--lime); }

/* Video: značajke lijevo, video desno, bez kontrola */
.sec-video { background: #fff; padding: 88px 0; }
.video-grid { display: grid; grid-template-columns: 0.95fr 1.05fr; gap: 64px; align-items: center; }
.video-copy h2 { font-size: clamp(28px, 3.2vw, 38px); letter-spacing: -0.8px; margin-bottom: 28px; }
.feat-list { list-style: none; display: grid; gap: 22px; }
.feat-list li { position: relative; padding-left: 30px; }
.feat-list li::before {
  content: ""; position: absolute; left: 2px; top: 7px;
  width: 12px; height: 12px; background: var(--teal);
  transform: rotate(45deg); border-radius: 3px;
}
.feat-list h3 { font-size: 18.5px; font-weight: 800; margin-bottom: 4px; }
.feat-list p { font-size: 16.5px; line-height: 1.55; color: var(--muted-2); }
.video-box {
  position: relative;
  border-radius: var(--r); overflow: hidden;
  border: 1px solid var(--line);
  box-shadow: 0 16px 48px rgba(18, 50, 78, 0.16);
  background: #082B38;
}
.video-box video { display: block; width: 100%; height: auto; aspect-ratio: 16 / 9; }

/* Kako radi */
.steps { gap: 30px; margin-bottom: 60px; }
.step { border-top: 3px solid var(--teal); padding-top: 24px; }
.step-n { font-size: 52px; font-weight: 800; color: #C9D6DE; line-height: 1; }
.step p { margin-top: 14px; font-size: 18.5px; line-height: 1.55; }

.screenshot { margin: 0; border-radius: var(--r); overflow: hidden; box-shadow: 0 20px 60px rgba(18, 50, 78, 0.18); border: 1px solid var(--line); background: #fff; }
.browser-chrome { display: flex; align-items: center; gap: 7px; background: #0E2638; padding: 12px 16px; }
.browser-chrome > span { width: 11px; height: 11px; border-radius: 50%; background: rgba(255, 255, 255, 0.18); }
.browser-url { margin-left: 12px; font-size: 12.5px; color: rgba(235, 246, 246, 0.55); background: rgba(255, 255, 255, 0.07); border-radius: 6px; padding: 4px 14px; letter-spacing: 0.4px; }
.screenshot img { width: 100%; height: auto; }
.screenshot figcaption { padding: 20px 24px 22px; font-size: 16px; color: var(--muted-2); border-top: 1px solid var(--line-2); }
.screenshot figcaption .kicker { margin-bottom: 8px; }

/* Cijeli asortiman */
.sortiman { margin-top: 44px; text-align: center; }
.sortiman > .kicker { margin-bottom: 18px; }
.sortiman-pills { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; max-width: 900px; margin: 0 auto; }
.pill {
  font-size: 15px; font-weight: 700; color: var(--muted-2);
  border: 1.5px solid var(--line); border-radius: 99px; padding: 7px 18px;
  transition: border-color 0.15s ease, color 0.15s ease;
}
.pill:hover { border-color: var(--teal); color: var(--ink); }
.sortiman-note { margin-top: 18px; font-size: 12.5px; color: var(--steel-2, #7d8790); letter-spacing: 0.3px; }

/* Cijeli krug nabave */
.krug { list-style: none; display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.krug-step {
  position: relative; display: flex; flex-direction: column; gap: 8px;
  background: rgba(255, 255, 255, 0.05); border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px; padding: 20px;
}
.krug-step::after {
  content: ""; position: absolute; right: -14px; top: 50%; z-index: 1;
  width: 9px; height: 9px; margin-top: -5px;
  border-top: 2px solid rgba(87, 201, 182, 0.6); border-right: 2px solid rgba(87, 201, 182, 0.6);
  transform: rotate(45deg);
}
.krug-step:nth-child(4n)::after, .krug-step:last-child::after { display: none; }
.krug-n { font-size: 12px; letter-spacing: 1.5px; color: var(--teal-light); font-weight: 700; }
.krug-t { font-size: 17px; font-weight: 800; color: var(--on-navy); line-height: 1.3; }
.krug-badge {
  align-self: flex-start; margin-top: auto;
  font-size: 10.5px; letter-spacing: 1.2px; font-weight: 700;
  padding: 4px 9px; border-radius: 5px;
}
.b-sam { background: rgba(43, 181, 160, 0.16); color: var(--teal-light); border: 1px solid rgba(43, 181, 160, 0.4); }
.b-vi { background: rgba(255, 255, 255, 0.09); color: var(--on-navy); border: 1px solid rgba(255, 255, 255, 0.32); }
.krug-note { margin-top: 30px; font-size: 15.5px; color: var(--on-navy-mut); max-width: 760px; line-height: 1.6; }

/* Ljestvica */
.ladder { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; align-items: end; }
.rung { background: #fff; border-radius: 12px; padding: 24px; box-shadow: var(--shadow-card); }
.rung .kicker { margin-bottom: 10px; letter-spacing: 1.5px; }
.rung p { font-size: 17px; line-height: 1.5; font-weight: 600; }
.rung.r2 { padding-bottom: 44px; }
.rung.r3 { padding-bottom: 64px; }
.rung.r4 { padding-bottom: 84px; background: var(--navy); }
.rung.r4 p { color: var(--on-navy); font-weight: 700; }

/* Fotografska traka */
.photo-strip { height: 260px; position: relative; overflow: hidden; }
.photo-strip img { width: 100%; height: 100%; object-fit: cover; }
.photo-strip::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(12, 34, 51, 0.35), rgba(12, 34, 51, 0.1) 40%, rgba(12, 34, 51, 0.35)); }

/* Sigurnost */
.sig-grid { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: 60px; }
.sig-grid .lead { margin-bottom: 0; line-height: 1.6; }
.sig-item { display: flex; gap: 22px; padding: 18px 0; border-bottom: 1.5px solid var(--line-2); }
.sig-item:last-child { border-bottom: none; }
.sig-n { font-size: 17px; font-weight: 700; color: var(--teal); flex-shrink: 0; }
.sig-item p { font-size: 18px; font-weight: 600; }

/* Pilot */
.pm { border-left: 3px solid var(--teal); padding: 4px 0 4px 24px; }
.pm-n { font-size: clamp(30px, 3.6vw, 44px); font-weight: 800; color: var(--teal-light); letter-spacing: -1px; white-space: nowrap; }
.pm p { margin-top: 8px; font-size: 16.5px; line-height: 1.5; color: rgba(226, 240, 242, 0.8); }
.pilot-note { margin-top: 44px; border-top: 1px solid rgba(255, 255, 255, 0.12); padding-top: 22px; font-size: 16.5px; color: var(--on-navy-mut); font-weight: 600; }

/* Baza znanja */
.znanje-grid { display: grid; grid-template-columns: 1fr 1.05fr; gap: 22px; align-items: stretch; }

/* Razgovor s arhivom */
.chat-card {
  background: var(--bg-2); border: 1px solid var(--line);
  border-radius: var(--r); padding: 28px;
  display: flex; flex-direction: column; gap: 14px;
}
.chat-card .kicker { margin-bottom: 6px; }
.chat-q {
  align-self: flex-end; max-width: 85%;
  background: var(--navy-hero); color: var(--on-navy);
  font-size: 16px; font-weight: 600; line-height: 1.5;
  padding: 12px 18px; border-radius: 16px 16px 4px 16px;
}
.chat-a {
  align-self: flex-start; max-width: 90%;
  background: #fff; border: 1px solid var(--line);
  padding: 14px 18px; border-radius: 16px 16px 16px 4px;
  box-shadow: var(--shadow-card);
}
.chat-a p { font-size: 16px; line-height: 1.55; }
.chat-meta { display: flex; gap: 10px; margin-top: 12px; flex-wrap: wrap; align-items: center; }
.chat-doc {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 12px; color: #2E6FBF; font-weight: 600;
  background: rgba(74, 159, 216, 0.12); border: 1px solid rgba(74, 159, 216, 0.35);
  padding: 4px 10px; border-radius: 6px;
}
.chat-badge {
  font-size: 12.5px; font-weight: 800; color: #15803D;
  background: #DCFCE7; padding: 4px 11px; border-radius: 99px;
}
.js .chat-card .chat-q, .js .chat-card .chat-a { opacity: 0; transform: translateY(10px); transition: opacity 0.45s ease, transform 0.45s ease; }
.js .chat-card.visible .cq1 { transition-delay: 0.15s; }
.js .chat-card.visible .ca1 { transition-delay: 0.55s; }
.js .chat-card.visible .cq2 { transition-delay: 1.05s; }
.js .chat-card.visible .ca2 { transition-delay: 1.45s; }
.js .chat-card.visible .chat-q, .js .chat-card.visible .chat-a { opacity: 1; transform: none; }

/* Graf sljedivosti */
.graph-card {
  background: var(--navy); border-radius: var(--r); padding: 28px;
  display: flex; flex-direction: column;
}
.graph-svg { width: 100%; height: auto; flex: 1; }
.graph-cap { margin-top: 14px; font-size: 14.5px; color: var(--on-navy-mut); line-height: 1.5; }
.graph-svg .edge { stroke-dasharray: 160; stroke-dashoffset: 160; transition: stroke-dashoffset 0.9s ease; }
.graph-card.visible .edge { stroke-dashoffset: 0; }
.graph-card.visible .e2 { transition-delay: 0.15s; }
.graph-card.visible .e3 { transition-delay: 0.3s; }
.graph-card.visible .e4 { transition-delay: 0.45s; }
.graph-card.visible .e5 { transition-delay: 0.6s; }
.graph-svg .eflow { stroke-dasharray: 3 24; opacity: 0; animation: none; }
.graph-card.visible .eflow { opacity: 1; animation: eflow 2.6s linear infinite; }
@keyframes eflow { to { stroke-dashoffset: -54; } }
.js .graph-svg .node { opacity: 0; transform: scale(0.7); transform-box: fill-box; transform-origin: center; transition: opacity 0.4s ease, transform 0.4s ease; }
.js .graph-card.visible .node { opacity: 1; transform: none; }
.js .graph-card.visible .n-heat { transition-delay: 0.05s; }
.js .graph-card.visible .n1 { transition-delay: 0.35s; }
.js .graph-card.visible .n2 { transition-delay: 0.5s; }
.js .graph-card.visible .n3 { transition-delay: 0.65s; }
.js .graph-card.visible .n4 { transition-delay: 0.8s; }
.js .graph-card.visible .n5 { transition-delay: 0.95s; }

/* AI značajke i članci */
.feat-grid { grid-template-columns: repeat(3, 1fr); gap: 28px; margin-top: 28px; }
.clanci { margin-top: 56px; }
.clanci > .kicker { margin-bottom: 20px; }
.art-card { border: 1.5px solid var(--line); border-radius: var(--r); padding: 26px; transition: border-color 0.2s ease, box-shadow 0.2s ease; }
.art-card:hover { border-color: var(--teal); box-shadow: var(--shadow-card); }
.art-card .kicker { margin-bottom: 14px; }
.art-t { font-size: 20px; font-weight: 800; line-height: 1.35; text-wrap: pretty; }
.vodic { margin-top: 30px; background: var(--bg-2); border-radius: var(--r); padding: 24px 30px; display: flex; justify-content: space-between; align-items: center; gap: 24px; flex-wrap: wrap; }
.vodic-t { font-size: 18px; font-weight: 700; }

/* Kontakt */
.kontakt-grid { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 60px; align-items: start; }
.form-card { background: #fff; border-radius: 16px; padding: 40px; box-shadow: 0 4px 20px rgba(18, 50, 78, 0.08); }
.form-card h2 { font-size: 34px; letter-spacing: -0.7px; margin-bottom: 8px; }
.f-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.f-full { grid-column: 1 / -1; }
.field span, .field-label { display: block; font-size: 14.5px; font-weight: 700; color: var(--muted-2); margin-bottom: 7px; }
.field input[type="text"], .field input[type="email"], .field select, .field textarea,
#datoteke-wrap input[type="file"] {
  width: 100%; border: 1.5px solid var(--field-line); border-radius: 8px;
  padding: 12px 14px; font-size: 16px; font-family: inherit; color: var(--ink); background: #fff;
}
.field textarea { resize: vertical; }
.field input::placeholder, .field textarea::placeholder { color: var(--steel-2, #7d8790); }
.field input:hover, .field select:hover, .field textarea:hover { border-color: #B9C6CE; }
.field input:focus, .field select:focus, .field textarea:focus,
#datoteke-wrap input[type="file"]:focus-visible {
  outline: none; border-color: var(--teal); box-shadow: 0 0 0 3px rgba(43, 181, 160, 0.18);
}
.field select {
  appearance: none; -webkit-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%235C6E7E' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 14px center; background-size: 16px;
  padding-right: 42px; cursor: pointer;
}
.field select:required:invalid { color: var(--steel-2, #7d8790); }
.field select option { color: var(--ink); }
.radio-row { display: flex; gap: 26px; margin-top: 20px; font-size: 16px; font-weight: 600; color: var(--muted-2); flex-wrap: wrap; }
.radio-row label { display: flex; align-items: center; gap: 9px; cursor: pointer; }
.radio-row label:hover { color: var(--ink); }
.radio-row input { width: 17px; height: 17px; accent-color: var(--teal); cursor: pointer; }
.radio-row input:focus-visible { outline: 2px solid var(--teal); outline-offset: 2px; }
#datoteke-wrap { margin-top: 18px; }
#datoteke-wrap[hidden] { display: none; }
#datoteke-wrap input[type="file"] { padding: 9px 12px; font-size: 15px; color: var(--muted-2); cursor: pointer; }
#datoteke-wrap input[type="file"]::file-selector-button {
  font-family: inherit; font-size: 14.5px; font-weight: 800;
  color: var(--teal-ink); background: var(--teal);
  border: 0; border-radius: 6px; padding: 8px 16px; margin-right: 14px;
  cursor: pointer; transition: background 0.15s ease;
}
#datoteke-wrap input[type="file"]::file-selector-button:hover { background: var(--teal-light); }
form .btn-lg { margin-top: 28px; font-size: 18px; padding: 15px 32px; }
.hp-field { position: absolute; left: -9999px; opacity: 0; height: 0; overflow: hidden; }

.notice { padding: 15px 20px; border-radius: 10px; margin-bottom: 24px; font-weight: 700; font-size: 16px; }
.notice-ok { background: #DCFCE7; color: #15803D; }
.notice-err { background: #FDE8E8; color: #B0392E; }

.kontakt-side { display: grid; gap: 22px; }
.side-navy { background: var(--navy); border-radius: 16px; padding: 34px; color: var(--on-navy); }
.side-navy h3 { font-size: 22px; font-weight: 800; margin-bottom: 10px; }
.side-navy p { font-size: 16.5px; line-height: 1.6; color: var(--on-navy-soft); }
.side-white { background: #fff; border-radius: 16px; padding: 34px; box-shadow: var(--shadow-card); }
.side-white .kicker { margin-bottom: 14px; }
.side-strong { font-size: 19px; line-height: 1.55; font-weight: 700; }
.side-white .soft { display: block; margin-top: 12px; font-size: 16px; }

/* ---------- Podnožje ---------- */
.site-footer { background: var(--navy-deep); padding: 54px 0 40px; color: rgba(226, 240, 242, 0.6); font-size: 15.5px; }
.foot-row { display: flex; justify-content: space-between; gap: 40px; flex-wrap: wrap; align-items: flex-start; line-height: 1.8; }
.brand-foot span { font-size: 20px; }
.foot-right { text-align: right; }
.foot-lang { color: rgba(226, 240, 242, 0.6); }
.foot-lang:hover { color: var(--teal-light); }
.foot-bottom { margin-top: 34px; padding-top: 22px; border-top: 1px solid rgba(255, 255, 255, 0.08); font-size: 14px; color: rgba(226, 240, 242, 0.4); }

/* ---------- Otkrivanje pri pomicanju (samo uz JS) ---------- */
.js .reveal { opacity: 0; transform: translateY(16px); transition: opacity 0.55s ease, transform 0.55s ease; }
.js .reveal.visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js .reveal, .js .atest-card > *,
  .js .chat-card .chat-q, .js .chat-card .chat-a,
  .js .graph-svg .node { opacity: 1; transform: none; transition: none; animation: none; }
  .graph-svg .edge { stroke-dashoffset: 0; transition: none; }
  .graph-card.visible .eflow, .graph-svg .eflow { animation: none; opacity: 0; }
}

/* ---------- Prilagodljivost ---------- */
@media (max-width: 1080px) {
  .hero-grid { grid-template-columns: 1fr; gap: 48px; }
  .video-grid { grid-template-columns: 1fr; gap: 36px; }
  .video-side { order: -1; max-width: 640px; }
  .znanje-grid { grid-template-columns: 1fr; }
  .feat-grid { grid-template-columns: 1fr; gap: 22px; }
  .krug { grid-template-columns: 1fr 1fr; }
  .krug-step:nth-child(2n)::after { display: none; }
  .hero-visual { min-height: 0; height: 480px; max-width: 640px; }
  .sig-grid { grid-template-columns: 1fr; gap: 30px; }
  .kontakt-grid { grid-template-columns: 1fr; gap: 30px; }
  .grid-4 { grid-template-columns: 1fr 1fr; }
  .ladder { grid-template-columns: 1fr 1fr; align-items: stretch; }
  .rung, .rung.r2, .rung.r3, .rung.r4 { padding-bottom: 24px; }
}
@media (max-width: 900px) {
  .main-nav {
    display: none; position: absolute; top: 74px; left: 0; right: 0;
    background: var(--navy-deep); border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    flex-direction: column; align-items: flex-start; padding: 20px 28px; gap: 18px; font-size: 17px;
  }
  .main-nav.open { display: flex; }
  .nav-toggle { display: block; }
  .header-cta { display: none; }
  .grid-3 { grid-template-columns: 1fr; }
  .steps { margin-bottom: 40px; }
}
@media (max-width: 640px) {
  body { font-size: 16px; }
  .sec { padding: 60px 0; }
  .hero-ctas { flex-direction: column; }
  .hero-ctas .btn { width: 100%; }
  form .btn-lg { width: 100%; }
  .video-side { margin: 0 auto; width: 100%; }
  .krug { grid-template-columns: 1fr; }
  .krug-step::after { display: none; }
  .hero { padding: 64px 0 60px; }
  .hero-visual { height: auto; }
  .hero-photo { position: relative; width: 100%; height: 300px; top: 0; }
  .atest-card { position: relative; left: 0; bottom: 0; width: 100%; margin-top: -60px; }
  .stat-grid { grid-template-columns: 1fr 1fr; gap: 20px; }
  .grid-4 { grid-template-columns: 1fr; }
  .ladder { grid-template-columns: 1fr; }
  .f-grid { grid-template-columns: 1fr; }
  .form-card { padding: 26px; }
  .foot-row { flex-direction: column; gap: 18px; }
  .foot-right { text-align: left; }
  .photo-strip { height: 180px; }
}

/* ---------- Ispis ---------- */
@media print {
  .site-header, .hero-ctas, .nav-toggle, .main-nav, .header-cta,
  .form-card form, .photo-strip, .browser-chrome { display: none !important; }
  .reveal, .js .reveal, .js .atest-card > * { opacity: 1 !important; transform: none !important; animation: none !important; }
  body { background: #fff; color: #000; font-size: 12pt; }
  .hero, .sec-navy, .site-footer, .rung.r4, .side-navy { background: #fff !important; color: #000 !important; }
  .hero h1, .sec-navy h2, .mod-card h3, .mod-card p, .pm p, .pm-n,
  .rung.r4 p, .side-navy h3, .side-navy p, .site-footer, .foot-lang { color: #000 !important; }
  .hero-sub, .lead, .pilot-note { color: #333 !important; }
  .sec { padding: 18pt 0; }
  .card, .mod-card, .rung, .art-card, .screenshot, .side-white, .side-navy { border: 1pt solid #999; box-shadow: none; break-inside: avoid; }
  .hero-visual { display: none; }
}

/* Obfuscated email: raw HTML holds the address reversed, JS restores it */
.rev { unicode-bidi: bidi-override; direction: rtl; }
.email-link { white-space: nowrap; }
