/* Product pages */
.tradenix-page-hero {
  position: relative;
  overflow: hidden;
  color: #fff;
  background:
    linear-gradient(110deg, rgba(7, 27, 58, 0.96), rgba(7, 27, 58, 0.72)),
    url("bg-port-terminal.jpg") center / cover no-repeat;
}

.tradenix-page-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(120deg, transparent 0 54%, rgba(23, 105, 255, 0.16) 54.1% 54.5%, transparent 54.6%),
    linear-gradient(60deg, transparent 0 70%, rgba(0, 191, 216, 0.14) 70.1% 70.5%, transparent 70.6%);
  pointer-events: none;
}

.tradenix-page-hero .tradenix-container {
  position: relative;
  z-index: 1;
}

.tradenix-page-hero h1 {
  max-width: 860px;
  color: #fff;
}

.tradenix-page-hero p {
  max-width: 720px;
  color: rgba(255, 255, 255, 0.74);
}

.tx-module-suite {
  margin-top: 34px;
}

.module-grid {
  display: grid !important;
  grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
  gap: 18px;
  overflow: visible;
  border: 0;
  border-radius: 0;
  background: transparent;
}

.module-item {
  position: relative;
  min-height: 250px;
  overflow: hidden;
  border: 1px solid rgba(15, 36, 67, 0.1);
  border-radius: 18px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(244, 247, 250, 0.94)),
    radial-gradient(circle at 18% 0%, rgba(23, 105, 255, 0.12), transparent 42%);
  box-shadow: 0 18px 54px rgba(7, 27, 58, 0.08);
  transition: transform 220ms ease, border-color 220ms ease, box-shadow 220ms ease;
}

.module-item::before {
  content: "";
  position: absolute;
  right: -46px;
  top: -58px;
  width: 130px;
  height: 130px;
  border-radius: 50%;
  background: rgba(23, 105, 255, 0.08);
  transition: transform 220ms ease, background 220ms ease;
}

.module-item::after {
  content: "";
  position: absolute;
  left: 24px;
  right: 24px;
  bottom: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--blue), var(--cyan), var(--teal));
  transform: scaleX(0.3);
  transform-origin: left;
  transition: transform 220ms ease;
}

.module-item:hover {
  transform: translateY(-8px);
  border-color: rgba(23, 105, 255, 0.28);
  box-shadow: 0 28px 70px rgba(7, 27, 58, 0.13);
}

.module-item:hover::before {
  transform: scale(1.18);
  background: rgba(0, 191, 216, 0.12);
}

.module-item:hover::after {
  transform: scaleX(1);
}

.module-item span {
  position: relative;
  z-index: 1;
  min-height: 34px;
  display: inline-flex;
  align-items: center;
  padding: 0 12px;
  border-radius: 999px;
  color: var(--blue);
  background: rgba(23, 105, 255, 0.1);
  font-size: 0.76rem;
  font-weight: 900;
  letter-spacing: 0.03em;
}

.module-item h3,
.module-item p {
  position: relative;
  z-index: 1;
}

.module-item h3 {
  margin-top: 52px;
  font-size: 1.48rem;
}

.module-item p {
  line-height: 1.6;
}

.tradenix-list-item,
.tradenix-card {
  border: 1px solid rgba(15, 36, 67, 0.1);
  border-radius: 16px;
  box-shadow: 0 14px 42px rgba(7, 27, 58, 0.07);
}

.product-screen {
  border-radius: 22px;
  box-shadow: 0 26px 74px rgba(7, 27, 58, 0.18);
}

.tx-module-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 28px;
}

.tx-module-strip span {
  min-height: 38px;
  display: inline-flex;
  align-items: center;
  padding: 0 13px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 999px;
  color: rgba(255, 255, 255, 0.82);
  background: rgba(255, 255, 255, 0.08);
  font-weight: 800;
}

@media (max-width: 980px) {
  .module-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }
}

@media (max-width: 640px) {
  .module-grid {
    grid-template-columns: 1fr !important;
  }
}
