/* 기본 설정 */
:root {
  /* 색상 변수 */
  --primary-color: #1E88E5;
  --primary-dark: #0D47A1;
  --primary-light: #64B5F6;
  --accent-color: #2962FF;
  --text-color: #263238;
  --text-light: #78909C;
  --bg-color: #FFFFFF;
  --bg-light: #F5F7FA;
  --bg-dark: #E3F2FD;
  --white: #FFFFFF;
  --shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  --shadow-lg: 0 10px 15px rgba(0, 0, 0, 0.1);
  
  /* 글꼴 크기 */
  --font-xl: 3rem;
  --font-lg: 2.25rem;
  --font-md: 1.5rem;
  --font-sm: 1.125rem;
  --font-xs: 1rem;
  --font-xxs: 0.875rem;
  
  /* 간격 */
  --space-xl: 5rem;
  --space-lg: 3rem;
  --space-md: 2rem;
  --space-sm: 1.5rem;
  --space-xs: 1rem;
}

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

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

.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 var(--space-xs);
}

h1, h2, h3, h4, h5, h6 {
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: var(--space-xs);
}

p {
  margin-bottom: var(--space-xs);
}

a {
  text-decoration: none;
  color: var(--primary-color);
  transition: all 0.3s ease;
}

ul {
  list-style-type: none;
}

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

/* 버튼 */
.btn {
  display: inline-block;
  padding: 0.75rem 1.5rem;
  border-radius: 50px;
  font-weight: 500;
  text-align: center;
  cursor: pointer;
  transition: all 0.3s ease;
}

.primary-btn {
  background: var(--primary-color);
  color: var(--white);
  box-shadow: var(--shadow);
}

.primary-btn:hover {
  background: var(--primary-dark);
  transform: translateY(-3px);
  box-shadow: var(--shadow-lg);
}

.btn-nav {
  background: var(--primary-color);
  color: var(--white) !important;
  padding: 0.5rem 1.25rem;
  border-radius: 50px;
  font-size: var(--font-xxs);
}

.btn-nav:hover {
  background: var(--primary-dark);
  transform: scale(1.05);
}

/* 섹션 타이틀 */
.section-title {
  text-align: center;
  margin-bottom: var(--space-lg);
}

.section-title h2 {
  font-size: var(--font-lg);
  position: relative;
  display: inline-block;
  margin-bottom: var(--space-xs);
}

.section-title h2::after {
  content: '';
  display: block;
  width: 60px;
  height: 4px;
  background: var(--primary-color);
  margin: var(--space-xs) auto 0;
  border-radius: 2px;
}

.section-title p {
  color: var(--text-light);
  max-width: 700px;
  margin: 0 auto;
}

/* 헤더 */
header {
  position: fixed;
  width: 100%;
  top: 0;
  left: 0;
  background-color: var(--bg-color);
  box-shadow: var(--shadow);
  padding: 1rem 0;
  z-index: 100;
}

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

.logo {
  display: flex;
  align-items: center;
  font-weight: 700;
  font-size: var(--font-md);
  color: var(--primary-dark);
}

.logo svg {
  margin-right: 0.5rem;
}

.logo span {
  position: relative;
  top: 2px;
}

nav ul {
  display: flex;
}

nav ul li {
  margin-left: var(--space-sm);
}

nav ul li a {
  color: var(--text-color);
  font-weight: 500;
}

nav ul li a:hover {
  color: var(--primary-color);
}

.menu-toggle {
  display: none;
  flex-direction: column;
  justify-content: space-between;
  width: 30px;
  height: 21px;
  cursor: pointer;
}

.menu-toggle span {
  display: block;
  width: 100%;
  height: 3px;
  background-color: var(--primary-dark);
  border-radius: 3px;
  transition: all 0.3s ease;
}

/* 히어로 섹션 */
.hero {
  background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
  color: var(--white);
  padding: 10rem 0 6rem;
  text-align: center;
  clip-path: polygon(0 0, 100% 0, 100% 90%, 0 100%);
}

.hero-content {
  max-width: 800px;
  margin: 0 auto;
  padding: 0 var(--space-sm);
}

.hero h1 {
  font-size: var(--font-xl);
  margin-bottom: var(--space-sm);
  line-height: 1.2;
}

.hero p {
  font-size: var(--font-sm);
  margin-bottom: var(--space-md);
  opacity: 0.9;
}

/* 기능 섹션 */
.features {
  padding: var(--space-xl) 0;
  background-color: var(--bg-light);
}

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

.feature-card {
  background-color: var(--white);
  padding: var(--space-md);
  border-radius: 10px;
  box-shadow: var(--shadow);
  transition: all 0.3s ease;
  text-align: center;
}

.feature-card:hover {
  transform: translateY(-10px);
  box-shadow: var(--shadow-lg);
}

