.footer {
  position: relative;
  z-index: 1;
  background: rgba(8, 8, 10, 0.65);
  backdrop-filter: blur(40px) saturate(160%);
  -webkit-backdrop-filter: blur(40px) saturate(160%);
  border-top: 1px solid var(--glass-border);
  padding: 0 clamp(28px, 5vw, 60px);
}

.footer-main {
  display: grid;
  grid-template-columns: 1.2fr 1fr 1fr;
  gap: 48px;
  padding: 48px 0 36px;
  border-bottom: 1px solid var(--border);
}

.footer-brand {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 14px;
}

.footer-logo {
  width: 56px;
  height: 56px;
  object-fit: contain;
  flex-shrink: 0;
}

.footer-tagline {
  font-size: 14px;
  line-height: 1.55;
  color: var(--text-muted);
  font-weight: 300;
  max-width: 260px;
}

.footer-col-title {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-faint);
  margin-bottom: 16px;
}

.footer-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.footer-links a {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 15px;
  transition: color 0.2s;
}

.footer-links a:hover {
  color: var(--accent-bright);
}

.footer-buttons {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 10px;
}

.footer-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 11px 20px;
  border-radius: 100px;
  color: var(--text-muted);
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  border: 0.5px solid var(--border);
  background: rgba(255, 255, 255, 0.04);
  transition:
    color 0.2s,
    transform 0.28s var(--ease-spring),
    border-color 0.2s,
    background 0.2s;
}

.footer-btn:not(.footer-btn-discord):hover {
  color: var(--white);
  border-color: var(--glass-border-strong);
  background: rgba(255, 255, 255, 0.08);
  transform: translateY(-2px);
}

.footer-btn svg {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  fill: currentColor;
}

.footer-btn-discord {
  color: #fff;
  border: 0.5px solid rgba(255, 255, 255, 0.2);
  background: linear-gradient(180deg, #6b77f5 0%, #5865f2 55%, #4752c4 100%);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.22),
    0 8px 24px rgba(88, 101, 242, 0.35);
  position: relative;
  overflow: hidden;
}

.footer-btn-discord::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: linear-gradient(
    168deg,
    rgba(255, 255, 255, 0.18) 0%,
    transparent 42%
  );
  pointer-events: none;
}

.footer-btn-discord svg {
  fill: #fff;
  position: relative;
  z-index: 1;
}

.footer-btn-discord span {
  position: relative;
  z-index: 1;
}

.footer-btn-discord:hover {
  color: #fff;
  background: linear-gradient(180deg, #727cee 0%, #5f6ef0 55%, #505ecf 100%);
  transform: translateY(-3px) scale(1.03);
  border-color: rgba(255, 255, 255, 0.28);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.3),
    0 12px 32px rgba(88, 101, 242, 0.45);
}

.footer-btn-discord:hover svg {
  fill: #fff;
}

.footer-bottom {
  padding: 20px 0 24px;
  text-align: center;
}

.footer-copy {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--text-faint);
  letter-spacing: 0.04em;
}

.footer-coded {
  margin-top: 8px;
  font-family: var(--font-body);
  font-size: 13px;
  color: var(--text-muted);
  letter-spacing: 0.02em;
}

@media (max-width: 900px) {
  .footer-main {
    grid-template-columns: 1fr;
    gap: 36px;
  }
}

@media (max-width: 640px) {
  .footer-main {
    padding: 36px 0 28px;
  }
}
