/* ============ Osnova ============ */
:root {
  --bg: #ffffff;
  --bg-alt: #f6f7fb;
  --surface: #ffffff;
  --text: #0b0f1a;
  --muted: #5b6475;
  --border: #e6e8ef;
  --primary: #4f46e5;
  --primary-600: #4338ca;
  --accent: #06b6d4;
  --dark: #0b0f1a;
  --dark-2: #131a2b;
  --radius: 16px;
  --radius-sm: 10px;
  --shadow: 0 1px 2px rgba(16, 24, 40, .04), 0 8px 24px rgba(16, 24, 40, .06);
  --shadow-lg: 0 20px 50px rgba(16, 24, 40, .12);
  --font: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: "JetBrains Mono", ui-monospace, monospace;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 80px; }
body {
  margin: 0;
  font-family: var(--font);
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, h4 { line-height: 1.15; margin: 0 0 .5em; letter-spacing: -0.02em; }
p { margin: 0 0 1em; }

.container { width: 100%; max-width: 1180px; margin: 0 auto; padding: 0 24px; }
.container--narrow { max-width: 820px; }

/* ============ Gumbi ============ */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  padding: .85rem 1.4rem;
  border-radius: 999px;
  font-weight: 600; font-size: .975rem;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform .2s, background .2s, box-shadow .2s, border-color .2s;
  font-family: inherit;
}
.btn svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; transition: transform .2s; }
.btn:hover svg { transform: translateX(3px); }
.btn--primary { background: var(--primary); color: #fff; box-shadow: 0 6px 20px rgba(79, 70, 229, .35); }
.btn--primary:hover { background: var(--primary-600); transform: translateY(-1px); }
.btn--ghost { background: rgba(255,255,255,.06); color: #fff; border-color: rgba(255,255,255,.18); }
.btn--ghost:hover { background: rgba(255,255,255,.12); }
.btn--light { background: #fff; color: var(--dark); }
.btn--light:hover { transform: translateY(-1px); }
.btn--sm { padding: .55rem 1rem; font-size: .9rem; }
.btn--block { width: 100%; }

/* ============ Navigacija ============ */
.nav {
  position: fixed; inset: 0 0 auto; z-index: 50;
  transition: background .3s, border-color .3s, backdrop-filter .3s;
  border-bottom: 1px solid transparent;
}
.nav.is-scrolled {
  background: rgba(11, 15, 26, .78);
  backdrop-filter: saturate(160%) blur(14px);
  -webkit-backdrop-filter: saturate(160%) blur(14px);
  border-color: rgba(255,255,255,.08);
}
.nav__inner { display: flex; align-items: center; justify-content: space-between; height: 72px; }
.logo { display: inline-flex; align-items: center; gap: .6rem; font-weight: 800; font-size: 1.2rem; color: #fff; letter-spacing: -0.02em; }
.logo__mark svg { width: 32px; height: 32px; }
.logo__mark rect { fill: var(--primary); }
.logo__mark text { fill: #fff; font-family: var(--font); font-weight: 800; font-size: 14px; letter-spacing: -0.04em; }
.logo b { font-weight: 800; background: linear-gradient(90deg, #a5b4fc, #67e8f9); -webkit-background-clip: text; background-clip: text; color: transparent; }
.footer__site a { color: #a5b4fc; font-weight: 600; }
.nav__links { display: flex; align-items: center; gap: 2rem; }
.nav__links a { color: rgba(255,255,255,.78); font-weight: 500; font-size: .95rem; transition: color .2s; }
.nav__links a:hover { color: #fff; }
.nav__links .nav__cta { color: #fff; }
.nav__toggle { display: none; background: none; border: 0; padding: 10px; cursor: pointer; }
.nav__toggle span { display: block; width: 22px; height: 2px; background: #fff; margin: 5px 0; border-radius: 2px; transition: transform .3s; }
.nav__toggle[aria-expanded="true"] span:first-child { transform: translateY(3.5px) rotate(45deg); }
.nav__toggle[aria-expanded="true"] span:last-child { transform: translateY(-3.5px) rotate(-45deg); }

/* ============ Hero ============ */
.hero {
  position: relative; overflow: hidden;
  background: var(--dark);
  color: #fff;
  padding: 160px 0 110px;
}
.hero__grid {
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.045) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(ellipse at 50% 30%, #000 30%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse at 50% 30%, #000 30%, transparent 75%);
}
.hero__glow {
  position: absolute; width: 900px; height: 900px; right: -250px; top: -350px;
  background: radial-gradient(circle, rgba(79,70,229,.45), rgba(6,182,212,.15) 40%, transparent 70%);
  filter: blur(20px);
}
.hero__inner { position: relative; display: grid; grid-template-columns: 1.1fr 1fr; gap: 64px; align-items: center; }
.pill {
  display: inline-flex; align-items: center; gap: .55rem;
  padding: .4rem .9rem; border-radius: 999px;
  background: rgba(255,255,255,.07); border: 1px solid rgba(255,255,255,.12);
  font-size: .85rem; color: rgba(255,255,255,.85); margin-bottom: 1.5rem;
}
.pill__dot { width: 8px; height: 8px; border-radius: 50%; background: #22c55e; box-shadow: 0 0 0 4px rgba(34,197,94,.2); }
.hero h1 { font-size: clamp(2.4rem, 5.2vw, 4rem); font-weight: 800; letter-spacing: -0.035em; }
.gradient-text { background: linear-gradient(90deg, #a5b4fc, #67e8f9); -webkit-background-clip: text; background-clip: text; color: transparent; }
.lead { font-size: 1.15rem; color: rgba(255,255,255,.72); max-width: 560px; margin: 1.25rem 0 2rem; }
.hero__actions { display: flex; flex-wrap: wrap; gap: .75rem; }
.hero__trust { list-style: none; padding: 0; margin: 2.25rem 0 0; display: flex; flex-wrap: wrap; gap: 1.5rem; color: rgba(255,255,255,.65); font-size: .92rem; }
.hero__trust li { display: inline-flex; align-items: center; gap: .4rem; }
.hero__trust svg { width: 18px; height: 18px; fill: none; stroke: #67e8f9; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }

.hero__visual { position: relative; }
.code-card {
  background: linear-gradient(180deg, rgba(30,38,60,.92), rgba(17,22,38,.96));
  border: 1px solid rgba(255,255,255,.1);
  border-radius: var(--radius);
  box-shadow: 0 30px 80px rgba(0,0,0,.45);
  overflow: hidden;
}
.code-card__bar { display: flex; align-items: center; gap: 7px; padding: 14px 16px; border-bottom: 1px solid rgba(255,255,255,.07); }
.code-card__bar span { width: 11px; height: 11px; border-radius: 50%; background: #ff5f57; }
.code-card__bar span:nth-child(2) { background: #febc2e; }
.code-card__bar span:nth-child(3) { background: #28c840; }
.code-card__bar em { margin-left: auto; font-style: normal; font-family: var(--mono); font-size: .78rem; color: rgba(255,255,255,.45); }
.code-card__body { margin: 0; padding: 22px 22px 26px; font-family: var(--mono); font-size: .86rem; line-height: 1.75; color: #e2e8f0; overflow-x: auto; }
.c-k { color: #c4b5fd; } .c-f { color: #67e8f9; } .c-s { color: #86efac; } .c-n { color: #fdba74; } .c-c { color: #64748b; }

.float-card {
  position: absolute; display: flex; align-items: center; gap: .75rem;
  padding: .8rem 1rem; border-radius: 14px;
  background: rgba(255,255,255,.96); color: var(--text);
  box-shadow: var(--shadow-lg);
  animation: float 6s ease-in-out infinite;
}
.float-card strong { display: block; font-size: .95rem; }
.float-card small { color: var(--muted); font-size: .78rem; }
.float-card__icon { width: 38px; height: 38px; display: grid; place-items: center; border-radius: 10px; background: #eef2ff; font-size: 1.1rem; }
.float-card--a { left: -36px; bottom: -28px; }
.float-card--b { right: -20px; top: -30px; animation-delay: -3s; }
@keyframes float { 50% { transform: translateY(-10px); } }

/* ============ Sekcije ============ */
.section { padding: 110px 0; }
.section--alt { background: var(--bg-alt); }
.section--dark { background: var(--dark); color: #fff; }
.section__head { text-align: center; max-width: 680px; margin: 0 auto 60px; }
.section__head h2 { font-size: clamp(1.9rem, 3.6vw, 2.75rem); font-weight: 800; }
.section__head p { color: var(--muted); font-size: 1.08rem; }
.eyebrow {
  display: inline-block; font-size: .8rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase;
  color: var(--primary); margin-bottom: .9rem;
}
.eyebrow--light { color: #a5b4fc; }

/* Storitve */
.services { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.service {
  position: relative;
  padding: 32px; border-radius: var(--radius);
  background: var(--surface); border: 1px solid var(--border);
  transition: transform .3s, box-shadow .3s, border-color .3s;
}
.service:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); border-color: transparent; }
.service__icon {
  width: 52px; height: 52px; border-radius: 14px; display: grid; place-items: center; margin-bottom: 1.4rem;
  background: linear-gradient(135deg, #eef2ff, #ecfeff);
}
.service__icon svg { width: 26px; height: 26px; fill: none; stroke: var(--primary); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.service h3 { font-size: 1.2rem; font-weight: 700; }
.service p { color: var(--muted); font-size: .97rem; }
.service ul { list-style: none; padding: 1rem 0 0; margin: 0; border-top: 1px solid var(--border); display: grid; gap: .45rem; }
.service li { position: relative; padding-left: 1.4rem; font-size: .92rem; font-weight: 500; }
.service li::before { content: ""; position: absolute; left: 0; top: .55em; width: 8px; height: 8px; border-radius: 50%; background: linear-gradient(135deg, var(--primary), var(--accent)); }
.service--featured { background: linear-gradient(160deg, var(--primary), #3730a3); color: #fff; border-color: transparent; }
.service--featured p { color: rgba(255,255,255,.8); }
.service--featured ul { border-color: rgba(255,255,255,.2); }
.service--featured li::before { background: #67e8f9; }
.service--featured .service__icon { background: rgba(255,255,255,.14); }
.service--featured .service__icon svg { stroke: #fff; }

/* Proces */
.steps { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; counter-reset: none; }
.step { position: relative; padding: 28px; background: var(--surface); border-radius: var(--radius); border: 1px solid var(--border); }
.step::after {
  content: ""; position: absolute; top: 46px; right: -24px; width: 24px; height: 2px;
  background: linear-gradient(90deg, var(--primary), transparent);
}
.step:last-child::after { display: none; }
.step__num {
  display: inline-grid; place-items: center; width: 40px; height: 40px; border-radius: 12px;
  font-family: var(--mono); font-weight: 500; font-size: .9rem;
  background: var(--dark); color: #fff; margin-bottom: 1.1rem;
}
.step h3 { font-size: 1.1rem; }
.step p { color: var(--muted); font-size: .95rem; margin: 0; }

/* Tehnologije */
.tech { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
.tech__group { padding: 26px 28px; border-radius: var(--radius); border: 1px solid var(--border); background: var(--surface); }
.tech__group h4 { font-size: .8rem; text-transform: uppercase; letter-spacing: .1em; color: var(--muted); margin-bottom: 1rem; }
.tags { display: flex; flex-wrap: wrap; gap: .5rem; }
.tags span {
  padding: .45rem .85rem; border-radius: 999px; font-size: .88rem; font-weight: 500;
  background: var(--bg-alt); border: 1px solid var(--border);
  transition: background .2s, color .2s, border-color .2s;
}
.tags span:hover { background: var(--primary); color: #fff; border-color: var(--primary); }

/* O nas */
.about { display: grid; grid-template-columns: 1fr 1.1fr; gap: 72px; align-items: center; }
.about__text h2 { font-size: clamp(1.9rem, 3.6vw, 2.75rem); font-weight: 800; }
.about__text p { color: rgba(255,255,255,.7); font-size: 1.05rem; }
.about__text .btn { margin-top: 1rem; }
.values { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
.value { padding: 28px; border-radius: var(--radius); background: var(--dark-2); border: 1px solid rgba(255,255,255,.08); }
.value h3 { font-size: 1.1rem; display: flex; align-items: center; gap: .6rem; }
.value h3::before { content: ""; width: 10px; height: 10px; border-radius: 3px; background: linear-gradient(135deg, #a5b4fc, #67e8f9); }
.value p { color: rgba(255,255,255,.62); font-size: .95rem; margin: 0; }

/* FAQ */
.faq { display: grid; gap: 12px; }
.faq details { border: 1px solid var(--border); border-radius: var(--radius-sm); background: var(--surface); transition: box-shadow .2s; }
.faq details[open] { box-shadow: var(--shadow); }
.faq summary {
  cursor: pointer; list-style: none; padding: 20px 24px; font-weight: 600; font-size: 1.02rem;
  display: flex; justify-content: space-between; align-items: center; gap: 1rem;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-size: 1.5rem; font-weight: 400; color: var(--primary); transition: transform .25s; line-height: 1; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { padding: 0 24px 20px; margin: 0; color: var(--muted); }

/* Kontakt */
.contact { display: grid; grid-template-columns: 1fr 1.2fr; gap: 64px; align-items: start; }
.contact__info h2 { font-size: clamp(1.9rem, 3.6vw, 2.6rem); font-weight: 800; }
.contact__info > p { color: var(--muted); font-size: 1.05rem; }
.contact__list { list-style: none; padding: 0; margin: 2rem 0 0; display: grid; gap: 1.25rem; }
.contact__list li { display: flex; align-items: center; gap: 1rem; }
.contact__list small { display: block; color: var(--muted); font-size: .8rem; }
.contact__list a, .contact__list span { font-weight: 600; }
.contact__list a:hover { color: var(--primary); }
.contact__icon { width: 46px; height: 46px; border-radius: 12px; display: grid; place-items: center; background: var(--surface); border: 1px solid var(--border); flex-shrink: 0; }
.contact__icon svg { width: 22px; height: 22px; fill: none; stroke: var(--primary); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }

.form { background: var(--surface); padding: 36px; border-radius: 20px; border: 1px solid var(--border); box-shadow: var(--shadow); display: grid; gap: 18px; }
.form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.form label { display: grid; gap: .45rem; font-size: .9rem; font-weight: 600; }
.optional { color: var(--muted); font-weight: 400; }
.form input:not([type="checkbox"]), .form select, .form textarea {
  width: 100%; font: inherit; font-weight: 400; font-size: .97rem; color: var(--text);
  padding: .8rem 1rem; border-radius: var(--radius-sm);
  border: 1px solid var(--border); background: var(--bg-alt);
  transition: border-color .2s, box-shadow .2s, background .2s;
}
.form textarea { resize: vertical; min-height: 120px; }
.form input:focus, .form select:focus, .form textarea:focus { outline: none; border-color: var(--primary); background: var(--surface); box-shadow: 0 0 0 4px rgba(79,70,229,.12); }
.form .is-invalid { border-color: #ef4444 !important; }
.check { display: flex !important; align-items: flex-start; gap: .65rem !important; font-weight: 400 !important; color: var(--muted); font-size: .88rem !important; }
.check input { margin-top: .2rem; accent-color: var(--primary); width: 17px; height: 17px; flex-shrink: 0; }
.form__status { margin: 0; font-size: .92rem; text-align: center; min-height: 1.4em; }
.form__status.ok { color: #16a34a; }
.form__status.err { color: #dc2626; }

/* Noga */
.footer { background: var(--dark); color: rgba(255,255,255,.65); padding: 72px 0 32px; font-size: .94rem; }
.footer__inner { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 40px; padding-bottom: 48px; border-bottom: 1px solid rgba(255,255,255,.08); }
.footer__brand p { margin-top: 1rem; max-width: 300px; }
.footer__col { display: grid; gap: .6rem; align-content: start; }
.footer__col h4 { color: #fff; font-size: .95rem; margin-bottom: .4rem; }
.footer__col a:hover, .footer__bottom a:hover { color: #fff; }
.footer__bottom { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 1rem; padding-top: 28px; font-size: .86rem; }

/* Animacija ob pomikanju */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .7s ease, transform .7s ease; }
.reveal.is-visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .float-card { animation: none; }
}

/* ============ Odzivnost ============ */
@media (max-width: 1024px) {
  .hero__inner, .about, .contact { grid-template-columns: 1fr; gap: 56px; }
  .hero__visual { max-width: 560px; }
  .services { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .step::after { display: none; }
  .footer__inner { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 760px) {
  .container { padding: 0 16px; }
  .nav__toggle { display: block; }
  .nav__links {
    position: fixed; top: 72px; left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 0;
    background: rgba(11,15,26,.97); backdrop-filter: blur(14px);
    padding: 8px 16px 20px; border-bottom: 1px solid rgba(255,255,255,.08);
    transform: translateY(-120%); opacity: 0; pointer-events: none;
    transition: transform .3s, opacity .3s;
  }
  .nav__links.is-open { transform: none; opacity: 1; pointer-events: auto; }
  .nav__links a { padding: 14px 4px; border-bottom: 1px solid rgba(255,255,255,.06); }
  .nav__links .nav__cta { margin-top: 12px; border: 0; padding: .85rem 1rem; }
  .nav.menu-open { background: rgba(11,15,26,.97); }

  .hero { padding: 120px 0 80px; }
  .float-card--a { left: 8px; bottom: -36px; }
  .float-card--b { right: 8px; top: -28px; }
  .section { padding: 80px 0; }
  .section__head { margin-bottom: 40px; }
  .services, .steps, .tech, .values, .form__row { grid-template-columns: 1fr; }
  .form { padding: 24px; }
  .footer__inner { grid-template-columns: 1fr; }
}
