/* Nu-Logos 공통 스타일 (2026-11 리뉴얼)
   토큰, 기본 글꼴, 헤더(모바일 메뉴), 푸터, 섹션 배경, 버튼, 마무리 문의 섹션.
   페이지에만 쓰는 규칙은 각 페이지 <head>의 <style>에 둔다. */

:root {
  /* 색 */
  --bg: #F5F7FA;
  --surface: #FFFFFF;
  --tint: #E6EEFA;
  --ink: #0B1B33;
  --body: #3F4B5D;
  --muted: #6A7687;            /* 흰 바탕에서만 쓴다 (#F5F7FA 위에서는 대비 부족) */
  --line: #DCE3EC;
  --line-dashed: #93B0D8;      /* 점선 상자 테두리와 Fail 점선 전용 */
  --accent: #276BBD;
  --accent-hover: #2258A5;
  --blue-500: #3893D8;
  --deep: #050A14;
  --dark-accent: #6DB7F0;
  --dark-body: #DCE3EC;
  --dark-muted: #AEB8C6;
  --dark-nav: #C3CDDA;
  --dark-line: rgba(174, 184, 198, 0.16);
  --signal-gold: #E2CA91;      /* '변경' 배지 전용 */
  --signal-gold-ink: #46310A;
  --signal-rose: #A85960;      /* 문제 카드 ✕ (밝은 바탕) */
  --signal-rose-dark: #D88D84; /* 문제 카드 ✕ (어두운 바탕) */

  /* 그림자·모서리 */
  --shadow-card: 0 8px 24px rgba(11, 27, 51, 0.08);
  --shadow-glow: 0 0 24px rgba(56, 147, 216, 0.45);   /* 카드·노드 상자 발광 */
  --shadow-node-glow: 0 0 0 5px rgba(56, 147, 216, 0.18), 0 0 18px rgba(56, 147, 216, 0.55); /* 타임라인 점 발광 */
  --shadow-node-glow-lg: 0 0 0 6px rgba(56, 147, 216, 0.18), 0 0 24px rgba(56, 147, 216, 0.55); /* 홈 히어로 타임라인 마지막 점 */
  --shadow-line-glow: 0 0 10px rgba(56, 147, 216, 0.55);   /* 켜진 타임라인 선 */
  --radius: 8px;
  --radius-pill: 999px;

  /* 레이아웃 */
  --container: 1200px;
  --gutter: clamp(20px, 4vw, 40px);
  --measure: 680px;
  --section-y: clamp(64px, 7vw, 96px);

  /* 글꼴 (Pretendard 300·400·600, /assets/fonts/pretendard/) */
  --font: Pretendard, "Pretendard Fallback", -apple-system, BlinkMacSystemFont, "Apple SD Gothic Neo", "Malgun Gothic", system-ui, sans-serif;
}

/* Pretendard가 내려받아지기 전 잠깐 쓰는 대체 글꼴(맑은 고딕)의 한글 폭을 Pretendard에 맞춘다.
   맑은 고딕 한글은 1em, Pretendard 한글은 0.864em이라 그대로 두면 줄이 더 많이 꺾였다가
   Pretendard로 바뀌는 순간 아래 내용이 당겨진다(국문 홈 레이아웃 이동). 한글 영역에만 적용한다. */
@font-face {
  font-family: "Pretendard Fallback";
  src: local("Malgun Gothic"), local("MalgunGothic"), local("MalgunGothicRegular");
  font-weight: 400;
  size-adjust: 86.43%;
  ascent-override: 110%;
  descent-override: 28%;
  line-gap-override: 0%;
  unicode-range: U+1100-11FF, U+3130-318F, U+AC00-D7AF;
}
@font-face {
  font-family: "Pretendard Fallback";
  src: local("Malgun Gothic Bold"), local("MalgunGothicBold"), local("MalgunGothic-Bold");
  font-weight: 600;
  size-adjust: 86.43%;
  ascent-override: 110%;
  descent-override: 28%;
  line-gap-override: 0%;
  unicode-range: U+1100-11FF, U+3130-318F, U+AC00-D7AF;
}

