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

body {
  font-family: 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  line-height: 1.6;
  color: var(--color-gray-700);
  background-color: var(--color-gray-100);
}

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

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

/* =========================================
 * 2. CSS Variables (:root)
 * ========================================= */
:root {
  /* Colors - Brand */
  --color-primary: #007bff;
  --color-primary-dark: #0056b3;
  --color-primary-light: #e6f2ff;
  --color-secondary: #6c757d;
  --color-secondary-dark: #545b62;
  --color-secondary-light: #f2f3f4;

  /* Colors - State */
  --color-success: #28a745;
  --color-success-dark: #1e7e34;
  --color-success-light: #eaf7ed;
  --color-danger: #dc3545;
  --color-danger-dark: #bd2130;
  --color-danger-light: #fceceb;
  --color-warning: #ffc107;
  --color-warning-dark: #e0a800;
  --color-warning-light: #fff8e6;
  --color-info: #17a2b8;
  --color-info-dark: #117a8b;
  --color-info-light: #e7f7f9;

  /* Colors - Grayscale (Refined) */
  --color-white: #ffffff;
  --color-gray-50: #f8fafc;
  /* Very subtle cool gray for backgrounds */
  --color-gray-100: #f1f5f9;
  /* Slate-100 */
  --color-gray-200: #e2e8f0;
  /* Slate-200 */
  --color-gray-300: #cbd5e1;
  /* Slate-300 */
  --color-gray-400: #94a3b8;
  --color-gray-500: #64748b;
  --color-gray-600: #475569;
  --color-gray-700: #334155;
  --color-gray-800: #1e293b;
  --color-gray-900: #0f172a;
  /* Slate-900 */
  --color-black: #000000;

  /* Spacing */
  --spacing-xxs: 0.25rem;
  --spacing-xs: 0.5rem;
  --spacing-sm: 0.75rem;
  --spacing-md: 1rem;
  --spacing-lg: 1.5rem;
  --spacing-xl: 2rem;
  --spacing-xxl: 3rem;

  /* Typography */
  --font-size-base: 0.95rem;
  /* Slightly smaller base for density */
  --font-size-sm: 0.85rem;
  --font-size-lg: 1.125rem;
  --font-size-h1: 2.25rem;
  --font-size-h5: 1.25rem;
  --font-size-h6: 1rem;

  /* Borders & Shadows (Modern) */
  --border-radius-sm: 0.375rem;
  --border-radius-md: 0.5rem;
  --border-radius-lg: 0.75rem;
  --border-radius-full: 9999px;

  --border-color-base: var(--color-gray-200);

  /* Shadows (Tailwind-inspired) */
  --box-shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  --box-shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
  --box-shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
  --box-shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);

  /* Animation */
  --transition-ease: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

/* =========================================
 * 3. Typography & Utilities
 * ========================================= */
h1,
h2,
h3,
h4,
h5,
h6 {
  margin-top: 0;
  margin-bottom: var(--spacing-md);
  font-weight: 600;
  color: var(--color-gray-800);
}

p {
  margin-bottom: var(--spacing-md);
}

blockquote {
  margin: var(--spacing-lg) 0;
  padding: var(--spacing-md);
  border-left: 4px solid var(--color-gray-300);
  background: var(--color-gray-100);
  font-style: italic;
}

/* Utility Class */
.u-mr-auto {
  margin-right: auto !important;
}

/* =========================================
 * [NEW] Utilities (인라인 스타일 대체용)
 * ========================================= */

/* 1. Flex Layout Utils */
.u-flex {
  display: flex;
  align-items: center;
}

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

.u-flex-start {
  display: flex;
  align-items: flex-start;
}

.u-flex-wrap {
  flex-wrap: wrap;
}

.u-flex-col {
  flex-direction: column;
}

.u-gap-xs {
  gap: var(--spacing-xs);
}

/* 8px */
.u-gap-sm {
  gap: var(--spacing-sm);
}

/* 12px */
.u-gap-md {
  gap: var(--spacing-md);
}

/* 16px */

/* 2. Spacing Utils */
.u-mb-xs {
  margin-bottom: var(--spacing-xs) !important;
}

.u-mb-sm {
  margin-bottom: var(--spacing-sm) !important;
}

.u-mb-md {
  margin-bottom: var(--spacing-md) !important;
}

