.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 1.5rem;
}

.section {
  padding: var(--space-3xl) 0;
}
@media (max-width: 768px) {
  .section { padding: var(--space-2xl) 0; }
}

.section-head {
  text-align: center;
  max-width: 66rem;
  margin: 0 auto var(--space-2xl);
}

/* ============ NAV ============ */
.nav {
  position: fixed;
  top: 1rem;
  left: 50%;
  width: calc(100% - 2rem);
  max-width: 1240px;
  z-index: 100;
  background: rgba(255, 255, 255, 0.18);
  backdrop-filter: blur(28px) saturate(200%);
  -webkit-backdrop-filter: blur(28px) saturate(200%);
  border: 1px solid rgba(255, 255, 255, 0.35);
  border-radius: 999px;
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.6) inset,
    0 8px 32px rgba(0, 0, 0, 0.08),
    0 2px 8px rgba(0, 0, 0, 0.04);
  color: var(--foreground);
  opacity: 0;
  pointer-events: none;
  transform: translate(-50%, -16px);
  transition:
    opacity 0.5s var(--ease),
    transform 0.5s var(--ease),
    background var(--t-base),
    border-color var(--t-base);
}
.nav.is-visible {
  opacity: 1;
  pointer-events: auto;
  transform: translate(-50%, 0);
}
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.75rem 1.25rem 0.75rem 1.5rem;
  gap: 1.5rem;
}
.nav-logo svg {
  height: 18px;
  width: auto;
  fill: var(--foreground);
}
.nav-links {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  flex: 1;
  justify-content: center;
}
.nav-links a {
  padding: 0.5rem 0.875rem;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--muted-foreground);
  border-radius: 999px;
  transition:
    color var(--t-fast),
    background var(--t-base),
    box-shadow var(--t-base),
    transform var(--t-base);
}
.nav-links a:hover {
  color: var(--foreground);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.95) 0%, rgba(236, 237, 243, 0.85) 100%);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 1),
    inset 0 -1px 2px rgba(10, 10, 10, 0.05),
    0 1px 2px rgba(10, 10, 10, 0.04),
    0 4px 12px -4px rgba(10, 10, 10, 0.12);
  transform: translateY(-0.5px);
}
.nav-cta {
  display: flex;
  align-items: center;
  gap: 0.375rem;
}
.nav-burger {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 0.5rem;
}
.nav-burger span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--foreground);
  border-radius: 2px;
  transition: transform var(--t-fast), opacity var(--t-fast);
}
.nav-burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-burger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.nav-mobile {
  display: none;
  flex-direction: column;
  padding: 1rem 1.5rem 1.5rem;
  border-top: 1px solid var(--border);
  margin-top: 0.25rem;
  gap: 0.25rem;
}
.nav-mobile a {
  padding: 0.875rem 1rem;
  font-size: 1rem;
  font-weight: 500;
  color: var(--foreground);
  border-radius: var(--radius);
}
.nav-mobile a:hover { background: var(--muted); }
.nav-mobile .btn { margin-top: 0.5rem; }

.nav.is-open {
  border-radius: var(--radius-lg);
}
.nav.is-open .nav-mobile { display: flex; }

@media (max-width: 900px) {
  .nav-links, .nav-cta { display: none; }
  .nav-burger { display: flex; }
}

/* ============ FOOTER ============ */
.footer {
  position: relative;
  background:
    radial-gradient(ellipse 100% 85% at 50% 0%, rgba(140, 195, 255, 0.55) 0%, rgba(80, 130, 220, 0.22) 35%, transparent 75%),
    #000000;
  color: var(--dark-foreground);
  padding: var(--space-xl) 0 var(--space-lg);
  overflow: hidden;
  isolation: isolate;
}
.footer::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  opacity: 0.08;
  pointer-events: none;
  background-image: radial-gradient(rgba(255, 255, 255, 0.25) 1px, transparent 1px);
  background-size: 12px 12px;
}
.footer > .container {
  position: relative;
  z-index: 1;
}
.footer-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 3rem;
  padding-bottom: var(--space-2xl);
  border-bottom: 1px solid var(--dark-border);
}
.footer-brand {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  flex: 1;
  min-width: 0;
}
.footer-logo svg {
  height: 28px;
  fill: #ffffff;
}
.footer-tagline {
  color: rgba(255, 255, 255, 0.6);
  max-width: none;
  font-size: 0.9375rem;
  white-space: nowrap;
}
.footer-newsletter {
  flex-shrink: 0;
  max-width: 26rem;
}
.footer-newsletter h4 {
  font-size: 0.875rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: rgba(255, 255, 255, 0.5);
  margin-bottom: 0.875rem;
}
.footer-newsletter p {
  color: rgba(255, 255, 255, 0.65);
  font-size: 0.9375rem;
  line-height: 1.5;
  margin-bottom: 1.25rem;
  max-width: 22rem;
}
.footer-newsletter .btn-outline {
  color: #ffffff;
  border-color: rgba(255, 255, 255, 0.25);
}
.footer-newsletter .btn-outline:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: #ffffff;
}
@media (max-width: 820px) {
  .footer-top {
    flex-direction: column;
    align-items: flex-start;
    gap: 2.5rem;
  }
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: var(--space-xl);
  gap: 1.5rem;
  flex-wrap: wrap;
}
.footer-social {
  display: flex;
  gap: 0.5rem;
}
.footer-social a {
  width: 40px;
  height: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--dark-border);
  border-radius: 999px;
  color: rgba(255, 255, 255, 0.7);
  transition: all var(--t-fast);
}
.footer-social svg { width: 18px; height: 18px; }
.footer-social a:hover {
  color: #ffffff;
  border-color: #ffffff;
  transform: translateY(-2px);
}
.footer-legal {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  color: rgba(255, 255, 255, 0.5);
  font-size: 0.8125rem;
  flex-wrap: wrap;
}
.footer-legal a {
  color: rgba(255, 255, 255, 0.7);
  transition: color var(--t-fast);
}
.footer-legal a:hover { color: #ffffff; }

@media (max-width: 900px) {
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 2rem; }
}
@media (max-width: 560px) {
  .footer-grid { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; align-items: flex-start; }
}
