/* footer.css — LinckDev */

.footer {
  position: relative;
  z-index: 5;
  border-top: 1px solid rgba(255,255,255,0.07);
  background: #12121A;
}

.footer-inner {
  max-width: 900px;
  margin: 0 auto;
  padding: 56px clamp(24px,5vw,48px) 48px;
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1fr;
  gap: 40px;
  align-items: start;
}

/* ── Logo — idêntica ao header ── */
.footer-brand { display: flex; flex-direction: column; }

.footer-logo {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 20px;
  text-decoration: none;
  width: fit-content;
  cursor: pointer;
  user-select: none;
}
.footer-logo svg { overflow: visible; flex-shrink: 0; }

.fl-wm {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

/* LinckDev wordmark — gradiente com fallback sólido */
.fl-name {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 20px;
  font-weight: 700;
  letter-spacing: -0.5px;
  line-height: 1;
  display: block;
  color: #FF6B35;
  background: linear-gradient(110deg, #FF6B35 0%, #9D5FF5 40%, #FF6B35 80%);
  background-size: 200% auto;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* Fallback: se background-clip falhar, garante visibilidade */
@supports not (-webkit-background-clip: text) {
  .fl-name { color: #FF6B35; background: none; }
}

.fl-tagline {
  font-family: 'JetBrains Mono', monospace;
  font-size: 9px;
  letter-spacing: 4px;
  color: #7A788F;
  text-transform: uppercase;
  display: block;
  padding-left: 2px;
}

/* SVG elements — sempre visíveis */
.fl-border { opacity: 1; }
.fl-ln     { opacity: 1; stroke-dashoffset: 0; }
.fl-node   { opacity: 1; transform-box: fill-box; transform-origin: center; }

/* Hover pulse nos nós */
@keyframes fl-hPulse  { 0%,100%{transform:scale(1);opacity:1} 50%{transform:scale(1.45);opacity:.75} }
@keyframes fl-hPulseC { 0%,100%{transform:scale(1)} 50%{transform:scale(1.6)} }
@keyframes fl-snake   { from{stroke-dashoffset:30} to{stroke-dashoffset:0} }
@keyframes fl-shimmer { 0%{background-position:200% center} 100%{background-position:0% center} }

.footer-logo:hover .fl-l   { animation: fl-hPulse  1.8s ease-in-out infinite 0.00s; }
.footer-logo:hover .fl-i   { animation: fl-hPulse  1.8s ease-in-out infinite 0.45s; }
.footer-logo:hover .fl-n   { animation: fl-hPulse  1.8s ease-in-out infinite 0.90s; }
.footer-logo:hover .fl-c   { animation: fl-hPulse  1.8s ease-in-out infinite 1.35s; }
.footer-logo:hover .fl-ctr { animation: fl-hPulseC 1.8s ease-in-out infinite; }
.footer-logo:hover .fl-ln  { stroke-dasharray:10 20; animation: fl-snake 1.2s linear infinite; }
.footer-logo:hover .fl-name {
  background-size: 400% auto;
  animation: fl-shimmer 1.5s linear infinite;
}

/* ── Descrição e iniciais ── */
.footer-desc {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  letter-spacing: 2.5px;
  color: #7A788F;
  text-transform: uppercase;
  margin-bottom: 12px;
  line-height: 1.6;
}

.footer-linc {
  font-family: 'JetBrains Mono', monospace;
  font-size: 13px;
  color: #4E4C62;
  letter-spacing: 0.5px;
  line-height: 1.8;
}
/* Letras iniciais em destaque — fallback sólido + gradiente */
.footer-linc span {
  font-size: 15px;
  font-weight: 700;
  color: #FF6B35;
  background: linear-gradient(110deg, #FF6B35 0%, #9D5FF5 60%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
@supports not (-webkit-background-clip: text) {
  .footer-linc span { color: #FF6B35; background: none; }
}

/* ── Colunas ── */
.footer-links { display: contents; }

.footer-col { display: flex; flex-direction: column; gap: 10px; }

.footer-col h4 {
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px;
  letter-spacing: 2px;
  color: #7A788F;
  text-transform: uppercase;
  margin-bottom: 6px;
  padding-bottom: 8px;
  border-bottom: 1px solid rgba(255,255,255,0.07);
}

.footer-col a {
  font-size: 14px;
  color: #4E4C62;
  text-decoration: none;
  transition: color .2s, transform .2s;
  line-height: 1.4;
  display: inline-block;
}
.footer-col a:hover { color: #F0EEF8; transform: translateX(3px); }

/* ── Bottom bar ── */
.footer-bottom {
  max-width: 900px;
  margin: 0 auto;
  padding: 18px clamp(24px,5vw,48px);
  border-top: 1px solid rgba(255,255,255,0.07);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.footer-bottom p      { font-size: 13px; color: #4E4C62; }
.footer-mono          { font-family: 'JetBrains Mono', monospace !important; font-size: 11px !important; letter-spacing: 2px; text-transform: uppercase; }

/* ── Responsive ── */
@media (max-width: 860px) {
  .footer-inner { grid-template-columns: 1fr 1fr; gap: 32px; }
  .footer-brand { grid-column: span 2; }
}
@media (max-width: 500px) {
  .footer-inner  { grid-template-columns: 1fr; padding: 40px 24px 32px; }
  .footer-brand  { grid-column: span 1; }
  .footer-bottom { flex-direction: column; text-align: center; padding: 16px 24px; }
}
@media (prefers-reduced-motion: reduce) {
  .footer-logo:hover .fl-l, .footer-logo:hover .fl-i,
  .footer-logo:hover .fl-n, .footer-logo:hover .fl-c,
  .footer-logo:hover .fl-ctr, .footer-logo:hover .fl-ln,
  .footer-logo:hover .fl-name { animation: none !important; }
}

/* ── Mobile extras ── */
@media (max-width: 640px) {
  .footer-inner {
    grid-template-columns: 1fr 1fr;
    gap: 28px;
    padding-top: 40px;
    padding-bottom: 28px;
  }
  .footer-brand { grid-column: span 2; }
  .fl-name { font-size: 18px; }
}
@media (max-width: 400px) {
  .footer-inner { grid-template-columns: 1fr; padding: 32px 20px 24px; }
  .footer-brand { grid-column: span 1; }
  .footer-col h4 { font-size: 9px; }
  .footer-col a  { font-size: 13px; }
  .footer-bottom { flex-direction: column; text-align: center; padding: 14px 20px; gap: 6px; }
  .footer-bottom p { font-size: 11px; }
}
