/* Stilloeks — stilovi stranice. Bez vanjskih resursa (fontovi su lokalni). */
@font-face {
  font-family: "Geist";
  src: url("../fonts/Geist-Variable.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Geist Mono";
  src: url("../fonts/GeistMono-Regular.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

:root {
  --bg: #070B10;
  --panel: #0B1118;
  --line: #16202B;
  --line-2: #1C2733;
  --line-3: #2B3A4A;
  --text: #E6ECF1;
  --text-2: #C2CCD6;
  --muted: #A7B3BF;
  --dim: #8795A3;
  --accent: #5FD8CF;
  --accent-ink: #070B10;
  --link: #7FE3DC;
  --link-hover: #C4F5F1;
  --ok: #7BE0A0;
  --err: #FF8A8A;
  --wrap: 1200px;
  --gutter: 24px;
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: "Geist", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}
a { color: var(--link); }
a:hover { color: var(--link-hover); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 4px; }
img, svg { display: block; }

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding-left: var(--gutter); padding-right: var(--gutter); }
.skip { position: absolute; left: -9999px; top: 8px; z-index: 10; background: var(--accent); color: var(--accent-ink); padding: 10px 16px; border-radius: 6px; font-weight: 600; text-decoration: none; }
.skip:focus { left: 8px; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* Zaglavlje */
.site-header { position: relative; z-index: 2; }
.site-header .wrap { display: flex; flex-wrap: wrap; gap: 16px 28px; align-items: center; justify-content: space-between; padding-top: 22px; padding-bottom: 22px; }
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--text); text-decoration: none; font-weight: 700; font-size: 21px; letter-spacing: -0.3px; }
.brand:hover { color: var(--text); }
.brand svg { color: var(--accent); }
.nav { display: flex; flex-wrap: wrap; gap: 8px 26px; align-items: center; font-size: 15px; font-weight: 500; }
.nav a { color: var(--text-2); text-decoration: none; }
.nav a:hover { color: var(--text); }
.nav .btn-ghost { color: var(--text); border: 1px solid var(--line-3); padding: 0 18px; min-height: 44px; border-radius: 6px; display: inline-flex; align-items: center; background: rgba(7, 11, 16, 0.6); }
.nav .btn-ghost:hover { border-color: var(--accent); }
.lang { display: inline-flex; gap: 2px; border: 1px solid var(--line-2); border-radius: 6px; padding: 3px; font-family: "Geist Mono", ui-monospace, monospace; font-size: 12px; }
.lang a, .lang span { padding: 5px 8px; border-radius: 4px; text-decoration: none; color: var(--dim); }
.lang a:hover { color: var(--text); }
.lang [aria-current] { background: var(--line-2); color: var(--text); }

/* Hero */
.hero { position: relative; overflow: hidden; min-height: min(760px, 100svh); display: flex; flex-direction: column; border-bottom: 1px solid var(--line); }
.hero canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
.hero::before, .hero::after { content: ""; position: absolute; pointer-events: none; z-index: 1; }
.hero::before { inset: 0; background: linear-gradient(90deg, rgba(7,11,16,0.92) 0%, rgba(7,11,16,0.55) 40%, rgba(7,11,16,0) 75%); }
.hero::after { left: 0; right: 0; bottom: 0; height: 160px; background: linear-gradient(180deg, rgba(7,11,16,0) 0%, var(--bg) 100%); }
.hero-body { position: relative; z-index: 2; pointer-events: none; flex: 1 1 auto; display: flex; flex-direction: column; justify-content: center; gap: 28px; padding-top: 72px; padding-bottom: 120px; }
.hero h1 { margin: 0; font-size: clamp(40px, 6.2vw, 68px); line-height: 1.04; font-weight: 700; letter-spacing: -0.033em; max-width: 800px; }
.hero h1 .dot { color: var(--accent); }
.hero p { margin: 0; font-size: clamp(17px, 1.6vw, 20px); line-height: 1.6; color: #B3BEC9; max-width: 580px; }
.hero .actions { pointer-events: auto; display: flex; flex-wrap: wrap; gap: 12px; margin-top: 4px; }
.btn { background: var(--accent); color: var(--accent-ink); padding: 0 26px; min-height: 52px; border-radius: 6px; display: inline-flex; align-items: center; text-decoration: none; font-weight: 600; font-size: 16px; border: 0; font-family: inherit; cursor: pointer; }
.btn:hover { color: var(--accent-ink); background: #86E6DF; }
.btn[disabled] { opacity: 0.6; cursor: progress; }

/* Traka */
.stats .wrap { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 32px; padding-top: 8px; padding-bottom: 56px; }
.stat { display: flex; flex-direction: column; gap: 6px; border-left: 1px solid var(--line-3); padding-left: 20px; }
.stat b { font-size: 40px; font-weight: 700; letter-spacing: -1px; line-height: 1.2; }
.stat span { color: var(--muted); font-size: 15px; }

/* Sekcije */
.section { padding-top: 96px; padding-bottom: 96px; }
.section.tight-top { padding-top: 0; }
.eyebrow { font-size: 13px; font-weight: 600; letter-spacing: 2px; text-transform: uppercase; color: var(--accent); }
.section h2 { margin: 0; font-size: clamp(30px, 3.4vw, 40px); font-weight: 700; letter-spacing: -0.03em; line-height: 1.12; }
.lead { margin: 0; color: var(--muted); line-height: 1.7; font-size: 17px; }
.intro { display: flex; flex-direction: column; gap: 16px; }
.split { display: flex; flex-wrap: wrap; gap: 56px; }
.split > * { min-width: 0; }
.col-1 { flex: 1 1 340px; }
.col-2 { flex: 2 1 560px; }
.col-h { flex: 1 1 420px; }

.svc { display: flex; flex-wrap: wrap; gap: 12px 32px; padding: 28px 0; border-top: 1px solid var(--line-2); }
.svc:last-child { border-bottom: 1px solid var(--line-2); }
.svc h3 { margin: 0; flex: 1 1 220px; font-size: 21px; font-weight: 600; line-height: 1.3; }
.svc p { margin: 0; flex: 2 1 300px; color: var(--muted); line-height: 1.65; }

.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 16px; margin-top: 40px; }
.card { border: 1px solid var(--line-2); border-radius: 10px; padding: 24px; display: flex; flex-direction: column; gap: 10px; transition: border-color .2s; }
.card:hover { border-color: var(--line-3); }
.card .num { font-family: "Geist Mono", ui-monospace, monospace; font-size: 13px; color: var(--accent); }
.card h3 { margin: 0; font-size: 18px; font-weight: 600; line-height: 1.3; }
.card p { margin: 0; color: var(--muted); font-size: 15px; line-height: 1.6; }

.band { background: var(--panel); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.points { display: flex; flex-direction: column; gap: 28px; }
.point { display: flex; gap: 16px; }
.point svg { flex: 0 0 24px; margin-top: 2px; color: var(--accent); }
.point h3 { margin: 0 0 6px; font-size: 18px; font-weight: 600; }
.point p { margin: 0; color: var(--muted); line-height: 1.6; font-size: 15px; }

/* Kontakt */
.contact-lines { display: flex; flex-direction: column; gap: 8px; font-size: 17px; }
.contact-lines a { text-decoration: none; }
.contact-lines span { color: var(--muted); }
.reg { margin: 16px 0 0; display: grid; grid-template-columns: auto 1fr; gap: 6px 20px; font-size: 14px; color: var(--dim); line-height: 1.5; }
.reg dd { margin: 0; color: var(--text-2); }

.form { display: flex; flex-direction: column; gap: 16px; }
.field { display: flex; flex-direction: column; gap: 6px; }
.field label { font-size: 14px; color: var(--text-2); }
.field input, .field textarea { width: 100%; min-height: 48px; padding: 12px 14px; border-radius: 6px; border: 1px solid var(--line-3); background: var(--panel); color: var(--text); font-size: 16px; font-family: inherit; }
.field textarea { resize: vertical; min-height: 140px; }
.field input:focus, .field textarea:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px rgba(95, 216, 207, 0.18); }
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.consent { font-size: 13px; color: var(--dim); line-height: 1.55; margin: 0; }
.status { margin: 0; font-size: 15px; min-height: 1.5em; }
.status.ok { color: var(--ok); }
.status.err { color: var(--err); }

/* Pravne stranice */
.legal { max-width: 780px; padding-top: 56px; padding-bottom: 96px; }
.legal h1 { font-size: clamp(32px, 4vw, 44px); letter-spacing: -0.03em; line-height: 1.1; margin: 0 0 12px; }
.legal h2 { font-size: 21px; margin: 40px 0 10px; letter-spacing: -0.01em; }
.legal p, .legal li { color: var(--text-2); line-height: 1.7; }
.legal ul { padding-left: 20px; }
.legal .meta { color: var(--dim); font-size: 14px; margin: 0 0 32px; }
.legal .reg { font-size: 15px; margin-top: 8px; }
.page-top { border-bottom: 1px solid var(--line); }

/* Podnožje */
.site-footer { border-top: 1px solid var(--line); }
.site-footer .wrap { display: flex; flex-wrap: wrap; gap: 12px 24px; justify-content: space-between; padding-top: 28px; padding-bottom: 28px; font-size: 13px; color: var(--dim); line-height: 1.6; }
.site-footer nav { display: flex; flex-wrap: wrap; gap: 6px 18px; }
.site-footer a { color: var(--dim); }
.site-footer a:hover { color: var(--text); }

@media (max-width: 720px) {
  :root { --gutter: 16px; }
  .nav .hide-sm { display: none; }
  .section { padding-top: 64px; padding-bottom: 64px; }
  .hero-body { padding-top: 40px; padding-bottom: 96px; }
  .hero::before { background: linear-gradient(180deg, rgba(7,11,16,0.55) 0%, rgba(7,11,16,0.85) 100%); }
  .split { gap: 36px; }
}
.narrow { max-width: 680px; }

/* Savjeti / članci */
.teaser-head { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; margin-bottom: 20px; font-size: 15px; }
.teaser-head a { text-decoration: none; }
.post-card { border: 1px solid var(--line-2); border-radius: 10px; padding: 28px; display: flex; flex-direction: column; gap: 10px; transition: border-color .2s; }
.post-card:hover { border-color: var(--line-3); }
.post-card h2, .post-card h3 { margin: 0; font-size: clamp(21px, 2.2vw, 26px); line-height: 1.25; letter-spacing: -0.02em; }
.post-card h2 a, .post-card h3 a { color: var(--text); text-decoration: none; }
.post-card h2 a:hover, .post-card h3 a:hover { color: var(--link-hover); }
.post-card p { margin: 0; color: var(--muted); line-height: 1.65; max-width: 760px; }
.post-card .more { font-size: 15px; font-weight: 500; text-decoration: none; margin-top: 4px; }
.post-meta { margin: 0; font-family: "Geist Mono", ui-monospace, monospace; font-size: 13px; color: var(--dim); }
.post-list { display: flex; flex-direction: column; gap: 16px; margin-top: 40px; }

.article { max-width: 760px; padding-top: 56px; padding-bottom: 96px; }
.article h1 { font-size: clamp(32px, 4.4vw, 48px); letter-spacing: -0.03em; line-height: 1.1; margin: 12px 0 24px; }
.article h2 { font-size: 24px; margin: 48px 0 12px; letter-spacing: -0.02em; line-height: 1.25; }
.article p, .article li { color: var(--text-2); line-height: 1.75; font-size: 17px; }
.article .lead { font-size: 19px; color: var(--text); }
.article ul, .article ol { padding-left: 22px; }
.article li { margin: 6px 0; }
.article li::marker { color: var(--accent); }
.article strong { color: var(--text); font-weight: 600; }
.article .btn { margin-top: 16px; }
.article .note { margin-top: 40px; padding: 16px 20px; border-left: 2px solid var(--line-3); background: var(--panel); font-size: 14px; color: var(--muted); border-radius: 0 6px 6px 0; }
.article .sources-h { font-size: 15px; margin-top: 32px; color: var(--muted); text-transform: uppercase; letter-spacing: 1.5px; }
.article .sources { font-size: 15px; }
.article .sources li { font-size: 15px; }
.teaser { padding-bottom: 0; }
.card h3, .svc h3, .post-card h2, .post-card h3 { overflow-wrap: break-word; hyphens: auto; }
.article code { font-family: "Geist Mono", ui-monospace, monospace; font-size: 0.88em; background: var(--panel); border: 1px solid var(--line-2); border-radius: 4px; padding: 1px 6px; color: var(--text); overflow-wrap: anywhere; }
