:root {
  --bg: #ffffff;
  --panel: #f5f6f8;
  --panel-hover: #eef0f3;
  --text: #1a1a1a;
  --text-sub: #6b7280;
  --line: #e5e7eb;
  --brand: #1428a0;      /* 삼성 계열 딥 블루 */
  --brand-ink: #0d1b6b;
  --accent: #2b6fff;
  --shadow: 0 6px 24px rgba(20, 40, 160, 0.08);
  --radius: 18px;
  --maxw: 1160px;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  background: var(--bg);
  color: var(--text);
  font-family: 'Noto Sans KR', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  -webkit-font-smoothing: antialiased;
}

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

.wrap {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 24px;
}

/* ---------- 헤더 ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: saturate(180%) blur(8px);
  border-bottom: 1px solid var(--line);
}
.header-inner {
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.brand { display: flex; align-items: baseline; gap: 6px; }
.brand-mark {
  font-weight: 700;
  font-size: 22px;
  letter-spacing: 1px;
  color: var(--brand);
}
.brand-sub {
  font-weight: 500;
  font-size: 13px;
  letter-spacing: 3px;
  color: var(--text-sub);
}
.header-nav { display: flex; gap: 28px; }
.header-nav a {
  font-size: 15px;
  font-weight: 500;
  color: var(--text-sub);
  transition: color .15s;
}
.header-nav a:hover { color: var(--brand); }

/* ---------- 히어로 / 검색 ---------- */
.hero {
  padding: 72px 0 40px;
  text-align: center;
  background: #ffffff;
}
.hero-title {
  font-size: 34px;
  font-weight: 700;
  margin: 0 0 32px;
  letter-spacing: -0.5px;
}
.search-box {
  position: relative;
  max-width: 720px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  background: #fff;
  border: 1.5px solid var(--line);
  border-radius: 999px;
  padding: 6px 8px 6px 20px;
  box-shadow: var(--shadow);
  transition: border-color .15s, box-shadow .15s;
}
.search-box:focus-within {
  border-color: var(--brand);
  box-shadow: 0 8px 30px rgba(20, 40, 160, 0.14);
}
.search-ico {
  width: 22px; height: 22px;
  color: var(--text-sub);
  display: none;
}
.search-box input {
  flex: 1;
  border: 0;
  outline: 0;
  font-size: 17px;
  padding: 14px 8px;
  background: transparent;
  color: var(--text);
}
.search-box input::placeholder { color: #9aa1ac; }
.search-btn {
  width: 48px; height: 48px;
  border: 0;
  border-radius: 999px;
  background: var(--brand);
  color: #fff;
  cursor: pointer;
  display: grid;
  place-items: center;
  transition: background .15s;
}
.search-btn:hover { background: var(--brand-ink); }
.search-btn svg { width: 22px; height: 22px; }

/* 검색 결과 드롭다운 */
.search-results {
  position: absolute;
  top: calc(100% + 10px);
  left: 0; right: 0;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 16px;
  box-shadow: var(--shadow);
  overflow: hidden;
  text-align: left;
  z-index: 30;
}
.sr-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 13px 20px;
  border-bottom: 1px solid var(--line);
  transition: background .12s;
}
.sr-item:last-child { border-bottom: 0; }
.sr-item:hover { background: var(--panel); }
.sr-label { font-weight: 500; font-size: 15px; }
.sr-kind { font-size: 12.5px; color: var(--text-sub); }

.hero-tags {
  margin-top: 24px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px 22px;
  justify-content: center;
}
.hero-tags a {
  font-size: 15px;
  color: #4b5563;
  transition: color .15s;
}
.hero-tags a:hover { color: var(--brand); }

/* ---------- 섹션 ---------- */
.section-title {
  text-align: center;
  font-size: 26px;
  font-weight: 700;
  margin: 0 0 40px;
  letter-spacing: -0.4px;
}
.section-title.left { text-align: left; font-size: 20px; margin: 40px 0 18px; }

.picker { padding: 40px 0 96px; background: var(--panel); }
.picker .wrap { padding-top: 48px; }

/* ---------- 타일 그리드 ---------- */
.tile-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: 20px;
  max-width: 980px;
  margin: 0 auto;
}
.tile {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 8px 8px 4px;
  color: var(--text);
  transition: transform .15s;
}
.tile:not(.tile-disabled):hover { transform: translateY(-3px); }
.tile-icon {
  width: 120px;
  height: 120px;
  border-radius: 28px;
  background: #fff;
  border: 1px solid var(--line);
  display: grid;
  place-items: center;
  color: var(--text);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.03);
  transition: box-shadow .15s, border-color .15s;
}
.tile:not(.tile-disabled):hover .tile-icon {
  box-shadow: var(--shadow);
  border-color: #cfd6e4;
}
.tile-icon svg { width: 56px; height: 56px; }
.tile-label {
  margin-top: 16px;
  font-size: 16px;
  font-weight: 500;
}
.tile-sub {
  margin-top: 4px;
  font-size: 12.5px;
  color: var(--text-sub);
}
.tile-disabled { cursor: default; opacity: 0.6; }
.tile-disabled .tile-icon { background: var(--panel-hover); }
.tile-badge {
  position: absolute;
  top: 6px; right: 50%;
  transform: translateX(60px);
  background: #9aa1ac;
  color: #fff;
  font-size: 11px;
  padding: 2px 8px;
  border-radius: 999px;
}

