/* ============================================================
   PC 관제 프로그램 홍보 섹션 (#desktop)
   FireM6 Pro 데스크톱 (Windows·Mac) — 공장·대형 방재실 상주 PC 관제
   디자인 토큰: 앱 v2.5와 통일 (라벤더 배경·글래스 카드·화재 살구/빨강)
   ============================================================ */

#desktop {
  box-sizing: border-box;
  padding: 0 0 30px;
  text-align: center;
}

/* 공장 이미지 히어로 (오늘 제작 building_factory) */
.dt-hero {
  position: relative;
  overflow: hidden;
  padding: 96px 24px 104px;
  text-align: center;
}
.dt-hero-bg {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(180deg, rgba(15, 17, 26, 0.62) 0%, rgba(15, 17, 26, 0.5) 45%, rgba(15, 17, 26, 0.74) 100%),
    url("/images/content/building_factory.jpg");
  background-size: cover;
  background-position: center 38%;
}
.dt-hero-inner {
  position: relative;
  z-index: 2;
  max-width: 1100px;
  margin: 0 auto;
}
.dt-kicker {
  display: inline-block;
  margin-bottom: 18px;
  padding: 7px 16px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.16);
  border: 1px solid rgba(255, 255, 255, 0.28);
  color: #fff;
  font-size: 16px;
  font-weight: 800;
  letter-spacing: -0.2px;
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
}
.dt-title {
  font-size: 46px;
  font-weight: 800;
  color: #fff;
  line-height: 1.32;
  letter-spacing: -0.5px;
  text-shadow: 0 2px 20px rgba(0, 0, 0, 0.4);
}
.dt-title strong {
  font-weight: 800;
  color: #ff8a6b;
}
.dt-sub {
  margin-top: 22px;
  font-size: 21px;
  font-weight: 500;
  line-height: 1.7;
  color: rgba(255, 255, 255, 0.92);
  text-shadow: 0 2px 14px rgba(0, 0, 0, 0.45);
}

.dt-inner {
  width: 100%;
  max-width: 1320px;
  margin: 0 auto;
  box-sizing: border-box;
  padding: 0 24px;
}
.dt-head {
  margin-top: -42px;
  margin-bottom: 56px;
  position: relative;
  z-index: 3;
}

/* OS 배지 */
.dt-os {
  display: flex;
  justify-content: center;
  gap: 14px;
  flex-wrap: wrap;
}
.dt-badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 13px 22px;
  border-radius: 16px;
  font-size: 17px;
  font-weight: 700;
  border: 1.5px solid #e2e8f0;
  background: #fff;
  color: #2f2f2f;
}
.dt-badge .dt-ico { width: 22px; height: 22px; flex-shrink: 0; }
.dt-badge small {
  display: block;
  font-size: 12px;
  font-weight: 600;
  color: #94a3b8;
  margin-top: 1px;
}
.dt-badge b { font-size: 17px; font-weight: 800; }
/* Windows 강조 */
.dt-badge-win {
  border-color: transparent;
  background: linear-gradient(135deg, #b6262f, #8f1d25);
  color: #fff;
  box-shadow: 0 12px 28px rgba(182, 38, 47, 0.28);
}
.dt-badge-win small { color: rgba(255, 255, 255, 0.75); }
.dt-badge-win .dt-pin {
  margin-left: 4px;
  padding: 2px 8px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.22);
  font-size: 11px;
  font-weight: 800;
}

