/* ---------- FOOTER ---------- */

footer {
  position: relative;
  margin-top: 60px;
  background: linear-gradient(315deg, rgba(6,8,9,0.75), rgba(6,8,9,0.35));
  border-top: 1px solid rgba(255,255,255,0.08);
}

footer::before {
  content: '';
  position: absolute;
  top: -60px;
  left: 0;
  right: 0;
  height: 120px;
  background: linear-gradient(to bottom, rgba(0,0,0,0) 0%, rgba(6,8,9,0.4) 100%);
  pointer-events: none;
  z-index: -1;
}

.footer-inner {
  max-width: 1160px;
  margin: 0 auto;
  padding: 40px 20px;
  font-size: 0.8rem;
  color: #9CA3AF;
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.footer-nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-start;
  gap: 80px;
}

.footer-column {
  min-width: 160px;
}

.footer-column-title {
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1.5px;
  margin-bottom: 14px;
  text-transform: uppercase;
}

.footer-column-list {
  list-style: none;
  padding: 0;
  margin: 0;
  line-height: 2;
}

.footer-column-list a {
  color: #999;
  text-decoration: none;
  transition: all 0.2s ease;
  display: inline-block;
}

.footer-column-list a:hover {
  color: #fff;
  transform: translateY(-1px);
}

.footer-tagline {
  text-align: center;
  flex: 1;
  display: flex;
  align-items: flex-end;
  justify-content: center;
}

.footer-tagline p {
  font-size: 1.35rem;
  font-weight: 300;
  color: #aaa;
  font-style: italic;
  letter-spacing: 0.02em;
  margin: 0;
}

.footer-divider {
  border-top: 1px solid rgba(255,255,255,0.12);
  margin: 8px 0 20px 0;
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  flex-wrap: wrap;
  gap: 32px;
}

.footer-brand {
  text-align: left;
  padding-top: 0;
  flex: 0 0 auto;
  min-width: 200px;
}

.redline-logo {
  width: 92px;
  height: auto;
  opacity: 0.9;
  margin-bottom: 14px;
  transition: transform 0.25s ease, opacity 0.25s ease;
  object-fit: contain;
}

.redline-logo:hover {
  transform: translateY(-2px) scale(1.03);
  opacity: 1;
}

.footer-legal {
  color: #777;
  font-size: 13px;
  margin: 4px 0;
}

.footer-legal .racely-brand {
  color: #E63946;
  font-weight: 600;
}

.footer-legal-line {
  color: #555;
  font-size: 12px;
  margin: 0;
}

.footer-legal-line .ibnext-brand {
  background: linear-gradient(135deg, #3b82f6, #00c6ae);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  font-weight: 600;
  text-decoration: none;
  transition: filter 0.2s ease;
}

.footer-legal-line .ibnext-brand:hover {
  filter: brightness(1.2);
}

.powered-by {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 12px;
  padding: 16px 20px;
  flex: 0 0 auto;
}

.powered-by-label {
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: #aaa;
  font-weight: 700;
}

.powered-by-stack {
  display: flex;
  align-items: center;
  gap: 14px;
}

.tech-icon {
  color: #ddd;
  opacity: 1;
  transition: all 0.25s ease-out;
  width: 30px;
  height: 30px;
  flex-shrink: 0;
}

.tech-icon:hover {
  opacity: 1;
  color: #fff;
  transform: scale(1.2);
}

.tech-icon.openai-icon {
  filter: drop-shadow(0 0 4px rgba(255, 255, 255, 0.4));
}

.tech-icon.openai-icon:hover {
  filter: drop-shadow(0 0 4px rgba(255, 255, 255, 0.4));
}

.tech-icon.ib-icon {
  width: 30px;
  height: 30px;
  filter: brightness(1.8) drop-shadow(0 0 8px rgba(255, 255, 255, 0.7));
  object-fit: contain;
}

.tech-icon.ib-icon:hover {
  filter: brightness(1.8) drop-shadow(0 0 8px rgba(255, 255, 255, 0.7));
  transform: scale(1.2);
}

.tech-plus {
  font-size: 16px;
  font-weight: 600;
  color: #999;
  margin: 0 4px;
}

@media (max-width: 720px) {
  .footer-nav {
    gap: 24px;
  }

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

  .footer-brand {
    text-align: center;
  }

  .powered-by {
    align-items: center;
  }
}
