/* Xlab Software pages */
.sw-hero {
  --sw-hero-progress: 0;
  --sw-hero-overlay-fade: 0;
  --sw-hero-copy-fade: 0;
  --sw-hero-copy-y: 0px;
  --sw-hero-video-ratio: 1.62;
  --sw-hero-video-inverse: 0.6173;
  --sw-hero-video-scale: 1;
  min-height: 100vh;
  min-height: 100svh;
  position: relative;
  display: flex;
  align-items: center;
  overflow: hidden;
  background: #050505;
  color: #fff;
}
.sw-hero-cinematic {
  min-height: 190vh;
  min-height: 190svh;
  display: block;
  overflow: visible;
}
.sw-hero-stage {
  width: 100%;
  min-height: 100vh;
  min-height: 100svh;
  position: relative;
  display: flex;
  align-items: center;
  overflow: hidden;
}
.sw-hero-cinematic .sw-hero-stage {
  position: sticky;
  top: 0;
}
.sw-hero-media {
  position: absolute;
  inset: 0;
  overflow: hidden;
  background: #000;
}
.sw-hero-media iframe,
.sw-hero-media video,
.sw-hero-media img {
  width: min(100vw, calc(100vh * var(--sw-hero-video-ratio)));
  height: min(calc(100vw * var(--sw-hero-video-inverse)), 100vh);
  min-width: 0;
  min-height: 0;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) scale(var(--sw-hero-video-scale));
  transform-origin: center center;
  border: 0;
  object-fit: contain;
  pointer-events: none;
  will-change: transform;
}
@supports (height: 100svh) {
  .sw-hero-media iframe,
  .sw-hero-media video,
  .sw-hero-media img {
    width: min(100vw, calc(100svh * var(--sw-hero-video-ratio)));
    height: min(calc(100vw * var(--sw-hero-video-inverse)), 100svh);
  }
  .sw-hero-media::before {
    width: min(100vw, calc(100svh * var(--sw-hero-video-ratio)));
    height: min(calc(100vw * var(--sw-hero-video-inverse)), 100svh);
  }
}
.sw-hero-media::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(0,0,0,0.5) 0%, rgba(0,0,0,0.28) 42%, rgba(0,0,0,0.08) 100%),
    linear-gradient(180deg, rgba(0,0,0,0.2) 0%, rgba(0,0,0,0.04) 52%, rgba(0,0,0,0.42) 100%);
  opacity: calc(1 - var(--sw-hero-overlay-fade));
  transition: opacity 120ms linear;
  pointer-events: none;
}
.sw-hero-media::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: min(100vw, calc(100vh * var(--sw-hero-video-ratio)));
  height: min(calc(100vw * var(--sw-hero-video-inverse)), 100vh);
  transform: translate(-50%, -50%);
  z-index: 1;
  pointer-events: none;
  box-shadow:
    inset 0 4px 0 #000,
    inset 0 -4px 0 #000;
}
@supports (height: 100svh) {
  .sw-hero-media::before {
    width: min(100vw, calc(100svh * var(--sw-hero-video-ratio)));
    height: min(calc(100vw * var(--sw-hero-video-inverse)), 100svh);
  }
}
.sw-hero-inner {
  width: min(1200px, calc(100% - 64px));
  margin: 0 auto;
  position: relative;
  z-index: 2;
  padding-top: var(--nav-height);
  opacity: calc(1 - var(--sw-hero-copy-fade));
  transform: translateY(var(--sw-hero-copy-y));
  will-change: opacity, transform;
}
.sw-kicker {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.68);
  margin-bottom: 18px;
}
.sw-hero h1 {
  max-width: 760px;
  font-size: clamp(36px, 4.7vw, 64px);
  line-height: 1.08;
  font-weight: 700;
  letter-spacing: 0;
  margin-bottom: 24px;
}
.sw-hero p {
  max-width: 620px;
  font-size: clamp(14px, 1.05vw, 17px);
  line-height: 1.7;
  color: rgba(255,255,255,0.78);
}
.sw-hero-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 34px;
}
.sw-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 22px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
}
.sw-btn-primary { background: #fff; color: #111; }
.sw-btn-secondary { background: rgba(255,255,255,0.12); color: #fff; border: 1px solid rgba(255,255,255,0.32); }
.sw-scroll {
  position: absolute;
  left: 50%;
  bottom: 28px;
  transform: translateX(-50%);
  z-index: 2;
  font-size: 11px;
  letter-spacing: 0.16em;
  color: rgba(255,255,255,0.78);
  text-transform: uppercase;
  opacity: calc(1 - var(--sw-hero-copy-fade));
  transition: opacity 120ms linear;
}
body.sw-has-scroll-hero nav {
  transition: transform 220ms ease, opacity 220ms ease;
  will-change: transform, opacity;
}
body.sw-hero-video-focus nav {
  display: none;
  transform: none;
  opacity: 0;
  border: 0;
  box-shadow: none;
  pointer-events: none;
}
body.sw-hero-video-focus .mega-backdrop {
  display: none;
}
body.sw-hero-video-focus .chat-toggle,
body.sw-hero-video-focus .chat-bubble {
  opacity: 0;
  pointer-events: none;
  transform: translateY(12px);
}
.sw-section {
  padding: clamp(72px, 8vw, 128px) 32px;
  background: #fff;
  color: #111;
}
.sw-section-dark {
  background: #101214;
  color: #fff;
}
.sw-full-image-section {
  padding: 0;
  overflow: hidden;
  background: #fff;
}
.sw-full-image-section.sw-section-dark {
  background: #000;
}
.sw-full-image-section img {
  display: block;
  width: 100%;
  height: auto;
}
.sw-inner {
  width: min(1180px, 100%);
  margin: 0 auto;
}
.sw-header {
  max-width: 1080px;
  margin-bottom: 48px;
}
.sw-label {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #757575;
  margin-bottom: 12px;
}
.sw-section-dark .sw-label { color: rgba(255,255,255,0.6); }
.sw-title {
  font-size: clamp(22px, 2.25vw, 32px);
  line-height: 1.18;
  font-weight: 700;
  margin-bottom: 18px;
  max-width: 100%;
  text-wrap: balance;
}
.sw-desc {
  font-size: clamp(14px, 1vw, 16px);
  line-height: 1.8;
  color: #666;
}
.sw-section-dark .sw-desc { color: rgba(255,255,255,0.68); }
.sw-card-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}
.sw-card-grid-3 {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}
.sw-card {
  display: flex;
  flex-direction: column;
  min-height: 220px;
  padding: 28px;
  border: 1px solid #e7e7e7;
  border-radius: 8px;
  background: #fff;
  color: #111;
  text-decoration: none;
}
.sw-section-dark .sw-card {
  background: rgba(255,255,255,0.06);
  border-color: rgba(255,255,255,0.12);
  color: #fff;
}
.sw-card h3 {
  font-size: clamp(22px, 2vw, 30px);
  font-weight: 700;
  margin-bottom: 12px;
}
.sw-card p {
  font-size: 15px;
  line-height: 1.7;
  color: #666;
  margin-bottom: 24px;
}
.sw-section-dark .sw-card p { color: rgba(255,255,255,0.65); }
.sw-card span {
  margin-top: auto;
  font-size: 13px;
  font-weight: 700;
  color: #111;
}
.sw-section-dark .sw-card span { color: #fff; }
.sw-image-wrap {
  overflow: hidden;
  border-radius: 8px;
  background: #f3f3f3;
  border: 1px solid #e6e6e6;
}
.sw-image-wrap img {
  display: block;
  width: 100%;
  height: auto;
}
.sw-split {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.35fr);
  gap: clamp(32px, 5vw, 72px);
  align-items: center;
}
.sw-stat-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-top: 28px;
}
.sw-stat {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 20px 24px;
  border: 1px solid #e5e5e5;
  border-radius: 8px;
  min-width: 0;
}
.sw-section-dark .sw-stat { border-color: rgba(255,255,255,0.14); }
.sw-stat strong {
  display: block;
  font-size: clamp(28px, 2.35vw, 44px);
  line-height: 1.08;
  margin-bottom: 8px;
  white-space: nowrap;
}
.sw-stat small {
  display: block;
  font-size: 12px;
  line-height: 1.5;
  color: #777;
}
.sw-section-dark .sw-stat small { color: rgba(255,255,255,0.58); }
.sw-process {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}
.sw-process-item {
  min-height: 180px;
  padding: 24px;
  border: 1px solid #e5e5e5;
  border-radius: 8px;
}
.sw-process-item b {
  display: block;
  font-size: 12px;
  letter-spacing: 0.12em;
  color: #888;
  margin-bottom: 18px;
}
.sw-process-item h3 {
  font-size: 18px;
  margin-bottom: 10px;
}
.sw-process-item p {
  font-size: 14px;
  line-height: 1.7;
  color: #666;
}
.sw-note {
  margin-top: 28px;
  font-size: 12px;
  line-height: 1.7;
  color: #888;
}
.sw-xbridge-overview {
  background: #101214;
  color: #fff;
}
.sw-xbridge-overview .sw-label { color: rgba(255,255,255,0.62); }
.sw-xbridge-overview .sw-desc { color: rgba(255,255,255,0.7); }
.sw-xbridge-overview .sw-image-wrap {
  background: #060606;
  border-color: rgba(255,255,255,0.12);
}
@media (max-width: 900px) {
  .sw-hero-inner { width: min(100% - 40px, 640px); }
  .sw-card-grid,
  .sw-card-grid-3,
  .sw-split,
  .sw-process { grid-template-columns: 1fr; }
  .sw-stat-grid { grid-template-columns: 1fr; }
  .sw-card { min-height: auto; }
}
@media (max-width: 560px) {
  .sw-section { padding-left: 20px; padding-right: 20px; }
  .sw-hero h1 { font-size: clamp(32px, 11vw, 48px); }
  .sw-hero p { font-size: 15px; }
}
