.compare-section {
  position: relative;
  padding: clamp(72px, 9vw, 120px) 0 clamp(88px, 10vw, 128px);
  background: #07030D;
  color: #F4EEFF;
  border-top: none;
  border-bottom: 1px solid rgba(124, 58, 237, 0.14);
  overflow: hidden;
  opacity: 0;
  transition: opacity 0.85s cubic-bezier(0.4, 0, 0.2, 1);
}

.compare-section__aurora {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
}

.compare-section__shade {
  position: absolute;
  inset: 0;
  z-index: 1;
  background: rgba(7, 3, 13, 0.35);
  pointer-events: none;
}

#compare-aurora-root,
#compare-aurora-root .aurora-container {
  width: 100%;
  height: 100%;
  min-height: 100%;
}

.compare-section__aurora canvas {
  max-width: none;
  width: 100% !important;
  height: 100% !important;
  display: block;
}

.compare-section__bg {
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
}

.compare-section::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: clamp(48px, 6vw, 72px);
  background: linear-gradient(180deg, rgba(26, 11, 46, 0.55) 0%, transparent 100%);
  pointer-events: none;
  z-index: 3;
}

.compare-section.is-revealed {
  opacity: 1;
}

.compare-section__glow {
  display: none;
}

.compare-section__spotlight {
  display: none;
}

.compare-section__mesh {
  display: none;
}

.compare-section__grid {
  display: none;
}

.compare-section__noise {
  position: absolute;
  inset: 0;
  opacity: 0.035;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

.compare-section__edge {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent 0%, rgba(168, 85, 247, 0.35) 50%, transparent 100%);
}

.compare-section__inner {
  position: relative;
  z-index: 10;
}

.compare-section__header {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  width: 100%;
  max-width: 860px;
  margin: 0 auto clamp(48px, 6vw, 64px);
}

.compare-section__badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  max-width: 100%;
  padding: 8px 16px 8px 10px;
  margin-bottom: clamp(24px, 3vw, 32px);
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(14px) saturate(140%);
  -webkit-backdrop-filter: blur(14px) saturate(140%);
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.04) inset,
    0 12px 32px rgba(0, 0, 0, 0.28);
  opacity: 0;
  transform: translateY(14px);
}

.compare-section.is-revealed .compare-section__badge {
  animation: compareFadeUp 0.72s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

.compare-section__badge img {
  width: 22px;
  height: 22px;
  border-radius: 6px;
  object-fit: contain;
  flex-shrink: 0;
}

.compare-section__badge-brand {
  font-family: "Plus Jakarta Sans", "Inter", Arial, sans-serif;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  color: #F5F3FF;
}

.compare-section__badge-divider {
  width: 1px;
  height: 14px;
  background: rgba(255, 255, 255, 0.16);
  flex-shrink: 0;
}

.compare-section__badge-text {
  font-size: 0.78rem;
  line-height: 1.35;
  color: rgba(233, 213, 255, 0.72);
}

.compare-section__title {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
  max-width: 780px;
  margin: 0 auto;
  font-family: "Plus Jakarta Sans", "Inter", Arial, sans-serif;
  font-size: clamp(2.1rem, 4vw, 3.35rem);
  font-weight: 600;
  letter-spacing: -0.034em;
  line-height: 1.18;
  color: #FFFFFF;
  text-align: center;
}

.compare-section__title-line {
  display: block;
  width: 100%;
  line-height: 1.18;
  padding-bottom: 0.06em;
}

.compare-section__title .dia-text-reveal {
  opacity: 0;
  display: block;
  width: 100%;
  text-align: center;
  white-space: normal;
  line-height: 1.18;
  padding-bottom: 0.08em;
  overflow: visible;
}

.compare-section.is-revealed .compare-section__title .dia-text-reveal {
  opacity: 1;
}

.compare-section__title .dia-text-reveal.is-complete:not(.dia-text-reveal--highlight) {
  color: #FFFFFF;
}

.compare-section__highlight {
  background: linear-gradient(90deg, #E9D5FF 0%, #A855F7 52%, #7C3AED 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  font-weight: 700;
  line-height: 1.18;
  padding-bottom: 0.1em;
  overflow: visible;
}

.dia-text-reveal--highlight.compare-section__highlight.is-complete {
  background: linear-gradient(90deg, #E9D5FF 0%, #A855F7 52%, #7C3AED 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  line-height: 1.18;
  padding-bottom: 0.1em;
  overflow: visible;
}

.compare-table {
  position: relative;
  isolation: isolate;
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.92fr) minmax(0, 1.28fr);
  opacity: 0;
  transform: translateY(28px);
}

.comparison-glass-card {
  background: rgba(255, 255, 255, 0.045);
  backdrop-filter: blur(40px) saturate(160%);
  -webkit-backdrop-filter: blur(40px) saturate(160%);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 28px;
  box-shadow:
    0 30px 100px rgba(0, 0, 0, 0.45),
    0 0 80px rgba(124, 58, 237, 0.18);
  overflow: hidden;
}

.comparison-glass-card::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
  z-index: 2;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.06) 0%, transparent 22%);
}

