/* ============================================================
   base.css — CHAART OS 공통 기반 스타일
   리셋, 배경 텍스처, 유틸리티 컴포넌트

   Final Retouch: 2026-02-19
   ============================================================ */

/* ── 1. Reset & Base ── */
* { margin: 0; padding: 0; box-sizing: border-box; }
html, body { width: 100%; overflow-x: clip; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--sans);
  font-size: var(--text-base);
  line-height: 1.72;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  transition: background var(--dur-medium) var(--ease), color var(--dur-slow) var(--ease);
  word-break: keep-all;
}
::selection { background: rgba(150,30,35,0.12); color: var(--text); }
*:focus-visible { outline: 2px solid var(--red-brand); outline-offset: 2px; }

/* ── 2. Language Override ── */
.en, :lang(en) { font-family: var(--sans-en); }
.font-en { font-family: var(--sans-en); }

/* ── 3. Background Texture Layers ── */

/* 레이어 1: 종이 노이즈 */
body::before {
  content: "";
  position: fixed; inset: 0;
  pointer-events: none; z-index: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  opacity: 0.015;
}

/* 레이어 2: 래디얼 드리프트 */
body::after {
  content: "";
  position: fixed; inset: -20%;
  width: 140%; height: 140%;
  pointer-events: none; z-index: 0;
  background:
    radial-gradient(ellipse 1200px 800px at 20% 0%, rgba(150,30,35,0.022), transparent 60%),
    radial-gradient(ellipse 900px 600px at 80% 100%, rgba(245,242,238,0.38), transparent 50%),
    radial-gradient(ellipse 600px 600px at 50% 50%, rgba(150,30,35,0.008), transparent 70%);
  animation: gradientDrift 36s ease-in-out infinite alternate;
}
@keyframes gradientDrift {
  0%   { transform: translate(0, 0) scale(1); }
  33%  { transform: translate(1.5%, -1%) scale(1.01); }
  66%  { transform: translate(-1%, 1.5%) scale(0.99); }
  100% { transform: translate(0.5%, -0.5%) scale(1.005); }
}

/* 레이어 3: 린넨 직조 */
.texture-linen {
  position: fixed; inset: 0;
  pointer-events: none; z-index: 0;
  background-image: url("data:image/svg+xml,%3Csvg width='4' height='4' xmlns='http://www.w3.org/2000/svg'%3E%3Crect width='1' height='1' x='0' y='0' fill='%23000' opacity='0.02'/%3E%3Crect width='1' height='1' x='2' y='2' fill='%23000' opacity='0.015'/%3E%3C/svg%3E");
  background-size: 4px 4px;
  opacity: 0.5;
}

/* 레이어 4: 비네팅 */
.vignette {
  position: fixed; inset: 0;
  pointer-events: none; z-index: 0;
  background: radial-gradient(ellipse 70% 70% at 50% 50%, transparent 50%, rgba(17,17,17,0.025) 100%);
}

/* 레이어 5: 앰비언트 라이트 */
.ambient-light {
  position: fixed;
  width: 500px; height: 500px;
  border-radius: 50%;
  pointer-events: none; z-index: 0;
  background: radial-gradient(circle, rgba(255,252,248,0.28) 0%, rgba(255,252,248,0) 70%);
  transform: translate(-50%, -50%);
  transition: left var(--dur-xl) var(--ease), top var(--dur-xl) var(--ease);
  will-change: left, top;
  mix-blend-mode: soft-light;
}

/* ── 4. Common Keyframes ── */
@keyframes fadeUp {
  to { opacity: 1; transform: translateY(0); }
}

/* ── 5. Utility Components ── */

/* 그라디언트 텍스트 악센트 */
.gradient-text {
  background: linear-gradient(135deg, var(--red-brand), var(--charcoal));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* 글래스모피즘 버튼 */
.btn-glass {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  font-family: var(--mono);
  font-size: var(--text-xs);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text);
  background: rgba(255,255,255,0.6);
  backdrop-filter: blur(var(--glass-blur));
  -webkit-backdrop-filter: blur(var(--glass-blur));
  border: 1px solid var(--border);
  border-radius: var(--radius-pill);
  padding: 10px var(--space-6);
  cursor: pointer;
  transition: background var(--dur-normal) var(--ease), box-shadow var(--dur-normal) var(--ease), transform var(--dur-normal) var(--ease);
}
.btn-glass:hover {
  background: rgba(255,255,255,0.85);
  box-shadow: var(--shadow-md);
  transform: translateY(-1px);
  border-radius: var(--radius-hover);
}
body[data-theme="charcoal"] .btn-glass {
  background: var(--alpha-8);
  color: var(--text);
}
body[data-theme="charcoal"] .btn-glass:hover {
  background: var(--alpha-16);
}

/* 통일된 카드 내 모노 라벨 */
.card-label {
  font-family: var(--mono);
  font-size: var(--text-xs);
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-muted);
}

/* 통일된 섹션 헤더 패턴 */
.section-header {
  max-width: var(--content-max);
  margin: 0 auto;
  padding: 0 var(--content-px);
  margin-bottom: var(--space-12);
}
.section-header .sh-label {
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: var(--space-3);
}
.section-header .sh-title {
  font-family: var(--sans);
  font-size: clamp(var(--text-3xl), 5vw, 52px);
  font-weight: 700;
  color: var(--charcoal);
  line-height: 1.12;
  letter-spacing: -0.025em;
  margin-bottom: var(--space-4);
}
.section-header .sh-sub {
  font-size: var(--text-base);
  color: var(--text-secondary);
  max-width: 540px;
  line-height: 1.75;
}

/* 섹션 디바이더 — 그라디언트 라인 */
.section-divider {
  width: 100%;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--border-strong), transparent);
  margin: var(--section-gap) 0;
}

/* 탭 컨텐츠 */
.os-tab-content {
  display: none;
  padding-top: 80px; /* pill nav 아래 여백 확보 */
}
.os-tab-content.is-active {
  display: block;
}

