/* 기본 설정 */
:root {
  --primary-color: #53B2AC;
  --primary-dark: #129c8b;
  --primary-light: #edf8f6;
  --secondary-color: #1e1e1e;
  --text-color: #333;
  --text-light: #666;
  --background-color: #fff;
  --background-light: #f9f9f9;
  --border-color: #e0e0e0;
  --shadow-color: rgb(0 0 0 / 10%);
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 20px;
  --transition: all 0.3s ease;
}

/* 메인 컨텐츠 */
.main-content {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

/* 섹션 공통 스타일 */
section {
  padding: 80px 0;
  position: relative;
}

.section-header {
  text-align: center;
  margin-bottom: 60px;
}

.section-title {
  font-size: 36px;
  font-weight: 700;
  margin-bottom: 16px;
  color: var(--secondary-color);
}

.section-subtitle {
  font-size: 18px;
  color: var(--text-light);
  max-width: 700px;
  margin: 0 auto;
}

.highlight {
  color: var(--primary-color);
  position: relative;
  display: inline-block;
}

.highlight::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 8px;
  background-color: rgb(83 178 172 / 20%);
  z-index: -1;
}

/* 히어로 섹션 */
.hero-section {
  padding: 100px 0 80px;
  background: linear-gradient(135deg, #f9f9f9 0%, #edf8f6 100%);
  border-radius: var(--radius-lg);
  margin-top: 30px;
}

.hero-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
  padding: 0 40px; /* 양쪽에 패딩 추가 */
  max-width: 1100px; /* 최대 너비 설정 */
  margin: 0 auto; /* 중앙 정렬 */
}

.hero-text {
  flex: 1;
  max-width: 600px;
  padding-left: 20px; /* 왼쪽 패딩 추가 */
}

.hero-title {
  font-size: 48px;
  line-height: 1.2;
  margin-bottom: 24px;
}

.hero-title-normal {
  display: block;
  font-weight: 400;
  color: var(--text-color);
}

.hero-title-highlight {
  display: inline-block;
  color: var(--primary-color);
  font-weight: 700;
  position: relative;
}

.hero-title-highlight::after {
  content: '';
  position: absolute;
  bottom: 5px;
  left: 0;
  width: 100%;
  height: 10px;
  background-color: rgb(83 178 172 / 20%);
  z-index: -1;
}

.hero-title-main {
  display: block;
  font-weight: 700;
  color: var(--secondary-color);
}

.hero-subtitle {
  font-size: 18px;
  color: var(--text-light);
  margin-bottom: 40px;
}

.hero-buttons {
  display: flex;
  gap: 16px;
}

.hero-button, .cta-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 28px;
  border-radius: 50px;
  font-size: 16px;
  font-weight: 600;
  text-decoration: none;
  transition: var(--transition);
  cursor: pointer;
}

.primary-button {
  background-color: var(--primary-color);
  color: white;
  box-shadow: 0 4px 12px rgb(83 178 172 / 30%);
}

.primary-button:hover {
  background-color: var(--primary-dark);
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgb(83 178 172 / 40%);
}

.secondary-button {
  background-color: white;
  color: var(--primary-color);
  border: 2px solid var(--primary-color);
}

.secondary-button:hover {
  background-color: var(--primary-light);
  transform: translateY(-2px);
}

.button-icon {
  width: 20px;
  height: 20px;
}

.hero-image {
  flex: 1;
  max-width: 500px;
}

/* 챗 컨테이너 */
.chat-container {
  background-color: white;
  border-radius: var(--radius-md);
  box-shadow: 0 10px 30px rgb(0 0 0 / 10%);
  overflow: hidden;
  padding: 20px;
  height: 400px;
  display: flex;
  flex-direction: column;
}

.chat-messages {
  flex: 1;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding-right: 10px;
}

.chat-message {
  display: flex;
  gap: 12px;
  max-width: 80%;
}

.chat-message.user {
  align-self: flex-end;
}

.chat-message.bot {
  align-self: flex-start;
}

/* bot-avatar 스타일 수정 */
.bot-avatar {
  width: 40px;
  height: 40px;
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  flex-shrink: 0;
  overflow: hidden; /* 이미지가 원형 안에 들어가도록 */
}

.avatar-image {
  width: 100%;
  height: 100%;
  object-fit: cover; /* 이미지 비율 유지하면서 영역 채우기 */
}

.message-bubble {
  padding: 12px 16px;
  border-radius: 18px;
  font-size: 16px;
  line-height: 1.5;
}

.chat-message.user .message-bubble {
  background-color: var(--primary-color);
  color: white;
  border-bottom-right-radius: 4px;
}

.chat-message.bot .message-bubble {
  background-color: var(--background-light);
  color: var(--text-color);
  border-bottom-left-radius: 4px;
}

/* 특징 섹션 */
.features-section {
  background-color: var(--background-light);
  border-radius: var(--radius-lg);
  padding: 80px 40px;
}

.features-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
  margin-bottom: 60px;
}

.feature-card {
  background-color: white;
  border-radius: var(--radius-md);
  padding: 30px;
  box-shadow: 0 5px 20px var(--shadow-color);
  transition: var(--transition);
  opacity: 0;
  transform: translateY(20px);
}

.feature-card.animate {
  opacity: 1;
  transform: translateY(0);
}

.feature-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 30px rgb(0 0 0 / 15%);
}

