/* FONTS */

@import url('https://fonts.googleapis.com/css2?family=IBM+Plex+Sans:wght@400;700&display=swap');
  
  /* VARIABLES */
  
  :root {
    --clr-cyan: 177, 68%, 64%;
    --clr-orange: 12, 94%, 65%;
    --clr-yellow: 33, 100%, 70%;
    --clr-white: 20, 33%, 98%;
    --clr-slate: 244, 23%, 12%;
  
    --text-preset-1-size: 8.8rem;
    --text-preset-1-height: 1;
    --text-preset-1-ls: -0.1rem;
  
    --text-preset-2-size: 6.4rem;
    --text-preset-2-height: 1;
  
    --text-preset-3-size: 4rem;
    --text-preset-3-height: 1.1;
  
    --text-preset-4-size: 2rem;
    --text-preset-4-height: 1.5;
  
    --text-preset-5-size: 1.6rem;
    --text-preset-5-height: 1.5;
  
    --text-preset-6-size: 1.8rem;
    --text-preset-6-height: 1.8;
  }
  
  /* RESET */
  
  *,
  *::before,
  *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
  }
  
  html {
    font-size: 62.5%;
  }
  
  img {
    max-width: 100%;
  }
  
  input,
  button,
  textarea {
    font: inherit;
  }
  
  /* GENERAL */
  
  body {
    position: relative;
    background-image: url("./assets/bg-main-desktop.png");
    background-position: top -300px left -300px;
    min-height: 100vh;
    color: hsl(var(--clr-slate));
    font-size: var(--text-preset-4-size);
    font-family: "IBM Plex Sans", sans-serif;
  }
  
  body::before {
    position: absolute;
    top: -4rem;
    right: 0;
    content: "";
    background-image: url("./assets/bg-pattern-1.svg");
    background-size: cover;
    width: 312px;
    height: 468px;
    z-index: -1;
  }
  
  /* UTILITY */
  
  .sr-only:not(:focus):not(:active) {
    clip: rect(0 0 0 0);
    position: absolute;
    clip-path: inset(50%);
    width: 1px;
    height: 1px;
    overflow: hidden;
    white-space: nowrap;
  }
  
  .container {
    margin: 0 auto;
    width: 100%;
    max-width: 1120px;
  }
  
  .button {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0.8rem;
    border: 0;
    padding: 1.6rem 0;
    font-weight: 700;
    font-size: var(--text-preset-6-size);
    line-height: var(--text-preset-6-height);
    border-radius: 1.6rem;
    transition: background-color 0.3s ease-in-out;
  }
  
  .button:hover {
    cursor: pointer;
  }
  
  .button--primary {
    background-color: hsl(var(--clr-slate));
    color: hsl(var(--clr-white));
  }
  
  .button--primary:hover {
    background-color: hsl(var(--clr-cyan));
    color: hsl(var(--clr-slate));
  
    img {
      filter: brightness(0) saturate(100%) invert(10%) sepia(18%) saturate(399%)
        hue-rotate(195deg) brightness(97%) contrast(99%);
    }
  }
  
  .button--secondary {
    background-color: hsl(var(--clr-white));
  }
  
  .button--secondary:hover {
    background-color: hsl(var(--clr-yellow));
    color: hsl(var(--clr-slate));
  }
  
  /* HEADER */
  
  .header {
    margin-bottom: 12.8rem;
    padding-top: 6.4rem;
  }
  
  /* HERO */
  
  .hero {
    margin-bottom: 20rem;
    padding-bottom: 6.4rem;
  }
  
  .hero__content {
    max-width: 928px;
  }
  
  .hero__title {
    margin-bottom: 4rem;
    font-size: var(--text-preset-1-size);
    line-height: var(--text-preset-1-height);
    letter-spacing: var(--text-preset-1-ls);
  }
  
  .hero__text {
    max-width: 736px;
    line-height: var(--text-preset-4-height);
  }
  
  /* PREMIUM SECTION */
  
  .premium-section {
    padding-bottom: 20rem;
  }
  
  .premium-section .container {
    position: relative;
    border-radius: 1.2rem;
    background-color: hsl(var(--clr-slate));
    height: 600px;
  }
  
  .premium-section .container::before {
    content: url("./assets/bg-pattern-2.svg");
    position: absolute;
    left: 368px;
  }
  
  .premium-section__image {
    position: absolute;
    top: -121px;
    left: 100px;
  }
  
  .premium-section__content {
    position: absolute;
    top: 8.9rem;
    right: 6.4rem;
    border-radius: 1.6rem;
    background-color: hsl(var(--clr-orange));
    padding: 5.6rem;
    max-width: 512px;
  }
  
  .premium-section__title {
    margin-bottom: 2.4rem;
    font-size: var(--text-preset-3-size);
    line-height: var(--text-preset-3-height);
  }
  
  .premium-section__text {
    margin-bottom: 4rem;
    line-height: var(--text-preset-4-height);
  }
  
  .premium-section__price {
    display: flex;
    align-items: center;
    gap: 1.6rem;
    margin-bottom: 4.8rem;
    font-weight: 700;
    font-size: var(--text-preset-2-size);
    line-height: var(--text-preset-2-height);
  
    span {
      font-weight: 400;
      font-size: var(--text-preset-4-size);
      line-height: var(--text-preset-4-height);
    }
  }
  
  .premium-section__buttons {
    display: flex;
    flex-direction: column;
    gap: 1.6rem;
  }
  
  /* FOOTER */
  
  .footer {
    padding: 6.4rem 0 8rem 0;
  }
  
  .footer .container {
    display: flex;
    gap: 12.8rem;
  }
  
  .footer__right {
    display: flex;
    justify-content: space-between;
    flex: 1;
    gap: 3.2rem;
  }
  
  .footer__text {
    font-size: var(--text-preset-5-size);
    line-height: var(--text-preset-5-height);
  }
  
  .footer__link {
    text-decoration: none;
    font-weight: 700;
    color: hsl(var(--clr-slate));
  }
  
  .footer__list {
    display: flex;
    align-items: center;
  
    gap: 3.2rem;
    list-style-type: none;
    margin-left: auto;
  }
  
  .footer__icon:hover {
    filter: brightness(0) saturate(100%) invert(78%) sepia(50%) saturate(6341%)
      hue-rotate(327deg) brightness(101%) contrast(96%);
  }
  
  /* ATTRIBUTION */
  
  .attribution {
    position: absolute;
    bottom: 0;
    left: 0;
    border-top-right-radius: 1rem;
    padding: 0.8rem;
    font-size: 1rem;
  }
  
  .attribution__link {
    color: hsl(var(--clr-slate));
    font-weight: 700;
    text-decoration: none;
    transition: color 0.3s ease-in-out;
  }
  
  .attribution__link:hover {
    color: hsl(var(--clr-orange));
  }
  
  /* MEDIA QUREIES */
  
  @media screen and (max-width: 1120px) {
    .container {
      padding: 0 4.4rem;
    }
  
    .premium-section .container {
      width: calc(100% - 8.8rem);
    }
  }
  
  @media screen and (max-width: 937px) {
    .footer .container {
      flex-direction: column;
      gap: 3.2rem;
    }
  }
  
  @media screen and (max-width: 768px) {
    :root {
      --text-preset-1-size: 6.4rem;
      --text-preset-4-size: 1.8rem;
    }
  
    body::before {
      height: 400px;
      width: 266px;
    }
  
    .hero__title {
      max-width: 416px;
    }
  
    .hero__text {
      max-width: 504px;
    }
  
    .premium-section .container::before {
      left: 0;
    }
  
    .premium-section__image {
      width: 270px;
      height: 556px;
      top: -114px;
      left: 42px;
    }
  
    .premium-section__content {
      max-width: 356px;
      padding: 4.8rem;
      top: 8.6rem;
    }
  }
  
  @media screen and (max-width: 666px) {
    .footer__right {
      flex-direction: column;
    }
  
    .footer__list {
      margin-left: unset;
    }
  }
  
  @media screen and (max-width: 557px) {
    :root {
      --text-preset-1-size: 4rem;
      --text-preset-4-size: 1.6rem;
    }
  
    body::before {
      display: none;
    }
  
    .container {
      padding: 0 2rem;
    }
  
    .header {
      margin-bottom: 6.4rem;
    }
  
    .hero {
      margin-bottom: 11rem;
    }
  
    .premium-section {
      padding-bottom: 0;
    }
  
    .premium-section .container {
      padding: 0;
      width: 100%;
      border-radius: 0;
      height: auto;
      padding-top: 375px;
    }
  
    .premium-section .container::before {
      left: 50%;
      transform: translateX(-50%);
      top: 0;
    }
  
    .premium-section__image {
      width: 208px;
      height: 430px;
      left: 50%;
      transform: translateX(-50%);
    }
  
    .premium-section__content {
      max-width: 100%;
      width: 100%;
      position: relative;
      right: 0;
      top: 0;
  
      border-radius: 0;
      padding: 4.8rem 2rem;
    }
  }