/* ==========================================================================
   Bilva Tech — Solution Page Final CTA Section with Dither Background
   Scoped exclusively to .solution-cta and its children
   Strict requirement: Sharp, square corners throughout (border-radius: 0)
   ========================================================================== */

.solution-cta {
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  background-color: #120f17; /* Fallback matching Dither background */
  border: 1px solid var(--line, rgba(255, 255, 255, 0.08));
  border-radius: 0 !important; /* Sharp, square corners */
  margin-bottom: clamp(32px, 5vw, 64px);
  min-height: clamp(360px, 38vw, 460px);
  padding: clamp(60px, 8vw, 100px) clamp(24px, 5vw, 64px);
  isolation: isolate;
  box-sizing: border-box;
}

/* React Bits Dither WebGL2 Background Layer */
.solution-cta__dither,
.solution-cta .dither-container {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
  pointer-events: none;
  user-select: none;
  overflow: hidden;
  background-color: #120f17;
  border-radius: 0 !important;
}

.solution-cta__dither .dither-canvas,
.solution-cta .dither-canvas {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  pointer-events: none;
  border-radius: 0 !important;
}

/* Restrained Contrast Overlay for text legibility */
.solution-cta__overlay {
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  user-select: none;
  background: radial-gradient(ellipse 70% 65% at 50% 50%, rgba(18, 15, 23, 0.45) 0%, rgba(18, 15, 23, 0.82) 100%);
  border-radius: 0 !important;
}

/* Fallback background if JS / WebGL is disabled */
.solution-cta__background {
  position: absolute;
  inset: 0;
  z-index: 1;
  background-color: #120f17;
  pointer-events: none;
  user-select: none;
  display: none;
}

/* Content Container */
.solution-cta__content {
  position: relative;
  z-index: 3;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  max-width: 900px;
  width: 100%;
  margin: 0 auto;
}

/* Eyebrow Label */
.solution-cta__eyebrow {
  display: block;
  font-family: var(--font-display, var(--font-main, 'Space Grotesk', sans-serif));
  font-size: clamp(11px, 0.9vw, 13px);
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #a4a2a7;
  color: var(--ink-muted, #a4a2a7);
  margin: 0 0 clamp(16px, 2.2vh, 24px);
  line-height: 1.2;
}

/* Main Heading */
.solution-cta__title {
  font-family: var(--font-display, var(--font-main, 'Space Grotesk', sans-serif));
  font-size: clamp(32px, 4.4vw, 56px);
  font-weight: 600;
  line-height: 1.15;
  letter-spacing: -0.035em;
  color: #ffffff;
  color: var(--ink-primary, #ffffff);
  margin: 0 0 clamp(24px, 3.5vh, 36px);
  max-width: min(820px, 92vw);
  text-align: center;
}

/* Primary CTA Button (Clean White Pill Shape matching hero reference) */
.solution-cta__button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  min-height: 54px;
  height: clamp(52px, 5.2vw, 56px);
  padding: 0 clamp(30px, 3.2vw, 36px);
  border-radius: 9999px !important; /* Fully rounded pill shape */
  color: #0B0B0D;
  background: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.9);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.25);
  font-family: var(--font-sans, var(--font-secondary, 'Inter', sans-serif));
  font-size: clamp(14px, 1.2vw, 15px);
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  transition: transform 220ms cubic-bezier(0.16, 1, 0.3, 1), box-shadow 220ms ease, background-color 220ms ease;
  outline: none;
  box-sizing: border-box;
}

.solution-cta__button i,
.solution-cta__button .solution-cta__arrow {
  font-size: 13px;
  line-height: 1;
  transition: transform 220ms ease;
}

/* Fallback arrow if icon markup is not present */
.solution-cta__button:not(:has(i)):not(:has(.solution-cta__arrow))::after {
  content: "→";
  font-size: 15px;
  line-height: 1;
  transition: transform 220ms ease;
}

.solution-cta__button:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.35);
  background: #ffffff;
  color: #0B0B0D;
}

.solution-cta__button:hover i,
.solution-cta__button:hover .solution-cta__arrow,
.solution-cta__button:hover::after {
  transform: translateX(3px);
}

.solution-cta__button:active {
  transform: translateY(0);
}

.solution-cta__button:focus-visible {
  outline: 2px solid #ffffff;
  outline-offset: 4px;
}

/* Tablet Responsive Adjustments */
@media (max-width: 1024px) {
  .solution-cta {
    min-height: clamp(320px, 36vw, 420px);
    padding: clamp(50px, 7vw, 80px) clamp(20px, 4vw, 48px);
  }

  .solution-cta__title {
    font-size: clamp(28px, 4.6vw, 44px);
  }
}

/* Mobile Responsive Adjustments */
@media (max-width: 768px) {
  .solution-cta {
    min-height: 300px;
    padding: 48px 20px;
    margin-bottom: 32px;
  }

  .solution-cta__eyebrow {
    font-size: 11px;
    margin-bottom: 14px;
  }

  .solution-cta__title {
    font-size: clamp(26px, 7vw, 36px);
    line-height: 1.2;
    margin-bottom: 24px;
  }

  .solution-cta__button {
    height: 50px;
    min-height: 50px;
    padding: 0 26px;
    font-size: 14px;
    width: auto;
  }
}

/* Reduced Motion Override */
@media (prefers-reduced-motion: reduce) {
  .solution-cta__button {
    transition: none !important;
    transform: none !important;
  }
}
