/* ============================================================
   NODE — shared stylesheet
   (웹폰트는 각 HTML <head>의 <link>로 로드 — @import 직렬화 회피)
   ============================================================ */

:root {
  --ink: #0a0e14;
  --ink-soft: #161c26;
  --ink-card: #11161f;
  --line: rgba(255,255,255,0.10);
  --line-strong: rgba(255,255,255,0.18);
  --paper: #f3f1ea;
  --mute: rgba(243,241,234,0.55);
  --mute-2: rgba(243,241,234,0.50);   /* WCAG AA 대비비 확보 (0.38 → 0.50) */
  --signal: #4ade9a;
  --signal-dim: rgba(74,222,154,0.18);
  --accent: #6b8cff;
  --maxw: 1080px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  background: var(--ink);
  color: var(--paper);
  font-family: 'Noto Sans KR', 'Inter', sans-serif;
  font-weight: 300;
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  /* 한글이 글자 단위로 쪼개지지 않도록 어절(띄어쓰기) 단위로만 줄바꿈.
     단, 컨테이너보다 긴 단어·URL은 넘치지 않게 강제 분리한다. */
  word-break: keep-all;
  overflow-wrap: break-word;
}
a { color: inherit; }

/* 제목은 줄 길이를 고르게, 본문은 마지막 줄 고아 단어를 방지 */
h1, h2, h3, h4, h5, .section-title, .vision-quote, .biz-tag { text-wrap: balance; }
p, .section-body, .lead, li { text-wrap: pretty; }

/* 좁은 화면에서 표가 찌그러지지 않도록 가로 스크롤 처리 */
.table-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 32px; }

/* 키보드 포커스 링 */
:focus-visible { outline: 2px solid var(--signal); outline-offset: 3px; border-radius: 2px; }

/* glow text helper */
.glow {
  background: linear-gradient(120deg, var(--signal), var(--accent));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
@supports not ((background-clip: text) or (-webkit-background-clip: text)) {
  .glow { background: none; color: var(--signal); }
}

/* ---------- NAV ---------- */
nav.site {
  position: fixed; top: 0; left: 0; right: 0; z-index: 50;
  display: flex; align-items: center; justify-content: space-between;
  /* 본문 .wrap(max 1080px)과 좌우 정렬을 맞춘다 */
  padding: 20px max(32px, calc((100% - var(--maxw)) / 2 + 32px));
  backdrop-filter: blur(12px);
  background: rgba(10,14,20,0.6);
  border-bottom: 1px solid var(--line);
}
.brand {
  font-family: 'Archivo', sans-serif; font-weight: 800;
  letter-spacing: 0.22em; font-size: 17px; text-decoration: none;
  display: flex; align-items: center; gap: 13px; color: var(--paper);
}
/* signal dot — radiating node mark */
.brand .sig {
  position: relative; width: 18px; height: 18px; flex-shrink: 0;
  display: inline-flex; align-items: center; justify-content: center;
}
.brand .sig::before, .brand .sig::after {
  content: ""; position: absolute; border-radius: 50%;
  border: 1px solid var(--signal); left: 50%; top: 50%; transform: translate(-50%,-50%);
}
.brand .sig::before { width: 12px; height: 12px; opacity: 0.55; }
.brand .sig::after { width: 18px; height: 18px; opacity: 0.25; }
.brand .sig i {
  width: 7px; height: 7px; border-radius: 50%; background: var(--signal);
  box-shadow: 0 0 10px var(--signal); position: relative; z-index: 1;
}
/* legacy fallback */
.brand .dot {
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--signal);
  box-shadow: 0 0 0 4px var(--signal-dim), 0 0 14px var(--signal);
}
.nav-links { display: flex; gap: 26px; font-size: 12px; letter-spacing: 0.14em; align-items: center; }
.nav-links a {
  color: var(--mute); text-decoration: none; text-transform: uppercase;
  font-family: 'Archivo', sans-serif; font-weight: 500; transition: color .25s;
}
.nav-links a:hover { color: var(--paper); }
.nav-links a.active { color: var(--signal); }
/* Contact 버튼 — .active와 충돌하지 않도록 !important 제거 후 특이도로 해결 */
.nav-links a.nav-cta {
  border: 1px solid var(--line-strong); border-radius: 2px;
  padding: 9px 16px; color: var(--paper);
}
.nav-links a.nav-cta:hover { border-color: var(--signal); }
.nav-links a.nav-cta.active { color: var(--signal); border-color: var(--signal); }

.menu-btn { display: none; background: none; border: 0; color: var(--paper); cursor: pointer; font-size: 22px; line-height: 1; padding: 4px; }

@media (max-width: 760px) {
  /* nav 하단에 자동으로 붙도록 absolute + top:100% (고정 62px 오프셋 제거) */
  .nav-links {
    position: absolute; top: 100%; left: 0; right: 0;
    flex-direction: column; gap: 0;
    background: rgba(10,14,20,0.97); border-bottom: 1px solid var(--line); padding: 8px 0;
    transform: translateY(-130%);
    visibility: hidden;                 /* 닫힘 상태에서 키보드 포커스 차단 */
    transition: transform .35s ease, visibility 0s linear .35s;
  }
  .nav-links.open {
    transform: translateY(0);
    visibility: visible;
    transition: transform .35s ease, visibility 0s;
  }
  .nav-links a { padding: 14px 32px; width: 100%; font-size: 13px; }
  .nav-links a.nav-cta { margin: 8px 32px; width: auto; text-align: center; }
  .menu-btn { display: block; }
}

