/* ==================================================================
   12 — Footer: red light slats, link columns, newsletter
   Everything is scoped under #footer / .ft-*
=================================================================== */
#footer {
  position: relative;
  padding-top: clamp(100px, 20vw, 200px);
  overflow: hidden;
  background: var(--bg);
}

/* ---- background art (own SVG light slats) ---- */
#footer .ft-art {
  position: absolute;
  top: 0;
  left: 50%;
  width: 1440px;
  height: 640px;
  transform: translateX(-50%);
  pointer-events: none;
  z-index: 0;
}
#footer .ft-art-svg { width: 100%; height: 100%; max-width: none; }
#footer .ft-slats { opacity: 0.5; }
#footer .ft-glow { opacity: 0.7; }
#footer .ft-slat-edge { stroke-width: 1; fill: none; }
#footer.is-live .ft-glow { animation: ft-breathe 7s ease-in-out infinite; }
@keyframes ft-breathe {
  0%, 100% { opacity: 0.7; }
  50% { opacity: 0.82; }
}

/* ---- glass content panel ---- */
#footer .ft-content {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--s-10);
  padding-bottom: 16px;
  border-top: 1px solid var(--grey-600);
  background:
    radial-gradient(49% 64% at 49.4% 0, rgba(255, 255, 255, 0.03) 0%, rgba(255, 255, 255, 0) 100%),
    linear-gradient(180deg, rgba(7, 8, 10, 0.8) 0.1%, var(--bg) 32.5%);
  -webkit-backdrop-filter: blur(20px);
  backdrop-filter: blur(20px);
  box-shadow: 0 -4px 10px rgba(0, 0, 0, 0.11);
}

/* ---- link columns ---- */
#footer .ft-links {
  width: 100%;
  max-width: 1064px;
  padding-top: var(--s-10);
  padding-left: var(--s-3);
  display: grid;
  grid-template-columns: repeat(6, minmax(144px, 1fr));
  gap: var(--s-4);
}
#footer .ft-group { display: flex; flex-direction: column; gap: var(--s-5); }
#footer .ft-head {
  color: var(--white);
  font-size: 14px;
  font-weight: 500;
  line-height: 1.6;
  letter-spacing: 0.2px;
}
#footer .ft-list { display: flex; flex-direction: column; gap: var(--s-2-5); }
#footer .ft-link {
  align-self: flex-start;
  display: inline-flex;
  align-items: center;
  gap: var(--s-1);
  color: var(--grey-200);
  font-size: 14px;
  font-weight: 500;
  line-height: normal;
  letter-spacing: 0.2px;
  transition: color 0.3s;
}
#footer .ft-link:hover { color: var(--white); }
#footer .ft-ext {
  width: 10px;
  height: 10px;
  flex: none;
  color: var(--grey-300);
  transition: transform 0.3s, color 0.3s;
}
#footer .ft-link:hover .ft-ext { transform: translate(1px, -1px); color: var(--grey-200); }

/* ---- newsletter ---- */
#footer .ft-newsletter {
  width: 100%;
  max-width: 1064px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: var(--s-3);
  padding: var(--s-6) var(--s-3) var(--s-3);
  border-top: 1px solid var(--grey-600);
  color: var(--grey-200);
  font-size: 14px;
  font-weight: 500;
  line-height: 1.6;
  letter-spacing: 0.2px;
}
#footer .ft-text { max-width: 260px; }
#footer .ft-text h5 {
  margin: 0;
  color: var(--white);
  font-size: 14px;
  font-weight: 500;
  line-height: 1.6;
}
#footer .ft-form-wrap { width: 100%; max-width: 430px; }
#footer .ft-form {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: var(--s-2);
  color: rgba(255, 255, 255, 0.4);
}
#footer .ft-input-wrap { position: relative; }
#footer .ft-input {
  width: 100%;
  height: 42px;
  padding: var(--s-1) var(--s-1-5);
  border-radius: var(--r-md);
  border: 1px solid rgba(255, 255, 255, 0.05);
  background: rgba(255, 255, 255, 0.05);
  color: var(--white);
  font: inherit;
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.2px;
  outline: none;
  transition: border-color 0.3s, color 0.3s;
}
#footer .ft-input::placeholder { color: var(--grey-300); }
#footer .ft-input:hover { border-color: rgba(255, 255, 255, 0.25); }
#footer .ft-input:focus { border-color: rgba(255, 255, 255, 0.4); }
#footer .ft-input:disabled { color: var(--grey-300); cursor: not-allowed; }
#footer .ft-form.is-error .ft-input { border-color: #833637; animation: ft-shake 0.4s; }
@keyframes ft-shake {
  0%, 100% { transform: translateX(0); }
  25% { transform: translateX(-4px); }
  50% { transform: translateX(4px); }
  75% { transform: translateX(-2px); }
}

