.container {
  width: min(1140px, 92vw);
  margin: 0 auto;
}

.site-nav {
  width: 100%;
  position: sticky;
  top: 0;
  z-index: 100;
  height: var(--nav-h);
  backdrop-filter: blur(16px) saturate(1.4);
  background: color-mix(in srgb, var(--surface) 78%, transparent);
  border-bottom: 1px solid var(--border);
}

.nav-inner {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.brand {
  display: flex;
  align-items: center;
  text-decoration: none;
  flex-shrink: 0;
}

.brand img {
  display: block;
  --logo-h: 54px;
  height: var(--logo-h);
  width: auto;
  max-width: min(300px, 58vw);
  margin-left: calc(-257 / 650 * var(--logo-h));
}

@media (min-width: 768px) {
  .brand img {
    --logo-h: 58px;
  }
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 28px;
  list-style: none;
}

.nav-links a {
  text-decoration: none;
  color: var(--text-muted);
  font-size: 0.94rem;
  font-weight: 500;
  transition: color 0.2s;
}

.nav-links a:hover {
  color: var(--green-600);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 13px 24px;
  border-radius: 14px;
  font-weight: 600;
  font-size: 0.95rem;
  text-decoration: none;
  border: none;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
  white-space: nowrap;
}

.btn:hover {
  transform: translateY(-2px);
}

.btn-primary {
  background: linear-gradient(135deg, var(--green-600), var(--green-700));
  color: #fff;
  box-shadow: 0 8px 24px rgba(82, 166, 71, 0.28);
}

.btn-primary:hover {
  box-shadow: 0 12px 32px rgba(82, 166, 71, 0.36);
}

footer {
  width: 100%;
  padding: 48px 0 56px;
}

.footer-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--text-muted);
  font-size: 0.9rem;
}

.footer-brand img {
  --logo-h: 42px;
  height: var(--logo-h);
  width: auto;
  max-width: min(240px, 62vw);
  margin-left: calc(-257 / 650 * var(--logo-h));
  border-radius: 0;
  opacity: 1;
}

footer .nav-links a {
  font-size: 0.9rem;
}

@media (max-width: 640px) {
  .site-nav .nav-links {
    display: none;
  }

  .footer-inner {
    flex-direction: column;
    text-align: center;
  }

  footer .nav-links {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 16px;
  }
}