/* ── 6. Bento 전역 radius + hover ── */
.color-hero,
.color-sub-block,
.price-scout-box,
.chart-box,
.ds-artwork-card,
.ds-color-swatch,
.ds-input,
.ds-badge {
  border-radius: var(--radius);
}
.ds-badge {
  border-radius: var(--radius-sm);
}
.ds-input {
  border-radius: var(--radius-sm);
}
.ds-color-swatch {
  border-radius: var(--radius-sm);
}

/* ── 7. CHAART Section System — PREMIUM UPGRADE ── */

/* ─ Scroll-reveal animation ─ */
@keyframes chFadeUp {
  from { opacity: 0; transform: translateY(40px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes chFadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}
@keyframes chScaleIn {
  from { opacity: 0; transform: scale(0.96) translateY(20px); }
  to   { opacity: 1; transform: scale(1) translateY(0); }
}
@keyframes chSlideRight {
  from { opacity: 0; transform: translateX(-24px); }
  to   { opacity: 1; transform: translateX(0); }
}
@keyframes chGlow {
  0%, 100% { box-shadow: 0 0 30px var(--red-brand-subtle); }
  50%      { box-shadow: 0 0 60px rgba(150,30,35,0.15); }
}
.ch-reveal {
  opacity: 0;
  transform: translateY(28px);
  transition:
    opacity 0.85s var(--ease-cinematic, cubic-bezier(0.16,1,0.3,1)),
    transform 0.85s var(--ease-cinematic, cubic-bezier(0.16,1,0.3,1)),
    filter 0.85s var(--ease-cinematic, cubic-bezier(0.16,1,0.3,1));
  filter: blur(3px);
  will-change: opacity, transform, filter;
}
.ch-reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
  filter: blur(0);
}

/* 풀스크린 섹션 — 프리미엄 스페이싱 */
.ch-section {
  position: relative;
  width: 100%;
  padding: 120px 0;
  z-index: 1;
}
.ch-section--dark {
  background: var(--black);
  color: var(--text-inverse);
  overflow: hidden;
  /* alpha 변수를 흰색 기반으로 오버라이드 (다크 배경 위 텍스트 가시성) */
  --alpha-30: rgba(255,255,255,0.30);
  --alpha-40: rgba(255,255,255,0.40);
  --alpha-50: rgba(255,255,255,0.50);
  --alpha-60: rgba(255,255,255,0.60);
  --alpha-70: rgba(255,255,255,0.70);
  --alpha-80: rgba(255,255,255,0.80);
}
/* dark 섹션 서브틀 그라디언트 오버레이 */
.ch-section--dark::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 80% 60% at 50% 0%, var(--red-brand-subtle) 0%, transparent 70%);
  pointer-events: none;
}
.ch-section--dark .ch-section-title,
.ch-section--dark .ch-step-num,
.ch-section--dark .ch-step-title { color: var(--text-inverse); }
.ch-section--dark .ch-section-desc,
.ch-section--dark .ch-step-desc { color: rgba(255,255,255,0.55); }
.ch-section--dark .ch-step-card {
  background: rgba(255,255,255,0.03);
  border-color: rgba(255,255,255,0.08);
}
.ch-section--dark .ch-step-card:hover {
  background: rgba(255,255,255,0.06);
  border-color: rgba(255,255,255,0.14);
  box-shadow: 0 20px 60px rgba(0,0,0,0.4);
}
.ch-section--alt {
  background: linear-gradient(180deg, rgba(0,0,0,0.015) 0%, rgba(0,0,0,0.03) 100%);
}
.ch-section--accent {
  background: var(--red-brand);
  color: var(--white);
}
.ch-section--accent .ch-section-title { color: var(--white); }
.ch-section--accent .ch-section-desc { color: rgba(255,255,255,0.8); }

/* 컨테이너 */
.ch-container {
  max-width: var(--content-max);
  margin: 0 auto;
  padding: 0 var(--content-px);
}

/* ═══ 히어로 — 대형 타이포, 드라마틱 스페이싱 ═══ */
.ch-hero {
  position: relative;
  z-index: 1;
  max-width: var(--content-max);
  margin: 0 auto;
  padding: 180px var(--content-px) 88px;
  text-align: center;
}
.ch-hero-label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--red-brand);
  margin-bottom: var(--space-7);
  opacity: 0;
  animation: chFadeUp 0.8s var(--ease) 0.1s forwards;
}
.ch-hero-label::before {
  content: "";
  width: 20px;
  height: 1px;
  background: var(--red-brand);
}
.ch-hero-title {
  font-size: clamp(36px, 6.5vw, 68px);
  font-weight: 700;
  color: var(--charcoal);
  line-height: 1.06;
  letter-spacing: -0.035em;
  margin-bottom: var(--space-8);
  opacity: 0;
  animation: chFadeUp 1s var(--ease) 0.25s forwards;
}
.ch-hero-title .accent { color: var(--red-brand); }
.ch-hero-desc {
  font-size: clamp(15px, 1.3vw, 17px);
  color: var(--text-secondary);
  max-width: 500px;
  margin: 0 auto var(--space-10);
  line-height: 1.82;
  opacity: 0;
  animation: chFadeUp 1s var(--ease) 0.4s forwards;
}

