/**
 * Service Spotlight — Premium Enterprise SaaS
 */

/* ── Sidebar: active glow, gradient border, arrow ── */
.itwh-chapter--grey.solutions .solutions__sidebar-item {
  position: relative;
  z-index: 0;
  gap: 16px;
  padding-right: 20px;
}

.itwh-chapter--grey.solutions .solutions__sidebar-arrow {
  margin-left: auto;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 10px;
  color: rgba(17, 17, 17, 0.2);
  background: rgba(var(--itwh-brand-rgb), 0.06);
  opacity: 0;
  transform: translateX(-6px);
  transition: opacity 0.35s ease, transform 0.35s cubic-bezier(0.25, 1, 0.5, 1),
    background 0.35s ease, color 0.35s ease, box-shadow 0.35s ease;
  flex-shrink: 0;
}

.itwh-chapter--grey.solutions .solutions__sidebar-item:hover .solutions__sidebar-arrow {
  opacity: 0.7;
  transform: translateX(0);
  color: var(--itwh-brand);
}

.itwh-chapter--grey.solutions .solutions__sidebar-item.active {
  border: 1px solid transparent;
  background: linear-gradient(#fff, #fff) padding-box,
    linear-gradient(135deg, rgba(var(--itwh-brand-rgb), 0.55), rgba(var(--itwh-brand-light-rgb), 0.25)) border-box;
  box-shadow: 0 4px 24px rgba(var(--itwh-brand-rgb), 0.12),
    0 0 0 1px rgba(var(--itwh-brand-rgb), 0.06),
    inset 0 1px 0 rgba(255, 255, 255, 0.9);
}

.itwh-chapter--grey.solutions .solutions__sidebar-item.active::after {
  content: "";
  position: absolute;
  inset: -1px;
  border-radius: inherit;
  background: radial-gradient(ellipse at 0% 50%, rgba(var(--itwh-brand-rgb), 0.14), transparent 65%);
  pointer-events: none;
  z-index: 0;
}

.itwh-chapter--grey.solutions .solutions__sidebar-item.active .num,
.itwh-chapter--grey.solutions .solutions__sidebar-item.active .title {
  position: relative;
  z-index: 1;
}

.itwh-chapter--grey.solutions .solutions__sidebar-item.active .num {
  font-weight: 800;
}

.itwh-chapter--grey.solutions .solutions__sidebar-item.active .title {
  font-weight: 700;
  color: var(--itwh-text);
}

.itwh-chapter--grey.solutions .solutions__sidebar-item.active .solutions__sidebar-arrow {
  opacity: 1;
  transform: translateX(0);
  background: var(--itwh-brand);
  color: #fff;
  box-shadow: 0 4px 14px rgba(var(--itwh-brand-rgb), 0.35);
}

/* ── Visual stage (center panel) ── */
.solutions__visual-stage {
  position: relative;
  width: 100%;
}

.solutions__visual-scene {
  position: relative;
  border-radius: 22px;
  overflow: hidden;
  min-height: 520px;
  max-height: 520px;
  border: 1px solid var(--itwh-border-light, rgba(255, 255, 255, 0.08));
  box-shadow: 0 24px 48px rgba(0, 0, 0, 0.08), 0 8px 16px rgba(0, 0, 0, 0.04);
  isolation: isolate;
}

@media (max-width: 1199px) {
  .solutions__visual-scene {
    min-height: 400px;
    max-height: 400px;
  }
}

@media (max-width: 575px) {
  .solutions__visual-scene {
    min-height: 320px;
    max-height: 320px;
    border-radius: 18px;
  }
}

.solutions__visual-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  transition: transform 0.5s cubic-bezier(0.25, 1, 0.5, 1);
  will-change: transform;
}

.solutions__visual-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(60px);
  opacity: 0.7;
  animation: spotlightOrbDrift 8s ease-in-out infinite alternate;
}

.solutions__visual-orb--1 {
  width: 280px;
  height: 280px;
  top: -80px;
  right: -60px;
}

.solutions__visual-orb--2 {
  width: 220px;
  height: 220px;
  bottom: -60px;
  left: -40px;
  animation-delay: -3s;
  animation-duration: 10s;
}

.solutions__visual-grid {
  position: absolute;
  inset: 0;
  background-image: linear-gradient(rgba(255, 255, 255, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.04) 1px, transparent 1px);
  background-size: 32px 32px;
  mask-image: radial-gradient(ellipse at 50% 50%, black 20%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse at 50% 50%, black 20%, transparent 75%);
}

