@import url("https://fonts.googleapis.com/css2?family=Assistant:wght@200..800&family=Open+Sans:ital,wght@0,300..800;1,300..800&display=swap");

* {
  font-family: "Assistant", sans-serif;
  font-optical-sizing: auto;
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --background-color: #f2f2f7;
  --text-color: #232424;
  --card-background-color: #e5e5ea;

  --side-padding: 20px;

  --iphone-bezel-aspect-ratio: calc(946 / 1864);

  @media screen and (max-width: 768px) {
    --side-padding: 20px;
  }
}

html,
body {
  display: flex;
  justify-content: center;
  height: 100%;
  width: 100%;
  overflow-y: auto;
  margin: 0;
  padding: 0;
  font-size: 16px;
  line-height: 1.5;
  color: #333;
  background-color: white;
  /* background-color: var(--background-color); */
  /* transition-property: background-color; */
  transition-duration: 1s;
  transition-timing-function: ease-in-out;
}

body,
input,
button,
select,
textarea {
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu,
    Cantarell, "Helvetica Neue", sans-serif;
  color: var(--text-color);
}

.app {
  height: 100%;
  width: 100%;
  max-width: 1000px;
  overflow-x: clip;
  direction: rtl;
}

.header {
  width: 100%;
  height: 60px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 30px;
  padding: 0 var(--side-padding);
  box-sizing: border-box;

  .logo {
    display: flex;
    align-items: center;
    font-weight: 900;
    font-size: 22px;

    .icon {
      width: 38px;
      height: 38px;
    }
  }

  nav {
    ul {
      display: flex;
      gap: 28px;

      li {
        list-style: none;

        a {
          text-decoration: none;
          color: var(--text-color);
          font-size: 18px;
          font-weight: 500;
        }
      }
    }
  }
}

@media screen and (max-width: 768px) {
  .header {
    margin-top: 8px;

    .logo {
      font-size: 18px;

      .icon {
        width: 32px;
        height: 32px;
      }
    }

    nav {
      ul {
        gap: 20px;

        li {
          a {
            font-size: 14px;
          }
        }
      }
    }
  }
}

.intro-section {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0;
  margin-top: 20px;
  padding: 0 var(--side-padding);

  .description {
    grid-area: description;
    position: relative;
    padding-left: 40px;

    .anything-video {
      width: 260px;
      height: 187.96px;
      margin-bottom: 10px;
    }

    .anything-video-mobile {
      display: none;
      width: 280px;
      height: 202.41px;
      margin-bottom: 10px;
    }

    p {
      font-size: 20px;
      font-weight: 400;
      line-height: 140%;
      margin-top: 0;
    }
  }

  .widget {
    grid-area: widget;
    display: flex;
    justify-content: center;
    align-items: start;
    padding: 40px 20px 0 35px;

    .widget-video {
      width: 100%;
      aspect-ratio: calc(874 / 532);
    }
  }
}

@media screen and (max-width: 768px) {
  .intro-section {
    display: flex;
    flex-direction: column;

    .title {
      font-size: 45px;
    }

    .description {
      padding: 0 var(--side-padding);
      display: flex;
      flex-direction: column;
      align-items: center;

      .anything-video {
        display: none;
      }

      .anything-video-mobile {
        display: block;
      }

      p {
        padding: 0 16px;
        max-width: 400px;
        text-align: center;
      }
    }

    .widget {
      width: 100%;
      max-width: 450px;
      padding: 0;
    }
  }
}

.footer-padding-container {
  padding: 0 var(--side-padding);
  margin-top: 100px;
}

.footer {
  display: grid;
  grid-template-columns: auto auto auto;
  grid-template-rows: auto;
  grid-template-areas: "link-list . signature";
  background-color: var(--card-background-color);
  border-top-left-radius: 32px;
  border-top-right-radius: 32px;
  padding: 48px 38px 40px 38px;

  .link-list {
    grid-area: link-list;
    display: grid;
    grid-template-columns: repeat(4, auto);
    grid-template-rows: auto;
    gap: 20px;

    .link:link,
    .link:visited {
      font-size: 16px;
      font-weight: 600;
      text-decoration: none;
      color: #8e8e93;
    }
  }

  .signature {
    grid-area: signature;
    font-size: 16px;
    font-weight: 400;
    text-align: end;
    color: #8e8e93;
  }
}

@media screen and (max-width: 900px) {
  .footer {
    grid-template-columns: 100%;
    grid-template-rows: repeat(2, auto);
    grid-template-areas:
      "link-list"
      "signature";
    justify-items: center;
    row-gap: 30px;

    .signature {
      text-align: center;
    }
  }
}

@media screen and (max-width: 768px) {
  .footer-padding-container {
    padding: 0;
  }

  .footer {
    border-radius: 0;
    justify-items: start;
    row-gap: 34px;
    padding: 34px var(--side-padding) 40px var(--side-padding);

    .link-list {
      grid-template-columns: auto;
      grid-template-rows: repeat(4, auto);
      justify-items: start;
      row-gap: 10px;
    }
  }
}

.hero-image {
  width: 600px;
}
@media screen and (max-width: 768px) {
    .hero-image {
    width: 500px;
    padding-top: 20px;
  }
}

.download-section-top {
  margin-top: 20px;

  > a:link,
  > a:visited {
    display: block;
    text-decoration: none;
    width: 180px;

    img {
      width: 100%;
      height: auto;
    }
  }
}

@media screen and (max-width: 768px) {
  .download-section-top {
    margin-top: 16px;
    display: flex;
    justify-content: center;
  }
}

.title {
  grid-area: title;
  margin: 0;
  font-size: 70px;
  font-weight: 700;
  line-height: 120%;
  padding-top: 18px;
}
