/* 소프트웨어 sw.refit.kr — 강조색: 신호 청록 → 정상 초록. 그 밖의 모든 것은 base.css 와 같음 */
:root { --accent: #3CC8F4; --accent-2: #2BD47D; --accent-ink: #04121A; }

/* ---------- 첫 화면: 관제 비디오월(가상 데이터) ---------- */
.wall { position: relative; background: rgb(8 16 28 / .85); backdrop-filter: blur(10px); border: 1px solid var(--line-2); box-shadow: 0 40px 120px -40px rgb(0 0 0 / .9), 0 0 100px -30px var(--glow);
  clip-path: polygon(0 0, calc(100% - 22px) 0, 100% 15.4px, 100% 100%, 0 100%); animation: rise 1s .2s var(--ease) backwards; }
.wall-bar { display: flex; align-items: center; gap: 16px; height: 36px; padding: 0 14px; border-bottom: 1px solid var(--line); font-family: var(--font-mono); font-size: 11px; color: var(--sub); letter-spacing: .06em; }
.wall-bar .live { display: inline-flex; align-items: center; gap: 6px; color: var(--accent-2); font-weight: 700; }
.wall-bar .live i { width: 7px; height: 7px; border-radius: 50%; background: var(--accent-2); box-shadow: 0 0 0 0 color-mix(in srgb, var(--accent-2) 60%, transparent); animation: pulse 1.8s infinite; }
@keyframes pulse { 70% { box-shadow: 0 0 0 8px transparent; } 100% { box-shadow: 0 0 0 0 transparent; } }
.wall-clock { margin-left: auto; color: var(--ink); font-size: 12px; }
.wall-tag { padding: 3px 8px; border: 1px solid var(--status-demo); color: var(--status-demo); font-size: 10px; letter-spacing: .02em; }
.wall-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1px; background: var(--line); }
.panel { background: rgb(8 16 28 / .9); padding: 14px 16px 16px; min-height: 236px; display: flex; flex-direction: column; gap: 10px; }
.panel h3 { font-family: var(--font-mono); font-size: 11px; font-weight: 500; color: var(--sub); letter-spacing: .06em; }
.panel h3 b { color: var(--accent); }
.orbit { width: 132px; height: 132px; align-self: center; }
.orbit .o1, .orbit .o2 { transform-box: view-box; }
.sat { fill: var(--accent); }
.sat-2 { fill: var(--accent-2); }
.passes { display: grid; gap: 4px; font-family: var(--font-mono); font-size: 11px; }
.passes li { display: grid; grid-template-columns: 52px 1fr auto; gap: 8px; color: var(--sub); }
.passes b { color: var(--ink); font-weight: 500; }
.passes .soon b { color: var(--status-progress); }
.map { width: 100%; height: auto; }
.map .pt { fill: var(--accent-2); transition: fill .4s; }
.map .pt.hi { fill: #FF5D5D; }
.map .ring-alert { fill: none; stroke: #FF5D5D; stroke-width: 1.2; animation: ping 1.4s ease-out infinite; transform-box: fill-box; transform-origin: center; }
@keyframes ping { from { opacity: 1; transform: scale(.5); } to { opacity: 0; transform: scale(2.6); } }
.kv { display: flex; align-items: baseline; gap: 8px; font-family: var(--font-mono); font-size: 11px; color: var(--sub); }
.kv b { font-size: 20px; color: var(--ink); font-weight: 500; }
.alert-n { margin-left: auto; color: #FF5D5D; }
.spark { width: 100%; height: 36px; }
.spark polyline { stroke: var(--accent); }
.big { font-family: var(--font-mono); font-size: 12px; color: var(--sub); }
.big b { font-size: 30px; color: var(--ink); font-weight: 500; letter-spacing: -0.03em; }
.bars { display: grid; gap: 8px; font-family: var(--font-mono); font-size: 11px; }
.bars li { display: grid; grid-template-columns: 58px 1fr 40px; gap: 8px; align-items: center; color: var(--sub); }
.bars i { height: 6px; background: rgb(255 255 255 / .08); position: relative; overflow: hidden; }
.bars em { position: absolute; inset: 0 auto 0 0; width: calc(var(--w) * 1%); background: linear-gradient(90deg, var(--accent), var(--accent-2)); transition: width 1.2s var(--ease); }
.bars b { color: var(--ink); font-weight: 500; text-align: right; }
.panel .foot { margin-top: auto; font-family: var(--font-mono); font-size: 11px; color: var(--sub); display: flex; gap: 14px; }
.panel .foot b { color: var(--ink); font-weight: 500; }
.panel .foot .warn b { color: var(--status-progress); }
.cells { display: grid; grid-template-columns: repeat(32, 1fr); gap: 2px; }
.cells i { aspect-ratio: 1; background: rgb(255 255 255 / .08); transition: background .5s; }
.cells i.ok { background: color-mix(in srgb, var(--accent-2) 55%, transparent); }
.cells i.warn { background: var(--status-progress); }
.ticker { margin-top: clamp(40px, 5vw, 64px); border-block: 1px solid var(--line); background: rgb(0 0 0 / .3); overflow: hidden; font-family: var(--font-mono); font-size: 12px; color: var(--sub); }
.ticker-track { display: flex; width: max-content; animation: tick 60s linear infinite; }
.ticker span { padding: 12px 28px; white-space: nowrap; border-right: 1px solid var(--line); }
.ticker span::before { content: "▸ "; color: var(--accent); }
@keyframes tick { to { transform: translateX(-50%); } }

/* ---------- 통합관제 8분야 ---------- */
.dom-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1px; background: var(--line); border: 1px solid var(--line); }
.dom { position: relative; background: var(--bg-2); display: flex; flex-direction: column; transition: background .3s; overflow: hidden; }
.dom:hover { background: var(--glass-2); }
.dom::after { content: ""; position: absolute; left: 0; top: 0; z-index: 1; height: 2px; width: 0; background: linear-gradient(90deg, var(--accent), var(--accent-2)); transition: width .5s var(--ease); }
.dom:hover::after { width: 100%; }
.dom-art { aspect-ratio: 16 / 10; overflow: hidden; border-bottom: 1px solid var(--line); background: #0B1220; }
.dom-art img { width: 100%; height: 100%; object-fit: cover; opacity: .9; transition: transform .9s var(--ease), opacity .4s; }
.dom:hover .dom-art img { transform: scale(1.05); opacity: 1; }
.dom-body { padding: 18px 20px 20px; display: grid; gap: 8px; align-content: start; }
.dom-top { display: flex; align-items: center; justify-content: space-between; }
.dom-n { font-family: var(--font-mono); font-size: 11px; color: var(--dim); letter-spacing: .08em; }
.dom h3 { font-size: 17px; font-weight: 700; letter-spacing: -0.02em; }
.dom p { font-size: 13.5px; color: var(--sub); min-height: 42px; }
.dom-foot { display: flex; align-items: center; justify-content: space-between; gap: 8px; font-family: var(--font-mono); font-size: 11px; color: var(--dim); margin-top: 4px; }

/* ---------- 대표 구축 ---------- */
.case { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); gap: clamp(28px, 5vw, 72px); align-items: center; padding-block: clamp(32px, 4vw, 56px); }
.case + .case { border-top: 1px solid var(--line); }
.case--rev .case-media { order: 2; }
.case-media { aspect-ratio: 4 / 3; background: var(--panel); border: 1px solid var(--line-2); overflow: hidden; box-shadow: 0 30px 80px -40px rgb(0 0 0 / .9), 0 0 60px -30px var(--glow);
  clip-path: polygon(0 0, calc(100% - 18px) 0, 100% 12.6px, 100% 100%, 0 100%); }
.case-media img, .case-media .pic-hold { width: 100%; height: 100%; object-fit: cover; object-position: var(--pos, top center); }
.case-media img.is-mock { padding: 5%; }
.case-n { font-family: var(--font-mono); font-size: 12px; color: var(--accent-2); letter-spacing: .06em; }
.case-copy .h2 { margin: 10px 0 14px; font-size: clamp(22px, 2.2vw, 30px); }
.case-copy p { color: var(--sub); }
.case-facts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); margin: 24px 0; border-top: 1px solid var(--line-2); }
.case-facts div { padding: 14px 10px 0 0; }
.case-facts dt { font-family: var(--font-mono); font-size: 20px; font-weight: 700; letter-spacing: -0.03em; color: var(--accent-2); }
.case-facts dd { font-size: 12.5px; color: var(--sub); margin-top: 4px; }

