main {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 96px;
  width: 100vw;
  background-color: var(--white-0);
  margin-top: 88px;
  padding: 0 16px;
}

@media (max-width: 768px) {
  main {
    gap: 32px;
  }
}

/* HERO SECTION */
.hero-section {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.hero-title {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.hero-title h1 {
  line-height: 56px;
  vertical-align: middle;
}

.hero-title h3 {
  color: var(--gray-200);
  font-weight: 400;
  font-size: 20px;
  line-height: 32px;
  vertical-align: middle;
}

@media (min-width: 768px) {
  .hero-section {
    flex-direction: row;
    justify-content: space-around;
  }

  .hero-title {
    max-width: 70%;
  }
}

/* SIGNUP SECTION */
.main--signup {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.main--signup .input {
  min-width: 150px;
  flex: 1;
}

.main--signup .secondary-button {
  display: flex;
  gap: 4px;
}

@media (min-width: 768px) {
  .main--signup {
    flex-direction: row;
    gap: 8px;
  }

  .main--signup .primary-button {
    flex: 1;
  }

  .main--signup > .secondary-button > span {
    display: none;
  }
}

/* POPULAR COINS SECTION */

@media (min-width: 768px) {
  .hero-section .popular-coins {
    border: 1px solid var(--white-200);
    padding: 8px 16px;
    border-radius: 6px;
    min-width: 360px;
    max-width: 50%;
  }
}

.popular-coins .popular-coins--header {
  display: flex;
  gap: 24px;
  border-bottom: 1px solid #ebebeb;
}

.popular-coins--header .popular-coins--tab {
  text-decoration: none;
  font-size: 14px;
  color: var(--gray-600);
  line-height: 24px;
}

.popular-coins--header .popular-coins--tab.active {
  border-bottom: 2px solid var(--secondary-500);
}

.popular-coins--tab:hover {
  border-bottom: 2px solid var(--secondary-100);
}

.popular-coins--section {
  display: none;
  margin-top: 16px;
}

.popular-coins--list .popular-coins--section.active {
  display: block;
}

.popular-coins--section > ul {
  display: flex;
  flex-direction: column;
  gap: 16px;
  list-style: none;
}

.popular-coins--item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  text-decoration: none;
}

.coins-symbol {
  display: flex;
  align-items: center;
  gap: 4px;
  flex: 1;
  color: var(--gray-600);
}

.coins-symbol > img {
  transform: translateY(2px);
}

.coins-symbol > .coin-symbol {
  font-size: 14px;
  font-weight: 500;
}

.coins-symbol > .coin-name {
  font-size: 10px;
  font-weight: 400;
  color: var(--white-900);
  transform: translateY(1px);
}

.coin-price,
.coin-changes {
  font-size: 14px;
  font-weight: 500;
  flex: 1;
  text-align: end;
  color: var(--gray-600);
}

.coin-changes.positive {
  color: #16bb8e;
}
.coin-changes.negative {
  color: #f44465;
}

/* WHY US SECTION */
.why-us--header {
  margin-bottom: 40px;
}

.why-us--body {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.why-us--body > div {
  display: flex;
  justify-content: space-between;
}

.why-us--body-item {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.why-us--body > div > .why-us--body-item:last-child {
  text-align: end;
}

.why-us--body-item > span:last-child {
  font-size: 14px;
  font-weight: 400;
  color: var(--gray-200);
}

@media (min-width: 768px) {
  .why-us--body {
    flex-direction: row;
  }

  .why-us--body > div {
    flex: 1;
  }

  .why-us--body-item {
    flex: 1;
    align-items: center;
  }
}

/* LIVE CRYPTO SECTION */
.live-crypto--header {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 15px;
  margin-bottom: 40px;
}

.live-crypto--header span {
  font-size: 16px;
  font-weight: 400;
  color: var(--gray-200);
}

.live-crypto--body {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.live-crypto--list .popular-coins--section.active {
  display: block;
}

.live-crypto--item {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.coin-row {
  display: flex;
  flex-direction: column;
  flex: 1;
  text-decoration: none;
}

.coin-row--left {
  display: flex;
  flex: 1;
}

.coin-views {
  font-size: 12px;
  color: var(--gray-0);
}

.coin-row--right {
  display: flex;
  flex: 1;
}

.coin-trade {
  width: 33%;
  text-align: end;
}

.top-gainers--desktop {
  display: none;
}

@media (min-width: 768px) {
  .live-crypto--body {
    flex-direction: row;
  }

  .live-crypto--body > .live-crypto--box:first-child {
    width: 60%;
    background-color: var(--white-100);
    padding: 16px;
    border-radius: 6px;
  }

  .live-crypto--body > .live-crypto--box:last-child {
    width: 40%;
  }

  .live-crypto--body > .live-crypto--box:last-child .coin-changes {
    flex: 1;
  }

  .top-gainers--mobile {
    display: none;
  }

  .top-gainers--desktop {
    display: flex;
    flex-direction: column;
    gap: 20px;
  }

  .top-gainers--desktop > div {
    background-color: var(--white-100);
    padding: 16px;
    border-radius: 6px;
  }

  .popular-coins--header > span {
    line-height: 26px;
  }

  .coin-row--right,
  .coin-row--left {
    justify-content: space-around;
  }

  .coin-row--right .coin-changes,
  .coin-row--left .coin-price {
    flex: 0;
  }

  .live-crypto--item > .coin-row {
    flex-direction: row;
  }

  .coin-trade {
    flex: 0;
  }
}

/* advanced-tools SECTION */
.advanced-tools h2 {
  margin-bottom: 40px;
}

.advanced-tools--body {
  width: 100%;
}

.carousel {
  display: flex;
  gap: 20px;
  width: 100%;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  -ms-overflow-style: none;
}

.carousel::-webkit-scrollbar {
  display: none;
}

.carousel-slide {
  display: flex;
  flex: 0 0 100%;
  flex-direction: column;
  gap: 8px;
  background-color: var(--white-100);
  padding: 16px;
  border-radius: 16px;
  width: 100%;
  scroll-snap-align: start;
}

.carousel-slide--image {
  text-align: center;
}

.carousel-slide h3 {
  font-size: 16px;
  font-weight: 600;
  line-height: 28px;
}

.carousel-slide p {
  font-size: 16px;
  font-weight: 400;
  line-height: 28px;
}

.carousel-indicators {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 16px;
}

.indicator {
  width: 16px;
  height: 4px;
  border-radius: 6px;
  background-color: var(--gray-100);
  transition: all 0.3s ease;
}

.indicator.active {
  width: 24px;
  background-color: var(--gray-900);
}

@media (min-width: 768px) {
  .carousel-slide {
    flex: 1;
  }

  .carousel-indicators {
    display: none;
  }
}

/* APP DOWNLOAD SECTION */
.app-download--body {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 18px;
}

.app-download--images {
  display: flex;
  gap: 24px;
}

.app-download--images > div:last-child {
  display: none;
}

.app-download--links {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 24px;
  width: 100%;
}

.qr-code {
  border: 1px solid var(--white-400);
  padding: 12px;
  border-radius: 12px;
}

.links {
  display: flex;
  gap: 16px;
  width: 100%;
}

.links > a {
  text-decoration: none;
  background-color: var(--white-300);
  color: var(--gray-900);
  padding: 10px 12px;
  border-radius: 6px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  white-space: nowrap;
  flex: 1;
}

@media (min-width: 768px) {
  .app-download--body {
    flex-direction: row;
    justify-content: space-around;
  }

  .app-download--images > div:last-child {
    display: block;
  }

  .app-download--links {
    display: flex;
    flex-direction: column;
    align-items: end;
    gap: 24px;
    width: auto;
  }

  .links {
    flex-direction: column;
  }
}

/* WHY TRUST US SECTION */
.why-trust-us > h2 {
  margin-bottom: 40px;
}

.why-trust-us article {
  align-items: center;
}

/* WHAT ABOUT US SECTION */
.what-about-us > h2 {
  margin-bottom: 40px;
}

.user-info {
  display: flex;
  align-items: center;
  gap: 8px;
}

.user-info > svg {
  transform: translateY(2px);
}

.user-comment {
  font-size: 16px;
  font-weight: 400;
  color: var(--gray-100);
}

.what-about-us article {
  gap: 24px;
}
