:root {
  --ink: #071427;
  --ink-soft: #20314b;
  --muted-ink: #607087;
  --blue: #2563ff;
  --blue-deep: #0b48d9;
  --cyan: #14b8d6;
  --mint: #2dd4bf;
  --paper: #fbfdff;
  --paper-soft: #f3f7fb;
  --line: rgba(15, 35, 64, 0.1);
  --line-strong: rgba(37, 99, 255, 0.26);
  --shadow-soft: 0 18px 50px rgba(23, 44, 76, 0.1);
  --shadow-deep: 0 36px 90px rgba(16, 38, 74, 0.18);
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
}

html {
  scroll-padding-top: 118px;
}

body.premium-site {
  overflow-x: hidden;
  color: var(--ink);
  background:
    linear-gradient(115deg, rgba(37, 99, 255, 0.08), transparent 36%),
    linear-gradient(245deg, rgba(45, 212, 191, 0.1), transparent 32%),
    linear-gradient(180deg, #ffffff 0%, #f7fbff 44%, #ffffff 100%);
  font-feature-settings: "liga" 1, "kern" 1;
  text-rendering: geometricPrecision;
}

body.premium-site::before {
  position: fixed;
  inset: 0;
  z-index: -2;
  pointer-events: none;
  content: "";
  background:
    linear-gradient(rgba(15, 35, 64, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(15, 35, 64, 0.03) 1px, transparent 1px);
  background-size: 54px 54px;
  mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.8), transparent 74%);
}

body.premium-site::after {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  content: "";
  opacity: 0.5;
  background-image: repeating-linear-gradient(
    135deg,
    rgba(255, 255, 255, 0.18) 0,
    rgba(255, 255, 255, 0.18) 1px,
    transparent 1px,
    transparent 12px
  );
}

.premium-site main,
.premium-site footer {
  position: relative;
  z-index: 1;
}

.premium-site .material-symbols-outlined {
  line-height: 1;
}

.premium-site > header {
  top: 16px !important;
  left: 50%;
  width: min(1180px, calc(100% - 32px)) !important;
  height: auto !important;
  transform: translateX(-50%);
  border: 1px solid rgba(173, 192, 215, 0.42) !important;
  border-radius: 28px;
  background: rgba(255, 255, 255, 0.82) !important;
  box-shadow: 0 18px 60px rgba(15, 35, 64, 0.14);
  backdrop-filter: blur(24px) saturate(160%);
  transition:
    transform 280ms var(--ease-out),
    opacity 240ms var(--ease-out),
    box-shadow 240ms var(--ease-out);
}

.premium-site > header.header-hidden {
  opacity: 0;
  pointer-events: none;
  transform: translate(-50%, calc(-100% - 32px));
}

.premium-site > header::before {
  position: absolute;
  inset: 0;
  z-index: -1;
  content: "";
  border-radius: inherit;
  background: linear-gradient(120deg, rgba(255, 255, 255, 0.74), rgba(255, 255, 255, 0.34));
}

.premium-site > header > div {
  min-height: 76px;
}

.premium-site > header img {
  max-height: 54px;
  filter: drop-shadow(0 8px 16px rgba(15, 35, 64, 0.12));
}

.mobile-menu-button {
  display: none;
  width: 46px;
  height: 46px;
  flex: 0 0 46px;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 5px;
  border: 1px solid rgba(173, 192, 215, 0.5);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.74);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.88), 0 10px 24px rgba(15, 35, 64, 0.08);
}

.mobile-menu-button span {
  display: block;
  width: 20px;
  height: 2px;
  border-radius: 999px;
  background: var(--ink);
  transition:
    transform 220ms var(--ease-out),
    opacity 180ms var(--ease-out);
}

.premium-site > header.mobile-menu-open .mobile-menu-button span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.premium-site > header.mobile-menu-open .mobile-menu-button span:nth-child(2) {
  opacity: 0;
}

.premium-site > header.mobile-menu-open .mobile-menu-button span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

.mobile-menu {
  display: none;
}

.premium-site > header > .mobile-menu {
  min-height: 0;
}

.premium-site nav a,
.premium-site footer a {
  position: relative;
}

.premium-site nav a::after,
.premium-site footer a::after {
  position: absolute;
  right: 0;
  bottom: -8px;
  left: 0;
  height: 2px;
  content: "";
  transform: scaleX(0);
  transform-origin: left;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--blue), var(--cyan));
  transition: transform 260ms var(--ease-out);
}

.premium-site nav a:hover::after,
.premium-site footer a:hover::after {
  transform: scaleX(1);
}

