/* ==========================================================================
   New Home Page Hero Section
   ========================================================================== */

/* Main Section Wrapper */
.papertrail_homepage_hero {
  position: relative;
  display: flex;
  width: 100%;
  padding: 64px 24px;
  flex-direction: column;
  align-items: center;
  gap: 24px;
  background: #0b1120;

  /* Decorative Glows (::before and ::after) */
  &:before {
    content: "";
    width: 600px;
    height: 600px;
    position: absolute;
    top: 0;
    right: 0;
    background: #155dfc33;
    filter: blur(120px);
    pointer-events: none;
    z-index: 1;
  }
  &:after {
    content: "";
    width: 600px;
    height: 600px;
    position: absolute;
    bottom: 0;
    left: 0;
    background: #4f39f61a;
    filter: blur(120px);
    pointer-events: none;
    z-index: 1;
  }

  /* Top Content Container */
  .container {
    display: flex;
    flex: 1;
    max-width: 1024px;
    flex-direction: column;
    align-items: center;
    gap: 24px;
    align-self: center;
    z-index: 2;
  }

  /* Top Image / Badge */
  .top_image {
    margin: 0;
    width: 100%;
    max-width: 159px;
    height: auto;
    aspect-ratio: 159 / 34;
    object-fit: contain;
  }

  /* Main Typography (Headings) */
  .header {
    text-align: center;
    font-family: Roboto;
    font-size: 70px;
    font-style: normal;
    font-weight: 900;
    line-height: 80px;
    margin: 0;

    .second_text_color {
      /* Dynamic Text Gradient Implementation */
      background: linear-gradient(
        90deg,
        var(--Color-Palette-Blue-Blue-350, #60a5fa) 0%,
        var(--Color-Palette-Purple-Purple-250, #818cf8) 100%
      );
      background-clip: text;
      -webkit-background-clip: text; /* Strips background away from everywhere except the text geometry */
      -webkit-text-fill-color: transparent; /* Makes the inner text transparent to reveal the gradient */
      color: transparent;
    }
  }

  .subheader {
    color: #c9d8d8;
    text-align: center;
    font-family: "Roboto Slab", serif;
    font-size: 20px;
    font-style: normal;
    font-weight: 400;
    line-height: 28px;
    letter-spacing: 0;
    margin: 0;
  }

  /* Call To Action (CTA) Buttons */
  .cta_container {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 24px;

    a {
      display: inline-flex;
      align-items: center;
      height: 56px;
      gap: 8px;
      padding: 16px 16px 16px 24px;
      background: #111;
      border: 4px solid #ff6200;
      border-radius: 112px;
      color: #fff;
      font-size: 18px;
      font-weight: 700;
      text-decoration: none;
      transition: all 0.1s ease-in-out;

      &:hover {
        transform: translateY(-2px); /* Smoothly raises the CTA by 2px */
        box-shadow: 0 10px 20px 0 #ff620066;
      }

      &:active {
        transform: translateY(
          0
        ); /* Lowers it 2px back to original position on click */
        background: #ff6200;
        color: #111;
      }

      /* SVG Icon Class */
      svg {
        flex-shrink: 0;
        width: 16.8px;
        height: 9.6px;
        overflow: visible;

        path,
        g,
        line,
        polyline {
          fill: currentColor;
          stroke: currentColor;
        }

        path {
          transform: scale(1.753, 1.401);
          transform-origin: center; /* Keeps the icon perfectly centered */
        }
      }
    }
  }

  /* Social Proof / Trust Section */
  .social_proof {
    display: flex;
    align-items: center;
    gap: 16px;
  }

  .social_proof_image {
    margin: 0px;
    max-width: 104px;
    max-height: 34px;
    height: auto;
    flex-shrink: 0;
    aspect-ratio: 13/4;
  }

  .social_proof_text {
    color: #94a3b8;
    text-align: center;
    font-family: Roboto;
    font-size: 14px;
    font-style: normal;
    font-weight: 400;
    line-height: 24px;
    letter-spacing: 0;
  }

  /* Media Container */
  .media_container {
    display: flex;
    width: 100%;
    max-width: 1024px;
    height: auto;
    justify-content: center;
    align-items: center;
    align-self: stretch;
  }

  .media-file {
    width: 100%;
    max-width: 948.834px;
    height: 100%;
    z-index: 2;
  }

  /* ==========================
     Responsive Media Queries 
     ========================== */
  @media (max-width: 720px) {
    &:after {
      display: none;
    }
  }

  @media (max-width: 400px) {
    padding: 48px 24px;

    .header {
      font-size: 48px;
      line-height: 60px;
    }

    .subheader {
      font-size: 18px;
    }

    .cta_container {
      width: 100%;

      a {
        justify-content: center;
        width: 100%;
        display: flex;
        padding: 12px 14px 12px 20px;
        border: 3px solid #ff6200;
        font-size: 16px;
        font-weight: 700;
      }
    }
  }
} /* Main wrapper ends cleanly here */
