/* 글꼴 가져오기 */
@import url('https://fonts.googleapis.com/css2?family=Noto+Sans+KR:wght@300;400;500;700&display=swap');

/* 기본 리셋 및 변수 설정 */
:root {
  --primary-color: #ff5e62;
  --secondary-color: #ff9966;
  --text-color: #333;
  --light-text: #fff;
  --dark-bg: #1a1a1a;
  --light-bg: #f8f9fa;
  --shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  --border-radius: 10px;
  --transition: all 0.3s ease;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Noto Sans KR', 'Malgun Gothic', sans-serif;
  line-height: 1.6;
  color: var(--text-color);
  overflow-x: hidden;
  background-color: var(--light-bg);
}

a {
  text-decoration: none;
  color: var(--primary-color);
  transition: var(--transition);
}

a:hover {
  color: var(--secondary-color);
}

ul {
  list-style: none;
}

img {
  max-width: 100%;
  height: auto;
}

.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

.btn {
  display: inline-block;
  padding: 12px 30px;
  background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
  color: var(--light-text);
  border: none;
  border-radius: 30px;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
  box-shadow: var(--shadow);
  text-align: center;
}

.btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
  color: var(--light-text);
}

/* 헤더 */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background-color: transparent;
  padding: 20px 0;
  transition: var(--transition);
}

.header.scrolled {
  background-color: rgba(255, 255, 255, 0.95);
  box-shadow: var(--shadow);
  padding: 10px 0;
}

.header-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  display: flex;
  align-items: center;
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--light-text);
  transition: var(--transition);
}

.header.scrolled .logo {
  color: var(--primary-color);
}

.logo svg {
  height: 40px;
  margin-right: 10px;
}

.nav-menu {
  display: flex;
  align-items: center;
}

.nav-item {
  margin-left: 30px;
}

.nav-link {
  color: var(--light-text);
  font-size: 1rem;
  font-weight: 500;
  position: relative;
}

.header.scrolled .nav-link {
  color: var(--text-color);
}

.nav-link:after {
  content: '';
  position: absolute;
  width: 0;
  height: 2px;
  bottom: -5px;
  left: 0;
  background: linear-gradient(to right, var(--primary-color), var(--secondary-color));
  transition: var(--transition);
}

.nav-link:hover:after {
  width: 100%;
}

.mobile-toggle {
  display: none;
  font-size: 1.5rem;
  color: var(--light-text);
  cursor: pointer;
  transition: var(--transition);
}

.header.scrolled .mobile-toggle {
  color: var(--text-color);
}

/* 히어로 섹션 */
.hero {
  position: relative;
  height: 100vh;
  min-height: 600px;
  display: flex;
  align-items: center;
  background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
  overflow: hidden;
}

.hero-content {
  position: relative;
  z-index: 1;
  color: var(--light-text);
  width: 100%;
}

.hero-title {
  font-size: 3.5rem;
  font-weight: 700;
  margin-bottom: 20px;
}

.hero-subtitle {
  font-size: 1.5rem;
  margin-bottom: 30px;
  max-width: 600px;
}

.hero-cta .btn {
  background: var(--light-text);
  color: var(--primary-color);
  font-weight: 700;
  font-size: 1.1rem;
}

.hero-cta .btn:hover {
  background: rgba(255, 255, 255, 0.9);
  transform: translateY(-5px);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}

/* 특징 섹션 */
.features {
  padding: 100px 0;
  background-color: var(--light-bg);
}

.section-title {
  text-align: center;
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 50px;
  position: relative;
}

.section-title:after {
  content: '';
  position: absolute;
  width: 80px;
  height: 4px;
  background: linear-gradient(to right, var(--primary-color), var(--secondary-color));
  bottom: -15px;
  left: 50%;
  transform: translateX(-50%);
}

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

.feature-card {
  background-color: #fff;
  border-radius: var(--border-radius);
  box-shadow: var(--shadow);
  padding: 30px;
  text-align: center;
  transition: var(--transition);
}

.feature-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.15);
}

.feature-icon {
  width: 70px;
  height: 70px;
  margin: 0 auto 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
  border-radius: 50%;
  color: var(--light-text);
  font-size: 1.8rem;
}

.feature-title {
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 15px;
}

/* 작동 방식 섹션 */
.how-it-works {
  padding: 100px 0;
  background-color: #fff;
}

.steps-container {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  margin-top: 50px;
}

