/* ============================================================
   Sourceless B2B — Premium Overlay
   Cursor blob · Smooth scroll · Magnetic hover · Section parallax
   ============================================================ */

/* ===== Custom cursor blob (desktop only — additive, real cursor stays visible) ===== */
.sl-cursor-blob {
  position: fixed;
  top: 0; left: 0;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(124, 255, 106, 0.32), rgba(99, 243, 255, 0.16) 60%, transparent 80%);
  filter: blur(10px);
  pointer-events: none;
  transform: translate3d(-100px, -100px, 0);
  transition: width 0.3s cubic-bezier(.2,.8,.2,1), height 0.3s cubic-bezier(.2,.8,.2,1), opacity 0.3s ease, background 0.3s ease;
  z-index: 99998;
  mix-blend-mode: screen;
  will-change: transform;
  opacity: 0.85;
}
.sl-cursor-dot {
  /* Hidden — real OS cursor is the dot now. We keep the element so JS doesn't break. */
  display: none;
}
body.sl-cursor-hover .sl-cursor-blob {
  width: 80px;
  height: 80px;
  background: radial-gradient(circle, rgba(124, 255, 106, 0.45), rgba(99, 243, 255, 0.22) 60%, transparent 80%);
}
@media (hover: none), (pointer: coarse) {
  .sl-cursor-blob { display: none; }
}