/* Per-service background palettes */
.solutions__visual-scene--platform .solutions__visual-bg {
  background: linear-gradient(145deg, #0f0c29 0%, #302b63 45%, #24243e 100%);
}
.solutions__visual-scene--platform .solutions__visual-orb--1 { background: #6d52f4; }
.solutions__visual-scene--platform .solutions__visual-orb--2 { background: #4facfe; }

.solutions__visual-scene--erp .solutions__visual-bg {
  background: linear-gradient(145deg, #0d1b2a 0%, #1b4332 50%, #081c15 100%);
}
.solutions__visual-scene--erp .solutions__visual-orb--1 { background: #2d6a4f; }
.solutions__visual-scene--erp .solutions__visual-orb--2 { background: #40916c; }

.solutions__visual-scene--crm .solutions__visual-bg {
  background: linear-gradient(145deg, #1a1a2e 0%, #16213e 50%, #0f3460 100%);
}
.solutions__visual-scene--crm .solutions__visual-orb--1 { background: #e94560; }
.solutions__visual-scene--crm .solutions__visual-orb--2 { background: #6d52f4; }

.solutions__visual-scene--mobile .solutions__visual-bg {
  background: linear-gradient(145deg, #141e30 0%, #243b55 50%, #1a1a2e 100%);
}
.solutions__visual-scene--mobile .solutions__visual-orb--1 { background: #667eea; }
.solutions__visual-scene--mobile .solutions__visual-orb--2 { background: #764ba2; }

.solutions__visual-scene--ai .solutions__visual-bg {
  background: linear-gradient(145deg, #0c0c1d 0%, #1a0a2e 50%, #16003b 100%);
}
.solutions__visual-scene--ai .solutions__visual-orb--1 { background: #a855f7; }
.solutions__visual-scene--ai .solutions__visual-orb--2 { background: #06b6d4; }

.solutions__visual-scene--automation .solutions__visual-bg {
  background: linear-gradient(145deg, #0f172a 0%, #1e293b 50%, #0c4a6e 100%);
}
.solutions__visual-scene--automation .solutions__visual-orb--1 { background: #0ea5e9; }
.solutions__visual-scene--automation .solutions__visual-orb--2 { background: #6366f1; }

.solutions__visual-scene--ecommerce .solutions__visual-bg {
  background: linear-gradient(145deg, #1c1917 0%, #292524 50%, #44403c 100%);
}
.solutions__visual-scene--ecommerce .solutions__visual-orb--1 { background: #f59e0b; }
.solutions__visual-scene--ecommerce .solutions__visual-orb--2 { background: #6d52f4; }

.solutions__visual-scene--consulting .solutions__visual-bg {
  background: linear-gradient(145deg, #111827 0%, #1f2937 50%, #374151 100%);
}
.solutions__visual-scene--consulting .solutions__visual-orb--1 { background: #6d52f4; }
.solutions__visual-scene--consulting .solutions__visual-orb--2 { background: #9ca3af; }

/* ── Product mockup frame ── */
.solutions__visual-mockup {
  position: absolute;
  z-index: 2;
  left: 50%;
  top: 54%;
  transform: translate(-50%, -50%);
  width: 72%;
  max-width: 340px;
  transition: transform 0.5s cubic-bezier(0.25, 1, 0.5, 1), opacity 0.4s ease;
}

.solutions__mockup-frame {
  background: rgba(255, 255, 255, 0.97);
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.35), 0 0 0 1px rgba(255, 255, 255, 0.1);
}

.solutions__mockup-bar {
  display: flex;
  gap: 6px;
  padding: 10px 14px;
  background: #f4f4f5;
  border-bottom: 1px solid #e4e4e7;
}

.solutions__mockup-bar span {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #d4d4d8;
}

.solutions__mockup-bar span:first-child { background: #ef4444; }
.solutions__mockup-bar span:nth-child(2) { background: #f59e0b; }
.solutions__mockup-bar span:nth-child(3) { background: #22c55e; }

.solutions__mockup-body {
  display: flex;
  min-height: 180px;
}

.solutions__mockup-sidebar {
  width: 28%;
  background: linear-gradient(180deg, #fafafa, #f4f4f5);
  border-right: 1px solid #e4e4e7;
  padding: 12px 8px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.solutions__mockup-sidebar::before,
.solutions__mockup-sidebar::after {
  content: "";
  height: 6px;
  border-radius: 3px;
  background: #e4e4e7;
}

.solutions__mockup-sidebar::after {
  width: 70%;
  background: rgba(var(--itwh-brand-rgb), 0.35);
}

.solutions__mockup-content {
  flex: 1;
  padding: 12px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.solutions__mockup-chart {
  height: 64px;
  border-radius: 8px;
  background: linear-gradient(135deg, rgba(var(--itwh-brand-rgb), 0.12), rgba(var(--itwh-brand-rgb), 0.04));
  position: relative;
  overflow: hidden;
}

.solutions__mockup-chart::after {
  content: "";
  position: absolute;
  bottom: 8px;
  left: 8px;
  right: 8px;
  height: 32px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 120 32'%3E%3Cpath d='M0 28 L20 18 L40 22 L60 8 L80 14 L100 4 L120 12' fill='none' stroke='%236d52f4' stroke-width='2' stroke-linecap='round'/%3E%3C/svg%3E") no-repeat center / contain;
}

.solutions__mockup-rows {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.solutions__mockup-rows .row {
  height: 8px;
  border-radius: 4px;
  background: #f4f4f5;
}

.solutions__mockup-rows .row:nth-child(2) { width: 85%; }
.solutions__mockup-rows .row:nth-child(3) { width: 65%; }

/* Mobile mockup variant */
.solutions__mockup-frame--mobile {
  width: 140px;
  margin: 0 auto;
  border-radius: 22px;
  border: 3px solid #27272a;
}

.solutions__mockup-frame--mobile .solutions__mockup-bar {
  justify-content: center;
  padding: 6px;
  background: #18181b;
  border: none;
}

.solutions__mockup-frame--mobile .solutions__mockup-bar span {
  width: 40px;
  height: 4px;
  border-radius: 2px;
  background: #3f3f46;
}

.solutions__mockup-frame--mobile .solutions__mockup-body {
  flex-direction: column;
  min-height: 200px;
  background: #fafafa;
}

.solutions__mockup-frame--mobile .solutions__mockup-sidebar {
  display: none;
}

.solutions__mockup-frame--mobile .solutions__mockup-chart {
  height: 80px;
}

/* AI / workflow variant */
.solutions__mockup-frame--flow .solutions__mockup-body {
  flex-direction: column;
  padding: 14px;
  gap: 10px;
  background: #fafafa;
}

.solutions__flow-node {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 10px;
  background: #fff;
  border: 1px solid #e4e4e7;
  border-radius: 8px;
  font-size: 9px;
  font-weight: 600;
  color: #52525b;
}

.solutions__flow-node i {
  color: var(--itwh-brand);
  font-size: 10px;
}

.solutions__flow-connector {
  width: 2px;
  height: 12px;
  background: rgba(var(--itwh-brand-rgb), 0.3);
  margin-left: 18px;
}

.solutions__visual-scene--mobile .solutions__visual-mockup {
  width: auto;
  top: 50%;
}

/* ── Floating glass cards ── */
.solutions__float-card {
  position: absolute;
  z-index: 5;
  min-width: 200px;
  max-width: 240px;
  padding: 14px 16px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.72);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.55);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.18), inset 0 1px 0 rgba(255, 255, 255, 0.8);
  transition: transform 0.4s cubic-bezier(0.25, 1, 0.5, 1), box-shadow 0.4s ease;
  pointer-events: auto;
}

.solutions__float-card--top {
  top: 20px;
  left: 16px;
  animation: spotlightFloatA 5s ease-in-out infinite alternate;
}

.solutions__float-card--bottom {
  bottom: 20px;
  right: 16px;
  animation: spotlightFloatB 6s ease-in-out infinite alternate;
  animation-delay: -2s;
}

.solutions__float-card:hover {
  transform: translateY(-8px) scale(1.02);
  box-shadow: 0 24px 48px rgba(0, 0, 0, 0.22), 0 0 0 1px rgba(var(--itwh-brand-rgb), 0.15);
  animation-play-state: paused;
}

.solutions__float-card__head {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 10px;
}

.solutions__float-card__icon {
  width: 32px;
  height: 32px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  color: var(--itwh-brand);
  background: rgba(var(--itwh-brand-rgb), 0.1);
  flex-shrink: 0;
}

.solutions__float-card__title {
  font-family: var(--font_inter, "Inter", sans-serif);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.02em;
  color: #18181b;
  line-height: 1.2;
}

.solutions__float-card__list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.solutions__float-card__list li {
  display: flex;
  align-items: flex-start;
  gap: 7px;
  font-family: var(--font_inter, "Inter", sans-serif);
  font-size: 10px;
  font-weight: 500;
  line-height: 1.35;
  color: #52525b;
}

.solutions__float-card__list li i {
  font-size: 8px;
  color: var(--itwh-brand);
  margin-top: 3px;
  flex-shrink: 0;
}

@media (max-width: 575px) {
  .solutions__float-card {
    min-width: 160px;
    max-width: 180px;
    padding: 10px 12px;
  }

  .solutions__float-card--top {
    top: 12px;
    left: 10px;
  }

  .solutions__float-card--bottom {
    bottom: 12px;
    right: 10px;
  }

  .solutions__float-card__title {
    font-size: 11px;
  }

  .solutions__float-card__list li {
    font-size: 9px;
  }
}

/* ── Right panel: tech stack ── */
.solutions__tech-stack {
  display: flex;
  flex-direction: column;
  gap: 10px;
  align-items: flex-end;
}

@media (max-width: 1199px) {
  .solutions__tech-stack {
    align-items: flex-start;
    width: 100%;
  }
}

.solutions__tech-label {
  font-family: var(--font_inter, "Inter", sans-serif);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--itwh-text-muted);
}

.solutions__tech-icons {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: flex-end;
}

@media (max-width: 1199px) {
  .solutions__tech-icons {
    justify-content: flex-start;
  }
}

.solutions__tech-item {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 8px 14px;
  border-radius: 12px;
  background: var(--itwh-light, #f8f9fb);
  border: 1px solid var(--itwh-border-light);
  font-family: var(--font_inter, "Inter", sans-serif);
  font-size: 11px;
  font-weight: 600;
  color: var(--itwh-text);
  transition: transform 0.35s cubic-bezier(0.25, 1, 0.5, 1), box-shadow 0.35s ease,
    border-color 0.35s ease, background 0.35s ease;
  cursor: default;
}

.solutions__tech-item i {
  font-size: 16px;
  color: var(--itwh-brand);
}

.solutions__tech-item:hover {
  transform: translateY(-3px);
  border-color: rgba(var(--itwh-brand-rgb), 0.3);
  box-shadow: 0 8px 20px rgba(var(--itwh-brand-rgb), 0.12);
  background: #fff;
}

.solutions__tech-item--text i {
  font-size: 13px;
}

/* ── Glass card slide-in polish ── */
.itwh-chapter--grey.solutions .solutions__glass-card {
  border-radius: 22px;
}

.itwh-chapter--grey.solutions .solutions__tag {
  border-radius: 10px;
  padding: 6px 14px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.02em;
  text-transform: none;
  transition: transform 0.35s ease, box-shadow 0.35s ease, background 0.35s ease,
    border-color 0.35s ease, color 0.35s ease;
}

.itwh-chapter--grey.solutions .solutions__tag:hover {
  transform: translateY(-2px);
  background: rgba(var(--itwh-brand-rgb), 0.08);
  border-color: rgba(var(--itwh-brand-rgb), 0.25);
  color: var(--itwh-brand);
  box-shadow: 0 4px 12px rgba(var(--itwh-brand-rgb), 0.1);
}

.itwh-chapter--grey.solutions .solutions__preview-label {
  font-family: var(--font_inter, "Inter", sans-serif);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.12em;
  margin-bottom: 12px;
}

/* Swiper fade transition */
.solutions__slider .swiper-slide {
  transition: opacity 0.45s ease;
}

.solutions__slider.solutions__slider--fading .swiper-slide-active {
  z-index: 2;
}

/* Legacy metric badges hidden when spotlight is active */
.solutions__visual-stage ~ .solutions__main-thumb,
.solutions__visual-stage .solutions__metric-badge {
  display: none;
}

/* Keyframes */
@keyframes spotlightFloatA {
  0% { transform: translateY(0) rotate(0deg); }
  100% { transform: translateY(-12px) rotate(1.5deg); }
}

@keyframes spotlightFloatB {
  0% { transform: translateY(0) rotate(0deg); }
  100% { transform: translateY(-9px) rotate(-1deg); }
}

@keyframes spotlightOrbDrift {
  0% { transform: translate(0, 0) scale(1); }
  100% { transform: translate(12px, -8px) scale(1.06); }
}
