/* =====================================================
   D-WMS Landing — style.css
   Design Ref: docs/02-design — Pragmatic 3-File
   ===================================================== */

/* === 0. Reset & Base ============================== */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body, h1, h2, h3, h4, h5, h6, p, ul, ol, li, figure, figcaption, blockquote, dl, dd {
  margin: 0; padding: 0;
}
ul, ol { list-style: none; }
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; background: none; border: 0; cursor: pointer; color: inherit; }
input, select, textarea { font: inherit; color: inherit; }
hr { border: 0; border-top: 1px solid var(--c-border); margin: 12px 0; }

/* === 1. CSS Variables ============================== */
:root {
  --c-brand:         #1BED99;     /* 원본 헤더 브랜드 민트 */
  --c-primary:       #15AC70;     /* sec5 deep green */
  --c-primary-dark:  #0e8a59;
  --c-mint:          #48EEAC;     /* sec3 mint accent */
  --c-mint-dark:     #30859C;     /* sec3 list4 dark teal */
  --c-kakao-grad-1:  rgba(31,112,79,0);
  --c-kakao-grad-2:  rgba(31,112,79,.75);
  --c-kakao-grad-3:  #1F704F;
  --c-text:          #222;
  --c-text-sub:      #666;
  --c-text-mute:     #999;
  --c-bg:            #ffffff;
  --c-bg-alt:        #f7f8fa;
  --c-bg-dark:       #1f2937;
  --c-border:        #e5e7eb;
  --c-overlay:       rgba(0,0,0,.5);

  --ff-base: 'Noto Sans KR', -apple-system, BlinkMacSystemFont, 'Apple SD Gothic Neo', 'Malgun Gothic', sans-serif;

  --fs-hero:  clamp(28px, 4vw, 48px);
  --fs-title: clamp(24px, 3vw, 36px);
  --fs-sub:   clamp(16px, 1.6vw, 20px);
  --fs-body:  16px;
  --fs-small: 14px;

  --lh-tight: 1.3;
  --lh-base:  1.65;

  --container-max: 1200px;
  --gutter: clamp(16px, 4vw, 32px);
  --section-py: clamp(72px, 10vw, 140px);

  --ease: cubic-bezier(.4,0,.2,1);
  --dur-1: 240ms;
  --dur-2: 600ms;

  --z-header:  100;
  --z-floating: 90;
  --z-modal:   1000;

  --header-h: 76px;
}

@media (prefers-reduced-motion: reduce) {
  :root { --dur-1: 0ms; --dur-2: 0ms; }
  html  { scroll-behavior: auto; }
}

/* === 2. Body & Typography ========================= */
body {
  font-family: var(--ff-base);
  font-size: var(--fs-body);
  line-height: var(--lh-base);
  color: var(--c-text);
  background: var(--c-bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  word-break: keep-all;
  overflow-x: hidden;
}

.inner {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 var(--gutter);
  position: relative;
}

.eyebrow {
  font-size: 20px;
  font-weight: 700;
  color: var(--c-primary);
  text-align: center;
  margin-bottom: 15px;
}
@media (max-width: 720px) {
  .eyebrow { font-size: 18px; }
}
.section-title {
  font-size: var(--fs-title);
  line-height: var(--lh-tight);
  font-weight: 400;
  text-align: center;
}
.section-title strong { font-weight: 700; }

.section-subtitle {
  font-size: clamp(20px, 2.4vw, 28px);
  font-weight: 700;
  line-height: var(--lh-tight);
  text-align: center;
  margin-bottom: 56px;
}

.mo-br { display: none; }

/* === 3. Reveal-on-Scroll Animations ============== */
.ani {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity var(--dur-2) var(--ease),
              transform var(--dur-2) var(--ease);
}
.ani.is-visible {
  opacity: 1;
  transform: none;
}

/* === 4. Header (원본: 블랙 배경 + 흰 메뉴 + 민트 outlined CTA) ==== */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  padding: 14px 0;
  background: #000;
  color: #fff;
  z-index: var(--z-header);
  transition: background var(--dur-1) var(--ease);
}
.site-header .inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.logo-link { display: inline-flex; align-items: center; }
.logo { height: 36px; width: auto; }

.primary-nav { display: flex; }
.primary-nav ul {
  display: flex;
  gap: clamp(20px, 3vw, 60px);
}
.primary-nav a {
  display: inline-block;
  padding: 8px 4px;
  font-size: 16px;
  font-weight: 700;
  color: #fff;
  position: relative;
  transition: color var(--dur-1);
}
.primary-nav a::after {
  content: "";
  position: absolute; left: 0; bottom: 2px;
  width: 0; height: 2px;
  background: var(--c-brand);
  transition: width var(--dur-1) var(--ease);
}
.primary-nav a:hover { color: var(--c-brand); }
.primary-nav a:hover::after { width: 100%; }