#footer .ft-submit-wrap { position: relative; z-index: 1; }
#footer .ft-submit {
  position: relative;
  z-index: 2;
  width: 100%;
  height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: var(--s-1) var(--s-1-5);
  border-radius: var(--r-md);
  border: 1px solid rgba(255, 255, 255, 0.05);
  background: rgba(255, 255, 255, 0.9);
  color: #111214;
  font-size: 14px;
  font-weight: 500;
  line-height: 20px;
  letter-spacing: 0.2px;
  opacity: 0.9;
  transition: background-color 0.3s ease-in-out, color 0.3s ease-in-out, transform 0.1s ease-in-out;
}
#footer .ft-submit:hover:not(:disabled),
#footer .ft-submit:focus-visible { background: #fff; outline: 0; }
#footer .ft-submit:active:not(:disabled) { transform: scale(0.98); }
#footer .ft-submit:disabled { color: rgba(17, 18, 20, 0.45); cursor: default; }
#footer .ft-submit-glow {
  position: absolute;
  left: 0;
  right: 0;
  top: 12%;
  height: 75%;
  z-index: 0;
  border-radius: 6px;
  background: conic-gradient(from 140deg, #1c8cff, #ff3048 30%, #a55bff 55%, #1c8cff 80%, #ff3048);
  filter: blur(28px);
  opacity: 0;
  transition: opacity 0.3s ease-in-out;
  pointer-events: none;
}
#footer .ft-submit:hover:not(:disabled) + .ft-submit-glow,
#footer .ft-submit:focus-visible:not(:disabled) + .ft-submit-glow { opacity: 0.8; }

#footer .ft-msg {
  grid-column: span 2;
  margin: -6px 0 0;
  min-height: 0;
  font-size: 12px;
  font-weight: 500;
  line-height: 14px;
  letter-spacing: 0.2px;
}
#footer .ft-msg:empty { display: none; }
#footer .ft-msg.is-ok { color: var(--green); }
#footer .ft-msg.is-err { color: var(--red); font-family: var(--mono-geist); }
#footer .ft-fine a { color: inherit; transition: color 0.3s; }
#footer .ft-fine a:hover { color: var(--grey-100); }
#footer .ft-fine {
  grid-column: span 2;
  font-size: 12px;
  font-weight: 400;
  line-height: 18px;
  letter-spacing: 0.4px;
}

/* ---- bottom line ---- */
#footer .ft-bottom {
  width: 100%;
  max-width: 1064px;
  margin-top: calc(var(--s-10) * -1 + var(--s-4));
  padding: 0 var(--s-3);
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--grey-300);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.2px;
}
#footer .ft-logo { width: 16px; height: 16px; flex: none; }

@media (prefers-reduced-motion: reduce) {
  #footer .ft-glow { animation: none !important; }
  #footer .ft-form.is-error .ft-input { animation: none; }
}

/* ---- tablet / phone ---- */
@media (max-width: 1099px) {
  #footer .ft-links { grid-template-columns: repeat(3, minmax(0, 1fr)); row-gap: var(--s-7); padding-right: var(--s-3); }
}
@media (max-width: 719px) {
  #footer .ft-art { width: 1000px; height: 460px; }
  #footer .ft-links { grid-template-columns: repeat(2, minmax(0, 1fr)); padding-top: var(--s-8); }
  #footer .ft-content { gap: var(--s-8); }
  #footer .ft-newsletter { flex-direction: column; align-items: stretch; }
  #footer .ft-text { max-width: none; }
  #footer .ft-form-wrap { max-width: none; }
  #footer .ft-bottom { margin-top: calc(var(--s-8) * -1 + var(--s-3)); }
}
@media (max-width: 480px) {
  #footer .ft-form { grid-template-columns: 1fr; }
  #footer .ft-msg, #footer .ft-fine { grid-column: auto; }
  #footer .ft-input, #footer .ft-submit { font-size: 16px; }
}
