@charset "utf-8";
/* ==========================================================================
   홈
   ========================================================================== */

/* ---------- 히어로 ---------- */
.hero { position: relative; height: 640px; min-height: 480px; overflow: hidden; background: var(--primary-dark); }
.hero-slides { position: absolute; inset: 0; }
.hero-slide {
  position: absolute; inset: 0; background: center / cover no-repeat;
  opacity: 0; transition: opacity 1.1s var(--ease), transform 7s linear;
  transform: scale(1.06);
}
.hero-slide.on { opacity: 1; transform: scale(1); }
.hero::after {
  content: ""; position: absolute; inset: 0; z-index: 1;
  background: linear-gradient(88deg, rgba(6, 34, 58, .92) 0%, rgba(6, 34, 58, .74) 42%, rgba(6, 34, 58, .34) 100%);
}
.hero-in {
  position: relative; z-index: 2; height: 100%;
  max-width: var(--wrap); margin: 0 auto; padding: 0 var(--pad);
  display: flex; flex-direction: column; justify-content: center; color: #fff;
}
.hero-eyebrow {
  display: inline-flex; align-items: center; gap: 9px; align-self: flex-start;
  font-size: 13px; font-weight: 600; letter-spacing: .12em;
  color: var(--accent); margin-bottom: 20px;
}
.hero-eyebrow::before { content: ""; width: 28px; height: 1px; background: var(--accent); }
.hero-title {
  font-size: clamp(34px, 5.2vw, 58px); line-height: 1.22;
  font-weight: 800; letter-spacing: -.045em; text-wrap: balance;
}
.hero-title em { font-style: normal; color: var(--accent); }
.hero-desc {
  margin-top: 20px; max-width: 46ch; font-size: 17px; line-height: 1.75;
  color: rgba(255, 255, 255, .84);
}
.hero-btns { margin-top: 36px; display: flex; gap: 12px; flex-wrap: wrap; }
.hero .btn-primary { background: var(--accent); color: #04222F; }
.hero .btn-primary:hover { background: #21C0D8; }

.hero-dots { position: absolute; left: 0; right: 0; bottom: 34px; z-index: 3; }
.hero-dots-in {
  max-width: var(--wrap); margin: 0 auto; padding: 0 var(--pad);
  display: flex; gap: 10px;
}
.hero-dot {
  width: 34px; height: 3px; background: rgba(255, 255, 255, .32);
  transition: background .25s var(--ease);
}
.hero-dot.on { background: var(--accent); }

/* ---------- 공통 섹션 ---------- */
.sec { padding: var(--sec-y) 0; }
.sec-surface { background: var(--surface); }
.sec-in { max-width: var(--wrap); margin: 0 auto; padding: 0 var(--pad); }
.sec-top { margin-bottom: 44px; }
.sec-top .eyebrow {
  font-size: 13px; font-weight: 700; letter-spacing: .12em;
  color: var(--accent); margin-bottom: 12px;
}
.sec-top h2 {
  font-size: var(--fs-h2); line-height: var(--lh-h2);
  font-weight: 700; letter-spacing: -.035em; text-wrap: balance;
}
.sec-top p { margin-top: 12px; color: var(--gray); max-width: 60ch; }
.sec-top.row { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; }
.more-link {
  display: inline-flex; align-items: center; gap: 7px; flex: none;
  font-size: 15px; font-weight: 600; color: var(--primary);
}
.more-link::after {
  content: ""; width: 7px; height: 7px; border-top: 2px solid currentColor;
  border-right: 2px solid currentColor; transform: rotate(45deg);
  transition: transform .2s var(--ease);
}
.more-link:hover::after { transform: rotate(45deg) translate(2px, -2px); }

/* ---------- 숫자 ---------- */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); border-left: 1px solid var(--line); }
.stat { padding: 4px 28px; border-right: 1px solid var(--line); }
.stat-n {
  font-size: 44px; line-height: 1.1; font-weight: 800; letter-spacing: -.04em;
  color: var(--primary-dark); font-variant-numeric: tabular-nums;
}
.stat-n small { font-size: 20px; font-weight: 700; margin-left: 3px; letter-spacing: -.02em; }
.stat-l { margin-top: 8px; font-size: 15px; color: var(--gray); }

/* ---------- 제품군 ---------- */
/* 카드 자체 스타일은 common.css 에 있다 — 제품·실적 목록 페이지와 공유하기 때문 */
.prod-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }

/* ---------- 실적 + 공지 ---------- */
.dual { display: grid; grid-template-columns: 1fr 380px; gap: 48px; align-items: start; }
.pf-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; }

.nt-list { border-top: 2px solid var(--ink); }
.nt-item { border-bottom: 1px solid var(--line); }
.nt-item a { display: block; padding: 17px 4px; transition: background .15s var(--ease); }
.nt-item a:hover { background: var(--surface); }
.nt-title {
  font-size: 15px; font-weight: 500; line-height: 1.55;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.nt-item a:hover .nt-title { color: var(--primary); }
.nt-date { margin-top: 6px; font-size: 12.5px; color: var(--gray-2); font-variant-numeric: tabular-nums; }
.nt-empty { padding: 28px 4px; color: var(--gray-2); font-size: 15px; border-bottom: 1px solid var(--line); }

/* ---------- 고객사 ---------- */
.clients { overflow: hidden; -webkit-mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent); mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent); }
.clients-track { display: flex; width: max-content; animation: marquee 46s linear infinite; }
.clients-track:hover { animation-play-state: paused; }
.client-item {
  flex: none; width: 168px; height: 84px; margin-right: 14px;
  display: flex; align-items: center; justify-content: center;
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
}
.client-item img { max-width: 78%; max-height: 62%; object-fit: contain; filter: grayscale(1); opacity: .72; transition: filter .3s var(--ease), opacity .3s var(--ease); }
.client-item:hover img { filter: none; opacity: 1; }
@keyframes marquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) {
  .clients-track { animation: none; flex-wrap: wrap; width: 100%; justify-content: center; gap: 12px; }
  .client-item { margin-right: 0; }
}

/* ---------- responsive ---------- */
@media (max-width: 1024px) {
  .hero { height: 540px; }
  .prod-grid { grid-template-columns: repeat(3, 1fr); }
  .dual { grid-template-columns: 1fr; gap: 48px; }
  .stat { padding: 4px 20px; }
  .stat-n { font-size: 36px; }
}

@media (max-width: 768px) {
  .hero { height: 480px; min-height: 0; }
  .hero-desc { font-size: 15px; margin-top: 16px; }
  .hero-btns { margin-top: 26px; width: 100%; }
  .hero-btns .btn { flex: 1 1 auto; }
  .hero-dots { bottom: 22px; }
  .sec-top { margin-bottom: 28px; }
  .sec-top.row { flex-direction: column; align-items: flex-start; gap: 12px; }
  .stats { grid-template-columns: repeat(2, 1fr); border-left: 0; gap: 24px 0; }
  .stat { padding: 0 16px; border-right: 1px solid var(--line); }
  .stat:nth-child(2n) { border-right: 0; }
  .stat-n { font-size: 30px; }
  .stat-l { font-size: 13.5px; }
  .prod-grid { grid-template-columns: repeat(2, 1fr); gap: 14px; }
  .prod-body { padding: 14px 14px 16px; }
  .prod-name { font-size: 15px; }
  .prod-sum { font-size: 13px; }
  .pf-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }
  .client-item { width: 132px; height: 68px; }
}

@media (max-width: 480px) {
  .prod-grid { grid-template-columns: 1fr; }
  .pf-grid { grid-template-columns: 1fr; }
}
