/* ============================================
   PREMIUM SAAS FOOTER - EwiiDine
   Billion-dollar SaaS aesthetic
   ============================================ */

/* ---- CTA Section Above Footer ---- */
.footer-cta {
  position: relative;
  padding: 100px 0 120px;
  background: #050B18;
  overflow: hidden;
}

.footer-cta::before {
  content: '';
  position: absolute;
  top: -1px;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(46,107,255,0.3), transparent);
}

/* Glow orbs */
.cta-glow {
  position: absolute;
  border-radius: 50%;
  filter: blur(100px);
  pointer-events: none;
  opacity: 0.4;
}

.cta-glow-1 {
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(46,107,255,0.25) 0%, transparent 70%);
  top: -150px;
  left: 50%;
  transform: translateX(-50%);
  animation: glow-pulse 8s ease-in-out infinite;
}

.cta-glow-2 {
  width: 300px;
  height: 300px;
  background: radial-gradient(circle, rgba(46,211,198,0.15) 0%, transparent 70%);
  bottom: -100px;
  right: 10%;
  animation: glow-pulse 10s ease-in-out infinite 2s;
}

.cta-glow-3 {
  width: 250px;
  height: 250px;
  background: radial-gradient(circle, rgba(46,107,255,0.12) 0%, transparent 70%);
  top: 20%;
  left: 5%;
  animation: glow-pulse 12s ease-in-out infinite 4s;
}

@keyframes glow-pulse {
  0%, 100% { opacity: 0.3; transform: translateX(-50%) scale(1); }
  50% { opacity: 0.5; transform: translateX(-50%) scale(1.15); }
}

@keyframes glow-pulse-raw {
  0%, 100% { opacity: 0.3; transform: scale(1); }
  50% { opacity: 0.5; transform: scale(1.15); }
}

.cta-glow-2, .cta-glow-3 {
  animation-name: glow-pulse-raw;
}

/* Floating particles */
.cta-particles {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
}

.cta-particle {
  position: absolute;
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: rgba(46,107,255,0.3);
  animation: particle-float 15s linear infinite;
}

.cta-particle:nth-child(1) { left: 10%; top: 20%; animation-delay: 0s; animation-duration: 18s; }
.cta-particle:nth-child(2) { left: 25%; top: 60%; animation-delay: 3s; animation-duration: 22s; width: 2px; height: 2px; background: rgba(46,211,198,0.25); }
.cta-particle:nth-child(3) { left: 70%; top: 30%; animation-delay: 6s; animation-duration: 16s; }
.cta-particle:nth-child(4) { left: 85%; top: 70%; animation-delay: 9s; animation-duration: 20s; width: 2px; height: 2px; background: rgba(46,211,198,0.2); }
.cta-particle:nth-child(5) { left: 50%; top: 80%; animation-delay: 2s; animation-duration: 25s; }
.cta-particle:nth-child(6) { left: 35%; top: 15%; animation-delay: 7s; animation-duration: 19s; width: 2px; height: 2px; }

@keyframes particle-float {
  0% { transform: translateY(0) translateX(0); opacity: 0; }
  10% { opacity: 1; }
  90% { opacity: 1; }
  100% { transform: translateY(-200px) translateX(40px); opacity: 0; }
}

/* CTA Content */
.cta-inner-premium {
  position: relative;
  z-index: 5;
  text-align: center;
  max-width: 680px;
  margin: 0 auto;
}

.cta-inner-premium .cta-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: var(--fs-xs);
  font-weight: var(--fw-medium);
  letter-spacing: var(--ls-label);
  text-transform: uppercase;
  color: #2ED3C6;
  margin-bottom: 24px;
}

.cta-eyebrow .eyebrow-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #2ED3C6;
  animation: pulse-glow 2s ease infinite;
}

@keyframes pulse-glow {
  0%, 100% { box-shadow: 0 0 0 0 rgba(46,211,198,0.4); }
  50% { box-shadow: 0 0 0 6px rgba(46,211,198,0); }
}

.cta-inner-premium h2 {
  font-family: var(--font-primary);
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: var(--fw-extrabold);
  color: #ffffff;
  line-height: var(--lh-tight);
  margin-bottom: 18px;
  letter-spacing: -0.03em;
}

.cta-inner-premium h2 .cta-gradient-text {
  background: linear-gradient(135deg, #2E6BFF, #2ED3C6);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.cta-inner-premium p {
  font-size: var(--fs-md);
  color: rgba(255,255,255,0.50);
  line-height: var(--lh-relaxed);
  font-weight: var(--fw-regular);
  margin-bottom: 40px;
}

.cta-buttons-premium {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
}

.btn-cta-primary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 16px 36px;
  background: linear-gradient(135deg, #2E6BFF, #1a4fd4);
  color: white;
  border: none;
  border-radius: 12px;
  font-family: var(--font-primary);
  font-size: var(--fs-sm);
  font-weight: var(--fw-medium);
  letter-spacing: var(--ls-wide);
  cursor: pointer;
  transition: all 0.4s cubic-bezier(0.22, 1, 0.36, 1);
  position: relative;
  overflow: hidden;
}

.btn-cta-primary::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(255,255,255,0.15), transparent);
  opacity: 0;
  transition: opacity 0.4s ease;
}

