/* Gooey Nav (React Bits) — Fund X
   Liquid black blotch behind nav removed (no .effect.filter::before fill)
*/

:root {
  --linear-ease: linear(
    0,
    0.068,
    0.19 2.7%,
    0.804 8.1%,
    1.037,
    1.199 13.2%,
    1.245,
    1.27 15.8%,
    1.274,
    1.272 17.4%,
    1.249 19.1%,
    0.996 28%,
    0.949,
    0.928 33.3%,
    0.926,
    0.933 36.8%,
    1.001 45.6%,
    1.013,
    1.019 50.8%,
    1.018 54.4%,
    1 63.1%,
    0.995 68%,
    1.001 85%,
    1
  );
  --color-1: #5227ff;
  --color-2: #ff9ffc;
  --color-3: #b19eef;
  --color-4: #ffffff;
}

.site-gooey-header {
  position: fixed;
  top: var(--promo-offset, 0px);
  left: 0;
  right: 0;
  z-index: 99;
  padding: 0.55rem 1.25rem 0;
  pointer-events: none;
}

.site-gooey-header > * {
  pointer-events: auto;
}

.site-gooey-bar {
  width: 100%;
  max-width: 80rem;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  background: transparent;
}

.site-gooey-brand.navbar-logo {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  transition: none !important;
  transform: none !important;
}

/* Wordmark styled like the hero "Discipline" gradient text */
.site-gooey-wordmark {
  font-family: "Outfit", system-ui, sans-serif;
  font-weight: 800;
  font-size: 1.35rem;
  letter-spacing: -0.01em;
  line-height: 1;
  white-space: nowrap;
  background: linear-gradient(
    to right,
    #ffffff,
    #ff9ffc,
    #5227ff,
    #b19eef,
    #ffffff
  );
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}

/* Hide wordmark when nav space is tight; DF icon stays as brand */
@media (max-width: 1100px) {
  .site-gooey-wordmark { display: none; }
}

.site-gooey-brand.navbar-logo:hover,
.site-gooey-brand.navbar-logo:active {
  opacity: 1 !important;
  transform: none !important;
}

.site-gooey-brand .navbar-logo-img {
  height: 3.75rem;
  width: auto;
  display: block;
  object-fit: contain;
  filter: drop-shadow(0 0 12px rgba(162, 89, 255, 0.7));
  transition: none !important;
  transform: none !important;
}

.site-gooey-center {
  flex: 1;
  display: flex;
  justify-content: center;
  min-width: 0;
}

.gooey-nav-container {
  position: relative;
}

.gooey-nav-container nav {
  display: flex;
  position: relative;
  transform: translate3d(0, 0, 0.01px);
}

.gooey-nav-container nav ul {
  display: flex;
  gap: 0.35em;
  list-style: none;
  padding: 0 0.35em;
  margin: 0;
  position: relative;
  z-index: 3;
  color: white;
  text-shadow: 0 1px 1px hsl(205deg 30% 10% / 0.2);
}

.gooey-nav-container nav ul li {
  border-radius: 100vw;
  position: relative;
  cursor: pointer;
  transition: color 0.35s ease;
  box-shadow: 0 0 0.5px 1.5px transparent;
  color: white;
}

