/* saju.victor-jk.com v2 - 럭셔·진중 톤, 현대적 미니멀리즘 */

/* 컬러 시스템 (한국 모던 럭셔리) */
:root {
  /* 기본 톤 */
  --color-deep-black: #1a1a1a;
  --color-warm-ivory: #f5f3f0;
  --color-mineral-taupe: #8b7e6d;

  /* 악센트 */
  --color-deep-sage: #2d5a4a;
  --color-soft-gold: #d4a574;

  /* 배경 & 경계 */
  --color-light-taupe: #e8e5df;
  --color-warm-gray: #c4b5a0;

  /* 레거시 (점진적 변경) */
  --text-primary: #1a1a1a;
  --text-secondary: #8b7e6d;
  --bg-light: #f5f3f0;
  --border-light: #e8e5df;
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Noto Sans KR', -apple-system, sans-serif;
  color: var(--color-deep-black);
  line-height: 1.6;
  background-color: var(--color-warm-ivory);
}

/* 타이포그래피 */
:root {
  --font-serif: 'Noto Serif KR', serif;
  --font-sans: 'Noto Sans KR', -apple-system, sans-serif;
  --font-han: 'Source Han Serif CJK KR', 'Noto Serif CJK KR', serif;
}

@import url('https://fonts.googleapis.com/css2?family=Noto+Serif+KR:wght@400;700&family=Noto+Sans+KR:wght@400;500;600;700&display=swap');

h1 {
  font-family: var(--font-serif);
  font-size: 36px;
  font-weight: 700;
  margin-bottom: 16px;
  line-height: 1.2;
  letter-spacing: 0.3px;
  color: var(--color-deep-black);
}

h2 {
  font-family: var(--font-serif);
  font-size: 28px;
  font-weight: 700;
  margin-bottom: 16px;
  line-height: 1.3;
  letter-spacing: 0.3px;
  color: var(--color-deep-black);
}

h3 {
  font-family: var(--font-serif);
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 12px;
  line-height: 1.4;
  color: var(--color-deep-black);
}

h4 {
  font-size: 16px;
  font-weight: 700;
  line-height: 1.4;
  margin-bottom: 8px;
  color: var(--color-deep-black);
}

p {
  font-size: 16px;
  font-weight: 400;
  margin-bottom: 12px;
  line-height: 1.6;
}

label {
  font-size: 14px;
  font-weight: 600;
  line-height: 1.4;
  display: block;
  margin-bottom: 8px;
}

small {
  font-size: 13px;
  font-weight: 400;
  line-height: 1.5;
  color: var(--text-secondary);
}

.korean-hanja {
  font-family: var(--font-han);
  font-weight: 600;
  letter-spacing: 0.5px;
  font-size: 16px;
}

/* 유틸리티 */
.text-center {
  text-align: center;
}

.text-muted {
  color: var(--text-secondary);
}

.mt-32 {
  margin-top: 32px;
}

.mb-16 {
  margin-bottom: 16px;
}

.mb-24 {
  margin-bottom: 24px;
}

.mt-16 {
  margin-top: 16px;
}

/* 레이아웃 */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

.container-sm {
  max-width: 680px;
  margin: 0 auto;
  padding: 0 24px;
}

/* 헤더 */
header {
  background: var(--color-warm-ivory);
  border-bottom: 1px solid var(--color-light-taupe);
  padding: 16px 0;
  position: sticky;
  top: 0;
  z-index: 100;
}

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

.logo {
  font-size: 20px;
  font-weight: 700;
  color: var(--color-deep-black);
  text-decoration: none;
  font-family: var(--font-serif);
  letter-spacing: 0.5px;
}

nav {
  display: flex;
  gap: 32px;
}

nav a {
  color: var(--color-deep-black);
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  transition: color 0.3s ease-out;
}

nav a:hover {
  color: var(--color-soft-gold);
}

/* 섹션 */
section {
  padding: 64px 0;
}

section h2 {
  margin-bottom: 48px;
  color: var(--color-deep-black);
}

