.rufx-public {
  --rf-bg: #050507;
  --rf-ink: #f8fafc;
  --rf-soft: #dbe7f5;
  --rf-muted: #8fa0b6;
  --rf-line: rgba(255, 255, 255, 0.14);
  --rf-panel: rgba(8, 12, 22, 0.74);
  --rf-panel-strong: rgba(11, 16, 28, 0.94);
  --rf-cyan: #25d7f2;
  --rf-green: #34d399;
  --rf-amber: #f5b84b;
  --rf-violet: #9a20ff;
  color: var(--rf-ink);
  background: #050507;
}

#fxConstellation,
.scan-field {
  position: fixed;
  inset: 0;
  z-index: -3;
  pointer-events: none;
}

.scan-field {
  z-index: -2;
  background:
    linear-gradient(180deg, rgba(5,5,7,0), #050507 86%),
    repeating-linear-gradient(90deg, rgba(255,255,255,0.026) 0 1px, transparent 1px 88px),
    repeating-linear-gradient(0deg, rgba(255,255,255,0.018) 0 1px, transparent 1px 72px);
}

.rufx-header {
  position: sticky;
  top: 0;
  z-index: 40;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 1rem;
  min-height: 4.6rem;
  padding: 0.74rem clamp(1rem, 4vw, 4.8rem);
  background: rgba(5, 5, 7, 0.78);
  border-bottom: 1px solid var(--rf-line);
  backdrop-filter: blur(18px);
}

.rufx-brand,
.rufx-footer div {
  display: inline-flex;
  align-items: center;
  gap: 0.72rem;
  color: var(--rf-ink);
  text-decoration: none;
  font-weight: 900;
}

.brand-mark-wrap {
  width: 3rem;
  height: 3rem;
  position: relative;
  display: grid;
  place-items: center;
}

.brand-mark-wrap img,
.rufx-footer img {
  width: 2.72rem;
  height: 2.72rem;
  border-radius: 8px;
}

.brand-mark-wrap i {
  position: absolute;
  inset: -0.35rem;
  border-radius: 12px;
  border: 1px solid rgba(37, 215, 242, 0.36);
  box-shadow: 0 0 18px rgba(37, 215, 242, 0.26), 0 0 30px rgba(154, 32, 255, 0.2);
  animation: logoGlow 2.4s ease-in-out infinite;
}

.brand-copy {
  display: grid;
  line-height: 1.05;
}

.brand-copy small {
  color: var(--rf-cyan);
  font-size: 0.7rem;
  letter-spacing: 0.22em;
}

.rufx-nav {
  display: flex;
  justify-content: center;
  gap: clamp(0.68rem, 1.6vw, 1.25rem);
  min-width: 0;
  overflow-x: auto;
  scrollbar-width: none;
}

.rufx-nav::-webkit-scrollbar {
  display: none;
}

.rufx-nav a,
.text-link,
.hero-actions a {
  color: var(--rf-soft);
  text-decoration: none;
}

.rufx-nav a {
  font-size: 0.92rem;
  font-weight: 780;
  white-space: nowrap;
}

.rufx-nav a:hover,
.text-link:hover {
  color: #fff;
}

.rufx-header-actions,
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
}

.rufx-public .primary-btn {
  background: linear-gradient(135deg, #8f1dff, #087cff 48%, #0dbca4);
}

.rufx-public .secondary-btn {
  color: #f8fafc;
  background: rgba(255, 255, 255, 0.07);
  border-color: rgba(255, 255, 255, 0.16);
}

.neo-hero {
  min-height: calc(100svh - 4.6rem);
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(18rem, 0.48fr);
  align-items: center;
  gap: clamp(1rem, 4vw, 3rem);
  overflow: hidden;
  padding: clamp(2rem, 5vw, 5rem) clamp(1rem, 5vw, 4.8rem);
  border-bottom: 1px solid var(--rf-line);
}

.hero-bg {
  position: absolute;
  inset: 0;
  z-index: -1;
}

.hero-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(5,5,7,0.97) 0%, rgba(5,5,7,0.78) 42%, rgba(5,5,7,0.28) 76%, rgba(5,5,7,0.86) 100%),
    linear-gradient(180deg, rgba(5,5,7,0.06), #050507 98%);
}

.hero-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center right;
  filter: saturate(1.08) contrast(1.05);
}

.hero-content {
  max-width: 50rem;
}

.fx-lockup {
  width: fit-content;
  display: flex;
  align-items: center;
  gap: 0.9rem;
  margin-bottom: 1.2rem;
  padding: 0.66rem 0.8rem;
  background: rgba(255,255,255,0.055);
  border: 1px solid rgba(255,255,255,0.14);
  border-radius: 8px;
  box-shadow: 0 20px 70px rgba(0,0,0,0.28);
  backdrop-filter: blur(18px);
}

