.footer {
  position: relative;
  background: var(--primary);
  padding: 100px 0 30px;
  overflow: hidden;
}

.footer::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--secondary), var(--accent), transparent);
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.5fr;
  gap: 60px;
  margin-bottom: 60px;
}

.footer-brand {
  font-size: 28px;
  font-weight: 900;
  font-family: var(--font-secondary);
  color: var(--white);
  margin-bottom: 15px;
  letter-spacing: -0.5px;
}

.footer-brand .brand-accent {
  background: var(--gradient-2);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.footer-desc {
  color: var(--text-muted);
  font-size: 15px;
  line-height: 1.8;
  margin-bottom: 25px;
  max-width: 350px;
}

.footer-social {
  display: flex;
  gap: 15px;
}

.footer-social a {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  font-size: 18px;
  transition: var(--transition);
}

.footer-social a:hover {
  background: var(--secondary);
  color: var(--primary);
  border-color: var(--secondary);
  transform: translateY(-3px);
  box-shadow: var(--neon-glow);
}

.footer h4 {
  font-size: 18px;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 25px;
  font-family: var(--font-secondary);
}

.footer-links li {
  margin-bottom: 14px;
}

.footer-links a {
  color: var(--text-muted);
  font-size: 15px;
  transition: var(--transition);
  position: relative;
  padding-left: 0;
}

.footer-links a::before {
  content: '→';
  margin-right: 8px;
  opacity: 0;
  transform: translateX(-10px);
  display: inline-block;
  transition: var(--transition);
}

.footer-links a:hover {
  color: var(--secondary);
  padding-left: 5px;
}

.footer-links a:hover::before {
  opacity: 1;
  transform: translateX(0);
}

.footer-newsletter p {
  color: var(--text-muted);
  font-size: 15px;
  margin-bottom: 20px;
  line-height: 1.7;
}

.newsletter-form {
  display: flex;
  gap: 10px;
  position: relative;
}

.newsletter-form input {
  flex: 1;
  padding: 14px 20px;
  border-radius: 50px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.05);
  color: var(--white);
  font-size: 14px;
  font-family: var(--font-primary);
  outline: none;
  transition: var(--transition);
}

.newsletter-form input:focus {
  border-color: var(--secondary);
  box-shadow: 0 0 15px rgba(0, 217, 255, 0.1);
}

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

.newsletter-form button {
  padding: 14px 24px;
  border-radius: 50px;
  background: var(--secondary);
  color: var(--primary);
  border: none;
  font-weight: 600;
  font-size: 14px;
  cursor: pointer;
  transition: var(--transition);
  white-space: nowrap;
}

.newsletter-form button:hover {
  background: #00E5FF;
  box-shadow: var(--neon-glow);
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  padding-top: 30px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 20px;
}

.footer-bottom p {
  color: var(--text-muted);
  font-size: 14px;
}

.footer-bottom-links {
  display: flex;
  gap: 25px;
}

.footer-bottom-links a {
  color: var(--text-muted);
  font-size: 14px;
  transition: var(--transition);
}

.footer-bottom-links a:hover {
  color: var(--secondary);
}

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

@media (max-width: 768px) {
  .footer {
    padding: 60px 0 30px;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .footer-desc {
    max-width: 100%;
  }

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