:root {
  --bg: #080a13;
  --bg-alt: rgba(18, 22, 38, 0.45);
  --card: rgba(255, 255, 255, 0.035);
  --border: rgba(255, 255, 255, 0.075);
  --border-hi: rgba(255, 255, 255, 0.16);
  --text: #f5f6fa;
  --muted: #9ba2b7;
  --dim: #6b7289;
  --accent: #3360ff;
  --glass-blur: blur(26px) saturate(150%);
  --radius: 12px;
  --max: 1120px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: "DM Sans", system-ui, -apple-system, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }

.container { max-width: var(--max); margin: 0 auto; padding: 0 24px; }
.center { text-align: center; }
.narrow { max-width: 620px; margin-left: auto; margin-right: auto; }
.muted { color: var(--muted); }
.small { font-size: 0.9rem; }
.tiny { font-size: 0.8rem; color: var(--dim); }

h1, h2, h3, h4 { font-weight: 500; letter-spacing: -0.02em; line-height: 1.15; }
h1 { font-size: clamp(2.2rem, 5vw, 3.6rem); }
h2 { font-size: clamp(1.8rem, 3.5vw, 2.5rem); margin-bottom: 16px; }
h3 { font-size: 1.15rem; margin-top: 16px; }
h4 { font-size: 1.05rem; margin-bottom: 12px; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; gap: 12px;
  padding: 6px 6px 6px 20px; border-radius: 999px;
  font-size: 0.95rem; font-weight: 500;
  transition: transform .2s, box-shadow .2s;
}
.btn--light { background: #fff; color: #0a0b12; }
.btn--light:hover { transform: translateY(-1px); box-shadow: 0 8px 30px rgba(255,255,255,.15); }
.btn__arrow {
  display: grid; place-items: center; width: 32px; height: 32px;
  border-radius: 50%; background: #0a0b12; color: #fff; font-size: 0.9rem;
}
.btn--sm { font-size: 0.85rem; padding: 4px 4px 4px 14px; }
.btn--sm .btn__arrow { width: 26px; height: 26px; }

/* Nav */
.nav {
  position: sticky; top: 0; z-index: 50;
  background: rgba(10, 11, 18, 0.75); backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}
.nav__inner { display: flex; align-items: center; justify-content: space-between; height: 64px; }
.logo { font-weight: 600; letter-spacing: 0.05em; font-size: 0.95rem; }
.logo__mark { margin-right: 4px; }
.logo__mark.big { font-size: 3rem; opacity: .25; }
.nav__links { display: flex; gap: 28px; font-size: 0.9rem; color: var(--muted); }
.nav__links a:hover { color: var(--text); }
.nav__right { display: flex; align-items: center; gap: 14px; }
.lang { display: flex; border: 1px solid var(--border); border-radius: 999px; padding: 2px; }
.lang button {
  background: none; border: 0; color: var(--dim); font: inherit; font-size: 0.75rem;
  padding: 4px 10px; border-radius: 999px; cursor: pointer;
}
.lang button.active { background: rgba(255,255,255,.1); color: var(--text); }

/* Hero */
.hero {
  position: relative; padding: 120px 0 100px; text-align: center; overflow: hidden;
  background:
    radial-gradient(ellipse 60% 50% at 50% 0%, rgba(90, 100, 180, 0.22), transparent 70%),
    linear-gradient(180deg, #0d0f1a 0%, var(--bg) 100%);
}
.hero__inner { max-width: 820px; }
.hero .lead { color: var(--muted); max-width: 560px; margin: 24px auto 36px; }
.stats { display: flex; justify-content: center; gap: 48px; flex-wrap: wrap; margin-bottom: 40px; }
.stats div { display: flex; flex-direction: column; }
.stats strong { font-size: 1.6rem; font-weight: 500; }
.stats span { font-size: 0.75rem; color: var(--dim); }
.stats--left { justify-content: flex-start; margin: 32px 0; }

/* Logos */
.logos { border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); padding: 22px 0; }
.logos__inner { display: flex; align-items: center; gap: 32px; }
.logos__label { font-size: 0.65rem; letter-spacing: .12em; color: var(--dim); white-space: nowrap; }
.marquee { overflow: hidden; flex: 1; mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent); }
.marquee__track { display: flex; gap: 56px; width: max-content; animation: scroll 30s linear infinite; }
.marquee__track span { color: var(--muted); font-weight: 500; white-space: nowrap; opacity: .7; }
@keyframes scroll { to { transform: translateX(-50%); } }

/* Sections */
.section { padding: 110px 0; }
.section--alt { background: var(--bg-alt); }
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; }
.split p { margin: 16px 0 28px; }