.fx-emblem {
  width: 4.4rem;
  height: 4.4rem;
  position: relative;
  display: grid;
  place-items: center;
}

.fx-emblem img {
  width: 3.35rem;
  height: 3.35rem;
  position: relative;
  z-index: 2;
  border-radius: 8px;
  filter: drop-shadow(0 0 16px rgba(37,215,242,0.32));
}

.fx-emblem .ring {
  position: absolute;
  inset: 0;
  border-radius: 16px;
  border: 1px solid rgba(37, 215, 242, 0.34);
  box-shadow: 0 0 22px rgba(37,215,242,0.22), inset 0 0 18px rgba(154,32,255,0.18);
  animation: spinRing 5.8s linear infinite;
}

.fx-emblem .ring-two {
  inset: 0.45rem;
  border-color: rgba(52, 211, 153, 0.35);
  animation-duration: 4.2s;
  animation-direction: reverse;
}

.fx-name {
  display: grid;
  line-height: 1.05;
}

.fx-name b {
  color: #ffffff;
  font-size: 2.25rem;
  letter-spacing: 0.04em;
  text-shadow: 0 0 22px rgba(37,215,242,0.42), 0 0 34px rgba(154,32,255,0.32);
  animation: fxTextPulse 1.9s ease-in-out infinite;
}

.fx-name small {
  color: var(--rf-green);
  font-weight: 760;
}

.rufx-kicker {
  display: inline-flex;
  align-items: center;
  min-height: 2rem;
  color: var(--rf-cyan);
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.neo-hero h1,
.hero-title {
  margin: 0.3rem 0 1.05rem;
  display: flex;
  align-items: flex-end;
  gap: clamp(0.55rem, 1.5vw, 1.15rem);
  flex-wrap: nowrap;
  color: #fff;
  line-height: 0.82;
  letter-spacing: 0;
}

.hero-word {
  position: relative;
  display: inline-block;
  color: transparent;
  background:
    linear-gradient(105deg, #ffffff 0%, #f4ebff 22%, #b879ff 43%, #37d7ff 67%, #ffffff 100%);
  background-size: 230% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  text-shadow:
    0 0 18px rgba(154, 32, 255, 0.34),
    0 0 34px rgba(37, 215, 242, 0.2),
    0 0 64px rgba(8, 124, 255, 0.2);
  animation: heroTitleGlow 3.2s ease-in-out infinite;
}

.hero-word::after {
  content: "";
  position: absolute;
  inset: -0.06em -0.04em;
  z-index: -1;
  background:
    radial-gradient(circle at 20% 50%, rgba(154, 32, 255, 0.22), transparent 38%),
    radial-gradient(circle at 78% 50%, rgba(37, 215, 242, 0.18), transparent 42%);
  filter: blur(18px);
  opacity: 0.72;
  animation: heroAuraPulse 2.5s ease-in-out infinite;
}

.hero-word-rufx {
  font-size: clamp(4.2rem, 10vw, 8.5rem);
}

.hero-word-one {
  margin-bottom: 0.08em;
  font-size: clamp(2.65rem, 5.7vw, 5.15rem);
  background:
    linear-gradient(105deg, #e9dcff 0%, #b36bff 28%, #4bbfff 62%, #ffffff 100%);
  background-size: 250% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  animation-delay: 0.18s;
}

.neo-hero p,
.story-band p,
.feature-copy p,
.module-deck p,
.build-timeline p,
.page-hero p,
.page-copy p,
.page-card p {
  color: var(--rf-soft);
  line-height: 1.72;
}

.neo-hero p {
  max-width: 50rem;
  font-size: clamp(1.02rem, 1.45vw, 1.22rem);
}

.hero-status {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  margin-top: 1.25rem;
}

.hero-status span {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  color: #edf6ff;
  background: rgba(255,255,255,0.075);
  border: 1px solid rgba(255,255,255,0.16);
  border-radius: 999px;
  padding: 0.5rem 0.74rem;
}

.hero-status i {
  width: 0.55rem;
  height: 0.55rem;
  border-radius: 999px;
  background: var(--rf-green);
  box-shadow: 0 0 14px rgba(52,211,153,0.8);
}

.hero-console {
  width: min(100%, 31rem);
  min-height: 26rem;
  justify-self: end;
  display: grid;
  align-content: space-between;
  gap: 0.82rem;
  padding: 0.82rem;
  background:
    linear-gradient(135deg, rgba(37,215,242,0.11), rgba(154,32,255,0.08)),
    rgba(7, 11, 21, 0.78);
  border: 1px solid rgba(255,255,255,0.16);
  border-radius: 8px;
  box-shadow: 0 28px 90px rgba(0,0,0,0.34), 0 0 42px rgba(37,215,242,0.12);
  backdrop-filter: blur(18px);
}

.console-top,
.console-flow {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
}

.console-top span,
.console-top b {
  color: #fff;
}

.console-top span {
  letter-spacing: 0.18em;
}

.console-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.58rem;
}

.console-grid span {
  min-height: 5.85rem;
  display: grid;
  align-content: space-between;
  gap: 0.35rem;
  border: 1px solid rgba(255,255,255,0.13);
  border-radius: 8px;
  background:
    linear-gradient(90deg, transparent, rgba(37,215,242,0.13), transparent),
    rgba(255,255,255,0.055);
  background-size: 220% 100%;
  animation: panelSweep 3.6s ease-in-out infinite;
  padding: 0.64rem;
  overflow: hidden;
}

.console-grid b {
  color: #fff;
  font-size: 0.88rem;
  letter-spacing: 0;
}

.console-grid small {
  color: var(--rf-muted);
  font-size: 0.74rem;
  line-height: 1.25;
}

.console-grid span i {
  height: 0.22rem;
  display: block;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--rf-cyan), var(--rf-green));
  box-shadow: 0 0 14px rgba(37,215,242,0.38);
}

