/* base and reset */
@font-face {
  font-family: IranYekan;
  font-weight: 400;
  src: url("./assets/fonts/iran-yekan-regular.ttf");
}

@font-face {
  font-family: IranYekan;
  font-weight: 700;
  src: url("./assets/fonts/iran-yekan-bold.ttf");
}

@font-face {
  font-family: IranYekan;
  font-weight: 900;
  src: url("./assets/fonts/iran-yekan-black.ttf");
}

html {
  scroll-behavior: smooth;
}

a {
  text-decoration: none;
  color: #333;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: IranYekan;
}

body {
  font-family: Arial, sans-serif;
  line-height: 1.6;
  color: #333;
  direction: rtl;
}

ul {
  list-style: none;
}

/* floating button */
.floating-button {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  position: fixed;
  bottom: 60px;
  right: 30px;
  z-index: 100;
  cursor: pointer;
  text-decoration: none;
  color: #333;
}

.floating-button .text {
  text-align: center;
}

.floating-button .telegram {
  width: 60px;
  height: 60px;
  border-radius: 50%;
}

.floating-button .telegram img {
  width: 100%;
}

.container {
  width: 100%;
  max-width: 1120px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.container.col {
  flex-direction: column;
  align-items: flex-start;
}

@media (max-width: 1400px) {
  .container {
    width: 100%;
    max-width: 1040px;
  }
}

@media (max-width: 1200px) {
  .container {
    width: 100%;
    max-width: 960px;
  }
}

@media (max-width: 992px) {
  .container {
    width: 100%;
    max-width: 720px;
  }
}

@media (max-width: 680px) {
  .container {
    width: 100%;
    max-width: 540px;
    padding: 0 12px;
  }
}

/* header */
.header {
  position: sticky;
  top: 0;
  padding: 10px 0;
  box-shadow: 0 2px 2px #87878740;
  z-index: 1000;
  background-color: #fff;
}

.header .container {
  justify-content: space-between;
}

.logo-box {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
}

.logo-title {
  font-size: 16px;
  font-weight: 600;
}

.logo {
  width: 50px;
  height: 50px;
  border-radius: 18px;
  overflow: hidden;
}

.logo img {
  width: 100%;
}

.nav .nav-links {
  display: flex;
  gap: 20px;
  text-decoration: none;
  color: #333;
}

.dropdown-icon {
  display: none;
  font-size: 24px;
  cursor: pointer;
}

@media (max-width: 520px) {
  .nav .nav-links {
    display: none;
    flex-direction: column;
    gap: 10px;
    background-color: #fff;
    position: absolute;
    top: 100%;
    right: 0;
    width: 100%;
    padding: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    z-index: 1000;
  }

  .nav .nav-links a:hover {
    background-color: #fafafa;
  }

  .dropdown-icon {
    display: block;
  }

  .nav.active .nav-links {
    display: flex;
  }
}

/* main */
.main {
  background-color: #6ecc94;
  color: #fff;
  text-align: center;
  padding: 30px 0;
  position: relative;
}

.main .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  text-align: center;
  gap: 48px;
}

@media (max-width: 680px) {
  .main {
    margin-bottom: 30px;
  }
  .main .container {
    flex-wrap: wrap;
  }
  .main .devices {
    width: 100%;
    justify-content: center;
  }
}

.main-content {
  display: flex;
  flex-grow: 1;
  flex-direction: column;
  text-align: right;
  gap: 14px;
}

.heading {
  line-height: 40px;
  font-size: 2.5em;
  margin-bottom: 10px;
}

.heading-2 {
  line-height: 30px;
  font-size: 1.25em;
  margin-bottom: 6px;
}

.description {
  text-align: justify;
  font-size: 1.2em;
  margin-bottom: 20px;
}

.download-btn {
  text-align: center;
  background-color: #fff;
  color: #6ecc94;
  border: none;
  padding: 10px 20px;
  cursor: pointer;
  border-radius: 5px;
  min-width: 180px;
  max-width: 220px;
  width: 100%;
}

.devices {
  display: flex;
  justify-content: center;
  margin-top: 20px;
}

.phone-1 {
  top: -10px;
  left: 170px;
  width: 180px;
}

.phone-2 {
  top: 20px;
  left: 320px;
  width: 180px;
}

.devices img {
  width: 100%;
}

/* features */
.feature {
  display: flex;
  align-items: center;
  position: relative;
  padding: 50px 0;
  top: -170px;
}

@media (max-width: 680px) {
  .feature {
    top: 0;
    padding: 25px 0;
  }
}

.feature.first {
  top: 0;
}

@media (max-width: 680px) {
  .feature.second .container .feature-content {
    order: 2;
  }
}

.feature .container {
  justify-content: space-between;
  /* gap: 120px */
}
@media (max-width: 760px) {
  .feature .container {
    flex-wrap: wrap;
    justify-content: center;
  }
}

.feature-content {
  width: 50%;
  padding: 20px;
}

@media (max-width: 560px) {
  .feature .container .feature-content {
    width: 70%;
    text-align: center;
  }
}

.feature-content.statistics {
  text-align: right;
  width: 340px;
}

.feature-image {
  width: 260px;
}

.feature-image img {
  width: 100%;
}

@media (max-width: 680px) {
  .feature-image {
    height: 230px;
    overflow: hidden;
  }
}

@media (max-width: 1130px) {
  .chart-images {
    flex-wrap: wrap;
    justify-content: center;
  }
}

.chart-images {
  display: flex;
}

.chart-wrapper {
  max-width: 320px;
  width: 100%;
}

.chart-wrapper img {
  width: 100%;
}

.chart {
  position: relative;
  top: -25px;
  z-index: 2;
  width: 100%;
  border-radius: 18px;
  box-shadow: -4px 4px 10px rgba(150, 150, 150, 0.4);
}

@media (max-width: 1130px) {
  .chart {
    top: 0;
  }
}

.total-chart-wrapper {
  max-width: 340px;
  width: 100%;
}

.total-chart-wrapper img {
  width: 100%;
}

.total-chart {
  position: relative;
  left: 20px;
  width: 100%;
  border-radius: 18px;
  box-shadow: -4px 4px 10px rgba(150, 150, 150, 0.4);
}

@media (max-width: 1130px) {
  .total-chart {
    left: 0;
  }
}

.statistics {
  text-align: center;
  padding: 50px 0;
}

.access .container {
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 12px;
}

.access {
  top: -100px;
  position: relative;
}

@media (max-width: 680px) {
  .access {
    top: 0;
    margin-bottom: 60px;
  }
}

.access .container .all-devices img {
  width: 100%;
}

.features {
  padding: 0 0 50px;
}

.features .container {
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.feature-icons {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
}

.feature-item {
  width: 150px;
  margin: 20px;
  text-align: center;
}

.feature-item .icon {
  width: 40px;
  height: 40px;
}

.download-container {
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 20px 20px 50px;
  gap: 16px;
}

/* footer */
.footer {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: #f4f4f4;
  padding: 20px 100px;
  text-align: left;
}

.footer .telegram {
  display: flex;
  align-items: center;
  gap: 12px;
}

.footer .telegram-icon {
  width: 40px;
}

.footer .telegram-icon img {
  width: 100%;
}

.copy-right {
  flex-shrink: 0;
}

@media (max-width: 680px) {
  .footer {
    background: #f4f4f4;
    padding: 20px;
    flex-direction: column;
    align-items: center;
  }

  .footer .telegram {
    justify-content: center;
  }
}
