/* 전역 스타일 및 기본 설정 */
/* 테마 색상은 config.js에서 동적으로 설정됩니다 */
:root {
  --purple: var(--theme-primary, #e6a0ff);
  --purple-dark: var(--theme-primary-dark, #9966cc);
  --purple-light: var(--theme-primary-light, #f2b3ff);
  --blue: var(--theme-secondary, #66d9ff);
  --blue-light: var(--theme-secondary-light, #99e6ff);
  --bg: var(--theme-background, #fff8fc);
  --white: var(--theme-white, #fff);
  --gray: var(--theme-gray, #6b7280);
  --gradient: linear-gradient(135deg, #ff6b9d, #c44dff, #8e44ad);
  --sky-gradient: linear-gradient(135deg, #00d4ff, #66d9ff, #b3ecff);
  --shadow: 0 4px 20px rgba(156,136,255,.10);
}

body {
  font-family: 'Noto Sans KR', sans-serif, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu;
  margin: 0;
  background: linear-gradient(135deg, 
    #fff8fc 0%, 
    #f0f8ff 25%, 
    #fff0f8 50%, 
    #f8f0ff 75%, 
    #fff8fc 100%);
  background-attachment: fixed;
  color: #1a1a1a;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
  width: 100%;
  max-width: 100%;
  position: relative;
  -webkit-overflow-scrolling: touch;
  touch-action: pan-y;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  overflow-x: hidden;
  width: 100%;
  box-sizing: border-box;
}

/* ===== 섹션 타이틀 ===== */
.section-title {
  text-align: center;
  margin-bottom: 2rem;
  position: relative;
  font-size: 2rem;
  color: var(--purple-dark);
}

.section-title:after {
  content: '';
  display: block;
  width: 80px;
  height: 3px;
  background: var(--sky-gradient);
  margin: 15px auto 0;
  border-radius: 2px;
}

/* ===== 버튼 스타일 (3D 효과) ===== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 30px;
  padding: 12px 30px;
  font-weight: 600;
  border: none;
  cursor: pointer;
  text-decoration: none;
  transition: all 0.3s ease;
  min-height: 48px;
  font-size: 1rem;
  box-sizing: border-box;
  width: 100%;
  position: relative;
  box-shadow: 
    0 6px 20px rgba(0,0,0,0.2),
    inset 0 1px 0 rgba(255,255,255,0.3),
    inset 0 -1px 0 rgba(0,0,0,0.1);
  text-shadow: 0 1px 2px rgba(0,0,0,0.2);
  transform: translateY(0);
}

.btn:hover {
  transform: translateY(-2px);
  box-shadow: 
    0 8px 25px rgba(0,0,0,0.25),
    inset 0 1px 0 rgba(255,255,255,0.4),
    inset 0 -1px 0 rgba(0,0,0,0.15);
}

.btn:active {
  transform: translateY(1px);
  box-shadow: 
    0 3px 10px rgba(0,0,0,0.3),
    inset 0 1px 0 rgba(255,255,255,0.2),
    inset 0 -1px 0 rgba(0,0,0,0.2);
}

.btn-primary {
  background: linear-gradient(145deg, #fff, #f0f0f0);
  color: var(--purple-dark);
  border: 2px solid var(--purple-light);
}

.btn-primary:hover {
  background: linear-gradient(145deg, #f8f8f8, #e8e8e8);
  border-color: var(--purple);
}

.btn-secondary {
  background: linear-gradient(145deg, rgba(255,255,255,0.2), rgba(255,255,255,0.1));
  color: #fff;
  border: 2px solid #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.btn-secondary:hover {
  background: linear-gradient(145deg, rgba(255,255,255,0.3), rgba(255,255,255,0.15));
  border-color: rgba(255,255,255,0.9);
}

.btn-icon {
  width: 20px;
  height: 20px;
  object-fit: contain;
  flex-shrink: 0;
}

/* CTA 버튼 스타일 */
.cta-btn {
  background: var(--sky-gradient);
  color: #fff;
  border-radius: 50px;
  padding: 7px 16px;
  transition: all 0.3s ease;
  font-size: 0.95rem;
  box-shadow: 
    0 4px 15px rgba(0,191,255,0.3),
    inset 0 1px 0 rgba(255,255,255,0.3),
    inset 0 -1px 0 rgba(0,0,0,0.1);
  text-shadow: 0 1px 2px rgba(0,0,0,0.2);
}

.cta-btn:hover {
  transform: translateY(-2px);
  box-shadow: 
    0 6px 20px rgba(0,191,255,0.4),
    inset 0 1px 0 rgba(255,255,255,0.4),
    inset 0 -1px 0 rgba(0,0,0,0.15);
}

.cta-btn:active {
  transform: translateY(1px);
  box-shadow: 
    0 2px 8px rgba(0,191,255,0.5),
    inset 0 1px 0 rgba(255,255,255,0.2),
    inset 0 -1px 0 rgba(0,0,0,0.2);
}

/* 공통 클릭 효과 */
.clickable {
  cursor: pointer;
  position: relative;
  overflow: hidden;
}

.clickable:after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(255,255,255,0.1);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.clickable:hover:after {
  opacity: 1;
}

/* 폼 스타일 */
.form-group {
  margin-bottom: 20px;
  width: 100%;
  box-sizing: border-box;
}

.form-group label {
  display: block;
  margin-bottom: 8px;
  font-weight: 600;
  color: var(--purple-dark);
}

.form-group input {
  width: 100%;
  padding: 12px 15px;
  border-radius: 8px;
  border: 1px solid #e0e0e0;
  font-size: 16px;
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
  box-sizing: border-box;
}

.form-group input:focus {
  outline: none;
  border-color: var(--purple);
  box-shadow: 0 0 0 2px rgba(110, 49, 178, 0.2);
}

/* 공통 애니메이션 */
@keyframes floatImage {
  0% { transform: translateY(0) translateZ(0); }
  50% { transform: translateY(-15px) translateZ(0); }
  100% { transform: translateY(0) translateZ(0); }
}

@keyframes modalAppear {
  from {transform: translate(-50%, -50%) scale(0.8); opacity: 0;}
  to {transform: translate(-50%, -50%) scale(1); opacity: 1;}
}

@-webkit-keyframes modalAppear {
  from {-webkit-transform: translate(-50%, -50%) scale(0.8); opacity: 0;}
  to {-webkit-transform: translate(-50%, -50%) scale(1); opacity: 1;}
}

@keyframes fadeInOut {
  0% {opacity: 0; transform: translate(-50%, -20px);}
  15% {opacity: 1; transform: translate(-50%, 0);}
  85% {opacity: 1; transform: translate(-50%, 0);}
  100% {opacity: 0; transform: translate(-50%, -20px);}
}

@keyframes pulseHighlight {
  0% {
    transform: scale(1);
    box-shadow: 0 4px 20px rgba(139, 69, 255, 0.1);
  }
  50% {
    transform: scale(1.05);
    box-shadow: 0 20px 40px rgba(139, 69, 255, 0.3);
  }
  100% {
    transform: scale(1);
    box-shadow: 0 4px 20px rgba(139, 69, 255, 0.1);
  }
}

/* ===== 공통 그리드 레이아웃 ===== */
.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
  margin: 3rem 0;
  padding: 30px 0;
}