.console-flow {
  color: #fff;
  padding: 0.8rem;
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 8px;
  background: rgba(0,0,0,0.2);
}

.console-flow i {
  width: 0.75rem;
  height: 0.75rem;
  border-radius: 999px;
  background: var(--rf-green);
  box-shadow: 0 0 18px rgba(52,211,153,0.8);
}

.console-flow em {
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg, var(--rf-cyan), transparent);
}

.story-band,
.rich-section,
.image-feature,
.timeline-section,
.page-hero,
.page-section {
  padding: clamp(2.8rem, 6vw, 6rem) clamp(1rem, 5vw, 4.8rem);
}

.story-band {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(20rem, 0.8fr);
  gap: clamp(1rem, 4vw, 3rem);
  align-items: end;
  border-block: 1px solid var(--rf-line);
  background: linear-gradient(135deg, rgba(37,215,242,0.08), rgba(52,211,153,0.04));
}

.story-band h2,
.section-headline h2,
.feature-copy h2,
.page-hero h1,
.page-copy h2 {
  margin: 0;
  color: #fff;
  font-size: clamp(2.25rem, 5vw, 5rem);
  line-height: 0.96;
  letter-spacing: 0;
}

.section-headline {
  display: grid;
  gap: 0.7rem;
  margin-bottom: 1.35rem;
}

.module-deck {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.85rem;
}

.module-deck a,
.build-timeline li,
.page-card,
.page-metric,
.feature-media {
  border: 1px solid var(--rf-line);
  border-radius: 8px;
  background: var(--rf-panel);
  box-shadow: 0 24px 80px rgba(0,0,0,0.28);
  backdrop-filter: blur(18px);
}

