/* NexoraIT - services showcase matching reference image */

/* Top layout: left text + right image */
.sx {
  position: relative;
  padding: clamp(48px, 6vw, 96px) 0 clamp(40px, 4vw, 64px);
  background: #050a1c;
  overflow: hidden;
}

.sx-inner {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: clamp(32px, 4vw, 64px);
  align-items: center;
}

/* Left column */
.sx-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border: 1px solid #9a55e9;
  border-radius: 20px;
  padding: 3px 13px;
  background: rgba(41, 20, 62, 0.35);
  color: #dbb5ff;
  font-size: 12px;
  font-weight: 600;
  line-height: 1.3;
  margin-bottom: 20px;
}

.sx-code {
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 11px;
  color: #b388ff;
}

.sx-title {
  margin: 0 0 16px;
  font-size: clamp(2.2rem, 4.6vw, 3.8rem);
  line-height: 0.96;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: #f9f8ff;
  text-wrap: balance;
}

.sx-word-accent {
  background: linear-gradient(90deg, #a85aff 0%, #c45eff 45%, #8352fc 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.sx-lede {
  margin: 0 0 26px;
  color: #bfc1d0;
  font-size: clamp(0.95rem, 1vw, 1.05rem);
  line-height: 1.65;
  max-width: 30rem;
}

/* Features: 2x2 grid */
.sx-features {
  list-style: none;
  margin: 0 0 26px;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px 24px;
}

.sx-features li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
}

.sx-ico {
  flex: 0 0 40px;
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: linear-gradient(160deg, rgba(168, 90, 255, 0.22), rgba(73, 186, 255, 0.06));
  border: 1px solid rgba(168, 90, 255, 0.35);
  display: grid;
  place-items: center;
  color: #d9a6ff;
}

.sx-ico svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.sx-features h3 {
  margin: 1px 0 2px;
  font-size: 0.95rem;
  font-weight: 700;
  color: #f9f8ff;
}

.sx-features p {
  margin: 0;
  color: #9fa2b6;
  font-size: 0.84rem;
  line-height: 1.4;
}

/* Actions */
.sx-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px 20px;
  margin-bottom: 26px;
}

.sx-cta {
  gap: 8px;
  min-height: 46px;
  padding: 0 22px;
  background: linear-gradient(130deg, #a85aff, #8352fc 55%, #6f74fd);
  border: none;
  color: #fff;
  font-weight: 700;
  font-size: 0.95rem;
  box-shadow: 0 12px 30px -12px rgba(168, 90, 255, 0.8);
}

.sx-cta svg {
  width: 16px;
  height: 16px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.sx-ghost {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 46px;
  color: #e7e6f2;
  font-size: 0.9rem;
  font-weight: 600;
  text-decoration: none;
  border: 1px solid rgba(167, 170, 220, 0.34);
  border-radius: 30px;
  padding: 0 18px;
  background: rgba(255, 255, 255, 0.03);
  transition: border-color 0.3s ease, background 0.3s ease, color 0.3s ease;
}

.sx-ghost:hover {
  border-color: rgba(168, 90, 255, 0.8);
  color: #fff;
  background: rgba(168, 90, 255, 0.12);
}

.sx-play {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: 1px solid rgba(167, 170, 220, 0.34);
  background: rgba(255, 255, 255, 0.04);
  transition: border-color 0.3s ease, background 0.3s ease, transform 0.3s ease;
}

.sx-ghost:hover .sx-play {
  border-color: rgba(168, 90, 255, 0.8);
  background: rgba(168, 90, 255, 0.18);
  transform: scale(1.04);
}

.sx-play svg {
  width: 13px;
  height: 13px;
  fill: currentColor;
  stroke: none;
  margin-left: 1px;
}

/* Stats */
.sx-stats {
  display: flex;
  gap: clamp(20px, 3vw, 42px);
  list-style: none;
  margin: 0;
  padding: 0;
}

.sx-stats li {
  min-width: 86px;
}

.sx-stats dt {
  margin: 0 0 2px;
  font-size: clamp(1.3rem, 2vw, 1.75rem);
  font-weight: 800;
  color: #c45eff;
  letter-spacing: -0.02em;
  font-variant-numeric: tabular-nums;
}

.sx-stats dd {
  margin: 0;
  color: #9a9db0;
  font-size: 0.78rem;
  letter-spacing: 0.01em;
}

/* Right column image */
.sx-right {
  position: relative;
}

.sx-frame {
  position: relative;
  border-radius: clamp(16px, 2vw, 24px);
  overflow: hidden;
  border: 1px solid rgba(167, 170, 220, 0.18);
  box-shadow:
    0 0 0 1px rgba(168, 90, 255, 0.25) inset,
    0 0 60px rgba(168, 90, 255, 0.15);
}

.sx-frame img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  transition: opacity 0.4s ease;
}

/* Carousel bottom */
.sx-carousel-wrap {
  position: relative;
  margin-top: clamp(32px, 4vw, 56px);
  padding: 0 clamp(12px, 2vw, 40px);
}

.sx-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1px solid rgba(167, 170, 220, 0.34);
  background: rgba(20, 25, 45, 0.6);
  color: #dbb5ff;
  font-size: 16px;
  font-weight: 700;
  cursor: pointer;
  z-index: 2;
  transition: border-color 0.3s ease, background 0.3s ease, color 0.3s ease;
}

