#problems {
  position: relative;
  padding: 80px 60px;
  margin-top: 60px;
  border-radius: 64px;
  border: 1px solid var(--border);
  background:
    radial-gradient(circle at 16% 18%, rgba(99, 102, 241, 0.1), transparent 24%),
    radial-gradient(circle at 84% 76%, rgba(167, 139, 250, 0.1), transparent 26%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.018), rgba(255, 255, 255, 0.01));
  backdrop-filter: blur(20px);
  overflow: hidden;
}

#problems::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(135deg, rgba(129, 140, 248, 0.06), transparent 32%),
    linear-gradient(315deg, rgba(34, 211, 238, 0.04), transparent 24%);
  pointer-events: none;
}

#problems .problems-shell {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(280px, 0.95fr) minmax(0, 1.05fr);
  gap: 72px;
  align-items: start;
}

#problems .problems-copy {
  padding-top: 26px;
}

#problems .problems-kicker {
  display: inline-flex;
  margin-bottom: 22px;
  padding: 10px 16px;
  border-radius: 999px;
  border: 1px solid rgba(129, 140, 248, 0.2);
  background: rgba(99, 102, 241, 0.08);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #c9d2f2;
}

#problems .problems-copy h2 {
  font-size: 56px;
  margin: 0 0 24px;
  font-weight: 800;
  letter-spacing: -2px;
  line-height: 1.04;
}

#problems .problems-copy p {
  margin: 0 0 34px;
  max-width: 26ch;
  font-size: 20px;
  line-height: 1.55;
  color: var(--text-muted);
}

#problems .problems-signals {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

#problems .problems-idea-mark {
  position: relative;
  margin-top: 60px;
  width: 340px;
  height: 340px;
}

#problems .problems-idea-mark__art {
  position: relative;
  z-index: 1;
  width: 100%;
  height: 100%;
  overflow: visible;
  filter: drop-shadow(0 0 28px rgba(99, 102, 241, 0.14));
}

#problems .problems-idea-mark__rays path,
#problems .problems-idea-mark__bulb path {
  stroke: #7c83ff;
  stroke-width: 3.2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

#problems .problems-idea-mark__rays path {
  opacity: 0.92;
}

#problems.active .problems-idea-mark__rays path {
  animation: problems-idea-rays-flash 1s ease-out 1s;
  -webkit-animation: problems-idea-rays-flash 1s ease-out 1s;
}

#problems .problems-idea-mark__bulb path:first-child {
  fill: rgba(124, 131, 255, 0.03);
}

#problems .problems-idea-mark__bulb path:last-child {
  stroke: #95a0ff;
}

#problems.active .problems-idea-mark__art {
  animation: problems-idea-float 1.8s ease-out both;
}

@keyframes problems-idea-float {
  0% {
    opacity: 0;
    transform: translateY(16px) scale(0.92);
  }

  100% {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@keyframes problems-idea-rays-flash {
  0% {
    stroke: #7c83ff;
    opacity: 0.92;
    filter: none;
  }

  35% {
    stroke: #facc15;
    opacity: 1;
    filter: drop-shadow(0 0 8px rgba(250, 204, 21, 0.65));
  }

  100% {
    stroke: #7c83ff;
    opacity: 0.92;
    filter: none;
  }
}

#problems .problems-signals__item {
  display: inline-flex;
  align-items: center;
  min-height: 42px;
  padding: 0 16px;
  border-radius: 999px;
  background: rgba(8, 12, 26, 0.42);
  border: 1px solid rgba(129, 140, 248, 0.14);
  color: #dbe3fb;
  font-size: 13px;
  font-weight: 600;
}

#problems .problems-flow {
  position: relative;
  display: grid;
  gap: 28px;
  padding: 8px 0 8px 24px;
}

#problems .problems-flow__line {
  position: absolute;
  top: 32px;
  bottom: 32px;
  left: 31px;
  width: 2px;
  background: linear-gradient(180deg,
      rgba(99, 102, 241, 0.08),
      rgba(99, 102, 241, 0.86) 18%,
      rgba(129, 140, 248, 0.9) 52%,
      rgba(34, 211, 238, 0.72) 82%,
      rgba(34, 211, 238, 0.08));
  box-shadow: 0 0 26px rgba(99, 102, 241, 0.2);
}