.grid { display: grid; gap: 20px; margin-top: 48px; text-align: left; }
.grid--3 { grid-template-columns: repeat(3, 1fr); }
.grid--4 { grid-template-columns: repeat(4, 1fr); }

/* Image placeholders: replace with <img> */
.media, .avatar {
  position: relative; border-radius: var(--radius); overflow: hidden;
  background: linear-gradient(135deg, #1c2030, #11131d);
  border: 1px solid var(--border); aspect-ratio: 4 / 3;
}
.media--wide { aspect-ratio: 16 / 10; }
.avatar { aspect-ratio: 1 / 1.1; background: linear-gradient(180deg, #e9e9ec, #c9cad0); }
.media::after, .avatar::after {
  content: attr(data-label); position: absolute; inset: 0; display: grid; place-items: center;
  font-size: 0.8rem; color: var(--dim);
}
.avatar::after { color: #8a8d99; }
.media:has(img)::after, .avatar:has(img)::after { content: none; }
.media img, .avatar img { width: 100%; height: 100%; object-fit: cover; }

.card-plain h3 { font-size: 1rem; }
.person .role { color: var(--dim); font-size: 0.85rem; margin: 2px 0 14px; }

.card {
  background: var(--card); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 28px 24px; transition: border-color .2s, transform .2s;
}
.card:hover { border-color: rgba(255,255,255,.18); transform: translateY(-2px); }
.card p { color: var(--muted); font-size: 0.88rem; }
.step { display: block; font-size: 0.65rem; letter-spacing: .14em; color: var(--dim); margin-bottom: 12px; }


.cta {
  background: radial-gradient(ellipse 50% 60% at 50% 100%, rgba(90, 100, 180, 0.18), transparent 70%), var(--bg);
}
.cta .tiny { margin: 24px 0 28px; }

/* Footer */
.footer { border-top: 1px solid var(--border); padding: 72px 0 32px; background: var(--bg-alt); }
.footer__grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr 1fr; gap: 32px; }
.footer__lead { margin: 6px 0 20px; max-width: 280px; }
.footer h5 { font-size: 0.7rem; letter-spacing: .12em; color: var(--dim); font-weight: 500; margin-bottom: 14px; }
.footer__grid a:not(.btn) { display: block; font-size: 0.85rem; color: var(--muted); margin-bottom: 8px; }
.footer__grid a:not(.btn):hover { color: var(--text); }
.footer__bottom { display: flex; justify-content: space-between; align-items: center; margin-top: 64px; gap: 16px; }

/* Responsive */
@media (max-width: 900px) {
  .grid--4 { grid-template-columns: repeat(2, 1fr); }
  .split { grid-template-columns: 1fr; gap: 40px; }
  .footer__grid { grid-template-columns: 1fr 1fr; }
  .footer__grid > div:first-child { grid-column: 1 / -1; }
}
@media (max-width: 640px) {
  .nav__links { display: none; }
  .grid--3, .grid--4 { grid-template-columns: 1fr; }
  .stats { gap: 28px; }
  .section { padding: 80px 0; }
  .hero { padding: 90px 0 70px; }
  .logos__label { display: none; }
  .footer__bottom { flex-direction: column; text-align: center; }
}

/* Services dropdown */
.nav__links { align-items: center; }
.nav__links a.active { color: var(--text); }
.dropdown { position: relative; }
.dropdown__toggle {
  background: none; border: 0; font: inherit; color: var(--muted); cursor: pointer;
  display: inline-flex; align-items: center; gap: 4px; padding: 0;
}
.dropdown__toggle:hover, .dropdown.open .dropdown__toggle { color: var(--text); }
.chev { font-size: 0.7rem; transition: transform .2s; }
.dropdown.open .chev { transform: rotate(180deg); }
.dropdown__menu {
  position: absolute; top: calc(100% + 14px); left: 50%; transform: translate(-50%, -6px);
  min-width: 290px; padding: 8px; border-radius: var(--radius);
  background: #12141f; border: 1px solid var(--border); box-shadow: 0 20px 50px rgba(0,0,0,.5);
  opacity: 0; visibility: hidden; transition: opacity .18s, transform .18s, visibility .18s;
}
.dropdown.open .dropdown__menu { opacity: 1; visibility: visible; transform: translate(-50%, 0); }
.dropdown__menu a { display: block; padding: 10px 12px; border-radius: 8px; }
.dropdown__menu a:hover { background: rgba(255,255,255,.06); }
.dropdown__menu strong { display: block; color: var(--text); font-weight: 500; font-size: 0.92rem; }
.dropdown__menu small { display: block; color: var(--dim); font-size: 0.78rem; }

/* Sector cards */
.sector { scroll-margin-top: 90px; }
.sector h3 { margin: 0 0 10px; font-size: 1.3rem; }
.sector ul { list-style: none; margin-top: 18px; }
.sector li { font-size: 0.88rem; color: var(--muted); padding: 8px 0 8px 22px; border-top: 1px solid var(--border); position: relative; }
.sector li::before { content: "✓"; position: absolute; left: 0; color: var(--text); }
.services__note { margin-top: 32px; }
.link { color: var(--text); border-bottom: 1px solid rgba(255,255,255,.3); }
.work__more { margin-top: 48px; }

/* Custom projects page */
.hero--sm { padding: 100px 0 80px; }
.hero--sm .step { margin-bottom: 18px; }
.cases { display: flex; flex-direction: column; gap: 110px; }
.case__title { font-size: clamp(1.4rem, 2.5vw, 1.9rem); margin: 0 0 24px; }
.case__block { margin-bottom: 18px; }
.case__block h5 { font-size: 0.68rem; letter-spacing: .14em; color: var(--dim); font-weight: 500; margin-bottom: 4px; }
.case__block p { margin: 0; font-size: 0.95rem; }
.case__result { display: flex; align-items: baseline; gap: 12px; margin-top: 26px; padding-top: 20px; border-top: 1px solid var(--border); }
.case__result strong { font-size: 2rem; font-weight: 500; }
.case__result span { color: var(--muted); font-size: 0.88rem; }

@media (min-width: 901px) { .split--rev > :first-child { order: 2; } }
@media (max-width: 640px) {
  .nav__links { display: flex; gap: 14px; font-size: 0.8rem; }
  .hide-mobile, .nav__right > .btn { display: none; }
  .dropdown__menu { left: 0; transform: translate(0, -6px); min-width: 260px; }
  .dropdown.open .dropdown__menu { transform: translate(0, 0); }
  .cases { gap: 72px; }
}

.grid--2 { grid-template-columns: repeat(2, 1fr); max-width: 760px; margin-left: auto; margin-right: auto; }
@media (max-width: 640px) { .grid--2 { grid-template-columns: 1fr; } }

/* Legal pages */
html[lang="sl"] [data-lang-block="en"], html[lang="en"] [data-lang-block="sl"] { display: none; }
.legal__inner { max-width: 760px; }
.legal h1 { font-size: clamp(2rem, 4vw, 2.8rem); margin-bottom: 8px; }
.legal__date { color: var(--dim); font-size: 0.85rem; margin-bottom: 32px; }
.legal h2 { font-size: 1.2rem; margin: 40px 0 12px; }
.legal p, .legal li { color: var(--muted); font-size: 0.95rem; }
.legal p { margin-bottom: 12px; }
.legal ul { padding-left: 20px; margin-bottom: 12px; }
.legal li { margin-bottom: 6px; }
.legal strong { color: var(--text); font-weight: 500; }
.legal a { color: var(--text); border-bottom: 1px solid rgba(255,255,255,.3); }

/* Founder (single person) */
.founder { display: grid; grid-template-columns: 340px 1fr; gap: 48px; align-items: center; max-width: 860px; margin: 48px auto 0; text-align: left; }
.founder .avatar { background: #0066ff; }
.founder h3 { margin-top: 0; font-size: 1.5rem; }
.founder .role { color: var(--dim); font-size: 0.9rem; margin: 2px 0 16px; }
.founder .muted { margin-bottom: 24px; }
@media (max-width: 720px) { .founder { grid-template-columns: 1fr; gap: 28px; max-width: 380px; } }
.founder .avatar { background: var(--bg); border: 0; border-radius: 0; }

/* Case study results (multiple metrics) */
.case__results { display: flex; flex-wrap: wrap; gap: 20px 36px; margin-top: 8px; padding-top: 16px; border-top: 1px solid var(--border); }
.case__results div { display: flex; flex-direction: column; max-width: 220px; }
.case__results strong { font-size: 1.8rem; font-weight: 500; line-height: 1.2; }
.case__results span { color: var(--muted); font-size: 0.85rem; }
.cases .case { scroll-margin-top: 90px; }
.media--phone { aspect-ratio: 4 / 5; width: 100%; max-width: 440px; justify-self: center; }

/* Brand logo */
.logo { display: inline-flex; align-items: center; }
.logo img { height: 22px; width: auto; }
.footer__mark { width: 48px; height: auto; opacity: .25; }
.cases { scroll-margin-top: 64px; }

/* ================= Premium + glass layer ================= */

/* Ambient brand glow behind everything (gives glass something to refract) */
body { position: relative; }
body::before {
  content: ""; position: fixed; inset: 0; z-index: -1; pointer-events: none;
  background:
    radial-gradient(40vw 40vw at 85% 10%, rgba(51, 96, 255, 0.10), transparent 70%),
    radial-gradient(45vw 45vw at 5% 55%, rgba(90, 80, 220, 0.07), transparent 70%),
    radial-gradient(35vw 35vw at 70% 95%, rgba(51, 96, 255, 0.06), transparent 70%),
    var(--bg);
}
body { background: transparent; }
::selection { background: rgba(51, 96, 255, 0.45); color: #fff; }

/* Hero + CTA glow nudged toward the brand blue */
.hero {
  background:
    radial-gradient(ellipse 60% 55% at 50% 0%, rgba(51, 96, 255, 0.20), transparent 70%),
    linear-gradient(180deg, rgba(14, 17, 32, 0.9) 0%, transparent 100%);
}
.hero h1 {
  background: linear-gradient(180deg, #ffffff 30%, #c9cfe2 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.cta { background: radial-gradient(ellipse 50% 60% at 50% 100%, rgba(51, 96, 255, 0.16), transparent 70%); }

/* Alt sections + footer translucent so ambient light shows through */
.section--alt {
  background: var(--bg-alt);
  border-top: 1px solid rgba(255, 255, 255, 0.04);
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
}
.footer { background: rgba(10, 12, 22, 0.6); backdrop-filter: var(--glass-blur); -webkit-backdrop-filter: var(--glass-blur); }

/* Glass nav */
.nav {
  background: rgba(8, 10, 19, 0.55);
  backdrop-filter: var(--glass-blur); -webkit-backdrop-filter: var(--glass-blur);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  box-shadow: inset 0 -1px 0 rgba(255, 255, 255, 0.02);
}

/* Glass cards */
.card {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.055), rgba(255, 255, 255, 0.018));
  border: 1px solid var(--border);
  backdrop-filter: var(--glass-blur); -webkit-backdrop-filter: var(--glass-blur);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06), 0 12px 32px rgba(0, 0, 0, 0.28);
}
.card:hover { border-color: var(--border-hi); box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08), 0 16px 40px rgba(0, 0, 0, 0.35), 0 0 0 1px rgba(51, 96, 255, 0.08); }

/* Glass dropdown + language toggle */
.dropdown__menu {
  background: rgba(16, 19, 33, 0.72);
  backdrop-filter: blur(24px) saturate(160%); -webkit-backdrop-filter: blur(24px) saturate(160%);
  border: 1px solid rgba(255, 255, 255, 0.09);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.07), 0 24px 60px rgba(0, 0, 0, 0.55);
}
.lang {
  background: rgba(255, 255, 255, 0.04);
  backdrop-filter: var(--glass-blur); -webkit-backdrop-filter: var(--glass-blur);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05);
}
.lang button.active { background: rgba(255, 255, 255, 0.12); box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.1); }

