.home {
  background: linear-gradient(
    0deg,
    #ffffff 74.45%,
    #dbf7f9 86.22%,
    #effee8 98%
  );
  padding-top: 78px;
  text-align: center;
}

/* Hero Section */
.hero {
  height: 251.66px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 0px 16px;
}

.letter-container {
  height: 98px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.letter-container .main-letter {
  font-size: var(--font-h2);
  font-weight: var(--font-weight-bold);
  letter-spacing: -1.6px;
  line-height: 1.34;
  white-space: nowrap;
}

.letter-container .main-letter .highlight {
  color: var(--brand-primary);
}

.letter-container .main-letter .highlight-blue {
  color: var(--brand-tertiary);
}

.letter-container .sub-letter {
  font-size: var(--font-b2);
  color: #4b4b4b;
  letter-spacing: -0.54px;
  line-height: 1.54;
}

/* 검색창 */

.input-container {
  width: 100%;
  max-width: 500px;
  height: 131.66px;
  margin: 0 auto;
}

/* 모바일 (800px 이하) - 세로 레이아웃 */
.input-wrapper {
  display: flex;
  flex-direction: column;
  gap: 22px;
  align-items: center;
}

.input-field {
  display: none; /* 모바일에서는 숨김 */
}

.input-box {
  width: 100%;
  height: 61.66px;
  background: white;
  border-radius: 50px;
  padding: 0 33px 0 33px;
  box-shadow: 2.47px 2.47px 14.92px 0px #b5def2;
  border: none;
  outline: none;
  font-size: var(--font-b4);
  color: var(--gray-550);
}

.input-box:focus {
  box-shadow: 0 0 0 2px #ffd122;
}

.input-box::placeholder {
  color: #999;
}

.submit-btn {
  width: 92px;
  height: 48px;
  background: var(--brand-primary);
  color: black;
  border: none;
  border-radius: 50px;
  font-size: var(--font-b4);
  font-weight: var(--font-weight-bold);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(255, 215, 0, 0.3);
  white-space: nowrap;
}

.submit-btn:hover {
  background: var(--brand-secondary);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(255, 215, 0, 0.4);
}

.submit-btn:active {
  transform: translateY(0);
}

/* Preview Section */
/* ===== Preview Section ===== */
.preview {
  margin: 50.75px auto;
  padding: 0 16px;
  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;
}

/* 질문 (검정색) */
.preview-mobile .chat-question {
  position: absolute;
  z-index: 11;
  top: 164.09px;
  left: 14.58px;
  width: auto;
  height: auto;
}

/* 지피톡봇 (노란색) */
.preview-mobile .chat-gpt {
  position: absolute;
  right: 46.31px;
  top: 236.95px;
  z-index: 8;
  width: auto;
  height: auto;
}

/* 친구봇 (파란색)  */
.preview-mobile .chat-friendbot {
  position: absolute;
  left: 5.21px;
  top: 336.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;
}

.desktop-line {
  display: none;
}

/* Features Section */
.features {
  background: linear-gradient(180deg, #4ac5ff 0%, #beeaff 100%);
  padding: 49px 23px 78px;
  border-radius: 45px;
  margin: 60px 20px 0px;
}

.features-title {
  text-align: center;
  font-size: var(--font-h2);
  font-weight: var(--font-weight-bold);
  color: white;
  margin-bottom: 51px;
  line-height: 1.34;
}

.features-title .black {
  color: #2d2d2d;
}

.feature-cards {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 20px;
  max-width: 900px;
  margin: 0 auto;
  flex-wrap: wrap;
}

.feature-card {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.feature-desc {
  font-size: var(--font-b15);
  line-height: 1.4;
  color: white;
  font-weight: var(--font-weight-bold);
}

.feature-desc .red {
  color: #ff4747;
}

.feature-img-card {
  background: white;
  border-radius: 65px;
  flex: 1;
  min-width: 250px;
  max-width: 400px;
  min-height: 208px;
  text-align: center;
  overflow: hidden;
  position: relative;
}

.feature-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 65px;
  display: block;
}

/* Benefits Section */
.benefits {
  text-align: center;
  padding: 66px 20px 80px;
}

.benefits h2 {
  font-size: var(--font-h2);
  font-weight: var(--font-weight-bold);
  margin-bottom: 66px;
  line-height: 1.34;
  letter-spacing: -1.6px;
  word-break: keep-all;
}

.benefit-cards {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 24px;
  margin: 0 auto;
}

.benefit-card {
  padding: 46px;
  border-radius: 45px;
  flex: 1;
  min-width: 280px;
  height: 442px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.benefit-card:nth-child(1),
.benefit-card:nth-child(3) {
  background: #ffd122;
}

.benefit-card:nth-child(2) {
  background: #ffb200;
}

.benefit-card h3 {
  font-size: var(--font-h2);
  font-weight: var(--font-weight-bold);
  margin-bottom: 8px;
  line-height: 1.34;
}

.benefit-card p {
  font-size: var(--font-b2);
  color: #595959;
  line-height: 1.4;
}

.benefit-card img {
  width: 100%;
  height: 240px;
  object-fit: contain;
  display: block;
  margin-top: 10px;
}

/* Footer CTA */
.footer-cta {
  text-align: center;
  padding: 73.84px 31.85px 80.72px 32.85px;
  background: linear-gradient(
    89.6deg,
    #cbf6f8 19.51%,
    #caeebc 47.23%,
    #cbf6f8 85.78%
  );
  height: 332.55px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  position: relative;
}

.footer-cta h2 {
  font-size: var(--font-h2);
  font-weight: var(--font-weight-bold);
  line-height: 1.34;
  letter-spacing: -1.6px;
  z-index: 1;
}

.footer-cta-btn {
  background: var(--brand-primary);
  border: none;
  border-radius: 30px;
  font-size: var(--font-b4);
  height: 48px;
  width: 160px;
  font-weight: bold;
  cursor: pointer;
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 100;
  transition: all 0.3s ease;
}

.footer-cta-btn:hover {
  background: var(--brand-secondary);
  transform: translateY(-2px);
  color: #000000;
  box-shadow: 0 6px 20px rgba(255, 215, 0, 0.4);
}

.footer-cta-btn:active {
  transform: translateY(0);
}

.footer-blue-icon {
  position: absolute;
  top: 0;
  left: 0;
}

.footer-yellow-icon {
  position: absolute;
  bottom: 0;
  right: 0;
}

.footer-blue-icon-t,
.footer-blue-icon-d,
.footer-yellow-icon-t,
.footer-yellow-icon-d {
  display: none;
}

.footer-b-d,
.footer-b-t,
.footer-s {
  display: none;
}

/* 태블릿 (800px 이상) - 가로 레이아웃 */
@media (min-width: 800px) {
  .home {
    padding-top: 88px;
  }

  .hero {
    height: 228.66px;
    margin-top: 64px;
    padding: 0px 100px;
  }

  .letter-container {
    height: 101px;
  }

  .letter-container .main-letter {
    font-size: var(--font-h1);
    letter-spacing: -1.8px;
    line-height: 1.25;
  }

  .letter-container .sub-letter {
    font-size: var(--font-h3);
    letter-spacing: -0.64px;
    line-height: 1.4;
  }

  /* 검색창 */

  .input-container {
    width: 100%;
    max-width: 600px;
    height: auto;
    margin: 0 auto;
  }

  .input-wrapper {
    flex-direction: row;
    gap: 0;
    height: 61.66px;
    background: white;
    border-radius: 50px;
    padding: 6.8px 12px 6.8px 26px;
    box-shadow: 2.47px 2.47px 14.92px 0px #b5def2;
  }

  .input-box {
    display: none; /* 태블릿 이상에서는 숨김 */
  }

  .input-field {
    display: block;
    flex: 1;
    border: none;
    outline: none;
    font-size: var(--font-b15);
    color: #333;
    width: 100%;
    padding: 12px 0;
  }

  .input-wrapper:focus-within {
    box-shadow: 0 0 0 2px #ffd122, 2.47px 2.47px 14.92px 0px #b5def2;
  }

  .input-field::placeholder {
    color: #999;
  }

  .submit-btn {
    display: flex;
    justify-content: center;
    align-items: center;
    line-height: 1.4;
  }

  .preview {
    margin: 80px 0;
    padding: 0 62px;
  }

  .preview-mobile {
    display: none;
  }

  .preview-tablet {
    display: block;
    position: relative;
    width: 720px;
  }

  .preview-tablet .iphone-mockup {
    width: auto;
    height: auto;
    animation: slideInFromBottom 1.2s ease-out;
  }

  /* 질문 (검정색) */
  .preview-tablet .chat-question {
    position: absolute;
    z-index: 11;
    top: 50.34px;
    left: 236.45px;
    width: auto;
    height: auto;
  }

  /* 지피톡봇 (노란색) */
  .preview-tablet .chat-gpt {
    position: absolute;
    right: 243.55px;
    top: 160.06px;
    z-index: 8;
    width: auto;
    height: auto;
  }

  /* 친구봇 (파란색)  */
  .preview-tablet .chat-friendbot {
    position: absolute;
    right: 292.77px;
    top: 347.05px;
    z-index: 9;
    width: auto;
    height: auto;
  }

  .preview-desktop {
    display: none;
  }

  .desktop-line {
    display: none;
  }

  /*features*/
  .features {
    padding: 78px 21px 78px;
    margin: 60px 40px 0px;
  }

  .feature-cards {
    flex-direction: row;
    flex-wrap: nowrap;
  }

  .feature-card {
    gap: 25px;
  }

  .feature-desc {
    font-size: var(--font-h4);
  }

  .feature-img-card {
    flex: 1;
    min-height: 296px;
    min-width: 329px;
    max-width: none;
  }

  .feature-img {
    min-height: 296px;
  }

  /*benefit*/

  .benefits {
    text-align: center;
    padding: 66px 40px 80px;
  }

  .benefit-card img {
    margin-top: 32px;
  }

  /* footer cta*/
  .footer-blue-icon,
  .footer-yellow-icon,
  .footer-blue-icon-d,
  .footer-yellow-icon-d {
    display: none;
  }

  .footer-blue-icon-t {
    display: flex;
    position: absolute;
    top: 0;
    left: 0;
  }

  .footer-yellow-icon-t {
    display: flex;
    position: absolute;
    bottom: 0;
    right: 0;
    z-index: 1;
  }

  .footer-b-d {
    display: none;
  }

  .footer-b-t {
    display: flex;
    position: absolute;
    top: 0;
    right: 0;
  }

  .footer-s {
    display: flex;
    position: absolute;
    bottom: 0;
  }
}

/* 데스크탑 (1280px 이상) */
@media (min-width: 1280px) {
  .container {
    max-width: 700px;
  }

  .input-wrapper {
    padding: 10px 10px 10px 32px;
  }

  .input-field {
    font-size: 16px;
    padding: 14px 0;
  }

  .submit-btn {
    display: flex;
    justify-content: center;
    align-items: center;
    line-height: 1.4;
  }

  .preview {
    margin: 61px auto 0;
  }

  .preview-mobile {
    display: none;
  }

  .preview-tablet {
    display: none;
  }

  .preview-desktop {
    display: block;
    position: relative;
  }

  .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: -15.66px;
    right: -186px;
    width: auto;
    height: auto;
  }

  /* 지피톡봇 (노란색) */
  .preview-desktop .chat-gpt {
    position: absolute;
    left: -187px;
    top: 47.22px;
    z-index: 8;
    width: auto;
    height: auto;
  }

  /* 친구봇 (파란색)  */
  .preview-desktop .chat-friendbot {
    position: absolute;
    left: -187px;
    top: 281.34px;
    z-index: 9;
    width: auto;
    height: auto;
  }

  .desktop-line {
    display: block;
  }

  /*feature*/
  .features {
    padding: 78px 73px 78px;
    max-width: 1200px;
    margin: 60px auto;
  }

  .feature-img-card {
    border-radius: 77px;
  }

  .feature-img-card {
    min-height: 393px;
    min-width: 517px;
  }

  .feature-img {
    min-height: 393px;
    /* width: auto; */
  }

  /* Benefits Section */
  .benefits {
    max-width: 1200px;
    margin: 0 auto;
    padding: 60px 0px 66px;
  }
  .benefit-cards {
    flex-direction: row;
  }

  .benefit-card {
    padding: 46px 32px;
    align-items: flex-start;
    justify-content: start;
    position: relative;
  }

  .benefit-card p {
    text-align: start;
  }

  .benefit-card img {
    position: absolute;
    top: 30%;
    transform: scale(0.77762);
  }

  .benefit-card h3 {
    font-size: var(--font-h4);
    margin-bottom: 8px;
    line-height: 1.2;
  }

  /* footer cta*/
  .footer-blue-icon,
  .footer-yellow-icon,
  .footer-blue-icon-t,
  .footer-yellow-icon-t {
    display: none;
  }

  .footer-blue-icon-d {
    display: flex;
    position: absolute;
    top: 0;
    left: 0;
  }

  .footer-yellow-icon-d {
    display: flex;
    position: absolute;
    bottom: 0;
    right: 0;
  }

  .footer-b-d {
    display: flex;
    position: absolute;
    top: 0;
    left: 40%;
  }

  .footer-s {
    display: flex;
    position: absolute;
    bottom: 0;
    left: 27%;
  }

  .footer-b-t {
    display: none;
  }
}

.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 float {
  0%,
  100% {
    transform: translateY(0px);
  }
  50% {
    transform: translateY(-10px);
  }
} */

/* 페이드인 + 슬라이드 애니메이션 */
@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;
  }
}

@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;
  }
}
