/* The Solution Section */
.solution-section {
  position: relative;
  padding: clamp(4rem, 7vw, 7.5rem) 1rem;
  overflow: hidden;
  isolation: isolate;
  background:
    radial-gradient(1200px 600px at 12% -12%, rgba(0, 243, 255, 0.10), transparent 62%),
    radial-gradient(900px 520px at 88% 8%, rgba(188, 0, 255, 0.10), transparent 62%),
    linear-gradient(180deg, rgba(255,255,255,0.02), rgba(255,255,255,0));
  padding-bottom: clamp(2.5rem, 7vw, 6rem);
}

.solution-section::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: linear-gradient(rgba(255,255,255,0.03) 1px, transparent 1px),
                    linear-gradient(90deg, rgba(255,255,255,0.03) 1px, transparent 1px);
  background-size: 40px 40px, 40px 40px;
  pointer-events: none;
  mask-image: radial-gradient(circle at 50% 30%, rgba(0,0,0,0.5), rgba(0,0,0,0.95));
  z-index: 0;
}

/* Light mode removed */

.solution-container {
  max-width: min(95vw, 1280px);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: clamp(1.75rem, 4vw, 3rem);
  align-items: center;
  position: relative;
  z-index: 1;
}

@media (max-width: 1000px) {
  .solution-container { grid-template-columns: 1fr; }
}

/* Left Visual */
.solution-visual {
  position: relative;
  height: clamp(420px, 44vw, 560px);
}

.brain-core {
  position: absolute;
  top: 50%; left: 50%; transform: translate(-50%, -50%);
  width: clamp(140px, 20vw, 200px);
  height: clamp(140px, 20vw, 200px);
  border-radius: 50%;
  display: grid; place-items: center;
}

.brain-core img {
  width: 76%; height: 76%; object-fit: contain; filter: drop-shadow(0 0 16px rgba(188,0,255,0.25));
}

.brain-core::before {
  content: '';
  position: absolute; inset: -18%; border-radius: 50%;
  background: radial-gradient(circle, rgba(188,0,255,0.18), rgba(188,0,255,0));
  filter: blur(8px);
  animation: pulse 3.2s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% { transform: scale(1); opacity: 0.8; }
  50% { transform: scale(1.06); opacity: 1; }
}

/* Incoming stream (left to brain) */
.in-stream { position: absolute; left: 0; top: 0; bottom: 0; width: 55%; overflow: visible; }
.in-stream .dot {
  position: absolute; width: 6px; height: 6px; border-radius: 50%;
  background: var(--primary);
  box-shadow: 0 0 8px rgba(0,243,255,0.5);
  opacity: 0;
  animation: flow-in 6s linear infinite;
}

/* Vary dots */
.in-stream .dot:nth-child(1){ top: 10%; animation-duration: 7s; animation-delay: 0.2s; }
.in-stream .dot:nth-child(2){ top: 30%; animation-duration: 6.5s; animation-delay: 0.8s; }
.in-stream .dot:nth-child(3){ top: 50%; animation-duration: 7.5s; animation-delay: 1.4s; }
.in-stream .dot:nth-child(4){ top: 70%; animation-duration: 6.8s; animation-delay: 0.6s; }
.in-stream .dot:nth-child(5){ top: 85%; animation-duration: 7.2s; animation-delay: 1s; }
.in-stream .dot:nth-child(6){ top: 20%; animation-duration: 7.8s; animation-delay: 1.8s; }
.in-stream .dot:nth-child(7){ top: 60%; animation-duration: 6.2s; animation-delay: 1.2s; }
.in-stream .dot:nth-child(8){ top: 40%; animation-duration: 7.1s; animation-delay: 0.4s; }

@keyframes flow-in {
  0% { transform: translateX(-120%) translateY(0); opacity: 0; }
  25% { opacity: 0.8; }
  80% { opacity: 1; }
  100% { transform: translateX(95%) translateY(0); opacity: 0; }
}

/* Outgoing stream (brain to right) */
.out-stream { position: absolute; right: 0; top: 0; bottom: 0; width: 55%; }
.chip {
  position: absolute; left: 40%; top: 50%; transform: translate(-50%, -50%);
  padding: 10px 12px; border-radius: 10px;
  background: rgba(0,0,0,0.25);
  border: 1px solid rgba(255,255,255,0.08);
  color: var(--text);
  filter: drop-shadow(0 4px 16px rgba(0,0,0,0.2));
}

/* Single theme chips */

.chip svg { width: 26px; height: 26px; display: block; }

/* Animations for chips */
.chip.atom { animation: out-float 8s linear infinite; }
.chip.graph { animation: out-float 9s linear infinite 0.6s; }
.chip.code { animation: out-float 7.5s linear infinite 0.3s; }

@keyframes out-float {
  0% { transform: translate(-10%, -50%) scale(0.9); opacity: 0; }
  15% { opacity: 1; }
  60% { opacity: 1; }
  100% { transform: translate(110%, -50%) scale(1); opacity: 0; }
}

/* Offset chip positions */
.chip.atom { top: 35%; }
.chip.graph { top: 55%; }
.chip.code { top: 75%; }

/* Right Copy */
.solution-copy { padding: 0 0.5rem; }
.solution-tag {
  display: inline-block;
  font-family: 'Satoshi', sans-serif;
  font-weight: 800;
  letter-spacing: 0.22em;
  font-size: 0.85rem;
  color: var(--primary);
  margin-bottom: 0.75rem;
}

.solution-headline {
  font-family: 'Satoshi', sans-serif;
  font-weight: 900;
  color: var(--text);
  font-size: clamp(1.6rem, 3.2vw, 2.25rem);
  line-height: 1.15;
  margin-bottom: 1rem;
}

.solution-paragraph {
  font-family: 'Inter', sans-serif;
  color: #E5E7EB; /* requested */
  font-size: clamp(1rem, 1.6vw, 1.05rem);
  line-height: 1.65;
}

/* Single theme paragraph color */

/* Feature highlights under main row */
.solution-features {
  max-width: min(95vw, 1280px);
  margin: clamp(2rem, 4vw, 3rem) auto 0;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: clamp(12px, 2vw, 20px);
}
.solution-features .feature {
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: 14px;
  padding: clamp(14px, 2.2vw, 20px);
  display: grid;
  gap: 6px;
}
.solution-features .feature i { color: var(--secondary); font-size: 1.25rem; }
.solution-features .feature .f-title { font-weight: 800; font-family: 'Satoshi', sans-serif; }
.solution-features .feature .f-desc { color: var(--muted); font-size: 0.95rem; }

@media (max-width: 900px) {
  .solution-features { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 560px) {
  .solution-features { grid-template-columns: 1fr; }
}

/* Removed marquee ribbon */

/* Removed platforms strip and CTA row */

/* Improve section vertical presence */
.solution-section { min-height: 80vh; }

/* Smooth bottom fade to blend into next section */
.solution-section::after {
  content: '';
  position: absolute; left: 0; right: 0; bottom: 0; height: 120px; pointer-events: none; z-index: 0;
  background: linear-gradient(180deg, rgba(0,0,0,0), rgba(0,0,0,0.35));
}
/* Single theme bottom fade */
