/* 다크 테마 스페이스 컨셉과 보라색 메인 컬러를 적용한 스타일시트 */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: "Outfit", sans-serif;
  background-color: #0c0c16;
  color: #e9ecef;
  line-height: 1.6;
}

a {
  text-decoration: none;
  color: inherit;
}

ul {
  list-style: none;
}

.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  position: relative;
  z-index: 2;
}

/* 별 배경 효과 */
.stars {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
  background-image: radial-gradient(
      1px 1px at 25px 30px,
      white,
      rgba(0, 0, 0, 0)
    ),
    radial-gradient(1px 1px at 50px 80px, white, rgba(0, 0, 0, 0)),
    radial-gradient(2px 2px at 100px 50px, white, rgba(0, 0, 0, 0)),
    radial-gradient(1px 1px at 150px 120px, white, rgba(0, 0, 0, 0)),
    radial-gradient(2px 2px at 200px 200px, white, rgba(0, 0, 0, 0)),
    radial-gradient(1px 1px at 250px 150px, white, rgba(0, 0, 0, 0)),
    radial-gradient(1px 1px at 300px 100px, white, rgba(0, 0, 0, 0));
  background-repeat: repeat;
  background-size: 300px 300px;
}

/* 제목 스타일 */
.section-title {
  text-align: center;
  margin-bottom: 50px;
  font-size: 2.5rem;
  font-weight: 700;
  color: #fff;
  position: relative;
}

