/* ============ LOGIKA NOVCA — zajednički stilovi ============ */
:root {
  --navy: #0E2235;
  --navy-deep: #091622;
  --teal: #0D7D71;
  --teal-bright: #14A08F;
  --green: #2FBE73;
  --paper: #FBFDFC;
  --slate: #8A97A0;
  --slate-dim: #4A5768;
  --line-dim: rgba(138, 151, 160, 0.22);
  /* svijetle sekcije */
  --mist: #EEF3F1;
  --ink: #0E2235;
  --ink-soft: #3C4A54;
  --slate-on-light: #5B6B76;
  --card-line: rgba(14, 34, 53, 0.09);
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  background: var(--navy);
  color: var(--paper);
  font-family: 'Inter', -apple-system, sans-serif;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; }

:focus-visible {
  outline: 2px solid var(--green);
  outline-offset: 3px;
  border-radius: 2px;
}

.mono { font-family: 'IBM Plex Mono', monospace; }

/* ============ HEADER ============ */
header {
  position: sticky;
  top: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 22px clamp(24px, 5vw, 64px);
  background: rgba(14, 34, 53, 0.82);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line-dim);
}

.logo-mark { display: flex; align-items: center; gap: 12px; transition: opacity 0.15s ease; }
.logo-mark:hover { opacity: 0.8; }
.logo-mark svg { display: block; }

.logo-wordmark { font-weight: 800; font-size: 18px; letter-spacing: 0.01em; }
.logo-wordmark .accent {
  background: linear-gradient(90deg, var(--teal-bright), var(--green));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

nav { display: flex; align-items: center; gap: 40px; }

.nav-links { display: flex; gap: 32px; list-style: none; }
.nav-links a {
  font-size: 14.5px; font-weight: 500; color: var(--slate);
  transition: color 0.2s ease; position: relative;
}
.nav-links a:hover { color: var(--paper); }
.nav-links a.current { color: var(--paper); }
.nav-links a.current::after {
  content: ''; position: absolute; left: 0; right: 0; bottom: -20px;
  height: 2px; background: var(--green);
}

.header-actions { display: flex; align-items: center; gap: 22px; }

.search-btn { color: var(--slate); display: flex; align-items: center; transition: color 0.2s ease; }
.search-btn:hover { color: var(--paper); }

.btn-primary {
  background: var(--green); color: var(--navy-deep); font-weight: 700; font-size: 14px;
  padding: 11px 22px; border-radius: 8px; letter-spacing: 0.01em;
  transition: transform 0.15s ease, box-shadow 0.15s ease; white-space: nowrap;
}
.btn-primary:hover { transform: translateY(-1px); box-shadow: 0 6px 20px rgba(47, 190, 115, 0.28); }

.mobile-nav-toggle { display: none; flex-direction: column; gap: 5px; padding: 6px; }
.mobile-nav-toggle span {
  width: 22px; height: 2px; background: var(--paper); border-radius: 2px;
  transition: transform 0.25s ease, opacity 0.25s ease;
}
.mobile-nav-toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.mobile-nav-toggle.open span:nth-child(2) { opacity: 0; }
.mobile-nav-toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.mobile-menu {
  display: none; flex-direction: column; gap: 2px;
  padding: 8px clamp(24px, 5vw, 64px) 20px;
  background: var(--navy); border-bottom: 1px solid var(--line-dim);
}
.mobile-menu a {
  padding: 14px 4px; font-size: 16px; font-weight: 500; color: var(--slate);
  border-bottom: 1px solid var(--line-dim);
}
.mobile-menu a.current { color: var(--paper); }
.mobile-menu.open { display: flex; }

@media (max-width: 900px) {
  .nav-links, .search-btn { display: none; }
  .btn-primary { padding: 9px 16px; font-size: 13px; }
  .mobile-nav-toggle { display: flex; }
}

/* ============ FOOTER (zajednički, sve stranice) ============ */
footer {
  background: var(--navy-deep);
  padding: clamp(56px, 7vh, 80px) clamp(24px, 5vw, 64px) 32px;
}
.footer-inner { max-width: 1180px; margin: 0 auto; }
.footer-top {
  display: flex; justify-content: space-between; flex-wrap: wrap; gap: 48px;
  padding-bottom: 40px; border-bottom: 1px solid var(--line-dim); margin-bottom: 28px;
}
.footer-brand { max-width: 320px; }
.footer-brand .logo-mark { margin-bottom: 16px; }
.footer-tagline { font-size: 14.5px; line-height: 1.55; color: var(--slate); }

.footer-cols { display: flex; gap: 64px; flex-wrap: wrap; }
.footer-col-title {
  font-family: 'IBM Plex Mono', monospace; font-size: 11.5px; font-weight: 600;
  letter-spacing: 0.1em; color: var(--slate-dim); margin-bottom: 18px;
}
.footer-col a {
  display: block; font-size: 14.5px; color: var(--slate); margin-bottom: 13px;
  transition: color 0.2s ease;
}
.footer-col a:hover { color: var(--paper); }

.footer-bottom { display: flex; justify-content: space-between; align-items: flex-start; flex-wrap: wrap; gap: 20px; }
.footer-disclaimer { font-size: 12.5px; line-height: 1.55; color: var(--slate-dim); max-width: 620px; }
.footer-copy { font-size: 12.5px; color: var(--slate-dim); white-space: nowrap; }

@media (max-width: 700px) {
  .footer-top { flex-direction: column; gap: 32px; }
  .footer-cols { gap: 40px; }
}
