.siteHeader {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 2rem;
  z-index: 200;
  pointer-events: none;
}

.siteHeader .logo, .siteHeader .headerRight {
  pointer-events: auto;
}

.logo {
  font-family: var(--fontBody);
  font-size: 24px;
  font-weight: bold;
}

/* CodeLeap Animated Logo */
.codeleapLogo {
  position: relative;
  display: inline-flex;
  align-items: center;
  color: var(--textWhite);
  text-decoration: none;
  cursor: pointer;
  user-select: none;
  font-family: var(--fontBody);
  font-size: 24px;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.codeleapLogo .logoWord {
  display: inline-flex;
  position: relative;
}

.codeleapLogo .sourceE,
.codeleapLogo .targetE,
.codeleapLogo .charL,
.codeleapLogo .charRest {
  display: inline-block;
  position: relative;
  transform-origin: bottom center;
}

/* Ghost Jumper (The Leaping "e") */
.codeleapLogo .ghostJumper {
  position: absolute;
  top: 0;
  left: 0;
  display: inline-block;
  pointer-events: none;
  opacity: 0;
  font-weight: 800;
  color: var(--purpleBright, #C084FC);
  transform-origin: center center;
  z-index: 15;
}

/* Impact Shockwave Ring */
.codeleapLogo .leapImpactRing {
  position: absolute;
  top: 50%;
  left: 0;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  border: 2px solid var(--purpleDark, #571AFD);
  pointer-events: none;
  opacity: 0;
  transform: translate(-50%, -50%) scale(0.2);
  z-index: 12;
}

/* Sparkle Burst */
.codeleapLogo .leapSparkleBurst {
  position: absolute;
  top: 50%;
  left: 0;
  width: 0;
  height: 0;
  pointer-events: none;
  z-index: 14;
}

.codeleapLogo .sparkleParticle {
  position: absolute;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: #F472B6;
  box-shadow: 0 0 6px #C084FC, 0 0 10px #571AFD;
  pointer-events: none;
  animation: sparkleFly 0.5s ease-out forwards;
}

@keyframes sparkleFly {
  0% {
    opacity: 1;
    transform: translate(0, 0) scale(1.4);
  }
  100% {
    opacity: 0;
    transform: translate(var(--tx, 15px), var(--ty, -15px)) scale(0);
  }
}

/* Active Leap State */
.codeleapLogo.isLeaping .sourceE {
  animation: sourceFade 1.1s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

.codeleapLogo.isLeaping .ghostJumper {
  animation: leapFlight 1.1s cubic-bezier(0.25, 0.1, 0.25, 1) forwards;
}

.codeleapLogo.isLeaping .charL {
  animation: duckL 1.1s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

.codeleapLogo.isLeaping .targetE {
  animation: impactE 1.1s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

.codeleapLogo.isLeaping .leapImpactRing {
  animation: ringPulse 1.1s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

.codeleapLogo.isLeaping .charRest {
  animation: kineticWave 1.1s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

/* Keyframes */
@keyframes sourceFade {
  0% {
    opacity: 1;
    transform: scale(1);
  }
  12% {
    opacity: 0.15;
    transform: scale(1.3, 0.6) translateY(2px);
  }
  85% {
    opacity: 0.15;
    transform: scale(0.9);
  }
  95% {
    opacity: 1;
    transform: scale(1.15);
    color: #C084FC;
  }
  100% {
    opacity: 1;
    transform: scale(1);
    color: inherit;
  }
}

@keyframes leapFlight {
  0% {
    opacity: 0;
    transform: translate3d(var(--startX, 0px), 0, 0) scale(1, 1) rotate(0deg);
  }
  6% {
    opacity: 1;
    transform: translate3d(var(--startX, 0px), 2px, 0) scale(1.35, 0.6) rotate(-8deg);
    color: #C084FC;
    filter: drop-shadow(0 0 6px #A855F7);
  }
  24% {
    opacity: 1;
    transform: translate3d(calc(var(--startX, 0px) + var(--leapDist, 32px) * 0.2), calc(var(--leapApex, -26px) * 0.7), 0) scale(0.85, 1.35) rotate(50deg);
    color: #E879F9;
    filter: drop-shadow(0 0 12px #C084FC);
  }
  50% {
    opacity: 1;
    transform: translate3d(calc(var(--startX, 0px) + var(--leapDist, 32px) * 0.52), var(--leapApex, -26px), 0) scale(1.2, 1.2) rotate(180deg);
    color: #F472B6;
    filter: drop-shadow(0 0 16px #E879F9);
  }
  75% {
    opacity: 1;
    transform: translate3d(calc(var(--startX, 0px) + var(--leapDist, 32px) * 0.82), calc(var(--leapApex, -26px) * 0.45), 0) scale(0.85, 1.3) rotate(310deg);
    color: #C084FC;
    filter: drop-shadow(0 0 12px #A855F7);
  }
  90% {
    opacity: 1;
    transform: translate3d(var(--targetX, 32px), 0, 0) scale(1.45, 0.55) rotate(360deg);
    color: #A855F7;
    filter: drop-shadow(0 0 20px #8B5CF6);
  }
  98% {
    opacity: 0.8;
    transform: translate3d(var(--targetX, 32px), -2px, 0) scale(0.8, 0.8) rotate(360deg);
  }
  100% {
    opacity: 0;
    transform: translate3d(var(--targetX, 32px), 0, 0) scale(0.5, 0.5) rotate(360deg);
  }
}

@keyframes duckL {
  0%, 25%, 75%, 100% {
    transform: translate3d(0, 0, 0) scale(1, 1);
    color: inherit;
  }
  48% {
    transform: translate3d(0, 3.5px, 0) scale(1.12, 0.85);
    color: #C084FC;
  }
}

@keyframes impactE {
  0%, 84% {
    transform: translate3d(0, 0, 0) scale(1);
    filter: none;
    color: inherit;
  }
  90% {
    transform: translate3d(0, 2px, 0) scale(1.45, 0.6);
    color: #F43F5E;
    filter: drop-shadow(0 0 12px #E879F9);
  }
  95% {
    transform: translate3d(0, -3.5px, 0) scale(0.9, 1.2);
    color: #C084FC;
    filter: drop-shadow(0 0 6px #A855F7);
  }
  100% {
    transform: translate3d(0, 0, 0) scale(1);
    color: inherit;
    filter: none;
  }
}

@keyframes ringPulse {
  0%, 88% {
    opacity: 0;
    transform: translate(-50%, -50%) scale(0.2);
  }
  90% {
    opacity: 1;
    transform: translate(-50%, -50%) scale(0.4);
    border-color: #E879F9;
  }
  100% {
    opacity: 0;
    transform: translate(-50%, -50%) scale(1.8);
    border-color: #571AFD;
  }
}

@keyframes kineticWave {
  0%, 88%, 100% {
    transform: translate3d(0, 0, 0);
    color: inherit;
  }
  93% {
    transform: translate3d(1.5px, -2px, 0);
    color: #E879F9;
  }
}

.headerRight {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.loginBtn {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 24px;
  border: 1px solid var(--textWhite);
  border-radius: 9999px;
  color: var(--textWhite);
  font-family: var(--fontBody);
  font-size: 14px;
  font-weight: bold;
  text-decoration: none;
  background-color: transparent;
  transition: background-color 0.3s ease, color 0.3s ease;
}

.loginBtn:hover {
  background-color: var(--textWhite);
  color: var(--bgDark);
}

.menuBtn {
  background: transparent;
  border: none;
  color: var(--textWhite);
  font-family: var(--fontBody);
  font-size: 14px;
  font-weight: bold;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 16px;
  border-radius: 9999px;
  transition: background-color 0.3s ease;
}

.menuBtn:hover {
  background-color: rgba(255, 255, 255, 0.1);
}

.iconContainer {
  position: relative;
  width: 24px;
  height: 24px;
}

.btnIcon {
  position: absolute;
  top: 0;
  left: 0;
  width: 24px;
  height: 24px;
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
  transition: transform 0.3s cubic-bezier(0.76, 0, 0.24, 1), opacity 0.3s cubic-bezier(0.76, 0, 0.24, 1);
}

.burgerIcon {
  background-image: url("../assets/icons/burger.png");
  opacity: 1;
  transform: rotate(0deg);
}

.closeIcon {
  background-image: url("../assets/icons/cross.png");
  opacity: 0;
  transform: rotate(-90deg);
}

.menuBtn.isOpen .burgerIcon {
  opacity: 0;
  transform: rotate(90deg);
}

.menuBtn.isOpen .closeIcon {
  opacity: 1;
  transform: rotate(0deg);
}

.heroTitle {
  font-family: var(--fontHero);
  font-size: clamp(3rem, 12vw, 180px);
  text-align: center;
  text-transform: uppercase;
  line-height: 0.736;
  letter-spacing: 0;
  margin: 0;
}

.textPurple {
  background: linear-gradient(to right, var(--purpleLight), var(--purpleDark));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  color: transparent;
  padding: 0.8em 0.1em;
  margin: -0.8em -0.1em;
  display: inline-block;
}

.heroEyebrow {
  font-family: var(--fontBody);
  letter-spacing: 0.05em;
  font-size: clamp(1rem, 2.5vw, 34px);
  font-weight: 600;
  text-transform: uppercase;
  margin-bottom: 1rem;
}

.menuOverlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background-color: var(--primaryPurple);
  z-index: 100;
  transform: translateY(-100%);
  transition: transform 0.6s cubic-bezier(0.76, 0, 0.24, 1);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

.menuOverlay.isOpen {
  transform: translateY(0);
}

.menuList {
  list-style: none;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.menuItemWrapper {
  overflow: hidden;
}

.menuItem {
  font-family: var(--fontBody);
  font-weight: bold;
  font-size: clamp(2rem, 5vw, 4rem);
  text-align: center;
  margin: 0;
  transform: translateY(100%);
  color: var(--textWhite);
  -webkit-text-stroke: 2px rgba(255, 255, 255, 0);
  paint-order: stroke fill;
  cursor: pointer;
  transition-property: transform, color, -webkit-text-stroke-color;
  transition-duration: 0.5s, 0.3s, 0.3s;
  transition-timing-function: cubic-bezier(0.76, 0, 0.24, 1), ease, ease;
  transition-delay: 0s, 0s, 0s;
}

.menuItem:hover {
  color: var(--primaryPurple);
  -webkit-text-stroke-color: #FFFFFF;
}

.menuOverlay.isOpen .menuItem {
  transform: translateY(0);
  transition-delay: calc(0.2s + (var(--i) * 0.1s)), 0s, 0s;
}

.siteFooter {
  background-color: transparent;
  padding: 6rem 4rem 2rem;
  position: relative;
  z-index: 10;
}

.footerTop, .footerBottom {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  flex-wrap: wrap;
  gap: 2rem;
}

.footerTop {
  margin-bottom: 4rem;
}

.footerLeft, .footerRight {
  font-weight: bold;
  font-size: 1.5rem;
}

.footerBottom {
  margin-top: 6rem;
  padding-top: 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  align-items: center;
}

.footerBottomLeft {
  display: flex;
  gap: 2rem;
  font-size: 0.875rem;
  color: var(--textGray);
}

.footerLink {
  cursor: pointer;
  transition: color 0.3s ease;
}

.footerLink:hover {
  color: var(--textWhite);
}

.footerCols {
  display: grid;
  grid-template-columns: 1fr 1fr 2fr;
  gap: 4rem;
}

.colTitle {
  color: #c084fc;
  font-weight: bold;
  margin-bottom: 2rem;
  font-size: 1.25rem;
}

.colList {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  list-style: none;
  padding: 0;
}

.colList.split {
  display: block;
  column-count: 2;
  column-gap: 4rem;
}

.colList.split li {
  margin-bottom: 1.25rem;
  break-inside: avoid;
}

.colList li {
  font-weight: 600;
  font-size: 1rem;
  color: var(--textGray);
  cursor: pointer;
  transition: color 0.3s ease;
}

.colList li:hover {
  color: var(--textWhite);
}

.socialBtn {
  background: transparent;
  border: none;
  padding: 0;
  cursor: pointer;
  display: flex;
}

.socialIcons {
  display: flex;
  gap: 1rem;
  align-items: center;
}

.hoverScale {
  transition: transform 0.3s cubic-bezier(0.76, 0, 0.24, 1);
}

.hoverScale:hover {
  transform: scale(1.1) translateY(-2px);
}

.filterWhite {
  filter: brightness(0) invert(1);
}
