/* Fund X homepage — React Bits Light Pillar theme */

:root {
  --lp-bg: #05010d;
  --lp-top: #5227ff;
  --lp-bottom: #ff9ffc;
  --lp-text: #ffffff;
  --lp-muted: rgba(255, 255, 255, 0.68);
  --lp-muted-2: rgba(226, 212, 255, 0.72);
  --lp-card: rgba(12, 6, 28, 0.55);
  --lp-border: rgba(255, 159, 252, 0.18);
  --lp-border-strong: rgba(162, 139, 255, 0.45);
}

body:has(.apex-page) {
  background: var(--lp-bg) !important;
}

.apex-page {
  position: relative;
  background: transparent;
  color: var(--lp-text);
  overflow-x: hidden;
  min-height: 100vh;
}

.apex-page-content {
  position: relative;
  z-index: 1;
}

/* Kill common.css section washes */
.apex-page section {
  background: transparent !important;
  background-image: none !important;
  border-top-color: rgba(162, 139, 255, 0.1) !important;
  animation: none !important;
}

.apex-page section:first-of-type {
  display: block !important;
  align-items: initial !important;
  min-height: 0 !important;
}

.apex-page section::after {
  display: none !important;
}

.apex-section {
  padding: 5.5rem 1rem;
  border-top: 1px solid rgba(162, 139, 255, 0.1);
}

@media (min-width: 640px) {
  .apex-section { padding-left: 1.5rem; padding-right: 1.5rem; }
}
@media (min-width: 1024px) {
  .apex-section { padding-left: 2rem; padding-right: 2rem; }
}

.apex-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.4rem 0.9rem;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
  font-size: 0.8rem;
  font-weight: 650;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.apex-title {
  font-family: "Outfit", system-ui, sans-serif;
  font-weight: 700;
  letter-spacing: -0.03em;
  color: #ffffff;
  text-shadow: 0 0 40px rgba(82, 39, 255, 0.25);
}

.apex-sub {
  color: var(--lp-muted);
  line-height: 1.7;
}

.apex-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  border-radius: 9999px;
  font-weight: 650;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease, border-color 0.2s ease;
}

.apex-btn:hover { transform: translateY(-1px); }

/* React Bits demo style: white primary CTA */
.apex-btn--primary {
  background: #ffffff;
  color: #0a0614;
  box-shadow: 0 0 28px rgba(255, 255, 255, 0.18);
  padding: 0.9rem 1.45rem;
}

.apex-btn--primary:hover {
  box-shadow: 0 0 40px rgba(255, 159, 252, 0.28);
}

.apex-btn--ghost {
  border: 1px solid rgba(255, 255, 255, 0.22);
  color: #fff;
  background: rgba(12, 6, 28, 0.72);
  padding: 0.9rem 1.45rem;
}

.apex-btn--ghost:hover {
  border-color: rgba(255, 159, 252, 0.55);
  background: rgba(82, 39, 255, 0.18);
}

.apex-btn--outline {
  border: 1px solid var(--lp-border-strong);
  color: #fff;
  background: transparent;
  padding: 0.75rem 1.1rem;
  width: 100%;
  border-radius: 9999px;
}

.apex-btn--outline:hover {
  border-color: #ff9ffc;
  background: rgba(82, 39, 255, 0.16);
}

/* React Bits — Gradient Text (animated, smooth) */
.apex-gradient-text {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding: 2.5rem 1rem;
}

.apex-gradient-text__content {
  font-family: "Outfit", system-ui, sans-serif;
  font-weight: 800;
  font-style: normal;
  font-size: clamp(1.7rem, 3.6vw, 3rem);
  line-height: 1.3;
  letter-spacing: -0.02em;
  max-width: 46rem;

  background: linear-gradient(
    to right,
    #ffffff,
    #ff9ffc,
    #5227ff,
    #b19eef,
    #ffffff
  );
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}

.apex-stats {
  display: flex;
  justify-content: center;
  align-items: stretch;
  flex-wrap: wrap;
  gap: 2.5rem;
  margin-top: 1.5rem;
}

.apex-stat {
  text-align: center;
  min-width: 130px;
  position: relative;
  padding: 0 1.5rem;
}

.apex-stat + .apex-stat::before {
  content: "";
  position: absolute;
  left: -1.25rem;
  top: 15%;
  height: 70%;
  width: 1px;
  background: linear-gradient(180deg, transparent, rgba(162, 139, 255, 0.35), transparent);
}

