/* =========================
   FOOTER
========================= */

.footer {
  isolation: isolate;
  position: relative;
  padding: 140px 0 24px;
  background: radial-gradient(circle at top right, rgba(255, 255, 255, 0.06), transparent 30%), #050505;
  overflow: hidden;
}

/* textura */
.footer::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: radial-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px);
  background-size: 18px 18px;
  opacity: 0.18;
  pointer-events: none;
}

/* glow */
.footer::after {
  content: '';
  position: absolute;
  width: 1000px;
  height: 1000px;
  right: -250px;
  top: -250px;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.03), transparent 70%);
  filter: blur(100px);
  pointer-events: none;
}

/* =========================
   GRID
========================= */

.footer-grid {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  padding: 0 32px;
}

/* =========================
   TOP
========================= */

.footer-intro {
  display: flex;
  align-items: flex-start;
  gap: 28px;
}

.footer-dot {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: white;
  margin-top: 18px;
  flex-shrink: 0;
}

.footer-intro-text {
  display: flex;
  flex-direction: column;
}

.footer-intro-highlight {
  font-size: 36px;
  line-height: 0.95;
  letter-spacing: -0.08em;
  color: white;
}

.footer-intro-sub {
  font-size: 32px;
  line-height: 1.02;
  letter-spacing: -0.08em;
  color: rgba(255, 255, 255, 0.38);
  max-width: 650px;
}

/* =========================
   HERO
========================= */

.footer-hero {
  margin-top: 80px;
  margin-bottom: 10px;
  display: flex;
  justify-content: flex-end;
}

.footer-title-wrap {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  width: fit-content;
  margin-left: auto;
}

.footer-title {
  font-size: clamp(3rem, 8vw, 8rem);
  line-height: 0.8;
  letter-spacing: -0.09em;
  font-weight: 900;
  text-align: right;
  margin: 0;
}

.footer-bottom-line {
  display: flex;
  justify-content: flex-end;
  align-items: flex-end;
  gap: 26px;
  margin-top: 0;
}

.footer-life {
  display: block;
  font-size: clamp(3rem, 8vw, 8rem);
  line-height: 0.8;
  letter-spacing: -0.09em;
  font-weight: 900;
}

.footer-cta {
  height: 82px;
  padding: 0 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(20px);
  font-size: 18px;
  font-weight: 500;
  color: white;
  text-decoration: none;
  white-space: nowrap;
}

.footer-cta:hover {
  background: rgba(255, 255, 255, 0.05);
  border-color: rgba(255, 255, 255, 0.18);
  transform: translateX(-3px);
}

/* =========================
   BOTTOM
========================= */

.footer-bottom {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr 180px;
  margin-top: 10px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.footer-col {
  padding: 26px 44px;
  min-height: 90px;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
}

.footer-col-content {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-top: auto;
}

.footer-col-content p {
  margin: 0;
}

.footer-label {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: rgba(255, 255, 255, 0.32);
  margin-bottom: 18px;
}

.footer-col a,
.footer-col p {
  color: rgba(255, 255, 255, 0.82);
  text-decoration: none;
  line-height: 1.45;
  font-size: 16px;
}

.footer-col a:hover {
  color: white;
}

.footer-social-links {
  display: flex;
  gap: 24px;
  flex-wrap: wrap;
}

.footer-social-icon {
  opacity: 0.72;
  transition:
    opacity 0.3s ease,
    transform 0.3s ease;
}

.footer-social-links a:hover .footer-social-icon {
  opacity: 1;
  transform: translateY(-2px);
}

/* =========================
   BACK TO TOP
========================= */

.footer-back-top {
  display: flex;
  align-items: center;
  justify-content: center;
  border-left: 1px solid rgba(255, 255, 255, 0.08);
  min-height: 220px;
}

.footer-top-btn {
  width: 86px;
  height: 86px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.01);
  backdrop-filter: blur(14px);
  cursor: pointer;
  transition:
    transform 0.35s ease,
    background 0.35s ease,
    border-color 0.35s ease;
}

.footer-top-btn span {
  display: inline-block;
  color: white;
  font-size: 32px;
  font-weight: 200;
  transform: rotate(-90deg);
}

.footer-top-btn:hover {
  background: rgba(255, 255, 255, 0.04);
  border-color: rgba(255, 255, 255, 0.16);
  transform: translateY(-4px);
}

/* =========================
   COPYRIGHT
========================= */

.footer-copy {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 18px;
  padding-bottom: 8px;
  color: rgba(255, 255, 255, 0.32);
  font-size: 15px;
  min-height: 20px;
}

/* =========================
   MOBILE
========================= */

@media (max-width: 900px) {
  .footer-hero {
    margin-top: 56px;
    align-items: flex-start;
    justify-content: flex-start;
  }

  .footer-title-wrap {
    width: 100%;
    margin-left: 0;
    align-items: flex-start;
  }

  .footer-title {
    text-align: left;
    font-size: clamp(3.2rem, 18vw, 6rem);
    line-height: 0.82;
  }

  .footer-bottom-line {
    flex-direction: column-reverse;
    align-items: flex-start;
    gap: 0;
    margin-top: 10px;
  }

  .footer-life {
    font-size: clamp(3.2rem, 18vw, 6rem);
    line-height: 0.68;
  }

  .footer-cta {
    width: auto;
    height: 62px;
    padding: 0 28px;
    margin-top: 20px;
  }

  .footer-bottom {
    grid-template-columns: 1fr;
  }

  .footer-col {
    padding: 22px 0;
    min-height: auto;
  }

  .footer-col-content {
    gap: 6px;
    margin-top: 10px;
  }

  .footer-social-links {
    gap: 18px;
  }

  .footer-back-top {
    min-height: auto;
    border-left: none;
    border-top: none;
    justify-content: flex-end;
    padding: 10px 0 10px;
  }

  .footer-top-btn {
    width: 72px;
    height: 72px;
  }

  .footer-copy {
    margin-top: 18px;
    padding-top: 18px;
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
  }

  .footer-intro {
    gap: 16px;
  }

  .footer-intro-highlight {
    font-size: 24px;
    line-height: 1;
    white-space: nowrap;
  }

  .footer-intro-sub {
    font-size: 24px;
    line-height: 0.95;
    max-width: 350px;
  }

  .footer-label {
    margin-bottom: 8px;
  }

  .footer-col-content {
    gap: 4px;
    margin-top: 0;
  }
}