.btn-cta-primary:hover {
  transform: translateY(-3px);
  box-shadow:
    0 0 20px rgba(46,107,255,0.4),
    0 8px 30px rgba(46,107,255,0.25);
}

.btn-cta-primary:hover::before {
  opacity: 1;
}

.btn-cta-primary svg {
  width: 18px;
  height: 18px;
  stroke: currentColor;
  fill: none;
  stroke-width: 2;
  transition: transform 0.3s ease;
}

.btn-cta-primary:hover svg {
  transform: translateX(3px);
}

.btn-cta-secondary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 16px 36px;
  background: transparent;
  color: rgba(255,255,255,0.8);
  border: 1.5px solid rgba(255,255,255,0.15);
  border-radius: 12px;
  font-family: var(--font-primary);
  font-size: var(--fs-sm);
  font-weight: var(--fw-medium);
  letter-spacing: var(--ls-wide);
  cursor: pointer;
  transition: all 0.4s cubic-bezier(0.22, 1, 0.36, 1);
}

.btn-cta-secondary:hover {
  border-color: rgba(46,211,198,0.4);
  color: #2ED3C6;
  background: rgba(46,211,198,0.05);
  transform: translateY(-3px);
  box-shadow: 0 0 20px rgba(46,211,198,0.1);
}

/* Trust badge below CTA */
.cta-trust {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 24px;
  margin-top: 40px;
  flex-wrap: wrap;
}

.cta-trust-item {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.90rem;
  color: rgba(255,255,255,0.35);
  font-weight: 500;
}

.cta-trust-item svg {
  width: 14px;
  height: 14px;
  stroke: rgba(46,211,198,0.5);
  fill: none;
  stroke-width: 2;
}

/* ---- MAIN FOOTER ---- */
.footer-premium {
  background: linear-gradient(180deg, #050B18 0%, #0B1D3A 40%, #050B18 100%);
  position: relative;
  overflow: hidden;
}

.footer-premium::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent 5%, rgba(255,255,255,0.06) 50%, transparent 95%);
}

/* Subtle background grid */
.footer-bg-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(46,107,255,0.015) 1px, transparent 1px),
    linear-gradient(90deg, rgba(46,107,255,0.015) 1px, transparent 1px);
  background-size: 80px 80px;
  pointer-events: none;
  mask-image: radial-gradient(ellipse at center, rgba(0,0,0,0.5) 0%, transparent 70%);
  -webkit-mask-image: radial-gradient(ellipse at center, rgba(0,0,0,0.5) 0%, transparent 70%);
}

/* Glow in footer */
.footer-glow {
  position: absolute;
  width: 400px;
  height: 400px;
  border-radius: 50%;
  filter: blur(120px);
  pointer-events: none;
  opacity: 0.15;
}

.footer-glow-left {
  background: #2E6BFF;
  bottom: -200px;
  left: -100px;
}

.footer-glow-right {
  background: #2ED3C6;
  top: -150px;
  right: -100px;
  opacity: 0.08;
}

.footer-premium .container {
  position: relative;
  z-index: 2;
}

/* Footer main grid */
.footer-main-grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1fr 1fr;
  gap: 48px;
  padding: 80px 0 60px;
}

/* Brand column */
.footer-brand-col .brand-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 20px;
}