.u-mb-lg {
  margin-bottom: var(--spacing-lg) !important;
}

.u-mt-auto {
  margin-top: auto !important;
}

/* 3. Text Utils */
.u-text-center {
  text-align: center;
}

.u-text-right {
  text-align: right;
}

.u-fw-bold {
  font-weight: 700;
}

.u-text-gray {
  color: var(--color-gray-600);
}

.u-text-danger {
  color: var(--color-danger);
}

.u-text-info {
  color: var(--color-info);
}

/* 4. Container Utils */
.u-container-md {
  max-width: 900px;
  margin: 0 auto;
}

.u-container-xl {
  max-width: 1200px;
  margin: 0 auto;
}

/* Responsive Grid */
.u-grid-responsive {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: var(--spacing-lg);
}

/* Avatar Utils */
.avatar-xs {
  width: 24px;
  height: 24px;
  display: flex;
  justify-content: center;
  align-items: center;
  border-radius: 50%;
  overflow: hidden;
}

.u-bg-gray {
  background-color: var(--color-gray-100);
}

/* 1. Typography Scale (rem 단위) */
.u-fs-xs {
  font-size: 0.8rem !important;
}

/* 12.8px */
.u-fs-sm {
  font-size: 0.85rem !important;
}

/* 13.6px */
.u-fs-md {
  font-size: 1rem !important;
}

/* 16px */
.u-fs-lg {
  font-size: 1.25rem !important;
}

/* 20px */
.u-fs-xl {
  font-size: 1.5rem !important;
}

/* 24px */
.u-fs-2xl {
  font-size: 1.75rem !important;
}

/* 28px */

/* 2. Spacing Utils */
.u-m-0 {
  margin: 0 !important;
}

.u-mt-xs {
  margin-top: 4px !important;
}

.u-mb-xs {
  margin-bottom: 0.5rem !important;
}

.u-mb-xxl {
  margin-bottom: 3rem !important;
}

/* 하단 여백용 */
.u-mr-md {
  margin-right: 1rem !important;
}

.u-ml-md {
  margin-left: 1rem !important;
}

.u-p-md {
  padding: 1rem !important;
}

.u-p-lg {
  padding: 2rem !important;
}

/* Empty State용 */
.u-p-20 {
  padding: 20px !important;
}

/* 리스트 Empty용 */

/* 3. Visual & Layout Utils */
.u-opacity-50 {
  opacity: 0.5;
}

.u-opacity-70 {
  opacity: 0.7;
}

.u-border-top-0 {
  border-top: 0 !important;
}

.u-rounded-pill {
  border-radius: 50rem !important;
}

.u-min-h-150 {
  min-height: 150px;
}

.u-overflow-hidden {
  overflow: hidden;
}

.u-relative {
  position: relative;
}

.u-block {
  display: block;
}

.u-flex-1 {
  flex: 1;
}

/* 4. Colors (Override) */
.u-text-white {
  color: var(--color-white) !important;
}

.u-text-dark {
  color: var(--color-gray-900) !important;
}

/* 5. Custom Component Utils (복합 스타일) */
/* 회색 박스 (Ref Keeper, Guest Mode 등) */
.u-box-gray {
  background-color: var(--color-gray-100);
  padding: 1rem;
  border-radius: var(--border-radius-sm);
  border: 1px solid var(--color-gray-200);
}