.comparison-glass-card .compare-table__header {
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.03);
  backdrop-filter: blur(12px) saturate(140%);
  -webkit-backdrop-filter: blur(12px) saturate(140%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

.comparison-glass-card .compare-table__row {
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  background: transparent;
  box-shadow: none;
}

.comparison-glass-card .compare-table__row:last-child {
  border-bottom: none;
}

.comparison-glass-card .compare-table__cell--feature,
.comparison-glass-card .compare-table__cell--legacy {
  border-right: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: none;
}

.comparison-glass-card .compare-table__row:hover {
  background: rgba(255, 255, 255, 0.06);
  box-shadow: inset 0 0 32px rgba(124, 58, 237, 0.08);
}

.comparison-glass-card .compare-table__row:hover .compare-table__cell--axxon .compare-table__axxon {
  color: #FFFFFF;
}

.comparison-glass-card .compare-table__axxon-bg {
  background: rgba(124, 58, 237, 0.06);
  border-left: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: inset 0 0 48px rgba(124, 58, 237, 0.1);
}

.comparison-glass-card .comparison-row,
.comparison-glass-card .comparison-column {
  border-color: rgba(255, 255, 255, 0.08);
}

.compare-section.is-revealed .compare-table {
  animation: compareTableIn 0.88s cubic-bezier(0.22, 1, 0.36, 1) 0.1s forwards;
}

.compare-table__axxon-bg {
  grid-column: 3;
  grid-row: 1 / -1;
  pointer-events: none;
  z-index: 1;
}

.compare-table__header,
.compare-table__row {
  display: grid;
  grid-template-columns: subgrid;
  grid-column: 1 / -1;
  position: relative;
  z-index: 4;
}

.compare-table__cell {
  padding: 18px 24px;
  display: flex;
  align-items: center;
  min-height: 64px;
}

.compare-table__cell--feature {
  gap: 12px;
  font-family: "Plus Jakarta Sans", "Inter", Arial, sans-serif;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(233, 213, 255, 0.72);
}

.compare-table__head-label {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.compare-table__head-line {
  display: inline-block;
  width: 18px;
  height: 2px;
  border-radius: 999px;
  background: linear-gradient(90deg, #7C3AED, #A78BFA);
  flex-shrink: 0;
}

.compare-table__header .compare-table__cell--legacy {
  justify-content: center;
  font-family: "Plus Jakarta Sans", "Inter", Arial, sans-serif;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.01em;
  text-transform: none;
  color: rgba(233, 213, 255, 0.78);
}

.compare-table__header .compare-table__cell--axxon {
  justify-content: center;
}

.compare-table__cell--legacy {
  justify-content: center;
  font-size: 0.94rem;
  font-weight: 500;
  color: rgba(184, 175, 203, 0.65);
}

.compare-table__cell--axxon {
  gap: 10px;
  min-width: 0;
  font-family: "Plus Jakarta Sans", "Inter", Arial, sans-serif;
  font-size: 0.95rem;
  font-weight: 700;
  color: #F4EEFF;
}

.compare-table__brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: #F5F3FF;
  font-size: 0.92rem;
  font-weight: 800;
  letter-spacing: 0.01em;
}

.compare-table__brand img {
  width: 26px;
  height: 26px;
  object-fit: contain;
}

.compare-table__row {
  transition:
    background 0.35s ease,
    box-shadow 0.35s ease,
    transform 0.35s ease;
  opacity: 0;
  transform: translateY(16px);
}

.compare-table__row:last-child {
  border-bottom: none;
}

.compare-section.is-revealed .compare-table__row {
  animation: compareRowIn 0.68s cubic-bezier(0.22, 1, 0.36, 1) forwards;
  animation-delay: calc(0.32s + var(--row-index, 0) * 0.08s);
}

.compare-section.is-revealed .compare-table__row:hover {
  transform: translateY(-1px);
}

.compare-table__feature {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  font-family: "Plus Jakarta Sans", "Inter", Arial, sans-serif;
  font-size: 0.98rem;
  font-weight: 600;
  letter-spacing: 0;
  text-transform: none;
  color: #FFFFFF;
}

.compare-table__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 20px;
  height: 20px;
  min-width: 20px;
  min-height: 20px;
  padding: 0;
  margin: 0;
  border: none;
  border-radius: 0;
  background: none;
  box-shadow: none;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  color: #A855F7;
  flex-shrink: 0;
}

.compare-table__icon svg {
  width: 20px;
  height: 20px;
  stroke: currentColor;
  fill: none;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.compare-table__icon-mark {
  display: block;
  width: 20px;
  height: 20px;
  background-color: currentColor;
  -webkit-mask: center / contain no-repeat;
  mask: center / contain no-repeat;
}

.compare-table__icon-mark--pix {
  -webkit-mask-image: url("images/pix_logo.webp");
  mask-image: url("images/pix_logo.webp");
}

.compare-table__icon--dual {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 1px;
}

.compare-table__icon--dual svg {
  width: 14px;
  height: 14px;
}

.compare-table__legacy {
  font-size: 0.94rem;
  line-height: 1.45;
  font-weight: 500;
  color: rgba(184, 175, 203, 0.65);
  text-align: center;
}

.compare-table__axxon {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
  font-size: 0.97rem;
  line-height: 1.45;
  font-weight: 700;
  color: #F4EEFF;
}

.compare-table__check {
  width: 20px;
  height: 20px;
  min-width: 20px;
  min-height: 20px;
  flex-shrink: 0;
  display: block;
  object-fit: contain;
  padding: 0;
  margin: 0;
  border: none;
  border-radius: 0;
  background: none;
  box-shadow: none;
}

.compare-table__mobile-label {
  display: none;
}

@keyframes compareFadeUp {
  from {
    opacity: 0;
    transform: translateY(14px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes compareTableIn {
  from {
    opacity: 0;
    transform: translateY(28px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes compareRowIn {
  from {
    opacity: 0;
    transform: translateY(16px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 980px) {
  .compare-section__badge {
    flex-wrap: wrap;
    justify-content: center;
    padding: 10px 14px;
    gap: 8px;
  }

  .compare-section__badge-divider {
    display: none;
  }

  .compare-section__badge-text {
    width: 100%;
    text-align: center;
    font-size: 0.76rem;
  }

  .comparison-glass-card {
    display: block;
    background: transparent;
    border: none;
    box-shadow: none;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    overflow: visible;
  }

  .comparison-glass-card::after {
    display: none;
  }

  .compare-table {
    display: block;
  }

  .compare-table__axxon-bg,
  .compare-table__header {
    display: none;
  }

  .compare-table__row {
    display: flex;
    flex-direction: column;
    margin-bottom: 14px;
    background: rgba(255, 255, 255, 0.045);
    backdrop-filter: blur(40px) saturate(160%);
    -webkit-backdrop-filter: blur(40px) saturate(160%);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 22px;
    box-shadow:
      0 24px 72px rgba(0, 0, 0, 0.38),
      0 0 48px rgba(124, 58, 237, 0.14);
    overflow: hidden;
  }

  .compare-table__row:last-child {
    margin-bottom: 0;
  }

  .compare-table__row:hover {
    transform: translateY(-3px);
    background: rgba(255, 255, 255, 0.06);
    box-shadow:
      0 28px 80px rgba(0, 0, 0, 0.42),
      0 0 56px rgba(124, 58, 237, 0.18);
  }

  .compare-table__cell {
    width: 100%;
    min-height: 0;
    padding: 16px 18px;
  }

  .compare-table__cell--feature {
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    padding-top: 18px;
    padding-bottom: 14px;
  }

  .compare-table__cell--legacy {
    flex-direction: column;
    align-items: flex-start;
    gap: 6px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  }

  .compare-table__cell--axxon {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
    background: rgba(124, 58, 237, 0.06);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05);
  }

  .compare-table__mobile-label {
    display: block;
    font-size: 0.68rem;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: rgba(184, 175, 203, 0.55);
  }

  .compare-table__mobile-label--axxon {
    color: rgba(233, 213, 255, 0.72);
  }

  .compare-table__axxon {
    flex-direction: row;
    align-items: flex-start;
  }
}

@media (max-width: 480px) {
  .compare-section__header {
    margin-bottom: clamp(28px, 6vw, 40px);
  }

  .compare-section__title {
    font-size: clamp(1.65rem, 7.5vw, 2.2rem);
  }

  .compare-table__row {
    border-radius: 18px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .compare-section {
    opacity: 1;
    transition: none;
  }

  .compare-section__badge,
  .compare-table,
  .compare-table__row {
    opacity: 1;
    transform: none;
    animation: none;
  }

  .compare-section__title .dia-text-reveal {
    opacity: 1;
  }

  .compare-table__row:hover {
    transform: none;
  }
}
