.home {
  padding-top: 60px;
  text-align: center;
  background-color: white;
}

.f6f8fb {
  width: 100%;
  display: flex;
  justify-content: center;
  background: linear-gradient(180deg, rgba(246, 248, 251, 0) 0%, #f6f8fb 3.74%);
}

.home-inner {
  width: 100%;
}

.hero {
  margin: 91px 0 36px;
  padding: 0 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
  font-size: var(--font-40);
  line-height: 1.48;
}

.hero-title {
  font-size: 28px;
  line-height: 1.3;
  margin-bottom: 16px;
  font-weight: var(--font-weight-bold);
}

.hero-title strong {
  display: block;
  font-size: 28px;
  margin-top: 8px;
}

.hero-desc {
  font-size: var(--font-b4);
  color: #0000008c;
}

/*롤링 섹선*/
.rolling-container {
  width: 100%;
  overflow: hidden;
  margin: 11.2px 0;
  touch-action: pan-y;
}

.rolling-container:last-of-type {
  margin-bottom: 120px;
}

.rolling-track {
  display: flex;
  gap: 11.2px;
  width: max-content;
  will-change: transform;
  transform: translate3d(0, 0, 0);
}

.rolling-set {
  display: flex;
  gap: 11.2px;
}

.rolling-track.left-to-right {
  animation: scrollLeft 30s linear infinite;
}

.rolling-track.right-to-left {
  animation: scrollRight 30s linear infinite;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 9.8px;
  padding: 18.2px 32.2px;
  border-radius: 134.4px;
  white-space: nowrap;
  font-size: var(--font-b5);
  font-weight: var(--font-weight-medium);
  flex-shrink: 0;
  color: #fff;
}

.badge-yellow {
  background: var(--brand-primary);
}

.badge-black {
  background: #121212;
}

.badge-blue {
  background: var(--brand-tertiary);
}

.avatar {
  width: 35.95px;
  height: 35.95px;
  border-radius: 50%;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

@keyframes scrollLeft {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(calc(-100% / 5));
  }
}

@keyframes scrollRight {
  0% {
    transform: translateX(calc(-100% / 5));
  }
  100% {
    transform: translateX(0);
  }
}

/* Preview Section */
/* ===== Preview Section ===== */
.preview {
  padding: 0 16px;
  margin-bottom: 6.5px;
  display: flex;
  justify-content: center;
  align-items: center;
}

/* ===== 모바일 (800px 미만) ===== */
.preview-mobile {
  display: block;
  position: relative;
  width: 343px;
}

.preview-tablet,
.preview-desktop {
  display: none;
}

.preview-mobile .iphone-mockup {
  width: auto;
  height: auto;
  animation: slideInFromBottom 1.2s ease-out;
}

.white-section {
  width: 60px;
  height: 20px;
  background-color: white;
  position: absolute;
  top: 203px;
  left: 50px;
  animation: slideInFromBottomNoOpacity 1.2s ease-out;
}

/* 질문 (검정색) */
.preview-mobile .chat-question {
  position: absolute;
  z-index: 11;
  top: 120.09px;
  left: 25.58px;
  width: auto;
  height: auto;
}

/* 지피톡봇 (노란색) */
.preview-mobile .chat-gpt {
  position: absolute;
  right: 30px;
  top: 190.95px;
  z-index: 8;
  width: auto;
  height: auto;
}

/* 친구봇 (파란색)  */
.preview-mobile .chat-friendbot {
  position: absolute;
  right: 76px;
  top: 315.9px;
  z-index: 9;
  width: auto;
  height: auto;
  opacity: 0;
}

.chat-question {
  opacity: 0;
  animation: fadeInUp 0.8s ease-out 0.9s forwards;
}

.chat-gpt {
  opacity: 0;
  animation: fadeInUp 0.8s ease-out 1.8s forwards;
}

.chat-friendbot {
  opacity: 0;
  animation: fadeInUp 0.8s ease-out 2.7s forwards;
}

/* === description ===*/
.description {
  padding: 160px 20px 80px;
}

.description-title {
  display: flex;
  flex-direction: column;
  font-size: var(--font-40);
  line-height: 1.2;
  font-weight: var(--font-weight-bold);
  margin-bottom: 24px;
}

.description-sub {
  font-size: var(--font-b2);
  line-height: 1.41;
  color: #6c6c6c;
  margin-bottom: 80px;
}

.description-main {
  display: block;
  margin-top: 200px;
  align-items: center;
  font-size: var(--font-h5);
  line-height: 1.48;
  font-weight: var(--font-weight-bold);
  color: #6c6c6c;
}

.description-main strong {
  color: black;
}

.without-mobile,
.only-tablet,
.only-desktop {
  display: none;
}

.description-cards {
  display: grid;
  gap: 16px;
  margin-top: 42px;
  grid-template-columns: 1fr;
}

.description-card {
  background-color: #f6f8fb;
  width: auto;
  height: 266px;
  border-radius: 16px;
  padding: 40px 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 24px;
  position: relative;
  overflow: hidden;
  transition: background-color 0.4s ease;
}

.card-img,
.card-title {
  transition: opacity 0.4s ease;
  position: relative;
  z-index: 2;
}

.card-title {
  font-size: var(--font-b2);
  font-weight: var(--font-weight-medium);
}

.card-desc {
  color: #6c6c6c;
  font-size: var(--font-b4);
  letter-spacing: 0;
  text-align: center;
  transition: color 0.4s ease, opacity 0.4s ease;
  position: relative;
  z-index: 2;
}

.count-section {
  padding: 120px 20px;
  text-align: center;
}

.count-title {
  display: block;
  text-align: center;
  font-size: var(--font-40);
  font-weight: var(--font-weight-bold);
  line-height: 1.48;
}

.highlight-blue {
  color: var(--brand-tertiary);
}

.count-cards {
  display: grid;
  grid-template-columns: 1fr;
  background-color: white;
  border-radius: 16px;
  margin-top: 69px;
  gap: 74px;
  padding: 40px 39px;
  align-items: stretch;
  justify-items: center;
}

.count-card {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  height: 100%;
}

.count-card-title {
  font-size: var(--font-b2);
  font-weight: var(--font-weight-medium);
  margin-bottom: 24px;
}

.count-card-number {
  font-size: var(--font-h3);
  font-weight: var(--font-weight-medium);
  color: var(--brand-primary);
  margin-bottom: 8px;
  font-variant-numeric: tabular-nums;
}

.count-card-desc {
  color: #6c6c6c;
  font-size: var(--font-b4);
  line-height: 1.4;
  text-align: center;
}

.satisfaction-highlight {
  display: flex;
  align-items: baseline;
  justify-content: center;
  color: var(--brand-primary);
}

.satisfaction-highlight .plus-sign {
  font-size: var(--font-h3);
  font-weight: var(--font-weight-medium);
}

.satisfaction-highlight .unit {
  font-size: var(--font-b2);
  color: black;
  font-weight: var(--font-weight-medium);
  margin-left: 4px;
}

.survey-source {
  font-size: 11px;
  color: #999;
  margin-top: 8px;
  line-height: 1.4;
  text-align: center;
}

.faq {
  padding: 80px 20px 78px;
  display: flex;
  flex-direction: column;
}

.faq-title {
  font-size: var(--font-h3);
  font-weight: var(--font-weight-bold);
  margin-bottom: 24px;
}

.faq-sub {
  font-size: var(--font-b3);
  line-height: 1.57;
  color: #6c6c6c;
  margin-bottom: 80px;
}

.accordion-container {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.accordion-item {
  border-top: 1px solid #6c6c6c;
}

.accordion-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
  user-select: none;
  padding: 2px 20px;
}

.accordion-title {
  font-size: var(--font-b3);
  color: black;
  line-height: 1.57;
}

.accordion-icon {
  transition: transform 0.3s ease;
  flex-shrink: 0;
  margin-top: 10px;
}

.accordion-item.active .accordion-icon {
  transform: rotate(180deg) translateY(10px);
}

.accordion-content {
  display: none;
}

.accordion-text {
  text-align: left;
  font-size: var(--font-b3);
  line-height: 1.57;
  color: black;
  padding: 20px 20px 0;
}

.home-footer {
  padding: 0 20px 26px;
}

.footer-image {
  height: 218px;
  width: auto;
  background: linear-gradient(rgba(0, 0, 0, 0.71), rgba(0, 0, 0, 0.71)),
    url("/images/pages/home/footer/home-footer-bg.jpg");
  border-radius: 15px;
  background-size: cover;
  background-position: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 32px;
}

.footer-image span {
  color: white;
  font-size: var(--font-b1);
  font-weight: var(--font-weight-bold);
  line-height: 1.38;
}

.home-footer-cta {
  width: 184px;
  height: 42px;
}

.home-footer-cta .btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  width: 100%;
  background-color: var(--brand-primary);
  color: black;
  border-radius: 1000px;
  font-size: var(--font-b3);
  font-weight: var(--font-weight-semibold);
  white-space: nowrap;
  transition: all 0.3s ease;
  height: 100%;
}

