/* ==========================================================================
   AlgoFi $10K Challenge page
   ========================================================================== */

.discovery-page { background: #050505; }

/* ---- Hero background effects ---- */
.discovery-hero {
  background: radial-gradient(ellipse at 50% 0%, rgba(9, 255, 140, 0.06), transparent 60%);
}
.discovery-hero-beam {
  height: 480px;
  background: radial-gradient(ellipse at 50% -20%, rgba(9, 255, 140, 0.18), transparent 60%);
  filter: blur(20px);
}
.discovery-hero-grid {
  background-image:
    linear-gradient(rgba(9, 255, 140, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(9, 255, 140, 0.05) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: radial-gradient(ellipse at 50% 0%, #000 0%, transparent 70%);
  -webkit-mask-image: radial-gradient(ellipse at 50% 0%, #000 0%, transparent 70%);
}
.discovery-hero-orb {
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
  filter: blur(80px);
}
.discovery-hero-orb--main {
  width: 500px;
  height: 500px;
  right: -120px;
  top: 40px;
  background: rgba(9, 255, 140, 0.18);
}
.discovery-hero-orb--soft {
  width: 360px;
  height: 360px;
  right: 120px;
  top: 200px;
  background: rgba(64, 243, 159, 0.12);
}

/* ---- Hero stage ---- */
.discovery-hero-stage {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(12px);
}
.discovery-hero-core {
  background: radial-gradient(circle at 50% 42%, #19FF91 0%, #09C96F 56%, #063B28 100%);
  color: #04140b;
  box-shadow: 0 0 60px rgba(9, 255, 140, 0.5), 0 0 100px rgba(9, 255, 140, 0.2);
}
.discovery-hero-amount { letter-spacing: -0.02em; }

.discovery-orbit-chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 4px 10px;
  border-radius: 9999px;
  border: 1px solid rgba(9, 255, 140, 0.35);
  background: rgba(9, 255, 140, 0.08);
  color: #09FF8C;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.14em;
  transform: translate(-50%, -50%);
  white-space: nowrap;
}

.discovery-hero-deadline {
  background: rgba(9, 255, 140, 0.05);
  border: 1px solid rgba(9, 255, 140, 0.2);
}
.discovery-mono {
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
}

/* ---- Cards ---- */
.discovery-card {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(8px);
}
.discovery-prize-card {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
}
.discovery-prize-total {
  background: linear-gradient(180deg, rgba(9, 255, 140, 0.08), rgba(9, 255, 140, 0.02));
  border: 1px solid rgba(9, 255, 140, 0.3);
  box-shadow: 0 0 60px rgba(9, 255, 140, 0.15);
}
.discovery-neon-card {
  background: rgba(9, 255, 140, 0.05);
  border: 1px solid rgba(9, 255, 140, 0.25);
}

.discovery-text-gradient {
  background: linear-gradient(90deg, #09FF8C 0%, #40F39F 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.discovery-final-cta {
  background: radial-gradient(ellipse at 50% 100%, rgba(9, 255, 140, 0.12), transparent 60%);
}

/* ---- Marquee ---- */
.discovery-marquee {
  animation: discovery-marquee 40s linear infinite;
}
.discovery-marquee-reverse {
  animation-direction: reverse;
  margin-top: 12px;
}
@keyframes discovery-marquee {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}
@media (prefers-reduced-motion: reduce) {
  .discovery-marquee { animation: none; }
}

/* ---- Responsive tweaks ---- */
@media (max-width: 767px) {
  .discovery-hero-orb--main { width: 320px; height: 320px; right: -100px; }
  .discovery-hero-orb--soft { width: 220px; height: 220px; right: 40px; }
  .discovery-hero-core { width: 160px; height: 160px; }
}

/* ---------- FAQ accordion ---------- */
.challenge-faq-answer {
  max-height: 0;
  overflow: hidden;
  padding: 0 0 0;
  color: rgba(255, 255, 255, 0.6);
  font-size: 15px;
  line-height: 1.7;
  transition: max-height .35s ease, padding .3s ease;
}
.challenge-faq-item.is-open .challenge-faq-answer {
  padding: 0 0 1.25rem;
}
.challenge-faq-item.is-open .challenge-faq-toggle svg {
  transform: rotate(180deg);
}
.challenge-faq-toggle svg {
  transition: transform .25s ease;
}