/* =========================================================
   PROBLEM SECTION — Modern Bento + Ambient FX
   Theme-aligned with existing nav/hero
========================================================= */
.ns-problem {
  position: relative;
  padding: clamp(80px, 12vw, 160px) 20px clamp(90px, 13vw, 180px);
  background: #07090f;
  color: #e8ecf5;
  overflow: hidden;
  isolation: isolate;
}
/* ---------- Ambient Background ---------- */
.ns-prob-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
}
.ns-prob-grid {
  position: absolute;
  inset: -2px;
  background-image:
    linear-gradient(rgba(120, 150, 220, 0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(120, 150, 220, 0.06) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(ellipse at center, black 30%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse at center, black 30%, transparent 75%);
}
.ns-prob-glow {
  position: absolute;
  width: 720px;
  height: 720px;
  border-radius: 50%;
  filter: blur(120px);
  opacity: 0.35;
  animation: probDrift 28s ease-in-out infinite alternate;
}
.ns-prob-glow--a {
  top: -200px; left: -180px;
  background: radial-gradient(circle, #4f7df5 0%, transparent 65%);
}
.ns-prob-glow--b {
  bottom: -260px; right: -200px;
  background: radial-gradient(circle, #22d3a7 0%, transparent 65%);
  animation-delay: -10s;
}
@keyframes probDrift {
  0%   { transform: translate(0, 0) scale(1); }
  100% { transform: translate(60px, 40px) scale(1.1); }
}
.ns-prob-noise {
  position: absolute;
  inset: 0;
  opacity: 0.04;
  mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='160' height='160'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2'/></filter><rect width='100%' height='100%' filter='url(%23n)' opacity='0.6'/></svg>");
}
/* ---------- Container ---------- */
.ns-prob-container {
  position: relative;
  z-index: 1;
  max-width: 1200px;
  margin: 0 auto;
}
/* ---------- Header ---------- */
.ns-prob-head {
  text-align: center;
  max-width: 820px;
  margin: 0 auto clamp(50px, 7vw, 90px);
}
.ns-prob-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px 6px 10px;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #a7b2c8;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 999px;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  margin-bottom: 22px;
}
.ns-prob-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #ff5d73;
  box-shadow: 0 0 12px #ff5d73;
  animation: probPulse 2s ease-in-out infinite;
}
@keyframes probPulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50%      { opacity: 0.5; transform: scale(0.8); }
}
.ns-prob-title {
  font-size: clamp(2rem, 4.6vw, 3.4rem);
  line-height: 1.1;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin: 0 0 22px;
  background: linear-gradient(180deg, #ffffff 0%, #b9c2da 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.ns-prob-strike {
  display: inline-block;
  position: relative;
  margin-top: 6px;
}
.ns-prob-strike span {
  background: linear-gradient(90deg, #ff5d73 0%, #ff9d6c 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.ns-prob-strike::after {
  content: "";
  position: absolute;
  left: 0; right: 0;
  top: 55%;
  height: 2px;
  background: linear-gradient(90deg, transparent, #ff5d73, transparent);
  transform: scaleX(0);
  transform-origin: left;
  animation: probStrike 2.4s 0.6s ease-out forwards;
}
@keyframes probStrike {
  to { transform: scaleX(1); }
}
.ns-prob-sub {
  font-size: clamp(1rem, 1.4vw, 1.15rem);
  line-height: 1.65;
  color: #9aa3bd;
  margin: 0;
}
/* ---------- BENTO GRID ---------- */
.ns-prob-bento {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 18px;
}
.ns-prob-card { grid-column: span 2; }
.ns-prob-card--lg { grid-column: span 3; grid-row: span 2; }
.ns-prob-card--wide { grid-column: span 4; }
.ns-prob-card--quote { grid-column: span 2; }
@media (max-width: 980px) {
  .ns-prob-bento { grid-template-columns: repeat(4, 1fr); }
  .ns-prob-card { grid-column: span 2; }
  .ns-prob-card--lg { grid-column: span 4; grid-row: auto; }
  .ns-prob-card--wide { grid-column: span 4; }
  .ns-prob-card--quote { grid-column: span 4; }
}
@media (max-width: 600px) {
  .ns-prob-bento { grid-template-columns: 1fr; gap: 14px; }
  .ns-prob-card,
  .ns-prob-card--lg,
  .ns-prob-card--wide,
  .ns-prob-card--quote { grid-column: span 1; }
}
/* ---------- Card Base ---------- */
.ns-prob-card {
  position: relative;
  padding: clamp(22px, 2.4vw, 30px);
  border-radius: 22px;
  background:
    linear-gradient(180deg, rgba(255,255,255,0.045) 0%, rgba(255,255,255,0.015) 100%);
  border: 1px solid rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  overflow: hidden;
  transform-style: preserve-3d;
  transform: perspective(900px) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg));
  transition: transform 0.4s cubic-bezier(.2,.7,.2,1),
              border-color 0.3s ease,
              background 0.3s ease;
  min-height: 200px;
  display: flex;
  flex-direction: column;
}
.ns-prob-card:hover {
  border-color: rgba(255, 255, 255, 0.16);
  background:
    linear-gradient(180deg, rgba(255,255,255,0.07) 0%, rgba(255,255,255,0.02) 100%);
}
/* Spotlight glow following cursor */
.ns-prob-card-glow {
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.4s ease;
  background: radial-gradient(
    420px circle at var(--mx, 50%) var(--my, 50%),
    rgba(79, 125, 245, 0.18),
    transparent 55%
  );
}
.ns-prob-card:hover .ns-prob-card-glow { opacity: 1; }
.ns-prob-card-glow--accent {
  background: radial-gradient(
    420px circle at var(--mx, 50%) var(--my, 50%),
    rgba(34, 211, 167, 0.22),
    transparent 55%
  );
  opacity: 0.55;
}
/* Animated top edge */
.ns-prob-card::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 1px;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 255, 255, 0.4),
    transparent
  );
  opacity: 0;
  transition: opacity 0.3s ease;
}
.ns-prob-card:hover::before { opacity: 1; }
/* ---------- Card Head ---------- */
.ns-prob-card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 18px;
  position: relative;
  z-index: 1;
}
.ns-prob-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  color: #fff;
  background: linear-gradient(135deg, var(--icon-from, #4f7df5), var(--icon-to, #6ea8ff));
  box-shadow: 0 8px 24px -8px var(--icon-from, #4f7df5);
}
.ns-prob-icon svg { width: 22px; height: 22px; }
.ns-prob-icon[data-hue="1"] { --icon-from:#4f7df5; --icon-to:#7aa2ff; }
.ns-prob-icon[data-hue="2"] { --icon-from:#a855f7; --icon-to:#d97aff; }
.ns-prob-icon[data-hue="3"] { --icon-from:#22d3a7; --icon-to:#5ee9c4; }
.ns-prob-icon[data-hue="4"] { --icon-from:#f59e0b; --icon-to:#fbbf24; }
.ns-prob-icon[data-hue="5"] { --icon-from:#ef4444; --icon-to:#ff7a7a; }
.ns-prob-icon[data-hue="6"] { --icon-from:#ec4899; --icon-to:#f472b6; }
.ns-prob-tag {
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #98a3bd;
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.08);
}
/* ---------- Card Content ---------- */
.ns-prob-card h3 {
  font-size: clamp(1.2rem, 1.6vw, 1.45rem);
  font-weight: 600;
  margin: 0 0 8px;
  color: #f3f5fb;
  letter-spacing: -0.01em;
  position: relative;
  z-index: 1;
}
.ns-prob-card p {
  font-size: 0.95rem;
  line-height: 1.6;
  color: #9aa3bd;
  margin: 0;
  position: relative;
  z-index: 1;
}
/* ---------- Special: Meter (large card) ---------- */
.ns-prob-meter {
  margin-top: auto;
  padding-top: 24px;
  position: relative;
  z-index: 1;
}
.ns-prob-meter span {
  display: block;
  height: 6px;
  width: 100%;
  border-radius: 999px;
  background: rgba(255,255,255,0.06);
  overflow: hidden;
  position: relative;
}
.ns-prob-meter span::after {
  content: "";
  position: absolute;
  inset: 0;
  width: var(--w, 50%);
  background: linear-gradient(90deg, #4f7df5, #ff5d73);
  border-radius: 999px;
  box-shadow: 0 0 16px rgba(255, 93, 115, 0.5);
  animation: probFill 2s 0.4s cubic-bezier(.2,.7,.2,1) backwards;
  transform-origin: left;
}
@keyframes probFill {
  from { transform: scaleX(0); }
}
.ns-prob-meter em {
  display: block;
  margin-top: 8px;
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #7d869f;
  font-style: normal;
}
/* ---------- Special: Stream (commerce card) ---------- */
.ns-prob-stream {
  margin-top: 18px;
  display: flex;
  gap: 6px;
  height: 28px;
  align-items: flex-end;
  position: relative;
  z-index: 1;
}
.ns-prob-stream span {
  flex: 1;
  height: 100%;
  background: linear-gradient(180deg, rgba(245,158,11,0.0), rgba(245,158,11,0.6));
  border-radius: 4px;
  animation: probBars 2.2s ease-in-out infinite;
  transform-origin: bottom;
}
.ns-prob-stream span:nth-child(1){ animation-delay: 0s; }
.ns-prob-stream span:nth-child(2){ animation-delay: 0.2s; }
.ns-prob-stream span:nth-child(3){ animation-delay: 0.4s; }
.ns-prob-stream span:nth-child(4){ animation-delay: 0.6s; }
.ns-prob-stream span:nth-child(5){ animation-delay: 0.8s; }
@keyframes probBars {
  0%, 100% { transform: scaleY(0.3); }
  50%      { transform: scaleY(1); }
}
/* ---------- Quote Card ---------- */
.ns-prob-card--quote {
  background:
    linear-gradient(180deg, rgba(34,211,167,0.08) 0%, rgba(79,125,245,0.05) 100%);
  border-color: rgba(34, 211, 167, 0.2);
  justify-content: center;
}
.ns-prob-quote-mark {
  width: 28px;
  height: 28px;
  color: rgba(34, 211, 167, 0.6);
  margin-bottom: 14px;
  position: relative;
  z-index: 1;
}
.ns-prob-quote {
  font-size: clamp(1rem, 1.4vw, 1.1rem);
  line-height: 1.55;
  color: #d6dcec;
  font-weight: 500;
  margin: 0;
  position: relative;
  z-index: 1;
}
.ns-prob-quote span {
  display: block;
  margin-top: 6px;
  background: linear-gradient(90deg, #22d3a7, #4f7df5);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  font-weight: 600;
}
.ns-prob-quote-line {
  margin-top: 18px;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(34,211,167,0.5), transparent);
  position: relative;
  z-index: 1;
}
/* ---------- Reduced Motion ---------- */
@media (prefers-reduced-motion: reduce) {
  .ns-prob-glow,
  .ns-prob-dot,
  .ns-prob-stream span,
  .ns-prob-strike::after,
  .ns-prob-meter span::after { animation: none !important; }
  .ns-prob-card { transform: none !important; }
}