.header-cta { display: flex; gap: 10px; }
.btn-inquiry {
  display: inline-block;
  width: 120px;
  padding: 13px 0;
  background: transparent;
  color: var(--c-brand);
  border: 1px solid var(--c-brand);
  border-radius: 4px;
  font-size: 16px;
  font-weight: 700;
  text-align: center;
  transition: background var(--dur-1), color var(--dur-1);
}
.btn-inquiry:hover { background: var(--c-brand); color: #000; }

.nav-toggle {
  display: none;
  width: 40px; height: 40px;
  flex-direction: column; justify-content: center; align-items: center;
  gap: 5px;
  background: transparent;
}
.nav-toggle span {
  display: block;
  width: 24px; height: 2px;
  background: #fff;
  transition: transform var(--dur-1) var(--ease),
              opacity var(--dur-1);
}
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* === 5. Floating Sub-Menu (Kakao) — 원본 그라디언트 그린 ===== */
.sub-menu {
  position: fixed;
  right: 3%;
  bottom: 9%;
  z-index: var(--z-floating);
  width: 90px;
  aspect-ratio: 1;
  border-radius: 50%;
  background:
    linear-gradient(180deg, var(--c-kakao-grad-1) 0%, var(--c-kakao-grad-2) 74.84%, var(--c-kakao-grad-3) 100%),
    var(--c-primary);
  filter: drop-shadow(3px 7px 4px rgba(0,0,0,.25));
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  text-align: center;
  color: #fff;
  font-size: 14px;
  transition: transform var(--dur-1) var(--ease);
}
.sub-menu:hover { transform: translateY(-4px); }
.sub-menu img { width: 32px; height: 32px; margin-bottom: 4px; }
.sub-menu p { font-size: 12px; font-weight: 700; line-height: 1.2; }

/* === 6. Section Base ============================== */
.sec {
  padding: var(--section-py) 0;
  position: relative;
}
.sec + .sec:not(.sec-hero) { /* nothing */ }

/* === 7. Section: Hero ============================= */
.sec-hero {
  position: relative;
  min-height: 100vh;
  padding: 0;
  overflow: hidden;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #061a14;
}

/* Hero 배경 영상 (hero-bg.mp4) */
.hero-bg {
  position: absolute; inset: 0;
  z-index: 0;
  overflow: hidden;
  pointer-events: none;
}
.hero-bg__video {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  z-index: 0;
}
.hero-bg__overlay {
  position: absolute; inset: 0;
  background:
    linear-gradient(180deg, rgba(0,0,0,.55) 0%, rgba(0,0,0,.35) 35%, rgba(0,0,0,.55) 100%);
  z-index: 1;
}

/* Hero device images — 중앙 스택 + 페이드 캐러셀 (6장이 동일 사이즈 대시보드 mockup) */
.hero-images {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: calc(var(--header-h) + 24px) var(--gutter) 24px;
  pointer-events: none;
}
.hero-images.mo { display: none; }
.hero-images__inner {
  position: relative;
  width: 100%;
  max-width: 1100px;
  aspect-ratio: 1201 / 694;
  margin: 0 auto;
}
.hero-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  opacity: 1;
  filter: drop-shadow(0 18px 40px rgba(0,0,0,.55));
  animation: heroFloat 2s ease-in-out infinite;
}
/* 6장이 동시에 보이며 미세하게 떠오르는 float (라이브와 동일) */
.hero-img-1, .hero-img-3, .hero-img-5 { animation-delay: 0.3s; }
.hero-img-2, .hero-img-4, .hero-img-6 { animation-delay: 0.1s; }

@keyframes heroFloat {
  0%   { transform: translateY(0); }
  50%  { transform: translateY(-0.7%); }
  100% { transform: translateY(0); }
}

/* Hero centered text — 가로/세로 모두 중앙. 텍스트가 dashboard PNG 상단부 영역에 위치하도록
   하여 하단 중앙의 녹색 알림 박스(사고 예방…)와 겹치지 않게 함 */
.sec-hero__inner {
  position: relative;
  z-index: 3;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  pointer-events: none;
}
.hero-item {
  padding: 0;
  /* dashboard PNG 안전영역(약 y=380~620)에 텍스트가 정확히 들어가도록 압축 + 미세 위 이동 */
  transform: translateY(-3%);
}
.hero-text-1 {
  font-size: clamp(18px, 2.56vw, 32px);
  font-weight: 700;
  color: #fff;
  line-height: 1.25;
  text-align: center;
}
.hero-text-1 span {
  display: block;
  font-size: clamp(20px, 3.36vw, 42px);
  color: #fff;
  margin-top: 4px;
}
.hero-stick {
  width: 80px; height: 4px;
  background: #fff;
  margin: 14px auto;
}
.hero-text-2 {
  display: inline-block;
  width: clamp(280px, 40vw, 500px);
  padding: 10px 0;
  font-size: clamp(14px, 1.6vw, 20px);
  font-weight: 700;
  color: #fff;
  border: 2px solid #fff;
  border-radius: 5px;
}

