/* ==========================================================================
   TAREXIS — base.css
   4개 페이지(index / notice / ko/index / ko/notice) 전부가 사용하는 공통 레이어.
   디자인 토큰, 리셋, nav, 언어 전환, 버튼, footer, 공통 섹션 헤더 요소.
   여기를 고치면 4개 페이지에 동시 반영된다.
   ========================================================================== */

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --navy:    #07091E;
  --dark:    #0C1030;
  --mid:     #111540;
  --accent:  #1E6AFF;
  --blue2:   #3B82F6;
  --teal:    #0ABFBC;
  --white:   #FFFFFF;
  --offwhite:#EEF2FF;
  --muted:   #94A3B8;
  --border:  rgba(255,255,255,0.07);
}

html { scroll-behavior: smooth; }

body {
  /* 한글 폰트를 스택에 포함 — 영문 페이지에서도 동일 스택을 쓴다 */
  font-family: 'Segoe UI', system-ui, -apple-system, 'Apple SD Gothic Neo', 'Malgun Gothic', sans-serif;
  background: var(--navy);
  color: var(--white);
  line-height: 1.7;
  overflow-x: hidden;
}

a { text-decoration: none; color: inherit; }

/* ── NAV ── */
nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  display: flex; align-items: center; justify-content: space-between;
  padding: 16px 60px;
  background: rgba(7, 9, 30, 0.88);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
}

.nav-logo { display: flex; align-items: center; gap: 14px; }
.nav-logo a { display: flex; align-items: center; gap: 14px; }

/* CI 이미지 — 흰 배경 컨테이너 */
.nav-ci {
  background: #fff;
  border-radius: 10px;
  padding: 5px 10px;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 2px 14px rgba(0,0,0,0.3);
}

.nav-ci img { height: 40px; width: auto; }

.nav-logo-text { display: none; /* CI 이미지에 TAREXIS 텍스트 포함 */ }

.nav-links { display: flex; gap: 32px; list-style: none; }

.nav-links a {
  font-size: 0.82rem; font-weight: 500; letter-spacing: 1px;
  text-transform: uppercase; color: var(--muted); transition: color 0.2s;
}
.nav-links a:hover { color: var(--white); }
.nav-links a.active { color: var(--white); }

/* ── NAV 우측 그룹 (언어 전환 + CTA) ──
   .nav-links 는 600px 이하에서 숨기지만 이 그룹은 항상 보인다. */
.nav-right { display: flex; align-items: center; gap: 16px; }

.lang-switch {
  display: flex; align-items: center;
  border: 1px solid var(--border); border-radius: 100px;
  background: rgba(255,255,255,0.04);
  overflow: hidden; flex-shrink: 0;
}

.lang-switch a {
  padding: 6px 14px;
  font-size: 0.72rem; font-weight: 700; letter-spacing: 1px;
  color: var(--muted); transition: background 0.2s, color 0.2s;
}
.lang-switch a:hover { color: var(--white); }
.lang-switch a.active {
  background: linear-gradient(135deg, var(--accent), var(--teal));
  color: #fff;
}

/* ── BUTTONS ── */
.btn {
  padding: 11px 28px; border-radius: 8px; font-size: 0.85rem;
  font-weight: 600; letter-spacing: 0.5px; cursor: pointer; transition: all 0.2s;
  display: inline-block; white-space: nowrap;
}
.btn-primary {
  background: linear-gradient(135deg, var(--accent), var(--teal));
  color: white; border: none;
}
.btn-primary:hover { opacity: 0.88; transform: translateY(-2px); box-shadow: 0 8px 28px rgba(30,106,255,0.4); }
.btn-outline {
  background: transparent; color: var(--offwhite);
  border: 1px solid rgba(255,255,255,0.22);
}
.btn-outline:hover { border-color: var(--teal); color: var(--teal); transform: translateY(-2px); }

/* ── 섹션 헤더 공통 요소 ── */
.section-label {
  font-size: 0.72rem; letter-spacing: 3px; text-transform: uppercase;
  color: var(--teal); margin-bottom: 10px;
}

.divider {
  width: 48px; height: 3px;
  background: linear-gradient(90deg, var(--accent), var(--teal));
  border-radius: 2px; margin-bottom: 20px;
}

/* ── FOOTER ── */
footer {
  background: #03040F; padding: 34px 60px;
  border-top: 1px solid var(--border);
  display: flex; align-items: center; justify-content: space-between;
  flex-wrap: wrap; gap: 16px;
}

.footer-left { display: flex; align-items: center; gap: 14px; }

.footer-ci {
  background: #fff; border-radius: 8px; padding: 5px 10px;
  display: flex; align-items: center;
  box-shadow: 0 2px 10px rgba(0,0,0,0.25);
}
.footer-ci img { height: 36px; width: auto; }
.footer-logo-text {
  font-size: 1.1rem; font-weight: 900; letter-spacing: 3px;
  background: linear-gradient(90deg,#fff 0%,var(--teal) 100%);
  -webkit-background-clip:text; -webkit-text-fill-color:transparent;
}
.footer-sub { font-size: 0.76rem; color: var(--muted); margin-top: 3px; }
.footer-right p { font-size: 0.74rem; color: #3B4A65; text-align: right; }

/* ── RESPONSIVE (공통 chrome 만) ── */
@media (max-width: 980px) {
  nav { padding: 14px 18px; }
  /* 언어 전환 버튼이 추가되면서 nav 가 좁아졌다.
     영문 메뉴(ABOUT/PLATFORM/PIPELINE...)가 국문보다 길어 태블릿 폭에서
     CTA 가 밀려나므로 간격·자간을 함께 줄인다. */
  .nav-links { gap: 12px; }
  .nav-links a { font-size: 0.74rem; letter-spacing: 0.4px; }
  .nav-right { gap: 10px; }
  .nav-right .btn { padding: 10px 16px; font-size: 0.8rem; }
  .nav-ci img { height: 32px; }
}

/* 영문 메뉴가 길어 이 폭 아래로는 메뉴를 접는다.
   접어도 로고 · 언어전환 · CTA 는 계속 보인다. */
@media (max-width: 700px) {
  .nav-links { display: none; }
}

@media (max-width: 600px) {
  .nav-right { gap: 10px; }
  .btn { padding: 9px 18px; font-size: 0.8rem; }
  .lang-switch a { padding: 6px 11px; }
  footer { padding: 24px 18px; text-align: center; }
  .footer-right { text-align: center; }
}
