.rtx-stats {
  color: #fff;
  background: #050505;
}

.rtx-stats__inner {
  width: min(100%, 1280px);
  margin: 0 auto;
}

.rtx-stats__intro {
  display: grid;
  gap: 12px;
  max-width: 720px;
  margin: 0 auto 30px;
  text-align: center;
}

.rtx-stats__eyebrow,
.rtx-stats__label {
  letter-spacing: .14em;
  text-transform: uppercase;
}

.rtx-stats__eyebrow {
  font-size: 12px;
  font-weight: 700;
  opacity: .82;
}

.rtx-stats__title {
  width: 100%;
  margin: 0;
  padding: 0;
  font-size: clamp(36px, 5vw, 62px);
  line-height: .95;
  text-transform: uppercase;
}

.rtx-stats__body {
  margin: 0;
  font-size: 18px;
  line-height: 1.7;
  opacity: .9;
}

.rtx-stats__grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  padding: 12px 0;
  border-top: 1px solid rgba(255,255,255,.10);
  border-bottom: 1px solid rgba(255,255,255,.10);
}

.rtx-stats__item {
  position: relative;
  display: flex;
  align-items: flex-end;
  min-width: 0;
  min-height: 156px;
  overflow: hidden;
  padding: 26px 26px 24px;
  border-radius: 2px;
  background-color: rgba(255,255,255,.018);
  text-align: left;
  transition: background-color .26s ease, transform .26s cubic-bezier(.22,1,.36,1);
}

.rtx-stats__item::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 42px;
  height: 2px;
  background-color: #57A9D1;
  transition: width .32s cubic-bezier(.22,1,.36,1);
}

.rtx-stats__item:hover {
  background-color: rgba(87,169,209,.055);
  transform: translateY(-2px);
}

.rtx-stats__item:hover::before {
  width: 76px;
}

.rtx-stats__copy {
  position: relative;
  z-index: 2;
  display: grid;
  gap: 15px;
  min-width: 0;
}

.rtx-stats__icon {
  position: absolute;
  z-index: 1;
  top: 20px;
  right: 20px;
  display: block;
  width: 58px;
  height: 58px;
  color: #69B8DF;
  opacity: .16;
  transform: rotate(-4deg);
  pointer-events: none;
  transition: opacity .28s ease, transform .34s cubic-bezier(.22,1,.36,1);
}

.rtx-stats__item:hover .rtx-stats__icon {
  opacity: .26;
  transform: rotate(0deg) translate3d(-2px, 2px, 0);
}

.rtx-stats__icon :is(i, svg) {
  display: grid;
  place-items: center;
  width: 100%;
  height: 100%;
  font-size: inherit;
  line-height: 1;
}

.rtx-stats__value {
  display: block;
  margin: 0;
  max-width: calc(100% - 42px);
  font-size: clamp(34px, 3.2vw, 44px);
  line-height: .9;
  font-weight: 800;
  letter-spacing: -.045em;
  white-space: nowrap;
}

.rtx-stats__label {
  display: block;
  max-width: 21ch;
  font-size: 11px;
  line-height: 1.4;
  font-weight: 700;
  color: rgba(255,255,255,.86);
}

.rtx-reveal {
  opacity: 0;
  transform: translate3d(0, 22px, 0);
  transition:
    opacity var(--rtx-reveal-duration, .62s) cubic-bezier(.22,1,.36,1),
    transform var(--rtx-reveal-duration, .62s) cubic-bezier(.22,1,.36,1);
  transition-delay: var(--rtx-reveal-delay, 0ms);
}

.rtx-reveal[data-rtx-animation="fade"] { transform: none; }
.rtx-reveal[data-rtx-animation="reveal"] { transform: translate3d(-22px, 0, 0); }
.rtx-reveal[data-rtx-animation="none"],
.rtx-reveal.is-visible { opacity: 1; transform: none; }

body.elementor-editor-active .rtx-stats .rtx-reveal,
body.elementor-editor-preview .rtx-stats .rtx-reveal {
  opacity: 1 !important;
  transform: none !important;
  transition: none !important;
}

@media (prefers-reduced-motion: reduce) {
  .rtx-reveal,
  .rtx-stats__item,
  .rtx-stats__item::before,
  .rtx-stats__icon {
    transition: none;
  }
  .rtx-reveal { opacity: 1; transform: none; }
  .rtx-stats__item:hover { transform: none; }
}

@media (max-width: 1024px) {
  .rtx-stats__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .rtx-stats__item {
    min-height: 148px;
    padding: 24px 22px 22px;
  }

  .rtx-stats__icon {
    top: 18px;
    right: 18px;
    width: 52px;
    height: 52px;
  }
}

/* Mobile metrics: a deliberate 2x2 instrument panel. */
@media (max-width: 767px) {
  .rtx-stats__intro {
    justify-items: start;
    max-width: none;
    margin: 0 0 24px;
    text-align: left;
  }

  .rtx-stats__eyebrow { font-size: 11px; letter-spacing: .16em; }
  .rtx-stats__title {
    width: 100%;
    max-width: none;
    margin: 0;
    padding: 0 !important;
    font-size: clamp(34px, 9.8vw, 44px);
    line-height: 1;
    text-align: left;
    text-wrap: initial;
    overflow-wrap: normal;
    word-break: normal;
  }
  .rtx-stats__body { width: 100%; max-width: none; font-size: 15px; line-height: 1.6; }

  .rtx-stats__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    align-items: stretch;
    gap: 8px;
    padding: 8px 0;
  }

  .rtx-stats__item {
    align-items: stretch;
    min-height: 126px;
    padding: 18px 14px 15px;
    background: rgba(255,255,255,.025);
  }

  .rtx-stats__item::before { width: 30px; }
  .rtx-stats__copy {
    align-content: end;
    gap: 9px;
    width: 100%;
    min-height: 100%;
  }

  .rtx-stats__icon {
    top: 12px;
    right: 12px;
    width: 38px;
    height: 38px;
    opacity: .13;
    transform: none;
  }

  .rtx-stats__value {
    width: 100%;
    max-width: 100%;
    font-size: clamp(27px, 8vw, 34px);
    line-height: .95;
    font-variant-numeric: tabular-nums;
    white-space: nowrap;
    overflow-wrap: normal;
    word-break: normal;
  }

  .rtx-stats__label {
    width: 100%;
    max-width: none;
    font-size: 9.5px;
    line-height: 1.42;
  }
}


@media (hover: none), (pointer: coarse) {
  .rtx-stats__item:hover { transform: none; background-color: rgba(255,255,255,.025); }
  .rtx-stats__item:hover::before { width: 30px; }
  .rtx-stats__item:hover .rtx-stats__icon { opacity: .13; transform: none; }
}