/* ═══ 프롬프트 바 — 프리미엄 글래스 ═══ */
.ch-prompt-bar {
  position: relative;
  display: flex;
  align-items: center;
  max-width: 600px;
  width: 600px;
  height: 56px;
  margin: 0 auto 20px;
  background: rgba(255,255,255,0.8);
  backdrop-filter: blur(20px) saturate(1.8);
  -webkit-backdrop-filter: blur(20px) saturate(1.8);
  border: 1px solid rgba(0,0,0,0.06);
  border-radius: 0;
  padding: 6px 6px 6px 28px;
  box-shadow: 0 4px 24px rgba(0,0,0,0.04), 0 1px 3px rgba(0,0,0,0.03);
  transition: all 0.4s cubic-bezier(0.22,1,0.36,1);
  opacity: 0;
  animation: chFadeIn 1.2s cubic-bezier(0.25, 0, 0.15, 1) 3.0s forwards;
}
.ch-prompt-bar:hover {
  box-shadow: 0 8px 32px rgba(0,0,0,0.06), 0 2px 6px rgba(0,0,0,0.04);
  border-color: rgba(0,0,0,0.1);
  transform: translateY(-1px);
}
.ch-prompt-bar:focus-within {
  border-color: var(--red-brand);
  box-shadow: 0 0 0 4px var(--red-brand-subtle), 0 8px 32px rgba(0,0,0,0.06);
}
.ch-prompt-input {
  flex: 1;
  border: none;
  background: none;
  font-family: var(--sans);
  font-size: var(--text-base);
  color: var(--text);
  outline: none;
  min-width: 0;
}
.ch-prompt-input::placeholder { color: var(--text-muted); font-weight: 400; }
.ch-prompt-btn {
  flex-shrink: 0;
  width: 44px;
  height: 44px;
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--text);
  color: var(--white);
  border: none;
  border-radius: 0;
  font-size: var(--icon-md);
  line-height: 1;
  cursor: pointer;
  transition: background 0.3s ease, box-shadow 0.3s ease;
}
.ch-prompt-btn:hover {
  background: var(--red-brand);
  box-shadow: var(--shadow-brand);
}

/* ═══ 검색 자동완성 드롭다운 ═══ */
.ch-search-dropdown {
  display: none;
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  right: 0;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 0;
  box-shadow: 0 12px 40px rgba(0,0,0,0.12), 0 2px 8px rgba(0,0,0,0.06);
  max-height: 360px;
  overflow-y: auto;
  z-index: 1000;
  scrollbar-width: thin;
  text-align: left;
}
.ch-search-dropdown.is-open { display: block; }

.ch-search-group-label {
  font-family: var(--mono);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-muted);
  padding: 12px 16px 4px;
}
.ch-search-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 16px;
  cursor: pointer;
  text-decoration: none;
  color: var(--text);
  transition: background 0.15s ease;
}
.ch-search-item:hover,
.ch-search-item.is-active {
  background: var(--alpha-4);
}
.ch-search-item-badge {
  flex-shrink: 0;
  width: 28px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--mono);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  border-radius: 0;
  background: var(--alpha-4);
  color: var(--text-secondary);
}
.ch-search-item-badge.type-comp { background: rgba(150,30,35,0.08); color: var(--red-brand); }
.ch-search-item-badge.type-page { background: rgba(6,0,0,0.06); color: var(--charcoal); }
.ch-search-item-badge.type-tool { background: rgba(59,130,246,0.08); color: #3b82f6; }
.ch-search-item-badge.type-token { background: rgba(45,79,53,0.08); color: #2d4f35; }
.ch-search-item-badge.type-icon { background: rgba(120,120,120,0.08); color: #666; }
.ch-search-item-badge.type-tpl { background: rgba(160,90,30,0.08); color: #a05a1e; }

.ch-search-item-text {
  flex: 1;
  min-width: 0;
}
.ch-search-item-name {
  font-family: var(--sans);
  font-size: 14px;
  font-weight: 500;
  color: var(--text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.ch-search-item-name mark {
  background: rgba(150,30,35,0.12);
  color: var(--red-brand);
  border-radius: 2px;
  padding: 0 1px;
}
.ch-search-item-sub {
  font-family: var(--mono);
  font-size: 11px;
  color: var(--text-muted);
  margin-top: 1px;
}
.ch-search-empty {
  padding: 24px 16px;
  text-align: center;
  font-family: var(--mono);
  font-size: 12px;
  color: var(--text-muted);
}
.ch-search-hint {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 8px 16px 10px;
  border-top: 1px solid var(--border);
  font-family: var(--mono);
  font-size: 10px;
  color: var(--text-muted);
}
.ch-search-hint kbd {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 18px;
  height: 18px;
  padding: 0 4px;
  background: var(--alpha-4);
  border: 1px solid var(--border);
  border-radius: 0;
  font-family: var(--mono);
  font-size: 9px;
}

/* ═══ 필 태그 — 세련된 칩 ═══ */
.ch-pill-tags {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: var(--space-5);
  opacity: 0;
  animation: chFadeUp 0.8s cubic-bezier(0.22,1,0.36,1) 0.7s forwards;
}
.ch-pill-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--mono);
  font-size: var(--text-11);
  font-weight: 500;
  letter-spacing: 0.04em;
  color: var(--text-secondary);
  background: transparent;
  border: 1px solid rgba(0,0,0,0.1);
  border-radius: var(--radius-pill);
  padding: 8px 18px;
  cursor: pointer;
  transition: all 0.35s cubic-bezier(0.22,1,0.36,1);
  text-decoration: none;
}
.ch-pill-tag:hover {
  color: var(--red-brand);
  border-color: var(--red-brand);
  background: var(--red-brand-ghost);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px var(--red-brand-subtle);
}

/* ═══ 섹션 헤더 — 프리미엄 타이포 ═══ */
.ch-section-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  margin-bottom: 56px;
}
.ch-section-label {
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--red-brand);
  margin-bottom: var(--space-4);
  display: flex;
  align-items: center;
  gap: 8px;
}
.ch-section-label::before {
  content: "";
  width: 18px;
  height: 1px;
  background: var(--red-brand);
}
.ch-section--dark .ch-section-label { color: rgba(150,30,35,0.8); }
.ch-section--dark .ch-section-label::before { background: rgba(150,30,35,0.8); }
.ch-section-title {
  font-size: clamp(26px, 4vw, 44px);
  font-weight: 700;
  color: var(--charcoal);
  line-height: 1.12;
  letter-spacing: -0.025em;
  position: relative;
  display: inline-block;
}
.ch-section-title::after {
  content: "";
  display: block;
  width: 36px;
  height: 2px;
  background: var(--red-brand);
  margin-top: 14px;
  transition: width 0.6s var(--ease);
}
.ch-reveal.is-visible .ch-section-title::after {
  width: 52px;
}
.ch-section-desc {
  font-size: var(--text-base);
  color: var(--text-secondary);
  max-width: 480px;
  line-height: 1.78;
  margin-top: var(--space-4);
}

/* ═══ 단계 카드 — 프리미엄 그래디언트 & 쉐도우 ═══ */
.ch-step-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 24px;
}
.ch-step-card {
  position: relative;
  padding: 36px 28px 32px;
  background: var(--bg-card);
  border: 1px solid rgba(0,0,0,0.05);
  border-radius: 0;
  transition: all 0.5s var(--ease);
  overflow: hidden;
}
.ch-step-card::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--red-brand), var(--red-brand-dim));
  opacity: 0;
  transition: opacity 0.5s cubic-bezier(0.22,1,0.36,1);
}
.ch-step-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 20px 60px rgba(0,0,0,0.08), 0 4px 12px rgba(0,0,0,0.04);
  border-color: var(--red-brand-muted, var(--red-brand-muted));
}
.ch-step-card:hover::before { opacity: 1; }
.ch-step-num {
  font-family: var(--mono);
  font-size: 38px;
  font-weight: 700;
  letter-spacing: -0.04em;
  color: var(--red-brand-muted);
  line-height: 1;
  margin-bottom: 20px;
}
.ch-section--dark .ch-step-num { color: rgba(255,255,255,0.08); }
.ch-step-title {
  font-family: var(--sans);
  font-size: var(--text-lg);
  font-weight: 700;
  color: var(--charcoal);
  margin-bottom: var(--space-3);
  line-height: 1.3;
}
.ch-step-desc {
  font-size: var(--text-sm);
  color: var(--text-secondary);
  line-height: 1.75;
}