/* ---------- PAGE HERO (inner pages) ---------- */
.page-hero {
  position: relative; padding: 170px 0 80px;
  border-bottom: 1px solid var(--line); overflow: hidden;
}
.page-hero::after {
  content: ""; position: absolute; inset: 0;
  background: radial-gradient(900px 380px at 80% -10%, var(--signal-dim), transparent 60%);
  pointer-events: none;
}
.page-hero .wrap { position: relative; z-index: 2; }
.eyebrow {
  font-family: 'Archivo', sans-serif; font-weight: 600;
  font-size: 12px; letter-spacing: 0.4em; text-transform: uppercase;
  color: var(--signal); display: flex; align-items: center; gap: 14px; margin-bottom: 26px;
  flex-wrap: wrap;   /* 텍스트가 min-content까지 눌리지 않도록 */
}
.eyebrow::before { content: ""; width: 36px; height: 1px; background: var(--signal); opacity: .6; flex-shrink: 0; }
.page-hero h1 {
  font-family: 'Archivo', sans-serif; font-weight: 800;
  font-size: clamp(40px, 7vw, 82px); line-height: 0.98; letter-spacing: -0.02em; margin-bottom: 22px;
}
/* .lead 색상은 히어로 종류와 무관하게 동일 적용 (home-hero 포함) */
.lead { color: var(--mute); }
.page-hero p.lead { font-size: clamp(16px, 2vw, 20px); max-width: 580px; line-height: 1.65; }

/* ---------- SECTION SHELL ---------- */
section.block { padding: 96px 0; position: relative; }
.label {
  font-family: 'Archivo', sans-serif; font-weight: 600;
  font-size: 12px; letter-spacing: 0.32em; text-transform: uppercase;
  color: var(--signal); margin-bottom: 24px;
}
.section-title {
  font-family: 'Archivo', sans-serif; font-weight: 700;
  font-size: clamp(28px, 5vw, 48px); line-height: 1.06; letter-spacing: -0.01em; margin-bottom: 26px;
}
.section-body { max-width: 620px; color: var(--mute); font-size: 17px; line-height: 1.85; }
.section-body strong { color: var(--paper); font-weight: 500; }
.section-body p + p { margin-top: 18px; }
.divider { height: 1px; background: var(--line); }

/* ---------- BUTTONS ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: 'Archivo', sans-serif; font-weight: 600; font-size: 13px;
  letter-spacing: 0.08em; text-transform: uppercase; text-decoration: none;
  padding: 15px 26px; border-radius: 2px; transition: all .25s; cursor: pointer; border: 1px solid transparent;
}
.btn-primary { background: var(--signal); color: #06140c; }
.btn-primary:hover { box-shadow: 0 8px 30px var(--signal-dim); transform: translateY(-2px); }
.btn-ghost { border-color: var(--line-strong); color: var(--paper); }
.btn-ghost:hover { border-color: var(--signal); color: var(--signal); }

/* ---------- node mark ---------- */
.node-mark {
  width: 11px; height: 11px; border-radius: 50%; background: var(--signal);
  box-shadow: 0 0 0 5px var(--signal-dim);
}
/* signal mark — radiating, for cards/sections */
.sig-mark {
  position: relative; width: 26px; height: 26px;
  display: inline-flex; align-items: center; justify-content: center;
}
.sig-mark::before, .sig-mark::after {
  content: ""; position: absolute; border-radius: 50%; border: 1px solid var(--signal);
  left: 50%; top: 50%; transform: translate(-50%,-50%);
}
.sig-mark::before { width: 17px; height: 17px; opacity: 0.5; }
.sig-mark::after { width: 26px; height: 26px; opacity: 0.22; }
.sig-mark i {
  width: 9px; height: 9px; border-radius: 50%; background: var(--signal);
  box-shadow: 0 0 10px var(--signal);
}

/* ---------- FOOTER ---------- */
footer.site { border-top: 1px solid var(--line); padding: 56px 0 40px; margin-top: 0; }
.foot-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 40px; margin-bottom: 44px; }
@media (max-width: 760px) { .foot-grid { grid-template-columns: 1fr; gap: 28px; } }
.foot-col h5 { font-family:'Archivo',sans-serif; font-size: 12px; letter-spacing: 0.2em; text-transform: uppercase; color: var(--mute-2); margin-bottom: 16px; }
.foot-col a { display: block; color: var(--mute); text-decoration: none; font-size: 14px; padding: 5px 0; transition: color .2s; }
.foot-col a:hover { color: var(--paper); }
.foot-col address { font-style: normal; color: var(--mute); font-size: 14px; line-height: 1.7; padding: 5px 0; }
.foot-about { color: var(--mute); font-size: 14px; line-height: 1.7; max-width: 320px; margin-top: 14px; }
.foot-brands { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 18px; }
.foot-brands span { font-family:'Archivo',sans-serif; font-size: 11px; letter-spacing: 0.1em; color: var(--mute); border: 1px solid var(--line); border-radius: 2px; padding: 5px 10px; }
.foot-brands span b { color: var(--signal); font-weight: 600; }
.foot-bottom { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 14px; padding-top: 28px; border-top: 1px solid var(--line); }
.foot-bottom .meta { font-size: 12px; color: var(--mute-2); letter-spacing: 0.06em; font-family:'Archivo',sans-serif; }

/* ---------- reveal ----------
   기본값은 '보임'. JS가 살아있을 때만 숨겼다가 스크롤로 드러낸다.
   (main.js 로드 실패 시 본문이 통째로 사라지는 것을 방지) */
.reveal { opacity: 1; transform: none; }
.js .reveal { opacity: 0; transform: translateY(26px); transition: opacity .8s ease, transform .8s ease; }
.js .reveal.in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  .js .reveal { opacity: 1; transform: none; transition: none; }
  html { scroll-behavior: auto; }
  nav.site .nav-links { transition: none; }
  .btn-primary:hover { transform: none; }
}
