/* ===== Base ===== */
html {
  scroll-behavior: smooth;
}
body {
  background-color: #0a0612;
  background-image:
    radial-gradient(ellipse 80% 50% at 50% -10%, rgba(139, 45, 255, 0.12), transparent),
    radial-gradient(ellipse 60% 40% at 90% 30%, rgba(255, 46, 166, 0.08), transparent);
}

::selection {
  background: rgba(255, 46, 166, 0.35);
}

/* ===== Grain overlay ===== */
.grain-overlay {
  position: fixed;
  inset: 0;
  z-index: 40;
  pointer-events: none;
  opacity: 0.035;
  mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='100' height='100'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* ===== Nav scrolled state ===== */
#site-nav {
  background: transparent;
}
#site-nav.scrolled {
  background: rgba(10, 6, 18, 0.75);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

/* ===== Gradient text ===== */
.gradient-text {
  background: linear-gradient(90deg, #a154ff, #ff2ea6, #22e0ff);
  background-size: 200% auto;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  animation: gradient-shift 6s ease infinite;
}
.gradient-text-cyan {
  background: linear-gradient(90deg, #22e0ff, #a154ff);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
@keyframes gradient-shift {
  0%, 100% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
}

/* ===== Glassmorphism ===== */
.glass-panel {
  background: rgba(255, 255, 255, 0.035);
  border: 1px solid rgba(255, 255, 255, 0.09);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
}

/* ===== Glowing animated border ===== */
.glow-border-anim {
  position: relative;
}
.glow-border-anim::before {
  content: "";
  position: absolute;
  inset: -1px;
  border-radius: inherit;
  padding: 1px;
  background: linear-gradient(120deg, #a154ff, #ff2ea6, #22e0ff, #a154ff);
  background-size: 300% 300%;
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  animation: border-flow 8s linear infinite;
  opacity: 0.6;
  pointer-events: none;
}
@keyframes border-flow {
  0% { background-position: 0% 50%; }
  100% { background-position: 300% 50%; }
}

/* ===== CTA button ===== */
.cta-glow {
  background: linear-gradient(90deg, #8b2dff, #ff2ea6, #22e0ff);
  background-size: 200% auto;
  color: #fff;
  box-shadow: 0 0 30px rgba(255, 46, 166, 0.4), 0 0 60px rgba(139, 45, 255, 0.25);
  transition: transform 0.25s ease, box-shadow 0.25s ease, background-position 0.6s ease;
}
.cta-glow:hover {
  transform: translateY(-2px) scale(1.02);
  box-shadow: 0 0 45px rgba(255, 46, 166, 0.55), 0 0 90px rgba(34, 224, 255, 0.3);
  background-position: 100% 50%;
}
.cta-glow:active {
  transform: translateY(0) scale(0.99);
}

/* ===== Badge chip ===== */
.badge-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  padding: 0.5rem 0.85rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: rgba(255, 255, 255, 0.8);
}

/* ===== Section tag ===== */
.section-tag {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: #ff5ec0;
  padding: 0.3rem 0;
  border-bottom: 2px solid rgba(255, 46, 166, 0.4);
}

/* ===== Why cards ===== */
.why-card {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 1.25rem;
  padding: 1.75rem;
  transition: border-color 0.3s ease, transform 0.3s ease, background 0.3s ease;
}
.why-card:hover {
  border-color: rgba(161, 84, 255, 0.5);
  background: rgba(255, 255, 255, 0.05);
  transform: translateY(-3px);
}
.icon-badge {
  width: 2.75rem;
  height: 2.75rem;
  border-radius: 0.85rem;
  display: grid;
  place-items: center;
  margin-bottom: 1.1rem;
  color: #fff;
  box-shadow: 0 0 20px rgba(139, 45, 255, 0.35);
}

/* ===== Attend chips ===== */
.attend-chip {
  padding: 0.65rem 1.3rem;
  border-radius: 999px;
  font-size: 0.82rem;
  font-weight: 600;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.1);
  transition: all 0.25s ease;
}
.attend-chip:hover {
  border-color: rgba(34, 224, 255, 0.5);
  background: rgba(34, 224, 255, 0.08);
  color: #5aeaff;
  transform: translateY(-2px);
}

/* ===== Marquee ===== */
.marquee-track {
  animation: marquee 22s linear infinite;
  width: max-content;
}
@keyframes marquee {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}
.logo-item {
  font-family: "Orbitron", sans-serif;
  font-weight: 700;
  font-size: 1.15rem;
  color: rgba(255, 255, 255, 0.25);
  letter-spacing: 0.05em;
  transition: color 0.3s ease;
}

/* ===== Timeline ===== */
.timeline {
  position: relative;
  padding-left: 2.5rem;
  border-left: 2px solid rgba(255, 255, 255, 0.08);
  list-style: none;
}
.timeline-item {
  position: relative;
  padding-bottom: 2.25rem;
  display: flex;
  gap: 1.25rem;
  align-items: flex-start;
}
.timeline-item:last-child { padding-bottom: 0; }
.timeline-num {
  position: absolute;
  left: -2.5rem;
  top: -0.15rem;
  width: 2.1rem;
  height: 2.1rem;
  display: grid;
  place-items: center;
  border-radius: 999px;
  font-family: "Orbitron", sans-serif;
  font-size: 0.65rem;
  font-weight: 700;
  background: linear-gradient(135deg, #8b2dff, #ff2ea6);
  box-shadow: 0 0 16px rgba(255, 46, 166, 0.45);
  transform: translateX(-50%);
}

/* ===== Testimonial carousel ===== */
.carousel-viewport {
  border-radius: 1.5rem;
}
.carousel-track {
  transition: transform 0.5s cubic-bezier(0.65, 0, 0.35, 1);
}
.testimonial-slide {
  flex: 0 0 100%;
  padding: 0 0.5rem;
}
@media (min-width: 768px) {
  .testimonial-slide { flex: 0 0 50%; }
}
.avatar-orb {
  width: 2.6rem;
  height: 2.6rem;
  border-radius: 999px;
  display: grid;
  place-items: center;
  font-size: 0.75rem;
  font-weight: 700;
  background: linear-gradient(135deg, #a154ff, #22e0ff);
  box-shadow: 0 0 14px rgba(161, 84, 255, 0.4);
}
.carousel-nav-btn {
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 999px;
  display: grid;
  place-items: center;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.12);
  transition: all 0.25s ease;
}
.carousel-nav-btn:hover {
  border-color: rgba(255, 46, 166, 0.5);
  background: rgba(255, 46, 166, 0.1);
}
.carousel-dot {
  width: 0.45rem;
  height: 0.45rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.2);
  transition: all 0.3s ease;
  cursor: pointer;
}
.carousel-dot.active {
  width: 1.4rem;
  background: linear-gradient(90deg, #ff2ea6, #22e0ff);
}

/* ===== Bonus cards ===== */
.bonus-card {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 1rem;
  padding: 1.4rem 1.1rem;
  transition: all 0.3s ease;
}
.bonus-card:hover {
  border-color: rgba(255, 46, 166, 0.4);
  transform: translateY(-3px);
}
.bonus-num {
  font-family: "Orbitron", sans-serif;
  font-size: 0.75rem;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.3);
}

/* ===== FAQ accordion ===== */
.faq-item {
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: 1rem;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.02);
}
.faq-question {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.15rem 1.4rem;
  text-align: left;
  font-weight: 600;
  font-size: 0.95rem;
  color: #fff;
  gap: 1rem;
}
.faq-chevron {
  transition: transform 0.3s ease;
  color: #ff5ec0;
}
.faq-item.open .faq-chevron {
  transform: rotate(180deg);
}
.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s ease;
}
.faq-answer p {
  padding: 0 1.4rem 1.15rem;
  color: rgba(255, 255, 255, 0.55);
  font-size: 0.9rem;
  line-height: 1.6;
}

/* ===== Fade-up scroll animation ===== */
.fade-up {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.fade-up.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ===== Floating / pulse / ping ===== */
.float-anim {
  animation: float 6s ease-in-out infinite;
}
@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-14px); }
}
.animate-pulse-slow {
  animation: pulse-slow 7s ease-in-out infinite;
}
.animate-pulse-slower {
  animation: pulse-slow 10s ease-in-out infinite;
}
@keyframes pulse-slow {
  0%, 100% { opacity: 0.5; transform: scale(1); }
  50% { opacity: 0.85; transform: scale(1.1); }
}
.animate-ping-slow {
  animation: ping-slow 2s cubic-bezier(0, 0, 0.2, 1) infinite;
}
@keyframes ping-slow {
  0% { transform: scale(1); opacity: 1; }
  75%, 100% { transform: scale(2.2); opacity: 0; }
}

/* ===== Sticky mobile CTA entrance ===== */
#sticky-cta {
  transform: translateY(120%);
  transition: transform 0.4s ease;
}
#sticky-cta.visible {
  transform: translateY(0);
}

/* ===== Scrollbar ===== */
::-webkit-scrollbar { width: 10px; }
::-webkit-scrollbar-track { background: #0a0612; }
::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, #8b2dff, #ff2ea6);
  border-radius: 999px;
}

/* ===== Reduced motion ===== */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}