.premium-site main#top {
  padding-top: 122px !important;
}

.premium-site main > section:first-child {
  min-height: calc(100vh - 142px) !important;
  padding: clamp(30px, 4vw, 58px) 0 clamp(52px, 6vw, 86px);
  border-bottom: 1px solid rgba(173, 192, 215, 0.3);
  background:
    linear-gradient(122deg, rgba(255, 255, 255, 0.92) 0%, rgba(255, 255, 255, 0.72) 42%, rgba(232, 242, 255, 0.7) 100%),
    linear-gradient(90deg, rgba(37, 99, 255, 0.12), rgba(20, 184, 214, 0.08));
}

.premium-site main > section:first-child > .absolute {
  display: none;
}

.premium-site main > section:first-child::before {
  position: absolute;
  inset: 0;
  content: "";
  pointer-events: none;
  background:
    linear-gradient(100deg, rgba(255, 255, 255, 0.2), transparent 32%),
    repeating-linear-gradient(90deg, rgba(15, 35, 64, 0.045) 0, rgba(15, 35, 64, 0.045) 1px, transparent 1px, transparent 92px);
  mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.86), transparent 92%);
}

.premium-site main > section:first-child h1 {
  max-width: 11.5ch;
  margin-bottom: 1.45rem !important;
  letter-spacing: 0;
  text-wrap: balance;
  filter: drop-shadow(0 16px 30px rgba(15, 35, 64, 0.08));
}

.premium-site main > section:first-child h1 .text-primary {
  color: transparent !important;
  background: linear-gradient(95deg, #1f5dff 0%, #13a8ff 48%, #2dd4bf 100%);
  -webkit-background-clip: text;
  background-clip: text;
}

.premium-site main > section:first-child p {
  margin-bottom: 1.75rem !important;
  color: #53667f;
}

.premium-site main > section:first-child .mb-12 {
  margin-bottom: 2rem !important;
}

.premium-site .font-mono.text-xs.uppercase {
  letter-spacing: 0.28em !important;
}

.premium-site a[href="#povprasevanje"],
.premium-site button[type="submit"] {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.34);
  border-radius: 14px !important;
  background: linear-gradient(135deg, #1d5cff 0%, #367bff 48%, #14b8d6 100%) !important;
  box-shadow: 0 18px 44px rgba(37, 99, 255, 0.28);
  transition:
    transform 240ms var(--ease-out),
    box-shadow 240ms var(--ease-out),
    filter 240ms var(--ease-out);
}

.premium-site a[href="#povprasevanje"]::before,
.premium-site button[type="submit"]::before {
  position: absolute;
  inset: -1px auto -1px -45%;
  z-index: -1;
  width: 42%;
  content: "";
  transform: skewX(-18deg);
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.42), transparent);
  transition: left 700ms var(--ease-out);
}

.premium-site a[href="#povprasevanje"]:hover,
.premium-site button[type="submit"]:hover {
  transform: translateY(-3px);
  box-shadow: 0 24px 58px rgba(37, 99, 255, 0.34);
  filter: saturate(110%);
}

.premium-site a[href="#povprasevanje"]:hover::before,
.premium-site button[type="submit"]:hover::before {
  left: 108%;
}

.premium-site a[href="#storitve"] {
  border-color: rgba(37, 99, 255, 0.22) !important;
  border-radius: 14px !important;
  background: rgba(255, 255, 255, 0.62) !important;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.8), 0 14px 40px rgba(15, 35, 64, 0.08);
  transition:
    transform 240ms var(--ease-out),
    border-color 240ms var(--ease-out),
    background 240ms var(--ease-out);
}

.premium-site a[href="#storitve"]:hover {
  transform: translateY(-3px);
  border-color: rgba(37, 99, 255, 0.42) !important;
  background: rgba(255, 255, 255, 0.9) !important;
}

.premium-site main > section:first-child [class*="shadow-2xl"] {
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.65) !important;
  border-radius: 32px !important;
  color: #eef6ff;
  background:
    linear-gradient(155deg, rgba(8, 18, 36, 0.96) 0%, rgba(18, 42, 79, 0.92) 48%, rgba(8, 18, 36, 0.98) 100%) !important;
  box-shadow: 0 38px 110px rgba(11, 31, 68, 0.28) !important;
}

.premium-site main > section:first-child [class*="shadow-2xl"]::before {
  position: absolute;
  inset: 0;
  content: "";
  pointer-events: none;
  background:
    linear-gradient(120deg, rgba(45, 212, 191, 0.16), transparent 34%),
    linear-gradient(260deg, rgba(37, 99, 255, 0.28), transparent 46%),
    repeating-linear-gradient(90deg, rgba(255, 255, 255, 0.055) 0, rgba(255, 255, 255, 0.055) 1px, transparent 1px, transparent 38px);
}

