/* Shared site header + footer for landing, blog, tools, and guides */

.main-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background:
    linear-gradient(180deg, rgba(5, 8, 21, 0.95) 0%, rgba(5, 8, 21, 0.98) 100%),
    radial-gradient(circle at top left, rgba(79, 70, 229, 0.1) 0%, transparent 60%);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(17, 24, 39, 0.5);
  padding: 1rem 0;
}

.main-header::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(90, 141, 238, 0.3), transparent);
}

.header-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1.25rem;
}

.header-logo {
  display: inline-flex;
  align-items: center;
  line-height: 0;
  text-decoration: none !important;
  flex-shrink: 0;
}

.header-logo img,
.header-logo .logo-image {
  display: block;
  height: 40px;
  width: auto;
  max-width: min(280px, 55vw);
  object-fit: contain;
  object-position: left center;
}

.header-nav {
  display: flex;
  gap: 1.75rem;
  align-items: center;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.header-nav .nav-link {
  color: #e5e7eb;
  text-decoration: none;
  font-weight: 500;
  font-size: 0.9rem;
  transition: color 0.3s ease;
}

.header-nav .nav-link:hover,
.header-nav .nav-link.is-active {
  color: #5a8dee;
  text-decoration: none;
}

.header-nav .cta-button {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: linear-gradient(135deg, #5a8dee 0%, #7c3aed 50%, #ec4899 100%);
  color: #fff !important;
  text-decoration: none !important;
  padding: 0.75rem 1.5rem;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.9rem;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  box-shadow: 0 12px 30px rgba(37, 99, 235, 0.45);
}

.header-nav .cta-button:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 40px rgba(37, 99, 235, 0.65);
}

.site-footer {
  background: #050815;
  color: #fff;
  padding: 3rem 0 1.5rem;
  margin-top: 3rem;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.site-footer-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
}

.site-footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 2rem;
}

.site-footer-brand .logo-image,
.site-footer-brand img {
  height: 36px;
  width: auto;
  display: block;
  margin-bottom: 0.75rem;
}

.site-footer-brand p {
  margin: 0;
  color: rgba(255, 255, 255, 0.65);
  font-size: 0.9rem;
  line-height: 1.5;
}

.site-footer-social {
  display: flex;
  gap: 1rem;
  margin-top: 1rem;
}

.site-footer-social a {
  color: rgba(255, 255, 255, 0.6);
  transition: color 0.2s ease;
  line-height: 0;
}

.site-footer-social a:hover {
  color: #5a8dee;
  text-decoration: none;
}

.site-footer h4 {
  margin: 0 0 0.85rem;
  font-size: 0.95rem;
  font-weight: 600;
  color: #fff;
}

.site-footer ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.site-footer li {
  margin: 0 0 0.55rem;
}

.site-footer a {
  color: rgba(255, 255, 255, 0.8);
  text-decoration: none;
  font-size: 0.9rem;
}

.site-footer a:hover {
  color: #5a8dee;
  text-decoration: underline;
}

.site-footer-bottom {
  margin-top: 2rem;
  padding-top: 1.25rem;
  border-top: 1px solid rgba(255, 255, 255, 0.15);
  text-align: center;
}

.site-footer-bottom p {
  margin: 0;
  color: rgba(255, 255, 255, 0.55);
  font-size: 0.85rem;
}

@media (max-width: 768px) {
  .header-container,
  .site-footer-inner {
    padding: 0 1rem;
  }

  .header-nav {
    gap: 0.85rem 1.1rem;
  }

  .header-logo img,
  .header-logo .logo-image {
    height: 32px;
  }

  .header-nav .cta-button {
    padding: 0.6rem 1.1rem;
    font-size: 0.85rem;
  }

  .site-footer-grid {
    grid-template-columns: 1fr;
    gap: 1.75rem;
  }
}
