/* ==========================================================================
   LUMI VIDEOS — 16:9 CARD-OVER-CARD STACKING VIDEO ARCHITECTURE
   ========================================================================== */

:root {
  --sol-bg-dark: #050505;
  --sol-accent: #28c76f;
  --sol-accent-glow: rgba(40, 199, 111, 0.35);
  --sol-font-mono: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
}

/* 1. Hero */
.solutions-hero {
  position: relative;
  min-height: 40vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  padding: 130px 7vw 45px;
  background: radial-gradient(circle at 85% 15%, rgba(40, 199, 111, 0.1) 0%, transparent 65%), #050505;
  border-bottom: 1px solid #1a1a1a;
  overflow: hidden;
}

.solutions-hero-grid {
  position: absolute;
  inset: 0;
  background-image: linear-gradient(to right, rgba(255, 255, 255, 0.025) 1px, transparent 1px),
                    linear-gradient(to bottom, rgba(255, 255, 255, 0.025) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: radial-gradient(ellipse at center, black 40%, transparent 80%);
  -webkit-mask-image: radial-gradient(ellipse at center, black 40%, transparent 80%);
  pointer-events: none;
}

.solutions-hero h1 {
  font-size: clamp(36px, 5vw, 76px);
  font-weight: 500;
  line-height: 1.04;
  letter-spacing: -0.04em;
  color: #fff;
  margin: 12px 0 16px;
  max-width: 980px;
}

.solutions-hero p.hero-desc {
  font-size: clamp(15px, 1.2vw, 18px);
  color: #aaa;
  max-width: 760px;
  line-height: 1.75;
  margin: 0;
}

/* Quick Nav Pills */
.solutions-quick-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 24px;
}

.solutions-quick-nav a {
  font-family: var(--sol-font-mono);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: #ccc;
  background: #0d0d0d;
  border: 1px solid #262626;
  border-radius: 0 !important;
  padding: 8px 16px;
  transition: all 0.2s ease;
  text-decoration: none;
}

.solutions-quick-nav a:hover {
  color: #fff;
  background: #191919;
  border-color: var(--sol-accent);
}

/* 2. Full Black Container for Sticky Stacking Cards */
.solutions-stack-container {
  position: relative;
  background: #060606 !important;
  padding: 50px 5vw 160px;
  border-bottom: 1px solid #1a1a1a;
  overflow: visible !important;
}

/* Sticky Card Wrapper with Dynamic Scroll Gap */
.solution-card-wrapper {
  position: -webkit-sticky !important;
  position: sticky !important;
  top: 90px;
  width: 100%;
  max-width: 1100px;
  margin: 0 auto 35vh;
  box-sizing: border-box;
  transform-origin: center top;
}

.solution-card-wrapper:first-child {
  margin-top: 10px;
}

.solution-card-wrapper:last-child {
  margin-bottom: 30px;
}

/* 16:9 Aspect Ratio Card */
.solution-card {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  max-height: 80vh;
  border-radius: 0 !important;
  background: #000000 !important;
  border: 1px solid #262626 !important;
  border-top: 3px solid var(--sol-accent) !important;
  box-shadow: 0 -25px 50px rgba(0, 0, 0, 0.95), 0 35px 80px rgba(0, 0, 0, 0.9) !important;
  overflow: hidden;
  transform-origin: center top;
  will-change: transform, filter, opacity;
  transition: box-shadow 0.3s ease;
}

/* Full Width 16:9 Video Background with Interactive YouTube UI */
.solution-video-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  background: #000000;
  overflow: hidden;
  z-index: 1;
}

.solution-video-bg iframe,
.solution-video-bg video {
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
  pointer-events: auto;
}

/* Responsive Mobile Handling */
@media (max-width: 1080px) {
  .solutions-stack-container {
    padding: 30px 4vw 70px !important;
  }
  .solution-card-wrapper {
    position: relative !important;
    top: auto !important;
    margin-bottom: 30px !important;
    margin-top: 0 !important;
    transform: none !important;
  }
  .solution-card {
    position: relative !important;
    transform: none !important;
    filter: none !important;
    opacity: 1 !important;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.7) !important;
  }
}
