@charset "UTF-8";
header {
  opacity: 0;
  transform: translateY(-100%);
  z-index: 9;
}

/* main */
#main {
  position: relative;
  width: 100%;
  height: 892px;
  display: flex;
  justify-content: center;
  background: var(--black);
  color: var(--white);
  padding: var(--padding160);
  overflow: hidden;
}
#main::after {
  content: "";
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    to right,
    var(--black) 38%,
    rgba(18, 18, 18, 0.36) 73%,
    rgba(18, 18, 18, 0.36) 100%
  );
  z-index: 1;
}
#main .video-wrap {
  position: absolute;
  top: 0;
  right: -15%;
  width: auto;
  height: 100%;
  object-fit: cover;
}
#main .width-wrap {
  display: flex;
  align-items: center;
  padding: 0;
  z-index: 3;
}
#main .text-area {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 32px;
}
#main .text-area .tag {
  padding: 8px 32px;
  border-radius: 999px;
  background: var(--white-op-1);
  backdrop-filter: blur(6px);
  font-size: 16px;
  font-weight: 400;
  letter-spacing: -0.02em;
  line-height: 1.6;
}
#main .text-area .title {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
#main .text-area .title p {
  font-size: 66px;
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.2;
}
#main .text-area .title p.sub {
  background: var(--po);
  background-clip: text;
  -webkit-background-clip: text;
  color: transparent;
  /* width: max-content; */
}
#main .text-area .desc {
  font-size: 24px;
  font-weight: 400;
  line-height: 1.6;
  letter-spacing: -0.02em;
  word-break: break-all;
}

/* AI 상품 */
#products {
  background: var(--gray-bg);
}
#products .width-wrap {
  padding: 130px 0;
}
#products .title-area {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 60px;
}
#products .title-area p.title {
  font-size: 40px;
  font-weight: 700;
  line-height: 1.6;
  letter-spacing: -0.02em;
}
#products .title-area p.desc {
  font-size: 24px;
  font-weight: 400;
  line-height: 1.6;
  letter-spacing: -0.02em;
  color: var(--gray);
}
#products .card-area {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 64px 32px;
}
/* product - 상품 목록 */
.card-area li {
  border-radius: 24px;
  box-shadow: 0 4px 14px 0 rgba(0, 0, 0, 0.12);
}
.card-area li .top-zone {
  padding: 12px 12px 0;
}
.card-area li .img-plc {
  display: flex;
  align-items: center;
  justify-content: center;
  aspect-ratio: 474 / 320;
  border-radius: 20px;
  background: url("../img/screen/ai/bg_card.png") no-repeat;
  background-position: center;
  background-size: cover;
}
.card-area li .img-plc img {
  max-width: 100%;
  height: auto;
}
.card-area li:hover .img-plc img {
  animation: cardIconFloat 2s ease-in-out infinite;
}
.card-area li .bottom-zone {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 20px;
}
.card-area li .bottom-zone p.title {
  font-size: 24px;
  font-weight: 600;
  line-height: 1.6;
  letter-spacing: -0.02em;
  text-overflow: ellipsis;
  overflow: hidden;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 1;
}
.card-area li .bottom-zone .desc {
  height: 85px;
}
.card-area li .bottom-zone .desc p {
  font-size: 18px;
  font-weight: 300;
  line-height: 1.6;
  letter-spacing: -0.02em;
  color: var(--gray);

  text-overflow: ellipsis;
  overflow: hidden;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}
.card-area li .bottom-zone a.btn {
  padding: 16px 32px;
  border: 1px solid #dcdcdc;
  font-size: 18px;
  font-weight: 400;
  line-height: 1.6;
  letter-spacing: -0.02em;
  transition: all 0.25s linear;
}
.card-area li .bottom-zone a.btn:hover {
  background: var(--black);
  color: var(--white);
  border-color: var(--black);
}
/* 타입 별 아이콘 이미지 너비 */
.card-area li.homepage .img-plc img {
  width: 65.82%;
}
.card-area li.video .img-plc img {
  width: 54.01%;
}
.card-area li.media .img-plc img {
  width: 60.55%;
}

@keyframes cardIconFloat {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-12px);
  }
}

@media all and (max-width: 1100px) {
  /* main */
  #main {
    height: 750px;
  }
  #main::after {
    background: linear-gradient(
      to right,
      var(--black) 20%,
      rgba(18, 18, 18, 0.36) 57.33%,
      rgba(18, 18, 18, 0.36) 100%
    );
  }
  #main .video-wrap {
    top: auto;
    right: auto;
    left: 0;
    bottom: 0;
  }
  #main .text-area {
    gap: 26px;
  }
  #main .text-area .tag {
    padding: 6px 26px;
    font-size: 14px;
  }
  #main .text-area .title {
    gap: 12px;
  }
  #main .text-area .title p {
    font-size: 48px;
  }
  #main .text-area .desc {
    font-size: 20px;
  }

  /* AI 상품 */
  #products .width-wrap {
    padding: 80px 0;
  }
  #products .title-area {
    gap: 10px;
    margin-bottom: 50px;
  }
  #products .title-area p.title {
    font-size: 32px;
  }
  #products .title-area p.desc {
    font-size: 20px;
  }
  #products .card-area {
    grid-template-columns: repeat(2, 1fr);
    gap: 40px 20px;
  }
  /* product - 상품 목록 */
  .card-area li .bottom-zone p.title {
    font-size: 20px;
  }
  .card-area li .bottom-zone .desc {
    height: 64px;
  }
  .card-area li .bottom-zone .desc p {
    font-size: 16px;
  }
  .card-area li .bottom-zone a.btn {
    padding: 12px 24px;
    font-size: 16px;
  }
}
@media all and (max-width: 720px) {
  /* 메인 */
  #main .video-wrap {
    left: -28%;
  }
  #main .text-area {
    gap: 24px;
  }
  #main .text-area .tag {
    padding: 4px 20px;
    font-size: 13px;
  }
  #main .text-area .title {
    gap: 10px;
  }
  #main .text-area .title p {
    font-size: 40px;
  }
  #main .text-area .desc {
    font-size: 18px;
  }
  /* AI 상품 */
  #products .card-area {
    grid-template-columns: repeat(1, 1fr);
    gap: 20px;
  }
}
@media all and (max-width: 500px) {
  /* 메인 */
  #main {
    height: auto;
    min-height: 390px;
    padding: 116px 0 80px;
  }
  #main::after {
    background: linear-gradient(
      to right,
      var(--black) 0.79%,
      rgba(18, 18, 18, 0.22) 57.33%,
      rgba(18, 18, 18, 0.36) 98.95%
    );
  }
  #main .video-wrap {
    height: 114%;
  }
  #main .text-area {
    gap: 20px;
  }
  #main .text-area .title {
    gap: 8px;
  }
  #main .text-area .title p {
    font-size: 28px;
  }
  #main .text-area .desc {
    font-size: 16px;
  }
  /* AI 상품 */
  #products .width-wrap {
    padding: 32px 0;
  }
  #products .title-area {
    margin-bottom: 40px;
  }
  #products .title-area p.title {
    font-size: 22px;
  }
  #products .title-area p.desc {
    font-size: 16px;
  }
  /* product - 상품 목록 */
  .card-area li {
    border-radius: 16px;
  }
  .card-area li .img-plc {
    aspect-ratio: 315 / 210;
    border-radius: 16px;
  }
  .card-area li .bottom-zone {
    gap: 4px;
  }
  .card-area li .bottom-zone p.title {
    font-size: 18px;
  }
  .card-area li .bottom-zone .desc {
    height: 57px;
  }
}