/* ═══ 카테고리 카드 — 프리미엄 ═══ */
.ch-category-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 24px;
}
.ch-category-card {
  display: flex;
  flex-direction: column;
  background: var(--bg-card);
  border: 1px solid rgba(0,0,0,0.06);
  border-radius: 0;
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  transition: all 0.5s cubic-bezier(0.22,1,0.36,1);
}
.ch-category-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 40px rgba(0,0,0,0.08);
  border-color: rgba(150,30,35,0.15);
  /* radius: 0 — sharp edge 철학 유지 */
}
/* ch-category-preview — moved to editorial card block below */
/* 카테고리별 그라디언트 */
/* ═══ 에디토리얼 카테고리 프리뷰 — 모노크롬 + 타이포그래피 중심 ═══ */
/* 이유: CHAART 브랜드 팔레트는 Red #961E23 + Charcoal + Warm Paper뿐.
   파랑/보라/시안은 브랜드에 정의된 색이 아님. 카테고리 구분은
   색이 아닌 타이포·아이콘·레이블로 한다. */
.ch-category-preview {
  height: 200px;
  display: flex;
  align-items: flex-end;
  justify-content: flex-start;
  padding: var(--space-7);
  font-family: var(--serif);
  font-size: clamp(2rem, 4vw, 3.2rem);
  font-weight: 400;
  font-style: italic;
  letter-spacing: -0.02em;
  line-height: 1;
  position: relative;
  overflow: hidden;
  background: var(--charcoal);
  color: var(--warm-bg);
  border-bottom: none;
}
.ch-category-preview::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    url("data:image/svg+xml,%3Csvg width='400' height='400' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.65' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.04'/%3E%3C/svg%3E");
  opacity: 0.5;
  mix-blend-mode: overlay;
  pointer-events: none;
}
.ch-category-preview::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: var(--space-7);
  right: var(--space-7);
  height: 1px;
  background: rgba(255,255,255,0.12);
}
/* 카드 호버 시 레드 악센트 라인 등장 */
.ch-category-card:hover .ch-category-preview::after {
  background: var(--red-brand);
  height: 2px;
  transition: all var(--dur-normal) var(--ease-default);
}
/* Brand — Charcoal (기본) + 레드 넘버 악센트 */
.ch-category-preview--brand {
  background: var(--charcoal);
  color: var(--warm-bg);
}
/* Tokens — 약간 밝은 차콜 */
.ch-category-preview--tokens {
  background: #2A2A2A;
  color: var(--warm-bg);
}
/* Components — 순수 블랙 */
.ch-category-preview--components {
  background: #1A1A1A;
  color: var(--warm-bg);
}
/* Patterns — 다크 + 미세 레드 그레인 */
.ch-category-preview--patterns {
  background: var(--charcoal);
  color: var(--warm-bg);
}
/* System/Dealer/Tools — 동일한 모노크롬 톤 */
.ch-category-preview--system {
  background: #222;
  color: var(--warm-bg);
}
.ch-category-preview--dealer {
  background: #1E1E1E;
  color: var(--warm-bg);
}
.ch-category-preview--tools {
  background: #262626;
  color: var(--warm-bg);
}
.ch-category-body {
  padding: var(--space-7) var(--space-7) var(--space-6);
  flex: 1;
  display: flex;
  flex-direction: column;
}
.ch-category-count {
  font-family: var(--mono);
  font-size: var(--text-11);
  font-weight: 600;
  color: var(--text-muted);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 6px;
}
.ch-category-name {
  font-family: var(--sans);
  font-size: var(--text-lg);
  font-weight: 700;
  color: var(--text);
  margin-bottom: 8px;
}
.ch-category-desc {
  font-size: var(--text-sm);
  color: var(--text-secondary);
  line-height: 1.65;
  flex: 1;
}
.ch-category-action {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--mono);
  font-size: var(--text-xs);
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--red-brand);
  margin-top: 20px;
  text-decoration: none;
  transition: gap 0.35s cubic-bezier(0.22,1,0.36,1);
}
.ch-category-action::after { content: "→"; transition: transform 0.35s cubic-bezier(0.22,1,0.36,1); }
.ch-category-card:hover .ch-category-action::after { transform: translateX(4px); }
.ch-category-card:hover .ch-category-action { gap: 12px; }