/* Buttons: soft pearl finish */
.btn--light {
  background: linear-gradient(180deg, #ffffff, #e8ebf4);
  color: var(--bg);
  box-shadow: inset 0 1px 0 #fff, 0 6px 20px rgba(0, 0, 0, 0.25);
}
.btn--light:hover { box-shadow: inset 0 1px 0 #fff, 0 10px 34px rgba(51, 96, 255, 0.28); }
.btn__arrow { background: var(--bg); }

/* Image frames get a glass rim */
.media { border-color: rgba(255, 255, 255, 0.09); box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05), 0 18px 40px rgba(0, 0, 0, 0.3); }

/* Founder photo: feather edges so it melts into any background shade */
.founder .avatar img {
  -webkit-mask-image: radial-gradient(ellipse 72% 68% at 50% 42%, #000 55%, transparent 96%);
  mask-image: radial-gradient(ellipse 72% 68% at 50% 42%, #000 55%, transparent 96%);
}
.founder .avatar { background: transparent; }

/* Stat numbers + result metrics: subtle sheen */
.stats strong, .case__results strong {
  background: linear-gradient(180deg, #ffffff, #b9c2dc);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}

/* Logo marquee strip: glass band */
.logos { background: rgba(255, 255, 255, 0.015); backdrop-filter: var(--glass-blur); -webkit-backdrop-filter: var(--glass-blur); border-color: rgba(255, 255, 255, 0.06); }

/* Nav frosting moved to a pseudo-layer so the dropdown can blur the page behind it */
.nav { background: transparent; backdrop-filter: none; -webkit-backdrop-filter: none; }
.nav::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: rgba(8, 10, 19, 0.6);
  backdrop-filter: var(--glass-blur); -webkit-backdrop-filter: var(--glass-blur);
}
.dropdown__menu {
  background: rgba(14, 17, 30, 0.82);
  backdrop-filter: blur(40px) saturate(160%); -webkit-backdrop-filter: blur(40px) saturate(160%);
}
.founder__text .muted { margin-bottom: 14px; }
.founder__text .muted + .btn { margin-top: 10px; }