.home-footer-cta .btn:hover {
  background-color: var(--brand-secondary);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(255, 215, 0, 0.4);
}

.home-footer-cta .btn:active {
  transform: translateY(0);
}

/* 태블릿 (800px 이상) - 가로 레이아웃 */
@media (min-width: 800px) {
  .hero {
    margin: 101px 0 76px;
    font-size: var(--font-h1);
    line-height: 1.2;
  }

  .hero-title {
    font-size: 40px;
    margin-bottom: 24px;
  }

  .hero-title strong {
    font-size: 40px;
    margin-top: 8px;
  }

  .preview-mobile {
    display: none;
  }

  .preview-tablet {
    display: block;
    position: relative;
    width: 720px;
    margin-bottom: 98.71px;
  }

  .preview-tablet .iphone-mockup {
    width: auto;
    height: auto;
    animation: slideInFromBottom 1.2s ease-out;
  }

  .white-section-tablet-desktop {
    position: absolute;
    width: 100%;
    height: 133px;
    bottom: 0;
    background: linear-gradient(0deg, #ffffff 0%, rgba(255, 255, 255, 0) 100%);
    animation: slideInFromBottomNoOpacity 1.2s ease-out;
  }

  /* 질문 (검정색) */
  .preview-tablet .chat-question {
    position: absolute;
    z-index: 11;
    top: 78.34px;
    left: 240.45px;
    width: auto;
    height: auto;
  }

  /* 지피톡봇 (노란색) */
  .preview-tablet .chat-gpt {
    position: absolute;
    right: 253.55px;
    top: 190.06px;
    z-index: 8;
    width: auto;
    height: auto;
  }

  /* 친구봇 (파란색)  */
  .preview-tablet .chat-friendbot {
    position: absolute;
    right: 362.77px;
    top: 377.05px;
    z-index: 9;
    width: auto;
    height: auto;
  }

  .preview-desktop {
    display: none;
  }

  .description-title {
    font-size: var(--font-h3);
  }
  .description-sub {
    font-size: var(--font-b1);
    line-height: 1.45;
    margin-top: 24px;
  }

  .description-main {
    display: block;
    margin-top: 200px;
    font-size: var(--font-h4);
  }

  .description-cards {
    grid-template-columns: repeat(2, 1fr);
  }

  .card-desc {
    font-size: var(--font-b3);
  }

  .count-cards {
    grid-template-columns: repeat(3, 1fr);
    gap: 0;
    height: auto;
    padding: 60px 0;
  }

  .count-card {
    width: 100%;
    padding: 0 20px;
  }

  .middle-card {
    border: none;
  }

  .count-title {
    font-size: var(--font-h4);
    text-align: center;
    width: 100%;
  }

  .count-card-number {
    font-size: var(--font-h4);
  }

  .faq {
    padding: 80px 20px 55px;
  }

  .faq-sub {
    font-size: var(--font-b1);
    line-height: 1.45;
  }

  .accordion-title {
    font-size: var(--font-b1);
    font-weight: var(--font-weight-bold);
    line-height: 1;
  }

  .footer-image span {
    color: white;
    font-size: var(--font-title);
    line-height: 1;
  }

  .home-footer-cta {
    width: 195px;
    height: 44px;
  }

  .home-footer-cta .btn {
    font-size: var(--font-b2);
    height: 100%;
  }

  .accordion-text {
    font-size: var(--font-b2);
    line-height: 1.71;
  }

  .only-mobile,
  .only-desktop {
    display: none;
  }

  .without-mobile,
  .only-tablet {
    display: block;
  }
}

/* 데스크탑 (1280px 이상) */
@media (min-width: 1280px) {
  .home {
    display: flex;
    flex-direction: column;
    align-items: center;
  }

  .home-inner {
    width: 1240px;
  }

  .hero-title {
    font-size: 54px;
    margin-bottom: 45px;
  }

  .hero-title strong {
    font-size: 54px;
    margin-top: 12px;
  }

  .preview {
    margin: 61px auto 0;
  }

  .preview-mobile {
    display: none;
  }

  .preview-tablet {
    display: none;
  }

  .preview-desktop {
    display: block;
    position: relative;
    margin-bottom: 104.71px;
  }

  .preview-desktop .iphone-mockup {
    max-width: 907px;
    width: auto;
    height: auto;
    animation: slideInFromBottom 1.2s ease-out;
  }

  /* 질문 (검정색) */
  .preview-desktop .chat-question {
    position: absolute;
    z-index: 11;
    top: 17.66px;
    right: -186px;
    width: auto;
    height: auto;
  }

  /* 지피톡봇 (노란색) */
  .preview-desktop .chat-gpt {
    position: absolute;
    left: -187px;
    top: 84.22px;
    z-index: 8;
    width: auto;
    height: auto;
  }

  /* 친구봇 (파란색)  */
  .preview-desktop .chat-friendbot {
    position: absolute;
    left: -187px;
    top: 341.34px;
    z-index: 9;
    width: auto;
    height: auto;
  }

  .description-cards {
    grid-template-columns: repeat(3, 1fr);
  }

  .description-card {
    justify-content: center;
    cursor: pointer;
  }

  .card-desc {
    position: absolute;
    width: 100%;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    opacity: 0;
    color: white;
    width: calc(100% - 60px);
    padding: 0;
    line-height: 1.57;
    letter-spacing: 0;
  }

  .description-main {
    margin-top: 200px;
  }

  /* 까만 배경 */
  .description-card::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: black;
    opacity: 0;
    transition: opacity 0.4s ease;
    z-index: 1;
  }

  /* 호버 시 */
  .description-card:hover::before {
    opacity: 1;
  }

  .description-card:hover .card-img,
  .description-card:hover .card-title {
    opacity: 0;
  }

  .description-card:hover .card-desc {
    opacity: 1;
    color: white;
  }

  .count-cards {
    height: auto;
    padding: 60px 0;
  }

  .count-card {
    width: 100%;
    padding: 0 40px;
  }

  .faq {
    padding: 0 20px 120px;
  }
  .only-mobile,
  .only-tablet {
    display: none;
  }

  .only-desktop {
    display: block;
  }
}

.js-scroll-animate,
.js-fade-up {
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 1.2s cubic-bezier(0.25, 0.1, 0.25, 1),
    transform 1.2s cubic-bezier(0.25, 0.1, 0.25, 1);
}

.js-scroll-animate.active,
.js-fade-up.active {
  opacity: 1;
  transform: translateY(0);
}

/* 페이드인 + 슬라이드 애니메이션 */
@keyframes fadeInUp {
  0% {
    opacity: 0;
    transform: translateY(20px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

/* iPhone 슬라이드 인 애니메이션 */
@keyframes slideInFromBottom {
  0% {
    transform: translateY(60px);
    opacity: 0;
  }
  100% {
    transform: translateY(0);
    opacity: 1;
  }
}

@keyframes slideInFromBottomNoOpacity {
  0% {
    transform: translateY(60px);
    opacity: 1;
  }
  100% {
    transform: translateY(0);
    opacity: 1;
  }
}

@media (max-width: 374px) {
  .preview-mobile .chat-question {
    left: 0px;
    transform: none;
    scale: 0.8;
  }
  .preview-mobile .chat-gpt,
  .preview-mobile .chat-friendbot {
    right: 0px;
    transform: none;
    scale: 0.8;
  }
}