.feature-icon {
  width: 80px;
  height: 80px;
  margin: 0 auto var(--space-sm);
}

.feature-card h3 {
  margin-bottom: var(--space-xs);
  color: var(--primary-color);
}

/* 프로세스 섹션 */
.process {
  padding: var(--space-xl) 0;
}

.steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: var(--space-md);
  margin-bottom: var(--space-lg);
}

.step {
  background-color: var(--bg-light);
  padding: var(--space-md);
  border-radius: 10px;
  position: relative;
  box-shadow: var(--shadow);
  text-align: center;
}

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

.step h3 {
  color: var(--primary-dark);
}

.process-cta {
  text-align: center;
  margin-top: var(--space-lg);
}

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

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

.faq-item {
  background-color: var(--white);
  border-radius: 8px;
  margin-bottom: var(--space-xs);
  box-shadow: var(--shadow);
  overflow: hidden;
}

.faq-question {
  padding: var(--space-sm);
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.faq-question h3 {
  font-size: var(--font-sm);
  margin: 0;
}

.faq-question .icon {
  font-size: var(--font-md);
  color: var(--primary-color);
  font-weight: 700;
  transition: transform 0.3s ease;
}

.faq-answer {
  padding: 0 var(--space-sm);
  max-height: 0;
  overflow: hidden;
  transition: all 0.3s ease;
}

.faq-item.active .faq-answer {
  padding: 0 var(--space-sm) var(--space-sm);
  max-height: 500px;
}

/* CTA 섹션 */
.cta {
  padding: var(--space-xl) 0;
  text-align: center;
  background: linear-gradient(135deg, var(--primary-light) 0%, var(--primary-color) 100%);
  color: var(--white);
  clip-path: polygon(0 10%, 100% 0, 100% 100%, 0% 100%);
}

.cta h2 {
  margin-bottom: var(--space-sm);
  font-size: var(--font-lg);
}

.cta p {
  max-width: 700px;
  margin: 0 auto var(--space-md);
  opacity: 0.9;
}

/* 푸터 */
footer {
  padding-top: var(--space-xl);
  background-color: var(--text-color);
  color: var(--white);
}

.footer-content {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: var(--space-md);
  margin-bottom: var(--space-lg);
}

.footer-brand h3 {
  margin-top: var(--space-xs);
  font-size: var(--font-sm);
}

.footer-brand p {
  color: rgba(255, 255, 255, 0.7);
  font-size: var(--font-xxs);
}

.footer-links h4 {
  font-size: var(--font-sm);
  margin-bottom: var(--space-sm);
}

.footer-links ul li {
  margin-bottom: calc(var(--space-xs) / 2);
}

.footer-links ul li a {
  color: rgba(255, 255, 255, 0.7);
  font-size: var(--font-xxs);
  transition: all 0.2s ease;
}

.footer-links ul li a:hover {
  color: var(--white);
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding: var(--space-sm) 0;
  text-align: center;
}

.footer-bottom p {
  font-size: var(--font-xxs);
  color: rgba(255, 255, 255, 0.5);
  margin-bottom: calc(var(--space-xs) / 2);
}

/* 애니메이션 */
.fade-in {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

/* 반응형 */
@media (max-width: 992px) {
  :root {
    --font-xl: 2.5rem;
    --font-lg: 2rem;
    --font-md: 1.35rem;
  }
}

@media (max-width: 768px) {
  .menu-toggle {
    display: flex;
    z-index: 101;
  }
  
  nav {
    position: fixed;
    top: 0;
    right: -100%;
    width: 70%;
    height: 100vh;
    background-color: var(--white);
    box-shadow: var(--shadow-lg);
    display: flex;
    flex-direction: column;
    justify-content: center;
    transition: all 0.3s ease;
    z-index: 100;
  }
  
  nav.active {
    right: 0;
  }
  
  nav ul {
    flex-direction: column;
    align-items: center;
  }
  
  nav ul li {
    margin: var(--space-xs) 0;
  }
  
  .menu-toggle.active span:nth-child(1) {
    transform: translateY(9px) rotate(45deg);
  }
  
  .menu-toggle.active span:nth-child(2) {
    opacity: 0;
  }
  
  .menu-toggle.active span:nth-child(3) {
    transform: translateY(-9px) rotate(-45deg);
  }
  
  .hero {
    padding: 8rem 0 5rem;
  }
  
  .features-grid, .steps {
    grid-template-columns: 1fr;
    gap: var(--space-sm);
  }
}

@media (max-width: 576px) {
  :root {
    --font-xl: 2rem;
    --font-lg: 1.75rem;
    --font-md: 1.25rem;
    --font-sm: 1rem;
  }
  
  .section-title {
    margin-bottom: var(--space-md);
  }
  
  .hero {
    padding: 7rem 0 4rem;
  }
}
