@charset "utf-8";

/* ==========================================================================
   Layout — Variables & Core & Common Components
   H-PHY(TM) Portal · 하이브리드 톤(다크 Hero/CTA + 라이트 본문) · Play/Pretendard · .area 1180
   BP: 1024(tablet) / 600(mobile)  ※ 공통 cm-* 클래스·변수명 유지, 값만 교체
   ========================================================================== */

:root {
  /* Brand accent (락: 전 페이지 동일) */
  --primary: #2E6BFF;
  --primary-2: #1D4ED8;
  --primary-mid: #6E9BFF;
  --primary-light: #A9C4FF;
  --primary-soft: rgba(46, 107, 255, .10);
  --primary-line: rgba(46, 107, 255, .35);

  /* Dark surfaces (Hero / CTA / Header / Footer) */
  --d-bg: #0A0A0B;
  --d-bg-2: #101318;
  --d-bg-3: #171A21;
  --d-text: #EDEDED;
  --d-dim: #9AA0AB;
  --d-line: rgba(255, 255, 255, .10);

  /* Light surfaces (본문) */
  --white: #ffffff;
  --l-bg: #ffffff;
  --l-bg-2: #F5F7FA;
  --black: #0B1220;
  --text: #3A4453;
  --text-sub: #5B6472;
  --text-light: #8A93A3;
  --bg: #F5F7FA;
  --border: #E5E8EE;

  /* Typography */
  --font-title: 'Play', 'Pretendard', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-body: 'Pretendard', -apple-system, BlinkMacSystemFont, sans-serif;

  /* Layout */
  --area-width: 1180px;
  --area-padding: 24px;
  --header-height: 76px;

  /* Radius scale (Samsung풍 중간 라운드) */
  --radius: 14px;
  --radius-sm: 8px;
  --radius-lg: 22px;

  /* Motion / shadow */
  --transition: all 0.25s ease;
  --transition-slow: all 0.5s ease;
  --shadow: 0 10px 30px rgba(11, 18, 32, .08);
  --shadow-lg: 0 24px 60px rgba(11, 18, 32, .12);
}

/* ==========================================================================
   Typography  (body = 라이트 본문 기준. 다크 섹션은 섹션 클래스로 오버라이드)
   ========================================================================== */
html { font-size: 16px; overflow-x: hidden; }

body {
  font-family: var(--font-body);
  font-size: 16px;
  color: var(--text);
  background: var(--l-bg);
  line-height: 1.6;
  letter-spacing: -0.02em; /* 전역 (재추가 금지 규칙) */
  word-break: keep-all;
  overflow-x: hidden; /* 오프캔버스 모바일 nav 등 문서 밖 요소로 인한 가로스크롤 차단 */
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-title);
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.01em;
  color: var(--black);
}
strong, b { font-weight: 700; }

/* ==========================================================================
   Container
   ========================================================================== */
.area {
  max-width: var(--area-width);
  margin: 0 auto;
  padding: 0 var(--area-padding);
}

/* Section surface helpers (하이브리드 명암 교차) */
.sec { padding: 110px 0; }
.sec--dark  { background: var(--d-bg);  color: var(--d-text); }
.sec--light { background: var(--l-bg);  color: var(--text); }
.sec--tint  { background: var(--l-bg-2); color: var(--text); }
.sec--dark .cm-tit { color: var(--d-text); }
.sec--dark .cm-tit-txt { color: var(--d-dim); }

/* ==========================================================================
   Accessibility Skip Navigation
   ========================================================================== */
.cm-accessibility { position: relative; z-index: 9999; }
.cm-accessibility a {
  display: block; position: absolute; left: 0; top: -999px;
  width: 100%; padding: 10px 0; background: var(--black); color: var(--white);
  text-align: center; font-size: 14px; z-index: 9999;
}
.cm-accessibility a:focus { top: 0; }

/* ==========================================================================
   Section Title (공통 cm-tit-box / cm-tit-sub / cm-tit / cm-tit-txt)
   ========================================================================== */
.cm-tit-sub {
  display: inline-block; font-family: var(--font-title); font-size: 14px; font-weight: 700;
  color: var(--primary); letter-spacing: .14em; text-transform: uppercase; margin-bottom: 16px;
}
.cm-tit-box { margin-bottom: 56px; }
.cm-tit-box.center { text-align: center; margin-left: auto; margin-right: auto; }
.cm-tit-box.center .cm-tit-txt { margin-left: auto; margin-right: auto; }