/* ═══ 기능 그리드 — 프리미엄 ═══ */
.ch-feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 40px;
}
.ch-feature-item {
  display: flex;
  gap: 20px;
  align-items: flex-start;
  padding: 24px;
  border-radius: 0;
  transition: background 0.4s cubic-bezier(0.22,1,0.36,1);
}
.ch-feature-item:hover {
  background: rgba(0,0,0,0.02);
  border-radius: var(--radius-hover);
}
.ch-section--dark .ch-feature-item:hover {
  background: rgba(255,255,255,0.03);
}
.ch-feature-icon {
  flex-shrink: 0;
  width: 52px; height: 52px;
  border-radius: 0;
  background: var(--red-brand-subtle);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: var(--text-lg);
  transition: transform 0.4s cubic-bezier(0.22,1,0.36,1);
}
.ch-feature-item:hover .ch-feature-icon { transform: scale(1.08); }
.ch-section--dark .ch-feature-icon {
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.06);
}
.ch-feature-text h4 {
  font-size: var(--text-base);
  font-weight: 700;
  color: inherit;
  margin-bottom: 6px;
  line-height: 1.3;
}
.ch-feature-text p {
  font-size: var(--text-sm);
  color: var(--text-secondary);
  line-height: 1.7;
}
.ch-section--dark .ch-feature-text h4 { color: var(--text-inverse); }
.ch-section--dark .ch-feature-text p { color: rgba(255,255,255,0.5); }

/* ═══ FAQ 아코디언 — 프리미엄 ═══ */
.ch-faq-list { list-style: none; padding: 0; margin: 0; max-width: 800px; }
.ch-faq-item {
  border-bottom: 1px solid rgba(0,0,0,0.06);
}
.ch-faq-q {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: var(--space-7) 0;
  background: none;
  border: none;
  font-family: var(--sans);
  font-size: var(--text-17);
  font-weight: 600;
  color: var(--text);
  cursor: pointer;
  text-align: left;
  transition: color 0.3s;
}
.ch-faq-q:hover { color: var(--red-brand); }
.ch-faq-q::after {
  content: "+";
  font-size: var(--text-xl);
  font-weight: 300;
  color: var(--text-muted);
  transition: all 0.4s cubic-bezier(0.22,1,0.36,1);
  flex-shrink: 0;
  margin-left: 16px;
}
.ch-faq-item.is-open .ch-faq-q::after {
  content: "−";
  color: var(--red-brand);
  transform: rotate(180deg);
}
.ch-faq-a {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.5s cubic-bezier(0.22,1,0.36,1), padding 0.5s cubic-bezier(0.22,1,0.36,1);
}
.ch-faq-item.is-open .ch-faq-a {
  max-height: 400px;
  padding-bottom: 28px;
}
.ch-faq-a p {
  font-size: var(--text-base);
  color: var(--text-secondary);
  line-height: 1.8;
  opacity: 0;
  transition: opacity 0.3s var(--ease) 0.1s;
}
.ch-faq-item.is-open .ch-faq-a p {
  opacity: 1;
}

/* ═══ CTA 배너 — 그라디언트 + 대형 타이포 ═══ */
.ch-cta-banner {
  position: relative;
  z-index: 1;
  text-align: center;
  padding: 120px var(--content-px);
  background: var(--black);
  color: var(--white);
  overflow: hidden;
}
.ch-cta-banner::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 60% 80% at 30% 100%, var(--red-brand-muted) 0%, transparent 70%),
    radial-gradient(ellipse 60% 60% at 70% 0%, var(--red-brand-subtle) 0%, transparent 60%);
  pointer-events: none;
}
.ch-cta-label {
  font-family: var(--mono);
  font-size: var(--text-11);
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.4);
  margin-bottom: var(--space-6);
  position: relative;
}
.ch-cta-title {
  font-size: clamp(32px, 5.5vw, 56px);
  font-weight: 700;
  color: var(--white);
  line-height: 1.1;
  letter-spacing: -0.03em;
  margin-bottom: 40px;
  position: relative;
}
.ch-cta-title .accent { color: var(--red-brand); }
.ch-cta-desc {
  font-size: var(--text-base);
  color: rgba(255,255,255,0.45);
  max-width: 480px;
  margin: 0 auto 40px;
  line-height: 1.7;
  position: relative;
}
.ch-cta-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 16px 36px;
  background: var(--red-brand);
  color: var(--white);
  border: none;
  border-radius: var(--radius-pill);
  font-family: var(--mono);
  font-size: var(--text-13);
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-decoration: none;
  cursor: pointer;
  position: relative;
  transition: all 0.4s cubic-bezier(0.22,1,0.36,1);
}
.ch-cta-btn:hover {
  transform: translateY(-3px) scale(1.03);
  box-shadow: 0 12px 40px rgba(150,30,35,0.35), var(--shadow-glow);
  background: #b52329;
  transition: all 0.4s var(--ease-spring);
}

/* ═══ 브레드크럼 ═══ */
.ch-breadcrumb {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--mono);
  font-size: var(--text-xs);
  font-weight: 500;
  letter-spacing: 0.04em;
  margin-bottom: var(--space-6);
  justify-content: center;
}
.ch-breadcrumb a {
  color: var(--text-muted);
  text-decoration: none;
  transition: color 0.3s;
}
.ch-breadcrumb a:hover { color: var(--red-brand); }
.ch-breadcrumb span { color: var(--text-muted); }
.ch-breadcrumb .current { color: var(--text); font-weight: 600; }

