/* ==========================================================================
   Nokovi — site styles
   No external fonts, frameworks, or trackers. System font stack only.
   ========================================================================== */

:root {
  --ink: #0b1220;
  --ink-2: #1c2536;
  --text: #2a3446;
  --muted: #5d687c;
  --line: #e3e7ee;
  --bg: #ffffff;
  --bg-soft: #f5f7fb;
  --accent: #2f6bff;
  --accent-ink: #1d4fd6;
  --accent-soft: #e8efff;
  --mint: #19c2a0;
  --radius: 14px;
  --shadow: 0 1px 2px rgba(11, 18, 32, 0.04), 0 8px 24px rgba(11, 18, 32, 0.06);
  --max: 1120px;
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue",
    Arial, "Noto Sans", sans-serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.6;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}

img,
svg {
  display: block;
  max-width: 100%;
}

a {
  color: var(--accent-ink);
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

a:hover {
  color: var(--accent);
}

h1,
h2,
h3,
h4 {
  color: var(--ink);
  line-height: 1.2;
  letter-spacing: -0.02em;
  margin: 0 0 0.5em;
}

h1 {
  font-size: clamp(2.2rem, 5vw, 3.6rem);
  font-weight: 750;
}

h2 {
  font-size: clamp(1.7rem, 3.2vw, 2.4rem);
  font-weight: 720;
}

h3 {
  font-size: 1.2rem;
  font-weight: 680;
}

p {
  margin: 0 0 1em;
}

.container {
  width: 100%;
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 24px;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--ink);
  color: #fff;
  padding: 10px 16px;
  z-index: 100;
}

.skip-link:focus {
  left: 12px;
  top: 12px;
}

/* ---------- Header ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.86);
  backdrop-filter: saturate(180%) blur(14px);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid var(--line);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 68px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--ink);
  text-decoration: none;
  font-weight: 760;
  font-size: 1.2rem;
  letter-spacing: -0.02em;
}

.brand:hover {
  color: var(--ink);
}

.brand svg {
  width: 30px;
  height: 30px;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 28px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-links a {
  color: var(--text);
  text-decoration: none;
  font-size: 0.96rem;
  font-weight: 520;
}

.nav-links a:hover,
.nav-links a[aria-current="page"] {
  color: var(--accent-ink);
}

.nav-toggle {
  display: none;
  background: none;
  border: 1px solid var(--line);
  border-radius: 10px;
  width: 42px;
  height: 42px;
  cursor: pointer;
  color: var(--ink);
}

.nav-toggle svg {
  margin: auto;
}

@media (max-width: 760px) {
  .nav-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
  }

  .nav-links {
    display: none;
    position: absolute;
    top: 68px;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    background: #fff;
    border-bottom: 1px solid var(--line);
    padding: 8px 24px 16px;
  }

  .nav-links.open {
    display: flex;
  }

  .nav-links li {
    width: 100%;
  }

  .nav-links a {
    display: block;
    padding: 12px 0;
  }

  .nav-links .btn {
    margin-top: 8px;
    text-align: center;
  }
}

/* ---------- Buttons ---------- */

.btn {
  display: inline-block;
  padding: 12px 22px;
  border-radius: 999px;
  font-weight: 620;
  font-size: 0.98rem;
  text-decoration: none;
  border: 1px solid transparent;
  transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}

.btn-primary {
  background: var(--accent);
  color: #fff;
}

.btn-primary:hover {
  background: var(--accent-ink);
  color: #fff;
}

.btn-ghost {
  border-color: rgba(255, 255, 255, 0.3);
  color: #fff;
}

.btn-ghost:hover {
  border-color: #fff;
  color: #fff;
}

.nav-links .btn-primary {
  color: #fff;
  padding: 9px 18px;
}

/* ---------- Hero ---------- */

.hero {
  position: relative;
  overflow: hidden;
  background: radial-gradient(1200px 600px at 85% -10%, rgba(47, 107, 255, 0.45), transparent 60%),
    radial-gradient(900px 500px at -10% 110%, rgba(25, 194, 160, 0.28), transparent 60%),
    var(--ink);
  color: #c9d2e3;
  padding: 120px 0 128px;
}

.hero h1 {
  color: #fff;
  max-width: 820px;
}

.hero .lede {
  font-size: clamp(1.08rem, 1.6vw, 1.3rem);
  max-width: 660px;
  margin-bottom: 2em;
}

.eyebrow {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 650;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent-ink);
  margin-bottom: 14px;
}