.cm-tit {
  font-size: 46px; font-weight: 700; line-height: 1.12; color: var(--black);
}
.cm-tit-txt {
  font-size: 18px; color: var(--text-sub); line-height: 1.7; margin-top: 20px;
  }
.nb { white-space: nowrap; }

/* ==========================================================================
   Buttons (공통 cm-btn)  · Samsung풍 8px 라운드
   ========================================================================== */
.cm-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  padding: 15px 30px; font-family: var(--font-body); font-size: 15px; font-weight: 600;
  border-radius: var(--radius-sm); transition: var(--transition); cursor: pointer;
  border: 1px solid transparent; text-decoration: none; white-space: nowrap;
}
.cm-btn svg { width: 18px; height: 18px; }
.cm-btn-primary { background: var(--primary); color: #fff; border-color: var(--primary); }
.cm-btn-primary:hover { background: var(--primary-2); border-color: var(--primary-2); transform: translateY(-2px); }
.cm-btn-outline { background: transparent; color: var(--black); border-color: var(--border); }
.cm-btn-outline:hover { border-color: var(--primary); color: var(--primary); }
/* 다크 섹션용 outline */
.sec--dark .cm-btn-outline,
.cm-btn-outline.on-dark { color: var(--d-text); border-color: var(--d-line); }
.sec--dark .cm-btn-outline:hover,
.cm-btn-outline.on-dark:hover { border-color: var(--primary); color: #fff; }

.cm-btn-more {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--font-title); font-size: 15px; font-weight: 700; color: var(--primary);
  transition: var(--transition);
}
.cm-btn-more::after {
  content: ''; width: 18px; height: 18px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%232E6BFF' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12h14M12 5l7 7-7 7'/%3E%3C/svg%3E") no-repeat center / contain;
  transition: var(--transition);
}
.cm-btn-more:hover::after { transform: translateX(5px); }

/* ==========================================================================
   Modal (공통 cm-modal) — 개인정보/약관
   ========================================================================== */
.cm-modal { display: none; position: fixed; inset: 0; z-index: 10000; align-items: center; justify-content: center; }
.cm-modal.is-active { display: flex; }
.cm-modal-overlay { position: absolute; inset: 0; background: rgba(5, 8, 15, .7); }
.cm-modal-content {
  position: relative; width: 90%; max-width: 780px; max-height: 80vh;
  background: var(--white); border-radius: var(--radius); overflow-y: auto; padding: 44px;
}
.cm-modal-close {
  position: absolute; top: 16px; right: 16px; width: 34px; height: 34px;
  display: flex; align-items: center; justify-content: center; font-size: 24px; color: var(--text-sub); cursor: pointer;
}
.cm-modal-content h3 { font-size: 24px; margin-bottom: 20px; }
.cm-modal-content h4 { font-size: 17px; margin: 24px 0 12px; }
.cm-modal-content p,
.cm-modal-content li { font-size: 15px; line-height: 1.8; color: var(--text-sub); margin-bottom: 10px; }
.cm-modal-content ul { padding-left: 20px; margin-bottom: 12px; }
.cm-modal-content li { list-style: disc; }

/* ==========================================================================
   Utility
   ========================================================================== */
.pc-br { display: block; }
.mo-br { display: none; }

/* ==========================================================================
   Responsive — BP 2개 (1024 / 600)
   ========================================================================== */
@media (max-width: 1024px) {
  :root { --area-padding: 28px; }
  .sec { padding: 84px 0; }
  .cm-tit { font-size: 36px; }
  .cm-tit-txt { font-size: 16px; }
  .cm-tit-box { margin-bottom: 44px; }
}

@media (max-width: 600px) {
  html { font-size: 15px; }
  :root { --header-height: 60px; --area-padding: 18px; }
  .sec { padding: 50px 0; }
  .cm-tit { font-size: 28px; }
  .cm-tit-sub { font-size: 12px; margin-bottom: 12px; }
  .cm-tit-txt { font-size: 15px; margin-top: 14px; }
  .cm-tit-box { margin-bottom: 32px; }
  .cm-btn { padding: 13px 24px; font-size: 14px; width: 100%; }
  .cm-modal-content { padding: 26px; width: 94%; }
  .pc-br { display: none; }
  .mo-br { display: block; }
}
