/* ===== Font ===== */
@font-face {
  font-family: 'Pretendard Variable';
  font-weight: 45 920;
  font-style: normal;
  font-display: swap;
  src: url('../fonts/PretendardVariable.woff2') format('woff2-variations');
}

/* ===== Reset & Base ===== */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Pretendard Variable', -apple-system, BlinkMacSystemFont, system-ui, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  color: var(--text);
  background: var(--bg-white);
  -webkit-font-smoothing: antialiased;
}

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

ul, ol {
  list-style: none;
}

img {
  max-width: 100%;
  display: block;
}

button {
  border: none;
  background: none;
  cursor: pointer;
  font: inherit;
  color: inherit;
}

input, textarea, select {
  font: inherit;
  color: inherit;
}

/* ===== CSS Variables ===== */
:root {

  /* ═══════════════════════════════════════
     1. COLOR PALETTES
     ═══════════════════════════════════════ */

  /* ── Primary: Orange ──
     브랜드 메인. CTA, 강조, 액센트.
     시안 원본: #EE622F, #FF8B33, #F9CEC1,
     #FFEBDC, #FFECE5, #FFF0E8, #FFF8F4       */
  --primary-900: #5C1E0A;
  --primary-800: #7A2910;
  --primary-700: #C04A1E;
  --primary-600: #EE622F;
  --primary-500: #FF8B33;
  --primary-400: #F9CEC1;
  --primary-300: #FFEBDC;
  --primary-200: #FFECE5;
  --primary-100: #FFF0E8;
  --primary-50:  #FFF8F4;

  --primary:       var(--primary-600);
  --primary-dark:  var(--primary-700);
  --primary-light: var(--primary-50);

  /* ── Blue: GuideUs 브랜드 ──
     정보 안내, 신뢰, 가이드 느낌.
     기준: #0085FF (SVG 디자인 기준)               */
  --blue-900: #003366;
  --blue-800: #004D99;
  --blue-700: #0066CC;
  --blue-600: #0085FF;
  --blue-500: #3399FF;
  --blue-400: #66B2FF;
  --blue-300: #99CCFF;
  --blue-200: #CCE5FF;
  --blue-100: #E5F3FF;
  --blue-50:  #F2F9FF;

  /* ── Gray: 순수 중립 그레이 ──
     텍스트, 아이콘, 보더, UI 크롬.
     시안 원본: #000000, #222222, #2D2D2D,
     #444444, #878687, #AFAFAF, #D9D9D9,
     #F4F4F4, #FDFDFD, #FFFFFF               */
  --gray-950: #000000;
  --gray-900: #222222;
  --gray-800: #2D2D2D;
  --gray-700: #444444;
  --gray-600: #4F4C4D;
  --gray-500: #878687;
  --gray-400: #AFAFAF;
  --gray-300: #D9D9D9;
  --gray-200: #F4F4F4;
  --gray-100: #FAFAF8;
  --gray-50:  #FDFDFD;

  /* ── Warm: 브라운 / 베이지 ──
     자연스러운 온기. 배경, 카드, 보더 포인트.
     시안 원본: #7E6853, #E5D9CF, #F7EDEA,
     #F5F2EF, #FAFAF8                         */
  --warm-900: #3D2D1C;
  --warm-800: #5A4229;
  --warm-700: #7E6853;
  --warm-600: #A6947E;
  --warm-500: #C4B09A;
  --warm-400: #D4C4B2;
  --warm-300: #E5D9CF;
  --warm-200: #F7EDEA;
  --warm-100: #F5F2EF;
  --warm-50:  #FAFAF8;

  /* ── Surface: 따뜻한 화이트 배경 ──
     시안 원본: #FFFFFF, #FDFDFD, #FAFAF8,
     #F5F2EF, #FEF8F4, #FFF8F4               */
  --surface-white:  #FFFFFF;
  --surface-dim:    #FDFDFD;
  --surface-muted:  #FAFAF8;
  --surface-warm:   #F5F2EF;
  --surface-peach:  #FEF8F4;
  --surface-tinted: #FFF8F4;

  /* ═══════════════════════════════════════
     2. SEMANTIC TOKENS
     팔레트를 참조하는 용도별 변수.
     디자인 변경 시 여기만 재매핑.
     ═══════════════════════════════════════ */

  /* Text */
  --text:           var(--gray-900);
  --text-secondary: var(--gray-700);
  --text-muted:     var(--gray-500);
  --text-subtle:    var(--gray-400);
  --text-inverse:   var(--surface-white);

  /* Background */
  --bg-white:     var(--surface-white);
  --bg-light:     var(--surface-muted);
  --bg-warm:      var(--surface-warm);
  --bg-dark:      var(--gray-900);
  --bg-dark-soft: var(--gray-800);

  /* Border */
  --border:       var(--gray-300);
  --border-light: var(--gray-200);
  --border-warm:  var(--warm-300);

  /* ═══════════════════════════════════════
     3. DESIGN TOKENS
     ═══════════════════════════════════════ */

  /* Shadows */
  --shadow-sm: 0 1px 3px rgba(34,34,34,0.06);
  --shadow-md: 0 4px 12px rgba(34,34,34,0.08);
  --shadow-lg: 0 8px 24px rgba(34,34,34,0.12);

  /* Radius */
  --radius-sm: 8px;
  --radius: 12px;
  --radius-lg: 20px;
  --radius-full: 9999px;

  /* Layout */
  --container-max: 1200px;
  --section-gap: 120px;
  --header-height: 72px;
}

