.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(11, 17, 32, 0.85);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  font-family: system-ui, -apple-system, sans-serif;
  font-stretch: condensed;
  color: #f8fafc;
}

.site-header__container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 16px 24px;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 24px;
}

/* Tablet: use two columns (brand | actions) to better fit tablet screens */
@media (max-width: 899px) {
  .site-header__container {
    grid-template-columns: 1fr auto;
  }
}

.site-header__brand {
  justify-self: start;
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: #ffffff;
  font-weight: 700;
  font-size: 1.25rem;
  letter-spacing: 0.02em;
}

.site-header__brand svg {
  width: 32px;
  height: 32px;
  fill: currentColor;
  color: #3b82f6;
}

.site-header__nav {
  justify-self: center;
  display: none;
  gap: 32px;
}

@media (min-width: 900px) {
  .site-header__nav {
    display: flex;
  }
}

.site-header__nav-link {
  color: #cbd5e1;
  text-decoration: none;
  font-weight: 600;
  transition: color 0.2s ease;
}

.site-header__nav-link:hover {
  color: #ffffff;
}

.site-header__actions {
  justify-self: end;
  display: flex;
  align-items: center;
  gap: 16px;
}

.site-header__cta {
  display: none;
  background: #3b82f6;
  color: #ffffff;
  text-decoration: none;
  padding: 10px 28px;
  border-radius: 9999px;
  font-weight: 600;
  transition: background 0.2s ease;
}

.site-header__cta:hover {
  background: #2563eb;
}

@media (min-width: 900px) {
  .site-header__cta {
    display: inline-flex;
  }
}

.site-header__burger {
  display: flex;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  color: #ffffff;
}

@media (min-width: 900px) {
  .site-header__burger {
    display: none;
  }
}

.site-header__burger-line {
  width: 24px;
  height: 2px;
  background: currentColor;
  border-radius: 9999px;
  transition: 0.2s ease;
}

.site-mobilenav {
  position: fixed;
  inset: 0;
  z-index: 100;
  font-family: system-ui, -apple-system, sans-serif;
  font-stretch: condensed;
}

.site-mobilenav[hidden] {
  display: none;
}

.site-mobilenav__overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}

.site-mobilenav__panel {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  width: 100%;
  max-width: 380px;
  background: #0b1120;
  display: flex;
  flex-direction: column;
  padding: 32px 24px;
  box-shadow: -8px 0 40px rgba(0, 0, 0, 0.6);
  border-left: 1px solid rgba(255, 255, 255, 0.05);
}

.site-mobilenav__header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 56px;
}

.site-mobilenav__brand {
  color: #ffffff;
  font-weight: 700;
  font-size: 1.25rem;
}

.site-mobilenav__close {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: #ffffff;
  width: 44px;
  height: 44px;
  border-radius: 9999px;
  font-size: 1.5rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s ease;
}

.site-mobilenav__close:hover {
  background: rgba(255, 255, 255, 0.15);
}

.site-mobilenav__nav {
  display: flex;
  flex-direction: column;
  gap: 28px;
}

.site-mobilenav__nav-link {
  color: #f8fafc;
  text-decoration: none;
  font-size: 1.5rem;
  font-weight: 600;
  transition: color 0.2s ease;
}

.site-mobilenav__nav-link:hover {
  color: #3b82f6;
}

.site-mobilenav__bottom {
  margin-top: auto;
  padding-top: 40px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.site-mobilenav__bottom-label {
  color: #94a3b8;
  font-size: 0.875rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-weight: 600;
}

.site-mobilenav__bottom-link {
  color: #3b82f6;
  text-decoration: none;
  font-weight: 600;
  font-size: 1.125rem;
}

.site-footer {
  background: #0b1120;
  color: #f8fafc;
  font-family: system-ui, -apple-system, sans-serif;
  font-stretch: condensed;
  padding: 100px 24px 40px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.site-footer__container {
  max-width: 1400px;
  margin: 0 auto;
}

.site-footer__editorial {
  margin-bottom: 80px;
}

.site-footer__closing-line {
  font-size: 2rem;
  font-weight: 800;
  line-height: 1.1;
  max-width: 800px;
  margin: 0 0 32px 0;
  color: #ffffff;
}

.site-footer__email {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #ffffff;
  color: #0b1120;
  text-decoration: none;
  padding: 16px 36px;
  border-radius: 9999px;
  font-weight: 700;
  font-size: 1.125rem;
  transition: background 0.2s ease;
}

.site-footer__email:hover {
  background: #e2e8f0;
}

.site-footer__nav {
  display: flex;
  flex-wrap: wrap;
  gap: 32px;
  margin-bottom: 80px;
}

.site-footer__nav-link {
  color: #cbd5e1;
  text-decoration: none;
  font-weight: 600;
  font-size: 1.125rem;
  transition: color 0.2s ease;
}

.site-footer__nav-link:hover {
  color: #ffffff;
}

.site-footer__legal {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 32px;
  display: flex;
  flex-direction: column;
  gap: 24px;
}

@media (min-width: 768px) {
  .site-footer__legal {
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
  }
}

.site-footer__copyright {
  color: #64748b;
  font-size: 0.875rem;
}

.site-footer__legal-links {
  display: flex;
  gap: 24px;
  flex-wrap: wrap;
}

.site-footer__legal-link {
  color: #64748b;
  text-decoration: none;
  font-size: 0.875rem;
  transition: color 0.2s ease;
}

.site-footer__legal-link:hover {
  color: #cbd5e1;
}

@media (min-width: 768px) {
  .md\:grid-cols-2 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .md\:grid-cols-3 {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .md\:grid-cols-4 {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

@media (min-width: 1024px) {
  .lg\:grid-cols-2 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .lg\:grid-cols-3 {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .lg\:grid-cols-4 {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

[data-mobile-nav][hidden],
[data-mobile-nav].hidden {
  display: none
}

[data-mobile-nav][data-mobile-open="1"] {
  display: block
}
