/* BlueSky Computer Trading — 홈페이지
   방향(unslop): steady, straight-talking, hands-on · 창고와 검수대 · 유닛 번호 스티커가 표식
   색: 로고·명함의 세 색(Blue #0071bc · Sky #29abe2 · Green #00944b). 강조는 Blue 하나, 세 색은 명함과 같은 띠로만.
   글꼴: ERP와 같은 IBM Plex */

@font-face {
  font-family: 'IBM Plex Sans';
  font-weight: 100 700;
  font-display: swap;
  src: url('assets/fonts/ibm-plex-sans-latin.woff2') format('woff2');
}
@font-face {
  font-family: 'IBM Plex Mono';
  font-weight: 400;
  font-display: swap;
  src: url('assets/fonts/ibm-plex-mono-400-latin.woff2') format('woff2');
}
@font-face {
  font-family: 'IBM Plex Mono';
  font-weight: 500;
  font-display: swap;
  src: url('assets/fonts/ibm-plex-mono-500-latin.woff2') format('woff2');
}

:root {
  --page: #f5f7fa;
  --card: #ffffff;
  --raised: #eceff4;
  --hair: rgba(17, 24, 39, 0.08);
  --text: #111827;
  --text-2: #4b5565;
  --muted: #6b7487;
  --blue: #0071bc;          /* 로고 "Blue" */
  --sky: #29abe2;           /* 로고 "Sky" */
  --green: #00944b;         /* 로고 "COMPUTER TRADING" */
  --accent: var(--blue);    /* 흰 바탕 대비 5:1 — 버튼 글자·링크 모두 통과 */
  --accent-ink: #005a96;
  --accent-soft: #e8f3fb;
  --ok: var(--green);
  --warn: #b45309;
  --sans: 'IBM Plex Sans', system-ui, 'Segoe UI', Roboto, sans-serif;
  --mono: 'IBM Plex Mono', ui-monospace, Consolas, monospace;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

* {
  box-sizing: border-box;
  /* 스크롤바 — 기본 회색 막대 대신 얇고 옅게 (ERP와 같은 모양) */
  scrollbar-width: thin;
  scrollbar-color: color-mix(in srgb, var(--muted) 40%, transparent) transparent;
}
/* scrollbar-color를 모르는 Safari용 */
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: color-mix(in srgb, var(--muted) 40%, transparent); border: 2px solid transparent; border-radius: 8px; background-clip: padding-box; }
::-webkit-scrollbar-thumb:hover { background-color: color-mix(in srgb, var(--muted) 70%, transparent); }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0;
  background: var(--page);
  color: var(--text);
  font: 400 16px/1.6 var(--sans);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: var(--accent-ink); }
h1, h2, h3 { font-weight: 500; margin: 0; text-wrap: balance; }
h2 { font-size: 32px; line-height: 1.2; letter-spacing: -0.01em; margin-bottom: 16px; }
h3 { font-size: 17px; line-height: 1.4; margin-bottom: 8px; }
p { margin: 0; }
.mono { font-family: var(--mono); font-size: 13px; }
.muted { color: var(--muted); }

.wrap {
  max-width: 1200px;
  margin: 0 auto;
  padding-left: max(24px, env(safe-area-inset-left, 0px));
  padding-right: max(24px, env(safe-area-inset-right, 0px));
}

/* 표식 — 유닛 번호 태그 (ERP .unit-code와 같은 모양) */
.unit {
  display: inline-block;
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 500;
  line-height: 20px;
  padding: 0 6px;
  border-radius: 4px;
  background: var(--accent-soft);
  color: var(--accent-ink);
  white-space: nowrap;
}
.unit-lg { font-size: 15px; line-height: 26px; padding: 0 8px; }

/* 아직 모르는 회사 정보 자리 — 눈에 띄게. 실제 값으로 바꾸면 class를 지운다 */
.todo {
  background: #fff7ed;
  outline: 1px dashed #ea580c;
  outline-offset: 1px;
  color: #9a3412;
  font-family: var(--mono);
  font-size: 0.9em;
  padding: 0 4px;
  border-radius: 2px;
}

