/* ==========================================================
   유엔에스테크 — 공통 스타일
   팔레트: ink(관제실) / signal(브랜드 블루) / detect(탐지 앰버)
   ========================================================== */
:root {
  --ink: #0E1B2E;
  --ink-2: #16283F;
  --ink-3: #21395A;
  --signal: #2F6BFF;
  --signal-deep: #1F4FCC;
  --detect: #FFB020;
  --text: #1B2A41;
  --muted: #5B6B82;
  --line: #D9E0EA;
  --paper: #FFFFFF;
  --ground: #F5F7FA;
  --ok: #22B573;
  --danger: #E5484D;

  --font: "Malgun Gothic", "Apple SD Gothic Neo", "Segoe UI", Arial, sans-serif;
  --mono: ui-monospace, "SF Mono", Consolas, "Cascadia Mono", monospace;

  --max: 1200px;
  --gutter: clamp(16px, 4vw, 40px);
  --radius: 6px;
  --radius-lg: 14px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.65;
  color: var(--text);
  background: var(--paper);
  word-break: keep-all;
  overflow-wrap: anywhere;
}
img, svg { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; }
h1, h2, h3, h4 { margin: 0; line-height: 1.25; letter-spacing: -0.02em; font-weight: 800; }
p { margin: 0; }
ul { margin: 0; padding: 0; list-style: none; }

:focus-visible { outline: 3px solid var(--detect); outline-offset: 3px; border-radius: 4px; }