/* ---------- 구성도 ---------- */
.arch { padding: clamp(14px, 3vw, 36px); }
.arch svg { width: 100%; height: auto; }
.arch .node rect { fill: rgb(255 255 255 / .04); stroke: var(--line-2); }
.arch .node.core rect { fill: color-mix(in srgb, var(--accent) 12%, transparent); stroke: var(--accent); }
.arch text { fill: var(--ink); font-size: 18px; font-weight: 700; font-family: var(--font-sans); }
.arch text.s { fill: var(--sub); font-size: 13px; font-weight: 400; font-family: var(--font-mono); }
.arch .flow { fill: none; stroke: var(--accent); stroke-width: 1.5; stroke-dasharray: 6 6; animation: flow 1.2s linear infinite; }
@keyframes flow { to { stroke-dashoffset: -12; } }
.creds { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 24px; }
.creds a { display: inline-flex; align-items: center; gap: 8px; padding: 8px 12px; border: 1px solid var(--line-2); background: var(--glass); font-size: 13.5px; color: var(--sub); transition: border-color .2s, color .2s; }
.creds a:hover { border-color: var(--accent); color: var(--ink); }
.creds .ico { color: var(--accent-2); }

@media (max-width: 1080px) { .dom-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 900px) { .case { grid-template-columns: 1fr; } .case--rev .case-media { order: 0; } }
@media (max-width: 640px) { .wall-grid { grid-template-columns: 1fr; } .wall-tag { display: none; } .dom-grid { grid-template-columns: 1fr; } .case-facts dt { font-size: 18px; } }

/* 분야 카드: 올리면 빛이 위에서 아래로 훑음 */
.dom-art { position: relative; }
.dom-art::after { content: ""; position: absolute; inset: 0; pointer-events: none; transform: translateY(-100%);
  background: linear-gradient(180deg, transparent, color-mix(in srgb, var(--accent) 28%, transparent) 50%, transparent); }
.dom:hover .dom-art::after { animation: scan 1.1s var(--ease) forwards; }
@keyframes scan { to { transform: translateY(100%); } }
/* 관제 벽: 패널이 차례로 켜짐 */
.panel { animation: panelIn .8s var(--ease) backwards; }
.panel:nth-child(2) { animation-delay: .15s; } .panel:nth-child(3) { animation-delay: .3s; } .panel:nth-child(4) { animation-delay: .45s; }
@keyframes panelIn { from { opacity: 0; transform: translateY(12px); } }
