/* ============================================================
   RJX Marketing – Tech FX Layer
   Subtle, performant animations & micro-interactions tuned for
   a short-video / cinematic / sci-fi feel on top of the existing
   marketing design tokens.
   ------------------------------------------------------------ */

:root {
  --rjx-fx-glow-brand: rgba(var(--rjx-brand-rgb), 0.55);
  --rjx-fx-glow-accent: rgba(var(--rjx-accent-rgb), 0.45);
  --rjx-fx-line: rgba(255, 255, 255, 0.06);
  --rjx-fx-line-strong: rgba(255, 255, 255, 0.12);
  --rjx-fx-ease: cubic-bezier(0.22, 1, 0.36, 1);
  --rjx-fx-ease-pop: cubic-bezier(0.34, 1.56, 0.64, 1);
}

/* ------------------------------------------------------------
   1. Custom scrollbar (tech accent)
   ------------------------------------------------------------ */

body.rjx-marketing {
  scrollbar-color: rgba(var(--rjx-brand-rgb), 0.55) transparent;
  scrollbar-width: thin;
}

body.rjx-marketing::-webkit-scrollbar {
  width: 10px;
  height: 10px;
}

body.rjx-marketing::-webkit-scrollbar-track {
  background: transparent;
}

body.rjx-marketing::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, rgba(var(--rjx-brand-rgb), 0.65), rgba(var(--rjx-accent-rgb), 0.55));
  border-radius: 999px;
  border: 2px solid transparent;
  background-clip: padding-box;
}

body.rjx-marketing::-webkit-scrollbar-thumb:hover {
  background: linear-gradient(180deg, var(--rjx-brand), var(--rjx-accent));
  background-clip: padding-box;
}

/* ------------------------------------------------------------
   2. Section hero & module decoration (scan lines + corner ticks)
   ------------------------------------------------------------ */

.rjx-main__surface > .rjx-section,
.rjx-main__surface > .rjx-page-title {
  position: relative;
  overflow: hidden;
}

.rjx-main__surface > .rjx-section::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(
    90deg,
    transparent 0%,
    rgba(var(--rjx-brand-rgb), 0.55) 18%,
    rgba(var(--rjx-accent-rgb), 0.55) 55%,
    transparent 100%
  );
  opacity: 0.55;
  transform: translateX(-100%);
  transition: transform 1.2s var(--rjx-fx-ease), opacity 0.8s;
}

.rjx-main__surface > .rjx-section.is-visible::before {
  transform: translateX(0);
  opacity: 1;
}

/* Homepage About — no top scan line (first content block below header) */
body:not(.about-us-page) .rjx-main__surface > .rjx-section#about::before {
  display: none;
}

/* Hero / page-title backdrop pattern */
.rjx-page-title {
  position: relative;
  isolation: isolate;
}

.rjx-page-title::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(circle at 18% 32%, rgba(var(--rjx-brand-rgb), 0.18), transparent 55%),
    radial-gradient(circle at 82% 70%, rgba(var(--rjx-accent-rgb), 0.16), transparent 55%);
  opacity: 0;
  transition: opacity 0.8s ease;
}

.rjx-page-title.is-visible::after {
  opacity: 0.7;
}

/* Mouse-tracked spotlight on hero blocks */
.rjx-page-title,
.rjx-section[data-rjx-spotlight] {
  --rjx-fx-mx: 50%;
  --rjx-fx-my: 30%;
}

.rjx-page-title .rjx-container,
.rjx-section[data-rjx-spotlight] .rjx-container {
  position: relative;
  z-index: 1;
}

.rjx-page-title::before {
  /* keep top-line decoration as defined above, do not override */
}

.rjx-page-title__spotlight,
.rjx-fx-spotlight {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background: radial-gradient(
    480px circle at var(--rjx-fx-mx) var(--rjx-fx-my),
    rgba(var(--rjx-brand-rgb), 0.18),
    transparent 60%
  );
  opacity: 0;
  transition: opacity 0.35s ease;
  mix-blend-mode: screen;
}

.rjx-page-title.is-hover .rjx-page-title__spotlight,
.rjx-section[data-rjx-spotlight].is-hover .rjx-fx-spotlight {
  opacity: 1;
}

/* ------------------------------------------------------------
   4. Section eyebrow – glowing tech chip
   ------------------------------------------------------------ */

.rjx-section__eyebrow {
  position: relative;
  display: block;
  width: var(--rjx-eyebrow-width);
  max-width: 100%;
  box-sizing: border-box;
  text-align: center;
  overflow: hidden;
  background:
    linear-gradient(135deg, rgba(var(--rjx-brand-rgb), 0.18), rgba(var(--rjx-accent-rgb), 0.12)) padding-box,
    linear-gradient(135deg, rgba(var(--rjx-brand-rgb), 0.45), rgba(var(--rjx-accent-rgb), 0.45)) border-box;
  border: 1px solid transparent;
  box-shadow: 0 0 0 0 rgba(var(--rjx-brand-rgb), 0.0);
  transition: box-shadow 0.4s ease, transform 0.3s var(--rjx-fx-ease);
}

.rjx-section__eyebrow::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  width: 40%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.45), transparent);
  transform: translateX(-120%);
  animation: rjx-fx-shimmer 5.5s ease-in-out infinite;
  animation-delay: 1.6s;
  pointer-events: none;
}

@keyframes rjx-fx-shimmer {
  0%, 60% { transform: translateX(-120%); }
  80%, 100% { transform: translateX(360%); }
}

/* ------------------------------------------------------------
   5. Section titles – subtle gradient on hover & decorative bar
   ------------------------------------------------------------ */

.rjx-section__intro .rjx-section__title {
  display: block;
  width: 100%;
}

