/* ==========================================================================
   Footer — Million AI
   Matches Figma: Footer (desktop, 1920px frame) + Footer-Mobile (393px frame)
   ========================================================================== */

   .footer {
    /* design tokens (Figma) */
    --footer-bg: #0C0F14;
    --neutral-50: #F4F6FA;
    --neutral-600: #7288A4;
    --primary-600: #D96E22;
  
    background: var(--footer-bg);
    color: var(--neutral-50);
    font-family: 'Poppins', sans-serif;
    display: flex;
    flex-direction: column;
    align-items: center;
    overflow: hidden;
  
    /* Desktop: padding 80px 0 40px, gap 40px (outer frame) */
    padding: 80px 0 40px;
    gap: 40px;
  }
  
  /* --------------------------------------------------------------------
     Top section: brand + nav columns
     -------------------------------------------------------------------- */
  
  .footer__top {
    width: 100%;
    max-width: 1680px;
    margin: 0 auto;
    padding: 0 120px;
    box-sizing: border-box;
  
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: flex-start;
    gap: 100px;
  
    /* space before the wordmark below (desktop: 113px) */
    margin-bottom: 113px;
  }
  
  /* Dotted grid mark — desktop hides it; mobile shows it (space-between vs icons) */
  .footer__mark {
    display: none;
    flex: none;
    width: 20px;
    height: 20px;
  }
  
  .footer__social-icons {
    display: flex;
    align-items: center;
    gap: 27px;
  }
  
  /* Brand block (tagline + socials) */
  
  .footer__brand {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 60px;
    max-width: 274px;
  }
  
  .footer__tagline {
    margin: 0;
    font-weight: 500;
    font-size: 24px;
    line-height: 1.2; /* 120% → 29px */
    color: var(--neutral-50);
  }
  
  .footer__socials {
    display: flex;
    align-items: center;
    gap: 27px;
  }
  
  .footer__social {
    display: flex;
    width: 24px;
    height: 24px;
    line-height: 0;
  }
  
  .footer__social img {
    display: block;
    width: 100%;
    height: 100%;
  }
  
  /* X (Twitter) ships with no built-in dim state, so it's dimmed here to
     match Instagram's self-contained opacity:0.2 and LinkedIn's solid look */
  .footer__social--dim img {
    opacity: 0.2;
    transition: opacity 0.2s ease;
  }
  
  .footer__social--dim:hover img,
  .footer__social--dim:focus-visible img {
    opacity: 1;
  }
  
  /* Nav columns (Product / Resources / Company) */
  
  .footer__nav {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-start;
    gap: 80px;
  }
  
  .footer__col {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 15px;
    min-width: 88px;
  }
  
  .footer__col-title {
    margin: 0;
    font-weight: 700;
    font-size: 16px;
    line-height: 1.5; /* 24px */
    color: var(--neutral-50);
  }
  
  .footer__links {
    margin: 0;
    padding: 0;
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 11px;
  }
  
  .footer__links a,
  .footer__links a:visited,
  .footer__links a:link {
    font-weight: 400;
    font-size: 16px;
    line-height: 1.5; /* 24px */
    color: var(--neutral-50);
    text-decoration: none;
    white-space: nowrap;
    transition: color 0.2s ease;
  }
  
  .footer__links a:hover,
  .footer__links a:focus-visible {
    color: var(--primary-600);
  }
  
  /* --------------------------------------------------------------------
     Decorative wordmark — oversized, bleeds off both edges
     -------------------------------------------------------------------- */
  
  .footer__wordmark {
    width: 100%;
    line-height: 0;
  }
  
  .footer__wordmark img {
    display: block;
    width: 100%;
    height: auto;
  }
  
  /* --------------------------------------------------------------------
     Bottom bar: copyright + legal links
     -------------------------------------------------------------------- */
  
  .footer__bottom {
    width: 100%;
    max-width: 1680px;
    margin: 0 auto;
    padding: 0 120px;
    box-sizing: border-box;
  
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
  }
  
  .footer__copyright {
    margin: 0;
    font-weight: 400;
    font-size: 14px;
    line-height: 1.43; /* 20px */
    letter-spacing: -0.15px;
    color: var(--neutral-600);
    white-space: nowrap;
    flex-shrink: 0;
  }
  
  .footer__legal {
    display: flex;
    align-items: center;
    gap: 24px;
    flex-shrink: 0;
  }
  
  .footer__legal a,
  .footer__legal a:visited,
  .footer__legal a:link {
    font-weight: 400;
    font-size: 14px;
    line-height: 1.43; /* 20px */
    letter-spacing: -0.15px;
    color: var(--neutral-600);
    white-space: nowrap;
    text-decoration: none;
    transition: color 0.2s ease;
  }
  
  .footer__legal a:hover,
  .footer__legal a:focus-visible {
    color: var(--neutral-50);
  }
  
  /* --------------------------------------------------------------------
     Responsive — tablet
     -------------------------------------------------------------------- */
  
  @media (max-width: 900px) {
    .footer__top {
      padding: 0 48px;
      flex-direction: column;
      align-items: flex-start;
      gap: 48px;
      margin-bottom: 64px;
    }
  
    .footer__nav {
      width: 100%;
      justify-content: space-between;
      gap: 32px;
    }
  
    .footer__bottom {
      padding: 0 48px;
    }
  }
  
  /* --------------------------------------------------------------------
     Responsive — mobile (Figma: 393px frame)
     Outer: padding 40px 20px, gap 40px
     -------------------------------------------------------------------- */
  
  @media (max-width: 560px) {
    .footer {
      padding: 40px 20px;
      gap: 40px;
    }
  
    /* .footer__top becomes the column wrapper for everything:
       order 1: mark + socials row (space-between)
       order 2: tagline
       order 3: nav row */
    .footer__top {
      padding: 0;
      margin-bottom: 0;
      gap: 40px;
      flex-direction: column;
      align-items: stretch;
    }
  
    .footer__mark {
      display: block;
    }
  
    /* .footer__brand holds tagline + socials; on mobile we split it:
       socials move up next to the mark via flex order on a shared row.
       Achieved by making .footer__top a flex container where __mark and
       __brand's social row share row 1 via negative margin trick avoided —
       instead, restructure __brand itself into two ordered children. */
    .footer__brand {
      order: 2;
      display: flex;
      flex-direction: column;
      gap: 40px;
      max-width: none;
      width: 100%;
    }
  
    .footer__socials {
      order: -1; /* render socials above tagline within __brand */
      width: 100%;
      justify-content: space-between;
    }
  
    /* tagline per Figma mobile: H2-3-Phone, 20px/24px, weight 600, -0.383px */
    .footer__tagline {
      font-weight: 600;
      font-size: 20px;
      line-height: 1.2; /* 24px */
      letter-spacing: -0.383px;
      max-width: 218px;
    }
  
    .footer__nav {
      order: 3;
      width: 100%;
      justify-content: space-between;
      gap: 16px;
      flex-wrap: nowrap;
    }
  
    .footer__col {
      gap: 15px;
      min-width: 0;
    }
  
    .footer__col-title {
      font-size: 10px;
      line-height: 1.2; /* 12px */
    }
  
    .footer__links {
      gap: 11px;
    }
  
    .footer__links a,
    .footer__links a:visited,
    .footer__links a:link {
      font-size: 10px;
      line-height: 1.2; /* 12px */
    }
  
    .footer__bottom {
      padding: 0;
      flex-wrap: nowrap;
      flex-direction: row;
      justify-content: space-between;
      align-items: center;
      gap: 12px;
    }
  
    .footer__copyright {
      font-size: 10px;
      line-height: 1.2; /* 12px */
      letter-spacing: normal;
    }
  
    .footer__legal {
      gap: 12px;
    }
  
    .footer__legal a,
    .footer__legal a:visited,
    .footer__legal a:link {
      font-size: 10px;
      line-height: 1.2; /* 12px */
      letter-spacing: normal;
    }
  }