/* GNBS — Shared Component Styles
   토큰만 참조. 하드코딩 수치 없음.
*/

/* ─────────────────────────────────────────
   Reset
───────────────────────────────────────── */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}
html { scroll-behavior: smooth; }
body {
  font-family: var(--font-sans);
  font-size: var(--t-base);
  line-height: var(--lh-body);
  color: var(--text);
  background: var(--bg);
  overflow-x: hidden;
}
a    { color: inherit; text-decoration: none; }
img  { display: block; max-width: 100%; }
button { background: none; border: none; cursor: pointer; font: inherit; color: inherit; }
ul, ol { list-style: none; }

/* ─────────────────────────────────────────
   Section Layout
───────────────────────────────────────── */
.sec {
  padding: var(--sec-v) var(--sec-h);
}
.sec--alt  { background: var(--bg-alt); }
.sec--dark {
  background: var(--bg-inv);
  color: var(--text-inv);
}

/* ─────────────────────────────────────────
   Section Label
───────────────────────────────────────── */
.sec-label {
  display: inline-flex;
  align-items: center;
  gap: 0.7vw;
  font-size: var(--t-sm);
  font-weight: 500;
  color: var(--text);
  text-transform: uppercase;
  margin-bottom: var(--sp-sm);
}
.sec-label::before {
  content: '';
  display: block;
  width: 1px;
  height: 0.9em;
  background: currentColor;
  flex-shrink: 0;
}
.sec--dark .sec-label { color: var(--c-grey); }

/* ─────────────────────────────────────────
   Buttons
───────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5em;
  padding: 0.55em 1.4em;
  border-radius: var(--r-full);
  font-size: var(--t-sm);
  font-weight: 500;
  cursor: pointer;
  transition: opacity var(--duration-mid), background var(--duration-mid);
  white-space: nowrap;
}
.btn:hover { opacity: 0.72; }

.btn--primary {
  background: var(--c-almost-black);
  color: var(--c-white);
}
.btn--outline {
  background: transparent;
  color: var(--text);
  border: 1px solid var(--text);
}
.btn--outline-inv {
  background: transparent;
  color: var(--text-inv);
  border: 1px solid rgba(255,255,255,0.5);
}
.btn--sm {
  font-size: var(--t-xs);
  padding: 0.4em 1em;
}

/* ─────────────────────────────────────────
   Header / GNB
───────────────────────────────────────── */
.gnbs-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 200;
  height: var(--gnb-h);
  padding: 0 var(--sec-h);
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  align-items: center;
  transition: background var(--duration-slow), backdrop-filter var(--duration-slow), transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}
.gnbs-header--hidden {
  transform: translateY(-110%);
}

.header-logo {
  display: flex;
  align-items: center;
  height: calc(var(--gnb-h) * 0.55);
  cursor: pointer;
  user-select: none;
  opacity: var(--hero-progress, 1);
  transition: opacity var(--duration-fast) ease;
}
.header-nav {
  grid-column: 3;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 2.5vw;
}
.nav-item {
  position: relative;
  font-size: var(--t-sm);
  font-weight: 500;
  cursor: pointer;
  user-select: none;
}
.nav-item:hover { opacity: 0.6; }

.nav-dropdown {
  position: absolute;
  top: 100%;
  left: -1vw;
  padding-top: 0.8vw;
  z-index: 300;
}
.nav-dropdown-inner {
  background: rgba(255,255,255,0.55);
  backdrop-filter: blur(30px);
  -webkit-backdrop-filter: blur(30px);
  border-radius: var(--r-md);
  overflow: hidden;
  width: max-content;
  box-shadow: 0 4px 24px rgba(0,0,0,0.08);
}
.nav-dropdown-item {
  display: block;
  width: 100%;
  padding: 0.7vw 1.2vw;
  font-size: var(--t-sm);
  text-align: left;
  cursor: pointer;
  transition: background var(--duration-fast);
}
.nav-dropdown-item:hover { background: rgba(0,0,0,0.07); }

/* ─────────────────────────────────────────
   Hero v2 — Phase A(로고) + Phase B(영상)
───────────────────────────────────────── */
.hero2-driver {
  position: relative;
}
.hero2-sticky {
  position: sticky;
  top: 0;
  height: 100vh;
  overflow: hidden;
  background: var(--bg);
}
.hero2-video {
  position: absolute;
  left: 0;
  width: 100%;
  border-radius: 0;
  overflow: hidden;
  background: #111;
  z-index: 1;
}
.hero2-video video {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: max(100%, 177.78vh);
  height: max(100%, 56.25vw);
  object-fit: cover;
  display: block;
  pointer-events: none;
}
.hero2-tagline {
  position: absolute;
  left: var(--sec-h);
  font-size: var(--t-h4);
  font-weight: 500;
  line-height: 1.7;
  white-space: pre-line;
  z-index: 10;
  pointer-events: none;
  transition: color var(--duration-mid) ease;
}
.hero2-logo-overlay {
  position: fixed;
  z-index: 100;
  pointer-events: none;
}

