.footer {
  padding: 80px 0 40px;
  background-color: var(--card-bg);
  border-top: 1px solid var(--border-color);
}

.footer-container {
  display: flex;
  justify-content: space-between;
  margin-bottom: 60px;
}

.footer-brand {
  max-width: 320px;
}

.footer-brand p {
  color: var(--text-muted);
  font-size: 15px;
  margin-top: 20px;
  line-height: 1.6;
}

.footer-links {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 60px;
}

.footer-col h4 {
  font-family: var(--font-heading);
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 24px;
}

.footer-col ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-col ul li {
  margin-bottom: 12px;
}

.footer-col ul li a {
  color: var(--text-muted);
  font-size: 14px;
  transition: color 0.2s;
}

.footer-col ul li a:hover {
  color: var(--primary);
}

.footer-bottom {
  padding-top: 40px;
  border-top: 1px solid var(--border-color);
  text-align: center;
  font-size: 13px;
  color: var(--text-muted);
}

.cta-section {
  padding: 100px 0;
}

.cta-card {
  background: var(--primary-gradient);
  border-radius: var(--border-radius-lg);
  padding: 80px;
  color: white;
  display: flex;
  align-items: center;
  justify-content: space-between;
  overflow: hidden;
  position: relative;
}

.cta-card h2 {
  font-family: var(--font-heading);
  font-size: 48px;
  font-weight: 800;
  margin-bottom: 20px;
  max-width: 600px;
  line-height: 1.1;
}

.cta-card p {
  font-size: 20px;
  opacity: 0.9;
  margin-bottom: 40px;
}

.cta-buttons {
  display: flex;
  gap: 16px;
}

.cta-image {
  position: absolute;
  right: -50px;
  top: 50%;
  transform: translateY(-50%) rotate(-5deg);
  width: 450px;
  pointer-events: none;
}

.cta-mockup {
  width: 100%;
  height: auto;
  border-radius: 40px;
  box-shadow: -40px 40px 80px rgba(0,0,0,0.3);
}

@media (max-width: 900px) {
  .footer-container {
    flex-direction: column;
    gap: 60px;
  }
  .cta-card {
    padding: 60px 40px;
    text-align: center;
    flex-direction: column;
    border-radius: 40px;
  }
  .cta-card h2 {
    font-size: clamp(28px, 8vw, 36px);
    max-width: 100%;
  }
  .cta-card p {
    font-size: 18px;
  }
  .cta-image {
    display: none; /* Hide image on mobile as it's absolute and hard to position */
  }
  .cta-buttons {
    flex-direction: column;
    width: 100%;
  }
  .footer-links {
    grid-template-columns: repeat(2, 1fr);
    gap: 40px;
  }
}

@media (max-width: 600px) {
  .footer {
    padding: 40px 0 30px; /* Reduced padding */
  }
  .footer-container {
    gap: 32px; /* Less gap */
    margin-bottom: 40px;
  }
  .footer-col {
    text-align: center;
  }
  .footer-col h4 {
    margin-bottom: 12px; /* Tight footer */
    font-size: 16px;
  }
  .footer-col ul li {
    margin-bottom: 8px;
  }
  .footer-links {
    grid-template-columns: 1fr;
    gap: 24px; /* Reduced gap between columns */
  }
  .footer-brand {
    text-align: center;
    max-width: 100%;
  }
  .footer-brand .logo-wrapper {
    justify-content: center;
  }
  .footer-brand p {
    margin-top: 12px;
    font-size: 14px;
  }
}
