/* ============================================================
   Friends 회사 홈페이지 — 메인 스타일
   다크 톤 + 큰 타이포그래피 (참고: makinarocks.ai / vms-solutions.com)
   ============================================================ */
:root {
  --bg:        #0b1220;   /* 기본 배경 (딥 네이비) */
  --bg-alt:    #0f1728;   /* 교차 섹션 배경 */
  --bg-card:   #141e33;   /* 카드 배경 */
  --line:      #223052;   /* 보더 */
  --text:      #e8edf7;   /* 본문 */
  --text-sub:  #9aa8c4;   /* 보조 텍스트 */
  --accent:    #4f8dff;   /* 포인트 블루 */
  --accent-2:  #35d0ba;   /* 서브 포인트 (민트) */
  --danger:    #ff6b6b;
  --radius:    14px;
  --header-h:  68px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: 'Pretendard', -apple-system, BlinkMacSystemFont, 'Malgun Gothic', sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.65;
  letter-spacing: -0.01em;
}
img { max-width: 100%; }
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; }
em { font-style: normal; }

.pc-only { display: inline; }
@media (max-width: 768px) { .pc-only { display: none; } }

/* ── 공통 버튼 ─────────────────────────────────────── */
.btn {
  display: inline-block;
  border-radius: 10px;
  font-weight: 700;
  border: 1px solid transparent;
  cursor: pointer;
  transition: all .2s ease;
  text-align: center;
}
.btn-sm { padding: 9px 18px; font-size: 14px; }
.btn-lg { padding: 15px 34px; font-size: 17px; }
.btn-block { display: block; width: 100%; }
.btn-primary { background: var(--accent); color: #fff; }
.btn-primary:hover { background: #3a77ea; transform: translateY(-2px); box-shadow: 0 8px 24px rgba(79,141,255,.35); }
.btn-ghost { border-color: var(--line); color: var(--text); background: transparent; }
.btn-ghost:hover { border-color: var(--accent); color: var(--accent); transform: translateY(-2px); }

/* ── 헤더 ─────────────────────────────────────────── */
.site-header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  height: var(--header-h);
  background: rgba(11,18,32,.82);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(34,48,82,.6);
}
.header-inner {
  max-width: 1180px; height: 100%; margin: 0 auto; padding: 0 24px;
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
}
.logo { display: inline-flex; align-items: center; gap: 10px; font-weight: 800; font-size: 21px; }
/* 로고는 브랜드 자산 SVG(app/img/ci/) 를 그대로 쓴다 — /brand/ 배포본과 동일한 로고를 보장 */
.logo-img { display: block; height: 34px; width: auto; }
@media (max-width: 768px) { .logo-img { height: 28px; } }
.logo-mark {
  display: inline-flex; align-items: center; justify-content: center;
  width: 32px; height: 32px; border-radius: 9px;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  color: #fff; font-size: 18px; font-weight: 900;
}
.gnb { display: flex; align-items: center; gap: 6px; }
.gnb-link {
  display: inline-block; padding: 10px 16px; border-radius: 8px;
  font-size: 15.5px; font-weight: 600; color: var(--text-sub);
  transition: color .15s ease, background .15s ease;
}
.gnb-link:hover, .gnb-link.active { color: #fff; background: rgba(79,141,255,.12); }
.gnb-item { position: relative; }
.gnb-sub {
  position: absolute; top: calc(100% + 8px); left: 50%; transform: translateX(-50%);
  min-width: 240px; padding: 10px;
  background: var(--bg-card); border: 1px solid var(--line); border-radius: 12px;
  box-shadow: 0 16px 40px rgba(0,0,0,.45);
  opacity: 0; visibility: hidden; transition: all .18s ease;
}
.gnb-item:hover .gnb-sub { opacity: 1; visibility: visible; }
.gnb-sub a, .gnb-sub-soon { display: block; padding: 12px 14px; border-radius: 8px; }
.gnb-sub a:hover { background: rgba(79,141,255,.12); }
.gnb-sub strong { display: block; font-size: 15px; }
.gnb-sub span { display: block; font-size: 12.5px; color: var(--text-sub); margin-top: 2px; }
.gnb-sub-soon { opacity: .55; }
.header-actions { display: flex; align-items: center; gap: 12px; }
.header-user { font-size: 14px; font-weight: 700; color: var(--text); }
.header-link {
  padding: 8px 10px; border: none; background: none; cursor: pointer;
  font-family: inherit; font-size: 14px; font-weight: 600; color: var(--text-sub);
  transition: color .15s ease;
}
.header-link:hover { color: #fff; }
.logout-form { display: inline-flex; }
.nav-toggle { display: none; background: none; border: none; cursor: pointer; padding: 6px; }
.nav-toggle span { display: block; width: 22px; height: 2px; background: var(--text); margin: 5px 0; border-radius: 2px; }

.site-main { padding-top: var(--header-h); }

/* ── Hero (메인) ──────────────────────────────────── */
.hero { position: relative; overflow: hidden; padding: 130px 24px 120px; text-align: center; }
.hero-bg {
  position: absolute; inset: 0; z-index: -1;
  background:
    radial-gradient(ellipse 60% 45% at 50% 0%, rgba(79,141,255,.22), transparent 70%),
    radial-gradient(ellipse 40% 35% at 85% 60%, rgba(53,208,186,.10), transparent 70%),
    linear-gradient(180deg, #0b1220 0%, #0d1526 100%);
}
.hero-bg::after {
  content: ''; position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(79,141,255,.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(79,141,255,.05) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(ellipse 70% 60% at 50% 30%, #000 30%, transparent 75%);
}
.hero-inner { max-width: 900px; margin: 0 auto; }
.hero-eyebrow {
  font-size: 13.5px; font-weight: 700; letter-spacing: .22em;
  color: var(--accent); margin-bottom: 22px;
}
.hero-title { font-size: clamp(40px, 7vw, 76px); font-weight: 900; line-height: 1.15; letter-spacing: -0.03em; }
.hero-title em { background: linear-gradient(120deg, var(--accent), var(--accent-2)); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
.hero-desc { margin: 26px auto 40px; font-size: clamp(15px, 2vw, 18.5px); color: var(--text-sub); }
.hero-actions { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }

/* ── 섹션 공통 ────────────────────────────────────── */
.section { padding: 110px 24px; }
.section.alt-bg { background: var(--bg-alt); }
.section-inner { max-width: 1180px; margin: 0 auto; }
.section-eyebrow { font-size: 13px; font-weight: 700; letter-spacing: .2em; color: var(--accent); margin-bottom: 14px; }
.section-title { font-size: clamp(28px, 4vw, 44px); font-weight: 800; letter-spacing: -0.02em; line-height: 1.25; margin-bottom: 20px; }
.section-desc { color: var(--text-sub); font-size: 16.5px; margin-bottom: 40px; }
.section-desc strong { color: var(--text); }

/* ── 성과 지표 밴드 ───────────────────────────────── */
.stats-band { padding: 70px 24px 40px; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); background: var(--bg-alt); }
/* 지표 개수(3개·4개)에 맞춰 열이 자동으로 생기도록 auto-flow 사용.
   고정 4열이면 지표가 3개인 화면에서 빈 열이 남아 왼쪽으로 치우친다. */
.stats-grid { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); gap: 32px; justify-content: center; }
.stat { text-align: center; }
.stat-num { display: block; font-size: clamp(34px, 4.5vw, 52px); font-weight: 900; color: #fff; letter-spacing: -0.02em; }
.stat-label { display: block; margin-top: 10px; font-size: 14px; color: var(--text-sub); line-height: 1.5; }
.stats-note { margin-top: 34px; padding-bottom: 20px; font-size: 12.5px; color: #5f6d8c; text-align: right; }

/* ── 제품 카드 ────────────────────────────────────── */
.product-cards { display: grid; grid-template-columns: 1.6fr 1fr 1fr; gap: 22px; margin-top: 46px; }
/* 공개 제품이 1개뿐일 때 — 카드를 중앙 1열로 배치 (PDM·QMS 비공개 상태) */
.product-cards.single-card { grid-template-columns: minmax(0, 720px); justify-content: center; }
.product-card {
  display: flex; flex-direction: column; gap: 14px;
  background: var(--bg-card); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 32px; transition: all .22s ease;
}
.product-card.card-main { border-color: rgba(79,141,255,.5); background: linear-gradient(160deg, rgba(79,141,255,.10), var(--bg-card) 55%); }
a.product-card:hover { transform: translateY(-6px); border-color: var(--accent); box-shadow: 0 18px 44px rgba(0,0,0,.4); }
.card-soon { opacity: .72; }
.badge { display: inline-block; padding: 4px 12px; border-radius: 100px; font-size: 12px; font-weight: 700; }
.badge-live { background: rgba(53,208,186,.15); color: var(--accent-2); border: 1px solid rgba(53,208,186,.4); }
.badge-soon { background: rgba(154,168,196,.12); color: var(--text-sub); border: 1px solid var(--line); }
.product-card h3 { font-size: 24px; margin-top: 12px; }
.product-sub { color: var(--accent); font-size: 14px; font-weight: 600; }
.product-desc { color: var(--text-sub); font-size: 15px; }
.product-points li { position: relative; padding-left: 20px; font-size: 14.5px; color: var(--text-sub); margin-bottom: 6px; }
.product-points li::before { content: '✓'; position: absolute; left: 0; color: var(--accent-2); font-weight: 700; }
.product-more { margin-top: auto; color: var(--accent); font-weight: 700; font-size: 15px; }

/* ── 기술 그리드 ──────────────────────────────────── */
.tech-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; margin-top: 44px; }
.tech-card { background: var(--bg-card); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px 24px; transition: border-color .2s ease; }
.tech-card:hover { border-color: rgba(79,141,255,.5); }
.tech-card h4 { font-size: 18px; margin-bottom: 12px; }
.tech-card p { font-size: 14px; color: var(--text-sub); }

/* ── 실적 카드 ────────────────────────────────────── */
.refs-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; margin-top: 44px; }
.ref-card { background: var(--bg-card); border: 1px solid var(--line); border-radius: var(--radius); padding: 30px; }
.ref-tag { display: inline-block; font-size: 12.5px; font-weight: 700; color: var(--accent); border: 1px solid rgba(79,141,255,.4); border-radius: 100px; padding: 3px 12px; margin-bottom: 16px; }
.ref-card h4 { font-size: 19px; margin-bottom: 10px; }
.ref-card p { font-size: 14.5px; color: var(--text-sub); }

/* ── CTA 밴드 ─────────────────────────────────────── */
.cta-band { padding: 100px 24px; text-align: center; background:
  radial-gradient(ellipse 55% 70% at 50% 100%, rgba(79,141,255,.18), transparent 70%), var(--bg-alt);
  border-top: 1px solid var(--line);
}
.cta-band h2 { font-size: clamp(26px, 3.6vw, 40px); font-weight: 800; margin-bottom: 16px; }
.cta-band p { color: var(--text-sub); margin-bottom: 34px; }

/* ── 서브페이지 히어로 ────────────────────────────── */
.page-hero { padding: 110px 24px 80px; background:
  radial-gradient(ellipse 55% 60% at 50% 0%, rgba(79,141,255,.16), transparent 70%), var(--bg);
  border-bottom: 1px solid var(--line);
}
.page-title { font-size: clamp(32px, 5vw, 56px); font-weight: 900; line-height: 1.2; letter-spacing: -0.03em; margin-bottom: 22px; }
.page-desc { color: var(--text-sub); font-size: 17px; }
.product-hero .hero-actions { justify-content: flex-start; margin-top: 36px; }

/* ── 회사소개 ─────────────────────────────────────── */
.about-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.about-block { background: var(--bg-card); border: 1px solid var(--line); border-radius: var(--radius); padding: 36px; }
.about-block h3 { font-size: 14px; letter-spacing: .18em; color: var(--accent); margin-bottom: 14px; }
.about-lead { font-size: 22px; font-weight: 800; margin-bottom: 14px; }
.about-block p:last-child { color: var(--text-sub); font-size: 15.5px; }

.capa-table-wrap { overflow-x: auto; margin-top: 40px; border: 1px solid var(--line); border-radius: var(--radius); }
.capa-table { width: 100%; border-collapse: collapse; min-width: 640px; }
.capa-table th, .capa-table td { padding: 16px 20px; text-align: left; font-size: 15px; border-bottom: 1px solid var(--line); }
.capa-table thead th { background: var(--bg-card); font-size: 13.5px; color: var(--text-sub); letter-spacing: .04em; }
.capa-table tbody tr:last-child th, .capa-table tbody tr:last-child td { border-bottom: none; }
.capa-table tbody th { color: var(--accent); font-weight: 700; white-space: nowrap; background: rgba(79,141,255,.05); }
.capa-table td { color: var(--text-sub); }
.capa-table td:first-child { color: var(--text); font-weight: 600; }

.history-list { margin-top: 44px; display: flex; flex-direction: column; gap: 18px; }
.history-list li { display: flex; gap: 28px; background: var(--bg-card); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px 32px; }
.history-year { flex: 0 0 78px; font-weight: 800; color: var(--accent-2); padding-top: 2px; }
.history-list h4 { font-size: 18px; margin-bottom: 8px; }
.history-list p { font-size: 14.5px; color: var(--text-sub); }

/* ── 제품 상세: Before/After ──────────────────────── */
.ba-grid { display: grid; grid-template-columns: 1fr 60px 1fr; gap: 12px; align-items: stretch; margin-top: 44px; }
.ba-card { border-radius: var(--radius); padding: 32px; border: 1px solid var(--line); }
.ba-before { background: var(--bg-card); }
.ba-after { background: linear-gradient(160deg, rgba(79,141,255,.14), var(--bg-card) 60%); border-color: rgba(79,141,255,.5); }
.ba-label { display: inline-block; font-size: 13px; font-weight: 800; letter-spacing: .05em; margin-bottom: 18px; padding: 5px 14px; border-radius: 100px; }
.ba-before .ba-label { background: rgba(255,107,107,.12); color: #ff9b9b; }
.ba-after .ba-label { background: rgba(53,208,186,.14); color: var(--accent-2); }
.ba-card li { position: relative; padding-left: 20px; margin-bottom: 10px; font-size: 15px; color: var(--text-sub); }
.ba-before li::before { content: '×'; position: absolute; left: 0; color: #ff9b9b; font-weight: 800; }
.ba-after li::before { content: '✓'; position: absolute; left: 0; color: var(--accent-2); font-weight: 800; }
.ba-arrow { display: flex; align-items: center; justify-content: center; font-size: 30px; color: var(--accent); font-weight: 900; }

/* ── 제품 상세: 기능 행 ───────────────────────────── */
.feature-row { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; margin-top: 80px; }
.feature-row:first-of-type { margin-top: 50px; }
.feature-row.rev .feature-text { order: 2; }
.feature-row.rev .feature-visual { order: 1; }
.feature-no { font-size: 14px; font-weight: 900; color: var(--accent); letter-spacing: .1em; }
.feature-text h3 { font-size: 27px; margin: 10px 0 16px; letter-spacing: -0.02em; }
.feature-text p { color: var(--text-sub); font-size: 15.5px; margin-bottom: 18px; }
.prio-list { counter-reset: prio; }
.prio-list li { position: relative; padding: 10px 14px 10px 44px; margin-bottom: 8px; background: var(--bg-card); border: 1px solid var(--line); border-radius: 10px; font-size: 14.5px; counter-increment: prio; }
.prio-list li::before { content: counter(prio); position: absolute; left: 12px; top: 50%; transform: translateY(-50%); width: 22px; height: 22px; border-radius: 50%; background: rgba(79,141,255,.16); color: var(--accent); font-size: 12.5px; font-weight: 800; display: flex; align-items: center; justify-content: center; }
.check-list li { position: relative; padding-left: 24px; margin-bottom: 10px; font-size: 15px; color: var(--text-sub); }
.check-list li::before { content: '✓'; position: absolute; left: 0; color: var(--accent-2); font-weight: 800; }

/* ── 목업 윈도우 ──────────────────────────────────── */
.mock-window { background: #0d1424; border: 1px solid var(--line); border-radius: 14px; overflow: hidden; box-shadow: 0 24px 60px rgba(0,0,0,.5); }
.mock-titlebar { display: flex; align-items: center; gap: 7px; padding: 12px 16px; background: #111a2e; border-bottom: 1px solid var(--line); }
.mock-titlebar span { width: 11px; height: 11px; border-radius: 50%; background: #2a3a5e; }
.mock-titlebar span:first-child { background: #ff6b6b88; }
.mock-titlebar span:nth-child(2) { background: #f7c94888; }
.mock-titlebar span:nth-child(3) { background: #35d0ba88; }
.mock-titlebar em { margin-left: 8px; font-size: 12.5px; color: var(--text-sub); }
.mock-body { padding: 18px; }
.mock-body.img { padding: 0; }                       /* 화면 이미지(PNG) 를 담는 목업 본문 */
.mock-body.img img { display: block; width: 100%; height: auto; }
.mock-sheet { border: 1px solid var(--line); border-radius: 8px; overflow: hidden; font-size: 13px; }
.mock-sheet-row { display: grid; grid-template-columns: 1.3fr 1fr 1fr 1fr 1fr; }
.mock-sheet-row span { padding: 9px 12px; border-bottom: 1px solid #1b2742; border-right: 1px solid #1b2742; color: var(--text-sub); }
.mock-sheet-row span:first-child { color: var(--text); font-weight: 600; }
.mock-sheet-row span:last-child { border-right: none; }
.mock-sheet-head span { background: #131d33; font-weight: 700; color: var(--text); }
.mock-sheet-row.hl span { background: rgba(79,141,255,.10); color: #bcd3ff; }
.mock-sheet-row.ok span { color: var(--accent-2); }
.mock-sheet-row .warn { color: #ff9b9b !important; font-weight: 700; }
.mock-btnbar { display: flex; gap: 8px; margin-top: 14px; }
.mock-btn { padding: 7px 16px; border-radius: 7px; font-size: 12.5px; font-weight: 700; background: #1a2540; color: var(--text-sub); }
.mock-btn.primary { background: var(--accent); color: #fff; }
.mock-gantt { display: flex; flex-direction: column; gap: 10px; padding: 6px 0 4px; }
.mock-gantt-row { position: relative; height: 30px; background: #101a30; border-radius: 6px; }
.mock-gantt-label { position: absolute; left: 10px; top: 50%; transform: translateY(-50%); font-size: 11.5px; color: var(--text-sub); z-index: 1; }
/* 라벨 영역을 비켜 막대를 그리는 트랙 — 막대가 '1라인' 같은 라벨을 덮지 않게 한다 */
.mock-gantt-track { position: absolute; left: 58px; right: 10px; top: 0; bottom: 0; }
.mock-gantt-row i {
  position: absolute; top: 5px; bottom: 5px; border-radius: 5px;
  display: flex; align-items: center; justify-content: center;
  font-size: 10.5px; font-weight: 800; letter-spacing: -0.01em;
  color: #0b1220;                      /* 밝은 막대 위 가독성 */
  overflow: hidden; white-space: nowrap;
}
.mock-gantt-row .g1 { background: linear-gradient(90deg, #4f8dff, #6ba4ff); }
.mock-gantt-row .g2 { background: linear-gradient(90deg, #35d0ba, #5be0cd); }
.mock-gantt-row .g3 { background: linear-gradient(90deg, #8f7bff, #a795ff); }
.mock-gantt-row .g4 { background: linear-gradient(90deg, #f7c948, #ffd970); }
.mock-kpis { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-top: 16px; }
.mock-kpi { background: #131d33; border: 1px solid var(--line); border-radius: 8px; padding: 10px 14px; }
.mock-kpi em { display: block; font-size: 11px; color: var(--text-sub); }
.mock-kpi strong { font-size: 18px; color: var(--accent-2); }

/* ── 이론 카드 ────────────────────────────────────── */
.theory-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin: 44px 0 40px; }
.theory-card { background: var(--bg-card); border: 1px solid var(--line); border-radius: var(--radius); padding: 30px 26px; display: flex; flex-direction: column; gap: 14px; }
.theory-tag { align-self: flex-start; padding: 5px 14px; border-radius: 100px; font-size: 12.5px; font-weight: 900; letter-spacing: .06em; background: rgba(79,141,255,.16); color: var(--accent); border: 1px solid rgba(79,141,255,.4); }
.theory-tag.milp { background: rgba(53,208,186,.13); color: var(--accent-2); border-color: rgba(53,208,186,.4); }
.theory-tag.ga { background: rgba(143,123,255,.14); color: #b0a0ff; border-color: rgba(143,123,255,.4); }
.theory-card h4 { font-size: 20px; line-height: 1.3; }
.theory-card h4 small { font-size: 12.5px; font-weight: 500; color: var(--text-sub); }
.theory-when, .theory-ex { font-size: 14px; color: var(--text-sub); }
.theory-when strong, .theory-ex strong { color: var(--accent); font-size: 12.5px; display: block; margin-bottom: 4px; letter-spacing: .04em; }
.theory-when em { color: var(--text); font-weight: 700; }
.theory-points { border-top: 1px solid var(--line); padding-top: 14px; margin-top: auto; }
.theory-points li { position: relative; padding-left: 18px; font-size: 13px; color: var(--text-sub); margin-bottom: 6px; }
.theory-points li::before { content: '▸'; position: absolute; left: 0; color: var(--accent); }

/* ── 파이프라인 ───────────────────────────────────── */
.pipeline { display: grid; grid-template-columns: repeat(7, 1fr); gap: 12px; margin-top: 46px; }
.pipeline li { position: relative; background: var(--bg-card); border: 1px solid var(--line); border-radius: 12px; padding: 20px 14px 18px; text-align: center; }
.pipeline li::after { content: '→'; position: absolute; right: -13px; top: 50%; transform: translateY(-50%); color: var(--accent); font-weight: 900; z-index: 1; }
.pipeline li:last-child::after { content: none; }
.pipeline li:last-child { border-color: rgba(53,208,186,.5); background: linear-gradient(160deg, rgba(53,208,186,.10), var(--bg-card) 60%); }
.pipeline i { display: inline-flex; align-items: center; justify-content: center; width: 26px; height: 26px; border-radius: 50%; background: rgba(79,141,255,.16); color: var(--accent); font-weight: 800; font-size: 13px; margin-bottom: 10px; font-style: normal; }
.pipeline strong { display: block; font-size: 14px; margin-bottom: 6px; }
.pipeline span { display: block; font-size: 11.5px; color: var(--text-sub); line-height: 1.5; }

/* ── 제약조건 섹션 ────────────────────────────────── */
.hc-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin: 40px 0 50px; }
.hc-card { background: var(--bg-card); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px 30px; }
.hc-label { display: inline-block; font-size: 13px; font-weight: 800; color: #ff9b9b; background: rgba(255,107,107,.10); border: 1px solid rgba(255,107,107,.35); border-radius: 100px; padding: 5px 14px; margin-bottom: 18px; }
.sub-title { font-size: 22px; font-weight: 800; margin: 10px 0 6px; }
.penalty-table td.w { font-weight: 800; color: var(--accent); white-space: nowrap; }
/* 가중치 막대그래프 — main.js 의 initPenaltyWeightBars() 가 숫자를 막대로 교체.
   ★ td 에 display:flex 를 주면 table-cell 이 아니게 되어 행 경계선이 어긋난다.
   셀은 table-cell 그대로 두고, 안쪽 요소로만 배치한다. */
.penalty-table td.w-graph { width: 190px; min-width: 160px; vertical-align: middle; }
.w-bar {
  position: relative;
  display: block; height: 10px; border-radius: 5px;
  background: rgba(232,237,247,.09); overflow: hidden;
}
.w-bar i {
  display: block; height: 100%; border-radius: 5px;
  background: linear-gradient(90deg, var(--accent), var(--accent-2));
  transition: width .6s ease;
}
.w-graph.due  .w-bar i { background: linear-gradient(90deg, var(--danger), #ffa06b); }
.w-graph.stock .w-bar i { background: linear-gradient(90deg, var(--accent), #7bb0ff); }
.w-graph.eff  .w-bar i { background: linear-gradient(90deg, var(--accent-2), #8ce6d6); }
.w-graph.etc  .w-bar i { background: linear-gradient(90deg, #6b7a99, #9aa8c4); }
.w-note { display: block; margin-top: 6px; font-size: 11px; font-style: normal; color: var(--text-sub); letter-spacing: .04em; }
.table-note { margin-top: 14px; font-size: 12.5px; color: #5f6d8c; }

/* ── 소프트 페널티 표 ─────────────────────────────── */
.pen-eyebrow { font-size: 13px; font-weight: 800; letter-spacing: .04em; color: var(--accent); margin-top: 10px; }
.pen-title { font-size: 26px; font-weight: 800; letter-spacing: -0.02em; margin: 10px 0 12px; }
.pen-lead { color: var(--text-sub); font-size: 15.5px; max-width: 900px; }

.pen-filters { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; margin-top: 26px; }
.pen-btn {
  padding: 8px 18px; border-radius: 100px; cursor: pointer;
  font-family: inherit; font-size: 13.5px; font-weight: 700; letter-spacing: -0.01em;
  background: transparent; border: 1px solid var(--line); color: var(--text-sub);
  transition: all .2s ease;
}
.pen-btn:hover { border-color: var(--accent); color: var(--accent); }
.pen-btn.is-on { background: rgba(79,141,255,.14); border-color: rgba(79,141,255,.55); color: var(--accent); }
.pen-count { margin-left: auto; font-size: 13px; color: var(--text-sub); }

.pen-table { min-width: 860px; }
.pen-table th:first-child, .pen-table td:first-child { width: 92px; }
.pen-table th:last-child, .pen-table td:last-child { width: 84px; text-align: center; }
.pen-table tbody tr:hover td { background: rgba(79,141,255,.04); }
.pen-tag { font-size: 14px; font-weight: 700; white-space: nowrap; }
.pen-tag.common   { color: var(--accent); }
.pen-tag.industry { color: var(--accent-2); }
.pen-cat { color: var(--text-sub); font-size: 14px; white-space: nowrap; }
.pen-item { color: var(--text); font-weight: 700; }
.pen-imp .badge { padding: 3px 11px; font-size: 12px; }
.pen-desc { color: var(--text-sub); font-size: 14.5px; }
.badge-h { background: rgba(255,107,107,.14); color: #ff9b9b;      border: 1px solid rgba(255,107,107,.38); }
.badge-m { background: rgba(240,180,41,.14);  color: #f0b429;      border: 1px solid rgba(240,180,41,.38); }
.badge-l { background: rgba(154,168,196,.12); color: var(--text-sub); border: 1px solid var(--line); }
.stage-diagram { margin-top: 50px; background: var(--bg-card); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px 30px; }
.stage-caption { display: block; font-size: 13px; font-weight: 800; color: var(--accent); margin-bottom: 20px; letter-spacing: .04em; }
.stage-flow { display: flex; align-items: stretch; gap: 12px; }
.stage { flex: 1; background: #0d1424; border: 1px solid var(--line); border-radius: 10px; padding: 16px; text-align: center; }
.stage.final { border-color: rgba(53,208,186,.5); }
.stage em { display: block; font-size: 11px; color: var(--accent); font-weight: 800; margin-bottom: 5px; }
.stage.final em { color: var(--accent-2); }
.stage strong { display: block; font-size: 15px; margin-bottom: 5px; }
.stage span { font-size: 12px; color: var(--text-sub); }
.stage-flow > i { display: flex; align-items: center; color: var(--accent); font-weight: 900; font-style: normal; }

/* ── 화면 갤러리 ──────────────────────────────────── */
.screens-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 34px 26px; margin-top: 46px; }
.screen-caption { margin-top: 14px; font-size: 13.5px; color: var(--text-sub); line-height: 1.6; }
.screen-caption strong { color: var(--text); }
.mock-toolbar { display: flex; gap: 8px; margin-bottom: 12px; }
.mock-sheet-row.five { grid-template-columns: 1.1fr 1fr .8fr .9fr .9fr; }
.mock-sheet-row.urgent span { background: rgba(255,107,107,.06); }
.tag { display: inline-block; padding: 2px 9px; border-radius: 100px; font-size: 10.5px; font-weight: 800; }
.tag.vip { background: rgba(247,201,72,.15); color: #f7c948; }
.tag.a { background: rgba(79,141,255,.15); color: #7fabff; }
.tag.b { background: rgba(154,168,196,.15); color: var(--text-sub); }
.tag.urgent { background: rgba(255,107,107,.16); color: #ff9b9b; }
.mock-kpis.four { grid-template-columns: repeat(4, 1fr); }
.mock-kpi.warn strong { color: #ff9b9b; }
.mock-dash-row { display: grid; grid-template-columns: 1fr 1.4fr; gap: 14px; margin-top: 14px; align-items: center; }
.mock-donut-box { display: flex; align-items: center; gap: 14px; background: #131d33; border: 1px solid var(--line); border-radius: 10px; padding: 14px; }
.mock-donut { width: 74px; height: 74px; border-radius: 50%; flex-shrink: 0;
  background: conic-gradient(var(--accent) 0 68%, #f7c948 68% 90%, #8f7bff 90% 100%);
  -webkit-mask: radial-gradient(circle 22px at 50% 50%, transparent 98%, #000); mask: radial-gradient(circle 22px at 50% 50%, transparent 98%, #000); }
.mock-legend { display: flex; flex-direction: column; gap: 6px; font-size: 11.5px; color: var(--text-sub); }
.mock-legend i { display: inline-block; width: 9px; height: 9px; border-radius: 3px; margin-right: 6px; }
.mock-legend .l1 { background: var(--accent); } .mock-legend .l2 { background: #f7c948; } .mock-legend .l3 { background: #8f7bff; }
.mock-bars { display: flex; flex-direction: column; gap: 10px; }
.mock-bar { display: grid; grid-template-columns: 52px 1fr 34px; align-items: center; gap: 8px; font-size: 11.5px; color: var(--text-sub); }
.mock-bar i { display: block; height: 10px; border-radius: 5px; background: linear-gradient(90deg, var(--accent), #6ba4ff); }
.mock-bar i.hot { background: linear-gradient(90deg, #ff8a5c, #ff6b6b); }
.mock-bar b { font-weight: 700; color: var(--text); }
.mock-ai-comment { margin-top: 14px; padding: 12px 14px; border-radius: 9px; background: rgba(79,141,255,.08); border: 1px solid rgba(79,141,255,.25); font-size: 12px; color: #bcd3ff; line-height: 1.6; }
.mock-sliders { display: flex; flex-direction: column; gap: 14px; margin-bottom: 16px; }
.mock-slider { display: grid; grid-template-columns: 84px 1fr 30px; align-items: center; gap: 12px; font-size: 12px; color: var(--text-sub); }
.mock-slider .track { position: relative; height: 6px; border-radius: 3px; background: #1a2540; }
.mock-slider .track i { position: absolute; left: 0; top: 0; bottom: 0; border-radius: 3px; background: linear-gradient(90deg, var(--accent), var(--accent-2)); }
.mock-slider .track b { position: absolute; top: 50%; transform: translate(-50%, -50%); width: 16px; height: 16px; border-radius: 50%; background: #fff; box-shadow: 0 2px 8px rgba(0,0,0,.5); }
.mock-slider span { font-weight: 800; color: var(--text); text-align: right; }
.mock-toggles { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 16px; }
.mock-toggle { position: relative; padding: 7px 12px 7px 32px; border-radius: 100px; font-size: 12px; background: #1a2540; color: var(--text-sub); border: 1px solid var(--line); }
.mock-toggle::before { content: ''; position: absolute; left: 10px; top: 50%; transform: translateY(-50%); width: 14px; height: 14px; border-radius: 50%; background: #2a3a5e; }
.mock-toggle.on { color: var(--text); border-color: rgba(53,208,186,.45); }
.mock-toggle.on::before { background: var(--accent-2); }
.mock-gauge-box { display: flex; flex-direction: column; align-items: center; gap: 10px; background: #131d33; border: 1px solid var(--line); border-radius: 10px; padding: 16px; }
.mock-gauge { position: relative; width: 84px; height: 84px; border-radius: 50%;
  background: conic-gradient(var(--accent-2) 0 12%, #1a2540 12% 100%);
  display: flex; align-items: center; justify-content: center; }
.mock-gauge::before { content: ''; position: absolute; inset: 9px; border-radius: 50%; background: #131d33; }
.mock-gauge b { position: relative; font-size: 17px; font-weight: 900; color: var(--accent-2); }
.gauge-label { font-size: 11.5px; color: var(--text-sub); text-align: center; }
.mock-fi { display: flex; flex-direction: column; gap: 9px; background: #131d33; border: 1px solid var(--line); border-radius: 10px; padding: 14px; }
.mock-fi > em { font-size: 11.5px; color: var(--text-sub); margin-bottom: 2px; }

/* ── 처리 흐름 ────────────────────────────────────── */
.flow-steps { display: grid; grid-template-columns: repeat(5, 1fr); gap: 14px; margin-top: 46px; }
.flow-steps li { position: relative; background: var(--bg-card); border: 1px solid var(--line); border-radius: 12px; padding: 22px 18px; }
.flow-steps li::after { content: '→'; position: absolute; right: -14px; top: 50%; transform: translateY(-50%); color: var(--accent); font-weight: 900; z-index: 1; }
.flow-steps li:last-child::after { content: none; }
.flow-steps strong { display: block; font-size: 15px; margin-bottom: 8px; }
.flow-steps span { font-size: 13px; color: var(--text-sub); }

/* ── 검증 성과 ────────────────────────────────────── */
.proof-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; margin-top: 44px; }
.proof-card { background: var(--bg-card); border: 1px solid var(--line); border-radius: var(--radius); padding: 34px 26px; text-align: center; }
.proof-card strong { display: block; font-size: clamp(26px, 3vw, 36px); font-weight: 900; color: var(--accent); margin-bottom: 12px; letter-spacing: -0.02em; }
.proof-card span { font-size: 13.5px; color: var(--text-sub); line-height: 1.55; }

/* ── 고객문의 ─────────────────────────────────────── */
.inquiry-section { padding-top: 70px; }
.inquiry-inner { max-width: 1020px; }
.inquiry-grid { display: grid; grid-template-columns: 1.7fr 1fr; gap: 40px; align-items: start; }
.inquiry-form { background: var(--bg-card); border: 1px solid var(--line); border-radius: var(--radius); padding: 36px; }
.form-row { margin-bottom: 20px; }
.form-note {
  margin: 0 0 20px; padding: 11px 14px; border-radius: 10px;
  background: rgba(56, 132, 255, .08); border: 1px solid var(--line);
  color: var(--text-sub); font-size: 13px; line-height: 1.55;
}

.form-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.form-row label { display: block; font-size: 14px; font-weight: 700; margin-bottom: 8px; }
.form-row label em { color: var(--danger); }
.label-hint { font-weight: 400; color: var(--text-sub); font-size: 12.5px; }
.form-row input[type="text"], .form-row input[type="email"], .form-row select, .form-row textarea {
  width: 100%; padding: 13px 15px; border-radius: 10px;
  background: #0d1424; border: 1px solid var(--line); color: var(--text);
  font-size: 15px; font-family: inherit; transition: border-color .15s ease;
}
.form-row input:focus, .form-row select:focus, .form-row textarea:focus { outline: none; border-color: var(--accent); }
.form-row textarea { resize: vertical; }
.form-row input[type="file"] { color: var(--text-sub); font-size: 14px; }
.field-error { margin-top: 7px; font-size: 13px; color: var(--danger); }
.form-agree { padding: 16px; background: #0d1424; border: 1px solid var(--line); border-radius: 10px; }
.agree-label { display: flex !important; gap: 10px; align-items: flex-start; font-weight: 400 !important; font-size: 13.5px !important; color: var(--text-sub); cursor: pointer; }
.agree-label input { margin-top: 3px; accent-color: var(--accent); }
.hp-field { position: absolute; left: -9999px; top: -9999px; height: 0; overflow: hidden; }
.alert { padding: 18px 22px; border-radius: 12px; margin-bottom: 26px; font-size: 15px; }
.alert-success { background: rgba(53,208,186,.12); border: 1px solid rgba(53,208,186,.45); color: #b8f2e8; }
.alert-success strong { color: var(--accent-2); margin-right: 8px; }
.inquiry-aside { background: var(--bg-card); border: 1px solid var(--line); border-radius: var(--radius); padding: 30px; position: sticky; top: calc(var(--header-h) + 24px); }
.inquiry-aside h3 { font-size: 16px; margin-bottom: 14px; color: var(--accent); }
.inquiry-aside h3:not(:first-child) { margin-top: 28px; }
.inquiry-aside dl { display: grid; grid-template-columns: auto 1fr; gap: 8px 16px; font-size: 14.5px; }
.inquiry-aside dt { color: var(--text-sub); }
.inquiry-aside ul li { position: relative; padding-left: 16px; font-size: 13.5px; color: var(--text-sub); margin-bottom: 8px; }
.inquiry-aside ul li::before { content: '·'; position: absolute; left: 2px; color: var(--accent); font-weight: 900; }

/* ── 푸터 ─────────────────────────────────────────── */
.site-footer { border-top: 1px solid var(--line); background: #0a101c; padding: 60px 24px 40px; }
.footer-inner { max-width: 1180px; margin: 0 auto; }
.footer-top { display: flex; justify-content: space-between; gap: 40px; flex-wrap: wrap; margin-bottom: 40px; }
.footer-tag { margin-top: 14px; font-size: 14px; color: var(--text-sub); }
.footer-nav { display: flex; gap: 26px; align-items: flex-start; }
.footer-nav a { font-size: 14.5px; color: var(--text-sub); }
.footer-nav a:hover { color: #fff; }
.footer-meta { font-size: 13px; color: #5f6d8c; padding-top: 26px; border-top: 1px solid #16203a; }
.footer-meta .sep { margin: 0 12px; opacity: .5; }
.footer-copy { margin-top: 10px; font-size: 12.5px; color: #47536e; }

/* ── 스크롤 리빌 ──────────────────────────────────── */
/* JS 로드 성공 시(html.js)에만 숨김 — JS 실패 환경에서도 콘텐츠는 항상 보인다 */
.js .reveal { opacity: 0; transform: translateY(26px); transition: opacity .7s ease, transform .7s ease; }
.js .reveal.on { opacity: 1; transform: none; }

/* ── 반응형 ───────────────────────────────────────── */
@media (max-width: 1024px) {
  .stats-grid, .tech-grid, .proof-grid { grid-template-columns: repeat(2, 1fr); }
  /* 좁은 화면에서는 2열로 접히도록 auto-flow 를 행 방향으로 되돌린다 */
  .stats-grid { grid-auto-flow: row; }
  /* 홀수 개일 때 마지막 줄에 혼자 남는 지표는 두 열을 차지해 가운데에 오게 한다 */
  .stats-grid .stat:last-child:nth-child(odd) { grid-column: 1 / -1; }
  .product-cards { grid-template-columns: 1fr; }
  .feature-row { grid-template-columns: 1fr; gap: 30px; }
  .feature-row.rev .feature-text { order: 1; }
  .feature-row.rev .feature-visual { order: 2; }
  .flow-steps { grid-template-columns: 1fr; }
  .flow-steps li::after { content: '↓'; right: auto; left: 50%; top: auto; bottom: -22px; transform: translateX(-50%); }
  .ba-grid { grid-template-columns: 1fr; }
  .ba-arrow { transform: rotate(90deg); padding: 4px 0; }
  .theory-grid { grid-template-columns: 1fr; }
  .pipeline { grid-template-columns: repeat(4, 1fr); }
  .pipeline li:nth-child(4)::after { content: none; }
  .screens-grid { grid-template-columns: 1fr; }
}
@media (max-width: 768px) {
  .gnb {
    position: fixed; top: var(--header-h); left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 0;
    background: #0d1424; border-bottom: 1px solid var(--line);
    padding: 12px 16px 18px; display: none;
  }
  .gnb.open { display: flex; }
  .gnb-sub { position: static; transform: none; opacity: 1; visibility: visible; box-shadow: none; border: none; background: transparent; padding: 0 0 0 16px; }
  .nav-toggle { display: block; }
  .section { padding: 70px 20px; }
  .refs-grid, .about-grid, .form-cols, .inquiry-grid { grid-template-columns: 1fr; }
  .stats-grid { gap: 24px; }
  .history-list li { flex-direction: column; gap: 8px; }
  .inquiry-aside { position: static; }
  .pipeline { grid-template-columns: 1fr 1fr; gap: 10px; }
  .pipeline li::after { content: none; }
  .hc-grid { grid-template-columns: 1fr; }
  .stage-flow { flex-direction: column; }
  .stage-flow > i { justify-content: center; transform: rotate(90deg); }
  .mock-dash-row { grid-template-columns: 1fr; }
  .capa-table th, .capa-table td { padding: 12px 14px; font-size: 13.5px; }
  .pen-count { margin-left: 0; width: 100%; }
  .pen-table { min-width: 720px; }
  .hero-actions .btn-lg { padding: 13px 24px; font-size: 15px; }
}

/* ============================================================
   제품 상세: Friends 설비예지 (product_pdm.html) 전용 컴포넌트
   ============================================================ */

/* ── 판정 신호등 카드 (정상·주의·이상) ─────────────── */
.sig-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 44px; }
.sig-card { background: var(--bg-card); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px 26px; }
.sig-dot { display: inline-flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 800; letter-spacing: .04em; border-radius: 100px; padding: 5px 14px; margin-bottom: 16px; }
.sig-dot::before { content: ''; width: 10px; height: 10px; border-radius: 50%; }
.sig-card.normal   { border-color: rgba(79,141,255,.4); }
.sig-card.caution  { border-color: rgba(247,201,72,.4); }
.sig-card.critical { border-color: rgba(255,107,107,.45); }
.sig-card.normal .sig-dot   { background: rgba(79,141,255,.12); color: #7fabff; }
.sig-card.normal .sig-dot::before   { background: var(--accent); }
.sig-card.caution .sig-dot  { background: rgba(247,201,72,.12); color: #f7c948; }
.sig-card.caution .sig-dot::before  { background: #f7c948; }
.sig-card.critical .sig-dot { background: rgba(255,107,107,.12); color: #ff9b9b; }
.sig-card.critical .sig-dot::before { background: var(--danger); }
.sig-card h4 { font-size: 17px; margin-bottom: 10px; line-height: 1.4; }
.sig-card p { font-size: 14px; color: var(--text-sub); }
.sig-act { margin-top: 14px; padding-top: 14px; border-top: 1px solid var(--line); font-size: 13px !important; }
.sig-act strong { color: var(--accent-2); font-size: 12px; letter-spacing: .04em; margin-right: 6px; }

/* ── 설비×일자 상태 매트릭스 목업 ─────────────────── */
.mock-matrix { margin-top: 14px; border: 1px solid var(--line); border-radius: 8px; overflow: hidden; }
.mock-matrix-row { display: grid; grid-template-columns: 1.5fr repeat(7, 1fr); align-items: center; border-bottom: 1px solid #1b2742; }
.mock-matrix-row:last-child { border-bottom: none; }
.mock-matrix-row em { padding: 8px 12px; font-size: 12px; color: var(--text); font-weight: 600; }
.mock-matrix-head { background: #131d33; }
.mock-matrix-head em { color: var(--text-sub); }
.mock-matrix-head b { font-size: 10.5px; font-weight: 700; color: var(--text-sub); text-align: center; padding: 8px 0; }
.mock-matrix-row i { display: block; height: 18px; margin: 5px 4px; border-radius: 4px; }
.mock-matrix-row i.n { background: rgba(79,141,255,.55); }
.mock-matrix-row i.c { background: rgba(247,201,72,.7); }
.mock-matrix-row i.x { background: rgba(255,107,107,.8); }

/* 신호등 범례 (매트릭스 · 도넛 공용) */
.mock-legend.row { flex-direction: row; gap: 16px; margin-top: 10px; }
.mock-legend .ln  { background: var(--accent); }
.mock-legend .lc  { background: #f7c948; }
.mock-legend .lx  { background: var(--danger); }
.mock-legend .lraw { background: #40507a; }
.mock-legend .lavg { background: var(--accent-2); }
.mock-legend .lthr { background: var(--danger); }

/* KPI 카드 — 주의(노랑) 변형 */
.mock-kpi.cau strong { color: #f7c948; }

/* ── 이상점수 추이 그래프 목업 (SVG) ──────────────── */
.mock-score { background: #131d33; border: 1px solid var(--line); border-radius: 10px; padding: 14px; margin-bottom: 14px; }
.mock-score svg { display: block; width: 100%; height: 110px; }
.mock-score .thr { stroke: var(--danger); stroke-width: 1.5; stroke-dasharray: 6 5; }
.mock-score .raw { fill: none; stroke: #40507a; stroke-width: 1.5; }
.mock-score .avg { fill: none; stroke: var(--accent-2); stroke-width: 2.5; stroke-linecap: round; stroke-linejoin: round; }

/* ── 6단계 파이프라인 (설비예지 모델 생성) ─────────── */
.pipeline.six { grid-template-columns: repeat(6, 1fr); }

/* ── 도넛 — 설비 상태 분포 배색 (정상·주의·이상) ───── */
.mock-donut.pdm { background: conic-gradient(var(--accent) 0 82%, #f7c948 82% 94%, var(--danger) 94% 100%); }

/* ── 게이지 — 설비예지 정확도 표기 ─────────────────── */
.mock-gauge.pdm { background: conic-gradient(var(--accent-2) 0 95.7%, #1a2540 95.7% 100%); }

/* ── 카드 라벨 — 긍정(민트) 변형 ──────────────────── */
.hc-label.ok { color: var(--accent-2); background: rgba(53,208,186,.10); border-color: rgba(53,208,186,.35); }
.hc-grid.data-grid { margin-top: 50px; }

/* ── CTA 버튼 2개 가운데 정렬 ─────────────────────── */
.cta-actions { justify-content: center; }

/* ── 설비예지 반응형 ──────────────────────────────── */
@media (max-width: 1024px) {
  .sig-grid { grid-template-columns: 1fr; }
  .pipeline.six { grid-template-columns: repeat(3, 1fr); }
  .pipeline.six li:nth-child(3)::after { content: none; }
  .pipeline.six li:nth-child(4)::after { content: '→'; }
}
@media (max-width: 768px) {
  .pipeline.six { grid-template-columns: 1fr 1fr; }
  .pipeline.six li::after { content: none !important; }
  .mock-matrix-row em { padding: 6px 8px; font-size: 10.5px; }
}

/* ============================================================
   제품 상세: Friends 품질예측 (product_qms.html) 전용 컴포넌트
   ============================================================ */

/* ── 위험도 게이지 (0~100%) ───────────────────────── */
.mock-riskrow { margin-bottom: 16px; }
.mock-riskrow em { display: block; font-size: 12.5px; color: var(--text); font-weight: 700; margin-bottom: 8px; }
.mock-risk { position: relative; height: 14px; border-radius: 7px; overflow: hidden;
  background: linear-gradient(90deg, rgba(79,141,255,.18) 0 40%, rgba(247,201,72,.18) 40% 70%, rgba(255,107,107,.2) 70% 100%); }
.mock-risk i { display: block; height: 100%; border-radius: 7px; }
.mock-risk .lv-ok   { background: linear-gradient(90deg, var(--accent), #6ba4ff); }
.mock-risk .lv-warn { background: linear-gradient(90deg, #f7c948, #ffb84d); }
.mock-risk .lv-bad  { background: linear-gradient(90deg, #ff8a5c, var(--danger)); }
.mock-risk-scale { display: flex; justify-content: space-between; font-size: 10.5px; color: var(--text-sub); margin-top: 4px; }
.mock-risk-scale .c { color: #f7c948; }
.mock-risk-scale .x { color: #ff9b9b; }
.mock-riskrow > b { display: block; text-align: right; font-size: 15px; font-weight: 900; color: var(--accent-2); margin-top: 2px; }

/* ── 게이지 — 품질예측 정확도 표기 ────────────────── */
.mock-gauge.qms  { background: conic-gradient(var(--accent-2) 0 97%, #1a2540 97% 100%); }
.mock-gauge.qms2 { background: conic-gradient(var(--accent-2) 0 99.5%, #1a2540 99.5% 100%); }

/* ── 5단계 파이프라인 (품질예측 모델 학습) ─────────── */
.pipeline.five { grid-template-columns: repeat(5, 1fr); }

/* ── 품질예측 반응형 ──────────────────────────────── */
@media (max-width: 1024px) {
  .pipeline.five { grid-template-columns: repeat(3, 1fr); }
  .pipeline.five li:nth-child(3)::after { content: none; }
  .pipeline.five li:nth-child(4)::after { content: '→'; }
}
@media (max-width: 768px) {
  .pipeline.five { grid-template-columns: 1fr 1fr; }
  .pipeline.five li::after { content: none !important; }
}