#problems .problems-flow__line::after {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  left: 50%;
  width: 6px;
  transform: translateX(-50%) scaleY(0);
  border-radius: 999px;
  background: linear-gradient(180deg,
      rgba(99, 102, 241, 0) 0%,
      rgba(99, 102, 241, 0.96) 18%,
      rgba(129, 140, 248, 1) 52%,
      rgba(34, 211, 238, 0.92) 82%,
      rgba(34, 211, 238, 0) 100%);
  box-shadow:
    0 0 18px rgba(99, 102, 241, 0.44),
    0 0 28px rgba(34, 211, 238, 0.24);
  opacity: 0.1;
  transform-origin: top center;
}

#problems.active .problems-flow__line::after {
  animation: problems-line-sweep 2s cubic-bezier(0.22, 1, 0.36, 1) 0.5s forwards;
}

@keyframes problems-line-sweep {
  0% {
    opacity: 0.18;
    transform: translateX(-50%) scaleY(0);
  }

  10% {
    opacity: 1;
  }

  88% {
    opacity: 1;
  }

  100% {
    opacity: 0.08;
    transform: translateX(-50%) scaleY(1);
  }
}

#problems .problem-item {
  position: relative;
  display: grid;
  grid-template-columns: 76px minmax(0, 1fr);
  align-items: start;
  gap: 20px;
}

#problems .problem-item--2 {
  margin-left: 32px;
}

#problems .problem-item__marker {
  position: relative;
  z-index: 1;
  width: 76px;
  display: flex;
  justify-content: center;
  padding-top: 12px;
}

#problems .problem-item__marker span {
  width: 42px;
  height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 14px;
  background: linear-gradient(180deg, rgba(20, 26, 48, 0.96), rgba(10, 15, 28, 0.98));
  border: 1px solid rgba(129, 140, 248, 0.3);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.06),
    0 0 0 8px rgba(99, 102, 241, 0.05),
    0 0 22px rgba(99, 102, 241, 0.16);
  color: #fff;
  font-size: 14px;
  font-weight: 800;
  letter-spacing: 0.04em;
}

#problems .problem-item__body {
  position: relative;
  min-height: 170px;
  padding: 28px 30px 24px;
  border-radius: 32px;
  border: 1px solid rgba(129, 140, 248, 0.14);
  background:
    radial-gradient(circle at top right, rgba(99, 102, 241, 0.12), transparent 34%),
    linear-gradient(180deg, rgba(16, 21, 40, 0.76), rgba(10, 15, 28, 0.9));
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.04),
    0 18px 46px rgba(8, 12, 26, 0.2);
}

#problems .problem-item__body::before {
  content: "";
  position: absolute;
  top: 34px;
  left: -17px;
  width: 17px;
  height: 1px;
  background: linear-gradient(90deg, rgba(99, 102, 241, 0.72), rgba(99, 102, 241, 0.08));
}

#problems .problem-item__eyebrow {
  display: inline-flex;
  margin-bottom: 14px;
  color: #8d9ac1;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

#problems .problem-item h3 {
  margin: 0 0 12px;
  font-size: 34px;
  line-height: 1;
  letter-spacing: -0.04em;
}

#problems .problem-item p {
  margin: 0;
  max-width: 42ch;
  color: var(--text-muted);
  font-size: 17px;
  line-height: 1.62;
}

#problems .problem-item__result {
  display: inline-flex;
  align-items: center;
  margin-top: 22px;
  min-height: 38px;
  padding: 0 14px;
  border-radius: 999px;
  background: rgba(99, 102, 241, 0.1);
  border: 1px solid rgba(129, 140, 248, 0.2);
  color: #eef2ff;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

