@import "variables";

.soflex-footer {
  position: relative;
  overflow: hidden;
  color: $sf-text;
  background:
    radial-gradient(circle at top right, rgba(57, 181, 74, 0.14), transparent 28%),
    radial-gradient(circle at top left, rgba(83, 170, 255, 0.10), transparent 22%),
    linear-gradient(180deg, $sf-deep-1 0%, $sf-deep-2 100%);

  &__top-wave {
    height: 86px;
    opacity: 0.9;
    background:
      radial-gradient(circle at 80% 100%, rgba(88, 224, 127, 0.22), transparent 22%),
      linear-gradient(180deg, rgba(255, 255, 255, 0.04), rgba(255, 255, 255, 0));
    mask-image: linear-gradient(to bottom, black 0%, transparent 100%);
  }

  .container {
    padding-top: 24px;
    padding-bottom: 28px;
  }

  &__logo {
    display: inline-block;

    img {
      display: block;
      width: 180px;
      height: auto;
    }
  }

  &__tagline {
    max-width: 280px;
    margin: 18px 0 0;
    font-size: 16px;
    color: $sf-text-soft;
  }

  &__brand-links,
  &__col ul,
  &__contact-list {
    margin: 22px 0 0;
    padding: 0;
    list-style: none;
  }

  &__brand-links {
    li {
      margin-bottom: 12px;
      font-size: 14px;
    }

    a {
      color: rgba(255, 255, 255, 0.88);
      text-decoration: none;
      transition: color 0.2s ease;

      &:hover {
        color: $sf-white;
      }
    }
  }

  &__col {
    h3 {
      margin: 0;
      font-size: 20px;
      line-height: 1.3;
      font-weight: 700;
      letter-spacing: -0.01em;
      color: $sf-white;
    }

    ul {
      li {
        margin-bottom: 12px;
        font-size: 14px;
        line-height: 1.6;
        color: rgba(255, 255, 255, 0.84);
      }

      a {
        color: rgba(255, 255, 255, 0.88);
        text-decoration: none;
        transition: color 0.2s ease;

        &:hover {
          color: $sf-white;
        }
      }
    }
  }

  &__contact-list {
    li {
      display: flex;
      gap: 10px;
      align-items: flex-start;
      margin-bottom: 14px;
      font-size: 14px;
      color: rgba(255, 255, 255, 0.84);
    }

    .icon {
      width: 20px;
      flex: 0 0 auto;
      display: inline-flex;
      justify-content: center;
      opacity: 0.9;
    }

    a {
      color: rgba(255, 255, 255, 0.88);
      text-decoration: none;

      &:hover {
        color: $sf-white;
      }
    }
  }

  &__cta {
    h3 {
      margin: 0;
      font-size: 20px;
      line-height: 1.3;
      font-weight: 700;
      letter-spacing: -0.01em;
      color: $sf-white;
    }

    p {
      max-width: 300px;
      margin: 14px 0 0;
      font-size: 14px;
      color: $sf-text-soft;
    }
  }

  &__demo-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 220px;
    height: 50px;
    margin-top: 22px;
    padding: 0 24px;
    border-radius: 999px;
    text-decoration: none;
    font-size: 16px;
    font-weight: 700;
    color: $sf-white;
    background: linear-gradient(135deg, #4fd45d, $sf-green-dark);
    box-shadow: 0 12px 24px rgba(57, 181, 74, 0.22);
    transition: transform 0.2s ease, box-shadow 0.2s ease;

    &:hover {
      transform: translateY(-1px);
      box-shadow: 0 16px 28px rgba(57, 181, 74, 0.28);
    }
  }

  &__download {
    margin-top: 28px;

    h4 {
      margin: 0 0 14px;
      font-size: 15px;
      line-height: 1.5;
      font-weight: 700;
      color: rgba(255, 255, 255, 0.9);
    }
  }

  &__download-list {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
  }

  .download-pill {
    height: 44px;
    padding: 0 14px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    text-decoration: none;
    font-size: 14px;
    font-weight: 600;
    color: $sf-white;
    background: $sf-pill-bg;
    border: 1px solid $sf-pill-border;
    backdrop-filter: blur(8px);
    transition: background 0.2s ease, transform 0.2s ease;

    &:hover {
      background: rgba(255, 255, 255, 0.18);
      transform: translateY(-1px);
    }
  }

  &__socials {
    display: flex;
    gap: 10px;
    margin-top: 20px;

    a {
      width: 38px;
      height: 38px;
      display: inline-flex;
      align-items: center;
      justify-content: center;
      border-radius: 999px;
      text-decoration: none;
      color: $sf-white;
      background: rgba(255, 255, 255, 0.10);
      border: 1px solid rgba(255, 255, 255, 0.12);
      transition: background 0.2s ease, transform 0.2s ease;

      &:hover {
        background: rgba(255, 255, 255, 0.16);
        transform: translateY(-1px);
      }
    }
  }

  &__bottom {
    padding-top: 18px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    border-top: 1px solid $sf-border;

    p {
      margin: 0;
      font-size: 13px;
      line-height: 1.7;
      color: $sf-text-muted;
    }
  }

  .mt-28 {
    margin-top: 28px !important;
  }

  @media (max-width: 1100px) {
    &__grid {
      grid-template-columns: repeat(2, minmax(0, 1fr));
      gap: 32px 28px;
    }
  }

  @media (max-width: 767px) {
    &__top-wave {
      height: 56px;
    }

    .container {
      padding-top: 32px;
      padding-bottom: 22px;
    }

    &__grid {
      grid-template-columns: 1fr;
      gap: 28px;
    }

    &__logo {
      img {
        width: 156px;
      }
    }

    &__tagline,
    &__cta p {
      max-width: none;
    }

    &__demo-btn {
      width: 100%;
      min-width: 0;
    }

    &__download-list {
      grid-template-columns: 1fr;
    }
  }
}