.premium-site main > section:first-child [class*="shadow-2xl"]::after {
  position: absolute;
  inset: 0;
  content: "";
  pointer-events: none;
  transform: translateX(-120%);
  background: linear-gradient(100deg, transparent 35%, rgba(255, 255, 255, 0.16), transparent 62%);
  animation: panelSweep 7s var(--ease-out) infinite;
}

.premium-site main > section:first-child [class*="shadow-2xl"] > * {
  position: relative;
  z-index: 1;
}

.premium-site main > section:first-child [class*="shadow-2xl"] .bg-surface-container-low {
  border: 1px solid rgba(255, 255, 255, 0.08) !important;
  background: rgba(255, 255, 255, 0.055) !important;
  backdrop-filter: blur(18px);
}

.premium-site main > section:first-child [class*="shadow-2xl"] .text-primary,
.premium-site main > section:first-child [class*="shadow-2xl"] .font-mono {
  color: #7dd3fc !important;
}

.premium-site main > section:first-child [class*="shadow-2xl"] h2,
.premium-site main > section:first-child [class*="shadow-2xl"] div {
  color: #f8fbff;
}

.premium-site section[id] {
  padding-top: clamp(76px, 8vw, 124px) !important;
  padding-bottom: clamp(76px, 8vw, 124px) !important;
}

.premium-site section[id] h2 {
  letter-spacing: 0;
  line-height: 1.05;
  text-wrap: balance;
}

.premium-site #storitve .grid > .group,
.premium-site #about .grid .rounded-xl,
.premium-site #povprasevanje form,
.premium-site #povprasevanje .sticky {
  border: 1px solid rgba(173, 192, 215, 0.32) !important;
  border-radius: 22px !important;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.9), rgba(248, 251, 255, 0.72)) !important;
  box-shadow: var(--shadow-soft);
}

.premium-site #storitve .grid > .group {
  position: relative;
  overflow: hidden;
  min-height: 248px;
  transition:
    transform 280ms var(--ease-out),
    box-shadow 280ms var(--ease-out),
    border-color 280ms var(--ease-out);
}

.premium-site #storitve .grid > .group::before {
  position: absolute;
  inset: 0 0 auto;
  height: 4px;
  content: "";
  opacity: 0;
  background: linear-gradient(90deg, var(--blue), var(--cyan), var(--mint));
  transition: opacity 240ms var(--ease-out);
}

.premium-site #storitve .grid > .group:hover {
  transform: translateY(-8px);
  border-color: rgba(37, 99, 255, 0.35) !important;
  box-shadow: var(--shadow-deep);
}

.premium-site #storitve .grid > .group:hover::before {
  opacity: 1;
}

.premium-site #storitve .grid > .group > div:first-child,
.premium-site #about .grid .rounded-xl .font-mono,
.premium-site #proces [class*="h-16"][class*="w-16"] {
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.82), 0 14px 30px rgba(37, 99, 255, 0.16);
}

.premium-site #storitve .grid > .group > div:first-child {
  border-radius: 16px !important;
  background: linear-gradient(145deg, rgba(37, 99, 255, 0.14), rgba(20, 184, 214, 0.13)) !important;
}

.premium-site #proces {
  overflow: hidden;
  color: #f6fbff;
  background:
    linear-gradient(135deg, #071427 0%, #0b1d36 52%, #06101f 100%) !important;
}

.premium-site #proces::before {
  position: absolute;
  inset: 0;
  content: "";
  pointer-events: none;
  background:
    linear-gradient(90deg, rgba(37, 99, 255, 0.18), transparent 40%, rgba(45, 212, 191, 0.13)),
    repeating-linear-gradient(90deg, rgba(255, 255, 255, 0.06) 0, rgba(255, 255, 255, 0.06) 1px, transparent 1px, transparent 96px);
  mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.74), transparent 96%);
}

.premium-site #proces h2,
.premium-site #proces h3 {
  color: #ffffff;
}

.premium-site #proces p {
  color: rgba(226, 238, 255, 0.72) !important;
}

.premium-site #proces [class*="h-16"][class*="w-16"] {
  border-color: rgba(125, 211, 252, 0.34) !important;
  color: #7dd3fc !important;
  background: rgba(255, 255, 255, 0.08) !important;
  backdrop-filter: blur(16px);
}