/* ===== Scroll progress indicator ===== */
.sl-scroll-progress {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: rgba(255, 255, 255, 0.04);
  z-index: 99997;
  pointer-events: none;
}
.sl-scroll-progress-fill {
  position: absolute;
  top: 0; left: 0; bottom: 0;
  width: 0%;
  background: linear-gradient(90deg, var(--green, #b7ff5f), var(--cyan, #63f3ff), var(--violet, #8e7dff));
  background-size: 200% 100%;
  animation: slProgressShimmer 4s ease-in-out infinite;
  box-shadow: 0 0 12px rgba(124, 255, 106, 0.4);
  transition: width 0.05s linear;
}
@keyframes slProgressShimmer {
  0%, 100% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
}

/* ===== Section iframe wrapper with parallax + reveal ===== */
.sl-iframe-section {
  position: relative;
  width: 100%;
  display: block;
  margin: 0 auto;
  padding: 0;
  transform: translateY(0);
  will-change: transform;
}

/* ===== Wordmark section — tight, no padding above/below ===== */
.sl-wordmark-section {
  position: relative;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  margin: 0 auto;
  background: transparent;
}
.sl-wordmark-inner {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 720px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  padding: 0 24px;
}
.sl-wordmark-cube {
  width: 110px;
  height: auto;
  display: block;
}
.sl-wordmark-img {
  width: 100%;
  max-width: 480px;
  height: auto;
  display: block;
  margin-top: -8px;
}
@media (max-width: 720px) {
  .sl-wordmark-cube { width: 80px; }
  .sl-wordmark-img { max-width: 90%; }
}

/* ===== Inline SOURCELESS Architektur section (replaces iframe) ===== */
.sl-arch-inline {
  position: relative;
  width: 100%;
  max-width: 1200px;
  margin: 24px auto;
  padding: 0 18px;
  font-family: 'Space Grotesk', sans-serif;
}
.sl-arch-inline-shell {
  position: relative;
  padding: 54px 44px 42px;
  border-radius: 30px;
  overflow: hidden;
  background: linear-gradient(180deg, rgba(4,8,10,0.96), rgba(3,6,8,0.98));
  border: 1px solid rgba(255,255,255,0.07);
  box-shadow: 0 18px 54px rgba(0,0,0,0.30), inset 0 1px 0 rgba(255,255,255,0.04), inset 0 0 54px rgba(90,140,255,0.02);
  text-align: center;
}
.sl-arch-inline-shell::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 18% 20%, rgba(120,255,130,0.12), transparent 18%), radial-gradient(circle at 82% 64%, rgba(125,150,255,0.10), transparent 18%);
  pointer-events: none;
}
.sl-arch-inline-kicker {
  display: inline-flex;
  align-items: center;
  gap: 18px;
  margin: 0 0 22px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(104,235,194,0.78);
  position: relative;
  z-index: 2;
}
.sl-arch-inline-kicker::before, .sl-arch-inline-kicker::after {
  content: "";
  width: 74px;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(104,235,194,0.45), transparent);
}
.sl-arch-inline-logo {
  display: block;
  width: clamp(280px, 60vw, 540px);
  height: auto;
  margin: 0 auto 22px;
  position: relative;
  z-index: 2;
}
.sl-arch-inline-title {
  margin: 0 0 28px;
  font-size: clamp(24px, 3.4vw, 38px);
  line-height: 1.12;
  font-weight: 600;
  letter-spacing: -0.02em;
  color: rgba(237,245,232,0.98);
  position: relative;
  z-index: 2;
}
.sl-arch-inline-title .grad {
  background: linear-gradient(90deg, #f1ffe0 0%, #b8ff6a 30%, #dbfff8 62%, #cad4ff 90%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
.sl-arch-inline-intro {
  max-width: 1000px;
  margin: 0 auto 26px;
  font-size: clamp(18px, 2vw, 24px);
  line-height: 1.4;
  font-weight: 500;
  color: rgba(245,247,252,0.95);
  position: relative;
  z-index: 2;
}
.sl-arch-inline-subtitle {
  margin: 0;
  font-size: clamp(20px, 2.4vw, 28px);
  line-height: 1.14;
  font-weight: 600;
  letter-spacing: -0.02em;
  color: rgba(202,214,255,0.98);
  position: relative;
  z-index: 2;
}
@media (max-width: 720px) {
  .sl-arch-inline-shell { padding: 32px 22px 28px; border-radius: 22px; }
  .sl-arch-inline-kicker::before, .sl-arch-inline-kicker::after { width: 32px; }
}
.sl-iframe-section.sl-reveal-pending {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.9s cubic-bezier(.16,1,.3,1), transform 0.9s cubic-bezier(.16,1,.3,1);
}
.sl-iframe-section.in-view {
  opacity: 1;
  transform: translateY(0);
}
.sl-iframe-section.sl-section-wide {
  max-width: 1400px;
}
.sl-iframe-section.sl-section-tight {
  padding: 8px 0;
}

/* The iframe itself */
.sl-section-iframe {
  display: block;
  width: 100%;
  border: 0;
  background: transparent;
  margin: 0 auto;
  max-width: 980px;  /* match Wix native iframe width to prevent reflow gaps */
  pointer-events: auto;
  height: 480px;
  transition: height 0.6s cubic-bezier(.16,1,.3,1);
  overflow: hidden;
}
.sl-section-wide .sl-section-iframe {
  max-width: 1100px;
}

/* ===== Inline section headers (for headers we don't iframe anymore) ===== */
.sl-section-header {
  max-width: 980px;
  margin: 24px auto 0;
  padding: 24px 24px 0;
  font-family: 'Space Grotesk', sans-serif;
  text-align: left;
}
.sl-section-header .sl-gc-line {
  width: 70px;
  height: 2px;
  margin-bottom: 14px;
  border-radius: 999px;
  background: linear-gradient(90deg, #dfffff 0%, #b8ff6a 40%, #9fb4ff 100%);
  box-shadow: 0 0 10px rgba(160, 255, 120, 0.15), 0 0 18px rgba(160, 200, 255, 0.10);
}
.sl-section-header .sl-gc-title {
  margin: 0;
  font-size: clamp(28px, 3.5vw, 44px);
  font-weight: 600;
  letter-spacing: 0.02em;
  background: linear-gradient(90deg, #dfffff 0%, #b8ff6a 18%, #d8fff2 38%, #9fb4ff 68%, #cfc8ff 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  filter: drop-shadow(0 0 8px rgba(160, 255, 120, 0.08));
  transition: filter 0.3s ease;
}
.sl-section-header:hover .sl-gc-title {
  filter: drop-shadow(0 0 12px rgba(160, 255, 120, 0.15)) drop-shadow(0 0 18px rgba(160, 200, 255, 0.12));
}
@media (max-width: 768px) {
  .sl-section-header .sl-gc-title { font-size: clamp(24px, 6vw, 32px); }
}

/* ===== Magnetic hover targets ===== */
[data-magnetic] {
  display: inline-block;
  transition: transform 0.4s cubic-bezier(.2,.8,.2,1);
  will-change: transform;
}

/* ===== Background ambient gradient (reacts to scroll position) ===== */
body::before {
  content: "";
  position: fixed;
  top: 0; left: 0;
  width: 100%;
  height: 100%;
  background:
    radial-gradient(circle at calc(20% + var(--sl-bg-x, 0%)) calc(30% + var(--sl-bg-y, 0%)), rgba(124, 255, 106, 0.06), transparent 30%),
    radial-gradient(circle at calc(80% - var(--sl-bg-x, 0%)) calc(70% - var(--sl-bg-y, 0%)), rgba(99, 243, 255, 0.05), transparent 30%),
    radial-gradient(circle at 50% 50%, rgba(142, 125, 255, 0.03), transparent 50%);
  pointer-events: none;
  z-index: -1;
  transition: opacity 0.6s ease;
}

/* ===== Smooth content reveal on page load ===== */
@keyframes slPageEnter {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}
main {
  animation: slPageEnter 1s cubic-bezier(.16,1,.3,1);
}

/* ===== Premium nav enhancements ===== */
.sl-nav {
  transition: padding 0.4s cubic-bezier(.2,.8,.2,1), background 0.4s ease, backdrop-filter 0.4s ease;
}
body.sl-scrolled .sl-nav {
  background: rgba(2, 6, 7, 0.92);
  backdrop-filter: blur(20px) saturate(160%);
  -webkit-backdrop-filter: blur(20px) saturate(160%);
}
body.sl-scrolled .sl-nav-inner {
  padding-top: 12px;
  padding-bottom: 12px;
}

/* ===== Reduce motion ===== */
@media (prefers-reduced-motion: reduce) {
  .sl-cursor-blob, .sl-cursor-dot, .sl-scroll-progress { display: none; }
  .sl-iframe-section { opacity: 1 !important; transform: none !important; transition: none !important; }
  body { cursor: auto !important; }
  a, button, input, textarea, select, [role="button"] { cursor: pointer !important; }
}