.hero .eyebrow {
  color: #8fb0ff;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

.hero-grid {
  position: absolute;
  inset: 0;
  background-image: linear-gradient(rgba(255, 255, 255, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.04) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: linear-gradient(to bottom, rgba(0, 0, 0, 0.9), transparent 85%);
  -webkit-mask-image: linear-gradient(to bottom, rgba(0, 0, 0, 0.9), transparent 85%);
  pointer-events: none;
}

.hero .container {
  position: relative;
}

/* ---------- Sections ---------- */

.section {
  padding: 96px 0;
}

.section-soft {
  background: var(--bg-soft);
}

.section-head {
  max-width: 680px;
  margin-bottom: 48px;
}

.section-head p {
  color: var(--muted);
  font-size: 1.08rem;
}

.grid {
  display: grid;
  gap: 22px;
}

.grid-3 {
  grid-template-columns: repeat(3, 1fr);
}

.grid-4 {
  grid-template-columns: repeat(4, 1fr);
}

.grid-2 {
  grid-template-columns: repeat(2, 1fr);
}

@media (max-width: 960px) {
  .grid-3,
  .grid-4 {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 640px) {
  .grid-2,
  .grid-3,
  .grid-4 {
    grid-template-columns: 1fr;
  }

  .section {
    padding: 72px 0;
  }

  .hero {
    padding: 88px 0 96px;
  }
}

.card {
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px;
  box-shadow: var(--shadow);
}

.card p {
  color: var(--muted);
  margin: 0;
}

.icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: var(--accent-soft);
  color: var(--accent-ink);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 18px;
}

.icon svg {
  width: 22px;
  height: 22px;
}

.step {
  border-top: 2px solid var(--ink);
  padding-top: 18px;
}

.step-num {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--accent-ink);
  letter-spacing: 0.08em;
  margin-bottom: 8px;
}

.step p {
  color: var(--muted);
  margin: 0;
}

.about {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 56px;
  align-items: start;
}

@media (max-width: 860px) {
  .about {
    grid-template-columns: 1fr;
    gap: 32px;
  }
}

.facts {
  list-style: none;
  padding: 0;
  margin: 0;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--bg);
  box-shadow: var(--shadow);
}

.facts li {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 16px 22px;
  border-bottom: 1px solid var(--line);
}

.facts li:last-child {
  border-bottom: 0;
}

.facts span:first-child {
  color: var(--muted);
}

.facts span:last-child {
  color: var(--ink);
  font-weight: 600;
  text-align: right;
}

.cta {
  background: var(--ink);
  color: #c9d2e3;
  border-radius: 22px;
  padding: 56px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  flex-wrap: wrap;
}

.cta h2 {
  color: #fff;
  margin-bottom: 0.3em;
}

.cta p {
  margin: 0;
}

@media (max-width: 640px) {
  .cta {
    padding: 36px 26px;
  }
}

/* ---------- Content pages (legal, support) ---------- */

.page-hero {
  background: var(--bg-soft);
  border-bottom: 1px solid var(--line);
  padding: 72px 0 48px;
}

.page-hero p {
  color: var(--muted);
  margin: 0;
}

.prose {
  max-width: 760px;
  padding: 56px 24px 96px;
}

.prose h2 {
  font-size: 1.45rem;
  margin-top: 2.2em;
}

.prose h3 {
  font-size: 1.1rem;
  margin-top: 1.6em;
}

.prose ul {
  padding-left: 1.3em;
  margin: 0 0 1em;
}

.prose li {
  margin-bottom: 0.4em;
}

.prose .callout {
  background: var(--accent-soft);
  border-radius: var(--radius);
  padding: 20px 24px;
  margin: 0 0 1.5em;
}

.prose .callout p:last-child {
  margin: 0;
}

.contact-cards {
  margin: 8px 0 40px;
}

.contact-cards .card h3 {
  margin-top: 0;
  margin-bottom: 6px;
}

.contact-cards .card a {
  font-weight: 620;
}

details {
  border-bottom: 1px solid var(--line);
  padding: 16px 0;
}

details summary {
  cursor: pointer;
  font-weight: 620;
  color: var(--ink);
}

details p {
  margin: 12px 0 0;
  color: var(--muted);
}

/* ---------- Footer ---------- */

.site-footer {
  border-top: 1px solid var(--line);
  padding: 48px 0 40px;
  font-size: 0.94rem;
  color: var(--muted);
}

.footer-grid {
  display: flex;
  justify-content: space-between;
  gap: 32px;
  flex-wrap: wrap;
}

.footer-links {
  display: flex;
  gap: 24px;
  flex-wrap: wrap;
  list-style: none;
  margin: 0;
  padding: 0;
}

.footer-links a {
  color: var(--muted);
  text-decoration: none;
}

.footer-links a:hover {
  color: var(--ink);
}

.footer-legal {
  margin-top: 28px;
  font-size: 0.86rem;
}

/* ---------- 404 ---------- */

.not-found {
  min-height: 60vh;
  display: flex;
  align-items: center;
  padding: 96px 0;
}

.not-found .code {
  font-size: 0.9rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  color: var(--accent-ink);
}

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

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}