.rjx-section__title {
  position: relative;
  display: inline-block;
  background: linear-gradient(120deg, #ffffff 0%, #ffffff 55%, rgba(255, 255, 255, 0.78) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  transition: filter 0.4s ease;
}

.rjx-section__title::after {
  content: "";
  display: block;
  width: 56px;
  height: 3px;
  margin-top: 0.55rem;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--rjx-brand), var(--rjx-accent));
  box-shadow: 0 0 14px rgba(var(--rjx-brand-rgb), 0.32);
  transform-origin: left center;
  transform: scaleX(0.4);
  transition: transform 0.6s var(--rjx-fx-ease);
}

.rjx-section.is-visible .rjx-section__title::after {
  transform: scaleX(1);
}

/* page-title h1 keeps the gradient text fill (no decorative bar) */
.rjx-page-title h1 {
  position: relative;
  display: inline-block;
  background: linear-gradient(120deg, #ffffff 0%, #ffffff 60%, rgba(255, 255, 255, 0.78) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* breadcrumb nav icon: subtle scale-in on reveal */
.rjx-page-title__crumb-icon {
  transform-origin: left center;
  transform: scale(0.85);
  transition: transform 0.7s var(--rjx-fx-ease);
}

.rjx-page-title.is-visible .rjx-page-title__crumb-icon {
  transform: scale(1);
}

@supports not ((background-clip: text) or (-webkit-background-clip: text)) {
  .rjx-section__title,
  .rjx-page-title h1 {
    color: #fff;
    background: none;
    -webkit-background-clip: unset;
    background-clip: unset;
  }
}

@media (prefers-contrast: more) {
  .rjx-section__title,
  .rjx-page-title h1 {
    color: #fff;
    background: none;
    -webkit-background-clip: unset;
    background-clip: unset;
  }
}

/* ------------------------------------------------------------
   6. Stat cards – count-up + neon ring + corner ticks
   ------------------------------------------------------------ */

.rjx-stat {
  position: relative;
  overflow: hidden;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.03), rgba(255, 255, 255, 0)) padding-box,
    var(--rjx-bg-card);
  border: 1px solid var(--rjx-fx-line-strong);
  transition: transform 0.4s var(--rjx-fx-ease),
              box-shadow 0.4s var(--rjx-fx-ease),
              border-color 0.4s var(--rjx-fx-ease),
              background 0.4s var(--rjx-fx-ease);
}

.rjx-stat::before,
.rjx-stat::after {
  content: "";
  position: absolute;
  width: 14px;
  height: 14px;
  border: 1.5px solid rgba(var(--rjx-brand-rgb), 0.6);
  opacity: 0.7;
  transition: opacity 0.3s ease, transform 0.4s var(--rjx-fx-ease);
}

.rjx-stat::before {
  top: 10px;
  left: 10px;
  border-right: 0;
  border-bottom: 0;
}

.rjx-stat::after {
  bottom: 10px;
  right: 10px;
  border-left: 0;
  border-top: 0;
}

.rjx-stat:hover {
  border-color: rgba(var(--rjx-brand-rgb), 0.55);
  box-shadow:
    0 18px 48px rgba(0, 0, 0, 0.55),
    0 0 0 1px rgba(var(--rjx-brand-rgb), 0.35),
    0 0 48px rgba(var(--rjx-brand-rgb), 0.22);
}

.rjx-stat:hover::before,
.rjx-stat:hover::after {
  opacity: 1;
  transform: scale(1.15);
}

