@charset "utf-8";
/* =========================================================
   SG ENTERTECH — 사이트 전역 스타일 v2 (2026-08 리디자인)
   대상: 전 페이지 (index / franchise / contact / privacy / terms 한·영)

   디자인 기준: 시안 B "indigo-ink ledger"
   (styles.refero.design Stripe 시스템 기반 · docs/preview/sian-b-stripe.html)

   구 main.css / subpage 토큰을 대체합니다. 헤더·푸터·모바일 메뉴는
   기존 마크업 클래스명을 그대로 스타일링하므로 서브페이지는
   스타일시트 교체만으로 이식됩니다.
   ※ nginx가 css를 30일 캐시하므로 수정 시 각 HTML의 ?v= 를 함께 올릴 것.
========================================================= */

@font-face {
  font-family: 'Pretendard';
  src: url('/fonts/PretendardVariable.woff2') format('woff2-variations');
  font-weight: 45 920;
  font-display: swap;
}

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

:root {
  /* 팔레트 */
  --ink: #061b31;        /* 본문·제목 */
  --steel: #50617a;      /* 보조 텍스트 */
  --slate: #64748d;      /* 라벨 */
  --smoke: #839bc8;      /* 뮤트 */
  --white: #ffffff;
  --mist: #f8fafd;       /* 밴드·푸터 */
  --frost: #e5edf5;      /* 보더·구분선 */
  --indigo: #533afd;     /* 주 액센트 */
  --indigo-h: #7389ff;
  --peri: #e8e9ff;       /* 강조 배경 */
  --lilac: #d6d9fc;

  --maxw: 1320px;
  --secpad: 96px;
  --headerH: 64px;
}

html { scroll-behavior: smooth; }
body {
  background: var(--white);
  color: var(--ink);
  font-family: 'Pretendard', -apple-system, 'Segoe UI', 'Malgun Gothic', sans-serif;
  font-size: 16px; font-weight: 400; line-height: 1.55; letter-spacing: -0.01em;
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
}
img { max-width: 100%; }

.container { max-width: var(--maxw); margin: 0 auto; padding: 0 32px; }
section { padding: var(--secpad) 0; }

/* ── 스크롤 리빌 ── */
.rv { opacity: 0; transform: translateY(22px); transition: opacity .7s ease, transform .7s ease; }
.rv.on { opacity: 1; transform: none; }
.rv.d1 { transition-delay: .08s; } .rv.d2 { transition-delay: .16s; }
.rv.d3 { transition-delay: .24s; } .rv.d4 { transition-delay: .32s; }
@media (prefers-reduced-motion: reduce) { .rv { opacity: 1; transform: none; transition: none; } }

