:root {
  --wh: #ffffff;
  --bk: #000000;

  --gray-50: #f2f2f7;
  --gray-100: #e0e0e8;
  --gray-200: #9e9ead;
  --gray-300: #d9d9d9; /* #D9D9D9 · #D5D5D5 그룹 */
  --gray-400: #808091;
  --gray-500: #666678;
  --gray-600: #474759;
  --gray-700: #2e2e3d;
  --gray-800: #1a1a29;
  --gray-900: #0a0a1a;
  --gray-950: #040111;

  --red-50: #fff5f5;
  --red-100: #ffdddd;
  --red-200: #ffc4c4;
  --red-300: #ffa8a8;
  --red-400: #ff8080;
  --red-500: #ff6868;
  --red-600: #ff4242;
  --red-700: #ce3535;
  --red-800: #a02929;
  --red-900: #7c2020;
  --red-950: #5f1818;

  /* 코리아빌드 프라이머리 */
  --orange-50: #fff0ec;
  --orange-100: #ffe0d6;
  --orange-200: #fec3b0;
  --orange-300: #fb9f7d;
  --orange-400: #fb7038;
  --orange-500: #fb4007;
  --orange-600: #e23a06;
  --orange-700: #bc3005;
  --orange-800: #8f2404;
  --orange-900: #6e1c03;
  --orange-950: #4b1302;

  --blue-50: #f1f4f8;
  --blue-100: #e0e7f0;
  --blue-200: #c4d0df;
  --blue-300: #9fb1c7;
  --blue-400: #7790ae;
  --blue-500: #4d6b8c;
  --blue-600: #425c78;
  --blue-700: #364b62;
  --blue-800: #2a3b4d;
  --blue-900: #202d3b;
  --blue-950: #161e27;

  /* 공디페 프라이머리 */
  --green-50: #ebffef;
  --green-100: #ccffd8;
  --green-200: #a3ffb9;
  --green-300: #66ff8a;
  --green-400: #33ff63;
  --green-500: #00ff3b;
  --green-600: #00db33;
  --green-700: #00b32a;
  --green-800: #008f21;
  --green-900: #00701a;
  --green-950: #00420f;

  --yellow-50: #fffbed;
  --yellow-100: #fff4d2;
  --yellow-200: #ffeaac;
  --yellow-300: #ffe188;
  --yellow-400: #ffdb71;
  --yellow-500: #ffd24e;
  --yellow-600: #e8bf46;
  --yellow-700: #b59537;
  --yellow-800: #8c742a;
  --yellow-900: #6b5820;
  --yellow-950: #463810;

  --purple-50: #f9f3ff;
  --purple-100: #ece0f9;
  --purple-200: #d0b6e6;
  --purple-300: #b992da;
  --purple-400: #9860c9;
  --purple-500: #7e34bd;
  --purple-600: #6612af;
  --purple-700: #5d109f;
  --purple-800: #480d7c;
  --purple-900: #380a60;
  --purple-950: #2b084a;

  /* ==================== */
  /* primary color    */
  /* ==================== */
  --primary-50: var(--green-50);
  --primary-100: var(--green-100);
  --primary-200: var(--green-200);
  --primary-300: var(--green-300);
  --primary-400: var(--green-400);
  --primary-500: var(--green-500);
  --primary-600: var(--green-600);
  --primary-700: var(--green-700);
  --primary-800: var(--green-800);
  --primary-900: var(--green-900);
  --primary-950: var(--green-950);

  --surface-0: #ffffff;
  --surface-50: var(--gray-50);
  --surface-100: var(--gray-100);
  --surface-200: var(--gray-200);
  --surface-300: var(--gray-300);
  --surface-400: var(--gray-400);
  --surface-500: var(--gray-500);
  --surface-600: var(--gray-600);
  --surface-700: var(--gray-700);
  --surface-800: var(--gray-800);
  --surface-900: var(--gray-900);
  --surface-950: var(--gray-950);
  --surface-1000: #000000;

  /* ==================== */
  /* Background Colors */
  /* ==================== */
  /* 기본 배경 (Neutral Backgrounds) */
  --bg-default: var(--surface-0);
  --bg-primary: var(--surface-50);
  --bg-brand: var(--primary-500);
  --disabled-bg: var(--surface-50);
  --bg-banner: linear-gradient(90deg, #8d8bd2, var(--bg-brand));

  /* ==================== */
  /* Text Colors */
  /* ==================== */
  /* 기본 텍스트 (Neutral Text) - 진함 → 연함 순서 */
  --text-default: var(--surface-950);
  --text-primary: var(--surface-900);
  --text-secondary: var(--surface-800);
  --text-tertiary: var(--surface-600);
  --text-quaternary: var(--surface-700);
  --disabled-text: var(--surface-600);
  /* 브랜드 컬러 텍스트 (Brand Text) */
  --text-brand: var(--primary-500);
  --text-inverse: var(--surface-0);

  /* ==================== */
  /* Border Colors */
  /* ==================== */
  /* 기본 보더 (Neutral Borders) */
  --border-default: var(--surface-300);
  --border-primary: var(--surface-400);
  --border-brand: var(--primary-500);
  --border-inverse: var(--surface-0);
  --disabled-border: var(--surface-50);

  /* Heading Text */
  --text-h1: 3rem; /* 48px */
  --text-h2: 2em; /* 32px */
  --text-h3: 1.625em; /* 26px */
  --text-h4: 1.5em; /* 24px */
  --text-h5: 1.25em; /* 20px */
  --text-h6: 1em; /* 16px */

  /* Text */
  --text-2xs: 0.625rem; /* 10px */
  --text-xs: 0.75rem; /* 12px */
  --text-sm: 0.875rem; /* 14px */
  --text-base: 1rem; /* 16px */
  --text-md: 1.125rem; /* 18px */
  --text-lg: 1.25rem; /* 20px */
  --text-xl: 1.5rem; /* 24px */
  --text-2xl: 1.75rem; /* 28px */
  --text-3xl: 2rem; /* 32px */
  --text-4xl: 2.25rem; /* 36px */

  /* font-weight */
  --font-thin: 100;
  --font-extraLight: 200;
  --font-light: 300;
  --font-normal: 400;
  --font-medium: 500;
  --font-semibold: 600;
  --font-bold: 700;
  --font-extrabold: 800;
  --font-black: 900;

  /* line-height */
  --leading-base: 1em;
  --leading-sm: 1.25em;
  --leading-md: 1.35em;
  --leading-lg: 1.375em;
  --leading-xl: 1.5em;

  /* border-radius */
  --rounded-sm: 0.375rem; /* 6px */
  --rounded-md: 0.5rem; /* 8px */
  --rounded-lg: 1rem;
  --rounded-xl: 1.5em;
  --rounded-circle: 50%;
  --rounded-full: 10em;

  /* ==================== */
  /* Spacing Scale (gap / padding / margin) */
  /* ==================== */
  --space-4xs: 0.125rem; /* 2px */
  --space-3xs: 0.25rem; /* 4px */
  --space-2xs: 0.375rem; /* 6px */
  --space-xs: 0.5rem; /* 8px */
  --space-sm: 0.625rem; /* 10px */
  --space-md: 0.75rem; /* 12px */
  --space-lg: 0.875rem; /* 14px */
  --space-xl: 1rem;
  --space-2xl: 1.25rem;
  --space-3xl: 1.5rem;
  --space-4xl: 2rem;
}

/* ==================== */
/* 반응형 타이포그래피 */
/* ==================== */
@media (max-width: 1024px) {
  :root {
    --text-2xs: 10px;
    --text-xs: 11px;
    --text-sm: 12px;
  }
}

/* ==================== */
/* Dark Mode 활성화: <html data-theme="dark"> */
/* ==================== */
:root[data-theme='dark'] {
  --surface-0: #0a0a0a;
  --surface-1000: #ffffff;

  /* surface(중성) 스케일 반전 */
  --surface-50: var(--gray-950);
  --surface-100: var(--gray-900);
  --surface-200: var(--gray-800);
  --surface-300: var(--gray-700);
  --surface-400: var(--gray-600);
  --surface-500: var(--gray-500);
  --surface-600: var(--gray-400);
  --surface-700: var(--gray-300);
  --surface-800: var(--gray-200);
  --surface-900: var(--gray-100);
  --surface-950: var(--gray-50);

  /* primary(브랜드) 스케일 반전 */
  --primary-50: var(--green-950);
  --primary-100: var(--green-900);
  --primary-200: var(--green-800);
  --primary-300: var(--green-700);
  --primary-400: var(--green-600);
  --primary-500: var(--green-500);
  --primary-600: var(--green-400);
  --primary-700: var(--green-300);
  --primary-800: var(--green-200);
  --primary-900: var(--green-100);
  --primary-950: var(--green-50);

  --btn-primary-text: var(--surface-0);

  /* Secondary Button ( 소프트 브랜드) */
  --btn-secondary-bg: var(--primary-500);
  --btn-secondary-bg-hover: var(--primary-500);
  --btn-secondary-bg-pressed: var(--primary-200);
  --btn-secondary-text: var(--surface-0);
  --btn-secondary-border: var(--primary-500);

  /* Tertiary Button (화이트 02 — 기본 아웃라인) */
  --btn-tertiary-bg: var(--surface-200);
  --btn-tertiary-bg-hover: var(--surface-300);
  --btn-tertiary-bg-pressed: var(--surface-400);
  --btn-tertiary-text: var(--surface-950);
  --btn-tertiary-border: var(--surface-600);

  /* Subtle Button (그레이 — 연한 버튼) */
  --btn-subtle-bg: var(--surface-0);
  --btn-subtle-bg-hover: var(--surface-1000);
  --btn-subtle-bg-pressed: var(--surface-900);
  --btn-subtle-text: var(--surface-1000);
  --btn-subtle-border: var(--surface-1000);
}