.rjx-stat__value {
  position: relative;
  display: inline-block;
  background: linear-gradient(135deg, var(--rjx-brand) 0%, var(--rjx-brand-soft) 45%, var(--rjx-accent) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  filter: drop-shadow(0 4px 12px rgba(var(--rjx-brand-rgb), 0.35));
}

/* Count-up wrapper: the JS replaces text content while in this state */
.rjx-stat__value.is-counting,
.rjx-stat__value.is-counted {
  font-variant-numeric: tabular-nums;
}

/* ------------------------------------------------------------
   7. Cards – 3D tilt, shimmer sweep, play overlay (short-video feel)
   ------------------------------------------------------------ */

.rjx-card {
  --rjx-tilt-x: 0deg;
  --rjx-tilt-y: 0deg;
  --rjx-tilt-z: 0;
  --rjx-tilt-mx: 50%;
  --rjx-tilt-my: 50%;
  border: 1px solid rgba(255, 255, 255, 0.04);
  transform-style: preserve-3d;
  transition: transform 0.45s var(--rjx-fx-ease),
              box-shadow 0.4s var(--rjx-fx-ease),
              border-color 0.3s ease,
              background 0.3s ease;
  will-change: transform;
}

.rjx-card.is-tilting {
  transition: transform 0.15s linear,
              box-shadow 0.3s var(--rjx-fx-ease),
              border-color 0.3s ease;
  transform:
    perspective(900px)
    rotateX(var(--rjx-tilt-x))
    rotateY(var(--rjx-tilt-y))
    translateZ(var(--rjx-tilt-z));
}

.rjx-card:hover {
  border-color: rgba(var(--rjx-brand-rgb), 0.35);
  box-shadow:
    0 22px 50px rgba(0, 0, 0, 0.55),
    0 0 0 1px rgba(var(--rjx-brand-rgb), 0.28),
    0 0 36px rgba(var(--rjx-brand-rgb), 0.18);
}

/* Glow rim under the card on hover */
.rjx-card::after {
  content: "";
  position: absolute;
  inset: -1px;
  border-radius: inherit;
  padding: 1px;
  background: linear-gradient(135deg, rgba(var(--rjx-brand-rgb), 0.55), rgba(var(--rjx-accent-rgb), 0.55));
  -webkit-mask:
    linear-gradient(#000 0 0) content-box,
    linear-gradient(#000 0 0);
  mask:
    linear-gradient(#000 0 0) content-box,
    linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
          mask-composite: exclude;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.35s ease;
}

.rjx-card:hover::after {
  opacity: 1;
}

.rjx-card__media {
  position: relative;
  overflow: hidden;
}

.rjx-card__media img {
  transition: transform 0.7s var(--rjx-fx-ease), filter 0.5s ease;
}

.rjx-card:hover .rjx-card__media img {
  transform: scale(1.06);
  filter: saturate(1.15) contrast(1.05);
}

/* Shimmer sweep across the poster on hover */
.rjx-card__media::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 2;
  background: linear-gradient(
    115deg,
    transparent 30%,
    rgba(255, 255, 255, 0.18) 50%,
    transparent 70%
  );
  transform: translateX(-110%);
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.2s ease;
}

.rjx-card:hover .rjx-card__media::before {
  opacity: 1;
  animation: rjx-fx-card-sweep 0.95s var(--rjx-fx-ease) forwards;
}

@keyframes rjx-fx-card-sweep {
  to { transform: translateX(110%); }
}

/* Cinematic dim overlay — separates play affordance from the poster art */
.rjx-card__media::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 3;
  background: linear-gradient(
    180deg,
    rgba(8, 8, 10, 0.12) 0%,
    rgba(8, 8, 10, 0.58) 52%,
    rgba(8, 8, 10, 0.72) 100%
  );
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.35s var(--rjx-fx-ease);
}

.rjx-card:has(.rjx-card__play-glyph):hover .rjx-card__media::after,
.rjx-card:has(.rjx-card__play-glyph):focus-within .rjx-card__media::after {
  opacity: 1;
}

/* Glass play button — SVG injected in rjx-fx.js */
.rjx-card__media .rjx-card__play-glyph {
  position: absolute;
  top: 50%;
  left: 50%;
  z-index: 4;
  width: 54px;
  height: 54px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.12);
  -webkit-backdrop-filter: blur(14px) saturate(1.25);
  backdrop-filter: blur(14px) saturate(1.25);
  border: 1px solid rgba(255, 255, 255, 0.26);
  color: #fff;
  box-shadow:
    0 8px 28px rgba(0, 0, 0, 0.42),
    inset 0 1px 0 rgba(255, 255, 255, 0.16);
  opacity: 0;
  transform: translate(-50%, -50%) scale(0.88);
  transition:
    opacity 0.3s ease,
    transform 0.4s var(--rjx-fx-ease),
    box-shadow 0.35s ease,
    border-color 0.35s ease;
  pointer-events: none;
  -webkit-font-smoothing: antialiased;
}

.rjx-card__media .rjx-card__play-glyph::before {
  content: "";
  position: absolute;
  inset: -5px;
  border-radius: 50%;
  border: 1px solid rgba(var(--rjx-brand-rgb), 0.42);
  opacity: 0;
  transform: scale(0.9);
  transition: opacity 0.35s ease, transform 0.4s var(--rjx-fx-ease);
  pointer-events: none;
}

.rjx-card__media .rjx-card__play-glyph svg {
  display: block;
  width: 20px;
  height: 20px;
  margin-left: 3px;
  filter: drop-shadow(0 2px 8px rgba(0, 0, 0, 0.4));
}

.rjx-card:has(.rjx-card__play-glyph):hover .rjx-card__play-glyph,
.rjx-card:has(.rjx-card__play-glyph):focus-within .rjx-card__play-glyph {
  opacity: 1;
  transform: translate(-50%, -50%) scale(1);
  box-shadow:
    0 10px 36px rgba(0, 0, 0, 0.5),
    0 0 24px rgba(var(--rjx-brand-rgb), 0.22),
    inset 0 1px 0 rgba(255, 255, 255, 0.2);
  border-color: rgba(255, 255, 255, 0.38);
}

.rjx-card:has(.rjx-card__play-glyph):hover .rjx-card__play-glyph::before,
.rjx-card:has(.rjx-card__play-glyph):focus-within .rjx-card__play-glyph::before {
  opacity: 1;
  transform: scale(1);
  animation: rjx-fx-card-play-ring 2.2s ease-out infinite;
}

@keyframes rjx-fx-card-play-ring {
  0% {
    box-shadow: 0 0 0 0 rgba(var(--rjx-brand-rgb), 0.35);
  }
  65% {
    box-shadow: 0 0 0 10px rgba(var(--rjx-brand-rgb), 0);
  }
  100% {
    box-shadow: 0 0 0 10px rgba(var(--rjx-brand-rgb), 0);
  }
}

.rjx-card__media a,
.rjx-card__media .rjx-card__play-trigger {
  cursor: pointer;
}

/* Language tag glow */
.rjx-card-lang {
  background: linear-gradient(135deg, rgba(var(--rjx-brand-rgb), 0.85), rgba(var(--rjx-accent-rgb), 0.8));
  box-shadow: 0 4px 14px rgba(var(--rjx-brand-rgb), 0.35);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
}

/* ------------------------------------------------------------
   8. Leader portraits – scan line + glow on hover
   ------------------------------------------------------------ */

.rjx-leader {
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.04);
  transition: transform 0.5s var(--rjx-fx-ease),
              box-shadow 0.4s var(--rjx-fx-ease),
              border-color 0.4s var(--rjx-fx-ease);
}

.rjx-leader::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: -2px;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--rjx-brand), var(--rjx-accent), transparent);
  opacity: 0;
  transition: opacity 0.4s ease;
}

.rjx-leader:hover {
  border-color: rgba(var(--rjx-brand-rgb), 0.4);
  box-shadow:
    0 20px 48px rgba(0, 0, 0, 0.55),
    0 0 32px rgba(var(--rjx-brand-rgb), 0.18);
}