.module-deck a {
  min-height: 13rem;
  display: grid;
  align-content: start;
  gap: 0.65rem;
  color: #fff;
  text-decoration: none;
  padding: 1.05rem;
  transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.module-deck a:hover,
.page-card:hover {
  transform: translateY(-4px);
  border-color: rgba(37,215,242,0.44);
  box-shadow: 0 22px 78px rgba(37,215,242,0.11), 0 24px 80px rgba(0,0,0,0.32);
}

.module-deck b {
  color: #fff;
  font-size: 1.34rem;
}

.image-feature {
  display: grid;
  grid-template-columns: minmax(20rem, 1.08fr) minmax(0, 0.82fr);
  align-items: center;
  gap: clamp(1rem, 4vw, 3rem);
}

.image-feature.reverse {
  grid-template-columns: minmax(0, 0.82fr) minmax(20rem, 1.08fr);
}

.image-feature.reverse .feature-media {
  order: 2;
}

.feature-media {
  overflow: hidden;
}

.feature-media img {
  width: 100%;
  height: 100%;
  min-height: 24rem;
  display: block;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.feature-media:hover img {
  transform: scale(1.035);
}

.feature-copy {
  display: grid;
  gap: 0.85rem;
}

.text-link {
  width: fit-content;
  color: var(--rf-cyan);
  font-weight: 900;
}

.build-timeline {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 0.85rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.build-timeline li {
  min-height: 14rem;
  display: grid;
  align-content: start;
  gap: 0.62rem;
  padding: 1rem;
}

.build-timeline span {
  width: 2.45rem;
  height: 2.45rem;
  display: grid;
  place-items: center;
  color: #031018;
  background: linear-gradient(135deg, var(--rf-cyan), var(--rf-green));
  border-radius: 8px;
  font-weight: 950;
}

.build-timeline b {
  color: #fff;
}

.rufx-footer {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  align-items: center;
  padding: 1.25rem clamp(1rem, 5vw, 4.8rem);
  border-top: 1px solid var(--rf-line);
  background: rgba(5,5,7,0.9);
}

.rufx-footer span {
  color: var(--rf-muted);
}

.page-hero {
  min-height: 48vh;
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(18rem, 0.65fr);
  align-items: center;
  gap: clamp(1rem, 4vw, 3rem);
  border-bottom: 1px solid var(--rf-line);
}

.page-hero figure {
  margin: 0;
  overflow: hidden;
  border: 1px solid var(--rf-line);
  border-radius: 8px;
  box-shadow: 0 24px 80px rgba(0,0,0,0.34);
}

.page-hero img {
  width: 100%;
  min-height: 22rem;
  object-fit: cover;
  display: block;
}

.page-section {
  display: grid;
  grid-template-columns: minmax(0, 0.72fr) minmax(20rem, 1fr);
  gap: clamp(1rem, 4vw, 3rem);
  align-items: start;
}

.page-copy {
  display: grid;
  gap: 0.85rem;
}

.page-grid,
.page-metrics {
  display: grid;
  gap: 0.85rem;
}

.page-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.page-card,
.page-metric {
  padding: 1rem;
}

.page-card h3,
.page-metric strong {
  margin: 0;
  color: #fff;
}

.page-metrics {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.page-metric strong {
  display: block;
  font-size: 2rem;
}

.page-metric span {
  color: var(--rf-muted);
}

@keyframes logoGlow {
  0%, 100% { opacity: 0.55; transform: scale(0.96); }
  50% { opacity: 1; transform: scale(1.04); }
}

@keyframes spinRing {
  to { transform: rotate(360deg); }
}

@keyframes fxTextPulse {
  0%, 100% { opacity: 0.82; filter: drop-shadow(0 0 4px rgba(37,215,242,0.2)); }
  50% { opacity: 1; filter: drop-shadow(0 0 16px rgba(37,215,242,0.66)); }
}

@keyframes heroTitleGlow {
  0%, 100% {
    background-position: 0% 50%;
    filter: drop-shadow(0 0 8px rgba(154,32,255,0.24)) drop-shadow(0 0 18px rgba(37,215,242,0.12));
  }
  50% {
    background-position: 100% 50%;
    filter: drop-shadow(0 0 18px rgba(154,32,255,0.44)) drop-shadow(0 0 30px rgba(37,215,242,0.26));
  }
}

@keyframes heroAuraPulse {
  0%, 100% {
    opacity: 0.42;
    transform: scale(0.97);
  }
  50% {
    opacity: 0.86;
    transform: scale(1.03);
  }
}

@keyframes panelSweep {
  0%, 100% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
}

@media (max-width: 1180px) {
  .module-deck,
  .build-timeline {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 980px) {
  .rufx-header,
  .neo-hero,
  .story-band,
  .image-feature,
  .image-feature.reverse,
  .page-hero,
  .page-section {
    grid-template-columns: 1fr;
  }

  .rufx-nav {
    grid-column: 1 / -1;
    justify-content: flex-start;
  }

  .image-feature.reverse .feature-media {
    order: 0;
  }

  .hero-bg::after {
    background:
      linear-gradient(90deg, rgba(5,5,7,0.97), rgba(5,5,7,0.72)),
      linear-gradient(180deg, rgba(5,5,7,0.08), #050507 98%);
  }
}

@media (max-width: 680px) {
  .rufx-header-actions {
    grid-column: 1 / -1;
  }

  .rufx-header-actions .primary-btn,
  .rufx-header-actions .secondary-btn {
    flex: 1;
  }

  .neo-hero h1,
  .hero-title {
    gap: 0.48rem;
    max-width: 100%;
  }

  .hero-word-rufx {
    font-size: clamp(4rem, 18vw, 5.25rem);
  }

  .hero-word-one {
    font-size: clamp(2.28rem, 10vw, 3.1rem);
  }

  .hero-console {
    width: 100%;
    min-height: 24rem;
  }

  .console-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .module-deck,
  .build-timeline,
  .page-grid,
  .page-metrics {
    grid-template-columns: 1fr;
  }

  .feature-media img,
  .page-hero img {
    min-height: 18rem;
  }

  .rufx-footer {
    align-items: flex-start;
    flex-direction: column;
  }
}