/* PREVIEW: 정식 오픈 전 안내 띠 — 오픈할 때 index.html의 블록과 함께 지운다 */
.preview-bar { background: var(--text); color: #e5e7eb; font-size: 13px; line-height: 1.5; padding: 8px 0; }
.preview-bar strong { color: #fff; font-weight: 500; margin-right: 4px; }

/* 3색 띠 — 명함과 같은 표식. 페이지 맨 위·맨 아래, 검수 스티커 윗변에만 */
.stripe { display: flex; height: 4px; }
.stripe i { display: block; }
.stripe i:nth-child(1) { flex: 3; background: var(--blue); }
.stripe i:nth-child(2) { flex: 2; background: var(--sky); }
.stripe i:nth-child(3) { flex: 1; background: var(--green); }
.stripe-tag { margin: -24px -24px 20px; height: 6px; border-radius: 12px 12px 0 0; overflow: hidden; }

/* 버튼 */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 36px;
  padding: 0 16px;
  border-radius: 8px;
  font: 500 14px var(--sans);
  text-decoration: none;
  white-space: nowrap;
  transition: background-color 150ms var(--ease), border-color 150ms var(--ease);
}
.btn:active { transform: scale(0.98); }
.btn:focus-visible, .nav-links a:focus-visible, .brand:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.btn-primary { background: var(--accent); color: #fff; }
.btn-primary:hover { background: var(--accent-ink); }
.btn-quiet { background: var(--card); color: var(--text); border: 1px solid var(--hair); }
.btn-quiet:hover { background: var(--raised); }
.btn-lg { height: 44px; padding: 0 20px; font-size: 15px; }

/* 상단 내비 */
.nav {
  position: sticky;
  top: 0;
  z-index: 10;
  background: rgba(245, 247, 250, 0.92);
  border-bottom: 1px solid var(--hair);
}
.nav-row { display: flex; align-items: center; gap: 32px; height: 72px; }
.brand { display: inline-flex; align-items: center; }
.brand img { height: 48px; width: auto; }
.nav-links { display: flex; gap: 24px; margin-left: auto; }
.nav-links a { color: var(--text-2); text-decoration: none; font-size: 14px; }
.nav-links a:hover { color: var(--text); }

/* Hero — 장면 이미지가 전체 배경, 글은 왼쪽 위, 재고표가 아래에서 올라온다 */
.hero { position: relative; overflow: hidden; padding-top: 96px; }
.hero-scene {
  position: absolute;
  inset: 0 0 auto 0;
  height: 640px;
  background: var(--raised); /* 이미지가 오기 전엔 빈 면 */
  /* 아래쪽을 페이지 색으로 녹여 재고표가 자연스럽게 올라오게 (이미지가 있어도 없어도) */
  -webkit-mask-image: linear-gradient(to bottom, #000 65%, transparent);
  mask-image: linear-gradient(to bottom, #000 65%, transparent);
}
.hero-scene img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: right center;
}
/* 글이 놓이는 왼쪽을 페이지 색으로 덮어 사진 위에서도 글이 읽히게 */
.hero-scene::after {
  content: "";
  position: absolute;
  inset: 0;
  /* 글 폭(약 600px)만큼은 창이 좁아도 덮는다 */
  background: linear-gradient(to right, var(--page) max(30%, 560px), color-mix(in srgb, var(--page) 60%, transparent) max(50%, 760px), transparent max(70%, 900px));
}
.hero-copy { position: relative; }
.hero h1 { font-size: 60px; line-height: 1.05; letter-spacing: -0.03em; max-width: 13ch; }
.lead { margin-top: 20px; font-size: 19px; line-height: 1.55; color: var(--text-2); max-width: 36rem; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }

/* 사양 단계표 — 첫 번째 모먼트 */
.sheet {
  position: relative;
  margin: 72px 0 0;
  background: var(--card);
  border: 1px solid var(--hair);
  border-radius: 16px;
  box-shadow: 0 8px 24px rgba(17, 24, 39, 0.06);
  overflow: hidden;
}
.sheet-head { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; padding: 16px 20px; border-bottom: 1px solid var(--hair); }
.sheet-title { font-weight: 500; font-size: 15px; }
.sheet-scroll { overflow-x: auto; }
.sheet table { width: 100%; border-collapse: collapse; font-size: 14px; white-space: nowrap; }
.sheet th { text-align: left; font-weight: 500; font-size: 12px; color: var(--muted); height: 40px; padding: 0 20px; border-bottom: 1px solid var(--hair); }
.sheet td { height: 48px; padding: 0 20px; border-bottom: 1px solid var(--hair); color: var(--text); }
.sheet tr:last-child td { border-bottom: 0; }
.sheet td.mono { color: var(--text-2); }
.sheet td.muted { white-space: normal; min-width: 200px; }
/* 최신 단계 — 첫 칸에 Blue 표시 (강조는 여기 하나) */
.sheet tr.hi td:first-child { color: var(--accent-ink); font-weight: 500; box-shadow: inset 3px 0 0 var(--accent); }
.num { text-align: right; }

/* 섹션 */
.section { padding: 96px 0; }
.hero + .section { padding-top: 112px; }
.section-alt { background: var(--card); border-top: 1px solid var(--hair); border-bottom: 1px solid var(--hair); }
.body { font-size: 17px; color: var(--text-2); max-width: 36rem; }
.body + .body { margin-top: 16px; }
.body.small { font-size: 15px; margin-top: 24px; }
.body.small + .body.small { margin-top: 8px; } /* 보증 본문 + 예외는 한 덩어리 */
.narrow { max-width: 32rem; }
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: start; }
.split-center { align-items: center; }
.split > * { min-width: 0; }
/* 장면 사진 — 설명용(AI 생성)이라 alt는 비운다 */
.photo { display: block; width: 100%; height: auto; margin-top: 40px; border-radius: 16px; border: 1px solid var(--hair); }

/* 무엇을 파나 — 종류 목록 (오른쪽) */
.kinds { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--hair); }
.kinds li { display: flex; justify-content: space-between; align-items: center; height: 52px; border-bottom: 1px solid var(--hair); font-size: 17px; }

/* 수량 — 세 갈래 */
.who { display: grid; grid-template-columns: repeat(3, 1fr); gap: 40px; margin-top: 48px; padding-top: 32px; border-top: 1px solid var(--hair); }
.who p, .steps p { color: var(--text-2); font-size: 15px; }

/* 사는 순서 */
.steps { list-style: none; margin: 48px 0 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 32px; }
.steps li { padding-top: 20px; border-top: 2px solid var(--text); }
.step-no { display: block; color: var(--muted); margin-bottom: 12px; }

/* 검수 */
.checks { list-style: none; margin: 24px 0 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 8px 24px; max-width: 28rem; }
.checks li { font-size: 15px; color: var(--text); padding-left: 20px; position: relative; }
.checks li::before { content: ""; position: absolute; left: 2px; top: 9px; width: 8px; height: 5px; border-left: 1.5px solid var(--ok); border-bottom: 1.5px solid var(--ok); transform: rotate(-45deg); }

/* 검수 스티커 — 두 번째 모먼트. 실제 라벨처럼 살짝 기울여 둔다 */
.tag-card {
  justify-self: center;
  width: min(100%, 360px);
  background: var(--card);
  border: 1px solid var(--hair);
  border-radius: 12px;
  padding: 24px;
  box-shadow: 0 1px 2px rgba(17, 24, 39, 0.05), 0 16px 40px rgba(17, 24, 39, 0.08);
  transform: rotate(-2deg);
}
.tag-top { display: flex; justify-content: space-between; align-items: center; }
.tag-model { margin-top: 20px; font-size: 18px; font-weight: 500; }
.tag-spec { margin-top: 4px; color: var(--text-2); }
.tag-rows { margin: 20px 0 0; border-top: 1px dashed var(--hair); }
.tag-rows div { display: flex; justify-content: space-between; height: 36px; align-items: center; border-bottom: 1px dashed var(--hair); font-size: 14px; }
.tag-rows dt { color: var(--text-2); }
.tag-rows dd { margin: 0; font-family: var(--mono); font-size: 13px; }
.tag-rows dd.ok { color: var(--ok); }
.tag-rows dd.warn { color: var(--warn); }
.tag-foot { margin-top: 16px; color: var(--muted); }

/* 방문·연락 */
.facts { margin: 24px 0 0; }
.facts div { display: grid; grid-template-columns: 112px 1fr; gap: 16px; padding: 12px 0; border-top: 1px solid var(--hair); font-size: 16px; }
.facts dt { color: var(--muted); }
.facts dd { margin: 0; }
.contact .btn { margin-top: 32px; }
.btn-messenger { gap: 8px; margin-top: 24px; }
/* Messenger 링크가 아직 없다는 표시 — 링크를 넣으면 class에서 todo-btn을 지운다 */
.todo-btn { outline: 2px dashed #ea580c; outline-offset: 3px; }
#contact .facts { margin-top: 32px; }

/* 상담 예시 대화 — 연락 섹션의 모먼트 */
.chat {
  margin: 0;
  justify-self: center;
  width: min(100%, 420px);
  background: var(--card);
  border: 1px solid var(--hair);
  border-radius: 16px;
  box-shadow: 0 8px 24px rgba(17, 24, 39, 0.06);
  overflow: hidden;
}
.chat-head { display: flex; align-items: center; gap: 8px; padding: 12px 16px; border-bottom: 1px solid var(--hair); font-size: 14px; font-weight: 500; }
.chat-head .mono { margin-left: auto; font-size: 12px; font-weight: 400; }
.chat-body { display: flex; flex-direction: column; gap: 8px; padding: 16px; }
.msg { margin: 0; max-width: 85%; padding: 8px 12px; border-radius: 16px; font-size: 14px; line-height: 1.45; }
.msg.in { align-self: flex-start; background: var(--raised); color: var(--text); border-bottom-left-radius: 4px; }
.msg.out { align-self: flex-end; background: var(--blue); color: #fff; border-bottom-right-radius: 4px; }
.msg-list { background: var(--card) !important; color: var(--text) !important; border: 1px solid var(--hair); display: flex; flex-direction: column; gap: 6px; }
.msg-list div { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 8px; font-size: 13px; }
.msg-list .note { font-family: var(--mono); font-size: 11px; color: var(--warn); }
.msg-list .more { color: var(--muted); font-size: 12px; }

/* 문서 페이지 (privacy.html) — 읽는 폭 65자 안팎 */
.prose { max-width: 760px; }
.prose h1 { font-size: 40px; line-height: 1.15; letter-spacing: -0.02em; margin-bottom: 8px; }
.prose h2 { font-size: 22px; margin: 48px 0 12px; }
.prose p, .prose li { font-size: 16px; color: var(--text-2); }
.prose p + p { margin-top: 12px; }
.prose ul { padding-left: 20px; margin: 12px 0; }
.prose li + li { margin-top: 6px; }
.prose strong { color: var(--text); font-weight: 500; }
.prose-table { width: 100%; border-collapse: collapse; margin: 12px 0; font-size: 15px; }
.prose-table th { text-align: left; font-weight: 500; font-size: 13px; color: var(--muted); padding: 8px 12px 8px 0; border-bottom: 1px solid var(--hair); }
.prose-table td { padding: 10px 12px 10px 0; border-bottom: 1px solid var(--hair); vertical-align: top; color: var(--text-2); }
.foot-row a { text-decoration: none; }

/* 푸터 */
.foot { border-top: 1px solid var(--hair); padding-top: 32px; font-size: 14px; }
.foot .stripe { margin-top: 32px; }
.foot-row { display: flex; flex-wrap: wrap; gap: 8px 24px; align-items: center; }
.foot-row .mono { margin-left: auto; }
.foot-row img { height: 36px; width: auto; }

/* 태블릿 */
@media (max-width: 960px) {
  .steps { grid-template-columns: 1fr 1fr; }
  .who { grid-template-columns: 1fr; gap: 24px; }
  .split { grid-template-columns: 1fr; gap: 40px; }
}

/* 폰 */
@media (max-width: 640px) {
  .wrap { padding-left: max(16px, env(safe-area-inset-left, 0px)); padding-right: max(16px, env(safe-area-inset-right, 0px)); }
  .nav-links { display: none; }
  .brand img { height: 34px; }
  .nav-cta { margin-left: auto; }
  .hero { padding-top: 56px; }
  .hero-scene { height: 480px; }
  .hero h1 { font-size: 38px; letter-spacing: -0.02em; }
  /* 폰은 글이 화면 폭 전체라 사진을 옅게 깐다 */
  .hero-scene::after { background: color-mix(in srgb, var(--page) 82%, transparent); }
  .lead { font-size: 17px; }
  .sheet { margin-top: 48px; }
  /* 좁은 화면에선 표를 줄인다 — 예시 모델 칸을 숨기고 단계·프로세서·메모리만 */
  .sheet th:nth-child(4), .sheet td:nth-child(4) { display: none; }
  .sheet td.mono { white-space: normal; }
  .sheet td { height: auto; padding-top: 10px; padding-bottom: 10px; }
  .sheet th, .sheet td { padding: 0 12px; }
  .section { padding: 64px 0; }
  .hero + .section { padding-top: 72px; }
  h2 { font-size: 26px; }
  .steps { grid-template-columns: 1fr; gap: 24px; }
  .checks { grid-template-columns: 1fr; }
  .facts div { grid-template-columns: 96px 1fr; }
  .tag-card { transform: none; }
}