.apex-stat__num {
  font-family: "Outfit", system-ui, sans-serif;
  font-weight: 800;
  font-size: clamp(2rem, 4.2vw, 3.1rem);
  line-height: 1;
  letter-spacing: -0.02em;
  background: linear-gradient(120deg, #ffffff 0%, #c9b6ff 45%, #ff9ffc 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}

.apex-stat__label {
  margin-top: 0.55rem;
  font-family: "Outfit", system-ui, sans-serif;
  font-size: 0.9rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: rgba(226, 212, 255, 0.62);
}

@media (max-width: 520px) {
  .apex-stats { gap: 1.5rem; }
  .apex-stat { min-width: 90px; padding: 0 0.75rem; }
  .apex-stat + .apex-stat::before { left: -0.75rem; }
}

.apex-card {
  background: rgba(12, 6, 28, 0.82);
  border: 1px solid var(--lp-border);
  border-radius: 1rem;
  transition: border-color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}

.apex-card:hover {
  border-color: var(--lp-border-strong);
  transform: translateY(-3px);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.35), 0 0 28px rgba(82, 39, 255, 0.18);
}

.apex-icon {
  width: 2.75rem;
  height: 2.75rem;
  border-radius: 0.7rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--lp-border-strong);
  background: rgba(82, 39, 255, 0.18);
  color: #e9d5ff;
  box-shadow: 0 0 18px rgba(255, 159, 252, 0.18);
}

.apex-step-line {
  position: absolute;
  top: 1.4rem;
  left: calc(50% + 2rem);
  right: calc(-50% + 2rem);
  height: 1px;
  background: linear-gradient(90deg, rgba(255, 159, 252, 0.55), rgba(82, 39, 255, 0.05));
}

.apex-price-card {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: 1.6rem;
  min-height: 100%;
}

.apex-price-card.is-popular {
  border-color: rgba(255, 159, 252, 0.45);
  box-shadow: 0 0 0 1px rgba(82, 39, 255, 0.3), 0 0 44px rgba(82, 39, 255, 0.22);
  background: linear-gradient(180deg, rgba(82, 39, 255, 0.28), rgba(12, 6, 28, 0.82));
}

.apex-popular-tag {
  position: absolute;
  top: -0.7rem;
  left: 50%;
  transform: translateX(-50%);
  background: linear-gradient(135deg, #5227ff, #ff9ffc);
  color: #fff;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 0.25rem 0.7rem;
  border-radius: 999px;
  white-space: nowrap;
}

.apex-check {
  color: #e9d5ff;
  margin-right: 0.55rem;
}

.apex-price-card .text-blue-400 {
  color: #ff9ffc !important;
}

.apex-faq {
  border-bottom: 1px solid rgba(162, 139, 255, 0.16);
}

.apex-faq summary {
  list-style: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.15rem 0.15rem;
  font-weight: 650;
  color: #fff;
}

.apex-faq summary::-webkit-details-marker { display: none; }

.apex-faq-toggle {
  flex-shrink: 0;
  width: 1.75rem;
  height: 1.75rem;
  border-radius: 0.45rem;
  border: 1px solid rgba(255, 255, 255, 0.18);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #e9d5ff;
  transition: transform 0.2s ease, background 0.2s ease;
}

.apex-faq[open] .apex-faq-toggle {
  background: rgba(82, 39, 255, 0.22);
  transform: rotate(45deg);
}

.apex-faq-body {
  padding: 0 0.15rem 1.2rem;
  color: var(--lp-muted);
  line-height: 1.7;
}

.apex-cta-band {
  text-align: center;
  border-radius: 1.5rem;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(12, 6, 28, 0.82);
  padding: 3.5rem 1.5rem;
  box-shadow: 0 0 70px rgba(82, 39, 255, 0.18);
}

/* Soft section glass panels over the pillar */
.apex-panel {
  border-radius: 1.25rem;
  background: rgba(5, 1, 13, 0.72);
  border: 1px solid rgba(255, 255, 255, 0.06);
}

/* Gooey Nav particle colors on homepage */
body:has(.apex-page) {
  --color-1: #5227ff;
  --color-2: #ff9ffc;
  --color-3: #b19eef;
  --color-4: #ffffff;
}

/* ============================================================
   Signature ambient layer — aurora orbs + faint grid
   (This is what sets Dreams apart from flat competitor heroes)
   ============================================================ */
.apex-aurora {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: min(110vh, 920px);
  z-index: 0;
  overflow: hidden;
  pointer-events: none;
  contain: paint;
}

.apex-orb {
  position: absolute;
  border-radius: 50%;
  opacity: 0.48;
}

.apex-orb--1 {
  width: 46vw;
  height: 46vw;
  max-width: 620px;
  max-height: 620px;
  background: radial-gradient(circle, #5227ff 0%, rgba(82, 39, 255, 0) 70%);
  top: -12%;
  left: -8%;
  animation: apexOrb1 24s ease-in-out infinite;
}

.apex-orb--2 {
  width: 40vw;
  height: 40vw;
  max-width: 540px;
  max-height: 540px;
  background: radial-gradient(circle, #ff9ffc 0%, rgba(255, 159, 252, 0) 70%);
  top: 6%;
  right: -10%;
  animation: apexOrb2 28s ease-in-out infinite;
}

.apex-orb--3 {
  width: 52vw;
  height: 52vw;
  max-width: 680px;
  max-height: 680px;
  background: radial-gradient(circle, #7c3aed 0%, rgba(124, 58, 237, 0) 70%);
  bottom: -18%;
  left: 28%;
  animation: apexOrb3 32s ease-in-out infinite;
}

.apex-aurora__grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(162, 139, 255, 0.055) 1px, transparent 1px),
    linear-gradient(90deg, rgba(162, 139, 255, 0.055) 1px, transparent 1px);
  background-size: 62px 62px;
  -webkit-mask-image: radial-gradient(circle at 50% 22%, #000 0%, transparent 68%);
  mask-image: radial-gradient(circle at 50% 22%, #000 0%, transparent 68%);
}

@keyframes apexOrb1 {
  0%, 100% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(8%, 12%) scale(1.12); }
}
@keyframes apexOrb2 {
  0%, 100% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(-10%, 8%) scale(1.08); }
}
@keyframes apexOrb3 {
  0%, 100% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(6%, -10%) scale(1.1); }
}

@media (prefers-reduced-motion: reduce) {
  .apex-orb { animation: none !important; }
}

/* ============================================================
   Scroll reveal (progressive enhancement)
   ============================================================ */
.reveal-ready .reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}
.reveal-ready .reveal.in {
  opacity: 1;
  transform: none;
}