.gooey-nav-container nav ul li a {
  display: inline-block;
  padding: 0.6em 1em;
  color: inherit;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.92rem;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

.gooey-nav-container nav ul li:focus-within:has(:focus-visible) {
  box-shadow: 0 0 0.5px 1.5px white;
}

.gooey-nav-container nav ul li::after {
  content: none;
  display: none;
}

.gooey-nav-container nav ul li.active {
  color: black;
  text-shadow: none;
}

.gooey-nav-container .effect {
  position: absolute;
  left: 0;
  top: 0;
  width: 0;
  height: 0;
  opacity: 1;
  pointer-events: none;
  display: grid;
  place-items: center;
  z-index: 1;
  transition:
    left 0.48s cubic-bezier(0.22, 1, 0.36, 1),
    width 0.48s cubic-bezier(0.22, 1, 0.36, 1),
    top 0.48s cubic-bezier(0.22, 1, 0.36, 1),
    height 0.48s cubic-bezier(0.22, 1, 0.36, 1);
}

.gooey-nav-container .effect.text {
  color: #0a0614;
  font-weight: 600;
  font-size: 0.92rem;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

.gooey-nav-container .effect.text.active {
  color: #0a0614;
}

/* Particles only — no black liquid blotch behind */
.gooey-nav-container .effect.filter {
  filter: none;
  mix-blend-mode: normal;
  overflow: visible;
}

.gooey-nav-container .effect.filter::before {
  content: none;
  display: none;
}

.gooey-nav-container .effect.filter::after {
  content: '';
  position: absolute;
  inset: 0;
  background: white;
  transform: scale(1);
  opacity: 1;
  z-index: -1;
  border-radius: 100vw;
  box-shadow: 0 8px 24px rgba(255, 255, 255, 0.12);
}

#home,
#challenge,
#rewards,
#faq {
  scroll-margin-top: var(--header-offset, 88px);
}

.particle,
.point {
  display: block;
  opacity: 0;
  width: 20px;
  height: 20px;
  border-radius: 100%;
  transform-origin: center;
}

.particle {
  --time: 5s;
  position: absolute;
  top: calc(50% - 8px);
  left: calc(50% - 8px);
  animation: gooey-particle calc(var(--time)) ease 1 -350ms;
}

.point {
  background: var(--color);
  opacity: 1;
  animation: gooey-point calc(var(--time)) ease 1 -350ms;
}

@keyframes gooey-particle {
  0% {
    transform: rotate(0deg) translate(calc(var(--start-x)), calc(var(--start-y)));
    opacity: 1;
    animation-timing-function: cubic-bezier(0.55, 0, 1, 0.45);
  }
  70% {
    transform: rotate(calc(var(--rotate) * 0.5)) translate(calc(var(--end-x) * 1.2), calc(var(--end-y) * 1.2));
    opacity: 1;
    animation-timing-function: ease;
  }
  85% {
    transform: rotate(calc(var(--rotate) * 0.66)) translate(calc(var(--end-x)), calc(var(--end-y)));
    opacity: 1;
  }
  100% {
    transform: rotate(calc(var(--rotate) * 1.2)) translate(calc(var(--end-x) * 0.5), calc(var(--end-y) * 0.5));
    opacity: 1;
  }
}

@keyframes gooey-point {
  0% {
    transform: scale(0);
    opacity: 0;
    animation-timing-function: cubic-bezier(0.55, 0, 1, 0.45);
  }
  25% {
    transform: scale(calc(var(--scale) * 0.25));
  }
  38% {
    opacity: 1;
  }
  65% {
    transform: scale(var(--scale));
    opacity: 1;
    animation-timing-function: ease;
  }
  85% {
    transform: scale(var(--scale));
    opacity: 1;
  }
  100% {
    transform: scale(0);
    opacity: 0;
  }
}

.site-gooey-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 42px;
  padding: 0 1.1rem;
  border-radius: 9999px;
  font-weight: 700;
  font-size: 14px;
  text-decoration: none;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  color: #0a0614;
  background: #ffffff;
  box-shadow: 0 0 24px rgba(255, 255, 255, 0.16);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  flex-shrink: 0;
}

.site-gooey-cta:hover {
  transform: translateY(-1px);
  box-shadow: 0 0 34px rgba(255, 159, 252, 0.35);
}

.site-gooey-mobile-btn {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: rgba(8, 4, 18, 0.72);
  border: 1px solid rgba(255, 255, 255, 0.18);
  display: none;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  cursor: pointer;
  padding: 0;
}

.site-gooey-mobile-btn span {
  width: 16px;
  height: 2px;
  background: #fff;
  border-radius: 1px;
}

.site-gooey-mobile-menu {
  display: none;
  position: absolute;
  top: calc(100% + 0.5rem);
  left: 1rem;
  right: 1rem;
  background: rgba(8, 4, 18, 0.94);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 1.25rem;
  padding: 0.5rem;
  z-index: 100;
  backdrop-filter: blur(12px);
}

.site-gooey-mobile-menu.open {
  display: block;
}

.site-gooey-mobile-menu a {
  display: block;
  padding: 0.85rem 1rem;
  color: #fff;
  text-decoration: none;
  border-radius: 999px;
  font-weight: 600;
}

.site-gooey-mobile-menu a:hover,
.site-gooey-mobile-menu a.is-active {
  background: rgba(82, 39, 255, 0.35);
}

.site-gooey-desktop {
  display: flex;
}

@media (max-width: 768px) {
  .site-gooey-desktop,
  .site-gooey-center,
  .site-gooey-cta {
    display: none !important;
  }

  .site-gooey-mobile-btn {
    display: flex;
  }

  .site-gooey-brand .navbar-logo-img {
    height: 3rem;
  }

  .site-gooey-header {
    position: relative;
  }

  .site-gooey-bar {
    position: relative;
  }
}