/* 말줄임 텍스트 (한 줄) */
.u-text-ellipsis-single {
  display: block;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* 코드 블록 복사 버튼 위치 */
.u-btn-copy-pos {
  position: absolute;
  top: 8px;
  right: 8px;
}

/* Pre 태그 초기화 및 테두리 */
.u-pre-reset {
  margin: 0;
  border-radius: var(--border-radius-sm);
  overflow: hidden;
}

.u-pre-bordered {
  border: 1px solid var(--color-gray-300);
  color: var(--color-gray-800);
}

/* =========================================
 * [FINAL] Work List Utilities
 * ========================================= */

/* 1. Sizing & Width */
.u-w-full {
  width: 100% !important;
}

.u-min-w-220 {
  min-width: 220px !important;
}

.u-max-w-600 {
  max-width: 600px !important;
}

/* 2. Spacing Utils */
.u-p-xl {
  padding: 2.5rem !important;
}

/* 40px (Empty State) */
.u-mb-xxs {
  margin-bottom: 0.25rem !important;
}

/* 4px */
.u-mt-xl {
  margin-top: 2rem !important;
}

/* 30px~32px */

/* 3. Typography & Decor */
.u-fw-semibold {
  font-weight: 600 !important;
}

.u-fs-xxs {
  font-size: 0.75rem !important;
}

/* 12px */
.u-fs-2rem {
  font-size: 2rem !important;
}

/* 아이콘용 */
.u-text-decoration-none {
  text-decoration: none !important;
}

.u-text-gray-500 {
  color: var(--color-gray-500) !important;
}

.u-border-0 {
  border: 0 !important;
}

/* =========================================
 * [NEW] Landing Page Utilities
 * ========================================= */

/* 1. Display Typography (초대형 텍스트) */
.u-fs-display {
  font-size: 3.5rem !important;
  line-height: 1.2;
  font-weight: 800;
}

.u-fs-subtitle {
  font-size: 1.5rem !important;
  font-weight: 300;
  color: var(--color-gray-600);
}

/* 2. Layout Helper */
.u-min-h-50vh {
  min-height: 50vh;
}

.u-mx-auto {
  margin-left: auto !important;
  margin-right: auto !important;
}

.u-w-50 {
  width: 50% !important;
}

/* 3. Opacity Utils */
.u-opacity-25 {
  opacity: 0.25;
}

/* =========================================
 * [FINAL] Landing Page Utilities
 * ========================================= */

/* 1. Hero Section Height (35vh) */
.u-min-h-hero {
  min-height: 35vh !important;
}

/* 2. Section Spacing */
.u-py-section {
  padding-top: 60px !important;
  padding-bottom: 60px !important;
}

/* 3. Letter Spacing (자간) */
.u-ls-1 {
  letter-spacing: 1px !important;
}

.u-ls-2 {
  letter-spacing: 2px !important;
}

/* 4. Icon Sizes & Opacity */
.u-fs-2rem {
  font-size: 2rem !important;
}

.u-opacity-25 {
  opacity: 0.25 !important;
}

/* 5. Font Size Override */
.u-fs-display {
  font-size: 3.5rem !important;
  line-height: 1.2;
  font-weight: 800;
}

.u-fs-subtitle {
  font-size: 1.5rem !important;
  font-weight: 300;
  color: var(--color-gray-600);
}

.u-fs-09 {
  font-size: 0.9rem !important;
}

/* Welcome 텍스트용 */

/* =========================================
 * [MISSING] Typography Size Mapping
 * ========================================= */
h1 {
  font-size: var(--font-size-h1);
  line-height: 1.2;
}

h2 {
  font-size: var(--font-size-h2);
  line-height: 1.2;
}

h3 {
  font-size: var(--font-size-h3);
  line-height: 1.2;
}

h4 {
  font-size: var(--font-size-h4);
  line-height: 1.2;
}

h5 {
  font-size: var(--font-size-h5);
  line-height: 1.2;
}

h6 {
  font-size: var(--font-size-h6);
  line-height: 1.2;
}

/* [FINAL] Missing Gap Utility */
.u-gap-xxs {
  gap: 0.25rem !important;
}

/* 4px */

/* =========================================
 * [FIX] Missing Background Utilities
 * ========================================= */
.u-bg-primary {
  background-color: var(--color-primary) !important;
}

.u-bg-secondary {
  background-color: var(--color-secondary) !important;
}

.u-bg-success {
  background-color: var(--color-success) !important;
}

.u-bg-white {
  background-color: var(--color-white) !important;
}

/* 텍스트 정렬 유틸리티 보강 */
.u-text-left {
  text-align: left !important;
}

/* =========================================
 * [FIX] Index Page Utilities (Inline Removal)
 * ========================================= */

/* 1. Letter Spacing (자간) */
.u-ls-1 {
  letter-spacing: 1px !important;
}

.u-ls-2 {
  letter-spacing: 2px !important;
}

/* 2. Hero Section Height (화면 절반 높이) */
.u-min-h-50vh {
  min-height: 50vh !important;
}

/* 3. Section Spacer (상하 여백) */
.u-py-section {
  padding-top: 60px !important;
  padding-bottom: 60px !important;
}

.u_lh_1{
  line-height: 1.8; 
  font-size: 1.05rem;
}