*{margin:0;padding:0;box-sizing:border-box}
body{background:#fff;color:#111;font-family:"Inter","Pretendard",system-ui,sans-serif;-webkit-font-smoothing:antialiased}

/* 전체 레이아웃 컨테이너 */
.wrap {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  
  /* 최상단 헤더 위 여백과 최하단 푸터 아래 여백 설정 */
  padding-top: 24px;
  padding-bottom: 12px;
  
  box-sizing: border-box;
}

/* 헤더 여백 초기화 (wrap의 padding-top에 위임) */
header {
  margin-top: 0;
  padding-top: 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo{font-weight:700;letter-spacing:0.05em;font-size:14px}
.nav {
  display: flex;
  align-items: center;
}

.nav-contact {
  color: #111;
  text-decoration: none;
  font-size: 12px;
  letter-spacing: 0.05em;
  opacity: 0.6;
  transition: opacity 0.15s ease;
}

.nav-contact:hover {
  opacity: 1;
}

/* 언어 선택 스위처 스타일 */
.lang-switch {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-right: 20px;
}

.lang-switch button {
  background: none;
  border: none;
  font-size: 12px;
  letter-spacing: 0.05em;
  color: #111;
  opacity: 0.4;
  cursor: pointer;
  padding: 0;
  font-family: inherit;
  transition: opacity 0.15s ease;
}

.lang-switch button:hover {
  opacity: 0.8;
}

/* 활성화된 언어 버튼 */
.lang-switch button.active {
  opacity: 1;
  font-weight: 700;
  text-decoration: underline;
}

.lang-switch .sep {
  font-size: 11px;
  opacity: 0.2;
}
/* HERO SECTION */
.hero{padding:96px 0 80px;display:flex;flex-direction:column;align-items:flex-start}
.hero h1{font-size:72px;line-height:0.92;letter-spacing:-0.04em;font-weight:600;max-width:720px;margin:0;padding:0;transform:translateX(-0.04em)}
.hero h1 span{font-weight:300}
.sub{margin:24px 0 0 0;padding:0 0 0 0.04em;max-width:720px;font-size:16px;line-height:1.6;opacity:0.6}
.hero-cta{margin-top:64px;display:flex;gap:12px;margin-left:0;padding-left:0.04em}

/* LABS 버튼 배지 & 애니메이션 스타일 */
.btn-badge-wrap {
  position: relative;
  display: inline-block;
}

.animated-badge {
  position: absolute;
  top: -28px;
  left: 50%;
  transform: translateX(-50%);
  background: #111;
  color: #fff;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.08em;
  padding: 3px 8px;
  border-radius: 12px;
  white-space: nowrap;
  pointer-events: none;
  display: flex;
  align-items: center;
  gap: 4px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
  animation: bounce 1.6s infinite ease-in-out;
}

/* 말풍선 꼬리표 */
.animated-badge::after {
  content: "";
  position: absolute;
  bottom: -4px;
  left: 50%;
  transform: translateX(-50%);
  border-width: 4px 4px 0 4px;
  border-style: solid;
  border-color: #111 transparent transparent transparent;
}

/* 움직이는 아이콘 애니메이션 */
.animated-badge .icon {
  display: inline-block;
  animation: rotateSparkle 2s infinite linear;
}

/* 위아래 둥둥 뜨는 Keyframe */
@keyframes bounce {
  0%, 100% {
    transform: translate(-50%, 0);
  }
  50% {
    transform: translate(-50%, -6px);
  }
}

/* 호버 시 애니메이션 정지 */
.btn-badge-wrap:hover .animated-badge {
  animation-play-state: paused;
}

.btn{padding:12px 20px;font-size:12px;letter-spacing:0.05em;border:1px solid #111;cursor:pointer;display:inline-block;text-decoration:none}
.btn.black{background:#111;color:#fff;width:260px;text-align:center}
/* ==========================================
   [버튼 색상 완전 고정 - :visited, :link 가상 클래스 제어]
   ========================================== */

/* Contact 버튼 (흰색 배경 + 검정 글자) - 모든 링크 상태 강제 적용 */
a.btn.white,
a.btn.white:link,
a.btn.white:visited,
.wrap .hero .hero-cta a.btn.white,
.wrap .hero .hero-cta a.btn.white:link,
.wrap .hero .hero-cta a.btn.white:visited {
  background: #ffffff !important;
  background-color: #ffffff !important;
  color: #111111 !important;
  border: 1px solid #111111 !important;
  opacity: 1 !important;
}

/* Contact 버튼 마우스 호버 / 터치 반응 */
a.btn.white:hover,
a.btn.white:active {
  background: #f0f0f0 !important;
  color: #111111 !important;
}

/* LABS 버튼 (검정 배경 + 흰색 글자) - 모든 링크 상태 강제 적용 */
a.btn.black,
a.btn.black:link,
a.btn.black:visited,
.wrap .hero .hero-cta a.btn.black,
.wrap .hero .hero-cta a.btn.black:link,
.wrap .hero .hero-cta a.btn.black:visited {
  background: #111111 !important;
  background-color: #111111 !important;
  color: #ffffff !important;
  border: 1px solid #111111 !important;
  opacity: 1 !important;
}
.btn:hover{opacity:0.85}
.divider{height:1px;background:#eee}

/* 카드 4개 통일 */
.products, .industries{padding:48px 0}
.prod-head{font-size:11px;letter-spacing:0.2em;opacity:0.4;margin-bottom:32px}
.prod-grid{display:grid;grid-template-columns:repeat(4,1fr);border-top:1px solid #111;border-left:1px solid #eee}
.prod{padding:24px 20px;border-right:1px solid #eee;border-bottom:1px solid #eee;cursor:pointer;transition:all .15s ease;background:#fff}
.prod .num{font-size:11px;opacity:0.3;margin-bottom:24px;font-family:monospace}
.prod .name{font-size:16px;font-weight:600;margin-bottom:8px}
.prod .desc{font-size:12px;line-height:1.5;opacity:0.6;min-height:48px}
.prod:hover{background:#fafafa}
.prod:active{background:#f0f0f0}

.statement {
  padding: 48px 0 0 0px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  border-top: none;
  border-bottom: none;
  margin: 0;
}
.statement h2{font-size:36px;line-height:1.1;letter-spacing:-0.02em}
.statement p{font-size:14px;line-height:1.7;opacity:0.6}

/* 푸터 여백 초기화 (하단 여백은 wrap의 padding-bottom 60px로만 제어) */
footer {
  margin-bottom: 0;
  padding: 16px 0 0;
  display: flex;
  justify-content: space-between;
  font-size: 11px;
  align-items: center;
  font-family: "Inter", "Pretendard", system-ui, sans-serif !important;
}

footer .left {
  opacity: 0.4;
  font-family: inherit !important;
}

.footer-links {
  display: flex;
  gap: 16px;
  align-items: center;
  opacity: 0.6;
  font-family: inherit !important;
}

.footer-links a,
.footer-links span {
  color: #111;
  font-family: inherit !important;
  font-size: 11px;
  line-height: 1;
  text-decoration: none;
  border-bottom: none !important;
  padding-bottom: 0;
}

.footer-links a:hover {
  opacity: 1;
  text-decoration: underline;
}

/* 모달 */
.modal{position:fixed;inset:0;background:rgba(0,0,0,0.6);display:none;align-items:center;justify-content:center;z-index:100;padding:24px}
.modal.open{display:flex}
.modal-box{background:#fff;max-width:1980px;width:100%;padding:32px;border:1px solid #111;position:relative}
.modal-box .m-num{font-size:11px;opacity:0.3;margin-bottom:16px;font-family:monospace}
.modal-box .m-title{font-size:24px;font-weight:600;letter-spacing:-0.02em;margin-bottom:12px}
.modal-box .m-desc{font-size:13px;line-height:1.7;opacity:0.7;white-space:pre-line}
.modal-box .m-close{
  position: absolute;
  top: 16px;
  right: 16px;
  border: 1px solid #111;
  padding: 6px 10px;
  font-size: 11px;
  cursor: pointer;
  background: #fff;

  /* --- [디자인 영향 없는 속도/우선순위 보완] --- */
  z-index: 10;                              /* 모달 내부 요소보다 항상 위에 배치 */
  user-select: none;                        /* 연타 시 텍스트 드래그 선택 방지 */
  -webkit-tap-highlight-color: transparent; /* 모바일 터치 딜레이 제거 */

}
.modal-box .m-close:hover{background:#111;color:#fff}

@media(max-width:900px){
  .hero h1{font-size:44px;transform:none}
  .sub{padding-left:0}
  .hero-cta{padding-left:0}
  .prod-grid{grid-template-columns:1fr 1fr}
  .statement{grid-template-columns:1fr}
  footer{flex-direction:column;gap:16px;align-items:flex-start}
}


/* 모바일 전체 5px */
@media screen and (max-width: 900px) {
  .wrap {
    padding-left: 5px !important;
    padding-right: 5px !important;
    box-sizing: border-box !important;
  }
  .hero h1 { transform: none !important; }
  .sub, .hero-cta { padding-left: 0 !important; margin-left: 0 !important; }

  /* 모바일에서도 260:160 비율 유지, 가로 한 줄 */
  .hero-cta {
    display: flex !important;
    flex-direction: row !important;
    width: 100% !important;
    gap: 8px !important;
    padding: 0 !important;
    margin-top: 32px !important;
    box-sizing: border-box !important;
  }

  .hero-cta .btn-badge-wrap {
    flex: 260 1 0 !important; /* LABS 260 */
    min-width: 0 !important;
    width: auto !important;
  }
  .hero-cta > a.btn.white {
    flex: 160 1 0 !important; /* CONTACT 160 */
    min-width: 0 !important;
    width: auto !important;
  }

  /* 래퍼 안 버튼은 래퍼 100% */
  .hero-cta .btn-badge-wrap a.btn.black,
  .hero-cta a.btn.white {
    width: 100% !important;
    display: flex !important;
    justify-content: center !important;
    box-sizing: border-box !important;
  }
}