.premium-site #proces [class*="bg-outline-variant"] {
  background: linear-gradient(90deg, rgba(125, 211, 252, 0.55), rgba(45, 212, 191, 0.22)) !important;
}

.premium-site #portfolio article {
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(173, 192, 215, 0.34) !important;
  border-radius: 24px !important;
  background: rgba(255, 255, 255, 0.9) !important;
  box-shadow: var(--shadow-soft);
  transition:
    transform 320ms var(--ease-out),
    box-shadow 320ms var(--ease-out),
    border-color 320ms var(--ease-out);
}

.premium-site #portfolio article:hover {
  transform: translateY(-8px);
  border-color: rgba(37, 99, 255, 0.34) !important;
  box-shadow: var(--shadow-deep);
}

.premium-site #portfolio article > div:first-child {
  height: clamp(210px, 18vw, 270px) !important;
  border: 1px solid rgba(15, 35, 64, 0.08) !important;
  border-radius: 18px !important;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.85);
}

.premium-site #portfolio img {
  transition: transform 700ms var(--ease-out), filter 700ms var(--ease-out);
}

.premium-site #portfolio article:hover img {
  transform: scale(1.055);
  filter: saturate(106%) contrast(103%);
}

.premium-site #portfolio article h3 {
  letter-spacing: 0;
}

.premium-site #about {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0), rgba(239, 247, 255, 0.62) 48%, rgba(255, 255, 255, 0));
}

.premium-site #about .lg\:col-span-5 {
  position: relative;
}

.premium-site #about .lg\:col-span-5::after {
  display: block;
  width: min(100%, 320px);
  height: 4px;
  margin-top: 30px;
  content: "";
  border-radius: 999px;
  background: linear-gradient(90deg, var(--blue), var(--cyan), transparent);
}

.premium-site #about .grid .rounded-xl {
  transition: transform 260ms var(--ease-out), box-shadow 260ms var(--ease-out);
}

.premium-site #about .grid .rounded-xl:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-deep);
}

.premium-site #povprasevanje {
  background:
    linear-gradient(122deg, rgba(239, 247, 255, 0.88), rgba(255, 255, 255, 0.58)),
    repeating-linear-gradient(135deg, rgba(15, 35, 64, 0.035) 0, rgba(15, 35, 64, 0.035) 1px, transparent 1px, transparent 18px);
}

.premium-site #povprasevanje form {
  padding: clamp(22px, 4vw, 38px);
}

.premium-site #povprasevanje input,
.premium-site #povprasevanje textarea,
.premium-site #povprasevanje label > .flex {
  border-color: rgba(173, 192, 215, 0.48) !important;
  border-radius: 16px !important;
  background: rgba(255, 255, 255, 0.78) !important;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.9);
}

.premium-site #povprasevanje input:focus,
.premium-site #povprasevanje textarea:focus {
  border-color: rgba(37, 99, 255, 0.56) !important;
  box-shadow: 0 0 0 4px rgba(37, 99, 255, 0.13), inset 0 1px 0 rgba(255, 255, 255, 0.9) !important;
}

.premium-site #povprasevanje label > .flex {
  transition:
    transform 220ms var(--ease-out),
    border-color 220ms var(--ease-out),
    background 220ms var(--ease-out),
    box-shadow 220ms var(--ease-out);
}

.premium-site #povprasevanje label:hover > .flex {
  transform: translateY(-2px);
  border-color: rgba(37, 99, 255, 0.38) !important;
  box-shadow: 0 14px 30px rgba(15, 35, 64, 0.08);
}

.premium-site #povprasevanje .peer:checked + .flex {
  border-color: rgba(37, 99, 255, 0.64) !important;
  background: rgba(37, 99, 255, 0.08) !important;
}

.premium-site #povprasevanje .sticky {
  overflow: hidden;
  border-radius: 26px !important;
  box-shadow: var(--shadow-deep) !important;
}

.premium-site #povprasevanje .sticky::before {
  display: block;
  height: 5px;
  margin: -32px -32px 28px;
  content: "";
  background: linear-gradient(90deg, var(--blue), var(--cyan), var(--mint));
}