.feature-icon {
  width: 60px;
  height: 60px;
  background-color: var(--primary-light);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
}

.feature-icon svg {
  width: 30px;
  height: 30px;
  color: var(--primary-color);
}

.feature-title {
  font-size: 20px;
  font-weight: 600;
  margin-bottom: 12px;
  color: var(--secondary-color);
}

.feature-description {
  color: var(--text-light);
  line-height: 1.6;
}

.features-cta {
  text-align: center;
}

.cta-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 28px;
  border-radius: 50px;
  font-size: 16px;
  font-weight: 600;
  text-decoration: none;
  transition: var(--transition);
  background-color: var(--primary-color);
  color: white;
  box-shadow: 0 4px 12px rgb(83 178 172 / 30%);
}

.cta-button:hover {
  background-color: var(--primary-dark);
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgb(83 178 172 / 40%);
}

/* 사용 방법 섹션 */
.how-it-works-section {
  padding: 100px 0;
}

.steps-container {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
  max-width: 1000px;
  margin: 0 auto;
}

.step-card {
  background-color: white;
  border-radius: var(--radius-md);
  padding: 30px;
  box-shadow: 0 5px 20px var(--shadow-color);
  flex: 1;
  text-align: center;
  transition: var(--transition);
  opacity: 0;
  transform: translateY(20px);
}

.step-card.animate {
  opacity: 1;
  transform: translateY(0);
}

.step-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 30px rgb(0 0 0 / 15%);
}

.step-number {
  width: 50px;
  height: 50px;
  background-color: var(--primary-color);
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  font-weight: 700;
  margin: 0 auto 20px;
}

.step-title {
  font-size: 20px;
  font-weight: 600;
  margin-bottom: 12px;
  color: var(--secondary-color);
}

.step-description {
  color: var(--text-light);
  line-height: 1.6;
}

.step-connector {
  width: 60px;
  height: 2px;
  background-color: var(--primary-color);
  position: relative;
}

.step-connector::before, .step-connector::after {
  content: '';
  position: absolute;
  width: 10px;
  height: 10px;
  background-color: var(--primary-color);
  border-radius: 50%;
  top: 50%;
  transform: translateY(-50%);
}

.step-connector::before {
  left: 0;
}

.step-connector::after {
  right: 0;
}

/* 예시 질문 섹션 */
.example-section {
  background-color: var(--background-light);
  border-radius: var(--radius-lg);
  padding: 80px 40px;
  margin-bottom: 80px;
}

.examples-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 30px;
  margin-bottom: 60px;
}

.example-card {
  background-color: white;
  border-radius: var(--radius-md);
  padding: 30px;
  box-shadow: 0 5px 20px var(--shadow-color);
  text-align: center;
  transition: var(--transition);
  opacity: 0;
  transform: translateY(20px);
}

.example-card.animate {
  opacity: 1;
  transform: translateY(0);
}

.example-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 30px rgb(0 0 0 / 15%);
}

.example-icon {
  font-size: 40px;
  margin-bottom: 20px;
}

.example-text {
  color: var(--text-color);
  font-size: 18px;
  line-height: 1.6;
}

.examples-cta {
  text-align: center;
}

/* 반응형 디자인 */
@media (width <= 992px) {
  .hero-container {
    flex-direction: column;
    padding: 0 20px; /* 모바일에서는 패딩 줄임 */
  }

  .hero-text,
  .hero-image {
    max-width: 100%;
    padding-left: 0; /* 모바일에서는 왼쪽 패딩 제거 */
  }

  .steps-container {
    flex-direction: column;
  }

  .step-connector {
    width: 2px;
    height: 60px;
    margin: 20px 0;
  }

  .step-connector::before,
  .step-connector::after {
    left: 50%;
    transform: translate(-50%, 0);
  }

  .step-connector::before {
    top: 0;
  }

  .step-connector::after {
    top: auto;
    bottom: 0;
  }
}

@media (width <= 768px) {
  .section-title {
    font-size: 28px;
  }
  
  .hero-title {
    font-size: 36px;
  }
  
  .hero-subtitle {
    font-size: 16px;
  }
  
  .feature-card, .step-card, .example-card {
    padding: 20px;
  }
  
  .examples-container {
    grid-template-columns: 1fr;
  }
}

@media (width <= 480px) {
  section {
    padding: 60px 0;
  }
  
  .hero-section {
    padding: 60px 0 40px;
  }
  
  .hero-title {
    font-size: 28px;
  }
  
  .hero-buttons {
    flex-direction: column;
    width: 100%;
  }
  
  .hero-button, .cta-button {
    width: 100%;
  }
  
  .chat-container {
    height: 300px;
  }
}

/* 애니메이션 지연 효과 */
.feature-card:nth-child(1) {
  transition-delay: 0.1s;
}

.feature-card:nth-child(2) {
  transition-delay: 0.2s;
}

.feature-card:nth-child(3) {
  transition-delay: 0.3s;
}

.step-card:nth-child(1) {
  transition-delay: 0.1s;
}

.step-card:nth-child(3) {
  transition-delay: 0.2s;
}

.step-card:nth-child(5) {
  transition-delay: 0.3s;
}

.example-card:nth-child(1) {
  transition-delay: 0.1s;
}

.example-card:nth-child(2) {
  transition-delay: 0.2s;
}

.example-card:nth-child(3) {
  transition-delay: 0.3s;
}

.example-card:nth-child(4) {
  transition-delay: 0.4s;
}