/* ═══ Phase 가이드 (How-to) — 프리미엄 ═══ */
.ch-phase-guide {
  display: flex;
  flex-direction: column;
  gap: 48px;
  max-width: 640px;
}
.ch-phase {
  display: flex;
  gap: var(--space-7);
  align-items: flex-start;
  position: relative;
}
.ch-phase:not(:last-child)::after {
  content: "";
  position: absolute;
  left: 27px;
  top: 60px;
  width: 1px;
  height: calc(100% + 12px);
  background: linear-gradient(180deg, var(--red-brand), transparent);
  opacity: 0.2;
}
.ch-phase-num {
  flex-shrink: 0;
  width: 56px; height: 56px;
  border-radius: 50%;
  background: var(--red-brand);
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--mono);
  font-size: var(--text-16);
  font-weight: 700;
  box-shadow: 0 4px 16px var(--red-brand-dim);
}
.ch-phase-content { flex: 1; padding-top: 4px; }
.ch-phase-title {
  font-family: var(--sans);
  font-size: var(--text-lg);
  font-weight: 700;
  color: var(--text);
  margin-bottom: var(--space-2);
  line-height: 1.3;
}
.ch-phase-desc {
  font-size: var(--text-sm);
  color: var(--text-secondary);
  line-height: 1.75;
}
.ch-section--dark .ch-phase-title { color: var(--text-inverse); }
.ch-section--dark .ch-phase-desc { color: rgba(255,255,255,0.5); }
.ch-section--dark .ch-phase:not(:last-child)::after { background: linear-gradient(180deg, rgba(255,255,255,0.15), transparent); }

/* ═══ 숫자 강조 그리드 (Stats) ═══ */
.ch-stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 32px;
}
.ch-stat {
  text-align: center;
  padding: 40px 20px;
}
.ch-stat-num {
  font-family: var(--mono);
  font-size: var(--text-4xl);
  font-weight: 700;
  color: var(--red-brand);
  line-height: 1;
  letter-spacing: -0.04em;
  margin-bottom: 12px;
}
.ch-section--dark .ch-stat-num { color: var(--white); }
.ch-stat-label {
  font-family: var(--mono);
  font-size: var(--text-xs);
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-secondary);
}
.ch-section--dark .ch-stat-label { color: rgba(255,255,255,0.45); }


/* ═══ 구분선 (세련된) ═══ */
.ch-divider {
  width: 60px;
  height: 1px;
  background: var(--red-brand);
  margin: 80px auto;
  opacity: 0.3;
}

/* ═══ 컬러 쇼케이스 카드 ═══ */
.ch-color-showcase {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 16px;
  border-radius: 0;
  overflow: hidden;
}
.ch-color-block {
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: var(--space-7);
  min-height: 200px;
  border-radius: 0;
}
.ch-color-block--red {
  background: var(--red-brand);
  color: var(--white);
  grid-row: span 2;
  min-height: 420px;
}
.ch-color-block--charcoal { background: var(--charcoal); color: var(--white); }
.ch-color-block--ivory { background: var(--bg); color: var(--charcoal); border: 1px solid rgba(0,0,0,0.06); }
.ch-color-name {
  font-family: var(--mono);
  font-size: var(--text-sm);
  font-weight: 600;
  letter-spacing: 0.04em;
  margin-bottom: 4px;
}
.ch-color-hex {
  font-family: var(--mono);
  font-size: var(--text-xs);
  opacity: 0.6;
  letter-spacing: 0.02em;
}

/* ═══ 타이포 쇼케이스 ═══ */
.ch-type-showcase {
  display: flex;
  flex-direction: column;
  gap: 48px;
}
.ch-type-item {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 48px;
  align-items: start;
  padding-bottom: 48px;
  border-bottom: 1px solid rgba(0,0,0,0.06);
}
.ch-type-item:last-child { border-bottom: none; }
.ch-type-meta {}
.ch-type-role {
  font-family: var(--mono);
  font-size: var(--text-11);
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--red-brand);
  margin-bottom: 8px;
}
.ch-type-family {
  font-size: var(--text-lg);
  font-weight: 700;
  color: var(--text);
  margin-bottom: 8px;
}
.ch-type-desc {
  font-size: var(--text-sm);
  color: var(--text-secondary);
  line-height: 1.7;
}
.ch-type-specimen {
  font-size: clamp(28px, 4vw, 42px);
  line-height: 1.3;
  color: var(--text);
}
.ch-type-specimen.is-serif { font-family: var(--serif); font-weight: 400; }
.ch-type-specimen.is-sans { font-family: var(--sans); font-weight: 500; }
.ch-type-specimen.is-mono { font-family: var(--mono); font-weight: 500; }

/* ═══ 유저 스토리 카드 ═══ */
.ch-testimonial-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
}
.ch-testimonial {
  background: var(--bg-card);
  border: 1px solid rgba(0,0,0,0.06);
  border-radius: 0;
  padding: 36px 32px;
  transition: all 0.5s cubic-bezier(0.22,1,0.36,1);
}
.ch-testimonial:hover {
  transform: translateY(-4px);
  box-shadow: 0 20px 60px rgba(0,0,0,0.06);
  border-radius: var(--radius-hover);
}
.ch-testimonial-text {
  font-size: var(--text-base);
  line-height: 1.75;
  color: var(--text);
  margin-bottom: 24px;
  font-style: italic;
}
.ch-testimonial-text::before { content: "\201C"; color: var(--red-brand); font-size: var(--text-xl); }
.ch-testimonial-author {
  font-family: var(--mono);
  font-size: var(--text-13);
  font-weight: 600;
  color: var(--text);
}
.ch-testimonial-role {
  font-family: var(--mono);
  font-size: var(--text-xs);
  color: var(--text-muted);
  margin-top: 2px;
}

