.site-footer {
  position: relative;
  margin-top: 24px;
  padding-block: 0 32px;
  background:
    linear-gradient(180deg, transparent 0%, rgba(255, 255, 255, 0.015) 12%, var(--bg-base) 48%);
  overflow: hidden;
  isolation: isolate;
}

.footer__atmosphere {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0;
}

.footer__line {
  height: 1px;
  background: linear-gradient(
    90deg,
    transparent 0%,
    rgba(255, 255, 255, 0.08) 20%,
    rgba(255, 255, 255, 0.22) 50%,
    rgba(255, 255, 255, 0.08) 80%,
    transparent 100%
  );
}

.footer__glow {
  position: absolute;
  top: -120px;
  left: 50%;
  width: min(720px, 90vw);
  height: 240px;
  transform: translateX(-50%);
  background: radial-gradient(ellipse at center, rgba(255, 255, 255, 0.06) 0%, transparent 70%);
  filter: blur(40px);
}

.footer__inner {
  position: relative;
  z-index: 1;
  padding-top: 64px;
}

.footer__main {
  display: grid;
  grid-template-columns: 1.4fr 0.8fr 0.8fr 1.2fr;
  gap: 48px;
  align-items: start;
  padding-bottom: 48px;
}

.footer-brand__logo {
  display: inline-flex;
}

.footer-brand__logo img {
  height: 28px;
  width: 28px;
  border-radius: 7px;
}

.footer-brand__desc {
  margin-top: 16px;
  max-width: 300px;
  font-size: 14px;
  line-height: 1.65;
  color: var(--text-secondary);
}

.footer-col__title {
  margin-bottom: 18px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.footer-col ul {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.footer-col a {
  display: inline-flex;
  align-items: center;
  font-size: 14px;
  color: var(--text-secondary);
  transition: color var(--transition), transform var(--transition);
}

.footer-col a:hover {
  color: var(--text-primary);
  transform: translateX(3px);
}

.footer-subscribe {
  padding: 24px;
  background: linear-gradient(165deg, rgba(255, 255, 255, 0.04) 0%, rgba(255, 255, 255, 0.01) 100%);
  border: 1px solid var(--border-default);
  border-radius: var(--radius-xl);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.06),
    0 24px 48px rgba(0, 0, 0, 0.35);
}

.footer-subscribe__label {
  margin-bottom: 6px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.footer-subscribe__text {
  margin-bottom: 16px;
  font-size: 14px;
  line-height: 1.5;
  color: var(--text-secondary);
}

.footer-newsletter {
  display: flex;
  gap: 8px;
}

.footer-newsletter input {
  flex: 1;
  min-width: 0;
  padding: 11px 14px;
  font-size: 14px;
  background: rgba(0, 0, 0, 0.35);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  color: var(--text-primary);
  outline: none;
  transition: border-color var(--transition), background var(--transition);
}

.footer-newsletter input::placeholder {
  color: var(--text-muted);
}

.footer-newsletter input:focus {
  border-color: var(--border-strong);
  background: rgba(0, 0, 0, 0.5);
}

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding-top: 28px;
  border-top: 1px solid var(--border-subtle);
  font-size: 13px;
  color: var(--text-muted);
  flex-wrap: wrap;
}

.footer-bottom a {
  color: var(--text-secondary);
  transition: color var(--transition);
}

.footer-bottom a:hover {
  color: var(--text-primary);
}

.footer-watermark {
  position: absolute;
  left: 50%;
  bottom: -0.12em;
  z-index: 0;
  transform: translateX(-50%);
  margin: 0;
  font-size: clamp(5rem, 18vw, 11rem);
  font-weight: 700;
  letter-spacing: -0.04em;
  line-height: 1;
  white-space: nowrap;
  color: transparent;
  -webkit-text-stroke: 1px rgba(255, 255, 255, 0.04);
  pointer-events: none;
  user-select: none;
}

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

  .footer-brand {
    grid-column: 1 / -1;
  }

  .footer-subscribe {
    grid-column: 1 / -1;
    max-width: 420px;
  }
}

@media (max-width: 768px) {
  .footer__inner {
    padding-top: 48px;
  }

  .footer__main {
    grid-template-columns: 1fr;
    gap: 32px;
    padding-bottom: 40px;
  }

  .footer-subscribe {
    max-width: none;
  }

  .footer-watermark {
    font-size: clamp(4rem, 28vw, 7rem);
    bottom: 0;
  }
}