/* ============================================================
   Typography accents
   ============================================================ */
.apex-title-grad {
  background: linear-gradient(100deg, #a78bff 0%, #ff9ffc 55%, #ffffff 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}

.apex-hero-title {
  font-size: clamp(2.6rem, 6vw, 4.6rem);
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 1.05;
}

.apex-kicker {
  display: inline-block;
  margin-bottom: 0.9rem;
  font-family: "Outfit", system-ui, sans-serif;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  background: linear-gradient(90deg, #ff9ffc, #a78bff);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}

/* Premium eyebrow with live dot */
.apex-eyebrow {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 159, 252, 0.28);
}
.apex-eyebrow__dot {
  width: 0.5rem;
  height: 0.5rem;
  border-radius: 50%;
  background: #ff9ffc;
  box-shadow: 0 0 0 3px rgba(255, 159, 252, 0.18), 0 0 12px #ff9ffc;
  animation: apexPulse 2.2s ease-in-out infinite;
}
@keyframes apexPulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.55; transform: scale(0.82); }
}

/* Hero primary CTA glow */
.apex-hero-title + .apex-sub { margin-top: 1.1rem; }

/* ============================================================
   Feature cards — gradient border on hover + icon glow
   ============================================================ */
.apex-feature {
  position: relative;
  overflow: hidden;
}
.apex-feature::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  padding: 1px;
  background: linear-gradient(120deg, rgba(255, 159, 252, 0.65), rgba(82, 39, 255, 0.2) 45%, transparent 72%);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  opacity: 0;
  transition: opacity 0.3s ease;
  pointer-events: none;
}
.apex-feature:hover::after { opacity: 1; }
.apex-feature .apex-icon {
  transition: box-shadow 0.3s ease, border-color 0.3s ease, transform 0.3s ease;
}
.apex-feature:hover .apex-icon {
  border-color: #ff9ffc;
  box-shadow: 0 0 26px rgba(255, 159, 252, 0.45);
  transform: translateY(-2px);
}

/* ============================================================
   How it works — glowing step nodes + animated connector
   ============================================================ */
.apex-step-line {
  overflow: hidden;
}
.apex-step-line::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, transparent, rgba(255, 159, 252, 0.9), transparent);
  transform: translateX(-100%);
  animation: apexFlow 3.2s ease-in-out infinite;
}
@keyframes apexFlow {
  0% { transform: translateX(-100%); }
  60%, 100% { transform: translateX(100%); }
}

/* ============================================================
   Pricing — animated gradient ring on the popular plan
   ============================================================ */
.apex-price-card.is-popular {
  transform: translateY(-6px);
}
.apex-price-card.is-popular::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  padding: 1.4px;
  background: linear-gradient(135deg, #ff9ffc, #5227ff, #b19eef, #ff9ffc);
  background-size: 300% 300%;
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  animation: apexRing 6s linear infinite;
  pointer-events: none;
}
@keyframes apexRing {
  0% { background-position: 0% 50%; }
  100% { background-position: 300% 50%; }
}
.apex-price-card.is-popular:hover {
  transform: translateY(-9px);
}

/* ============================================================
   Challenge configurator — signature interactive pricing
   ============================================================ */
.chal-tabs {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.75rem;
  margin-bottom: 1.75rem;
}