/* ═══ 접근 등급 (Tier) 바 ═══ */
.ch-tier-stack {
  display: flex;
  flex-direction: column;
  gap: 12px;
  max-width: 640px;
}
.ch-tier {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 20px 28px;
  border-radius: 0;
  border: 1px solid rgba(0,0,0,0.06);
  background: var(--bg-card);
  transition: all 0.4s cubic-bezier(0.22,1,0.36,1);
}
.ch-tier:hover {
  transform: translateX(4px);
  box-shadow: 0 8px 24px rgba(0,0,0,0.06);
  border-radius: var(--radius-hover);
}
.ch-tier-badge {
  font-family: var(--mono);
  font-size: var(--text-11);
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 4px 12px;
  border-radius: var(--radius-pill);
  flex-shrink: 0;
}
.ch-tier-badge--admin { background: var(--red-brand); color: var(--white); }
.ch-tier-badge--premium { background: var(--color-gold); color: var(--white); }
.ch-tier-badge--standard { background: var(--color-success); color: var(--white); }
.ch-tier-badge--entry { background: var(--color-neutral); color: var(--white); }
.ch-tier-name {
  font-size: var(--text-base);
  font-weight: 600;
  color: var(--text);
  flex: 1;
}
.ch-tier-desc {
  font-size: var(--text-sm);
  color: var(--text-muted);
}

/* ═══ 톤 비교 카드 ═══ */
.ch-tone-compare {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}
.ch-tone-card {
  padding: 40px 32px;
  border-radius: 0;
  position: relative;
}
.ch-tone-card--old {
  background: rgba(0,0,0,0.04);
  border: 1px solid rgba(0,0,0,0.06);
}
.ch-tone-card--new {
  background: var(--black);
  color: var(--text-inverse);
}
.ch-tone-label {
  font-family: var(--mono);
  font-size: var(--text-11);
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.ch-tone-card--old .ch-tone-label { color: var(--text-muted); }
.ch-tone-card--new .ch-tone-label { color: var(--red-brand); }
.ch-tone-quote {
  font-size: clamp(16px, 2vw, 20px);
  line-height: 1.65;
  font-style: italic;
}
.ch-tone-card--old .ch-tone-quote { color: var(--text-secondary); }
.ch-tone-card--new .ch-tone-quote { color: rgba(255,255,255,0.85); }

/* 반응형 */
@media (max-width: 768px) {
  .ch-hero { padding: 148px var(--content-px-mobile) 52px; }
  .ch-container { padding: 0 var(--content-px-mobile); }
  .ch-section { padding: 72px 0; }
  .ch-step-grid { grid-template-columns: 1fr; }
  .ch-category-grid { grid-template-columns: 1fr; }
  .ch-section-header { flex-direction: column; gap: 14px; align-items: flex-start; margin-bottom: 40px; }
  .ch-cta-banner { padding: 72px var(--content-px-mobile); }
  .ch-phase { flex-direction: column; }
  .ch-color-showcase { grid-template-columns: 1fr; }
  .ch-color-block--red { grid-row: span 1; min-height: 180px; }
  .ch-type-item { grid-template-columns: 1fr; gap: 16px; }
  .ch-tone-compare { grid-template-columns: 1fr; }
  .ch-feature-item { padding: 14px; }
  /* Responsive Prompt Bar */
  .ch-prompt-bar { max-width: calc(100% - 32px); height: 48px; padding: 4px 4px 4px 20px; margin: 0 auto 16px; }
  .ch-prompt-input { font-size: 14px; }
  .ch-prompt-btn { width: 40px; height: 40px; padding: 0; font-size: var(--icon-md); }
}

/* Extra small screens (375px - 480px) */
@media (max-width: 480px) {
  .ch-prompt-bar { max-width: calc(100% - 24px); height: 44px; padding: 3px 3px 3px 16px; margin: 0 auto 12px; }
  .ch-prompt-input { font-size: 13px; padding: 0 12px; }
  .ch-prompt-btn { width: 38px; height: 38px; padding: 0; font-size: var(--icon-sm); }
}

/* ── 8. Toast Notification ── */
.ds-toast {
  position: fixed;
  bottom: var(--space-8);
  left: 50%;
  transform: translateX(-50%) translateY(20px) scale(0.95);
  background: var(--charcoal);
  color: var(--white);
  font-family: var(--mono);
  font-size: var(--text-sm);
  padding: 10px var(--space-6);
  border-radius: var(--radius-pill);
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--dur-slow) var(--ease-spring), transform var(--dur-slow) var(--ease-spring);
  z-index: 9999;
}
.ds-toast.is-visible {
  opacity: 1;
  transform: translateX(-50%) translateY(0) scale(1);
}


/* ============================================================
   Utility Classes — CHAART OS
   디자인 토큰 기반 유틸리티. 인라인 스타일 대체용.
   ============================================================ */

/* ── Layout ── */
.d-flex { display: flex; }
.d-grid { display: grid; }
.d-block { display: block; }
.d-none { display: none; }
.flex-col { flex-direction: column; }
.flex-wrap { flex-wrap: wrap; }
.items-center { align-items: center; }
.items-start { align-items: flex-start; }
.items-end { align-items: flex-end; }
.justify-center { justify-content: center; }
.justify-between { justify-content: space-between; }
.justify-end { justify-content: flex-end; }
.flex-1 { flex: 1; }
.flex-shrink-0 { flex-shrink: 0; }

/* ── Gap ── */
.gap-1 { gap: var(--space-1); }
.gap-2 { gap: var(--space-2); }
.gap-3 { gap: var(--space-3); }
.gap-4 { gap: var(--space-4); }
.gap-5 { gap: var(--space-5); }
.gap-6 { gap: var(--space-6); }

/* ── Spacing: Padding ── */
.p-1 { padding: var(--space-1); }
.p-2 { padding: var(--space-2); }
.p-3 { padding: var(--space-3); }
.p-4 { padding: var(--space-4); }
.p-5 { padding: var(--space-5); }
.p-6 { padding: var(--space-6); }
.px-2 { padding-left: var(--space-2); padding-right: var(--space-2); }
.px-3 { padding-left: var(--space-3); padding-right: var(--space-3); }
.px-4 { padding-left: var(--space-4); padding-right: var(--space-4); }
.px-6 { padding-left: var(--space-6); padding-right: var(--space-6); }
.py-1 { padding-top: var(--space-1); padding-bottom: var(--space-1); }
.py-2 { padding-top: var(--space-2); padding-bottom: var(--space-2); }
.py-3 { padding-top: var(--space-3); padding-bottom: var(--space-3); }
.py-4 { padding-top: var(--space-4); padding-bottom: var(--space-4); }

