/* ==========================================================================
   MyLAT Standard Midnight Aurora Footer & Final Section
   (Exact Match with index.html Floating Reveal Scroll Effect & Color)
   ========================================================================== */

#final {
  min-height: min(calc(100svh - 64px), 640px);
  display: flex;
  flex-direction: column;
  align-items: center;
  position: relative;
  isolation: isolate;
  overflow: hidden;
  border-radius: 48px 48px 0 0;
  color: #fff;
  padding-bottom: calc(var(--ftr, 68px) + 32px);
  background:
    radial-gradient(55% 50% at 15% 10%, rgba(59, 130, 246, 0.38), transparent 62%),
    radial-gradient(50% 55% at 88% 22%, rgba(139, 92, 246, 0.32), transparent 62%),
    radial-gradient(60% 50% at 55% 105%, rgba(34, 211, 238, 0.22), transparent 65%),
    linear-gradient(180deg, #070d26 0%, #060b22 55%, #0a1236 100%);
  margin-top: clamp(60px, 8vw, 100px);
  width: 100%;
  box-sizing: border-box;
}

#final::before,
#final::after {
  content: "";
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  z-index: -1;
  width: 36vw;
  height: 36vw;
  pointer-events: none;
  animation: driftOrb 16s ease-in-out infinite alternate;
}

#final::before {
  background: rgba(59, 130, 246, 0.25);
  top: -10vw;
  left: -10vw;
}

#final::after {
  background: rgba(139, 92, 246, 0.25);
  bottom: -10vw;
  right: -10vw;
  animation-delay: -8s;
}

.fin-hairline {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, #60a5fa, transparent);
  z-index: 2;
}

@keyframes driftOrb {
  0% { transform: translate(0, 0) scale(1); }
  100% { transform: translate(10vw, 5vw) scale(1.15); }
}

.fin-dots {
  position: absolute;
  inset: 0;
  background-image: radial-gradient(rgba(255, 255, 255, 0.6) 1px, transparent 1.5px);
  background-size: 28px 28px;
  opacity: 0.07;
  z-index: -1;
  pointer-events: none;
  -webkit-mask: radial-gradient(ellipse at center, #000 30%, transparent 75%);
  mask: radial-gradient(ellipse at center, #000 30%, transparent 75%);
}

.fin-rings {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  width: 1000px;
  height: 1000px;
  z-index: -1;
  pointer-events: none;
  background:
    radial-gradient(circle, transparent 219px, rgba(255, 255, 255, 0.07) 220px, transparent 221px),
    radial-gradient(circle, transparent 359px, rgba(255, 255, 255, 0.07) 360px, transparent 361px),
    radial-gradient(circle, transparent 499px, rgba(255, 255, 255, 0.07) 500px, transparent 501px);
  -webkit-mask: radial-gradient(circle at center, #000 20%, transparent 60%);
  mask: radial-gradient(circle at center, #000 20%, transparent 60%);
}

.fin-content {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 20px;
  max-width: 600px;
  flex: 1;
  width: 100%;
  padding: 40px 20px;
  text-align: center;
  box-sizing: border-box;
}

#final h2 {
  margin: 0;
  font-family: Manrope, system-ui, sans-serif;
  font-size: clamp(28px, 3.4vw, 46px);
  line-height: 1.1;
  font-weight: 800;
  letter-spacing: -0.04em;
  color: #fff;
}

#final h2 span {
  background: linear-gradient(90deg, #8fb4ff, #67e8f9);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.fin-chips {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
}

.fin-chip {
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.18);
  padding: 6px 14px;
  border-radius: 99px;
  font-size: 13px;
  font-weight: 700;
  line-height: 1;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  color: #fff;
}

#final .btn, #final .btn.big {
  background: #fff;
  color: #1d4ed8;
  margin-top: 0;
  position: relative;
  box-shadow: 0 0 0 6px rgba(255, 255, 255, 0.08), 0 18px 50px rgba(59, 130, 246, 0.45);
  border-radius: 999px;
  padding: 14px 34px;
  font-weight: 800;
  font-size: 15px;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.2s, box-shadow 0.2s;
  box-sizing: border-box;
}

#final .btn::before, #final .btn.big::before {
  content: "";
  position: absolute;
  inset: -4px;
  border-radius: inherit;
  border: 2px solid rgba(255, 255, 255, 0.6);
  animation: pulse-ring 2s cubic-bezier(0.2, 0, 0.2, 1) infinite;
  z-index: -1;
}

#final .btn:hover::before, #final .btn.big:hover::before {
  animation: none;
  display: none;
}

@keyframes pulse-ring {
  0% { transform: scale(0.95); opacity: 1; }
  100% { transform: scale(1.15); opacity: 0; }
}

#final .btn:hover, #final .btn.big:hover {
  transform: translateY(-2px);
  box-shadow: 0 0 0 8px rgba(255, 255, 255, 0.12), 0 22px 60px rgba(59, 130, 246, 0.55);
}

/* ---------------- Floating Glassmorphic Footer (Index Style) ---------------- */

footer {
  position: fixed;
  left: 50%;
  bottom: max(16px, env(safe-area-inset-bottom));
  transform: translateX(-50%) translateY(24px);
  width: min(1250px, calc(100% - 32px));
  z-index: 55;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.45s, transform 0.45s cubic-bezier(0.16, 1, 0.3, 1), visibility 0.45s;
  box-sizing: border-box;
}

footer.show {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
  visibility: visible;
  pointer-events: auto;
}

.ftr-inner {
  border-radius: 32px;
  padding: 40px 48px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.14);
  -webkit-backdrop-filter: blur(18px) saturate(1.3);
  backdrop-filter: blur(18px) saturate(1.3);
  box-shadow: 0 20px 60px rgba(2, 6, 24, 0.5);
  color: rgba(255, 255, 255, 0.92);
  box-sizing: border-box;
}