.rjx-leader:hover::after {
  opacity: 1;
  animation: rjx-fx-scan-down 1.6s var(--rjx-fx-ease) forwards;
}

@keyframes rjx-fx-scan-down {
  from { top: -2px; opacity: 0.9; }
  to { top: calc(100% + 2px); opacity: 0; }
}

.rjx-leader__media img {
  transition: transform 0.7s var(--rjx-fx-ease), filter 0.5s ease;
}

.rjx-leader:hover .rjx-leader__media img {
  transform: scale(1.04);
  filter: saturate(1.1);
}

/* ------------------------------------------------------------
   9. Buttons – shimmer sweep + magnetic + ripple
   ------------------------------------------------------------ */

.rjx-btn {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  transform: translate3d(var(--rjx-mag-x, 0), var(--rjx-mag-y, 0), 0);
  transition: transform 0.25s var(--rjx-fx-ease),
              box-shadow var(--rjx-transition),
              background var(--rjx-transition);
}

.rjx-btn--primary::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(120deg, var(--rjx-brand-soft) 0%, var(--rjx-brand) 50%, var(--rjx-accent) 110%);
  background-size: 220% 100%;
  background-position: 0% 50%;
  transition: background-position 0.6s ease, opacity 0.3s ease;
}

.rjx-btn--primary:hover::before {
  background-position: 100% 50%;
}

.rjx-btn::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 40%;
  height: 100%;
  background: linear-gradient(110deg, transparent 30%, rgba(255, 255, 255, 0.5) 50%, transparent 70%);
  transform: translateX(-150%);
  pointer-events: none;
}

.rjx-btn:hover::after {
  animation: rjx-fx-btn-shine 0.9s var(--rjx-fx-ease);
}

@keyframes rjx-fx-btn-shine {
  to { transform: translateX(260%); }
}

.rjx-btn--ghost {
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}

.rjx-btn--ghost:hover {
  box-shadow: 0 0 24px rgba(var(--rjx-brand-rgb), 0.28);
}

.rjx-btn--outline-light {
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}

.rjx-btn--outline-light:hover {
  box-shadow: 0 0 24px rgba(255, 255, 255, 0.14);
}

.rjx-btn--light::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(120deg, #ffffff 0%, #ececf0 50%, #d8d8e0 110%);
  background-size: 220% 100%;
  background-position: 0% 50%;
  transition: background-position 0.6s ease;
}

.rjx-btn--light:hover::before {
  background-position: 100% 50%;
}

.rjx-fx-ripple {
  position: absolute;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.45);
  pointer-events: none;
  transform: scale(0);
  animation: rjx-fx-ripple 0.6s ease-out forwards;
  z-index: 1;
}

@keyframes rjx-fx-ripple {
  to { transform: scale(4); opacity: 0; }
}

/* ------------------------------------------------------------
   10. Header – active nav underline + brand pulse on scroll
   ------------------------------------------------------------ */

.rjx-nav a {
  position: relative;
}

.rjx-nav a::after {
  content: "";
  position: absolute;
  left: 18%;
  right: 18%;
  bottom: 3px;
  height: 2px;
  border-radius: 2px;
  background: linear-gradient(90deg, var(--rjx-brand), var(--rjx-accent));
  transform: scaleX(0);
  transform-origin: center;
  transition: transform 0.35s var(--rjx-fx-ease);
}

.rjx-nav a:hover::after,
.rjx-nav a.is-active::after {
  transform: scaleX(1);
}

@keyframes rjx-fx-brand-pulse {
  0%, 100% { box-shadow: 0 0 0 rgba(var(--rjx-brand-rgb), 0); transform: translateY(-50%) scale(1); }
  50% { box-shadow: 0 0 36px rgba(var(--rjx-brand-rgb), 0.45); transform: translateY(-50%) scale(1.04); }
}

@keyframes rjx-fx-brand-pulse-accent {
  0%, 100% { box-shadow: 0 0 22px rgba(var(--rjx-accent-rgb), 0.4); }
  50% { box-shadow: 0 0 44px rgba(var(--rjx-accent-rgb), 0.7); }
}

.rjx-brand-cluster .rjx-logo-link img {
  transition: transform 0.45s var(--rjx-fx-ease), filter 0.4s ease;
}

.rjx-brand-cluster:hover .rjx-logo-link img,
.rjx-brand-cluster .rjx-logo-link:focus-visible img {
  transform: scale(1.04);
  filter: drop-shadow(0 4px 16px rgba(var(--rjx-brand-rgb), 0.7));
}

.rjx-brand-cluster .rjx-logo-link:focus-visible {
  outline: 2px solid var(--rjx-brand);
  outline-offset: 3px;
  border-radius: 6px;
}

/* ------------------------------------------------------------
   11. Tabs – sliding active pill
   ------------------------------------------------------------ */

.rjx-tabs__labels {
  position: relative;
  isolation: isolate;
}

.rjx-tabs__labels::before {
  content: "";
  position: absolute;
  top: var(--rjx-fx-tab-top, 0.35rem);
  left: var(--rjx-fx-tab-left, 0);
  width: var(--rjx-fx-tab-w, 0);
  height: var(--rjx-fx-tab-h, 0);
  background: linear-gradient(135deg, var(--rjx-brand), var(--rjx-accent));
  border-radius: 999px;
  box-shadow: 0 4px 22px rgba(var(--rjx-brand-rgb), 0.45);
  transition: transform 0.42s var(--rjx-fx-ease),
              width 0.42s var(--rjx-fx-ease),
              height 0.42s var(--rjx-fx-ease),
              top 0.42s var(--rjx-fx-ease),
              left 0.42s var(--rjx-fx-ease),
              opacity 0.3s ease;
  z-index: -1;
  opacity: 0;
}

