/* Page chrome shared by every layout, including the bare landing page: the footer
   component and the scrollbar. Moved out of styles.css so the landing page renders
   the same <Footer /> and the same scrollbar without loading the whole site sheet. */

.footer {
  background: #000;
  border-top: 1px solid var(--color-border);
  padding: clamp(48px, 6vw, 72px) 0 34px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 48px;
  margin-bottom: 48px;
}

.footer-brand p {
  color: var(--color-text-secondary);
  font-size: 0.9rem;
  margin-top: 16px;
  max-width: 300px;
  line-height: 1.7;
}

.footer-col h3 {
  font-size: 0.65625rem;
  line-height: normal;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--color-text-muted);
  margin-bottom: var(--space-4);
}

.footer-col ul {
  list-style: none;
}

.footer-col ul li {
  margin-bottom: 12px;
}

.footer-col ul a {
  font-size: var(--type-body-small);
  line-height: 1.7;
  color: var(--color-text-secondary);
  transition: color 0.25s var(--ease-standard);
  padding: 4px 0;
  display: inline-block;
}

.footer-col ul a:hover {
  color: var(--color-primary-light);
}

.footer-bottom {
  line-height: 1.7;
  padding-top: 32px;
  border-top: 1px solid var(--color-border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.82rem;
  color: var(--color-text-muted);
}

.footer-socials {
  display: flex;
  gap: 16px;
}

.footer-socials a {
  color: var(--color-text-muted);
  transition: color 0.25s ease;
}

.footer-socials a:hover {
  color: var(--color-primary-light);
}

.footer-badges {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 28px;
  padding: 24px 0 8px;
  flex-wrap: wrap;
}

.footer-badge {
  display: inline-flex;
  align-items: center;
  opacity: 0.6;
  transition: opacity 0.2s;
}

.footer-badge:hover {
  opacity: 1;
}

.footer-badge img {
  height: 40px;
  width: auto;
  filter: brightness(0) invert(1);
}

.footer-brand .footer-badges {
  justify-content: flex-start;
  gap: 24px;
  padding: 20px 0 0;
}

/* The footer's brand link is a nav-logo: keep the lockup inline on pages that do
   not load styles.css. */
.footer .nav-logo {
  display: inline-flex;
  align-items: center;
}

@media (max-width: 1024px) {
  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 32px;
  }
}

@media (max-width: 768px) {
  .footer-grid {
    grid-template-columns: 1fr;
  }
  .footer-bottom {
    flex-direction: column;
    gap: 16px;
    text-align: center;
  }
}

/* The landing page does not load styles.css, so .container had no width there and
   the footer ran the full viewport. Same values as styles.css. */
.footer .container {
  width: 100%;
  max-width: 1300px;
  margin: 0 auto;
  padding: 0 24px;
}

@media (max-width: 768px) {
  .footer .container {
    padding: 0 16px;
  }
}

/* Scrollbar: the bare landing page has no styles.css, so the bar was native there
   and lilac everywhere else. Literal ink because both layouts sit on #09011a. */
html {
  scrollbar-color: rgba(205, 130, 255, 0.45) #09011a;
  scrollbar-width: thin;
}

::-webkit-scrollbar {
  width: 10px;
  height: 10px;
}

::-webkit-scrollbar-track {
  background: #09011a;
}

::-webkit-scrollbar-thumb {
  background: rgba(205, 130, 255, 0.35);
  border-radius: 999px;
  border: 2px solid #09011a;
}

::-webkit-scrollbar-thumb:hover {
  background: rgba(205, 130, 255, 0.55);
}

::selection {
  background: rgba(205, 130, 255, 0.35);
  color: #f2f1f6;
}
