.advantage-section {
  padding: clamp(40px, 8vw, 80px) 0;
  background: var(--bg-dark);
}

.advantage-section .section-header {
  text-align: center;
  max-width: 100%;
  margin: 0 auto 3em;
}

.advantage-section .section-header h2 {
  color: var(--secondary-white);
}

.advantage-section .section-header h3 {
  color: var(--secondary-white);
  margin-bottom: 1em;
}

.advantage-section .section-header p {
  color: #cccccc;
  max-width: 100%;
  text-align: left;
  margin: 0 auto;
}

.comparison-table {
  margin-top: 3em;
}

/* Desktop table wrapper */
.comparison-table-desktop {
  background: var(--bg-medium);
  border-radius: 15px;
  overflow: hidden;
  border: 1px solid var(--border-dark);
  display: block;
}

/* Mobile cards - hidden on desktop, shown only on mobile */
.comparison-cards-mobile {
  display: none;
}

.comparison-table-desktop table {
  width: 100%;
  border-collapse: collapse;
}

.comparison-table-desktop thead {
  background: rgba(0, 0, 0, 0.3);
  color: var(--secondary-white);
}

.comparison-table-desktop th {
  padding: 1em 1.5em;
  text-align: left;
  font-weight: 600;
  font-size: clamp(15px, 2.8vw, 17px);
  color: var(--secondary-white);
  line-height: 1.4;
}

.comparison-table-desktop td {
  padding: 1em 1.5em;
  border-bottom: 1px solid var(--border-dark);
  color: var(--secondary-white);
  font-size: clamp(15px, 2.8vw, 17px);
  line-height: 1.6;
  font-weight: 400;
}

.comparison-table-desktop tr:last-child td {
  border-bottom: none;
}

.comparison-table-desktop tbody tr:hover {
  background: rgba(255, 186, 0, 0.05);
}

.comparison-table-desktop tbody td:first-child {
  font-weight: 600;
  color: var(--secondary-white);
}

.comparison-table-desktop tbody tr:first-child {
  background: var(--primary-yellow);
}

.comparison-table-desktop tbody tr:first-child td {
  color: var(--bg-dark);
  font-weight: 600;
  border-bottom: 1px solid rgba(0, 0, 0, 0.1);
}

.comparison-table-desktop tbody tr:first-child:hover {
  background: #ffc91a;
}

/* Mobile Card Styles - hidden by default */
.comparison-cards-mobile {
  display: none;
  flex-direction: column;
  gap: 1.5em;
  margin-top: 3em;
}

.comparison-card {
  background: var(--bg-medium);
  border: 2px solid var(--border-dark);
  border-radius: 15px;
  overflow: hidden;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.comparison-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.comparison-card.highlight-card {
  border-color: var(--primary-yellow);
  border-width: 3px;
}

.card-header {
  background: rgba(0, 0, 0, 0.3);
  padding: 1.25em 1.5em;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid var(--border-dark);
}

.highlight-card .card-header {
  background: var(--primary-yellow);
}

.card-header h4 {
  color: var(--secondary-white);
  margin: 0;
  font-size: 18px;
  font-weight: 600;
}

.highlight-card .card-header h4 {
  color: var(--bg-dark);
}

.card-badge {
  background: var(--bg-dark);
  color: var(--primary-yellow);
  padding: 0.4em 0.8em;
  border-radius: 6px;
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.card-content {
  padding: 1.5em;
  display: flex;
  flex-direction: column;
  gap: 1.25em;
}

.card-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-bottom: 1em;
  border-bottom: 1px solid var(--border-dark);
}

.card-item:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.card-label {
  color: #cccccc;
  font-size: 14px;
  font-weight: 500;
  flex: 1;
}

.card-value {
  color: var(--secondary-white);
  font-size: 16px;
  font-weight: 600;
  text-align: right;
}

.highlight-card .card-value {
  color: var(--primary-yellow);
}

.advantage-section h3 {
  color: var(--secondary-white);
}

.use-cases {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 3em;
  margin-top: 2em;
}

.use-case {
  display: flex;
  flex-direction: column;
}

.use-case-header {
  display: flex;
  align-items: center;
  gap: 1em;
  margin-bottom: 0.75em;
}

.use-case-icon {
  width: 60px;
  height: 60px;
  background: var(--primary-yellow);
  border-radius: 8px;
  flex-shrink: 0;
}

.use-case h4 {
  color: var(--secondary-white);
  margin: 0;
  font-size: clamp(16px, 3vw, 18px);
  font-weight: 600;
  line-height: 1.4;
}

.use-case p {
  color: #cccccc;
  margin: 0;
  font-size: clamp(14px, 2.5vw, 16px);
  line-height: 1.6;
  padding-left: 0;
}

/* TABLET to DESKTOP - Medium (769px - 1024px) */
@media (min-width: 769px) and (max-width: 1024px) {
  .advantage-section {
      padding: 70px 0;
  }

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

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

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

  .comparison-table {
      overflow-x: auto;
      -webkit-overflow-scrolling: touch;
  }

  .comparison-table table {
      min-width: 700px;
  }

  .comparison-table th,
  .comparison-table td {
      padding: 1em 1.25em;
      font-size: 16px;
  }

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

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

  .use-cases {
      grid-template-columns: 1fr;
      gap: 2em;
  }

  .use-case-icon {
      width: 50px;
      height: 50px;
  }

  .use-case-header {
      gap: 1em;
      margin-bottom: 0.75em;
  }

  .use-case h4 {
      font-size: 19px;
      line-height: 1.4;
  }

  .use-case p {
      font-size: 16px;
      line-height: 1.7;
  }

  /* Show mobile cards, hide desktop table */
  .comparison-table-desktop {
      display: none;
  }

  .comparison-cards-mobile {
      display: flex;
  }

  /* Show mobile cards, hide desktop table */
  .comparison-table-desktop {
      display: none;
  }

  .comparison-cards-mobile {
      display: flex;
  }
}

/* Improve scroll performance on mobile */
.comparison-table {
  scroll-behavior: smooth;
}

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

/* Print styles */
@media print {
  .advantage-section {
      background: white;
      color: black;
  }

  .comparison-table {
      page-break-inside: avoid;
  }
}