.rjx-tabs__labels.is-fx-ready::before {
  opacity: 1;
}

.rjx-tabs__label {
  position: relative;
}

.rjx-tabs__labels.is-fx-ready .rjx-tabs__label.is-active {
  background: transparent !important;
  box-shadow: none !important;
  z-index: 1;
}

.rjx-tabs__panel {
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 0.4s ease, transform 0.4s var(--rjx-fx-ease);
}

.rjx-tabs__panel.is-active {
  opacity: 1;
  transform: none;
}

/* ------------------------------------------------------------
   12. Video block – cinematic play button with concentric rings
   ------------------------------------------------------------ */

.rjx-video-wrap {
  position: relative;
  transition: box-shadow 0.45s ease, transform 0.45s var(--rjx-fx-ease);
}

.rjx-video-wrap::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  padding: 1px;
  background: linear-gradient(135deg, rgba(var(--rjx-brand-rgb), 0.55), rgba(var(--rjx-accent-rgb), 0.5));
  -webkit-mask:
    linear-gradient(#000 0 0) content-box,
    linear-gradient(#000 0 0);
  mask:
    linear-gradient(#000 0 0) content-box,
    linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
          mask-composite: exclude;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.4s ease;
}

.rjx-video-wrap:hover {
  box-shadow:
    var(--rjx-shadow-card),
    0 0 40px rgba(var(--rjx-brand-rgb), 0.25);
}

.rjx-video-wrap:hover::before {
  opacity: 1;
}

.rjx-video-wrap::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 72px;
  height: 72px;
  border-radius: 50%;
  transform: translate(-50%, -50%);
  pointer-events: none;
  box-shadow:
    0 0 0 0 rgba(var(--rjx-brand-rgb), 0.55),
    0 0 0 0 rgba(var(--rjx-brand-rgb), 0.55);
  animation: rjx-fx-pulse-rings 2.4s ease-out infinite;
}

.rjx-video-wrap.is-playing::after {
  display: none;
}

@keyframes rjx-fx-pulse-rings {
  0% {
    box-shadow:
      0 0 0 0 rgba(var(--rjx-brand-rgb), 0.55),
      0 0 0 0 rgba(var(--rjx-brand-rgb), 0.55);
  }
  60% {
    box-shadow:
      0 0 0 32px rgba(var(--rjx-brand-rgb), 0.0),
      0 0 0 16px rgba(var(--rjx-brand-rgb), 0.0);
  }
  100% {
    box-shadow:
      0 0 0 40px rgba(var(--rjx-brand-rgb), 0.0),
      0 0 0 24px rgba(var(--rjx-brand-rgb), 0.0);
  }
}

.rjx-video-play {
  filter: drop-shadow(0 6px 24px rgba(0, 0, 0, 0.6));
  transition: transform 0.35s var(--rjx-fx-ease), filter 0.35s ease;
}

.rjx-video-wrap:hover .rjx-video-play {
  transform: scale(1.08);
  filter: drop-shadow(0 10px 28px rgba(var(--rjx-brand-rgb), 0.65));
}

/* ------------------------------------------------------------
   13. Highlight list – animated bullet ring
   ------------------------------------------------------------ */

.rjx-highlight-list li {
  position: relative;
  padding-left: 0.15rem;
  transition: transform 0.3s var(--rjx-fx-ease), color 0.3s ease;
}

.rjx-highlight-list li:hover {
  color: var(--rjx-text);
  transform: translateX(4px);
}

.rjx-highlight-list li::before {
  position: relative;
  box-shadow: 0 0 0 2px rgba(var(--rjx-brand-rgb), 0.25);
  transition: box-shadow 0.35s ease, transform 0.35s var(--rjx-fx-ease);
}

.rjx-highlight-list li:hover::before {
  box-shadow: 0 0 0 4px rgba(var(--rjx-brand-rgb), 0.35), 0 0 14px rgba(var(--rjx-brand-rgb), 0.55);
  transform: scale(1.15);
}

.rjx-highlight-list li:nth-child(even)::before {
  box-shadow: 0 0 0 2px rgba(var(--rjx-accent-rgb), 0.25);
}

.rjx-highlight-list li:nth-child(even):hover::before {
  box-shadow: 0 0 0 4px rgba(var(--rjx-accent-rgb), 0.35), 0 0 14px rgba(var(--rjx-accent-rgb), 0.55);
}

/* ------------------------------------------------------------
   14. Platform B2C – animated phone mockup with vertical reels
   ------------------------------------------------------------ */

.rjx-home-platform__visual {
  position: relative;
  overflow: hidden;
  isolation: isolate;
}

.rjx-home-platform__visual {
  color: transparent;
  background:
    radial-gradient(ellipse 70% 50% at 50% 100%, rgba(var(--rjx-brand-rgb), 0.18), transparent 60%),
    radial-gradient(ellipse 70% 50% at 50% 0%, rgba(var(--rjx-accent-rgb), 0.14), transparent 60%),
    linear-gradient(180deg, #14141a 0%, #0c0c10 100%);
  border: 1px solid rgba(255, 255, 255, 0.06);
}

.rjx-home-platform__visual::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.05) 1px, transparent 1px);
  background-size: 28px 28px;
  mask-image: radial-gradient(ellipse 70% 60% at 50% 50%, #000, transparent 80%);
  -webkit-mask-image: radial-gradient(ellipse 70% 60% at 50% 50%, #000, transparent 80%);
  opacity: 0.4;
}

.rjx-fx-phone {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(0.65rem, 1.6vw, 1.2rem);
  perspective: 1200px;
}

.rjx-fx-phone__device {
  position: relative;
  height: 82%;
  aspect-ratio: 9 / 19;
  flex: 0 0 auto;
  border-radius: clamp(18px, 2.4vw, 30px);
  background: linear-gradient(180deg, #1c1c22 0%, #0c0c10 100%);
  box-shadow:
    0 30px 60px rgba(0, 0, 0, 0.55),
    0 0 0 1px rgba(255, 255, 255, 0.06),
    inset 0 0 0 1px rgba(255, 255, 255, 0.04);
  padding: 8px;
  transform-style: preserve-3d;
  animation: rjx-fx-phone-float 8s ease-in-out infinite;
}

.rjx-fx-phone__device--center {
  transform: translateY(-6%) scale(1.08);
  z-index: 2;
  animation-delay: -2s;
}

.rjx-fx-phone__device--left {
  transform: rotate(-8deg) translateY(4%);
  animation-delay: -4s;
  opacity: 0.85;
}

.rjx-fx-phone__device--right {
  transform: rotate(8deg) translateY(4%);
  animation-delay: -1s;
  opacity: 0.85;
}

@keyframes rjx-fx-phone-float {
  0%, 100% { translate: 0 0; }
  50% { translate: 0 -6px; }
}

.rjx-fx-phone__screen {
  position: relative;
  width: 100%;
  height: 100%;
  border-radius: clamp(16px, 2.4vw, 26px);
  overflow: hidden;
  background: #0a0a0d;
}

.rjx-fx-phone__notch {
  position: absolute;
  top: 6px;
  left: 50%;
  width: 38%;
  height: 14px;
  background: #000;
  border-radius: 999px;
  transform: translateX(-50%);
  z-index: 3;
}

.rjx-fx-phone__reel {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  animation: rjx-fx-reel 16s linear infinite;
}

.rjx-fx-phone__device--center .rjx-fx-phone__reel { animation-duration: 14s; }
.rjx-fx-phone__device--left .rjx-fx-phone__reel { animation-duration: 18s; animation-direction: reverse; }
.rjx-fx-phone__device--right .rjx-fx-phone__reel { animation-duration: 20s; }

.rjx-fx-phone__slide {
  flex: 0 0 100%;
  position: relative;
  background: linear-gradient(160deg, #2a2a36, #15151b);
}

.rjx-fx-phone__slide--a {
  background:
    radial-gradient(circle at 30% 30%, rgba(var(--rjx-brand-rgb), 0.55), transparent 55%),
    radial-gradient(circle at 70% 70%, rgba(var(--rjx-accent-rgb), 0.4), transparent 60%),
    linear-gradient(160deg, #221218, #0e0e16);
}

.rjx-fx-phone__slide--b {
  background:
    radial-gradient(circle at 70% 30%, rgba(var(--rjx-accent-rgb), 0.55), transparent 55%),
    radial-gradient(circle at 30% 70%, rgba(var(--rjx-brand-rgb), 0.45), transparent 60%),
    linear-gradient(160deg, #16162a, #0a0a16);
}

.rjx-fx-phone__slide--c {
  background:
    radial-gradient(circle at 50% 30%, rgba(255, 180, 90, 0.4), transparent 55%),
    radial-gradient(circle at 50% 70%, rgba(var(--rjx-brand-rgb), 0.45), transparent 60%),
    linear-gradient(160deg, #2a1d10, #100c0a);
}

.rjx-fx-phone__slide--d {
  background:
    radial-gradient(circle at 40% 40%, rgba(120, 110, 255, 0.45), transparent 55%),
    radial-gradient(circle at 60% 70%, rgba(var(--rjx-accent-rgb), 0.45), transparent 60%),
    linear-gradient(160deg, #14142a, #0a0a14);
}

.rjx-fx-phone__slide::before {
  content: "";
  position: absolute;
  left: 8%;
  right: 28%;
  bottom: 18%;
  height: 8%;
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.85);
  filter: blur(0.5px);
}

.rjx-fx-phone__slide::after {
  content: "";
  position: absolute;
  left: 8%;
  right: 50%;
  bottom: 9%;
  height: 5%;
  border-radius: 3px;
  background: rgba(255, 255, 255, 0.45);
}

.rjx-fx-phone__play {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 36%;
  aspect-ratio: 1;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.35);
  border: 1px solid rgba(255, 255, 255, 0.4);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2;
}

.rjx-fx-phone__play::before {
  content: "";
  width: 30%;
  aspect-ratio: 1;
  clip-path: polygon(15% 5%, 100% 50%, 15% 95%);
  background: #fff;
  filter: drop-shadow(0 0 8px rgba(255, 255, 255, 0.5));
}

@keyframes rjx-fx-reel {
  from { transform: translateY(0); }
  to { transform: translateY(-300%); }
}

.rjx-fx-phone__sidebar {
  position: absolute;
  right: 6%;
  bottom: 14%;
  display: flex;
  flex-direction: column;
  gap: 8px;
  align-items: center;
  z-index: 2;
}

.rjx-fx-phone__pill {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.7);
  box-shadow: 0 0 8px rgba(var(--rjx-brand-rgb), 0.55);
}

.rjx-fx-phone__pill:nth-child(2) { background: rgba(var(--rjx-brand-rgb), 0.95); }
.rjx-fx-phone__pill:nth-child(3) { background: rgba(var(--rjx-accent-rgb), 0.85); }

/* Decorative orbital ring around center phone */
.rjx-fx-phone__halo {
  position: absolute;
  top: 50%;
  left: 50%;
  width: clamp(280px, 50%, 460px);
  aspect-ratio: 1;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  border: 1px dashed rgba(var(--rjx-brand-rgb), 0.25);
  pointer-events: none;
  animation: rjx-fx-orbit 32s linear infinite;
  z-index: 0;
}

.rjx-fx-phone__halo::before {
  content: "";
  position: absolute;
  top: -4px;
  left: 50%;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--rjx-brand);
  box-shadow: 0 0 18px rgba(var(--rjx-brand-rgb), 0.85);
  transform: translateX(-50%);
}

@keyframes rjx-fx-orbit {
  from { transform: translate(-50%, -50%) rotate(0); }
  to { transform: translate(-50%, -50%) rotate(360deg); }
}

/* ------------------------------------------------------------
   15. Map – decorative pulse pins overlay (added via JS)
   ------------------------------------------------------------ */

.rjx-map-compact {
  position: relative;
  isolation: isolate;
}

.rjx-map-compact img {
  display: block;
  transition: filter 0.6s ease;
  filter: saturate(1.05) contrast(1.05);
}

.rjx-map-compact:hover img {
  filter: saturate(1.2) contrast(1.1) brightness(1.05);
}

.rjx-fx-pins {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 2;
}

.rjx-fx-pin {
  position: absolute;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--rjx-brand);
  box-shadow:
    0 0 0 1.5px rgba(255, 255, 255, 0.75),
    0 0 8px rgba(var(--rjx-brand-rgb), 0.45);
  transform: translate(-50%, -50%);
  animation: rjx-fx-pin-breathe 3.4s ease-in-out infinite;
}

/* Pin animations only run while the map is in view (toggled in rjx-fx.js).
   This keeps ~150 infinite animations idle when the section is off-screen. */
.rjx-fx-pins.is-active .rjx-fx-pin {
  will-change: transform, opacity, box-shadow;
}

.rjx-fx-pins:not(.is-active) .rjx-fx-pin,
.rjx-fx-pins:not(.is-active) .rjx-fx-pin::before,
.rjx-fx-pins:not(.is-active) .rjx-fx-pin::after {
  animation-play-state: paused;
}

.rjx-fx-pin--xs {
  width: 5px;
  height: 5px;
  animation-duration: 3.1s;
}

.rjx-fx-pin--xs::before,
.rjx-fx-pin--xs::after {
  border-width: 1.5px;
}

.rjx-fx-pin--sm {
  width: 7px;
  height: 7px;
  animation-duration: 3.2s;
}

.rjx-fx-pin--sm::before,
.rjx-fx-pin--sm::after {
  border-width: 1.5px;
}

.rjx-fx-pin--md {
  width: 10px;
  height: 10px;
}

.rjx-fx-pin--lg {
  width: 14px;
  height: 14px;
  animation-duration: 3.6s;
}

.rjx-fx-pin--lg::before,
.rjx-fx-pin--lg::after {
  border-width: 2.5px;
}

.rjx-fx-pin::before,
.rjx-fx-pin::after {
  content: "";
  position: absolute;
  inset: -2px;
  border-radius: 50%;
  border: 1.5px solid rgba(var(--rjx-brand-rgb), 0.55);
  animation: rjx-fx-pin-pulse 3.4s ease-out infinite;
}

.rjx-fx-pin::after {
  animation-delay: 1.7s;
}

.rjx-fx-pin--accent {
  background: var(--rjx-accent);
  animation-name: rjx-fx-pin-breathe-accent;
}

.rjx-fx-pin--accent::before,
.rjx-fx-pin--accent::after {
  border-color: rgba(var(--rjx-accent-rgb), 0.55);
}

.rjx-fx-pin--xs::before,
.rjx-fx-pin--xs::after {
  animation-name: rjx-fx-pin-pulse-sm;
}

.rjx-fx-pin--lg::before,
.rjx-fx-pin--lg::after {
  animation-name: rjx-fx-pin-pulse-lg;
}

@keyframes rjx-fx-pin-breathe {
  0%, 100% {
    transform: translate(-50%, -50%) scale(0.92);
    opacity: 0.55;
    box-shadow:
      0 0 0 1px rgba(255, 255, 255, 0.55),
      0 0 4px rgba(var(--rjx-brand-rgb), 0.25);
  }
  50% {
    transform: translate(-50%, -50%) scale(1.1);
    opacity: 0.92;
    box-shadow:
      0 0 0 1.5px rgba(255, 255, 255, 0.85),
      0 0 8px rgba(var(--rjx-brand-rgb), 0.55),
      0 0 14px rgba(var(--rjx-brand-rgb), 0.25);
  }
}

@keyframes rjx-fx-pin-breathe-accent {
  0%, 100% {
    transform: translate(-50%, -50%) scale(0.92);
    opacity: 0.55;
    box-shadow:
      0 0 0 1px rgba(255, 255, 255, 0.55),
      0 0 4px rgba(var(--rjx-accent-rgb), 0.25);
  }
  50% {
    transform: translate(-50%, -50%) scale(1.1);
    opacity: 0.92;
    box-shadow:
      0 0 0 1.5px rgba(255, 255, 255, 0.85),
      0 0 8px rgba(var(--rjx-accent-rgb), 0.55),
      0 0 14px rgba(var(--rjx-accent-rgb), 0.25);
  }
}

@keyframes rjx-fx-pin-pulse {
  0% {
    transform: scale(0.95);
    opacity: 0.45;
  }
  100% {
    transform: scale(2.4);
    opacity: 0;
  }
}

@keyframes rjx-fx-pin-pulse-sm {
  0% {
    transform: scale(0.95);
    opacity: 0.4;
  }
  100% {
    transform: scale(2);
    opacity: 0;
  }
}

@keyframes rjx-fx-pin-pulse-lg {
  0% {
    transform: scale(0.95);
    opacity: 0.5;
  }
  100% {
    transform: scale(2.8);
    opacity: 0;
  }
}

/* ------------------------------------------------------------
   16. Marquee – frame neon glow on hover, slower pause
   ------------------------------------------------------------ */

.rjx-marquee:hover .rjx-marquee__track {
  animation-play-state: paused;
}

/* ------------------------------------------------------------
   17. Form inputs – glow on focus
   ------------------------------------------------------------ */

.rjx-input,
.rjx-textarea {
  border: 1px solid rgba(255, 255, 255, 0.08);
  transition: background var(--rjx-transition),
              box-shadow var(--rjx-transition),
              border-color var(--rjx-transition);
}

.rjx-input:focus,
.rjx-textarea:focus {
  border-color: rgba(var(--rjx-brand-rgb), 0.65);
  box-shadow:
    0 0 0 3px rgba(var(--rjx-brand-rgb), 0.2),
    0 0 24px rgba(var(--rjx-brand-rgb), 0.18);
}

/* ------------------------------------------------------------
   18. News items – left accent line on hover
   ------------------------------------------------------------ */

.rjx-marketing .rjx-news-item {
  position: relative;
  transition:
    transform var(--rjx-transition),
    box-shadow var(--rjx-transition),
    background var(--rjx-transition);
}

.rjx-marketing .rjx-news-item::before {
  content: "";
  position: absolute;
  left: 0;
  top: 12px;
  bottom: 12px;
  width: 2px;
  background: linear-gradient(180deg, var(--rjx-brand), var(--rjx-accent));
  border-radius: 2px;
  transform: scaleY(0);
  transform-origin: top;
  transition: transform 0.45s var(--rjx-fx-ease);
}

.rjx-marketing .rjx-news-item:hover::before,
.rjx-marketing .rjx-news-item:focus-visible::before {
  transform: scaleY(1);
}

/* Blog list items */
.rjx-marketing .rjx-blog-list article {
  position: relative;
  transition:
    padding-inline-start 0.35s var(--rjx-fx-ease),
    transform var(--rjx-transition),
    box-shadow var(--rjx-transition),
    background var(--rjx-transition);
}

.rjx-marketing .rjx-blog-list article::before {
  content: "";
  position: absolute;
  left: 0;
  top: 12px;
  bottom: 12px;
  width: 2px;
  background: linear-gradient(180deg, var(--rjx-brand), var(--rjx-accent));
  border-radius: 2px;
  transform: scaleY(0);
  transform-origin: top;
  transition: transform 0.45s var(--rjx-fx-ease);
}

.rjx-marketing .rjx-blog-list article:hover,
.rjx-marketing .rjx-blog-list article:focus-within {
  padding-inline-start: calc(var(--rjx-space-lg) + 6px);
}

.rjx-marketing .rjx-blog-list article:hover::before,
.rjx-marketing .rjx-blog-list article:focus-within::before {
  transform: scaleY(1);
}

/* ------------------------------------------------------------
   19. Reveal stagger (children inside .rjx-reveal--stagger)
   ------------------------------------------------------------ */

.rjx-reveal--stagger > * {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 0.55s var(--rjx-fx-ease), transform 0.55s var(--rjx-fx-ease);
  transition-delay: calc(var(--rjx-stagger-i, 0) * 80ms);
}

.rjx-reveal--stagger.is-visible > * {
  opacity: 1;
  transform: none;
}

/* ------------------------------------------------------------
   20. Reduced motion safeguards
   ------------------------------------------------------------ */

@media (prefers-reduced-motion: reduce) {
  .rjx-section__eyebrow::before,
  .rjx-card:hover .rjx-card__media::before,
  .rjx-card:hover .rjx-card__play-glyph::before,
  .rjx-card:focus-within .rjx-card__play-glyph::before,
  .rjx-btn:hover::after,
  .rjx-video-wrap::after,
  .rjx-fx-phone__device,
  .rjx-fx-phone__reel,
  .rjx-fx-phone__halo,
  .rjx-fx-pin,
  .rjx-fx-pin::before,
  .rjx-fx-pin::after,
  .rjx-leader:hover::after {
    animation: none !important;
  }

  .rjx-card.is-tilting {
    transform: none !important;
  }

  .rjx-main__surface > .rjx-section::before,
  .rjx-main__surface > .rjx-page-title::before {
    transform: none;
    opacity: 1;
  }

  .rjx-section__title::after {
    transform: scaleX(1);
  }

  .rjx-page-title__crumb-icon {
    transform: none;
  }
}

/* ------------------------------------------------------------
   21. Small-screen tuning
   ------------------------------------------------------------ */

@media (max-width: 767px) {
  .rjx-card__media .rjx-card__play-glyph {
    width: 48px;
    height: 48px;
  }

  .rjx-card__media .rjx-card__play-glyph svg {
    width: 18px;
    height: 18px;
  }

  .rjx-stat::before,
  .rjx-stat::after {
    width: 10px;
    height: 10px;
  }

  .rjx-fx-phone {
    gap: 4px;
  }

  .rjx-fx-phone__device {
    height: 78%;
  }

  .rjx-fx-phone__device--left,
  .rjx-fx-phone__device--right {
    display: none;
  }

  .rjx-fx-phone__device--center {
    transform: translateY(0) scale(1);
  }
}

@media (max-width: 480px) {
  .rjx-fx-phone__halo {
    display: none;
  }
}

/* ------------------------------------------------------------
   22. Cosmos – distant twinkling stars + drifting white meteors
   ------------------------------------------------------------ */

.rjx-cosmos {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
  contain: strict;
}

.rjx-cosmos__canvas {
  width: 100%;
  height: 100%;
  display: block;
}

/* Slightly translucent panel surfaces so the cosmos shows through */
body.rjx-marketing .rjx-main__surface > .rjx-section,
body.rjx-marketing .rjx-main__surface > .rjx-page-title {
  background: #0A0A0A;
}

body.rjx-marketing .rjx-main__surface > .rjx-section--alt {
  background: rgba(20, 20, 26, 0.94);
}

@media (prefers-reduced-motion: reduce) {
  .rjx-cosmos {
    display: none;
  }
}