/* 카드 */
.card {
  background: #faf8f6;
  border: 1px solid var(--color-light-taupe);
  border-radius: 12px;
  padding: 32px;
  transition: all 0.3s ease-out;
}

.card:hover {
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.08);
  transform: translateY(-2px);
}

.card.featured {
  border-left: 4px solid var(--color-soft-gold);
  background: #faf8f6;
  box-shadow: 0 8px 24px rgba(212, 165, 116, 0.12);
}

.card h3 {
  margin-bottom: 16px;
  color: var(--color-deep-black);
}

/* 버튼 */
.btn {
  display: inline-block;
  padding: 14px 40px;
  border: none;
  border-radius: 8px;
  font-size: 16px;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  transition: all 0.3s ease-out;
  text-align: center;
  font-family: var(--font-sans);
}

.btn-primary {
  background: var(--color-deep-sage);
  color: white;
}

.btn-primary:hover {
  background: #244637;
  box-shadow: 0 8px 16px rgba(45, 90, 74, 0.2);
  transform: translateY(-1px);
}

.btn-secondary {
  background: var(--color-soft-gold);
  color: var(--color-deep-black);
}

.btn-secondary:hover {
  background: #c99560;
  box-shadow: 0 8px 16px rgba(212, 165, 116, 0.2);
  transform: translateY(-1px);
}

.btn-outline {
  background: transparent;
  border: 1px solid var(--color-mineral-taupe);
  color: var(--color-deep-black);
}

.btn-outline:hover {
  background: var(--color-light-taupe);
  border-color: var(--color-mineral-taupe);
}

/* 그리드 */
.grid-2 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 24px;
  margin-bottom: 32px;
}

.grid-3 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 32px;
}

@media (max-width: 768px) {
  section {
    padding: 48px 0;
  }

  .grid-2,
  .grid-3 {
    grid-template-columns: 1fr;
  }

  h1 {
    font-size: 28px;
  }

  h2 {
    font-size: 24px;
  }

  nav {
    gap: 16px;
  }
}

/* 폼 스타일 */
.form-group {
  margin-bottom: 24px;
}

.form-group label {
  display: block;
  margin-bottom: 8px;
  color: var(--color-deep-black);
}

.form-group input,
.form-group select {
  width: 100%;
  padding: 12px 16px;
  border: 1px solid var(--color-light-taupe);
  border-radius: 8px;
  font-size: 16px;
  font-family: var(--font-sans);
  background: #fff;
  color: var(--color-deep-black);
  transition: border-color 0.3s ease-out;
}

.form-group input:focus,
.form-group select:focus {
  outline: none;
  border-color: var(--color-deep-sage);
  box-shadow: 0 0 0 3px rgba(45, 90, 74, 0.1);
}

/* 알람 */
.alert {
  padding: 16px;
  border-radius: 8px;
  margin-bottom: 24px;
  font-size: 14px;
  line-height: 1.6;
}

.alert-info {
  background: #f0f8e8;
  border: 1px solid #d4e8c1;
  color: #2d5a4a;
}

.alert-warning {
  background: #fff5e8;
  border: 1px solid #f0d9c7;
  color: #8b5c20;
}

/* 진행 단계 (processing.html) */
.progress-step {
  display: flex;
  gap: 16px;
  margin-bottom: 24px;
  animation: slideInLeft 0.6s ease-out forwards;
  opacity: 0;
}

.progress-step[style*="--step-index: 0"] {
  animation-delay: 0s;
}

.progress-step[style*="--step-index: 1"] {
  animation-delay: 0.2s;
}

.progress-step[style*="--step-index: 2"] {
  animation-delay: 0.4s;
}

.progress-step[style*="--step-index: 3"] {
  animation-delay: 0.6s;
}