@media (max-width: 1200px) {
  #problems {
    padding: 96px 36px;
    border-radius: 42px;
    margin-top: 0;
  }

  #problems .problems-shell {
    grid-template-columns: minmax(260px, 0.88fr) minmax(0, 1.12fr);
    gap: 40px;
  }

  #problems .problems-copy h2 {
    font-size: 44px;
    letter-spacing: -1.6px;
  }

  #problems .problems-copy p {
    font-size: 18px;
    max-width: 24ch;
  }

  #problems .problem-item h3 {
    font-size: 28px;
  }

  #problems .problem-item p {
    font-size: 16px;
    max-width: 34ch;
  }

  #problems .problem-item__body {
    min-height: 156px;
    padding: 24px 24px 22px;
  }

  #problems .problem-item__result {
    font-size: 11px;
  }
}

@media (max-width: 1100px) {
  #problems {
    padding: 84px 28px;
  }

  #problems .problems-shell {
    grid-template-columns: 1fr;
    gap: 34px;
  }

  #problems .problems-copy {
    padding-top: 0;
  }

  #problems .problems-copy h2 {
    max-width: 11ch;
    font-size: 40px;
    letter-spacing: -1.4px;
  }

  #problems .problems-copy p {
    max-width: 32ch;
    margin-bottom: 26px;
    font-size: 17px;
  }

  #problems .problems-idea-mark {
    margin-top: 24px;
    width: 190px;
    height: 190px;
  }

  #problems .problems-flow {
    gap: 22px;
    padding-left: 8px;
  }

  #problems .problem-item--2 {
    margin-left: 0;
  }

  #problems .problem-item__body {
    min-height: unset;
  }
}

@media (max-width: 1024px) {
  #problems .problems-shell {
    gap: 30px;
  }

  #problems .problems-copy h2 {
    font-size: 36px;
    max-width: none;
  }

  #problems .problems-copy p {
    max-width: 36ch;
    font-size: 16px;
  }

  #problems .problems-idea-mark {
    display: none;
  }

  #problems .problems-signals__item {
    min-height: 40px;
    font-size: 12px;
  }

  #problems .problem-item {
    grid-template-columns: 64px minmax(0, 1fr);
    gap: 16px;
  }

  #problems .problem-item__marker {
    width: 64px;
  }

  #problems .problem-item__marker span {
    width: 40px;
    height: 40px;
    font-size: 13px;
  }

  #problems .problem-item h3 {
    font-size: 26px;
  }

  #problems .problem-item p {
    font-size: 15px;
    max-width: none;
  }

  #problems .problem-item__result {
    min-height: 36px;
    font-size: 10px;
  }
}

@media (max-width: 576px) {
  #problems {
    padding: 72px 20px;
    border-radius: 30px;
  }

  #problems .problems-kicker {
    margin-bottom: 18px;
    padding: 8px 14px;
    font-size: 10px;
  }

  #problems .problems-copy h2 {
    font-size: 32px;
    letter-spacing: -1px;
    max-width: none;
  }

  #problems .problems-copy p {
    margin-bottom: 24px;
    font-size: 16px;
    max-width: none;
  }

  #problems .problems-signals__item {
    min-height: 38px;
    font-size: 12px;
  }

  #problems .problems-flow {
    gap: 18px;
    padding-left: 0;
  }

  #problems .problems-flow__line {
    top: 24px;
    bottom: 24px;
    left: 20px;
  }

  #problems .problem-item {
    grid-template-columns: 52px 1fr;
    gap: 14px;
  }

  #problems .problem-item__marker {
    width: 52px;
    padding-top: 10px;
  }

  #problems .problem-item__marker span {
    width: 38px;
    height: 38px;
    border-radius: 12px;
    font-size: 12px;
  }

  #problems .problem-item__body {
    min-height: unset;
    padding: 22px 18px 18px;
    border-radius: 22px;
  }

  #problems .problem-item__body::before {
    top: 29px;
    left: -14px;
    width: 14px;
  }

  #problems .problem-item__eyebrow {
    margin-bottom: 10px;
    font-size: 10px;
  }

  #problems .problem-item h3 {
    font-size: 24px;
    margin-bottom: 10px;
  }

  #problems .problem-item p {
    font-size: 14px;
    line-height: 1.55;
  }

  #problems .problem-item__result {
    margin-top: 16px;
    min-height: 34px;
    padding: 0 12px;
    font-size: 10px;
  }
}