/* ─────────────────────────────────────────
   Page Hero — 서브 페이지 공용
───────────────────────────────────────── */
.page-hero-driver {
  position: relative;
  height: 100vh;
}
.page-hero-sticky {
  position: sticky;
  top: 0;
  height: 100vh;
  overflow: hidden;
  background: #111;
}
.page-hero-video {
  position: absolute;
  inset: 0;
  z-index: 1;
}
.page-hero-video img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
  display: block;
  pointer-events: none;
}
.page-hero-center {
  position: absolute;
  inset: 0;
  z-index: 10;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: var(--sp-sm);
  pointer-events: none;
  text-align: center;
}
.page-hero-label {
  font-size: var(--t-h1);
  font-weight: 500;
  line-height: var(--lh-tight);
  color: rgba(255,255,255,0.9);
}
.page-hero-desc {
  font-size: var(--t-h4);
  font-weight: 500;
  line-height: 1.7;
  white-space: pre-line;
  color: rgba(255,255,255,0.9);
}

/* ─────────────────────────────────────────
   CTA Banner — 영상 배경
───────────────────────────────────────── */
.cta-banner {
  position: relative;
  min-height: 75vh;
  overflow: hidden;
  color: var(--text-inv);
}
.cta-banner-video {
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  z-index: 0;
}
.cta-banner-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.45);
  z-index: 1;
}
.cta-banner-content {
  position: relative;
  z-index: 2;
  padding: var(--sp-3xl) var(--sec-h) var(--sp-xl);
  min-height: 75vh;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}
.cta-banner-eyebrow {
  font-size: var(--t-xs);
  color: rgba(255,255,255,0.6);
  margin-bottom: var(--sp-sm);
}
.cta-banner-headline {
  font-size: var(--t-h1);
  font-weight: 500;
  line-height: var(--lh-tight);
  max-width: 65vw;
  white-space: pre-line;
}
.cta-banner-bottom {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
}
.cta-banner-body {
  font-size: var(--t-h4);
  color: rgba(255,255,255,0.65);
  max-width: 38vw;
  line-height: var(--lh-normal);
  white-space: pre-line;
}

/* ─────────────────────────────────────────
   Footer
───────────────────────────────────────── */
.gnbs-footer {
  background: var(--bg-alt);
  padding: var(--sp-xl) var(--sec-h) var(--sp-sm);
}
.footer-top {
  display: grid;
  grid-template-columns: 1fr 1.8fr;
  gap: var(--sp-xl);
  padding-bottom: var(--sp-xl);
  border-bottom: 1px solid var(--border);
  margin-bottom: var(--sp-md);
}
.footer-logo {
  font-size: var(--t-h3);
  font-weight: 700;
  margin-bottom: var(--sp-sm);
  cursor: pointer;
}
.footer-info {
  font-size: var(--t-xs);
  color: var(--text-sub);
  line-height: 1.9;
}
.footer-nav-cols {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--sp-sm);
}
.footer-col-title {
  font-size: var(--t-xs);
  font-weight: 600;
  text-transform: uppercase;
  color: var(--text-sub);
  margin-bottom: 0.9vw;
}
.footer-link {
  display: block;
  font-size: var(--t-sm);
  margin-bottom: 0.5vw;
  cursor: pointer;
  transition: opacity var(--duration-mid);
}
.footer-link:hover { opacity: 0.6; }
.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: var(--t-xs);
  color: var(--text-sub);
}

/* ─────────────────────────────────────────
   Typography Utilities
───────────────────────────────────────── */
.t-hero { font-size: var(--t-hero); }
.t-h0   { font-size: var(--t-h0); }
.t-h1   { font-size: var(--t-h1); }
.t-h2   { font-size: var(--t-h2); }
.t-h3   { font-size: var(--t-h3); }
.t-h4   { font-size: var(--t-h4); }
.t-base { font-size: var(--t-base); }
.t-sm   { font-size: var(--t-sm); }
.t-xs   { font-size: var(--t-xs); }

.lh-tight  { line-height: var(--lh-tight); }
.lh-normal { line-height: var(--lh-normal); }
.lh-body   { line-height: var(--lh-body); }

/* ─────────────────────────────────────────
   Color Utilities
───────────────────────────────────────── */
.c-sub  { color: var(--text-sub); }
.c-inv  { color: var(--text-inv); }
.c-grey { color: var(--c-grey); }

/* ─────────────────────────────────────────
   Weight Utilities
───────────────────────────────────────── */
.fw-400 { font-weight: 400; }
.fw-500 { font-weight: 500; }
.fw-600 { font-weight: 600; }
.fw-700 { font-weight: 700; }

/* ─────────────────────────────────────────
   Grid Utilities
───────────────────────────────────────── */
.grid-2 { display: grid; grid-template-columns: 1fr 1fr;            gap: var(--sp-xl); }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr);     gap: var(--sp-lg); }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr);     gap: var(--sp-md); }
.align-start { align-items: start; }
