/*
 * [국내] 통합 보안 플랫폼 iNEX — 작업기록 1_test\240 (2026-11-29)
 *  쓰는 곳: app/Views/korea/kr_inex.php (접두어 ix-). 단추 · 기능 칸 · 다른 기술 · 마무리 띠는 kr-techpage.css(tk-) 를 같이 씀
 *  첫 화면은 NOVA 처럼 어두운 바탕 위 글, 그 아래 실제 감시 화면 영상이 다음 칸까지 걸쳐 내려옴
 */
.ix-page { --hero: #0d1418; --red: #ff3b3b; }

/* 1 첫 화면 */
.ix-hero { position: relative; padding: 104px 0 0; background: linear-gradient(to bottom, transparent calc(100% - 200px), #fff calc(100% - 200px)), radial-gradient(90% 70% at 50% 0%, #17323a 0%, var(--hero) 62%); text-align: center; }   /* 아래 200px 은 흰색: 화면이 다음 칸으로 걸쳐 보이게 */
.ix-htxt { position: relative; z-index: 1; }
.ix-hero h1 { margin: 0 !important; font-size: 44px !important; font-weight: 700 !important; line-height: 1.25 !important; color: #fff !important; letter-spacing: -.02em; }
.ix-hsub { margin: 22px 0 0; font-size: 28px; font-weight: 600; line-height: 1.4; color: #fff; letter-spacing: -.02em; }
.ix-hdesc { max-width: 720px; margin: 20px auto 0; font-size: 17px; line-height: 1.7; color: rgba(255,255,255,.82); }
.ix-hero .tk-acts { justify-content: center; margin-top: 36px; }
.ix-hero .tk-acts .tk-pill { min-width: 160px; white-space: nowrap; }
.ix-stage { position: relative; z-index: 2; margin-top: 64px; }
.ix-screen { border-radius: 12px; overflow: hidden; border: 1px solid rgba(255,255,255,.1); background: #0f1316; box-shadow: 0 30px 70px rgba(0,20,26,.35); aspect-ratio: 16 / 9; }
.ix-page .ix-screen video { width: 100%; height: 100%; object-fit: cover; }

/* 2 숫자 셋 */
.ix-stats { padding: 72px 0 0; }
.ix-stats ul { display: grid; grid-template-columns: repeat(3, 1fr); margin: 0 auto; padding-top: 0; padding-bottom: 0; list-style: none; }
.ix-stats li { padding: 4px 32px; border-left: 1px solid var(--line); }
.ix-stats li:first-child { padding-left: 0; border-left: 0; }
.ix-stats b { display: block; font-variant-numeric: tabular-nums; font-size: 48px; font-weight: 700; line-height: 1.1; color: var(--gd); letter-spacing: -.02em; }
.ix-stats b em { font-style: normal; }
.ix-stats b small { margin-left: 4px; font-size: 22px; font-weight: 600; }
.ix-stats span { display: block; margin-top: 12px; font-size: 16px; line-height: 1.6; color: var(--body); }
.ix-stats + .tk-feat { padding-top: 120px; }

/* 3~7 기능 칸 그림: 실제 화면을 둥근 틀에 */
.ix-shot { border-radius: 10px; overflow: hidden; background: #1e1e1e; box-shadow: 0 18px 40px rgba(0,40,44,.16); }
.ix-page .ix-shot img { width: 100%; height: auto; }

/* 8 멈추지 않는다: 녹화 서버 1이 멈추면 장애 조치 서버가 대신 */
.ix-res, .ix-mod, .ix-ops, .ix-hw { padding: 120px 0; }
.ix-mod, .ix-hw { background: var(--band); }
.ix-fo { display: grid; grid-template-columns: 1fr 120px 1fr; align-items: center; margin: 44px 0 0; padding: 36px 40px; border: 1px solid var(--line); border-radius: 12px; }
.ix-fosv { display: grid; gap: 10px; margin: 0; padding: 0; list-style: none; }
.ix-fosv li, .ix-fosb { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 16px 20px; border: 1px solid var(--line); border-radius: 8px; background: #fff; transition: background .4s, border-color .4s, opacity .4s; }
.ix-fosv b, .ix-fosb b { font-size: 16px; font-weight: 700; color: var(--ink); }
.ix-fosv em, .ix-fosb em { font-style: normal; font-size: 13px; font-weight: 600; color: var(--gd); }
.ix-fosv li.x { border-color: #f3c3c3; background: #fff6f6; }
.ix-fosv li.x em { color: #d33a3a; }
.ix-foline { position: relative; height: 2px; margin: 0 14px; background: repeating-linear-gradient(90deg, var(--g) 0 8px, transparent 8px 14px); }
.ix-foline i { position: absolute; right: -2px; top: -5px; width: 0; height: 0; border-left: 10px solid var(--g); border-top: 6px solid transparent; border-bottom: 6px solid transparent; }
.ix-fosb { border-color: var(--g); background: rgba(0,162,185,.07); }
.ix-st { position: relative; flex: 1; min-height: 20px; text-align: right; }
.ix-st em { position: absolute; right: 0; top: 0; white-space: nowrap; }
.ix-fosb .w { opacity: 0; }
.ix-fo.go .ix-fosv li.x { animation: ixDown 6s infinite both; }
.ix-fo.go .ix-fosv li.x em { animation: ixDownT 6s infinite both; }
.ix-fo.go .ix-foline { animation: ixLine 6s infinite both; }
.ix-fo.go .ix-fosb { animation: ixTake 6s infinite both; }
.ix-fo.go .ix-fosb .w { animation: ixShowW 6s infinite both; }
.ix-fo.go .ix-fosb .r { animation: ixShowR 6s infinite both; }
@keyframes ixDown { 0%, 25% { border-color: var(--line); background: #fff; } 30%, 92% { border-color: #f3c3c3; background: #fff6f6; } 100% { border-color: var(--line); background: #fff; } }
@keyframes ixDownT { 0%, 25% { color: var(--gd); } 30%, 92% { color: #d33a3a; } 100% { color: var(--gd); } }
@keyframes ixLine { 0%, 38% { opacity: .15; } 44%, 92% { opacity: 1; } 100% { opacity: .15; } }
@keyframes ixTake { 0%, 46% { border-color: var(--line); background: #fff; } 52%, 92% { border-color: var(--g); background: rgba(0,162,185,.07); } 100% { border-color: var(--line); background: #fff; } }
@keyframes ixShowW { 0%, 46% { opacity: 1; } 48%, 100% { opacity: 0; } }
@keyframes ixShowR { 0%, 48% { opacity: 0; } 52%, 92% { opacity: 1; } 100% { opacity: 0; } }

/* 카드 묶음 (멈추지 않는다 · 운영과 보안) */
.ix-cards { display: grid; gap: 20px; margin: 28px 0 0; padding: 0; list-style: none; }
.ix-cards.three { grid-template-columns: repeat(3, 1fr); }
.ix-cards.four { grid-template-columns: repeat(4, 1fr); margin-top: 44px; }
.ix-cards li { padding: 26px 26px 28px; border-radius: 8px; background: var(--band); }
.ix-mod .ix-cards li { background: #fff; }
.ix-cards b { display: block; font-size: 19px; font-weight: 700; color: var(--ink); }
.ix-cards span { display: block; margin-top: 10px; font-size: 15px; line-height: 1.65; color: var(--body); }
.ix-res > .tk-wrap > .tk-more-link { margin-top: 24px; }

/* 9 크게 키운다: 가운데 관리 서비스, 위아래 서비스를 선으로 */
.ix-hub { margin-top: 48px; }
.ix-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin: 0; padding: 0; list-style: none; }
.ix-row li { position: relative; padding: 22px 24px; border: 1px solid var(--line); border-radius: 8px; background: #fff; }
.ix-row li::after { content: ''; position: absolute; left: 50%; width: 2px; height: 28px; background: var(--g); opacity: .5; }
.ix-row.top li::after { top: 100%; }
.ix-row.bottom li::after { bottom: 100%; }
.ix-row b { display: block; font-size: 17px; font-weight: 700; color: var(--ink); }
.ix-row span { display: block; margin-top: 6px; font-size: 14px; line-height: 1.6; color: var(--body); }
.ix-core { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: center; gap: 6px 16px; margin: 28px 0; padding: 22px 24px; border-radius: 8px; background: var(--g); text-align: center; }
.ix-core b { font-size: 20px; font-weight: 700; color: #fff; }
.ix-core span { font-size: 15px; color: rgba(255,255,255,.9); }
.ix-note { margin: 24px 0 0; font-size: 15px; color: var(--sub); }

/* 11 운영 하드웨어 */
.ix-hwbox { display: grid; grid-template-columns: 4fr 8fr; gap: 40px; align-items: center; margin-top: 44px; padding: 32px 36px; border-radius: 10px; background: #fff; }
.ix-page .ix-hwpic img { width: 100%; height: auto; }
.ix-tbl table { width: 100%; border-collapse: collapse; }
.ix-tbl th, .ix-tbl td { padding: 14px 10px; border-bottom: 1px solid var(--line); text-align: left; font-size: 14px; line-height: 1.5; color: var(--body); vertical-align: middle; }
.ix-tbl thead th { padding-top: 0; border-bottom: 2px solid var(--ink); font-size: 13px; font-weight: 700; color: var(--ink); }
.ix-tbl tbody th b { display: block; font-size: 15px; font-weight: 700; color: var(--ink); white-space: nowrap; }
.ix-tbl tbody th small { display: block; margin-top: 2px; font-size: 12px; font-weight: 400; color: var(--sub); }
.ix-hwfoot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px 24px; margin-top: 28px; }
.ix-hwfoot p { margin: 0; font-size: 15px; line-height: 1.6; color: var(--body); }
.ix-hwfoot .tk-more-link { margin: 0 0 0 8px; vertical-align: baseline; }
.ix-page .ix-hw + .tk-more { padding-top: 120px; }

/* 241 맵 감시: 도면 위 카메라 아이콘과 이벤트 팝업. .go 일 때만 움직이고, 없으면 끝 장면(이벤트 카메라 빨강 + 팝업) */
.ix-map { position: relative; }
.ix-cam { position: absolute; width: 26px; height: 26px; margin: -13px 0 0 -13px; z-index: 2; }
.ix-page .ix-map .ix-cam img { position: relative; width: 100%; height: auto; filter: drop-shadow(0 2px 3px rgba(0,0,0,.35)); }
.ix-cam.nofov::before { display: none; }
.ix-page .ix-map .ix-cam.ev img { filter: drop-shadow(0 0 4px #e03b3b) drop-shadow(0 0 2px #e03b3b); }
.ix-cam::before { content: ''; position: absolute; left: 50%; top: 50%; width: 110px; height: 110px; margin: -55px 0 0 -55px; border-radius: 50%; z-index: -1;
    background: conic-gradient(from calc(var(--d) + 60deg), rgba(0,162,185,.38) 0 60deg, transparent 0);
    -webkit-mask: radial-gradient(closest-side, #000 18%, transparent 100%); mask: radial-gradient(closest-side, #000 18%, transparent 100%); pointer-events: none; }
.ix-cam.ev::before { background: conic-gradient(from calc(var(--d) + 60deg), rgba(224,59,59,.42) 0 60deg, transparent 0); }
.ix-page .ix-map img.ix-pop { position: absolute; left: 53%; top: 6%; width: 31%; height: auto; border-radius: 3px; box-shadow: 0 14px 34px rgba(0,0,0,.35); z-index: 3; transform-origin: -14% 91%; }
.ix-map.go .ix-cam { animation: ixCamIn .45s calc(var(--i) * .12s + .15s) both; }
.ix-map.go .ix-cam.ev img { animation: ixEvB 7s 1.2s infinite both; }
.ix-map.go .ix-cam.ev::before { animation: ixEvC 7s 1.2s infinite both; }
.ix-map.go .ix-pop { animation: ixPop 7s 1.2s infinite both; }
@keyframes ixCamIn { from { opacity: 0; transform: scale(.3); } to { opacity: 1; transform: none; } }
@keyframes ixEvB { 0%, 6% { filter: drop-shadow(0 2px 3px rgba(0,0,0,.35)); } 9%, 92% { filter: drop-shadow(0 0 4px #e03b3b) drop-shadow(0 0 2px #e03b3b); } 96%, 100% { filter: drop-shadow(0 2px 3px rgba(0,0,0,.35)); } }
@keyframes ixEvC { 0%, 6% { opacity: 0; } 9%, 92% { opacity: 1; } 96%, 100% { opacity: 0; } }
@keyframes ixPop { 0%, 14% { opacity: 0; transform: scale(.04); } 20%, 90% { opacity: 1; transform: none; } 95%, 100% { opacity: 0; transform: scale(.04); } }
@media (max-width: 767px) { .ix-head::before { left: -3px; top: -4px; border-left-width: 4px; border-right-width: 4px; border-top-width: 4px; } .ix-cam { width: 16px; height: 16px; margin: -8px 0 0 -8px; } .ix-cam::before { width: 56px; height: 56px; margin: -28px 0 0 -28px; } }

/* 241 이벤트 대응: CAM15 칸이 빨갛게 → 그 칸에서 팝업이 열리고 이벤트 목록에 새 줄 */
.ix-alert, .ix-play { position: relative; }
.ix-hit { position: absolute; left: 27.3%; top: 76.6%; width: 27%; height: 23.4%; border: 3px solid #e03b3b; opacity: 0; z-index: 2; pointer-events: none; }
.ix-page .ix-alert img.ix-apop { position: absolute; left: 4.71%; top: 5.46%; width: 53.14%; height: auto; z-index: 3; box-shadow: 0 12px 30px rgba(0,0,0,.4); transform-origin: 68% 123%; }
.ix-page .ix-alert img.ix-alist { position: absolute; left: 81.79%; top: 47.62%; width: 18.21%; height: auto; z-index: 2; }
.ix-alert.go .ix-hit { animation: ixHit 7s .4s infinite both; }
.ix-alert.go .ix-apop { animation: ixPop 7s .4s infinite both; }
.ix-alert.go .ix-alist { animation: ixList 7s .4s infinite both; }
@keyframes ixHit { 0%, 4% { opacity: 0; } 6%, 12% { opacity: 1; } 8%, 16% { opacity: .3; } 10%, 18% { opacity: 1; } 22%, 100% { opacity: 0; } }
@keyframes ixList { 0%, 14% { opacity: 0; transform: translateY(2%); } 20%, 92% { opacity: 1; transform: none; } 97%, 100% { opacity: 0; } }

/* 241 재생과 검색: 재생 막대가 녹화 구간을 따라 움직임 */
.ix-head { position: absolute; left: 46.2%; top: 86.6%; width: 2px; height: 11.2%; margin-left: -1px; background: #e8322e; z-index: 2; }
.ix-head::before { content: ''; position: absolute; left: -5px; top: -7px; border-left: 6px solid transparent; border-right: 6px solid transparent; border-top: 7px solid #e8322e; }
.ix-play.go .ix-head { animation: ixHead 8s linear infinite both; }
@keyframes ixHead { from { left: 39.4%; } to { left: 55.4%; } }

/* 241 모듈 구조: 관리 서비스 → 선 → 서비스 차례로 */
.ix-hub.go .ix-core { animation: ixCamIn .5s .1s both; }
.ix-hub.go .ix-row li::after { animation: ixLine2 .4s .6s both; }
.ix-hub.go .ix-row.top li::after { transform-origin: 50% 100%; }
.ix-hub.go .ix-row.bottom li::after { transform-origin: 50% 0; }
.ix-hub.go .ix-row li { animation: ixCard .45s both; }
.ix-hub.go .ix-row li:nth-child(1) { animation-delay: .9s; } .ix-hub.go .ix-row li:nth-child(2) { animation-delay: 1.05s; } .ix-hub.go .ix-row li:nth-child(3) { animation-delay: 1.2s; }
.ix-hub.go .ix-row.bottom li:nth-child(1) { animation-delay: 1.35s; } .ix-hub.go .ix-row.bottom li:nth-child(2) { animation-delay: 1.5s; } .ix-hub.go .ix-row.bottom li:nth-child(3) { animation-delay: 1.65s; }
@keyframes ixLine2 { from { transform: scaleY(0); } to { transform: none; } }
@keyframes ixCard { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }

@media (max-width: 1023px) {
    .ix-cards.four { grid-template-columns: repeat(2, 1fr); }
    .ix-hwbox { grid-template-columns: 1fr; }
    .ix-hwpic { max-width: 420px; margin: 0 auto; }
}
@media (max-width: 767px) {
    .ix-hero { padding-top: 64px; }
    .ix-hero h1 { font-size: 30px !important; }
    .ix-hsub { margin-top: 14px; font-size: 21px; }
    .ix-hdesc { font-size: 15px; }
    .ix-hero .tk-acts { margin-top: 28px; }
    .ix-hero .tk-acts .tk-pill { flex: 1 1 140px; min-width: 0; }
    .ix-stage { margin-top: 40px; }
    .ix-hero { background: linear-gradient(to bottom, transparent calc(100% - 90px), #fff calc(100% - 90px)), var(--hero); }
    .ix-screen { border-radius: 8px; }
    .ix-stats { padding-top: 44px; }
    .ix-stats ul { grid-template-columns: 1fr; }
    .ix-stats li { padding: 18px 0; border-left: 0; border-top: 1px solid var(--line); }
    .ix-stats li:first-child { padding-top: 0; border-top: 0; }
    .ix-stats b { font-size: 38px; }
    .ix-stats + .tk-feat { padding-top: 72px; }
    .ix-res, .ix-mod, .ix-ops, .ix-hw { padding: 72px 0; }
    .ix-page .ix-hw + .tk-more { padding-top: 72px; }
    .ix-fo { grid-template-columns: 1fr; gap: 14px; padding: 20px; margin-top: 28px; }
    .ix-foline { height: 32px; width: 2px; margin: 0 auto; background: repeating-linear-gradient(180deg, var(--g) 0 6px, transparent 6px 11px); }
    .ix-foline i { right: -5px; top: auto; bottom: -4px; border-left: 6px solid transparent; border-right: 6px solid transparent; border-top: 10px solid var(--g); border-bottom: 0; }
    .ix-cards.three, .ix-cards.four, .ix-row { grid-template-columns: 1fr; gap: 12px; }
    .ix-row li::after { display: none; }
    .ix-core { margin: 14px 0; }
    .ix-hwbox { padding: 20px; gap: 20px; }
    .ix-tbl { overflow-x: auto; }
    .ix-tbl table { min-width: 620px; }
    .ix-tbl td { white-space: nowrap; }
    .ix-row li { padding: 16px 20px; }
    .ix-hwfoot .tk-pill { width: 100%; }
}