.premium-site footer {
  color: rgba(248, 251, 255, 0.88);
  border-top: 0 !important;
  background:
    linear-gradient(135deg, #071427 0%, #0d213c 48%, #06101f 100%) !important;
}

.premium-site footer .text-text-muted {
  color: rgba(226, 238, 255, 0.64) !important;
}

.premium-site footer .text-on-surface {
  color: #ffffff !important;
}

.premium-site footer img {
  filter: brightness(0) invert(1) drop-shadow(0 12px 24px rgba(0, 0, 0, 0.18));
}

.motion-ready {
  opacity: 0;
  filter: blur(8px);
  transform: translateY(24px);
  transition:
    opacity 760ms var(--ease-out),
    filter 760ms var(--ease-out),
    transform 760ms var(--ease-out);
  transition-delay: var(--motion-delay, 0ms);
}

.motion-ready.is-visible {
  opacity: 1;
  filter: blur(0);
  transform: translateY(0);
}

@keyframes panelSweep {
  0%,
  35% {
    transform: translateX(-120%);
  }

  58%,
  100% {
    transform: translateX(120%);
  }
}

@media (max-width: 1024px) {
  .premium-site > header {
    width: min(100% - 24px, 1180px) !important;
    border-radius: 24px;
  }

  .premium-site main#top {
    padding-top: 112px !important;
  }

  .premium-site main > section:first-child h1 {
    max-width: 100%;
  }
}

@media (max-width: 768px) {
  html {
    scroll-padding-top: 94px;
  }

  body.premium-site {
    background:
      linear-gradient(120deg, rgba(37, 99, 255, 0.09), transparent 42%),
      linear-gradient(180deg, #ffffff 0%, #f6fbff 54%, #ffffff 100%);
  }

  .premium-site > header {
    top: 10px !important;
    width: calc(100% - 20px) !important;
    border-radius: 20px;
  }

  .premium-site > header > div {
    min-height: 68px;
    padding-right: 16px !important;
    padding-left: 16px !important;
  }

  .premium-site > header img {
    max-height: 46px;
  }

  .premium-site > header .desktop-cta {
    display: none;
  }

  .mobile-menu-button {
    display: flex;
  }

  .mobile-menu {
    display: block;
    overflow: hidden;
    max-height: 0;
    opacity: 0;
    visibility: hidden;
    padding: 0 16px;
    transition:
      max-height 260ms var(--ease-out),
      opacity 180ms var(--ease-out),
      visibility 180ms var(--ease-out),
      padding-bottom 260ms var(--ease-out);
  }

  .premium-site > header.mobile-menu-open .mobile-menu {
    max-height: 360px;
    opacity: 1;
    visibility: visible;
    padding-bottom: 16px;
  }

  .mobile-menu-nav {
    display: flex;
    min-height: 0;
    flex-direction: column;
    gap: 6px;
    overflow: hidden;
    border-top: 1px solid rgba(173, 192, 215, 0.32);
    padding-top: 12px;
  }

  .mobile-menu-nav a {
    display: flex;
    min-height: 46px;
    align-items: center;
    justify-content: space-between;
    border-radius: 14px;
    padding: 0 14px;
    color: var(--ink-soft);
    font-weight: 700;
    transition:
      color 200ms var(--ease-out),
      background 200ms var(--ease-out);
  }

  .mobile-menu-nav a::after {
    display: none;
  }

  .mobile-menu-nav a:hover {
    color: var(--blue);
    background: rgba(37, 99, 255, 0.08);
  }

  .mobile-menu-nav .mobile-menu-cta {
    justify-content: center;
    margin-top: 6px;
    padding: 0.78rem 1rem !important;
    color: #ffffff !important;
  }

  .premium-site main#top {
    padding-top: 96px !important;
  }

  .premium-site main > section:first-child {
    min-height: auto !important;
    padding-top: 48px;
  }

  .premium-site main > section:first-child h1 {
    font-size: clamp(2.72rem, 13vw, 4.35rem) !important;
  }

  .premium-site section[id] {
    padding-top: 72px !important;
    padding-bottom: 72px !important;
  }

  .premium-site #portfolio article {
    padding: 20px !important;
  }

  .premium-site #portfolio article > div:first-child {
    height: 220px !important;
  }

  .premium-site #povprasevanje .sticky::before {
    margin: -24px -24px 22px;
  }
}

@media (max-width: 520px) {
  .premium-site .font-mono.text-xs.uppercase {
    letter-spacing: 0.2em !important;
  }

  .premium-site #portfolio article > div:first-child {
    height: 190px !important;
  }

  .premium-site footer {
    padding-top: 72px !important;
  }
}

@media (prefers-reduced-motion: reduce) {
  .premium-site *,
  .premium-site *::before,
  .premium-site *::after {
    animation-duration: 1ms !important;
    scroll-behavior: auto !important;
    transition-duration: 1ms !important;
  }

  .motion-ready {
    opacity: 1;
    filter: none;
    transform: none;
  }
}