/* === 8. Section: Outline (sec2) ===================== */
/* 원본: padding 150px 0, text-center, text_1 28px line-height 160% */
.sec-outline {
  background: #fff;
  text-align: center;
  padding: 150px 0;
}
.sec-outline .eyebrow { text-align: center; margin-bottom: 15px; }
.sec-outline .section-title {
  font-size: 28px;
  line-height: 1.6;
  font-weight: 400;
}
@media (max-width: 1250px) {
  .sec-outline .section-title { font-size: 24px; }
}
@media (max-width: 720px) {
  .sec-outline { padding: 13vw 0; }
  .sec-outline .section-title { font-size: 20px; }
}
@media (max-width: 500px) {
  .sec-outline .section-title { font-size: 16px; }
}

/* === 9. Section: About System (sec3) — 원본 정밀 매칭 ====== */
/* 다크 배경 + bg.png + 흰 텍스트 + 민트 #48EEAC + title/sub_title 좌측 정렬 */
.sec-about {
  padding: 100px 0;
  background: url('../img/main/sec3/bg.png') no-repeat center / cover, #0c2226;
  color: #fff;
}
.sec-about .eyebrow { text-align: left; color: var(--c-mint); }
.sec-about .section-subtitle { color: #fff; text-align: left; padding-bottom: 20px; }

.about-list { gap: 0; }
.about-item {
  padding: 40px 0 60px;
  border-top: 1px solid #fff;
  display: block;
}
.about-item:last-child { border-bottom: none; }

.about-text { text-align: left; margin-bottom: 20px; }
.feature-title {
  display: inline-block;
  width: fit-content;
  font-size: 22px;
  font-weight: 700;
  color: var(--c-mint);
  padding-bottom: 10px;
  margin-bottom: 15px;
  border-bottom: 1px solid #fff;
}
.feature-title::before { display: none; }
.about-text .bullet-list {
  display: block;
  color: #fff;
  font-size: 20px;
  line-height: 1.6;
  text-align: left;
}
.about-text .bullet-list li { padding-left: 0; }
.about-text .bullet-list li::before { display: none; }
.about-text .bullet-list li strong { color: var(--c-mint); }

.about-visual { display: flex; justify-content: center; }
.about-visual img.pc { display: block; max-width: 100%; }

.about-list { display: block; }
.bullet-list {
  display: block;
  list-style: none;
  margin: 0;
  padding: 0;
}
.bullet-list li { padding: 0; }
.bullet-list li::before { content: "- "; }

.about-visual img.pc { display: block; max-width: 100%; }
.about-visual img.mo { display: none; }

/* About — Step Flow (List 2) */
.step-flow {
  display: grid;
  grid-template-columns: repeat(7, auto);
  gap: 16px;
  align-items: stretch;
  justify-content: center;
  margin-top: 24px;
}
/* List 2 — 4-step Flow: 250x250 mint-bordered squares */
.step-flow {
  display: flex;
  align-items: stretch;
  justify-content: center;
  gap: 0;
  flex-wrap: wrap;
}
.step-flow > li.step,
.step-flow > li.step-arrow {
  display: flex;
  align-items: center;
  justify-content: center;
}
.step {
  flex: 0 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
}
.step-arrow {
  flex: 0 0 auto;
  padding: 0 10px;
}
.step-arrow img { width: 28px; height: auto; }
.step .step-title {
  font-size: 20px;
  font-weight: 700;
  color: var(--c-mint);
  text-align: center;
  margin-bottom: 15px;
}
.step .step-detail {
  width: 250px;
  aspect-ratio: 1 / 1;
  padding: 20px;
  border: 2px solid var(--c-mint);
  border-radius: 10px;
  line-height: 1.8;
  font-size: 15px;
  color: #fff;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: stretch;
  text-align: center;
}
.step-detail li { padding-left: 0; }
.step-detail li::before { display: none; }
.step-detail li strong { color: var(--c-mint); }
.step-arrow { display: flex; align-items: center; }
.step-arrow img { width: 24px; opacity: .8; }

/* About — Barcode Grid (List 3) */
.barcode-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
  margin-top: 24px;
}
/* List 3 — 바코드 카드 (height 246px, mint border) */
.barcode-grid {
  display: flex;
  gap: 60px;
  width: 100%;
}
.barcode-grid > li {
  flex: 1 1 50%;
}
.barcode-title {
  font-size: 20px;
  font-weight: 700;
  color: var(--c-mint);
  text-align: center;
  margin-bottom: 15px;
}
.barcode-card {
  height: 246px;
  padding: 20px;
  border: 2px solid var(--c-mint);
  border-radius: 10px;
  display: flex;
  align-items: center;
  gap: 20px;
  background: transparent;
  color: #fff;
}
.barcode-card img { width: 32%; max-width: 110px; height: auto; background: #fff; padding: 6px; border-radius: 4px; }
.barcode-body { flex: 1; }
.barcode-body p { font-size: 14px; color: #fff; line-height: 1.6; }
.barcode-body .lead { font-size: 18px; color: #fff; margin-bottom: 10px; font-weight: 700; }
.barcode-body hr { border-top: 1px solid #fff; margin: 16px 0; }
.barcode-body strong { color: var(--c-mint); }

/* About — FIFO Flow (List 4) */
.fifo-flow {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 24px;
  align-items: center;
  margin-top: 24px;
}
/* List 4 — 선입선출 (FIFO) */
.fifo-flow {
  position: relative;
  display: flex;
  gap: 60px;
  width: 100%;
}
.fifo-flow > li {
  flex: 1 1 50%;
  display: flex;
  align-items: stretch;
}
.fifo-flow > li.step-arrow {
  flex: 0 0 auto;
  align-items: center;
  justify-content: center;
}
.fifo-card {
  width: 100%;
  height: 246px;
  padding: 20px;
  border: 2px solid var(--c-mint);
  border-radius: 10px;
  display: flex;
  align-items: center;
  gap: 20px;
  color: #fff;
}
.fifo-card.green { border-color: var(--c-mint-dark); }
.fifo-card img { width: 32%; max-width: 110px; height: auto; background: #fff; padding: 6px; border-radius: 4px; }
.fifo-card .bullet-list { flex: 1; font-size: 15px; color: #fff; line-height: 1.7; }
.fifo-card .bullet-list li { padding-left: 0; }
.fifo-card .bullet-list li::before { display: none; }
.fifo-card .bullet-list li strong { color: var(--c-mint); }
/* arrow between fifo cards on PC: outer absolute (per original list4 ::before) */
.fifo-flow > li:first-child { position: relative; }
.fifo-flow > li:first-child::after {
  content: url('../img/main/sec3/arrow1.png');
  position: absolute;
  right: -42px; top: 50%;
  transform: translateY(-50%);
  width: 28px;
}

/* About — System Map (List 5) */
.system-map {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  align-items: center;
  justify-content: center;
  margin-top: 32px;
}
.system-group {
  display: flex; gap: 16px; align-items: center;
}
.system-group--triple { gap: 12px; }
/* System Map — 원본: m_circle_box 두 개 (D-WMS 라벨 + 외부 시스템) */
.system-map {
  margin-top: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
  flex-wrap: wrap;
  position: relative;
}
.system-group {
  position: relative;
  padding: 25px;
  border: 2px solid var(--c-mint);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
}
.system-group:first-of-type::after {
  content: 'D-WMS (위험물관리 시스템)';
  position: absolute;
  top: -34px;
  left: 50%;
  transform: translateX(-50%);
  font-size: 20px;
  font-weight: 700;
  color: var(--c-mint);
  white-space: nowrap;
}
.system-group--triple {
  border: none;
  padding: 0;
  gap: 5px;
}
.circle {
  width: 180px; height: 180px;
  aspect-ratio: 1;
  border-radius: 50%;
  background: transparent;
  border: 1px solid var(--c-mint);
  color: #fff;
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  text-align: center;
  padding: 8px;
}
.circle img { width: 36px; height: 36px; margin-bottom: 10px; }
.circle p { font-size: 20px; line-height: 1.3; font-weight: 700; }
.circle small { font-weight: 400; font-size: 13px; display: block; margin-top: 4px; color: rgba(255,255,255,.8); }
.plus-sign img { width: 22px; height: 22px; }
@media (max-width: 1250px) {
  .system-map { flex-direction: column; }
  .system-group--triple { flex-wrap: wrap; }
  .circle { width: 140px; height: 140px; }
  .circle p { font-size: 16px; }
}

/* === 10. Section: Client (sec4) ===================== */
.sec-client {
  padding: 100px 0;
  background: url('../img/main/sec4/bg.png') no-repeat center / cover, var(--c-bg-alt);
}
.sec-client .eyebrow { text-align: left; }
.sec-client .section-subtitle { text-align: left; margin-bottom: 20px; }

.client-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  margin-top: 20px;
}
.client-grid li {
  background: #fff;
  border-radius: 10px;
  padding: 30px 16px;
  text-align: center;
  box-shadow: 13px 13px 13px 0 rgba(0,0,0,.15);
  transition: transform var(--dur-1) var(--ease);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 20px;
}
.client-grid li:hover {
  transform: translateY(-4px);
}
.client-grid img {
  height: auto;
  max-height: 60px;
  width: auto;
  max-width: 80%;
  object-fit: contain;
  filter: none;
  opacity: 1;
  margin: 0;
}
.client-grid p { font-size: 22px; font-weight: 700; color: var(--c-text); }

@media (max-width: 1250px) { .client-grid p { font-size: 20px; } }
@media (max-width: 900px)  { .client-grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 720px)  { .sec-client { padding: 11vw 0; } .client-grid p { font-size: 18px; } }
@media (max-width: 500px)  { .client-grid { grid-template-columns: repeat(2, 1fr); } .client-grid p { font-size: 14px; } }

/* === 11. Section: Service Flow (sec5) =============== */
.sec-flow {
  padding: 100px 0 150px;
  background: #fff;
}
.sec-flow .eyebrow { text-align: left; }
.sec-flow .section-subtitle { text-align: left; margin-bottom: 40px; }

.flow-block { margin-bottom: 0; }
.sec-flow .inner > .flow-block + .flow-block { margin-top: 150px; }

.flow-label {
  font-size: 22px;
  font-weight: 700;
  color: var(--c-primary);
  margin-bottom: 40px;
  padding-bottom: 10px;
  border-bottom: 1px solid #E4E4E4;
}
@media (max-width: 1250px) {
  .sec-flow .inner > .flow-block + .flow-block { margin-top: 100px; }
  .flow-label { font-size: 20px; }
}
@media (max-width: 720px) {
  .sec-flow { padding: 11vw 0 15vw; }
  .sec-flow .inner > .flow-block + .flow-block { margin-top: 50px; }
  .flow-label { font-size: 18px; margin-bottom: 20px; }
}
@media (max-width: 500px) { .flow-label { font-size: 16px; } }

.slider {
  position: relative;
  max-width: 980px;
  margin: 0 auto;
  border-radius: 16px;
  overflow: visible; /* dots를 슬라이더 아래로 빠뜨려 보이게 */
  background: var(--c-bg-alt);
  box-shadow: 0 16px 36px rgba(0,0,0,.06);
  padding-bottom: 28px; /* dots 영역 확보 */
}
.slider__track {
  display: flex;
  transition: transform 600ms var(--ease);
  will-change: transform;
}
.slide {
  flex: 0 0 100%;
  text-align: center;
  padding: 32px 24px 56px;
}
.slide img {
  max-width: 100%;
  height: auto;
  margin: 0 auto;
  border-radius: 8px;
}
.slide {
  position: relative;
  padding: 0;
}
.slide img {
  width: 100%;
  height: auto;
  border-radius: 10px;
  box-shadow: 12px 18px 12px 0 rgba(0,0,0,.15);
}
.slide p {
  position: absolute;
  bottom: 5%;
  right: 5%;
  padding: 10px 15px;
  font-size: 22px;
  font-weight: 700;
  color: #fff;
  background-color: var(--c-primary);
  border-radius: 5px;
  margin: 0;
}
@media (max-width: 1250px) { .slide p { font-size: 20px; } }
@media (max-width: 720px)  { .slide p { font-size: 18px; } }
@media (max-width: 500px)  { .slide p { font-size: 14px; } }
.slider__btn {
  position: absolute;
  top: 50%; transform: translateY(-50%);
  width: 44px; height: 44px;
  border-radius: 50%;
  background: rgba(255,255,255,.9);
  box-shadow: 0 4px 12px rgba(0,0,0,.12);
  font-size: 28px;
  line-height: 1;
  font-weight: 600;
  color: var(--c-primary-dark);
  transition: background var(--dur-1);
  z-index: 2;
}
.slider__btn:hover { background: #fff; }
.slider__btn--prev { left: 12px; }
.slider__btn--next { right: 12px; }
.slider__dots {
  position: absolute;
  bottom: 6px; left: 0; right: 0;
  display: flex; justify-content: center; gap: 8px;
  z-index: 2;
}
.slider__dots button {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: rgba(0,0,0,.2);
  transition: background var(--dur-1), width var(--dur-1);
}
.slider__dots button[aria-selected="true"] {
  background: var(--c-primary);
  width: 24px; border-radius: 4px;
}
.slider__btn { color: var(--c-primary); }

.mobile-display-grid {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  width: 100%;
}
.mobile-display-grid li {
  flex: 1 1 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  position: relative;
}
.mobile-display-grid img {
  width: 100%;
  max-width: 220px;
  margin: 0 auto;
  border-radius: 10px;
  box-shadow: 12px 18px 12px 0 rgba(0,0,0,.15);
}
.mobile-display-grid p {
  margin-top: 12px;
  padding: 8px 14px;
  font-size: 18px;
  font-weight: 700;
  color: #fff;
  background-color: var(--c-primary);
  border-radius: 5px;
}
@media (max-width: 950px)  { .mobile-display-grid { justify-content: center; gap: 5px; } }
@media (max-width: 720px)  {
  .mobile-display-grid { flex-wrap: wrap; }
  .mobile-display-grid li { flex: 0 0 calc(50% - 8px); }
  .mobile-display-grid p { font-size: 16px; }
}

/* === 12. Section: Start D-WMS (sec6) ================ */
.sec-start {
  padding: 100px 0;
  background: url('../img/main/sec6/bg1.png') no-repeat top 70px left 0 / cover, var(--c-bg-alt);
}
.sec-start .eyebrow { text-align: left; }
.sec-start .section-subtitle { text-align: left; margin-bottom: 0; }
.start-caption {
  margin: 50px 0 20px;
  font-size: 20px;
  padding-bottom: 10px;
  border-bottom: 1px solid #E4E4E4;
  color: #222;
  font-weight: 700;
}
.video-frame {
  position: relative;
  z-index: 2;
  width: 100%;
  height: 700px;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 16px 40px rgba(0,0,0,.18);
}
.video-frame iframe,
.video-frame video {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  border: 0;
  background: #000;
  object-fit: contain;
}
@media (max-width: 1250px) {
  .start-caption { margin: 20px 0; }
  .video-frame { height: 53vw; }
}
@media (max-width: 720px) {
  .sec-start { padding: 11vw 0; }
  .start-caption { font-size: 16px; }
}

/* === 13. Section: Contact (sec7) ===================== */
.sec-contact {
  padding: 100px 0;
  background: var(--c-bg-alt);
}
.sec-contact .eyebrow { text-align: left; }
.sec-contact .section-subtitle { text-align: left; margin-bottom: 20px; }

.form-notice {
  text-align: center;
  font-size: 14px;
  color: var(--c-text-sub);
  margin-bottom: 0;
  padding: 12px 16px;
  background: transparent;
  border-radius: 8px;
}

.contact-form {
  max-width: 100%;
  margin: 20px auto 0;
  padding: 40px;
  background: #fff;
  border-radius: 20px;
  box-shadow: 8px 10px 8px 0 rgba(0,0,0,.15);
}
@media (max-width: 1250px) { .contact-form { padding: 20px; } }
@media (max-width: 720px)  { .sec-contact { padding: 11vw 0; } }
@media (max-width: 500px)  { .contact-form { padding: 15px; } }
.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px 24px;
}
.form-grid .full { grid-column: 1 / -1; }
.form-grid .row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.form-label {
  display: block;
  font-size: 14px;
  font-weight: 700;
  margin-bottom: 8px;
  color: var(--c-text);
}
.req { color: #e74c3c; }

.form-input {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--c-border);
  border-radius: 8px;
  background: #fff;
  font-size: 15px;
  transition: border-color var(--dur-1), box-shadow var(--dur-1);
}
.form-input:focus {
  outline: none;
  border-color: var(--c-primary);
  box-shadow: 0 0 0 3px rgba(0,184,148,.15);
}
textarea.form-input { resize: vertical; min-height: 140px; }

.radio-group {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
}
.radio-group label {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 14px;
  border: 1px solid var(--c-border);
  border-radius: 999px;
  cursor: pointer;
  font-size: 13px;
  background: #fff;
  transition: border-color var(--dur-1), background var(--dur-1);
}
.radio-group label:hover { border-color: var(--c-primary); }
.radio-group input[type="radio"] { accent-color: var(--c-primary); }
.radio-group input:checked + span { color: var(--c-primary-dark); font-weight: 700; }
.radio-group label:has(input:checked) {
  border-color: var(--c-primary);
  background: rgba(0,184,148,.06);
}

.agree-row {
  margin: 24px 0;
  text-align: center;
  font-size: 14px;
}
.agree-row label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
}
.agree-row input[type="checkbox"] { accent-color: var(--c-primary); width: 16px; height: 16px; }
.link-btn {
  color: var(--c-primary-dark);
  text-decoration: underline;
  padding: 0;
}

.form-submit {
  display: block;
  margin: 16px auto 0;
  padding: 16px 56px;
  background: var(--c-primary);
  color: #fff;
  border-radius: 999px;
  font-size: 16px;
  font-weight: 700;
  letter-spacing: .04em;
  transition: background var(--dur-1), transform var(--dur-1);
}
.form-submit:hover { background: var(--c-primary-dark); transform: translateY(-2px); }

/* === 14. Footer ===================================== */
.site-footer {
  padding: 40px 0;
  background: linear-gradient(90deg, #111 0%, #333 100%);
  color: #fff;
}
.site-footer .inner {
  display: flex;
  flex-direction: column;
  align-items: flex-start;   /* 좌측 정렬 */
}
.footer-logo {
  display: block;
  margin: 0;          /* 좌측 정렬 */
  width: 120px;
  /* 원본 녹색 로고 그대로 표시 (filter 제거) */
}
.footer-info {
  width: 100%;
  max-width: 670px;
  margin: 30px auto 45px;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 15px;
  color: #fff;
}
.footer-info li {
  display: flex;
  align-items: center;
  gap: 10px;
}
.footer-info li:not(:last-child)::after {
  content: '';
  display: inline-block;
  width: 1px;
  height: 10px;
  background-color: #d9d9d9;
  margin-left: 15px;
}
.footer-info b { font-size: 16px; font-weight: 700; }
.footer-info span { font-size: 15px; color: #fff; }
.copyright {
  width: 100%;
  text-align: center;
  font-size: 13px;
  color: #505050;
  margin: 0;
  padding: 0;
  border-top: none;
}
@media (max-width: 720px) {
  .footer-logo { width: 100px; }
  .footer-info {
    width: 100%;
    flex-direction: column;
    margin: 20px 0;
    align-items: flex-start;
    padding: 0;                      /* 부모 .inner의 gutter padding과 중복 방지 */
  }
  .footer-info li {
    flex-direction: row;
    gap: 10px;
    align-items: baseline;
  }
  .footer-info li:not(:last-child)::after { display: none; }
  .footer-info b { font-size: 14px; }
  .footer-info span { font-size: 12px; }
  .copyright {
    font-size: 11px;
    text-align: left;
    padding: 0;                      /* 부모 .inner의 gutter padding과 중복 방지 */
  }
}
@media (max-width: 500px) {
  .site-footer { padding: 20px 0; }
  .footer-logo { width: 80px; }
}

/* === 15. Privacy Modal ============================ */
.modal {
  position: fixed; inset: 0;
  z-index: var(--z-modal);
  display: flex;
  align-items: center; justify-content: center;
  padding: 16px;
}
.modal[hidden] { display: none; }
.modal__backdrop {
  position: absolute; inset: 0;
  background: rgba(0,0,0,.55);
  animation: fadeIn var(--dur-1) var(--ease);
}
.modal__panel {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 640px;
  max-height: 80vh;
  overflow-y: auto;
  background: #fff;
  border-radius: 16px;
  padding: 32px 28px 28px;
  box-shadow: 0 24px 64px rgba(0,0,0,.3);
  animation: panelIn var(--dur-1) var(--ease);
}
.modal__close {
  position: absolute;
  top: 12px; right: 16px;
  width: 36px; height: 36px;
  font-size: 24px;
  line-height: 1;
  color: var(--c-text-mute);
  border-radius: 50%;
  transition: background var(--dur-1);
}
.modal__close:hover { background: var(--c-bg-alt); color: var(--c-text); }
.modal__title {
  font-size: 20px;
  font-weight: 800;
  margin-bottom: 16px;
}
.modal__body p { font-size: 14px; color: var(--c-text-sub); margin-bottom: 12px; line-height: 1.7; }
.modal__body h4 {
  font-size: 14px;
  font-weight: 700;
  color: var(--c-text);
  margin: 16px 0 6px;
}

@keyframes fadeIn   { from { opacity: 0 } to { opacity: 1 } }
@keyframes panelIn  { from { opacity: 0; transform: translateY(8px) scale(.98) } to { opacity: 1; transform: none } }

body.modal-open { overflow: hidden; }

/* === 16. Responsive — Tablet (≤ 1024px) =========== */
@media (max-width: 1024px) {
  .step-flow {
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
  }
  .step-arrow { display: none; }
  .step { max-width: none; }

  .barcode-grid { grid-template-columns: 1fr; }

  .system-map { flex-direction: column; }
  .system-group { flex-wrap: wrap; justify-content: center; }

  .client-grid { grid-template-columns: repeat(3, 1fr); }
  .mobile-display-grid { grid-template-columns: repeat(2, 1fr); }

  .radio-group { grid-template-columns: repeat(2, 1fr); }
}

/* === 17. Responsive — Mobile (≤ 768px) ============ */
@media (max-width: 768px) {
  :root { --header-h: 64px; }
  .mo-br { display: inline; }

  /* Header */
  .nav-toggle { display: flex; }
  .header-cta { display: none; }
  .primary-nav {
    position: fixed;
    top: var(--header-h); left: 0; right: 0;
    background: #fff;
    border-bottom: 1px solid var(--c-border);
    padding: 24px var(--gutter);
    transform: translateY(-100%);
    transition: transform var(--dur-1) var(--ease), visibility 0s linear var(--dur-1);
    margin: 0;
    visibility: hidden; /* 닫힌 상태에서 nav 하단이 화면 상단에 노출되지 않도록 */
    z-index: calc(var(--z-header) - 1);
  }
  .primary-nav.is-open {
    transform: none;
    visibility: visible;
    transition: transform var(--dur-1) var(--ease), visibility 0s linear 0s;
  }
  .primary-nav ul { flex-direction: column; gap: 8px; }
  .primary-nav a {
    display: block;
    padding: 12px 0;
    font-size: 16px;
    color: var(--c-text); /* 모바일 흰 배경 위에서 보이도록 다크 텍스트 */
  }
  .primary-nav a:hover { color: var(--c-primary); }
  .primary-nav a::after { display: none; }

  /* Hero — 모바일 */
  .sec-hero { min-height: 100vh; }
  .sec-hero__inner {
    padding-top: calc(var(--header-h) + 24px);
  }
  .hero-item { padding: 16px 0 0; }
  .hero-stick { margin: 16px auto; }
  .hero-text-2 { width: auto; max-width: 92%; }
  /* 모바일: PC와 동일한 레이아웃. 비디오 배경, 중앙에 텍스트, 주위에 dashboard 말풍선.
     hero 높이는 dashboard 이미지가 차지하는 공간(컨텐츠 사이즈)에 맞춤. */
  .sec-hero {
    min-height: unset;
    /* 모바일 dashboard 이미지가 들어가는 정사각형에 가까운 영역 + 헤더 + 여백 */
    height: calc(var(--header-h) + 100vw);
    padding: 0;
    position: relative;
    display: block;
  }
  /* 비디오는 hero 전체 cover (= 텍스트+말풍선 컨텐츠 사이즈와 동일) */
  .hero-bg {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
  }
  .hero-bg__video { object-fit: cover; }
  /* 텍스트는 hero 정중앙 배치 */
  .sec-hero__inner {
    position: absolute;
    inset: 0;
    padding: var(--header-h) var(--gutter) 0;
    z-index: 3;
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
  }
  .hero-item {
    padding: 0;
    transform: none;
    word-break: keep-all;
  }
  .hero-text-1 {
    font-size: clamp(15px, 3.8vw, 20px);
    line-height: 1.45;
    word-break: keep-all;
    overflow-wrap: break-word;
    color: #fff;
    text-shadow: none;
  }
  .hero-text-1 span {
    font-size: clamp(15px, 4.2vw, 22px);
    word-break: keep-all;
    overflow-wrap: break-word;
    margin-top: 4px;
  }
  .hero-stick { margin: 12px auto; background: #fff; }
  .hero-text-2 {
    width: auto;
    max-width: 92%;
    padding: 10px 14px;
    word-break: keep-all;
    line-height: 1.4;
    color: #fff;
    border-color: #fff;
  }
  .hero-images.pc { display: none; }
  /* dashboard 이미지: hero 전체 cover하되 상단(헤더 아래)과 하단에 여유 확보 —
     "직관적이고…" 말풍선이 헤더와 겹치지 않도록 padding-top 강화 */
  .hero-images.mo {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    padding: calc(var(--header-h) + 32px) var(--gutter) 24px;
    z-index: 2;
    pointer-events: none;
  }
  .hero-images__inner {
    position: relative;
    width: 100%;
    height: 100%;
    max-width: 100%;
    aspect-ratio: auto;
    margin: 0 auto;
  }
  /* 모바일 dashboard 이미지를 상단 여백 확보를 위해 약간 아래로 */
  .hero-images.mo .hero-img { object-position: center; }
  .hero-img {
    position: absolute;
    inset: 0;
    width: 100%; height: 100%;
    object-fit: contain;
    opacity: 1;
  }
  .hero-bg__overlay {
    background: linear-gradient(180deg, rgba(0,0,0,.55) 0%, rgba(0,0,0,.55) 100%);
  }

  /* About */
  .about-list { gap: 72px; }
  .about-visual img.pc { display: none; }
  .about-visual img.mo { display: block; max-width: 320px; }

  /* List 2 — step-flow: 세로 스택 */
  .step-flow { flex-direction: column; gap: 12px; align-items: center; }
  .step-flow > li.step,
  .step-flow > li.step-arrow { width: 100%; }
  .step .step-detail { width: 100%; max-width: 320px; aspect-ratio: auto; padding: 16px; font-size: 14px; }
  .step-flow > li.step-arrow img { transform: rotate(90deg); }

  /* List 3 — barcode: 세로 스택, 카드 내부도 세로 */
  .barcode-grid { flex-direction: column; gap: 24px; }
  .barcode-grid > li { flex: 1 1 100%; }
  .barcode-card {
    height: auto;
    flex-direction: column;
    align-items: stretch;
    gap: 12px;
    padding: 16px;
  }
  .barcode-card img { width: 100%; max-width: 200px; margin: 0 auto; }
  .barcode-body { width: 100%; }
  .barcode-body .lead { font-size: 16px; }
  .barcode-body p { font-size: 13px; }

  /* List 4 — fifo-flow: 세로 스택, 화살표 회전 */
  .fifo-flow { flex-direction: column; gap: 24px; }
  .fifo-flow > li { flex: 1 1 100%; }
  .fifo-card { height: auto; flex-direction: column; align-items: stretch; gap: 12px; padding: 16px; }
  .fifo-card img { width: 100%; max-width: 200px; margin: 0 auto; }
  /* PC에서 absolute로 fifo-flow 첫 li::after 화살표 → 모바일에서는 무효화 */
  .fifo-flow > li:first-child::after { display: none; }
  .fifo-flow > li.step-arrow { display: flex; justify-content: center; }
  .fifo-flow > li.step-arrow img { transform: rotate(90deg); }

  /* List 5 — system-map: 세로 스택, group도 세로 */
  .system-map { flex-direction: column; gap: 16px; }
  .system-group { flex-direction: column; gap: 8px; }
  .system-group--triple { flex-wrap: wrap; }
  .circle { width: 130px; height: 130px; padding: 8px; }
  .circle p { font-size: 13px; line-height: 1.3; }
  .circle small { font-size: 11px; }

  /* Client */
  .client-grid { grid-template-columns: repeat(2, 1fr); gap: 16px; }
  .client-grid li { padding: 20px 12px; }
  .client-grid img { height: 44px; }

  /* Service Flow */
  .slider__btn { display: none; }
  .slide { padding: 20px 16px 48px; }
  .mobile-display-grid { grid-template-columns: repeat(2, 1fr); gap: 24px; }

  /* Contact */
  .form-grid { grid-template-columns: 1fr; gap: 16px; }
  .form-grid .row { grid-template-columns: 1fr; }
  .radio-group { grid-template-columns: 1fr; }

  /* Footer (라이브와 일치: ul 세로, li 가로(b+값), copyright 좌측 정렬은 위 미디어쿼리에서 처리) */
  .site-footer .inner { text-align: center; }
  .footer-logo { margin: 0; }

  /* Sub-Menu */
  .sub-menu { width: 56px; height: 56px; right: 16px; bottom: 16px; }
  .sub-menu img { width: 24px; height: 24px; }
  .sub-menu p { font-size: 8px; }
}

@media (max-width: 480px) {
  .hero-title { font-size: 26px; }
  .hero-title span { font-size: 20px; }
  .section-subtitle { margin-bottom: 40px; }
}
