.how-it-works {
  padding: clamp(40px, 8vw, 80px) 0;
  background: var(--bg-light);
}

.how-it-works .section-header h2 {
  color: var(--bg-dark);
}

.how-it-works .section-header p {
  color: var(--text-gray);
}

.dual-process {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 3em;
  margin-top: 3em;
  align-items: start;
}

.process-column {
  display: flex;
  flex-direction: column;
}

.process-column h3 {
  color: var(--bg-dark);
  margin-bottom: 2em;
  padding-bottom: 0.75em;
  border-bottom: 3px solid var(--primary-yellow);
  font-size: clamp(20px, 4vw, 26px);
  font-weight: 600;
  line-height: 1.3;
  min-height: 3.9em;
}

.step-list {
  list-style: none;
  counter-reset: step-counter;
  display: flex;
  flex-direction: column;
  gap: 2em;
}

.step-list li {
  counter-increment: step-counter;
  position: relative;
  padding-left: 3.5em;
  line-height: 2.5em;
  color: #374151;
  font-size: clamp(15px, 2.8vw, 17px);
}

.step-list li::before {
  content: counter(step-counter);
  position: absolute;
  left: 0;
  width: 2.5em;
  height: 2.5em;
  background: var(--primary-yellow);
  color: var(--bg-dark);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  place-content: center;
  font-size: 20px;
  font-weight: 700;
  font-size: 18px;
  flex-shrink: 0;
}

.feature-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 2em;
}

.feature-list li {
  position: relative;
  padding-left: 2em;
  line-height: 1.6;
  color: #374151;
  font-size: clamp(15px, 2.8vw, 17px);
}

.feature-list li strong {
  color: var(--bg-dark);
}

.feature-list li::before {
  content: '●';
  position: absolute;
  left: 0;
  top: 0;
  color: var(--primary-yellow);
  font-size: 20px;
}

/* TABLET to DESKTOP - Medium (769px - 1024px) */
@media (min-width: 769px) and (max-width: 1024px) {
  .problem-section,
  .how-it-works,
  .target-section,
  .security-section {
      padding: 70px 0;
  }

  .problem-grid {
      grid-template-columns: 1fr;
      gap: 2.5em;
  }

  .dual-process {
      grid-template-columns: 1fr;
      gap: 3em;
  }

  .process-column h3 {
      min-height: auto;
  }

  .integration-methods {
      grid-template-columns: repeat(2, 1fr);
      gap: 2em;
  }

  .checklist {
      grid-template-columns: repeat(2, 1fr);
      gap: 2em;
  }
}

/* LARGE TABLET / SMALL DESKTOP (1025px - 1199px) */
@media (min-width: 1025px) and (max-width: 1199px) {
  .problem-grid {
      gap: 2.5em;
  }

  .dual-process {
      gap: 2.5em;
  }

}

/* TABLET - Small to Medium (481px - 768px) */
@media (min-width: 481px) and (max-width: 768px) {
  .how-it-works {
      padding: 60px 0;
  }

  .dual-process {
      grid-template-columns: 1fr;
      gap: 3em;
  }

  .process-column h3 {
      min-height: auto;
  }

}

/* MOBILE - Extra Small (up to 480px) */
@media (max-width: 480px) {
  .how-it-works {
      padding: 50px 0;
  }

  .dual-process {
      grid-template-columns: 1fr;
      gap: 2em;
  }

  .process-column h3 {
      font-size: 22px;
      min-height: auto;
      margin-bottom: 1.5em;
      padding-bottom: 0.5em;
  }

  .step-list,
  .feature-list {
      gap: 1.75em;
  }

  .step-list li,
  .feature-list li {
      font-size: 16px;
      padding-left: 3em;
  }

  .step-list li::before {
      width: 2em;
      height: 2em;
      font-size: 16px;
  }
}

/* Landscape orientation optimization for tablets */
@media (min-width: 481px) and (max-width: 1024px) and (orientation: landscape) {
  .how-it-works {
      padding: 50px 0;
  }

  .dual-process {
      grid-template-columns: repeat(2, 1fr);
      gap: 2em;
  }
}