.section-title::after {
  content: "";
  display: block;
  width: 80px;
  height: 3px;
  background: linear-gradient(90deg, #9c27b0, #673ab7);
  margin: 15px auto 0;
  border-radius: 2px;
}

/* 버튼 스타일 */
.btn {
  display: inline-block;
  padding: 12px 24px;
  border-radius: 6px;
  font-weight: 500;
  transition: all 0.3s ease;
  cursor: pointer;
  text-align: center;
}

.btn-primary {
  background: linear-gradient(135deg, #9c27b0, #673ab7);
  color: white;
  box-shadow: 0 4px 15px rgba(156, 39, 176, 0.4);
}

.btn-primary:hover {
  box-shadow: 0 6px 20px rgba(156, 39, 176, 0.6);
  transform: translateY(-2px);
}

.btn-secondary {
  background-color: rgba(255, 255, 255, 0.1);
  color: #e9ecef;
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.btn-secondary:hover {
  background-color: rgba(255, 255, 255, 0.15);
  border-color: rgba(255, 255, 255, 0.3);
}

.placeholder-image {
  width: 100%;
  height: 400px;
  background-color: rgba(30, 30, 45, 0.5);
  border-radius: 10px;
  display: flex;
  justify-content: center;
  align-items: center;
  color: #adb5bd;
  font-size: 1.5rem;
  border: 1px solid rgba(156, 39, 176, 0.3);
  box-shadow: 0 5px 25px rgba(0, 0, 0, 0.2);
}

/* 사용 방법 섹션 */
.how-it-works {
  padding: 100px 0;
  background-color: #0a0a14;
  position: relative;
}

.steps {
  display: flex;
  justify-content: space-between;
  gap: 30px;
}

.step {
  flex: 1;
  padding: 30px;
  border-radius: 10px;
  background-color: rgba(30, 30, 45, 0.8);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
  text-align: center;
  position: relative;
  border: 1px solid rgba(156, 39, 176, 0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.step:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3), 0 0 10px rgba(156, 39, 176, 0.3);
  border-color: rgba(156, 39, 176, 0.3);
}

.step-number {
  width: 40px;
  height: 40px;
  background: linear-gradient(135deg, #9c27b0, #673ab7);
  color: white;
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  margin: 0 auto 20px;
  font-weight: 700;
  box-shadow: 0 0 15px rgba(156, 39, 176, 0.5);
}

.step h3 {
  margin-bottom: 15px;
  font-size: 1.25rem;
  color: #fff;
}

.step p {
  color: #adb5bd;
}

/* 데모 섹션 */
.demo {
  padding: 100px 0;
  background-color: #0c0c16;
  position: relative;
}

.demo-container {
  max-width: 800px;
  margin: 0 auto;
}

/* CTA 섹션 */
.cta {
  padding: 80px 0;
  background: linear-gradient(135deg, #0a0a14, #1e1e36);
  color: white;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.cta h2 {
  font-size: 2.5rem;
  margin-bottom: 20px;
  color: #fff;
  text-shadow: 0 0 10px rgba(156, 39, 176, 0.5);
}

.cta p {
  max-width: 600px;
  margin: 0 auto 30px;
  font-size: 1.125rem;
  color: #adb5bd;
}

/* 푸터 */
.footer {
  padding: 80px 0 30px;
  background-color: #080810;
  color: #adb5bd;
  position: relative;
}

.footer::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 1px;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(156, 39, 176, 0.5),
    transparent
  );
}

.footer-content {
  display: flex;
  justify-content: space-between;
  margin-bottom: 50px;
}

.footer-logo h3 {
  color: #9c27b0;
  font-size: 1.5rem;
  margin-bottom: 10px;
}

.footer-links {
  display: flex;
  gap: 50px;
}

.footer-links-column h4 {
  color: white;
  margin-bottom: 20px;
  font-size: 1.125rem;
}

.footer-links-column ul li {
  margin-bottom: 10px;
}

.footer-links-column a:hover {
  color: #9c27b0;
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 30px;
  border-top: 1px solid #1a1a27;
}

.footer-social {
  display: flex;
  gap: 20px;
}

.footer-social a:hover {
  color: #9c27b0;
}

/* 서비스 시작하기 섹션 스타일 */
.start-service {
  padding: 100px 0;
  background-color: #0c0c16;
  position: relative;
}

.service-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 50px;
  max-width: 1000px;
  margin: 0 auto;
}

.service-description {
  flex: 3;
}

.service-description p {
  font-size: 1.125rem;
  margin-bottom: 30px;
  color: #e9ecef;
}

.service-features {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 20px;
}

.service-feature {
  display: flex;
  align-items: center;
  gap: 15px;
}

.service-feature-icon {
  color: #9c27b0;
  font-size: 1.25rem;
}

.service-cta {
  flex: 2;
  text-align: center;
}

.btn-large {
  padding: 15px 30px;
  font-size: 1.1rem;
  margin-bottom: 15px;
}

.service-note {
  color: #adb5bd;
  font-size: 0.9rem;
}

/* 네비게이션 버튼 스타일 추가 */
.nav ul li {
  display: flex;
  align-items: center;
}

.nav ul li .btn {
  white-space: nowrap;
}

/* GitHub 버튼 스타일 */
.github-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.github-btn i {
  font-size: 1.2rem;
}

/* 반응형 디자인 */
@media (max-width: 992px) {
  .steps {
    flex-direction: column;
  }

  .footer-content {
    flex-direction: column;
    gap: 40px;
  }

  .footer-links {
    flex-wrap: wrap;
    gap: 30px;
  }

  .service-content {
    flex-direction: column;
  }
}

@media (max-width: 768px) {
  .header .container {
    flex-direction: column;
  }

  .nav ul {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    grid-row-gap: 10px;
    text-align: center;
    margin-top: 10px;
  }
  /* 텍스트 메뉴 항목 (1-3번) 스타일 */
  .nav ul li:nth-child(-n + 3) {
    text-align: center;
    padding: 0 1px;
  }

  /* 텍스트 항목 안의 링크 스타일 */
  .nav ul li:nth-child(-n + 3) a {
    white-space: nowrap; /* 단어 분리 방지 */
    font-size: 0.85rem; /* 글자 크기 축소 */
  }

  /* 버튼 항목(4-5번)은 다음 줄 전체 차지 */
  .nav ul li:nth-child(4),
  .nav ul li:nth-child(5) {
    grid-column: span 3;
    margin-top: 5px;
    text-align: center;
  }
  .nav ul li .btn {
    padding: 8px 16px;
    font-size: 0.9rem;
  }

  .section-title {
    font-size: 2rem;
  }

  .footer-bottom {
    flex-direction: column;
    gap: 20px;
    text-align: center;
  }

  .service-features {
    grid-template-columns: 1fr;
  }
  .footer-content {
    text-align: center;
  }

  .footer-logo {
    margin: 0 auto;
  }

  .footer-links {
    flex-direction: column;
    gap: 30px;
    width: 100%;
    align-items: center;
  }

  .footer-links-column {
    width: 100%;
    text-align: center;
  }

  .footer-links-column ul {
    display: flex;
    flex-direction: column;
    align-items: center;
  }
}

@media (max-width: 480px) {
  .nav ul {
    grid-template-columns: 1fr;
  }

  .nav ul li,
  .nav ul li:nth-child(4),
  .nav ul li:nth-child(5) {
    grid-column: 1;
  }

  .nav ul li .btn {
    width: 100%;
    margin-bottom: 5px;
  }
}