/* ---------- 모니터 목업 ---------- */
.dt-stage {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 64px;
  margin-top: 20px;
  text-align: left;
}
.dt-monitor-wrap { flex-shrink: 0; }
.dt-monitor {
  width: 620px;
  max-width: 92vw;
  border-radius: 18px;
  background: #1f2430;
  padding: 14px 14px 0;
  box-sizing: border-box;
  box-shadow: 0 40px 80px rgba(31, 36, 48, 0.32), 0 8px 20px rgba(31, 36, 48, 0.2);
}
.dt-screen {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 10;
  border-radius: 8px;
  overflow: hidden;
  background: linear-gradient(180deg, #e8e5fb 0%, #f1effb 45%, #f6f5fd 100%);
  font-family: "Pretendard", sans-serif;
}
.dt-screen * { box-sizing: border-box; }
/* 받침대 */
.dt-stand {
  width: 130px;
  height: 16px;
  margin: 0 auto;
  background: linear-gradient(180deg, #1f2430, #161a22);
  border-radius: 0 0 6px 6px;
}
.dt-foot {
  width: 220px;
  height: 10px;
  margin: 0 auto;
  background: #d7dae2;
  border-radius: 999px;
}

/* ============ 화면 내부 — 실제 데스크톱 앱(Dashboard.tsx) 2-pane 재현 ============
   상단바 2줄(타이틀바 날짜·시계 / 툴바 로고·탭·연결) + 좌측 카드 그리드 + 우측 480 이력 */

/* 타이틀바 */
.dtw-title {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
  height: 24px;
  padding: 0 12px;
  background: #f1f5f9;
  border-bottom: 1px solid #cbd5e1;
}
.dtw-title-traffic {
  position: absolute;
  left: 12px;
  display: flex;
  gap: 5px;
}
.dtw-title-traffic i { width: 8px; height: 8px; border-radius: 50%; }
.dtw-title-traffic i:nth-child(1) { background: #ff5f57; }
.dtw-title-traffic i:nth-child(2) { background: #febc2e; }
.dtw-title-traffic i:nth-child(3) { background: #28c840; }
.dtw-date {
  font-size: 8.5px;
  font-weight: 700;
  color: #64748b;
}
.dtw-clock {
  font-family: "SF Mono", "JetBrains Mono", ui-monospace, Menlo, monospace;
  font-size: 11px;
  font-weight: 800;
  color: #0b1220;
}
.dtw-clock em { font-style: normal; color: #cbd5e1; }

/* 툴바 */
.dtw-tool {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 14px;
  background: #fff;
  border-bottom: 1px solid #cbd5e1;
}
.dtw-tool-l { display: flex; align-items: center; gap: 7px; }
.dtw-logo-img { height: 14px; width: auto; display: block; }
.dtw-os { font-size: 8.5px; font-weight: 700; color: #64748b; white-space: nowrap; }
.dtw-tabs { display: flex; gap: 2px; margin-left: 4px; }
.dtw-tab {
  padding: 4px 9px;
  border-radius: 8px;
  font-size: 9px;
  font-weight: 700;
  color: #64748b;
}
.dtw-tab-on { color: #1d4ed8; background: #eff6ff; }
.dtw-tool-r { display: flex; align-items: center; gap: 10px; }
.dtw-conn-top {
  font-size: 8.5px;
  font-weight: 700;
  color: #10b981;
}
.dtw-refresh {
  padding: 4px 9px;
  border-radius: 7px;
  border: 1px solid #cbd5e1;
  font-size: 8.5px;
  font-weight: 600;
  color: #64748b;
}

/* 2-pane 본문 */
.dtw-panes {
  display: flex;
  height: calc(100% - 24px - 35px);
}
.dtw-grid {
  flex: 1;
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-auto-rows: min-content;
  gap: 10px;
  padding: 12px;
  align-content: start;
  background: #f4f6fb;
  overflow: hidden;
}
.dtw-hist {
  width: 168px;
  flex-shrink: 0;
  border-left: 1px solid #cbd5e1;
  background: #fff;
}
.dtw-hist-head {
  padding: 9px 11px;
  border-bottom: 1px solid #cbd5e1;
  font-size: 9.5px;
  font-weight: 800;
  color: #0b1220;
}
.dtw-hrow {
  padding: 8px 11px;
  border-bottom: 1px solid #f1f5f9;
  display: grid;
  gap: 3px;
}
.dtw-hrow-top { display: flex; align-items: center; gap: 5px; }
.dtw-htime {
  font-family: "SF Mono", ui-monospace, Menlo, monospace;
  font-size: 7px;
  font-weight: 600;
  color: #64748b;
}
.dtw-hchip {
  padding: 1.5px 6px;
  border-radius: 999px;
  font-size: 7px;
  font-weight: 800;
}
.dtw-hchip-fire { background: rgba(220,38,38,0.10); color: #dc2626; border: 1px solid rgba(220,38,38,0.35); }
.dtw-hchip-end { background: rgba(220,38,38,0.06); color: #7f1d1d; border: 1px solid rgba(127,29,29,0.25); }
.dtw-hchip-cmd { background: rgba(249,115,22,0.12); color: #c2410c; border: 1px solid rgba(249,115,22,0.35); }
.dtw-hbname { font-size: 8px; font-weight: 700; color: #0b1220; }

/* 건물 카드 */
.dtw-card {
  background: #fff;
  border: 1px solid #cbd5e1;
  border-radius: 12px;
  padding: 11px;
  display: flex;
  flex-direction: column;
  gap: 7px;
}
.dtw-card-fire {
  grid-column: 1 / -1;
  border-color: #f97316;
  animation: dtw-cardfire 1.2s ease-in-out infinite;
}
@keyframes dtw-cardfire {
  0%, 100% { box-shadow: 0 0 0 0 rgba(220,38,38,0); }
  50% { box-shadow: 0 0 0 4px rgba(220,38,38,0.18); }
}
.dtw-inds { display: flex; gap: 6px; min-height: 18px; }
.dtw-conn {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  padding: 3px 8px;
  border-radius: 999px;
  background: rgba(255,255,255,0.92);
  box-shadow: 0 1px 6px rgba(15,23,42,0.12);
  font-size: 8px;
  font-weight: 800;
  color: #1d4ed8;
}
.dtw-conn i { width: 4px; height: 4px; border-radius: 50%; background: #1d4ed8; animation: iv2-dot 1.8s ease-in-out infinite; }
.dtw-conn i:nth-child(2) { animation-delay: .2s; }
.dtw-conn i:nth-child(3) { animation-delay: .4s; }
.dtw-fire-chip {
  display: inline-flex;
  align-items: center;
  padding: 3px 9px;
  border-radius: 999px;
  background: #dc2626;
  color: #fff;
  font-size: 8px;
  font-weight: 800;
  animation: dtw-blink 1.2s ease-in-out infinite;
}
@keyframes dtw-blink { 0%,100% { opacity: 1; } 50% { opacity: 0.35; } }
.dtw-bname { font-size: 14px; font-weight: 800; color: #0b1220; letter-spacing: -0.3px; }

/* 화재 박스 */
.dtw-fbox {
  border: 1px solid #f97316;
  border-radius: 10px;
  padding: 8px 10px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  animation: dtw-fbox 1.2s ease-in-out infinite;
}
@keyframes dtw-fbox {
  0%, 100% { background: rgba(254,215,170,0.45); border-color: #f97316; }
  50% { background: rgba(220,38,38,0.18); border-color: #dc2626; }
}
.dtw-fbox-main { display: flex; align-items: center; gap: 10px; }
.dtw-fbox-chip {
  padding: 6px 11px;
  border-radius: 9px;
  background: #ea580c;
  color: #fff;
  font-size: 9px;
  font-weight: 900;
  white-space: nowrap;
  animation: dtw-chipblink 1s ease-in-out infinite;
}
@keyframes dtw-chipblink { 0%,100% { background: #ea580c; } 50% { background: rgba(234,88,12,0.45); } }
.dtw-fbox-started {
  font-size: 9px;
  font-weight: 800;
  color: #44403c;
  font-variant-numeric: tabular-nums;
}
.dtw-fbox-elapsed {
  margin-left: auto;
  font-family: "SF Mono", ui-monospace, Menlo, monospace;
  font-size: 17px;
  font-weight: 800;
  color: #b91c1c;
}
.dtw-fbox-loc { font-size: 10px; font-weight: 800; color: #7f1d1d; }

/* 원격제어 2x2 */
.dtw-cmds {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 7px;
}
.dtw-pill {
  position: relative;
  display: flex;
  align-items: center;
  gap: 6px;
  height: 32px;
  padding: 0 8px 0 4px;
  border-radius: 16px;
}
.dtw-pill-glass {
  background: rgba(255,255,255,0.78);
  border: 1px solid rgba(15,23,42,0.08);
  box-shadow: 0 4px 12px rgba(15,23,42,0.06);
  color: #0b1220;
}
.dtw-pill-red {
  background: #dc2626;
  border: 1px solid rgba(255,255,255,0.3);
  box-shadow: 0 6px 18px rgba(220,38,38,0.3);
  color: #fff;
}
.dtw-pill-circle {
  width: 24px;
  height: 24px;
  border-radius: 12px;
  flex-shrink: 0;
  display: grid;
  place-items: center;
  font-size: 10px;
  background: rgba(15,23,42,0.08);
}
.dtw-pill-red .dtw-pill-circle { background: rgba(255,255,255,0.22); }
.dtw-pill-label { font-size: 9.5px; font-weight: 800; flex: 1; text-align: center; padding-right: 14px; }
/* 비상방송 탭 → 작동 깜빡임 */
.dtw-pill-cast .dtw-pill-circle { animation: dtw-castcircle 1s steps(1) infinite; }
@keyframes dtw-castcircle {
  0% { background: rgba(15,23,42,0.08); }
  50% { background: rgba(255,255,255,0.85); }
}

/* 우측 카피 포인트 */
.dt-points { max-width: 440px; }
.dt-point {
  display: flex;
  gap: 14px;
  margin-bottom: 26px;
}
.dt-point:last-child { margin-bottom: 0; }
.dt-point-ic {
  flex-shrink: 0;
  width: 46px; height: 46px;
  border-radius: 13px;
  display: grid;
  place-items: center;
  font-size: 22px;
  background: rgba(182, 38, 47, 0.08);
}
.dt-point-tx h4 {
  font-size: 20px;
  font-weight: 800;
  color: #2f2f2f;
  margin: 2px 0 6px;
}
.dt-point-tx p {
  font-size: 16px;
  line-height: 1.65;
  color: #666;
  margin: 0;
}

/* ---------- 반응형 ---------- */
@media (max-width: 1100px) {
  .dt-stage { flex-direction: column; gap: 44px; }
  .dt-points { max-width: 620px; }
}
@media (max-width: 768px) {
  #desktop { padding: 60px 0 10px; }
  .dt-title { font-size: 28px; }
  .dt-sub { font-size: 17px; }
  .dt-monitor { padding: 9px 9px 0; }
  .dt-grid { gap: 7px; padding: 11px; }
  .dt-bname { font-size: 10px; }
  .dt-point-tx h4 { font-size: 17px; }
  .dt-point-tx p { font-size: 14px; }
  .dt-badge { padding: 11px 16px; font-size: 15px; }
}
