@charset "utf-8";

/* ============================================
   BUTTON
   ============================================ */
.btn-line {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-align: center;
  -ms-flex-align: center;
  align-items: center;
  -webkit-box-pack: center;
  -ms-flex-pack: center;
  justify-content: center;
  gap: 10px;
  overflow: hidden;
  position: relative;
  height: 64px;
  padding: 0 40px 0 50px;
  border: 1px solid var(--color-border);
  font-size: 20px;
  font-weight: 500;
  line-height: 1;
  color: #fff;
  text-align: center;
  text-transform: uppercase;
  letter-spacing: -0.01em;
  white-space: nowrap;
  -webkit-transition: -webkit-filter 0.2s;
  transition: filter 0.2s;
}

.btn-line:hover { -webkit-filter: brightness(1.25); filter: brightness(1.25); }

/* 좌우 흰 바 */
.btn-line::before,
.btn-line::after {
  content: '';
  position: absolute;
  top: 50%;
  width: 3px;
  height: 43px;
  margin-top: -21.5px;
  background: #fff;
}

.btn-line::before { left: -1px; }
.btn-line::after { right: 0; }

/* 스캔라인 데코 */
.btn-line .deco {
  position: absolute;
  top: 17px;
  left: 50%;
  z-index: 0;
  width: 835px;
  height: 160px;
  margin-left: -417px;
  background: url('/ns2/assets/images/main/bg_btn_union.svg') no-repeat 50% 50% / 100% 100%;
  pointer-events: none;
}

/* 좌상단 미세 라벨 */
.btn-line .mini {
  position: absolute;
  top: 9px;
  left: 15px;
  z-index: 1;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: -0.01em;
  opacity: 0.07;
}

.btn-line .txt,
.btn-line .ico { position: relative; z-index: 1; }

.btn-line .ico { width: 24px; height: 24px; }

/* -- 컬러 변형 -- */
.btn-primary {
  background: var(--color-primary);
  -webkit-backdrop-filter: blur(2.5px);
  backdrop-filter: blur(2.5px);
}

.btn-ghost { background: rgba(255, 255, 255, 0.24); }

.btn-disabled {
  background: rgba(255, 255, 255, 0.14);
  color: rgba(255, 255, 255, 0.5);
  cursor: default;
}

.btn-disabled:hover { -webkit-filter: none; filter: none; }

/* -- 사이즈 변형 -- */
.btn-line.btn-sm { height: 60px; padding: 0 50px; font-size: 18px; }

.btn-line.btn-block { width: 100%; }

@media (max-width: 1024px) {
  .btn-line { height: 58px; font-size: 17px; }
  .btn-line.btn-sm { height: 54px; font-size: 16px; }
}

@media (max-width: 768px) {
  .btn-line { height: 52px; padding: 0 24px; font-size: 15px; }
  .btn-line.btn-sm { height: 48px; padding: 0 20px; font-size: 14px; }
  .btn-line .mini { display: none; }
}

@media (max-width: 480px) {
  .btn-line { height: 48px; padding: 0 16px; font-size: 13px; }
  .btn-line.btn-sm { height: 44px; font-size: 12px; }
  .btn-line::before,
  .btn-line::after { height: 30px; margin-top: -15px; }
}

/* ============================================
   SECTION LABEL
   ============================================ */
.sec-label {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-align: center;
  -ms-flex-align: center;
  align-items: center;
  position: relative;
  z-index: 3;
  width: 320px;
  height: 52px;
  padding-left: 18px;
  background: url('/ns2/assets/images/main/bg_sec_label.svg') no-repeat 0 0 / 100% 100%;
  font-size: 20px;
  font-weight: 700;
  line-height: 1;
  text-transform: uppercase;
  letter-spacing: -0.01em;
  text-shadow: 0 0 19px #2e67c9;
}

@media (max-width: 768px) {
  .sec-label { width: 240px; height: 44px; padding-left: 14px; font-size: 16px; }
}

@media (max-width: 480px) {
  .sec-label { width: 200px; height: 38px; font-size: 14px; }
}

/* ============================================
   PANEL (제품 소개 박스)
   ============================================ */
.panel {
  overflow: hidden;
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: var(--panel-w);
  margin: 0 auto;
  border: 2px solid var(--color-primary);
  background: var(--color-bg-panel);
}

@media (max-width: 768px) {
  .panel { border-width: 1px; }
}

/* ============================================
   SCROLL REVEAL
   ============================================ */
.reveal {
  opacity: 0;
  -webkit-transform: translateY(40px);
  transform: translateY(40px);
  -webkit-transition: opacity 0.8s ease-out, -webkit-transform 0.8s ease-out;
  transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.reveal.is-show {
  opacity: 1;
  -webkit-transform: none;
  transform: none;
}

@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; -webkit-transform: none; transform: none; -webkit-transition: none; transition: none; }
}

/* ============================================
   IMAGE POPUP (스크린샷 확대)
   ============================================ */
body.is-popup-open { overflow: hidden; }

.popup-img {
  visibility: hidden;
  position: fixed;
  z-index: 200;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  -webkit-transition: opacity 0.3s ease, visibility 0.3s ease;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

.popup-img.is-open {
  visibility: visible;
  opacity: 1;
}

.popup-img .popup-dim {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.85);
}

.popup-img .popup-inner {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 1280px;
  max-width: calc(100% - 120px);
  -webkit-transform: translate(-50%, -50%) scale(0.94);
  transform: translate(-50%, -50%) scale(0.94);
  -webkit-transition: -webkit-transform 0.3s ease;
  transition: transform 0.3s ease;
}

.popup-img.is-open .popup-inner {
  -webkit-transform: translate(-50%, -50%) scale(1);
  transform: translate(-50%, -50%) scale(1);
}

.popup-img .popup-view {
  display: block;
  width: 100%;
  max-height: calc(100vh - 200px);
  border: 2px solid var(--color-primary);
  object-fit: contain;
  background: var(--color-bg-panel);
}

.popup-img .btn-popup-close {
  position: absolute;
  top: -52px;
  right: 0;
  width: 40px;
  height: 40px;
}

.popup-img .btn-popup-close::before,
.popup-img .btn-popup-close::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 30px;
  height: 2px;
  margin: -1px 0 0 -15px;
  background: var(--color-text);
  -webkit-transition: background 0.2s ease;
  transition: background 0.2s ease;
}

.popup-img .btn-popup-close::before {
  -webkit-transform: rotate(45deg);
  transform: rotate(45deg);
}

.popup-img .btn-popup-close::after {
  -webkit-transform: rotate(-45deg);
  transform: rotate(-45deg);
}

.popup-img .btn-popup-close:hover::before,
.popup-img .btn-popup-close:hover::after { background: var(--color-primary); }

@media (max-width: 1024px) {
  .popup-img .popup-inner { max-width: calc(100% - 80px); }
  .popup-img .popup-view { max-height: calc(100vh - 160px); }
}

@media (max-width: 768px) {
  .popup-img .popup-inner { max-width: calc(100% - 40px); }
  .popup-img .popup-view { border-width: 1px; max-height: calc(100vh - 140px); }
  .popup-img .btn-popup-close { top: -44px; width: 32px; height: 32px; }
  .popup-img .btn-popup-close::before,
  .popup-img .btn-popup-close::after { width: 24px; margin: -1px 0 0 -12px; }
}

@media (prefers-reduced-motion: reduce) {
  .popup-img,
  .popup-img .popup-inner { -webkit-transition: none; transition: none; }
  .popup-img .popup-inner { -webkit-transform: translate(-50%, -50%); transform: translate(-50%, -50%); }
}