.step {
  flex: 0 0 calc(33.333% - 20px);
  text-align: center;
  padding: 20px;
  position: relative;
}

.step-number {
  width: 50px;
  height: 50px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
  color: var(--light-text);
  font-size: 1.5rem;
  font-weight: 700;
  border-radius: 50%;
  margin: 0 auto 20px;
}

.step-title {
  font-size: 1.3rem;
  font-weight: 700;
  margin-bottom: 15px;
}

/* FAQ 섹션 */
.faq {
  padding: 100px 0;
  background-color: var(--light-bg);
}

.faq-item {
  margin-bottom: 20px;
  border-radius: var(--border-radius);
  overflow: hidden;
  box-shadow: var(--shadow);
}

.faq-question {
  padding: 20px;
  background-color: #fff;
  font-weight: 600;
  font-size: 1.1rem;
  cursor: pointer;
  position: relative;
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: var(--transition);
}

.faq-question:hover {
  background-color: rgba(255, 94, 98, 0.05);
}

.faq-question:after {
  content: '+';
  font-size: 1.5rem;
  transition: var(--transition);
}

.faq-question.active:after {
  transform: rotate(45deg);
}

.faq-answer {
  padding: 0 20px;
  max-height: 0;
  overflow: hidden;
  background-color: #fff;
  transition: max-height 0.4s ease, padding 0.4s ease;
}

.faq-answer.active {
  padding: 20px;
  max-height: 1000px;
}

/* CTA 섹션 */
.cta {
  padding: 80px 0;
  background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
  color: var(--light-text);
  text-align: center;
}

.cta-title {
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 20px;
}

.cta-text {
  font-size: 1.2rem;
  margin-bottom: 30px;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
}

/* 푸터 */
.footer {
  padding: 50px 0;
  background-color: var(--dark-bg);
  color: #fff;
}

.footer-container {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
}

.footer-logo {
  flex: 0 0 100%;
  margin-bottom: 30px;
  display: flex;
  align-items: center;
}

.footer-logo svg {
  height: 40px;
  margin-right: 10px;
}

.footer-logo-text {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--light-text);
}

.footer-links {
  flex: 1;
  margin-right: 20px;
}

.footer-heading {
  font-size: 1.2rem;
  font-weight: 600;
  margin-bottom: 20px;
  position: relative;
}

.footer-heading:after {
  content: '';
  position: absolute;
  width: 40px;
  height: 3px;
  background: linear-gradient(to right, var(--primary-color), var(--secondary-color));
  bottom: -8px;
  left: 0;
}

.footer-link-item {
  margin-bottom: 10px;
}

.footer-link {
  color: rgba(255, 255, 255, 0.7);
}

.footer-link:hover {
  color: var(--light-text);
}

.copyright {
  width: 100%;
  text-align: center;
  padding-top: 30px;
  margin-top: 30px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  color: rgba(255, 255, 255, 0.5);
}

/* 반응형 */
@media (max-width: 991px) {
  .hero-title {
    font-size: 2.8rem;
  }
  
  .section-title {
    font-size: 2rem;
  }
  
  .step {
    flex: 0 0 calc(50% - 20px);
    margin-bottom: 30px;
  }
}

@media (max-width: 768px) {
  .hero-title {
    font-size: 2.2rem;
  }
  
  .hero-subtitle {
    font-size: 1.2rem;
  }
  
  .mobile-toggle {
    display: block;
  }
  
  .nav-menu {
    position: fixed;
    top: 0;
    right: -100%;
    width: 250px;
    height: 100vh;
    background-color: #fff;
    flex-direction: column;
    align-items: flex-start;
    padding: 80px 0 30px 0;
    transition: 0.4s;
    box-shadow: -5px 0 15px rgba(0, 0, 0, 0.1);
  }
  
  .nav-menu.active {
    right: 0;
  }
  
  .nav-item {
    margin: 0;
    width: 100%;
    padding: 10px 30px;
  }
  
  .nav-link {
    color: var(--text-color);
    font-size: 1.1rem;
    width: 100%;
    display: block;
  }
  
  .footer-container {
    flex-direction: column;
  }
  
  .footer-links {
    margin-bottom: 30px;
  }
}

@media (max-width: 576px) {
  .hero {
    min-height: 500px;
  }
  
  .features-container {
    grid-template-columns: 1fr;
  }
  
  .step {
    flex: 0 0 100%;
  }
}