@supports not (backdrop-filter: blur(18px)) {
  .ftr-inner {
    background: rgba(16, 24, 64, 0.85);
  }
}

.ftr-top {
  display: flex;
  justify-content: space-between;
  gap: 40px;
}

.ftr-brand {
  flex: 1;
  max-width: 340px;
}

.ftr-logo {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3px;
  margin-bottom: 20px;
  padding: 10px 16px;
  border: 1px solid rgba(198, 220, 255, 0.82);
  border-radius: 15px;
  background: linear-gradient(135deg, rgba(219, 234, 254, 0.97), rgba(199, 210, 254, 0.91));
  box-shadow: 0 10px 28px rgba(59, 130, 246, 0.2), inset 0 1px rgba(255, 255, 255, 0.72);
  text-decoration: none;
}

.ftr-logo img {
  display: block;
  width: 245px;
  height: 74px;
  max-width: 100%;
  object-fit: cover;
  object-position: top;
}

.ftr-tagline {
  display: block;
  width: 100%;
  color: #142c58;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 1px;
  line-height: 1.3;
  text-align: center;
  white-space: nowrap;
}

.ftr-desc {
  font-size: 15px;
  line-height: 1.55;
  color: rgba(245, 248, 255, 0.96);
  opacity: 1;
  margin: 0;
  white-space: normal;
}

.ftr-cols {
  display: flex;
  gap: 60px;
}

.ftr-col {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.ftr-col strong {
  font-size: 11px;
  letter-spacing: 1px;
  text-transform: uppercase;
  opacity: 0.65;
  margin-bottom: 4px;
  color: #fff;
  font-weight: 800;
}

.ftr-col a,
.ftr-out-links a,
.ftr-social a {
  color: rgba(255, 255, 255, 0.92);
  text-decoration: none;
  transition: all 0.2s;
}

.ftr-col a {
  font-size: 14px;
}

.ftr-col a:hover,
.ftr-out-links a:hover,
.ftr-social a:hover {
  color: #fff;
  text-decoration: underline;
  transform: translateX(2px);
}

.ftr-col a[aria-current="page"],
.ftr-out-links a[aria-current="page"] {
  color: #fff;
  font-weight: 500;
  text-decoration: none;
}

.ftr-col a:focus-visible,
.ftr-out-links a:focus-visible,
.ftr-social a:focus-visible {
  outline: 2px solid #fbbf24;
  outline-offset: 4px;
}

/* ---------------- Bottom Bar ---------------- */

.ftr-bot-out {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 24px 32px 0;
  font-size: 13px;
  color: rgba(255, 255, 255, 0.92);
  box-sizing: border-box;
}

.ftr-out-links,
.ftr-social {
  display: flex;
  gap: 20px;
  align-items: center;
}

.ftr-social a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.14);
  transition: all 0.25s ease;
}

.ftr-social a svg {
  width: 17px;
  height: 17px;
  fill: #fff;
  transition: transform 0.25s ease;
}

.ftr-social a:hover {
  background: rgba(255, 255, 255, 0.2);
  border-color: rgba(255, 255, 255, 0.35);
  transform: translateY(-2px);
}

.ftr-social a.in-link:hover svg { fill: #0a66c2; }
.ftr-social a.x-link:hover svg { fill: #ffffff; }
.ftr-social a.fb-link:hover svg { fill: #1877F2; }
.ftr-social a.ig-link:hover svg { fill: url(#ig-gradient); }

@media (prefers-reduced-motion: reduce) {
  #final::before, #final::after { animation: none; }
  #final .btn::before { animation: none; }
  .ftr-social a svg { transition: none; }
}

/* ---------------- Responsive Styles ---------------- */

/* Keep tablet and touch-first footers in flow; preserve reveal motion on laptops. */
@media (min-width: 768px) and (max-width: 1023.98px), (pointer: coarse) and (min-width: 768px) {
  #final, .band {
    min-height: 0 !important;
    padding-bottom: 24px !important;
  }

  #final footer, .band > footer, footer {
    position: relative !important;
    left: auto !important;
    right: auto !important;
    bottom: auto !important;
    transform: none !important;
    width: min(1250px, calc(100% - 24px)) !important;
    max-width: 1250px !important;
    margin-inline: auto !important;
    opacity: 1 !important;
    visibility: visible !important;
    pointer-events: auto !important;
    z-index: 2 !important;
  }
}

@media (max-width: 820px) {
  #final {
    padding-bottom: 0;
    min-height: auto;
  }

  footer {
    position: relative;
    left: auto;
    bottom: auto;
    transform: none !important;
    width: calc(100% - 24px);
    margin: 0 auto 12px;
    opacity: 1 !important;
    visibility: visible !important;
    pointer-events: auto !important;
  }

  .ftr-inner {
    padding: 32px 24px;
  }

  .ftr-top {
    flex-direction: column;
    gap: 32px;
  }

  .ftr-brand {
    max-width: 100%;
  }

  .ftr-cols {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
  }

  .ftr-col a {
    padding: 10px 0;
  }

  .ftr-bot-out {
    flex-direction: column;
    gap: 16px;
    padding: 16px 12px 0;
    text-align: center;
  }

  .ftr-out-links,
  .ftr-social {
    justify-content: center;
  }
}

@media (max-width: 600px) {
  #final {
    border-radius: 36px 36px 0 0;
  }

  .ftr-inner {
    padding: 24px 18px;
    border-radius: 24px;
  }

  .ftr-cols {
    grid-template-columns: 1fr 1fr;
    gap: 18px 12px;
  }

  .ftr-logo img {
    width: 200px;
    height: 60px;
  }
}