/* ---------- 일반 페이지 ---------- */
.page { padding: 40px 0 96px; min-height: 60vh; }
.page-title { font-size: 30px; font-weight: 700; margin: 6px 0 8px; letter-spacing: -0.5px; }
.page-desc { color: var(--text-sub); font-size: 15.5px; margin: 0 0 36px; line-height: 1.6; }

/* 브레드크럼 */
.crumb {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 4px;
  font-size: 13.5px;
  color: var(--text-sub);
  margin-bottom: 18px;
}
.crumb a { color: var(--text-sub); transition: color .15s; }
.crumb a:hover { color: var(--brand); }
.crumb-cur { color: var(--text); font-weight: 500; }
.crumb-sep { display: inline-flex; opacity: .5; }
.crumb-sep svg { width: 14px; height: 14px; }

/* ---------- 제품 상세 ---------- */
.product-head { display: flex; align-items: center; gap: 20px; margin-bottom: 8px; }
.product-icon {
  width: 76px; height: 76px;
  border-radius: 20px;
  background: var(--panel);
  border: 1px solid var(--line);
  display: grid; place-items: center;
  color: var(--brand);
  flex: 0 0 auto;
}
.product-icon svg { width: 40px; height: 40px; }
.product-tagline { margin: 4px 0 0; color: var(--text-sub); font-size: 15px; }

.spec-list {
  margin: 0 0 12px;
  border: 1px solid var(--line);
  border-radius: 14px;
  overflow: hidden;
}
.spec-row { display: flex; border-bottom: 1px solid var(--line); }
.spec-row:last-child { border-bottom: 0; }
.spec-row dt {
  width: 160px;
  flex: 0 0 auto;
  background: var(--panel);
  padding: 14px 18px;
  font-size: 14px;
  color: var(--text-sub);
  font-weight: 500;
}
.spec-row dd { margin: 0; padding: 14px 18px; font-size: 14.5px; }

/* 다운로드 카드 */
.dl-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 16px;
}
.dl-card {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: #fff;
  transition: transform .15s, box-shadow .15s, border-color .15s;
}
.dl-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow);
  border-color: #cfd6e4;
}
.dl-doc {
  width: 48px; height: 48px;
  flex: 0 0 auto;
  border-radius: 12px;
  background: var(--panel);
  color: var(--brand);
  display: grid; place-items: center;
}
.dl-doc svg { width: 26px; height: 26px; }
.dl-body { flex: 1; display: flex; flex-direction: column; gap: 3px; }
.dl-title { font-size: 16px; font-weight: 600; }
.dl-desc { font-size: 13.5px; color: var(--text-sub); }
.dl-meta {
  font-size: 11.5px;
  color: var(--brand);
  font-weight: 600;
  margin-top: 2px;
}
.dl-arrow {
  width: 40px; height: 40px;
  flex: 0 0 auto;
  border-radius: 999px;
  background: var(--brand);
  color: #fff;
  display: grid; place-items: center;
  transition: background .15s;
}
.dl-card:hover .dl-arrow { background: var(--brand-ink); }
.dl-arrow svg { width: 20px; height: 20px; }

/* 빈 상태 */
.center-state { text-align: center; padding: 60px 0; }
.state-icon {
  width: 90px; height: 90px;
  border-radius: 24px;
  background: var(--panel);
  color: var(--text-sub);
  display: inline-grid; place-items: center;
  margin-bottom: 20px;
}
.state-icon svg { width: 44px; height: 44px; }
.btn-back {
  display: inline-block;
  margin-top: 24px;
  padding: 12px 28px;
  background: var(--brand);
  color: #fff;
  border-radius: 999px;
  font-weight: 500;
  transition: background .15s;
}
.btn-back:hover { background: var(--brand-ink); }

/* ---------- 푸터 ---------- */
.site-footer {
  border-top: 1px solid var(--line);
  background: #fafbfc;
  padding: 40px 0;
  text-align: center;
}
.foot-brand { font-weight: 700; color: var(--brand); margin: 0 0 6px; letter-spacing: 1px; }
.foot-line { color: var(--text-sub); font-size: 14px; margin: 0 0 14px; }
.foot-copy { color: #9aa1ac; font-size: 12.5px; margin: 0; }

/* ---------- 반응형 ---------- */
@media (max-width: 640px) {
  .hero { padding: 48px 0 32px; }
  .hero-title { font-size: 25px; }
  .search-box input { font-size: 15px; }
  .section-title { font-size: 22px; }
  .tile-grid { grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)); gap: 14px; }
  .tile-icon { width: 96px; height: 96px; border-radius: 22px; }
  .tile-icon svg { width: 46px; height: 46px; }
  .page-title { font-size: 24px; }
  .header-nav { gap: 18px; }
}