.chal-tab {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.15rem;
  padding: 0.75rem 1.25rem;
  border-radius: 0.9rem;
  border: 1px solid rgba(162, 139, 255, 0.2);
  background: rgba(12, 6, 28, 0.5);
  color: #fff;
  cursor: pointer;
  text-align: left;
  transition: border-color 0.25s ease, background 0.25s ease, transform 0.2s ease, box-shadow 0.25s ease;
  min-width: 210px;
}
.chal-tab:hover {
  border-color: rgba(255, 159, 252, 0.45);
  transform: translateY(-2px);
}
.chal-tab.is-active {
  border-color: transparent;
  background:
    linear-gradient(rgba(12, 6, 28, 0.85), rgba(12, 6, 28, 0.85)) padding-box,
    linear-gradient(135deg, #ff9ffc, #5227ff) border-box;
  border: 1px solid transparent;
  box-shadow: 0 12px 40px -12px rgba(82, 39, 255, 0.7);
}
.chal-tab__name { font-family: "Outfit", sans-serif; font-weight: 700; font-size: 0.98rem; }
.chal-tab__desc { font-size: 0.78rem; color: rgba(226, 212, 255, 0.6); }
.chal-tab--soon {
  opacity: 0.55;
  cursor: default;
  border-style: dashed;
}
.chal-tab--soon:hover { transform: none; border-color: rgba(162, 139, 255, 0.2); }

/* Panel */
.chal-panel {
  position: relative;
  border-radius: 1.5rem;
  padding: 1px;
  background: linear-gradient(135deg, rgba(255, 159, 252, 0.5), rgba(82, 39, 255, 0.28) 45%, rgba(255, 159, 252, 0.12) 75%);
  box-shadow: 0 40px 120px -50px rgba(82, 39, 255, 0.7);
}
.chal-panel__grid {
  display: grid;
  grid-template-columns: 0.95fr 1.05fr;
  gap: 0;
  border-radius: calc(1.5rem - 1px);
  overflow: hidden;
  background: rgba(9, 4, 22, 0.94);
}

/* Left */
.chal-left {
  padding: 2.25rem;
  position: relative;
  background:
    radial-gradient(120% 90% at 0% 0%, rgba(82, 39, 255, 0.28) 0%, transparent 55%),
    radial-gradient(120% 90% at 100% 100%, rgba(255, 159, 252, 0.16) 0%, transparent 55%);
  display: flex;
  flex-direction: column;
}
.chal-left__label,
.chal-right__label {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(226, 212, 255, 0.6);
  margin-bottom: 0.9rem;
}

.chal-sizes {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.6rem;
  margin-bottom: 1.75rem;
}
.chal-size {
  position: relative;
  padding: 0.85rem 0.5rem;
  border-radius: 0.75rem;
  border: 1px solid rgba(162, 139, 255, 0.22);
  background: rgba(255, 255, 255, 0.04);
  color: #fff;
  font-family: "Outfit", sans-serif;
  font-weight: 700;
  font-size: 1.05rem;
  cursor: pointer;
  transition: border-color 0.2s ease, background 0.2s ease, transform 0.15s ease, box-shadow 0.2s ease;
}
.chal-size:hover {
  border-color: rgba(255, 159, 252, 0.5);
  transform: translateY(-2px);
}
.chal-size.is-active {
  border-color: transparent;
  background: linear-gradient(135deg, #5227ff, #ff9ffc);
  color: #fff;
  box-shadow: 0 10px 30px -8px rgba(255, 159, 252, 0.6);
}
.chal-size__tag {
  position: absolute;
  top: -0.55rem;
  right: -0.35rem;
  font-size: 0.55rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 0.15rem 0.4rem;
  border-radius: 999px;
  background: #ff9ffc;
  color: #2a0b3d;
}

.chal-price { margin-bottom: 1.5rem; }
.chal-price__row {
  display: flex;
  align-items: flex-start;
  gap: 0.15rem;
  line-height: 1;
}
.chal-price__cur {
  font-family: "Outfit", sans-serif;
  font-weight: 700;
  font-size: 1.6rem;
  color: #ff9ffc;
  margin-top: 0.4rem;
}
.chal-price__val {
  font-family: "Outfit", sans-serif;
  font-weight: 800;
  font-size: clamp(2.8rem, 6vw, 3.8rem);
  letter-spacing: -0.03em;
  background: linear-gradient(120deg, #ffffff 0%, #c9b6ff 50%, #ff9ffc 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}
.chal-price__note {
  margin-top: 0.35rem;
  font-size: 0.85rem;
  color: rgba(226, 212, 255, 0.62);
}

.chal-cta { width: 100%; padding: 0.95rem 1.5rem; font-size: 1rem; }

.chal-reassure {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 1.1rem;
  margin-top: 1.1rem;
  font-size: 0.8rem;
  color: rgba(226, 212, 255, 0.7);
}
.chal-reassure i { color: #ff9ffc; margin-right: 0.3rem; }

/* Right — spec tiles */
.chal-right {
  padding: 2.25rem;
  border-left: 1px solid rgba(162, 139, 255, 0.14);
}
.chal-specs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem;
}
.chal-spec {
  display: flex;
  align-items: flex-start;
  gap: 0.7rem;
  padding: 0.9rem;
  border-radius: 0.8rem;
  border: 1px solid rgba(162, 139, 255, 0.14);
  background: rgba(255, 255, 255, 0.03);
  transition: border-color 0.2s ease, background 0.2s ease;
}
.chal-spec:hover {
  border-color: rgba(255, 159, 252, 0.35);
  background: rgba(255, 255, 255, 0.05);
}
.chal-spec--accent {
  grid-column: 1 / -1;
  border-color: transparent;
  background:
    linear-gradient(rgba(9, 4, 22, 0.9), rgba(9, 4, 22, 0.9)) padding-box,
    linear-gradient(135deg, #ff9ffc, #5227ff) border-box;
  border: 1px solid transparent;
}
.chal-spec__ico {
  flex-shrink: 0;
  width: 2.55rem;
  height: 2.55rem;
  border-radius: 0.8rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(162, 139, 255, 0.3);
  background:
    radial-gradient(circle at 30% 20%, rgba(255, 159, 252, 0.28), transparent 55%),
    rgba(82, 39, 255, 0.22);
  color: #e9d5ff;
  box-shadow: 0 0 16px rgba(82, 39, 255, 0.18);
}
.chal-spec__ico svg {
  width: 1.2rem;
  height: 1.2rem;
  display: block;
}
.chal-spec__ico--target { color: #ff9ffc; }
.chal-spec__ico--shield { color: #c4b5fd; }
.chal-spec__ico--chart { color: #a78bff; }
.chal-spec__ico--time { color: #f0abfc; }
.chal-spec__ico--bot { color: #ddd6fe; }
.chal-spec__ico--split { color: #ff9ffc; }
.chal-spec__k {
  font-size: 0.78rem;
  color: rgba(226, 212, 255, 0.6);
  margin-bottom: 0.15rem;
}
.chal-spec__v {
  font-family: "Outfit", sans-serif;
  font-weight: 700;
  color: #fff;
  font-size: 0.98rem;
}
.chal-spec__sep { color: rgba(255, 159, 252, 0.7); margin: 0 0.15rem; }
.chal-spec__muted { font-weight: 500; font-size: 0.75rem; color: rgba(226, 212, 255, 0.5); }

@media (max-width: 860px) {
  .chal-panel__grid { grid-template-columns: 1fr; }
  .chal-right { border-left: none; border-top: 1px solid rgba(162, 139, 255, 0.14); }
}
@media (max-width: 520px) {
  .chal-left, .chal-right { padding: 1.5rem; }
  .chal-specs { grid-template-columns: 1fr; }
  .chal-tab { min-width: 0; flex: 1 1 100%; }
}

/* ============================================================
   Challenge shop — type → size → rules + checkout
   ============================================================ */
.shop { display: flex; flex-direction: column; gap: 1.15rem; }
.shop-addons[hidden]{display:none}

.shop-types {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 0.85rem;
}
.shop-type {
  position: relative;
  text-align: left;
  padding: 1.15rem 1.2rem 1.2rem;
  border-radius: 1.1rem;
  border: 1px solid rgba(162, 139, 255, 0.2);
  background:
    radial-gradient(120% 140% at 0% 0%, rgba(82, 39, 255, 0.22), transparent 55%),
    rgba(12, 6, 28, 0.72);
  color: #fff;
  cursor: pointer;
  transition: border-color 0.22s ease, transform 0.22s ease, box-shadow 0.22s ease;
}
.shop-type:hover { transform: translateY(-3px); border-color: rgba(255, 159, 252, 0.45); }
.shop-type.is-on {
  border-color: transparent;
  background:
    linear-gradient(rgba(10, 4, 24, 0.88), rgba(10, 4, 24, 0.88)) padding-box,
    linear-gradient(135deg, #ff9ffc, #5227ff) border-box;
  border: 1px solid transparent;
  box-shadow: 0 18px 50px -18px rgba(82, 39, 255, 0.85);
}
.shop-type__badge {
  display: block;
  margin-bottom: 0.65rem;
  font-family: "Outfit", sans-serif;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: #c4b5fd;
}
.shop-type__name {
  display: block;
  font-family: "Outfit", sans-serif;
  font-weight: 800;
  font-size: 1.2rem;
}
.shop-type__desc {
  display: block;
  margin-top: 0.25rem;
  font-size: 0.82rem;
  color: rgba(226, 212, 255, 0.62);
}

.shop-sizes {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 0.7rem;
}
.shop-size {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.2rem;
  padding: 1.05rem 0.4rem 0.9rem;
  border-radius: 1rem;
  border: 1px solid rgba(162, 139, 255, 0.2);
  background: rgba(12, 6, 28, 0.7);
  color: #fff;
  cursor: pointer;
  transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}
.shop-size:hover { transform: translateY(-3px); border-color: rgba(255, 159, 252, 0.45); }
.shop-size.is-on {
  border-color: transparent;
  background:
    linear-gradient(rgba(10, 4, 24, 0.9), rgba(10, 4, 24, 0.9)) padding-box,
    linear-gradient(135deg, #ff9ffc, #5227ff) border-box;
  border: 1px solid transparent;
  box-shadow: 0 16px 36px -16px rgba(255, 159, 252, 0.7);
}
.shop-size__amt {
  font-family: "Outfit", sans-serif;
  font-weight: 800;
  font-size: 1.25rem;
}
.shop-size__fee {
  font-size: 0.82rem;
  font-weight: 700;
  color: #e9d5ff;
}
.shop-size__pop {
  position: absolute;
  top: -0.55rem;
  right: 0.45rem;
  font-size: 0.55rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 0.16rem 0.42rem;
  border-radius: 999px;
  background: linear-gradient(135deg, #ff9ffc, #c084fc);
  color: #2a0b3d;
}

.shop-deck {
  position: relative;
  border-radius: 1.4rem;
  overflow: hidden;
  border: 1px solid rgba(162, 139, 255, 0.2);
  background:
    radial-gradient(70% 80% at 8% 0%, rgba(82, 39, 255, 0.28), transparent 55%),
    radial-gradient(60% 70% at 100% 100%, rgba(255, 159, 252, 0.16), transparent 50%),
    rgba(9, 4, 22, 0.94);
  box-shadow: 0 40px 120px -50px rgba(82, 39, 255, 0.75);
}
.shop-deck__bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  padding: 0.95rem 1.25rem;
  border-bottom: 1px solid rgba(162, 139, 255, 0.14);
}
.shop-toggle {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  background: transparent;
  border: 0;
  color: rgba(226, 212, 255, 0.82);
  font-size: 0.86rem;
  cursor: pointer;
}
.shop-toggle__dot {
  width: 2.1rem;
  height: 1.15rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.12);
  position: relative;
}
.shop-toggle__dot::after {
  content: "";
  position: absolute;
  top: 0.14rem;
  left: 0.14rem;
  width: 0.86rem;
  height: 0.86rem;
  border-radius: 50%;
  background: #fff;
  transition: transform 0.2s ease;
}
.shop-toggle.is-on .shop-toggle__dot {
  background: linear-gradient(135deg, #5227ff, #ff9ffc);
}
.shop-toggle.is-on .shop-toggle__dot::after { transform: translateX(0.9rem); }
.shop-reward {
  font-size: 0.88rem;
  color: rgba(226, 212, 255, 0.7);
}
.shop-reward strong { color: #e9d5ff; font-weight: 800; }

.shop-deck__grid {
  display: grid;
  grid-template-columns: 1.05fr 1.05fr 0.9fr;
}
.shop-col,
.shop-pay { padding: 1.25rem 1.35rem 1.45rem; }
.shop-col + .shop-col,
.shop-pay { border-left: 1px solid rgba(162, 139, 255, 0.14); }
.shop-col__label {
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(226, 212, 255, 0.52);
  margin-bottom: 0.85rem;
}
.shop-kv {
  display: flex;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.62rem 0;
  border-bottom: 1px solid rgba(162, 139, 255, 0.08);
  font-size: 0.9rem;
  color: rgba(226, 212, 255, 0.68);
}
.shop-kv strong { color: #fff; font-weight: 700; }
.shop-kv--glow strong {
  background: linear-gradient(120deg, #fff, #e9d5ff 40%, #ff9ffc);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.shop-rules-link {
  display: inline-block;
  margin-top: 0.9rem;
  font-size: 0.82rem;
  font-weight: 700;
  color: #e9d5ff;
  text-decoration: none;
}
.shop-pay {
  background: linear-gradient(180deg, rgba(82, 39, 255, 0.16), transparent 55%);
}
.shop-pay__plan {
  font-weight: 700;
  margin-bottom: 0.35rem;
}
.shop-pay__price {
  display: flex;
  align-items: flex-start;
  gap: 0.15rem;
  line-height: 0.9;
  margin-bottom: 0.35rem;
}
.shop-pay__price span {
  font-weight: 800;
  color: #ff9ffc;
  margin-top: 0.35rem;
}
.shop-pay__price b {
  font-family: "Outfit", sans-serif;
  font-size: clamp(2.2rem, 4vw, 3rem);
  letter-spacing: -0.04em;
  background: linear-gradient(120deg, #fff, #c9b6ff 50%, #ff9ffc);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.shop-pay__note {
  font-size: 0.78rem;
  color: rgba(226, 212, 255, 0.58);
  margin-bottom: 1rem;
}
.shop-pay__note em { color: #ff9ffc; font-style: normal; font-weight: 800; }
.shop-pay__cta {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  width: 100%;
  padding: 0.95rem 1rem;
  border-radius: 0.9rem;
  font-weight: 800;
  color: #fff;
  text-decoration: none;
  background: linear-gradient(135deg, #5227ff, #7c3aed 50%, #ff9ffc);
  box-shadow: 0 14px 36px -12px rgba(82, 39, 255, 0.9);
}
.shop-pay__cta:hover { filter: brightness(1.08); }
.shop-addons {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-top: 0.9rem;
  align-items: center;
}
.shop-addons__label {
  width: 100%;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: rgba(226, 212, 255, 0.55);
}
.shop-addons span {
  font-size: 0.72rem;
  padding: 0.28rem 0.58rem;
  border-radius: 999px;
  border: 1px solid rgba(162, 139, 255, 0.28);
  color: #efe6ff;
  background: rgba(82, 39, 255, 0.18);
}
.shop-pay__ok {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem 0.85rem;
  margin-top: 0.95rem;
  font-size: 0.75rem;
  color: rgba(226, 212, 255, 0.68);
}
.shop-pay__ok i { color: #ff9ffc; margin-right: 0.25rem; }

@media (max-width: 980px) {
  .shop-deck__grid { grid-template-columns: 1fr 1fr; }
  .shop-pay { grid-column: 1 / -1; border-left: 0; border-top: 1px solid rgba(162, 139, 255, 0.14); }
}
@media (max-width: 780px) {
  .shop-sizes { grid-template-columns: repeat(3, 1fr); }
  .shop-deck__grid { grid-template-columns: 1fr; }
  .shop-col + .shop-col { border-left: 0; border-top: 1px solid rgba(162, 139, 255, 0.14); }
}
@media (max-width: 520px) {
  .shop-sizes { grid-template-columns: repeat(2, 1fr); }
  .shop-deck__bar { flex-direction: column; align-items: flex-start; }
}

/* ============================================================
   FAQ rows — subtle card feel
   ============================================================ */
.apex-faq {
  border-radius: 0.85rem;
  padding: 0 1.1rem;
  margin-bottom: 0.6rem;
  border: 1px solid rgba(162, 139, 255, 0.12);
  background: rgba(12, 6, 28, 0.35);
  transition: border-color 0.25s ease, background 0.25s ease;
}
.apex-faq:hover,
.apex-faq[open] {
  border-color: rgba(255, 159, 252, 0.3);
  background: rgba(12, 6, 28, 0.6);
}

/* ============================================================
   CTA band — glowing animated gradient border
   ============================================================ */
.apex-cta-band {
  position: relative;
  overflow: hidden;
}
.apex-cta-band::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  padding: 1.4px;
  background: linear-gradient(135deg, rgba(255, 159, 252, 0.7), rgba(82, 39, 255, 0.35), rgba(255, 159, 252, 0.7));
  background-size: 250% 250%;
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  animation: apexRing 8s linear infinite;
  pointer-events: none;
}
.apex-cta-band::after {
  content: "";
  position: absolute;
  width: 60%;
  height: 160%;
  left: 50%;
  top: -30%;
  transform: translateX(-50%);
  background: radial-gradient(circle, rgba(82, 39, 255, 0.35) 0%, transparent 65%);
  pointer-events: none;
}
.apex-cta-band > * { position: relative; z-index: 1; }

/* ============================================================
   Payout certificate loop (React Bits Logo Loop port)
   ============================================================ */
.cert-loop-section {
  padding-top: 1.25rem;
  padding-bottom: 0.5rem;
}

.cert-loop {
  position: relative;
  width: 100%;
  overflow: hidden;
  --cert-loop-gap: 18px;
  --cert-loop-fade: #05010d;
}

.cert-loop--fade::before,
.cert-loop--fade::after {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  width: 90px;
  z-index: 2;
  pointer-events: none;
}
.cert-loop--fade::before {
  left: 0;
  background: linear-gradient(90deg, var(--cert-loop-fade), transparent);
}
.cert-loop--fade::after {
  right: 0;
  background: linear-gradient(270deg, var(--cert-loop-fade), transparent);
}

.cert-loop__track {
  display: flex;
  width: max-content;
  animation: certMarquee var(--cert-dur, 48s) linear infinite;
  will-change: transform;
}
.cert-loop.is-paused .cert-loop__track,
.cert-loop:hover .cert-loop__track {
  animation-play-state: paused;
}
@keyframes certMarquee {
  from { transform: translate3d(0, 0, 0); }
  to { transform: translate3d(-50%, 0, 0); }
}

.cert-loop__seq {
  display: flex;
  align-items: stretch;
  gap: var(--cert-loop-gap);
  padding-right: var(--cert-loop-gap);
}

.cert-mini {
  position: relative;
  flex: 0 0 384px;
  width: 384px;
  height: 216px;
  overflow: hidden;
  border-radius: 12px;
  text-decoration: none;
  color: #fff;
  background: linear-gradient(to bottom, rgba(0,0,0,.25), rgba(0,0,0,.16) 48%, rgba(0,0,0,.65)), url('../../certificates/fundx-4k-background-v1.png') center / cover no-repeat, #05050b;
  border: 1px solid rgba(162, 139, 255, 0.38);
  box-shadow: 0 16px 35px rgba(0,0,0,.35);
  contain: layout paint;
  transition: border-color .2s ease, transform .2s ease;
}
.cert-mini:hover {
  border-color: rgba(217, 181, 255, .8);
  transform: translateY(-3px);
}
.cert-mini__frame {
  position: absolute;
  inset: 6px;
  border: 1px solid rgba(175, 165, 206, .48);
  pointer-events: none;
}
.cert-mini__brand {
  position: absolute;
  top: 13px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1px;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .05em;
  white-space: nowrap;
}
.cert-mini__brand img { display: block; height: 25px; width: auto; }
.cert-mini__heading {
  position: absolute;
  top: 56px;
  left: 0;
  width: 100%;
  text-align: center;
  color: #f4f0fa;
  font-size: 12px;
  font-weight: 600;
}
.cert-mini__name {
  position: absolute;
  top: 81px;
  left: 14px;
  right: 14px;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
  text-align: center;
  color: #fff;
  font-family: "Outfit", sans-serif;
  font-size: 23px;
  font-weight: 800;
  text-transform: uppercase;
  text-shadow: 0 2px 8px #000, 0 0 12px #000;
}
.cert-mini__badge {
  position: absolute;
  top: 117px;
  left: 0;
  width: 100%;
  text-align: center;
  color: #d8b9ff;
  font-family: "Arial Black", Impact, sans-serif;
  font-size: 12px;
  font-weight: 900;
  letter-spacing: .22em;
  text-shadow: 0 2px 8px #000;
}
.cert-mini__amount {
  position: absolute;
  top: 135px;
  left: 0;
  width: 100%;
  text-align: center;
  color: #fff;
  font-family: "Arial Black", Impact, sans-serif;
  font-size: 39px;
  font-weight: 900;
  letter-spacing: -.04em;
  line-height: 1;
  text-shadow: 0 3px 10px #000, 0 0 17px rgba(213, 184, 255, .38);
}
.cert-mini__date {
  position: absolute;
  bottom: 13px;
  left: 17px;
  display: flex;
  flex-direction: column;
  gap: 1px;
  color: #eeeafa;
  text-shadow: 0 1px 4px #000;
}
.cert-mini__date small { color: #c4bddd; font-size: 8px; font-weight: 800; }
.cert-mini__date strong { font-size: 12px; font-weight: 700; }
.cert-mini__site {
  position: absolute;
  bottom: 15px;
  left: 41%;
  width: 18%;
  color: #d6cde9;
  text-align: center;
  font-size: 10px;
  font-weight: 700;
}

@media (prefers-reduced-motion: reduce) {
  .cert-loop__track { animation: none !important; transform: none !important; }
}

@media (max-width: 768px) {
  .apex-orb { animation: none !important; }
  .apex-step-line::after,
  .apex-cta-band::before,
  .apex-price-card.is-popular::after {
    animation: none !important;
  }
}

.home-videos {
  padding: 3.25rem 1.15rem 1.5rem;
}

.home-videos__grid {
  width: min(1040px, 100%);
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.15rem;
}

.home-videos__grid.is-one {
  grid-template-columns: 1fr;
  width: min(760px, 100%);
}

.home-video__frame {
  position: relative;
  aspect-ratio: 16 / 9;
  border-radius: 16px;
  overflow: hidden;
  background: #0b0614;
  border: 1px solid rgba(162, 139, 255, 0.22);
  box-shadow: 0 18px 40px -24px rgba(82, 39, 255, 0.65);
}

.home-video__frame iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

.home-video__title {
  margin: 0.7rem 0.15rem 0;
  font-size: 0.95rem;
  font-weight: 650;
  color: #f3e8ff;
}

@media (max-width: 760px) {
  .home-videos__grid,
  .home-videos__grid.is-one {
    grid-template-columns: 1fr;
    width: min(640px, 100%);
  }
}

