/* =========================================================
   NANOHWAIN — common styles (shared by every page, KO + EN)
   Design source: Figma "나노화인_en" (PC 1280 / Mobile 360)
   ========================================================= */

/* ---------- Design tokens ---------- */
:root {
  --point-1: #486694;      /* point_color1 */
  --point-2: #10418b;      /* point_color2 */
  --point-dot: #3e5f91;    /* title dot */
  --point-dot-light: #a0c1f4;
  --gray-1: #333333;
  --gray-2: #4f4f4f;
  --gray-3: #828282;
  --gray-4: #bdbdbd;
  --gray-5: #e0e0e0;
  --gray-6: #f2f2f2;
  --card-bg: #e9eef2;
  --footer-bg: #2a2b32;

  --inner: 996px;          /* content width on PC */
  --gnb-h: 72px;

  --font-num: 'Pretendard', 'Noto Sans KR', sans-serif;
}
html[lang="ko"] {
  --font-body: 'Noto Sans KR', sans-serif;
  --font-title: 'Noto Sans KR', sans-serif;
  --track: -0.03em;
}
html[lang="en"] {
  --font-body: 'Inter', sans-serif;
  --font-title: 'Poppins', sans-serif;
  --track: -0.03em;
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-body);
  color: #000;
  background: #fff;
  letter-spacing: var(--track);
  line-height: normal;
  -webkit-font-smoothing: antialiased;
  word-break: keep-all;
  overflow-wrap: break-word;
}
h1, h2, h3, h4, h5, h6, p, ul, ol, dl, dd, figure { margin: 0; padding: 0; }
ul, ol { list-style: none; }
img, svg, video { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
input, textarea, select { font: inherit; letter-spacing: inherit; }
.num { font-family: var(--font-num); }
.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.pc-only { }
.m-only { display: none !important; }

/* ---------- Layout ---------- */
.inner {
  width: var(--inner);
  max-width: calc(100% - 40px);
  margin-left: auto;
  margin-right: auto;
}

/* =========================================================
   Header (GNB)
   ========================================================= */
.gnb {
  position: sticky;
  top: 0;
  z-index: 100;
  height: var(--gnb-h);
  background: #fff;
}
html[lang="ko"] .gnb { border-bottom: 1px solid var(--gray-4); }
.gnb__inner {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.gnb__logo { display: flex; align-items: center; gap: 12px; flex-shrink: 0; }
.gnb__logo-mark { width: 32px; height: 33.679px; }
.gnb__logo-text-ko { width: 112px; height: 19px; }
.gnb__logo-text-en {
  font-family: 'Poppins', sans-serif;
  font-weight: 800;
  font-size: 20px;
  letter-spacing: -0.6px;
  color: #000;
}
.gnb__right { display: flex; align-items: center; height: 100%; }
html[lang="ko"] .gnb__right { gap: 60px; }
html[lang="en"] .gnb__right { gap: 32px; }
.gnb__menu { display: flex; align-items: center; height: 100%; gap: inherit; }
.gnb__item { position: relative; height: 100%; display: flex; align-items: center; }
.gnb__link {
  display: flex; align-items: center; height: 100%;
  white-space: nowrap;
  transition: color .2s;
}
html[lang="ko"] .gnb__link { font-family: 'Noto Sans KR', sans-serif; font-weight: 500; font-size: 16px; letter-spacing: -0.48px; }
html[lang="en"] .gnb__link { font-family: 'Poppins', sans-serif; font-weight: 500; font-size: 17px; letter-spacing: -0.51px; }
.gnb__item.is-current > .gnb__link,
.gnb__item:hover > .gnb__link,
.gnb__item:focus-within > .gnb__link { color: var(--point-1); }

/* 2depth dropdown */
.gnb__sub {
  position: absolute;
  top: 100%;
  left: 50%;
  width: 132px;
  transform: translate(-50%, -6px);
  background: #fff;
  box-shadow: 0 30px 25px rgba(0, 0, 0, 0.8);
  display: flex;
  flex-direction: column;
  align-items: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity .2s, transform .2s, visibility .2s;
}
html[lang="ko"] .gnb .gnb__sub { margin-top: 1px; }
.gnb__item:hover > .gnb__sub,
.gnb__item:focus-within > .gnb__sub {
  opacity: 1;
  visibility: visible;
  transform: translate(-50%, 0);
}
.gnb__sub a {
  display: block;
  width: 120px;
  padding: 18px 10px;
  text-align: center;
  font-size: 14px;
  letter-spacing: -0.42px;
  color: rgba(0, 0, 0, 0.5);
  transition: color .2s;
}
html[lang="ko"] .gnb__sub a { font-family: 'Noto Sans KR', sans-serif; font-weight: 500; }
html[lang="en"] .gnb__sub a { font-family: 'Poppins', sans-serif; font-weight: 500; }
.gnb__sub a:hover,
.gnb__sub a.is-current { color: var(--point-1); font-weight: 600; }
html[lang="ko"] .gnb__sub a:hover,
html[lang="ko"] .gnb__sub a.is-current { font-weight: 700; }

/* language button */
.btn-lang {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 4px 12px;
  border-radius: 99px;
  font-family: 'Poppins', sans-serif;
  font-weight: 500;
  font-size: 16px;
  letter-spacing: -0.48px;
  color: #fff;
  white-space: nowrap;
  transition: opacity .2s;
}
.btn-lang:hover { opacity: .85; }
.btn-lang img { width: 10px; height: 6.875px; }
.btn-lang--ko { background: var(--gray-2); }   /* "KOR" (shown on EN pages) */
.btn-lang--en { background: var(--gray-4); }   /* "ENG" (shown on KO pages) */

/* hamburger (mobile only) */
.gnb__burger { display: none; width: 24px; height: 32px; }
.gnb__burger img { width: 24px; height: 32px; }
.gnb__burger .icon-close { display: none; }

/* mobile full menu */
.m-menu { display: none; }

/* =========================================================
   Footer
   ========================================================= */
.footer {
  background: var(--footer-bg);
  padding: 75px 55px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 32px;
  overflow: hidden;
}
.footer__logo { display: flex; align-items: center; gap: 12px; flex-shrink: 0; }
.footer__logo-mark { width: 32px; height: 33.679px; }
.footer__logo-text-ko { width: 112px; height: 19px; }
.footer__logo-text-en {
  font-family: 'Poppins', sans-serif;
  font-weight: 800;
  font-size: 20px;
  letter-spacing: -0.6px;
  color: rgba(255, 255, 255, 0.7);
}
.footer__logo-text-m { display: none; }
.footer__divider { align-self: stretch; width: 1px; background: var(--gray-2); flex-shrink: 0; }
.footer__info { display: flex; flex-direction: column; align-items: flex-start; gap: 16px; }
.footer__cont { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.footer__cont li { display: flex; gap: 8px; font-size: 16px; letter-spacing: -0.48px; white-space: nowrap; }
.footer__cont li + li::before {
  content: '';
  width: 1px; height: 16px;
  background: var(--gray-2);
  align-self: center;
  margin-right: 4px;
}
.footer__cont dt, .footer__cont b { font-weight: 600; color: var(--gray-4); }
.footer__cont span, .footer__cont a { font-weight: 400; color: var(--gray-3); }
.footer__copy { font-size: 16px; letter-spacing: -0.48px; color: var(--gray-3); }
html[lang="ko"] .footer__info { font-family: var(--font-num); }
html[lang="en"] .footer__info { font-family: 'Inter', sans-serif; }

/* =========================================================
   Shared components
   ========================================================= */

/* Section title: big title + square dot + sub copy */
.sec-title {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  text-align: center;
}
.sec-title__h {
  display: flex;
  align-items: flex-start;
  justify-content: center;
  gap: 4px;
  font-family: var(--font-title);
  font-weight: 700;
  font-size: 40px;
  color: #000;
  white-space: nowrap;
}
html[lang="ko"] .sec-title__h { letter-spacing: -1.2px; }
html[lang="en"] .sec-title__h { letter-spacing: -0.68px; }
.sec-title__h::after {
  content: '';
  width: 8px; height: 8px;
  flex-shrink: 0;
  background: var(--point-dot);
}
.sec-title__desc { font-size: 18px; letter-spacing: -0.54px; }
html[lang="ko"] .sec-title__desc { font-weight: 700; color: rgba(0, 0, 0, 0.6); }
html[lang="en"] .sec-title__desc { font-weight: 500; color: rgba(0, 0, 0, 0.4); text-transform: capitalize; }
.sec-title.sec-title--light .sec-title__h { color: #fff; }
.sec-title.sec-title--light .sec-title__h::after { background: var(--point-dot-light); }
html .sec-title.sec-title--light .sec-title__desc { color: var(--gray-6); }

/* "more" pill button */
.btn-more {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 12px 20px 12px 32px;
  border: 2px solid rgba(62, 95, 145, 0.5);
  border-radius: 99px;
  font-family: 'Noto Sans KR', sans-serif;
  font-weight: 700;
  font-size: 18px;
  letter-spacing: -0.54px;
  color: #000;
  transition: background-color .2s, border-color .2s;
}
.btn-more img { width: 20px; height: 20px; transition: transform .2s; }
.btn-more:hover { background: rgba(62, 95, 145, 0.08); border-color: rgba(62, 95, 145, 0.8); }
.btn-more:hover img { transform: translateX(3px); }

/* Sub-page hero banner + tabs */
.sub-hero {
  position: relative;
  height: 380px;
  overflow: hidden;
  background: #fff;
}
.sub-hero__bg {
  position: absolute;
  left: 0; right: 0; top: 0;
  height: 494px;
  background-position: center;
  background-size: cover;
  background-repeat: no-repeat;
}
.sub-hero::after {           /* 30% black overlay */
  content: '';
  position: absolute; inset: 0;
  background: rgba(0, 0, 0, 0.3);
  pointer-events: none;
}
.sub-hero__title {
  position: absolute;
  z-index: 1;
  left: 50%;
  top: 122px;
  transform: translateX(-50%);
  font-family: var(--font-title);
  font-weight: 700;
  font-size: 40px;
  color: var(--gray-6);
  text-align: center;
  white-space: nowrap;
}
html[lang="ko"] .sub-hero__title { letter-spacing: -1.2px; }
html[lang="en"] .sub-hero__title { letter-spacing: -0.68px; }
.sub-tabs {
  position: absolute;
  z-index: 2;
  left: 0; right: 0; bottom: 0;
  height: 60px;
  display: flex;
}
.sub-tab {
  flex: 1 1 0;
  min-width: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 10px;
  background: rgba(0, 0, 0, 0.6);
  color: #fff;
  font-weight: 500;
  font-size: 16px;
  letter-spacing: -0.48px;
  text-align: center;
  transition: background-color .2s;
}
.sub-tab + .sub-tab { border-left: 1px solid rgba(255, 255, 255, 0.3); }
.sub-tab.is-active + .sub-tab { border-left: 0; }
.sub-tab:hover { background: rgba(0, 0, 0, 0.75); }
.sub-tab.is-active { background: #fff; color: #000; border-left: 0; }
html[lang="ko"] .sub-tab.is-active { font-size: 17px; letter-spacing: -0.51px; }

/* Sub-page content wrapper */
.sub-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 80px;
  padding: 120px 0;
}
/* Sub-page heading (34px, highlighted company name) */
.sub-heading {
  font-family: var(--font-title);
  font-weight: 700;
  font-size: 34px;
  text-align: center;
  color: #000;
}
html[lang="ko"] .sub-heading { letter-spacing: -1.02px; }
html[lang="en"] .sub-heading { letter-spacing: -0.578px; text-transform: capitalize; }
.sub-heading em { font-style: normal; color: var(--point-2); }

/* =========================================================
   Tablet (header switches to hamburger)
   ========================================================= */
@media (max-width: 1024px) {
  :root { --gnb-h: 60px; }
  .gnb__inner { max-width: 100%; padding: 0 16px; width: 100%; }
  html[lang="ko"] .gnb { border-bottom: 0; }
  .gnb__logo { gap: 4px; }
  .gnb__logo-mark { width: 16px; height: 16.84px; }
  .gnb__logo-text-ko { width: 89.6px; height: 15.2px; }
  .gnb__logo-text-en { font-size: 16px; letter-spacing: -0.48px; }
  .gnb__right { display: none; }
  .gnb__burger { display: block; }

  .m-menu {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    position: fixed;
    z-index: 99;
    left: 0; right: 0;
    top: var(--gnb-h);
    bottom: 0;
    background: #fff;
    overflow-y: auto;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-8px);
    transition: opacity .2s, transform .2s, visibility .2s;
  }
  body.menu-open { overflow: hidden; }
  body.menu-open .m-menu { opacity: 1; visibility: visible; transform: none; }
  body.menu-open .gnb__burger .icon-open { display: none; }
  body.menu-open .gnb__burger .icon-close { display: block; }
  .m-menu__list a {
    display: block;
    padding: 20px 16px;
    border-bottom: 1px solid var(--gray-5);
    font-weight: 700;
    font-size: 20px;
    letter-spacing: -0.6px;
    color: #000;
  }
  html[lang="en"] .m-menu__list a { font-family: 'Poppins', sans-serif; font-weight: 600; }
  .m-menu__list a.is-current { color: var(--point-1); }
  .m-menu__lang {
    display: flex;
    justify-content: center;
    gap: 10px;
    padding: 24px 16px;
    background: var(--gray-6);
  }
  .m-menu__lang .btn-lang { font-size: 14px; letter-spacing: -0.42px; }
  .m-menu__lang .btn-lang.is-current { background: var(--gray-2); }
  .m-menu__lang .btn-lang:not(.is-current) { background: var(--gray-4); }
}

/* =========================================================
   Mobile (360 design)
   ========================================================= */
@media (max-width: 768px) {
  .pc-only { display: none !important; }
  .m-only { display: revert !important; }
  .inner { max-width: calc(100% - 32px); }

  /* footer */
  .footer {
    flex-direction: column;
    align-items: flex-start;
    justify-content: flex-start;
    gap: 20px;
    padding: 60px 16px;
  }
  .footer__logo { gap: 8px; }
  .footer__logo-mark { width: 16px; height: 16.84px; }
  .footer__logo-text-ko, .footer__logo-text-en { display: none; }
  .footer__logo-text-m {
    display: block;
    font-family: 'Noto Sans KR', sans-serif;
    font-weight: 700;
    font-size: 14px;
    letter-spacing: -0.42px;
    color: var(--gray-4);
  }
  .footer__divider { display: none; }
  .footer__info { gap: 20px; }
  .footer__cont { flex-direction: column; align-items: flex-start; gap: 8px; }
  .footer__cont li { font-size: 14px; letter-spacing: -0.42px; }
  .footer__cont li + li::before { display: none; }
  .footer__copy { font-size: 12px; letter-spacing: -0.36px; }

  /* section title */
  .sec-title { gap: 12px; }
  .sec-title__h { font-size: 20px; }
  html[lang="ko"] .sec-title__h, html[lang="en"] .sec-title__h { letter-spacing: -0.6px; }
  .sec-title__h::after { width: 4px; height: 4px; }
  .sec-title__desc { font-size: 12px; letter-spacing: -0.36px; }

  .btn-more {
    gap: 10px;
    padding: 8px 16px;
    border-width: 1px;
    font-weight: 500;
    font-size: 12px;
    letter-spacing: -0.36px;
  }
  .btn-more img { width: 12px; height: 12px; }

  /* sub hero */
  .sub-hero { height: 200px; }
  .sub-hero__bg { height: 100%; }
  .sub-hero__title { top: 65.5px; font-size: 30px; }
  html[lang="ko"] .sub-hero__title, html[lang="en"] .sub-hero__title { letter-spacing: -0.9px; }
  .sub-tabs { height: 48px; }
  .sub-tab { padding: 4px; font-size: 14px; letter-spacing: -0.42px; background: rgba(0, 0, 0, 0.5); }
  html[lang="ko"] .sub-tab.is-active { font-size: 14px; letter-spacing: -0.42px; }

  .sub-content { gap: 40px; padding: 80px 0; }
  .sub-heading { font-size: 20px; }
  html[lang="ko"] .sub-heading, html[lang="en"] .sub-heading { letter-spacing: -0.6px; }
  .sub-heading em { color: var(--point-1); }
}
