/* ==========================================================================
   Launch Labs — Footer
   Sits directly under .final-cta on the same black surface, separated by a
   single hairline rather than a colour change — the page doesn't need a
   second "ending", .final-cta already delivered that. Quiet by design: logo
   + motto on the left, the same three nav links on the right, then a thin
   bottom row for copyright and a back-to-top link.

   Structure: section shell -> top row (brand + motto, nav links) -> hairline
              -> bottom row (copyright, back to top). Fades in once via
              js/footer.js, same .is-visible pattern used across the page.
   ========================================================================== */

html {
  scroll-behavior: smooth;
}

.footer {
  --ink: #FFFFFF;
  --ink-muted: rgba(255, 255, 255, 0.6);
  --ink-soft: rgba(255, 255, 255, 0.48);
  --ink-faint: rgba(255, 255, 255, 0.34);
  --hairline: rgba(255, 255, 255, 0.12);
  --contrast: #D92632;

  background: #010202;
  color: var(--ink);
  border-top: 1px solid var(--hairline);
  padding: clamp(3.5rem, 6vw, 4.5rem) clamp(1.5rem, 4vw, 4rem) clamp(2.25rem, 4vw, 3rem);
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 0.8s var(--ease), transform 0.8s var(--ease);
}

.footer.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.footer__inner {
  max-width: 80rem;
  margin: 0 auto;
}

/* ==========================================================================
   Top row — brand/motto + links
   ========================================================================== */
.footer__top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 2.5rem 3rem;
  flex-wrap: wrap;
}

.footer__brand {
  max-width: 26rem;
}

.footer__logo {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-weight: 700;
  font-size: 1.1rem;
  letter-spacing: -0.015em;
  color: var(--ink);
}

.footer__motto {
  margin-top: 0.9rem;
  font-size: 0.9375rem;
  line-height: 1.65;
  color: var(--ink-muted);
}

.footer__links {
  display: flex;
  gap: 2rem;
  padding-top: 0.25rem;
}

.footer__links a {
  position: relative;
  padding-bottom: 0.3rem;
  font-size: 0.875rem;
  font-weight: 500;
  letter-spacing: 0.01em;
  color: var(--ink-soft);
  transition: color 0.3s var(--ease-ui);
}

.footer__links a::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 1px;
  background: var(--contrast);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.3s var(--ease-ui);
}

@media (hover: hover) and (pointer: fine) {
  .footer__links a:hover {
    color: var(--ink);
  }

  .footer__links a:hover::after {
    transform: scaleX(1);
    transform-origin: left;
  }
}

/* ==========================================================================
   Bottom row — copyright + back to top
   ========================================================================== */
.footer__bottom {
  margin-top: clamp(2.5rem, 5vw, 3.5rem);
  padding-top: 1.5rem;
  border-top: 1px solid var(--hairline);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}

.footer__copyright {
  font-size: 0.8125rem;
  color: var(--ink-faint);
}

.footer__back-top {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.8125rem;
  font-weight: 500;
  color: var(--ink-soft);
  transition: color 0.3s var(--ease-ui);
}

.footer__back-top span {
  transition: transform 0.3s var(--ease-ui);
}

@media (hover: hover) and (pointer: fine) {
  .footer__back-top:hover {
    color: var(--ink);
  }

  .footer__back-top:hover span {
    transform: translateY(-2px);
  }
}

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (max-width: 36rem) {
  .footer__top {
    flex-direction: column;
  }

  .footer__bottom {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.75rem;
  }
}