/* ── Spacing: Margin ── */
.m-0 { margin: 0; }
.mt-1 { margin-top: var(--space-1); }
.mt-2 { margin-top: var(--space-2); }
.mt-3 { margin-top: var(--space-3); }
.mt-4 { margin-top: var(--space-4); }
.mb-1 { margin-bottom: var(--space-1); }
.mb-2 { margin-bottom: var(--space-2); }
.mb-3 { margin-bottom: var(--space-3); }
.mb-4 { margin-bottom: var(--space-4); }
.mx-auto { margin-left: auto; margin-right: auto; }

/* ── Typography: Size ── */
.text-2xs { font-size: var(--text-2xs); }
.text-xs  { font-size: var(--text-xs); }
.text-sm  { font-size: var(--text-sm); }
.text-base { font-size: var(--text-base); }
.text-md  { font-size: var(--text-md); }
.text-lg  { font-size: var(--text-lg); }
.text-xl  { font-size: var(--text-xl); }
.text-2xl { font-size: var(--text-2xl); }
.text-3xl { font-size: var(--text-3xl); }
.text-4xl { font-size: var(--text-4xl); }
.text-11  { font-size: var(--text-11); }
.text-13  { font-size: var(--text-13); }

/* ── Typography: Weight ── */
.fw-300 { font-weight: 300; }
.fw-400 { font-weight: 400; }
.fw-500 { font-weight: 500; }
.fw-600 { font-weight: 600; }
.fw-700 { font-weight: 700; }

/* ── Typography: Style ── */
.uppercase { text-transform: uppercase; }
.text-center { text-align: center; }
.text-right { text-align: right; }
.text-left { text-align: left; }
.whitespace-nowrap { white-space: nowrap; }
.truncate { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.leading-tight { line-height: 1.3; }
.leading-normal { line-height: 1.5; }
.leading-relaxed { line-height: 1.7; }

/* ── Typography: Color ── */
.text-charcoal { color: var(--charcoal); }
.text-body { color: var(--text); }
.text-secondary { color: var(--text-secondary); }
.text-muted { color: var(--text-muted); }
.text-caption { color: var(--text-caption); }
.text-inverse { color: var(--text-inverse); }
.text-brand { color: var(--red-brand); }
.text-success { color: var(--color-success); }
.text-warning { color: var(--color-warning); }
.text-danger { color: var(--color-danger); }
.text-info { color: var(--color-info-alt); }
.text-gold { color: var(--color-gold); }
.text-cyan { color: var(--color-cyan); }

/* ── Background ── */
.bg-white { background: var(--white); }
.bg-card { background: var(--bg-card); }
.bg-page { background: var(--bg); }
.bg-warm { background: var(--warm-bg); }
.bg-secondary { background: var(--bg-secondary); }
.bg-charcoal { background: var(--charcoal); }
.bg-brand { background: var(--red-brand); }
.bg-success { background: var(--color-success-bg); }
.bg-warning { background: var(--color-warning-bg); }
.bg-danger { background: var(--color-danger-bg); }
.bg-info { background: var(--color-info-bg); }

/* ── Border ── */
.border { border: 1px solid var(--border); }
.border-strong { border: 1px solid var(--border-strong); }
.border-0 { border: 0; }
.border-t { border-top: 1px solid var(--border); }
.border-b { border-bottom: 1px solid var(--border); }

/* ── Border Radius ── */
.rounded-2 { border-radius: var(--radius-2); }
.rounded-3 { border-radius: var(--radius-3); }
.rounded-xs { border-radius: var(--radius-xs); }
.rounded-sm { border-radius: var(--radius-sm); }
.rounded-md { border-radius: var(--radius-md); }
.rounded { border-radius: var(--radius); }
.rounded-10 { border-radius: var(--radius-10); }
.rounded-lg { border-radius: var(--radius-lg); }
.rounded-xl { border-radius: var(--radius-xl); }
.rounded-pill { border-radius: var(--radius-pill); }
.rounded-full { border-radius: var(--radius-round); }

/* ── Shadow ── */
.shadow-xs { box-shadow: var(--shadow-xs); }
.shadow-sm { box-shadow: var(--shadow-sm); }
.shadow-md { box-shadow: var(--shadow-md); }
.shadow-lg { box-shadow: var(--shadow-lg); }
.shadow-xl { box-shadow: var(--shadow-xl); }

/* ── Width / Height ── */
.w-full { width: 100%; }
.h-full { height: 100%; }

/* ── Cursor ── */
.cursor-pointer { cursor: pointer; }

/* ── Overflow ── */
.overflow-hidden { overflow: hidden; }
.overflow-auto { overflow: auto; }
.overflow-x-auto { overflow-x: auto; }

/* ── Transition ── */
.transition-fast { transition: all var(--dur-fast) var(--ease); }
.transition-normal { transition: all var(--dur-normal) var(--ease); }
.transition-slow { transition: all var(--dur-slow) var(--ease); }

/* ── Component Showcase (system/components.html) ── */
.demo-flex {
  display: flex;
  gap: var(--space-2);
  flex-wrap: wrap;
  align-items: center;
}
.demo-flex-center {
  display: flex;
  gap: var(--space-2);
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
}
.demo-grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-3);
}
.demo-grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-3);
}
.demo-stack {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}

/* ═══ Ripple Effect ═══ */
@keyframes rippleExpand {
  to {
    transform: scale(4);
    opacity: 0;
  }
}
.ripple-effect {
  position: relative;
  overflow: hidden;
}
.ripple-effect .ripple {
  position: absolute;
  border-radius: 50%;
  background: rgba(255,255,255,0.35);
  width: 40px;
  height: 40px;
  transform: scale(0);
  animation: rippleExpand 0.6s ease-out forwards;
  pointer-events: none;
}