@keyframes slideInLeft {
  from {
    opacity: 0;
    transform: translateX(-8px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

.progress-step-number {
  min-width: 40px;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 14px;
  color: white;
  flex-shrink: 0;
  transition: all 0.3s ease-out;
}

.progress-step.completed .progress-step-number {
  background: var(--color-deep-sage);
  animation: checkmark 0.5s ease-out;
}

.progress-step.active .progress-step-number {
  background: var(--color-soft-gold);
  animation: pulse 2s infinite;
}

.progress-step.pending .progress-step-number {
  background: var(--color-mineral-taupe);
}

@keyframes checkmark {
  0% {
    transform: scale(0.5);
    opacity: 0;
  }
  50% {
    transform: scale(1.1);
  }
  100% {
    transform: scale(1);
    opacity: 1;
  }
}

@keyframes pulse {
  0%, 100% {
    box-shadow: 0 0 0 0 rgba(212, 165, 116, 0.4);
  }
  50% {
    box-shadow: 0 0 0 8px transparent;
  }
}

.progress-step-text {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.progress-step-title {
  font-weight: 700;
  font-size: 14px;
  margin-bottom: 4px;
  color: var(--color-deep-black);
}

.progress-step.pending .progress-step-title {
  font-weight: 400;
  color: var(--color-mineral-taupe);
}

.progress-step-desc {
  font-size: 12px;
  color: var(--text-secondary);
}

/* 결과 페이지 */
.result-section {
  background: #faf8f6;
  padding: 32px;
  border-radius: 12px;
  margin-bottom: 24px;
  border-left: 4px solid var(--color-light-taupe);
}

.result-section h3 {
  margin-bottom: 16px;
  color: var(--color-deep-black);
}

.hanja-name {
  font-family: var(--font-han);
  font-size: 28px;
  font-weight: 600;
  letter-spacing: 0.5px;
  color: var(--color-deep-black);
  text-align: center;
  margin: 16px 0;
}

.evidence-card {
  background: white;
  border-left: 4px solid var(--color-light-taupe);
  padding: 20px;
  margin-bottom: 16px;
  border-radius: 8px;
}

.evidence-card.evidence-1 {
  border-left-color: var(--color-deep-sage);
  background: #f5f3f0;
}

.evidence-card.evidence-2 {
  border-left-color: var(--color-soft-gold);
  background: #fef5e7;
}

.evidence-card.evidence-3 {
  border-left-color: var(--color-deep-sage);
  background: #f5f3f0;
}

.evidence-card.evidence-4 {
  border-left-color: var(--color-mineral-taupe);
  background: #fef5e7;
}

.evidence-card h4 {
  color: var(--color-deep-black);
  margin-bottom: 8px;
}

.evidence-card p {
  font-size: 14px;
  margin: 0;
  color: var(--text-secondary);
}

/* 테이블 */
.comparison-table {
  width: 100%;
  border-collapse: collapse;
  margin: 24px 0;
  background: white;
  border-radius: 8px;
  overflow: hidden;
}

.comparison-table thead {
  background: var(--color-light-taupe);
}

.comparison-table th,
.comparison-table td {
  padding: 16px;
  text-align: left;
  border-bottom: 1px solid var(--color-light-taupe);
  font-size: 14px;
}

.comparison-table tbody tr:hover {
  background: var(--color-warm-ivory);
}

.comparison-table tbody tr.featured {
  background: #fef5e7;
}

/* 페이드인 애니메이션 */
@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.fade-in {
  animation: fadeUp 0.8s ease-out forwards;
  opacity: 0;
}

.fade-in:nth-child(1) {
  animation-delay: 0s;
}

.fade-in:nth-child(2) {
  animation-delay: 0.1s;
}

.fade-in:nth-child(3) {
  animation-delay: 0.2s;
}

.fade-in:nth-child(4) {
  animation-delay: 0.3s;
}

.fade-in:nth-child(5) {
  animation-delay: 0.4s;
}

/* 히어로 섹션 */
.hero-section {
  padding: 80px 0;
  background: var(--color-warm-ivory);
}

.hero-title {
  font-size: 40px;
  font-weight: 700;
  margin-bottom: 20px;
  color: var(--color-deep-black);
  font-family: var(--font-serif);
  letter-spacing: 0.3px;
  line-height: 1.2;
}

.hero-subtitle {
  font-size: 18px;
  color: var(--text-secondary);
  margin-bottom: 32px;
  line-height: 1.8;
}

/* 평면 화이트스페이스 */
.spacer {
  height: 48px;
}

.spacer-lg {
  height: 64px;
}

/* 링크 */
a {
  color: var(--color-deep-sage);
  text-decoration: none;
  transition: color 0.3s ease-out;
}

a:hover {
  color: var(--color-soft-gold);
}

/* 추가 유틸리티 클래스 */
.icon-large {
  font-size: 32px;
  margin-bottom: 16px;
}

.icon-medium {
  font-size: 48px;
  margin-bottom: 16px;
  text-align: center;
}

.text-secondary-13 {
  font-size: 13px;
  color: var(--text-secondary);
}

.text-secondary-12 {
  font-size: 12px;
  color: var(--text-secondary);
}

.text-secondary-14 {
  font-size: 14px;
  color: var(--text-secondary);
}

.whitespace-16 {
  margin-bottom: 16px;
}

.whitespace-12 {
  margin-bottom: 12px;
}

.whitespace-20 {
  margin-bottom: 20px;
}

.whitespace-24 {
  margin-bottom: 24px;
}

.whitespace-32 {
  margin-bottom: 32px;
}

.whitespace-top-12 {
  margin-top: 12px;
}

.whitespace-top-16 {
  margin-top: 16px;
}

.whitespace-top-20 {
  margin-top: 20px;
}

.whitespace-top-24 {
  margin-top: 24px;
}

.whitespace-top-40 {
  margin-top: 40px;
}

.whitespace-top-48 {
  margin-top: 48px;
}

.flex-row {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 8px;
}

.flex-column {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

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

.font-13 {
  font-size: 13px;
}

.font-12 {
  font-size: 12px;
}

.font-14 {
  font-size: 14px;
}

.font-16 {
  font-size: 16px;
}

.font-18 {
  font-size: 18px;
}

.font-24 {
  font-size: 24px;
}

.font-28 {
  font-size: 28px;
}

.font-48 {
  font-size: 48px;
}

.font-weight-600 {
  font-weight: 600;
}

.font-weight-700 {
  font-weight: 700;
}

.line-height-1-5 {
  line-height: 1.5;
}

.line-height-1-6 {
  line-height: 1.6;
}

.line-height-1-8 {
  line-height: 1.8;
}

.padding-16 {
  padding: 16px;
}

.padding-20 {
  padding: 20px;
}

.padding-24 {
  padding: 24px;
}

.padding-32 {
  padding: 32px;
}

.border-left-sage {
  border-left: 4px solid var(--color-deep-sage);
}

.border-left-taupe {
  border-left: 4px solid var(--color-light-taupe);
}

.bg-white {
  background: white;
}

.bg-light-warm {
  background: #f5f3f0;
}

.bg-light-gold {
  background: #fef5e7;
}

.bg-light-ivory {
  background: var(--color-warm-ivory);
}

.bg-light-taupe {
  background: var(--color-light-taupe);
}

.border-radius-8 {
  border-radius: 8px;
}

.border-radius-12 {
  border-radius: 12px;
}

.text-info {
  background: #f0f8e8;
  border: 1px solid #d4e8c1;
  color: #2d5a4a;
  padding: 16px;
  border-radius: 8px;
  margin-bottom: 24px;
  font-size: 14px;
  line-height: 1.6;
}

.faq-answer {
  font-size: 14px;
  color: var(--text-secondary);
}

.faq-answer p {
  margin-bottom: 12px;
  margin: 0;
}

.faq-answer ul {
  margin-top: 12px;
  margin-left: 20px;
}

.faq-answer ul li {
  margin-bottom: 8px;
  font-size: 14px;
}

.footer-bottom {
  padding: 16px 0;
  border-top: 1px solid var(--color-light-taupe);
  text-align: center;
  font-size: 12px;
  color: var(--text-secondary);
  margin-top: 16px;
}