.brand-logo .brand-icon {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: linear-gradient(135deg, #2E6BFF, #2ED3C6);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

.brand-icon::after {
  content: '';
  position: absolute;
  inset: -2px;
  border-radius: 12px;
  background: linear-gradient(135deg, #2E6BFF, #2ED3C6);
  z-index: -1;
  opacity: 0.3;
  filter: blur(6px);
}

.brand-icon svg {
  width: 20px;
  height: 20px;
  fill: white;
}

.brand-logo .brand-name {
  font-family: var(--font-primary);
  font-size: 1.4rem;
  font-weight: var(--fw-extrabold);
  color: white;
  letter-spacing: var(--ls-tight);
}

.footer-brand-col .brand-desc {
  font-size: var(--fs-sm);
  color: rgba(255,255,255,0.4);
  line-height: var(--lh-relaxed);
  font-weight: var(--fw-regular);
  margin-bottom: 28px;
  max-width: 280px;
}

/* Social icons */
.footer-socials {
  display: flex;
  gap: 10px;
}

.social-icon {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.06);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.4s cubic-bezier(0.22, 1, 0.36, 1);
  cursor: pointer;
}

.social-icon svg {
  width: 16px;
  height: 16px;
  fill: rgba(255,255,255,0.4);
  transition: fill 0.3s ease;
}

.social-icon:hover {
  background: rgba(46,107,255,0.1);
  border-color: rgba(46,107,255,0.25);
  transform: translateY(-3px) scale(1.05);
  box-shadow: 0 4px 15px rgba(46,107,255,0.15);
}

.social-icon:hover svg {
  fill: #2E6BFF;
}

.social-icon.twitter:hover { background: rgba(29,161,242,0.1); border-color: rgba(29,161,242,0.25); }
.social-icon.twitter:hover svg { fill: #1DA1F2; }
.social-icon.instagram:hover { background: rgba(225,48,108,0.1); border-color: rgba(225,48,108,0.25); }
.social-icon.instagram:hover svg { fill: #E1306C; }
.social-icon.linkedin:hover { background: rgba(10,102,194,0.1); border-color: rgba(10,102,194,0.25); }
.social-icon.linkedin:hover svg { fill: #0A66C2; }

/* Footer columns */
.footer-link-col h5 {
  font-family: var(--font-primary);
  font-size: var(--fs-xs);
  font-weight: var(--fw-semibold);
  text-transform: uppercase;
  letter-spacing: var(--ls-label);
  color: rgba(255,255,255,0.85);
  margin-bottom: 22px;
}

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

.footer-link-col ul li a {
  font-size: var(--fs-sm);
  color: rgba(255,255,255,0.38);
  font-weight: var(--fw-regular);
  text-decoration: none;
  transition: all 0.3s ease;
  position: relative;
  display: inline-block;
}

.footer-link-col ul li a::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 1px;
  background: linear-gradient(90deg, #2E6BFF, #2ED3C6);
  transition: width 0.3s ease;
}

.footer-link-col ul li a:hover {
  color: rgba(255,255,255,0.9);
}

.footer-link-col ul li a:hover::after {
  width: 100%;
}

/* Badge on some links */
.footer-link-col .link-badge {
  display: inline-block;
  font-size: 0.67rem;
  font-weight: 700;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  padding: 2px 6px;
  border-radius: 4px;
  margin-left: 6px;
  vertical-align: middle;
}

.link-badge.new {
  background: rgba(46,211,198,0.12);
  color: #2ED3C6;
}

.link-badge.beta {
  background: rgba(46,107,255,0.12);
  color: #5B8DFF;
}

/* ---- BOTTOM BAR ---- */
.footer-divider {
  height: 1px;
  background: linear-gradient(90deg, transparent 5%, rgba(255,255,255,0.06) 50%, transparent 95%);
}

.footer-bottom-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 28px 0;
  gap: 16px;
}

.footer-bottom-bar .copyright {
  font-size: var(--fs-sm);
  color: rgba(255,255,255,0.25);
  font-weight: var(--fw-regular);
  letter-spacing: var(--ls-normal);
}

.footer-bottom-bar .copyright a {
  color: rgba(255,255,255,0.4);
  text-decoration: none;
  transition: color 0.3s ease;
}

.footer-bottom-bar .copyright a:hover {
  color: #2E6BFF;
}

.footer-bottom-right {
  display: flex;
  align-items: center;
  gap: 20px;
}

.footer-status {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.90rem;
  color: rgba(255,255,255,0.3);
}

.footer-status .status-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #22c55e;
  box-shadow: 0 0 8px rgba(34,197,94,0.4);
  animation: pulse-glow 2s ease infinite;
}

.footer-lang-selector {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 1.04rem;
  color: rgba(255,255,255,0.35);
  padding: 6px 12px;
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.3s ease;
}

.footer-lang-selector:hover {
  border-color: rgba(255,255,255,0.15);
  color: rgba(255,255,255,0.6);
}

.footer-lang-selector .flag {
  font-size: 1.02rem;
}

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

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

  .cta-inner-premium h2 {
    font-size: 2.4rem;
  }
}

@media (max-width: 768px) {
  .footer-main-grid {
    grid-template-columns: 1fr 1fr;
    gap: 32px;
    padding: 60px 0 40px;
  }

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

  .cta-inner-premium h2 {
    font-size: 1.9rem;
  }

  .cta-inner-premium p {
    font-size: 1rem;
  }

  .footer-cta {
    padding: 70px 0 80px;
  }

  .cta-buttons-premium {
    flex-direction: column;
  }

  .cta-trust {
    flex-direction: column;
    gap: 12px;
  }

  .footer-bottom-bar {
    flex-direction: column;
    text-align: center;
    gap: 16px;
  }

  .footer-bottom-right {
    flex-wrap: wrap;
    justify-content: center;
  }
}

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