.wrap { max-width: var(--max); margin: 0 auto; padding-inline: var(--gutter); }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------- 헤더 ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(14, 27, 46, 0.92);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  color: #fff;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; height: 68px; gap: 24px; position: relative; }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 800; font-size: 18px; letter-spacing: -0.01em; line-height: 1.1; }
.brand-mark { width: 34px; height: 34px; flex: none; }
.brand small { display: block; font-weight: 500; font-size: 11px; color: rgba(255,255,255,0.6); letter-spacing: 0.04em; margin-top: 3px; }
.nav { display: flex; gap: 4px; }
.nav a { padding: 8px 14px; border-radius: 999px; font-size: 15px; color: rgba(255,255,255,0.82); }
.nav a:hover, .nav a[aria-current="page"] { color: #fff; background: rgba(255,255,255,0.1); }
.nav-cta { display: inline-flex; align-items: center; gap: 8px; padding: 9px 16px; border-radius: 999px; background: var(--signal); color: #fff; font-weight: 700; font-size: 14px; white-space: nowrap; }
.nav-cta:hover { background: var(--signal-deep); }
.nav-toggle { display: none; width: 44px; height: 44px; border: 0; background: transparent; color: #fff; }
.nav-toggle span { display: block; width: 22px; height: 2px; background: currentColor; margin: 5px auto; transition: transform .2s, opacity .2s; }

@media (max-width: 860px) {
  .nav-toggle { display: block; }
  .nav-cta { display: none; }
  .nav {
    position: absolute; left: 0; right: 0; top: 68px;
    flex-direction: column; padding: 12px var(--gutter) 20px;
    background: var(--ink); border-bottom: 1px solid rgba(255,255,255,0.08);
    display: none;
  }
  .nav.is-open { display: flex; }
  .nav a { padding: 12px 10px; font-size: 17px; border-radius: 8px; }
  .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); }
}

/* ---------- 버튼 ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 14px 24px; border-radius: var(--radius); font-weight: 700; font-size: 15px; border: 1.5px solid transparent; transition: background .15s, border-color .15s, color .15s; }
.btn-primary { background: var(--signal); color: #fff; }
.btn-primary:hover { background: var(--signal-deep); }
.btn-ghost { border-color: rgba(255,255,255,0.35); color: #fff; }
.btn-ghost:hover { border-color: #fff; background: rgba(255,255,255,0.06); }
.btn-outline { border-color: var(--ink); color: var(--ink); }
.btn-outline:hover { background: var(--ink); color: #fff; }
.btn-lg { padding: 16px 28px; font-size: 16px; }
.btn[disabled] { opacity: .6; cursor: default; }

/* ---------- 섹션 공통 ---------- */
.section { padding-block: clamp(64px, 9vw, 120px); }
.section-ground { background: var(--ground); }
.section-ink { background: var(--ink); color: #fff; }
.section-head { max-width: 720px; margin-bottom: clamp(32px, 5vw, 56px); }
.section-head h2 { font-size: clamp(28px, 4vw, 42px); }
.section-head p { margin-top: 16px; font-size: 17px; color: var(--muted); }
.section-ink .section-head p { color: rgba(255,255,255,0.7); }
.section-head.center { margin-inline: auto; text-align: center; }

/* ---------- 페이지 헤더(서브) ---------- */
.page-hero { background: var(--ink); color: #fff; padding: clamp(56px, 8vw, 96px) 0 clamp(40px, 6vw, 72px); position: relative; overflow: hidden; }
.page-hero::after { content: ""; position: absolute; inset: 0; background: radial-gradient(800px 300px at 80% 100%, rgba(47,107,255,0.28), transparent 70%); pointer-events: none; }
.page-hero .wrap { position: relative; z-index: 1; }
.page-hero h1 { font-size: clamp(32px, 5vw, 52px); }
.page-hero p { margin-top: 16px; font-size: 18px; color: rgba(255,255,255,0.72); max-width: 640px; }
.crumbs { font-size: 13px; color: rgba(255,255,255,0.55); margin-bottom: 18px; display: flex; gap: 8px; }
.crumbs a:hover { color: #fff; }

/* ==========================================================
   히어로 (메인) — 관제 모니터 월
   ========================================================== */
.hero { background: var(--ink); color: #fff; position: relative; overflow: hidden; }
.hero::before {
  content: ""; position: absolute; inset: 0;
  background:
    linear-gradient(rgba(255,255,255,0.035) 1px, transparent 1px) 0 0 / 100% 48px,
    linear-gradient(90deg, rgba(255,255,255,0.035) 1px, transparent 1px) 0 0 / 48px 100%;
  -webkit-mask-image: linear-gradient(180deg, rgba(0,0,0,0.9), transparent 90%);
  mask-image: linear-gradient(180deg, rgba(0,0,0,0.9), transparent 90%);
  pointer-events: none;
}
.hero .wrap { position: relative; display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: clamp(32px, 5vw, 72px); align-items: center; padding-block: clamp(56px, 8vw, 110px); }
.hero-copy h1 { font-size: clamp(34px, 5.2vw, 60px); letter-spacing: -0.03em; }
.hero-copy .lede { margin-top: 22px; font-size: 18px; line-height: 1.7; color: rgba(255,255,255,0.74); max-width: 480px; }
.hero-actions { margin-top: 34px; display: flex; flex-wrap: wrap; gap: 12px; }
.hero-proof { margin-top: 40px; display: flex; flex-wrap: wrap; gap: 8px 24px; color: rgba(255,255,255,0.6); font-size: 14px; }
.hero-proof li { display: flex; align-items: center; gap: 8px; }
.hero-proof li::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--ok); }

.wall { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; padding: 10px; background: #08111F; border: 1px solid rgba(255,255,255,0.1); border-radius: var(--radius-lg); box-shadow: 0 40px 80px -30px rgba(0,0,0,0.7); }
.cam { position: relative; aspect-ratio: 16 / 10; border-radius: 6px; overflow: hidden; background: #0f1a2b; font-size: 11px; }
.cam-bg { position: absolute; inset: 0; }
.cam-scan { position: absolute; inset: 0; background: repeating-linear-gradient(0deg, rgba(0,0,0,0.12) 0 1px, transparent 1px 3px); pointer-events: none; }
.cam-hud { position: absolute; left: 8px; right: 8px; top: 7px; display: flex; justify-content: space-between; align-items: center; font-family: var(--mono); font-size: 10px; color: rgba(255,255,255,0.85); letter-spacing: 0.02em; }
.cam-hud .rec { display: inline-flex; align-items: center; gap: 5px; }
.cam-hud .rec::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--danger); animation: blink 1.6s infinite; }
.cam-hud time { color: rgba(255,255,255,0.6); }
.cam-name { position: absolute; left: 8px; bottom: 7px; font-size: 11px; color: rgba(255,255,255,0.8); }
.box { position: absolute; border: 1.5px solid var(--detect); border-radius: 2px; opacity: 0; transform: scale(0.85); animation: boxin .5s cubic-bezier(.2,.9,.3,1.2) forwards; animation-delay: var(--d, 0.6s); }
.box::before, .box::after { content: ""; position: absolute; width: 8px; height: 8px; border-color: var(--detect); border-style: solid; }
.box::before { left: -2px; top: -2px; border-width: 2.5px 0 0 2.5px; }
.box::after { right: -2px; bottom: -2px; border-width: 0 2.5px 2.5px 0; }
.box .tag { position: absolute; left: -1.5px; top: -20px; padding: 2px 6px; background: var(--detect); color: #1a1200; font-family: var(--mono); font-size: 10px; font-weight: 700; white-space: nowrap; border-radius: 2px 2px 0 0; }
.box.alert { border-color: var(--danger); }
.box.alert::before, .box.alert::after { border-color: var(--danger); }
.box.alert .tag { background: var(--danger); color: #fff; }
.cam-alert { position: absolute; right: 8px; bottom: 7px; padding: 3px 8px; border-radius: 3px; background: rgba(229,72,77,0.92); color: #fff; font-weight: 700; font-size: 10px; opacity: 0; animation: boxin .4s ease forwards; animation-delay: var(--d, 1.4s); }

@keyframes boxin { to { opacity: 1; transform: scale(1); } }
@keyframes blink { 0%, 60% { opacity: 1; } 61%, 100% { opacity: 0.2; } }
@media (prefers-reduced-motion: reduce) {
  .box, .cam-alert { animation: none; opacity: 1; transform: none; }
  .cam-hud .rec::before { animation: none; }
}

/* 카메라 장면 (사진 없이 CSS로 표현) */
.scene-gate { background: linear-gradient(180deg, #1a2a45 0%, #223a5e 55%, #2b3d55 56%, #1c2a3d 100%); }
.scene-gate::after { content: ""; position: absolute; left: 18%; right: 18%; top: 28%; height: 34%; border: 2px solid rgba(255,255,255,0.14); border-bottom: 0; border-radius: 4px 4px 0 0; }
.scene-lot { background: linear-gradient(180deg, #14213a 0%, #1b2b47 50%, #3a4658 51%, #2b3441 100%); }
.scene-lot::after { content: ""; position: absolute; left: 0; right: 0; top: 66%; height: 2px; background: repeating-linear-gradient(90deg, rgba(255,255,255,0.35) 0 22px, transparent 22px 40px); }
.scene-boiler { background: radial-gradient(160px 90px at 62% 70%, rgba(255,120,40,0.55), transparent 70%), linear-gradient(180deg, #1a1f2b 0%, #232838 100%); }
.scene-boiler::after { content: ""; position: absolute; left: 10%; right: 10%; bottom: 0; height: 40%; background: linear-gradient(180deg, transparent, rgba(255,255,255,0.05)); border-top: 2px solid rgba(255,255,255,0.12); }
.scene-sea { background: linear-gradient(180deg, #16263f 0%, #1e3a5c 44%, #0f3b5a 45%, #0c2f4a 100%); }
.scene-sea::after { content: ""; position: absolute; left: 0; right: 0; top: 45%; height: 1px; background: rgba(255,255,255,0.2); }
.scene-thermal { background: radial-gradient(140px 100px at 40% 55%, rgba(255,60,60,0.6), rgba(255,180,40,0.35) 40%, transparent 70%), linear-gradient(180deg, #0d1f3a 0%, #1a2f52 100%); }
/* 디헤이징: 왼쪽 원본(안개) / 오른쪽 복원 비교 */
.scene-fog { background: linear-gradient(180deg, #2a3f5f 0%, #3b5a80 40%, #35506e 41%, #1f3048 100%); }
.scene-fog::before { content: ""; position: absolute; left: 12%; right: 12%; top: 30%; height: 30%; background: repeating-linear-gradient(90deg, rgba(255,255,255,0.18) 0 14px, transparent 14px 26px); border-bottom: 2px solid rgba(255,255,255,0.25); }
.scene-fog::after { content: ""; position: absolute; left: 0; right: 0; top: 60%; height: 1px; background: rgba(255,255,255,0.3); }
.fog { position: absolute; inset: 0; width: 50%; background: linear-gradient(90deg, rgba(205,214,224,0.82), rgba(205,214,224,0.7)); backdrop-filter: blur(1.5px); }
.fog-split { position: absolute; top: 0; bottom: 0; left: 50%; width: 2px; background: var(--detect); }
.fog-split::before, .fog-split::after { position: absolute; top: 50%; transform: translateY(-50%); padding: 3px 7px; font-family: var(--mono); font-size: 10px; font-weight: 700; border-radius: 2px; white-space: nowrap; }
.fog-split::before { content: "원본 · SSIM 0.55"; right: 8px; background: rgba(14,27,46,0.8); color: #fff; }
.fog-split::after { content: "복원 · SSIM 0.68"; left: 8px; background: var(--detect); color: #1a1200; }
.detail-visual .fog-split::before, .detail-visual .fog-split::after { font-size: 12px; }

/* ==========================================================
   제품 페이지
   ========================================================== */
.prod-cat { padding-block: clamp(48px, 7vw, 80px); border-top: 1px solid var(--line); scroll-margin-top: 80px; }
.prod-cat.first { border-top: 0; }
.prod-cat-head { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 2fr); gap: 24px 48px; margin-bottom: 32px; align-items: end; }
.prod-cat-head h2 { font-size: clamp(26px, 3.4vw, 34px); }
.prod-cat-head p { color: var(--muted); font-size: 16px; }
.prod-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.prod { display: flex; flex-direction: column; border: 1px solid var(--line); border-radius: var(--radius-lg); background: var(--paper); overflow: hidden; }
.prod-visual { aspect-ratio: 16 / 9; background: var(--ink); position: relative; display: grid; place-items: center; }
.prod-visual svg { width: 62%; height: auto; max-height: 70%; }
.prod-visual .model { position: absolute; left: 12px; bottom: 10px; font-family: var(--mono); font-size: 11px; color: rgba(255,255,255,0.6); letter-spacing: 0.04em; }
.prod-body { padding: 20px 22px 22px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.prod-body h3 { font-size: 19px; }
.prod-body p { color: var(--muted); font-size: 14.5px; flex: 1; }
.prod-body ul { display: grid; gap: 5px; font-size: 13.5px; color: var(--text); }
.prod-body ul li { padding-left: 14px; position: relative; }
.prod-body ul li::before { content: ""; position: absolute; left: 0; top: 9px; width: 6px; height: 6px; border-radius: 50%; background: var(--signal); }
.prod-body .badge { align-self: flex-start; font-size: 12px; font-weight: 700; color: var(--signal-deep); background: #E9F0FF; padding: 3px 9px; border-radius: 999px; }
@media (max-width: 960px) { .prod-grid { grid-template-columns: 1fr 1fr; } .prod-cat-head { grid-template-columns: 1fr; } }
@media (max-width: 600px) { .prod-grid { grid-template-columns: 1fr; } }

.cmp-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius-lg); background: var(--paper); margin-top: 24px; }
.cmp { width: 100%; border-collapse: collapse; font-size: 14.5px; min-width: 640px; }
.cmp th, .cmp td { padding: 13px 16px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
.cmp thead th { background: var(--ground); font-weight: 700; }
.cmp tbody th { color: var(--muted); font-weight: 600; width: 22%; }
.cmp tr:last-child td, .cmp tr:last-child th { border-bottom: 0; }
.cmp-note { margin-top: 12px; font-size: 13px; color: var(--muted); }

@media (max-width: 960px) {
  .hero .wrap { grid-template-columns: 1fr; }
  .wall { max-width: 640px; }
}
@media (max-width: 480px) {
  .wall { grid-template-columns: 1fr; }
  .cam { aspect-ratio: 16 / 9; }
}

/* ==========================================================
   솔루션 카드
   ========================================================== */
.sol-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.sol { position: relative; padding: 28px 26px 30px; background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius-lg); display: flex; flex-direction: column; gap: 14px; transition: border-color .15s; }
.sol:hover { border-color: var(--signal); }
.sol-icon { width: 46px; height: 46px; border-radius: 10px; background: #E9F0FF; color: var(--signal); display: grid; place-items: center; }
.sol-icon svg { width: 24px; height: 24px; }
.sol h3 { font-size: 20px; }
.sol p { color: var(--muted); font-size: 15px; flex: 1; }
.sol .chips { display: flex; flex-wrap: wrap; gap: 6px; }
.chip { font-size: 12px; padding: 4px 9px; border-radius: 999px; background: var(--ground); color: var(--text); border: 1px solid var(--line); }
.sol a.more { font-weight: 700; color: var(--signal); font-size: 14px; }
@media (max-width: 960px) { .sol-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 600px) { .sol-grid { grid-template-columns: 1fr; } }

/* ==========================================================
   플랫폼 아키텍처
   ========================================================== */
.arch { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(32px, 5vw, 72px); align-items: center; }
.arch h2 { font-size: clamp(28px, 4vw, 40px); }
.arch .lede { margin-top: 16px; color: rgba(255,255,255,0.7); font-size: 17px; }
.arch-list { display: grid; gap: 18px; margin-top: 28px; }
.arch-list li { display: grid; grid-template-columns: 28px 1fr; gap: 12px; }
.arch-list .n { width: 28px; height: 28px; border-radius: 50%; background: var(--signal); color: #fff; font-size: 13px; font-weight: 800; display: grid; place-items: center; }
.arch-list strong { display: block; font-size: 16px; }
.arch-list span { color: rgba(255,255,255,0.7); font-size: 14px; }
.arch-diagram { background: rgba(255,255,255,0.04); border: 1px solid rgba(255,255,255,0.1); border-radius: var(--radius-lg); padding: 20px; }
.arch-diagram svg { width: 100%; height: auto; font-family: var(--font); }
@media (max-width: 900px) { .arch { grid-template-columns: 1fr; } }

/* ==========================================================
   적용분야
   ========================================================== */
.field-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 14px; }
.field { padding: 22px 18px; background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius-lg); }
.field h3 { font-size: 17px; margin-top: 12px; }
.field p { margin-top: 8px; font-size: 14px; color: var(--muted); }
.field-icon { width: 40px; height: 40px; color: var(--signal); }
@media (max-width: 1000px) { .field-grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 640px) { .field-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 400px) { .field-grid { grid-template-columns: 1fr; } }

/* ==========================================================
   도입 절차 (실제 순서이므로 번호 사용)
   ========================================================== */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); border: 1px solid var(--line); border-radius: var(--radius-lg); overflow: hidden; background: var(--paper); }
.step { padding: 28px 24px; border-right: 1px solid var(--line); }
.step:last-child { border-right: 0; }
.step .n { font-size: 13px; font-weight: 800; color: var(--signal); }
.step h3 { font-size: 18px; margin-top: 8px; }
.step p { margin-top: 8px; font-size: 14px; color: var(--muted); }
@media (max-width: 900px) { .steps { grid-template-columns: 1fr 1fr; } .step:nth-child(2) { border-right: 0; } .step:nth-child(-n+2) { border-bottom: 1px solid var(--line); } }
@media (max-width: 520px) { .steps { grid-template-columns: 1fr; } .step { border-right: 0; border-bottom: 1px solid var(--line); } .step:last-child { border-bottom: 0; } }

/* ==========================================================
   회사 소개 블록
   ========================================================== */
.about { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(32px, 5vw, 72px); align-items: start; }
.about h2 { font-size: clamp(28px, 4vw, 40px); }
.about .lede { margin-top: 18px; font-size: 17px; color: var(--muted); }
.about .btn { margin-top: 26px; }
.facts { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.fact { padding: 22px; border-radius: var(--radius-lg); background: var(--ground); border: 1px solid var(--line); }
.fact strong { display: block; font-size: 26px; letter-spacing: -0.02em; line-height: 1.1; }
.fact span { display: block; margin-top: 6px; font-size: 14px; color: var(--muted); }
@media (max-width: 860px) { .about { grid-template-columns: 1fr; } }
@media (max-width: 420px) { .facts { grid-template-columns: 1fr; } }

.values { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.value { padding: 30px 26px; border-radius: var(--radius-lg); background: var(--paper); border: 1px solid var(--line); }
.value h3 { font-size: 20px; }
.value p { margin-top: 10px; color: var(--muted); font-size: 15px; }
.value-icon { width: 44px; height: 44px; color: var(--signal); margin-bottom: 16px; }
@media (max-width: 800px) { .values { grid-template-columns: 1fr; } }

.greeting { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 3fr); gap: clamp(32px, 5vw, 72px); }
.greeting-side { position: sticky; top: 92px; align-self: start; }
.greeting-side h2 { font-size: clamp(26px, 3.5vw, 36px); }
.greeting-side .sign { margin-top: 28px; padding-top: 20px; border-top: 1px solid var(--line); color: var(--muted); font-size: 15px; }
.greeting-side .sign strong { color: var(--text); font-size: 17px; }
.greeting-body { display: grid; gap: 34px; }
.greeting-body h3 { font-size: 20px; }
.greeting-body h3 + p { margin-top: 10px; color: var(--muted); }
@media (max-width: 800px) { .greeting { grid-template-columns: 1fr; } .greeting-side { position: static; } }

/* ---------- 연혁 ---------- */
.tl-year { display: grid; grid-template-columns: 120px 1fr; gap: 24px; padding: 28px 0; border-top: 1px solid var(--line); }
.tl-year:last-child { border-bottom: 1px solid var(--line); }
.tl-year h3 { font-size: 28px; color: var(--signal); letter-spacing: -0.02em; }
.tl-year ul { display: grid; gap: 10px; }
.tl-year li { display: grid; grid-template-columns: 34px 1fr; gap: 10px; font-size: 15px; }
.tl-year li b { color: var(--muted); font-weight: 600; }
.tl-note { margin-top: 18px; font-size: 13px; color: var(--muted); }
@media (max-width: 560px) { .tl-year { grid-template-columns: 1fr; gap: 10px; } }

/* ---------- 인증/등록 ---------- */
.certs { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.cert { padding: 18px 20px; border-radius: var(--radius); background: var(--paper); border: 1px solid var(--line); font-size: 15px; font-weight: 600; display: flex; gap: 10px; align-items: center; }
.cert::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--signal); flex: none; }
@media (max-width: 900px) { .certs { grid-template-columns: 1fr 1fr; } }
@media (max-width: 480px) { .certs { grid-template-columns: 1fr; } }

/* ==========================================================
   솔루션 상세 페이지
   ========================================================== */
.detail { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(32px, 5vw, 72px); align-items: center; padding-block: clamp(48px, 7vw, 88px); border-top: 1px solid var(--line); scroll-margin-top: 80px; }
.detail.first { border-top: 0; }
.detail.flip .detail-visual { order: -1; }
.detail h2 { font-size: clamp(26px, 3.6vw, 36px); }
.detail .lede { margin-top: 16px; font-size: 17px; color: var(--muted); }
.spec { margin-top: 24px; display: grid; gap: 10px; }
.spec li { display: grid; grid-template-columns: 20px 1fr; gap: 10px; font-size: 15px; }
.spec li::before { content: ""; width: 18px; height: 18px; margin-top: 3px; border-radius: 50%; background: var(--signal) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20' fill='none' stroke='white' stroke-width='2.4'%3E%3Cpath d='M5 10.5l3.2 3L15 7'/%3E%3C/svg%3E") center / 14px no-repeat; }
.detail-visual { border-radius: var(--radius-lg); overflow: hidden; border: 1px solid var(--line); background: #08111F; padding: 10px; }
.detail-visual .cam { aspect-ratio: 16 / 9; font-size: 13px; }
.detail-visual .cam-hud { font-size: 12px; }
.detail-visual .cam-name { font-size: 13px; }
.detail-visual .box .tag { font-size: 12px; top: -22px; }
.detail-visual .cam-alert { font-size: 12px; }
@media (max-width: 860px) { .detail { grid-template-columns: 1fr; } .detail.flip .detail-visual { order: 0; } }

.table { width: 100%; border-collapse: collapse; font-size: 15px; }
.table th, .table td { text-align: left; padding: 14px 16px; border-bottom: 1px solid var(--line); vertical-align: top; }
.table tr:last-child th, .table tr:last-child td { border-bottom: 0; }
.table th { width: 28%; color: var(--muted); font-weight: 600; background: var(--ground); }
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius-lg); background: var(--paper); }

/* ==========================================================
   문의 / 오시는길
   ========================================================== */
.contact { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(32px, 5vw, 72px); }
.contact-info { display: grid; gap: 22px; align-content: start; }
.contact-info dl { display: grid; grid-template-columns: 90px 1fr; gap: 10px 16px; font-size: 15px; margin: 0; }
.contact-info dt { color: var(--muted); }
.contact-info dd { margin: 0; font-weight: 600; }
.contact-info a:hover { color: var(--signal); }
.contact-info .big { font-size: 30px; font-weight: 800; letter-spacing: -0.02em; line-height: 1.2; }
.contact-info .big small { display: block; font-size: 14px; font-weight: 500; color: var(--muted); margin-bottom: 4px; }

.form { display: grid; gap: 16px; padding: 30px; background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius-lg); }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.field-group { display: grid; gap: 6px; }
.field-group label { font-size: 14px; font-weight: 600; }
.field-group label .req { color: var(--danger); }
.form input, .form select, .form textarea { width: 100%; padding: 12px 14px; font: inherit; font-size: 15px; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; color: var(--text); }
.form input:focus, .form select:focus, .form textarea:focus { outline: 2px solid var(--signal); outline-offset: 0; border-color: var(--signal); }
.form textarea { min-height: 140px; resize: vertical; }
.form .agree { display: flex; align-items: flex-start; gap: 10px; font-size: 14px; color: var(--muted); }
.form .agree input { width: auto; margin-top: 3px; }
.form .agree a { text-decoration: underline; }
.form-status { font-size: 14px; padding: 12px 14px; border-radius: var(--radius); display: none; }
.form-status.ok { display: block; background: #E8F8F0; color: #146A43; }
.form-status.err { display: block; background: #FDECEC; color: #A32B2F; }
.hp { position: absolute; left: -9999px; }
@media (max-width: 860px) { .contact { grid-template-columns: 1fr; } }
@media (max-width: 520px) { .form-row { grid-template-columns: 1fr; } .form { padding: 22px; } }

.map { margin-top: 40px; border-radius: var(--radius-lg); overflow: hidden; border: 1px solid var(--line); aspect-ratio: 16 / 7; min-height: 320px; background: var(--ground); }
.map iframe { width: 100%; height: 100%; border: 0; }
.directions { margin-top: 20px; display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.directions div { padding: 18px 20px; border-radius: var(--radius); background: var(--ground); border: 1px solid var(--line); font-size: 15px; }
.directions strong { display: block; margin-bottom: 4px; }
@media (max-width: 560px) { .directions { grid-template-columns: 1fr; } }

/* ==========================================================
   CTA 밴드
   ========================================================== */
.cta-band { background: linear-gradient(120deg, var(--signal-deep), var(--signal)); color: #fff; }
.cta-band .wrap { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 20px; padding-block: clamp(40px, 6vw, 64px); }
.cta-band h2 { font-size: clamp(24px, 3.4vw, 34px); }
.cta-band p { margin-top: 8px; color: rgba(255,255,255,0.8); }
.cta-band .btn { background: #fff; color: var(--signal-deep); }
.cta-band .btn:hover { background: #EAF0FF; }

/* ==========================================================
   푸터
   ========================================================== */
.site-footer { background: #0A1424; color: rgba(255,255,255,0.7); font-size: 14px; }
.site-footer .wrap { padding-block: 48px 32px; }
.footer-top { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 1fr) minmax(0, 1fr); gap: 32px; padding-bottom: 32px; border-bottom: 1px solid rgba(255,255,255,0.08); }
.footer-top h4 { color: #fff; font-size: 15px; margin-bottom: 12px; }
.footer-top ul { display: grid; gap: 8px; }
.footer-top a:hover { color: #fff; }
.footer-co { display: grid; gap: 4px; }
.footer-co .name { color: #fff; font-weight: 800; font-size: 17px; margin-bottom: 6px; }
.footer-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; padding-top: 20px; font-size: 13px; color: rgba(255,255,255,0.45); }
.footer-bottom a { margin-right: 16px; }
.footer-bottom a:hover { color: #fff; }
@media (max-width: 760px) { .footer-top { grid-template-columns: 1fr; } }

/* ---------- 법적 문서 ---------- */
.legal { max-width: 800px; }
.legal h2 { font-size: 20px; margin-top: 36px; }
.legal p, .legal li { margin-top: 10px; color: var(--text); font-size: 15px; }
.legal ul { list-style: disc; padding-left: 22px; }

/* 특허 표 */
.ip-table th { width: auto; }
.ip-table thead th { background: var(--ground); color: var(--text); font-weight: 700; }
.ip-table td:first-child { font-weight: 700; color: var(--signal-deep); white-space: nowrap; }
.ip-table td:nth-child(3), .ip-table td:nth-child(4) { white-space: nowrap; font-family: var(--mono); font-size: 13.5px; color: var(--muted); }

/* ==========================================================
   히어로 영상 · 시연 영상
   ========================================================== */
.hero-video { margin: 0; }
.hero-video video {
  width: 100%; height: auto; display: block;
  border-radius: var(--radius-lg);
  border: 1px solid rgba(255,255,255,0.12);
  background: #08111F;
  box-shadow: 0 40px 80px -30px rgba(0,0,0,0.7);
}
.hero-video figcaption { margin-top: 12px; font-size: 13px; color: rgba(255,255,255,0.5); }

.demo-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; }
.demo { margin: 0; }
.demo video {
  width: 100%; height: auto; display: block;
  border-radius: var(--radius-lg);
  border: 1px solid rgba(255,255,255,0.12);
  background: #08111F;
}
.demo figcaption { margin-top: 14px; font-size: 14.5px; color: rgba(255,255,255,0.68); line-height: 1.6; }
.demo figcaption strong { display: block; color: #fff; font-size: 17px; margin-bottom: 6px; }
@media (max-width: 860px) { .demo-grid { grid-template-columns: 1fr; gap: 32px; } }

/* ==========================================================
   제품 해시태그 · 제품 이미지
   ========================================================== */
.tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 4px; }
.tag-item { font-size: 12.5px; font-weight: 600; color: var(--signal-deep); background: #EDF3FF; border: 1px solid #D5E2FF; padding: 3px 9px; border-radius: 999px; }
.section-ink .tag-item { color: #BFD4FF; background: rgba(47,107,255,0.14); border-color: rgba(47,107,255,0.35); }

.tag-cloud { display: flex; flex-wrap: wrap; gap: 8px; }
.tag-cloud .tag-item { font-size: 14px; padding: 6px 14px; }

.prod-visual img { width: 100%; height: 100%; object-fit: cover; object-position: top left; max-height: none; }
.prod-visual.shot { padding: 0; background: #0B1220; }
.prod-visual.shot::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 55%, rgba(8,17,31,0.85)); pointer-events: none; }
.prod-visual .model { z-index: 1; }

/* 인증 배지 줄 */
.badges { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.badge-lg { display: flex; align-items: center; gap: 10px; padding: 12px 18px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--paper); font-size: 14.5px; font-weight: 600; }
.badge-lg b { color: var(--signal-deep); font-size: 17px; }

/* 레퍼런스 */
.refs { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.ref { padding: 26px 24px; border-radius: var(--radius-lg); background: rgba(255,255,255,0.05); border: 1px solid rgba(255,255,255,0.12); }
.ref .kind { font-size: 12.5px; font-weight: 700; color: var(--detect); letter-spacing: 0.02em; }
.ref h3 { font-size: 19px; margin-top: 8px; }
.ref ul { margin-top: 12px; display: grid; gap: 6px; font-size: 14px; color: rgba(255,255,255,0.68); }
.ref ul li { padding-left: 12px; position: relative; }
.ref ul li::before { content: ""; position: absolute; left: 0; top: 9px; width: 4px; height: 4px; border-radius: 50%; background: rgba(255,255,255,0.45); }
@media (max-width: 900px) { .refs { grid-template-columns: 1fr; } }

/* ---------- 실제 제품 사진 카드 ---------- */
.prod-visual.photo { background: #fff; border-bottom: 1px solid var(--line); aspect-ratio: 4 / 3; }
.prod-visual.photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; object-position: center; padding: 16px; }
/* 화면 캡처도 잘리지 않게 — 위쪽 기준으로 전체 표시 */
.prod-visual.shot { background: #0B1220; }
.prod-visual.shot img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; object-position: center; }
.prod-visual .no-image { color: rgba(255,255,255,0.45); font-size: 13px; }
.prod-visual.photo::after { display: none; }
.prod-visual.photo .model { color: var(--muted); background: rgba(255,255,255,0.9); padding: 2px 6px; border-radius: 3px; }

/* 사양 요약 */
.spec-mini { display: grid; gap: 4px; margin-top: 2px; padding-top: 10px; border-top: 1px dashed var(--line); font-size: 13px; }
.spec-mini div { display: grid; grid-template-columns: 74px 1fr; gap: 8px; }
.spec-mini dt, .spec-mini b { color: var(--muted); font-weight: 600; }


/* ---------- 제품 목록 로딩/오류 ---------- */
.loading { padding: 60px 0; text-align: center; color: var(--muted); }
.load-error { padding: 48px 0; max-width: 640px; }
.load-error h2 { font-size: 22px; }
.load-error p { margin-top: 12px; color: var(--muted); font-size: 15px; }
.load-error code { background: var(--ground); border: 1px solid var(--line); border-radius: 4px; padding: 2px 6px; font-family: var(--mono); font-size: 13.5px; }
.load-error a { color: var(--signal); font-weight: 700; }

/* 제품 편집기 링크 (푸터, 눈에 띄지 않게) */
.adm-link { opacity: .5; }
.adm-link:hover { opacity: 1; }