.sx-nav.sx-prev { left: 0; }
.sx-nav.sx-next { right: 0; }

.sx-nav:hover {
  border-color: #a85aff;
  color: #fff;
  background: rgba(168, 90, 255, 0.16);
}

.sx-carousel {
  display: flex;
  gap: 12px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  padding: 8px 0;
}

.sx-carousel::-webkit-scrollbar { display: none; }

.sx-card {
  flex: 0 0 auto;
  width: min(250px, 92vw);
  border-radius: 14px;
  border: 1px solid rgba(167, 170, 220, 0.14);
  background: rgba(21, 27, 48, 0.4);
  overflow: hidden;
  scroll-snap-align: start;
  cursor: pointer;
  transition: border-color 0.35s ease, box-shadow 0.35s ease, transform 0.35s ease;
}

.sx-card.sx-active {
  border-color: #a85aff;
  box-shadow: 0 0 0 1px #a85aff inset, 0 0 40px rgba(168, 90, 255, 0.35);
  transform: translateY(-2px);
}

.sx-card:hover {
  border-color: rgba(168, 90, 255, 0.6);
  box-shadow: 0 0 0 1px rgba(168, 90, 255, 0.4) inset;
}

.sx-card img {
  display: block;
  width: 100%;
  height: 130px;
  object-fit: cover;
  background: #0b1022;
}

.sx-card-eyebrow {
  display: inline-block;
  padding: 4px 8px;
  border-radius: 6px;
  background: rgba(168, 90, 255, 0.12);
  color: #c45eff;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.04em;
  margin: 10px 10px 4px;
}

.sx-card h3 {
  margin: 2px 10px 10px;
  font-size: 0.92rem;
  font-weight: 600;
  color: #f9f8ff;
}

/* Responsive */
@media (max-width: 1080px) {
  .sx-inner { grid-template-columns: 1fr; gap: clamp(24px, 4vw, 40px); }
  .sx-title { font-size: clamp(2rem, 6vw, 3rem); }
  .sx-frame { order: -1; }
}

@media (max-width: 720px) {
  .sx-features { grid-template-columns: 1fr; }
  .sx-stats { gap: 20px 24px; }
  .sx-carousel-wrap { padding: 0 12px; }
}

@media (prefers-reduced-motion: reduce) {
  .sx-card, .sx-nav, .sx-ghost, .sx-play { transition: none; }
}

.sx-left { transition: opacity 0.45s ease; }