/* ---------- 기본 ---------- */

html { background: var(--deep); }
body { margin: 0; background: var(--deep); }
a { color: var(--ink); }
a:hover { color: var(--accent); }

.nl {
  font-family: var(--font);
  color: var(--ink);
  background: var(--bg);
  word-break: keep-all;
  overflow-wrap: break-word;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
.nl h1, .nl h2, .nl h3, .nl p, .nl figure { margin: 0; }
.nl h1, .nl h2 { text-wrap: balance; }
.nl p { text-wrap: pretty; }

/* 키보드 포커스 표시 2px: 링크·메뉴 버튼뿐 아니라 가로로 넘치는 그림 상자(크롬은 키보드로 포커스한다)와 영상에도 */
.nl :focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
.nl a:focus-visible,
.nl summary:focus-visible { border-radius: 2px; }
.nl-dark :focus-visible { outline-color: var(--dark-accent); }

/* 글줄 안의 짧은 링크(푸터 법정 줄·기업 정보 메일): 배치는 그대로 두고 누르는 영역만 높이 44px로 */
.nl-footer__legal a,
.nl-facts a { position: relative; }
.nl-footer__legal a::before,
.nl-facts a::before { content: ""; position: absolute; left: 0; right: 0; top: 50%; height: 44px; margin-top: -22px; }

/* 괄호 병기 바로 뒤 조사가 다음 줄 첫머리로 떨어지지 않게 묶는다 */
.nl-nobr { white-space: nowrap; }

.nl-sr { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }

.nl-link { text-decoration: none; }
.nl-link:hover { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 5px; }
.nl-dk-link:hover { color: #FFFFFF !important; }

/* ---------- 레이아웃·글자 ---------- */

.nl-wrap { max-width: var(--container); margin: 0 auto; padding-left: var(--gutter); padding-right: var(--gutter); box-sizing: border-box; }
.nl-sec { padding-top: var(--section-y); padding-bottom: var(--section-y); }
.nl-surface { background: var(--surface); }

.nl-h2 { font-size: clamp(28px, 3vw, 40px); line-height: 1.3; letter-spacing: -0.015em; font-weight: 600; color: var(--ink); }
.nl-dark .nl-h2 { color: #FFFFFF; }
.nl-h3 { font-size: 20px; line-height: 1.45; font-weight: 600; color: var(--ink); }
.nl-dark .nl-h3 { color: #FFFFFF; }
.nl-body { font-size: 17px; line-height: 1.7; color: var(--body); }
.nl-dark .nl-body { color: var(--dark-body); }
.nl-label { font-size: 13px; line-height: 18px; font-weight: 600; letter-spacing: 0.04em; }

/* 섹션 제목의 강조 단어 (한 제목에 하나) */
.nl-em { color: var(--accent); }
.nl-dark .nl-em { color: var(--dark-accent); }

/* 섹션 제목 아래 리드 문단 */
.nl-lead { font-size: clamp(17px, 1.35vw, 19px); line-height: 1.7; color: var(--body); max-width: var(--measure); }
.nl-dark .nl-lead { color: var(--dark-body); }

/* 섹션 머리: 왼쪽 제목 + 오른쪽 설명 문단 (좁은 화면에서는 한 열) */
.nl-split { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(400px, 100%), 1fr)); gap: 32px clamp(40px, 6vw, 96px); align-items: start; }
.nl-split > p { font-size: 17px; line-height: 1.7; color: var(--body); }

/* 두 열 중 오른쪽 열: 왼쪽 구분선 (좁은 화면에서는 위 구분선) */
.nl-col2 { padding-left: 40px; border-left: 1px solid var(--line); }
.nl-dark .nl-col2 { border-left-color: rgba(174, 184, 198, 0.3); }
@media (max-width: 869px) {
  .nl-col2 { padding-left: 0; border-left: 0; border-top: 1px solid var(--line); margin-top: 28px; }
  .nl-dark .nl-col2 { border-top-color: rgba(174, 184, 198, 0.3); }
}

/* 어두운 배경 사진 섹션(blueprints·datacenter)의 넓은 위아래 여백 */
.nl-sec-lg { padding-top: clamp(72px, 8vw, 120px); padding-bottom: clamp(72px, 8vw, 120px); }

/* '… 자세히 보기 →' 같은 텍스트 링크 */
.nl-more { display: inline-flex; align-items: center; min-height: 44px; font-size: 16px; font-weight: 600; color: var(--accent); text-decoration: none; }
.nl-more:hover { color: var(--accent-hover); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 5px; }
.nl-dark .nl-more { color: var(--dark-accent); }
.nl-dark .nl-more:hover { color: #FFFFFF; }

/* 활용 사례 질문 목록: 기본은 흰 바탕(/use-cases/), 어두운 바탕은 .nl-dark 변형(홈 blueprints 섹션) */
.nl-uc-list { margin-top: 48px; border-bottom: 1px solid var(--line); }
.nl-uc-list > div { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 8px 40px; padding: 24px 0; border-top: 1px solid var(--line); }
.nl-uc-list p { flex: 1 1 520px; font-size: clamp(19px, 1.9vw, 24px); font-weight: 400; line-height: 1.45; letter-spacing: -0.01em; color: var(--ink); }
.nl-uc-list span { flex: none; font-size: 15px; color: var(--muted); } /* --muted는 흰 바탕에서만 */
.nl-dark .nl-uc-list,
.nl-dark .nl-uc-list > div { border-color: rgba(174, 184, 198, 0.24); }
.nl-dark .nl-uc-list p { color: #FFFFFF; }
.nl-dark .nl-uc-list span { color: var(--dark-muted); }

/* ---------- 헤더 ---------- */

.nl-header { position: relative; z-index: 10; border-bottom: 1px solid rgba(255, 255, 255, 0.1); color: #FFFFFF; }
.nl-header__in {
  max-width: var(--container); margin: 0 auto; padding: 0 var(--gutter); box-sizing: border-box;
  min-height: 72px; display: flex; align-items: center; justify-content: space-between; gap: 8px 32px;
}
.nl-logo { display: inline-flex; align-items: center; min-height: 44px; flex: none; }
.nl-logo img { display: block; height: 44px; width: auto; }

.nl-nav { display: flex; flex-wrap: wrap; align-items: center; gap: 0 28px; font-size: 15px; }
.nl-nav a { position: relative; display: inline-flex; align-items: center; min-height: 44px; color: var(--dark-nav); text-decoration: none; }
.nl-nav a::before { content: ""; position: absolute; top: 0; bottom: 0; left: 50%; width: max(100%, 44px); transform: translateX(-50%); } /* '기술'처럼 짧은 메뉴도 누르는 너비 44px(배치는 그대로, 메뉴 사이 28px 안에서) */
.nl-nav a:hover { color: #FFFFFF; text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 6px; }
.nl-nav a[aria-current="page"] { color: #FFFFFF; text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 6px; }

.nl-header__end { display: flex; align-items: center; gap: 12px; flex: none; }

/* 언어 전환: 현재 언어는 흰 칩, 다른 언어는 같은 페이지의 다른 언어 주소 */
.nl-lang { display: flex; align-items: center; gap: 2px; padding: 3px; border: 1px solid rgba(255, 255, 255, 0.28); border-radius: 4px; }
.nl-lang > * {
  position: relative; display: inline-flex; align-items: center; justify-content: center;
  min-width: 44px; min-height: 36px; padding: 0 10px; box-sizing: border-box; border-radius: 3px;
  font-size: 13px; font-weight: 600; letter-spacing: 0.02em; color: var(--dark-nav); text-decoration: none;
}
.nl-lang > a::before { content: ""; position: absolute; top: -4px; bottom: -4px; left: 0; right: 0; } /* 누르는 영역 44px */
.nl-lang > a:hover { color: #FFFFFF; }
.nl-lang > [aria-current] { background: #FFFFFF; color: var(--ink); }

/* 모바일 메뉴: JS 없이 <details>. 넓은 화면에서는 숨기고 .nl-nav--full을 항상 펼쳐 보인다. */
.nl-menu { display: none; }
.nl-menu > summary {
  list-style: none; display: inline-flex; align-items: center; gap: 8px;
  min-height: 44px; min-width: 44px; padding: 0 12px; box-sizing: border-box;
  border: 1px solid rgba(255, 255, 255, 0.28); border-radius: 4px;
  color: #FFFFFF; font-size: 15px; font-weight: 600; cursor: pointer; user-select: none;
}
.nl-menu > summary::-webkit-details-marker { display: none; }
.nl-menu__icon { position: relative; display: block; width: 18px; height: 12px; }
.nl-menu__icon::before,
.nl-menu__icon::after { content: ""; position: absolute; left: 0; right: 0; height: 2px; background: currentColor; }
.nl-menu__icon::before { top: 0; box-shadow: 0 5px 0 currentColor; }
.nl-menu__icon::after { bottom: 0; }
.nl-menu[open] .nl-menu__icon::before { top: 5px; box-shadow: none; transform: rotate(45deg); }
.nl-menu[open] .nl-menu__icon::after { bottom: 5px; transform: rotate(-45deg); }
.nl-menu__panel {
  position: absolute; top: 100%; left: 0; right: 0; z-index: 10;
  display: flex; flex-direction: column; padding: 4px var(--gutter) 12px;
  background: var(--deep); border-bottom: 1px solid var(--dark-line);
  box-shadow: 0 16px 32px rgba(5, 10, 20, 0.5);
}
.nl-menu__panel a {
  display: flex; align-items: center; min-height: 48px; font-size: 16px;
  color: var(--dark-nav); text-decoration: none; border-top: 1px solid var(--dark-line);
}
.nl-menu__panel a:first-child { border-top: 0; }
.nl-menu__panel a:hover { color: #FFFFFF; }
.nl-menu__panel a[aria-current="page"] { color: #FFFFFF; font-weight: 600; }

@media (max-width: 899px) {
  .nl-nav--full { display: none; }
  .nl-menu { display: block; }
}

/* 좁은 화면(360px 안팎·320px)에서 헤더가 넘치지 않게: 간격을 줄이고, 더 좁으면 메뉴 버튼은 아이콘만(글자는 화면 낭독기용) */
@media (max-width: 379px) {
  .nl-header__in { column-gap: 12px; }
}
@media (max-width: 359px) {
  .nl-menu > summary { width: 44px; padding: 0; justify-content: center; }
  .nl-menu__label { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
}

/* ---------- 섹션 배경 ---------- */

.nl-bg-grid { background: var(--bg) url(/assets/img/bg-grid.webp) center / cover no-repeat; }

.nl-bg-blueprints,
.nl-bg-datacenter,
.nl-bg-rays { position: relative; overflow: hidden; isolation: isolate; color: #FFFFFF; }
.nl-bg-blueprints::before,
.nl-bg-datacenter::before,
.nl-bg-rays::before { content: ""; position: absolute; top: 0; right: 0; bottom: 0; left: 0; z-index: -1; pointer-events: none; }

.nl-bg-blueprints { background: var(--deep) url(/assets/img/bg-blueprints.webp) right center / cover no-repeat; }
.nl-bg-blueprints::before {
  background:
    linear-gradient(180deg, rgba(5, 10, 20, 0.7) 0%, rgba(5, 10, 20, 0) 28%, rgba(5, 10, 20, 0) 72%, rgba(5, 10, 20, 0.7) 100%),
    linear-gradient(90deg, rgba(5, 10, 20, 0.97) 0%, rgba(5, 10, 20, 0.9) 50%, rgba(11, 27, 51, 0.74) 100%);
}

.nl-bg-datacenter { background: var(--deep) url(/assets/img/bg-datacenter.webp) center / cover no-repeat; }
.nl-bg-datacenter::before { background: linear-gradient(180deg, rgba(5, 10, 20, 0.95) 0%, rgba(5, 10, 20, 0.8) 45%, rgba(5, 10, 20, 0.95) 100%); }

.nl-bg-rays { background: var(--ink) url(/assets/img/bg-rays.webp) center bottom / cover no-repeat; }
.nl-bg-rays::before { background: linear-gradient(180deg, rgba(11, 27, 51, 0.96) 0%, rgba(11, 27, 51, 0.82) 60%, rgba(11, 27, 51, 0.35) 100%); }

/* 서브 페이지 히어로: 이미지 없이 오른쪽 위 원형 빛 + 32px 격자선 */
.nl-subhero {
  background-color: var(--deep);
  background-image:
    radial-gradient(ellipse 60% 90% at 85% 0%, rgba(56, 147, 216, 0.22), rgba(56, 147, 216, 0) 70%),
    linear-gradient(rgba(255, 255, 255, 0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.045) 1px, transparent 1px);
  background-size: 100% 100%, 32px 32px, 32px 32px;
  background-position: center, center top, center top;
  color: #FFFFFF;
}
.nl-subhero__in { max-width: var(--container); margin: 0 auto; padding: clamp(56px, 6vw, 96px) var(--gutter) clamp(56px, 6vw, 88px); box-sizing: border-box; }
.nl-subhero__text { display: flex; flex-direction: column; gap: 24px; max-width: 880px; }
.nl-subhero h1 { display: flex; flex-direction: column; gap: 16px; font-weight: 600; }
.nl-subhero__en { font-size: clamp(40px, 4.4vw, 56px); line-height: 1.1; letter-spacing: -0.02em; color: #FFFFFF; }
.nl-subhero__sub { font-size: clamp(20px, 1.8vw, 24px); line-height: 1.5; letter-spacing: -0.01em; font-weight: 400; color: var(--dark-body); }
.nl-subhero__lead { font-size: clamp(17px, 1.35vw, 19px); line-height: 1.7; color: var(--dark-muted); max-width: var(--measure); }

/* ---------- 버튼 ---------- */

.nl-cta,
.nl-btn-ghost,
.nl-btn-quiet {
  display: inline-flex; align-items: center; justify-content: center; box-sizing: border-box;
  border-radius: var(--radius-pill); text-decoration: none; font-weight: 600;
  transition: background-color 0.2s ease, transform 0.2s ease;
}
/* 단일 CTA '파일럿 프로젝트 문의'에만 쓴다 */
.nl-cta { min-height: 52px; padding: 0 28px; background: var(--accent); color: #FFFFFF; font-size: 16px; }
.nl-cta:hover { background: var(--accent-hover); color: #FFFFFF; transform: translateY(-1px); }
.nl-btn-ghost { min-height: 52px; padding: 0 28px; background: transparent; color: #FFFFFF; font-size: 16px; border: 1px solid rgba(255, 255, 255, 0.4); }
.nl-btn-ghost:hover { background: rgba(255, 255, 255, 0.08); color: #FFFFFF; }
.nl-btn-quiet { min-height: 48px; padding: 0 24px; background: transparent; color: var(--accent); font-size: 15px; border: 1px solid var(--accent); }
.nl-btn-quiet:hover { background: var(--tint); color: var(--accent); }

/* ---------- 마무리 문의 섹션 (rays 배경과 함께 쓴다) ---------- */

.nl-closing__in {
  max-width: var(--container); margin: 0 auto; padding: clamp(96px, 10vw, 144px) var(--gutter); box-sizing: border-box;
  display: flex; flex-direction: column; align-items: center; text-align: center; gap: 24px;
}
.nl-closing h2 { font-size: clamp(32px, 4vw, 52px); line-height: 1.22; letter-spacing: -0.02em; font-weight: 600; max-width: 16em; color: #FFFFFF; }
.nl-closing p { font-size: clamp(17px, 1.35vw, 19px); line-height: 1.7; color: var(--dark-body); max-width: 36em; }
.nl-closing__actions { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 16px 24px; padding-top: 16px; }
.nl-closing__mail { font-size: 16px; color: var(--dark-body); }

/* ---------- 푸터 ---------- */

.nl-footer { background: var(--deep); border-top: 1px solid var(--dark-line); color: var(--dark-muted); }
.nl-footer__in { max-width: var(--container); margin: 0 auto; padding: 64px var(--gutter) 40px; box-sizing: border-box; display: flex; flex-direction: column; gap: 48px; }
.nl-footer__grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(180px, 100%), 1fr)); gap: 40px 48px; align-items: start; }
.nl-footer__brand { display: flex; flex-direction: column; align-items: flex-start; gap: 16px; }
.nl-footer__brand img { display: block; height: 36px; width: auto; }
.nl-footer__brand p { font-size: 15px; line-height: 1.6; color: var(--dark-muted); }
.nl-footer__col { display: flex; flex-direction: column; align-items: flex-start; }
.nl .nl-footer__h { margin-bottom: 8px; font-size: 13px; line-height: 18px; font-weight: 600; letter-spacing: 0.04em; color: #FFFFFF; }
.nl-footer__col a { display: inline-flex; align-self: stretch; align-items: center; min-height: 44px; font-size: 15px; color: var(--dark-muted); text-decoration: none; } /* 열 너비만큼 눌리게 */
.nl-footer__col a:hover { color: #FFFFFF; text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 5px; }
.nl-footer__col a[aria-current="page"] { color: #FFFFFF; }
.nl-footer__col .nl-footer__privacy { font-weight: 600; color: #FFFFFF; } /* 개인정보 처리방침은 항상 눈에 띄게 */
.nl-footer__legal { border-top: 1px solid var(--dark-line); padding-top: 24px; display: flex; flex-direction: column; gap: 8px; font-size: 13px; line-height: 1.6; color: var(--dark-muted); }
.nl-footer__legal p { display: flex; flex-wrap: wrap; gap: 4px 20px; }
.nl-footer__legal a { color: var(--dark-muted); }
.nl-footer__legal a:hover { color: #FFFFFF; }

/* ---------- 화면보다 넓은 그림(이미지) ---------- */
/* figure.nl-hfig 안의 .nl-hscroll만 가로로 민다. 페이지 <style>에서 그림이 넘치는 폭에만 --hfade(흐림 폭)를 주면
   오른쪽 끝이 흐려져 옆에 더 있음을 알리고, 끝까지 밀면 같은 폭의 빈칸이 흐린 띠 아래로 와서 그림 끝이 다 보인다.
   흰 패널처럼 안쪽 여백이 있는 그림은 --hfade-inset에 그 여백을 준다. */
.nl-hfig { position: relative; }
.nl-hscroll { display: flex; align-items: flex-start; overflow-x: auto; }
.nl-hscroll > img, .nl-hscroll > svg { flex: none; margin-right: var(--hfade, 0px); }
.nl-hfig::after {
  content: ""; position: absolute; top: var(--hfade-inset, 0px); right: var(--hfade-inset, 0px); bottom: var(--hfade-inset, 0px);
  width: var(--hfade, 0px); background: linear-gradient(90deg, transparent, var(--surface)); pointer-events: none;
}

/* ---------- 움직임 줄이기 ---------- */

@media (prefers-reduced-motion: reduce) {
  .nl-cta, .nl-btn-ghost, .nl-btn-quiet { transition: none; }
  .nl-cta:hover { transform: none; }
}