/* ===== Typography ===== */
.heading-xl {
  font-size: 48px;
  font-weight: 700;
  line-height: 1.25;
  letter-spacing: -0.02em;
}

.heading-lg {
  font-size: 36px;
  font-weight: 700;
  line-height: 1.3;
  letter-spacing: -0.02em;
}

.heading-md {
  font-size: 24px;
  font-weight: 600;
  line-height: 1.4;
}

.heading-sm {
  font-size: 18px;
  font-weight: 600;
  line-height: 1.5;
}

.text-lg {
  font-size: 18px;
  line-height: 1.7;
}

.text-md {
  font-size: 16px;
  line-height: 1.6;
}

.text-sm {
  font-size: 14px;
  line-height: 1.5;
}

.text-xs {
  font-size: 12px;
  line-height: 1.5;
}

/* ===== Layout Utilities ===== */
.container {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 24px;
}

.section {
  padding: 100px 0;
}

.section--dark {
  background: var(--bg-dark);
  color: var(--text-inverse);
}

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

.section--warm {
  background: var(--bg-warm);
}

.section--primary {
  background: var(--primary);
  color: var(--text-inverse);
}

/* Flex utilities */
.flex { display: flex; }
.flex-col { flex-direction: column; }
.flex-wrap { flex-wrap: wrap; }
.items-center { align-items: center; }
.items-start { align-items: flex-start; }
.justify-center { justify-content: center; }
.justify-between { justify-content: space-between; }
.gap-8 { gap: 8px; }
.gap-12 { gap: 12px; }
.gap-16 { gap: 16px; }
.gap-24 { gap: 24px; }
.gap-32 { gap: 32px; }
.gap-40 { gap: 40px; }
.gap-48 { gap: 48px; }

/* Text utilities */
.text-center { text-align: center; }
.text-muted { color: var(--text-muted); }
.text-secondary { color: var(--text-secondary); }
.text-primary { color: var(--primary); }
.text-inverse { color: var(--text-inverse); }
.font-bold { font-weight: 700; }
.font-semi { font-weight: 600; }
.font-medium { font-weight: 500; }

/* ===== Common Components ===== */

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 28px;
  font-size: 16px;
  font-weight: 600;
  border-radius: var(--radius-sm);
  transition: all 0.2s ease;
}

.btn-primary {
  background: var(--primary);
  color: var(--text-inverse);
}

.btn-primary:hover {
  background: var(--primary-dark);
}

.btn-outline {
  border: 1.5px solid var(--border);
  color: var(--text);
  background: var(--bg-white);
}

.btn-outline:hover {
  border-color: var(--text-muted);
}

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

.btn-ghost:hover {
  color: var(--text);
}

.btn-lg {
  padding: 16px 36px;
  font-size: 18px;
  border-radius: var(--radius);
}

.btn-sm {
  padding: 8px 20px;
  font-size: 14px;
}

.btn-fit {
  align-self: flex-start;
  width: auto;
}

/* Badge / Tag */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  font-size: 13px;
  font-weight: 500;
  border-radius: var(--radius-full);
  background: var(--primary-light);
  color: var(--primary);
}

/* Card */
.card {
  background: var(--bg-white);
  border: 1px solid var(--border-light);
  border-radius: var(--radius);
  padding: 32px;
  transition: box-shadow 0.2s ease;
}

.card:hover {
  box-shadow: var(--shadow-md);
}

/* Section Header */
.section-header {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-bottom: 48px;
}

.section-header--center {
  align-items: center;
  text-align: center;
}

.section-subtitle {
  font-size: 14px;
  font-weight: 600;
  color: var(--primary);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

/* Divider */
.divider {
  width: 100%;
  height: 1px;
  background: var(--border);
}

/* ===== Responsive ===== */
@media (max-width: 1024px) {
  :root {
    --section-gap: 80px;
  }

  .heading-xl { font-size: 36px; }
  .heading-lg { font-size: 28px; }
  .heading-md { font-size: 20px; }
  .section { padding: 80px 0; }
}

@media (max-width: 768px) {
  :root {
    --section-gap: 60px;
    --header-height: 60px;
  }

  .heading-xl { font-size: 28px; }
  .heading-lg { font-size: 24px; }
  .heading-md { font-size: 18px; }
  .text-lg { font-size: 16px; }
  .section { padding: 60px 0; }
  .container { padding: 0 16px; }

  .hide-mobile { display: none !important; }
}

@media (max-width: 480px) {
  .heading-xl { font-size: 24px; }
  .heading-lg { font-size: 22px; }
  .section { padding: 48px 0; }
  .btn-lg { padding: 14px 28px; font-size: 16px; }
}