/* =========================================================
   헤더 (기존 마크업: .header > .container > .header-inner)
========================================================= */
.header {
  position: fixed; inset: 0 0 auto 0; z-index: 50;
  background: rgba(6, 27, 49, .55);
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
}
.header-bg { display: none; }
.header-inner { height: var(--headerH); display: flex; align-items: center; justify-content: space-between; }
.brand img { height: 30px; display: block; }
.nav { display: flex; gap: 26px; align-items: center; }
.nav a { color: #fff; text-decoration: none; font-size: 14px; font-weight: 400; opacity: .9; }
.nav a:hover { opacity: 1; }
.nav-underline { display: none; }

.lang-switch { font-size: 12.5px; color: rgba(255, 255, 255, .65); white-space: nowrap; }
.lang-switch a { color: rgba(255, 255, 255, .85); text-decoration: none; }
.lang-switch a:hover { color: #fff; }

.hamburger {
  display: none; flex-direction: column; justify-content: center; gap: 5px;
  width: 40px; height: 40px; padding: 8px;
  background: transparent; border: 0; cursor: pointer;
}
.hamburger span { display: block; height: 2px; width: 100%; background: #fff; border-radius: 2px; }

.mobile-menu {
  position: fixed; top: var(--headerH); left: 0; right: 0; z-index: 49;
  background: rgba(6, 27, 49, .97); backdrop-filter: blur(12px);
  transform: translateY(-8px); opacity: 0; pointer-events: none;
  transition: opacity .2s ease, transform .2s ease;
}
.mobile-menu.open { transform: none; opacity: 1; pointer-events: auto; }
.mm-inner { display: flex; flex-direction: column; padding: 10px 24px 18px; }
.mm-inner a {
  color: #fff; text-decoration: none; font-size: 15px; padding: 13px 4px;
  border-bottom: 1px solid rgba(255, 255, 255, .08);
}
.mm-inner a:last-child { border-bottom: 0; }

/* =========================================================
   히어로 (index)
========================================================= */
.hero {
  position: relative; height: 100vh; min-height: 560px; padding: 0;
  overflow: hidden; display: flex; align-items: flex-end;
}
.hero video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hero .ovl {
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(6,27,49,.30) 0%, rgba(6,27,49,.10) 45%, rgba(6,27,49,.85) 100%);
}
.hero-in { position: relative; z-index: 1; width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 32px 96px; }
.hero h1 { font-size: clamp(40px, 4.4vw, 60px); font-weight: 300; line-height: 1.06; letter-spacing: -0.025em; color: #fff; }
.hero h2 { margin-top: 18px; font-size: clamp(18px, 1.6vw, 22px); font-weight: 300; color: rgba(255,255,255,.92); }
.hero p { margin-top: 12px; font-size: 16px; font-weight: 300; color: rgba(255,255,255,.75); max-width: 600px; }

/* ── 숫자 밴드 ── */
.stats { background: var(--white); border-bottom: 1px solid var(--frost); padding: 64px 0; }
.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.stat .num {
  font-size: clamp(34px, 3.4vw, 52px); font-weight: 700; color: var(--indigo);
  letter-spacing: -0.02em; font-variant-numeric: tabular-nums; line-height: 1.05;
}
.stat .num small { font-size: .55em; font-weight: 500; }
.stat .lb { margin-top: 10px; font-size: 14px; font-weight: 300; color: var(--steel); line-height: 1.6; }

/* ── 섹션 공통 ── */
.eyebrow { font-size: 14px; color: var(--indigo); font-weight: 400; margin-bottom: 14px; }
h3.sec {
  font-size: clamp(30px, 3.2vw, 44px); font-weight: 300;
  letter-spacing: -0.02em; line-height: 1.12; color: var(--ink);
}
p.sub { margin-top: 16px; font-size: 18px; font-weight: 300; color: var(--steel); max-width: 660px; line-height: 1.6; }
.imgbox { border-radius: 4px; overflow: hidden; background: var(--mist); }
.imgbox img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .45s ease; }
.imgbox:hover img { transform: scale(1.05); }

/* ── 회사 소개 ── */
.about-grid { margin-top: 64px; display: grid; grid-template-columns: 1fr 1.2fr; gap: 56px; align-items: center; }
.vision { font-size: clamp(21px, 2vw, 27px); font-weight: 300; line-height: 1.45; letter-spacing: -0.02em; color: var(--ink); }
.vision strong { font-weight: 700; color: var(--indigo); }
.vision + .vision { margin-top: 24px; }
.about-facts {
  margin-top: 56px; display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px;
  border-top: 1px solid var(--frost); padding-top: 32px;
}
.fact .k { font-size: 13px; font-weight: 300; color: var(--slate); }
.fact .v { margin-top: 6px; font-size: 16px; font-weight: 700; color: var(--ink); line-height: 1.4; }

/* ── 스낵VR 플랫폼 ── */
.plat { background: var(--mist); }
.plat-grid { margin-top: 64px; display: grid; grid-template-columns: 1fr 1.1fr; gap: 64px; align-items: center; }
.plat-list { display: grid; gap: 0; border-top: 1px solid var(--frost); }
.plat-item { display: flex; gap: 16px; padding: 20px 0; border-bottom: 1px solid var(--frost); }
.plat-item .ic {
  flex: 0 0 auto; width: 34px; height: 34px; border-radius: 4px;
  background: var(--peri); color: var(--indigo);
  display: flex; align-items: center; justify-content: center;
  font-size: 14px; font-weight: 700;
}
.plat-item h5 { font-size: 16px; font-weight: 700; color: var(--ink); }
.plat-item p { margin-top: 4px; font-size: 14px; font-weight: 300; color: var(--steel); line-height: 1.6; }

/* ── 활용 분야 ── */
.use-grid { margin-top: 64px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.use .imgbox { aspect-ratio: 16/10; }
.use h4 { margin-top: 20px; font-size: 19px; font-weight: 700; color: var(--ink); }
.use p { margin-top: 10px; font-size: 14px; font-weight: 300; color: var(--steel); line-height: 1.65; }

/* ── 핵심 역량 (three.js 캔버스 포함) ── */
.cap { position: relative; background: var(--mist); overflow: hidden; }
#capGL { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
.cap .container { position: relative; z-index: 1; }
.cap-grid { margin-top: 56px; display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.cap-card { position: relative; aspect-ratio: 3/4; border-radius: 8px; overflow: hidden; background: var(--ink); }
.cap-card img.bg {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover; transition: transform .5s ease;
}
.cap-card:hover img.bg { transform: scale(1.06); }
.cap-card::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(6,27,49,.10) 0%, rgba(6,27,49,.25) 45%, rgba(6,27,49,.88) 100%);
}
.cap-card .n { position: absolute; top: 18px; left: 20px; z-index: 2; color: #fff; font-size: 13px; letter-spacing: .12em; }
.cap-card .tx { position: absolute; left: 20px; right: 20px; bottom: 20px; z-index: 2; color: #fff; }
.cap-card .tx h4 { font-size: 19px; font-weight: 700; line-height: 1.3; color: #fff; }
.cap-card .tx p { margin-top: 6px; font-size: 13px; font-weight: 300; color: rgba(255,255,255,.85); line-height: 1.5; }

/* ── 제품 ── */
.prod-grid { margin-top: 64px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px 24px; }
.prod .imgbox { aspect-ratio: 16/10; }
.prod .tag {
  display: inline-block; margin-top: 20px; font-size: 12px; color: var(--indigo);
  background: var(--peri); border-radius: 4px; padding: 3px 8px;
}
.prod h4 { margin-top: 12px; font-size: 19px; font-weight: 700; color: var(--ink); }
.prod p { margin-top: 8px; font-size: 14px; font-weight: 300; color: var(--steel); line-height: 1.65; }
.prod a.more { display: inline-block; margin-top: 12px; font-size: 14px; color: var(--indigo); text-decoration: none; }
.prod a.more:hover { color: var(--indigo-h); }
.prod a.dl {
  display: inline-flex; align-items: center; gap: 6px; margin-top: 12px;
  font-size: 13px; color: var(--steel); border: 1px solid var(--frost);
  border-radius: 4px; padding: 5px 12px; text-decoration: none;
}
.prod a.dl:hover { border-color: var(--lilac); color: var(--indigo); }

/* ── 도입 사례 ── */
.case { background: var(--mist); }
.case-grid { margin-top: 64px; display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.case-card { background: var(--white); border-radius: 4px; overflow: hidden; display: flex; flex-direction: column; }
.case-card .imgbox { aspect-ratio: 16/8.5; border-radius: 0; }
.img4 { display: grid; grid-template-columns: 1fr 1fr; grid-template-rows: 1fr 1fr; gap: 3px; }
.img4 img { height: 100%; }
.case-card .body { padding: 32px; }
.case-card .where { font-size: 13px; color: var(--indigo); }
.case-card h4 { margin-top: 8px; font-size: 21px; font-weight: 700; color: var(--ink); line-height: 1.35; }
.case-card p { margin-top: 12px; font-size: 14px; font-weight: 300; color: var(--steel); line-height: 1.7; }
.case-card .kpi { margin-top: 18px; display: flex; gap: 28px; border-top: 1px solid var(--frost); padding-top: 18px; }
.case-card .kpi b { display: block; font-size: 22px; font-weight: 700; color: var(--ink); font-variant-numeric: tabular-nums; }
.case-card .kpi span { font-size: 12.5px; font-weight: 300; color: var(--slate); }
.more-blog { margin-top: 40px; text-align: right; }
.more-blog a { font-size: 30px; color: var(--indigo); text-decoration: none; letter-spacing: -0.02em; }
.more-blog a:hover { color: var(--indigo-h); }

/* ── 프랜차이즈 티저 ── */
.ftz { background: var(--white); border-top: 1px solid var(--frost); }
.ftz-hook {
  margin-top: 24px; font-size: clamp(24px, 2.6vw, 36px); font-weight: 300;
  letter-spacing: -0.02em; line-height: 1.35; color: var(--ink);
}
.ftz-hook strong { font-weight: 700; color: var(--indigo); }
.ftz-nums { margin-top: 40px; display: flex; gap: 16px; flex-wrap: wrap; }
.ftz-num { background: var(--mist); border: 1px solid var(--frost); border-radius: 4px; padding: 20px 28px; min-width: 200px; }
.ftz-num b { display: block; font-size: 20px; font-weight: 700; color: var(--ink); }
.ftz-num span { display: block; margin-top: 6px; font-size: 13px; font-weight: 300; color: var(--steel); }
.ftz-btn {
  display: inline-block; margin-top: 36px; background: var(--indigo); color: #fff;
  text-decoration: none; font-size: 15px; padding: 14px 28px; border-radius: 4px;
}
.ftz-btn:hover { background: var(--indigo-h); }

/* ── 포트폴리오 ── */
.pf-grid { margin-top: 56px; display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.yt { aspect-ratio: 16/9; border-radius: 4px; overflow: hidden; background: var(--ink); }
.yt iframe, .yt video { width: 100%; height: 100%; border: 0; display: block; object-fit: cover; background: var(--ink); }
.pf-cap { margin-top: 12px; font-size: 14px; font-weight: 300; color: var(--steel); }

/* ── CTA (three.js 스타필드) ── */
.cta-band { position: relative; background: var(--indigo); color: #fff; overflow: hidden; }
#ctaGL { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; opacity: .7; }
.cta-in { position: relative; z-index: 1; display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
.cta-in h3 { font-size: clamp(26px, 2.8vw, 38px); font-weight: 300; letter-spacing: -0.02em; line-height: 1.2; }
.cta-in p { margin-top: 10px; font-weight: 300; color: rgba(255,255,255,.8); }
.btn {
  display: inline-block; background: #fff; color: var(--indigo); text-decoration: none;
  font-size: 15px; padding: 13px 24px; border-radius: 4px;
}
.btn:hover { background: var(--peri); }

/* =========================================================
   푸터 (기존 마크업: .footer > .footer-inner)
========================================================= */
.footer { background: var(--mist); border-top: 1px solid var(--frost); }
.footer-inner { max-width: var(--maxw); margin: 0 auto; padding: 48px 32px 56px; }
.footer-bar { display: flex; align-items: center; justify-content: space-between; gap: 20px; flex-wrap: wrap; }
.footer-logo img { height: 30px; display: block; }
.footer-menu { display: flex; align-items: center; gap: 12px; font-size: 13.5px; }
.footer-menu a { color: var(--slate); text-decoration: none; }
.footer-menu a:hover { color: var(--indigo); }
.footer-menu .sep { color: var(--frost); }
.footer-info {
  margin-top: 26px; padding-top: 22px; border-top: 1px solid var(--frost);
  display: flex; flex-wrap: wrap; gap: 6px 10px;
  font-size: 13px; font-weight: 300; color: var(--slate); line-height: 1.8;
}
.footer-info .sep { color: var(--frost); }
.footer-copy { margin-top: 22px; font-size: 12px; font-weight: 300; color: var(--smoke); }

/* =========================================================
   반응형
========================================================= */
@media (max-width: 980px) {
  .stats-grid, .about-facts { grid-template-columns: repeat(2, 1fr); gap: 32px 24px; }
  .about-grid, .plat-grid, .case-grid, .pf-grid { grid-template-columns: 1fr; gap: 40px; }
  .use-grid { grid-template-columns: 1fr; }
  .cap-grid, .prod-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 760px) {
  .nav, .lang-switch { display: none; }
  .hamburger { display: flex; }
}
@media (max-width: 560px) {
  .cap-grid, .prod-grid, .stats-grid, .about-facts { grid-template-columns: 1fr; }
  :root { --secpad: 72px; }
  .container { padding: 0 20px; }
  .footer-inner { padding: 40px 20px 44px; }
}
@media (min-width: 761px) {
  .mobile-menu { display: none; }
}
