/* ==========================================================
   주식회사 볼테 — 공통 스타일

   브랜드 토큰은 vaulte.kr 실측값을 따른다(skill: vaulte-brand).
   흰색·검정을 쓰지 않는 것이 핵심 — 종이색 배경에 먹색 글씨다.

   구성: 1.토큰 2.리셋 3.레이아웃 4.헤더 5.타이포 6.부품 7.푸터 8.애니메이션
   ========================================================== */

/* ── 1. 토큰 ────────────────────────────────────────── */
:root {
  --bg:        247 243 237;   /* 종이색 */
  --bg-soft:   241 236 227;   /* 한 단계 진한 종이 */
  --bg-deep:    44  40  37;   /* 반전 섹션 */
  --fg:         44  40  37;   /* 먹색 */
  --fg-soft:   108 100  92;
  --fg-mute:   142 132 121;
  --line:      219 209 194;
  --accent:    168  32  24;

  /* 랜딩은 문서보다 넓어야 한다. 읽는 글만 좁게 잡는다. */
  --w-wide: 1160px;
  --w-text:  680px;
  --pad: 24px;

  --r-sm: 10px;
  --r-md: 16px;
  --r-lg: 22px;
}

@media (min-width: 768px) { :root { --pad: 40px; } }

/* ── 2. 리셋 ────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  margin: 0;
  background: rgb(var(--bg));
  color: rgb(var(--fg));
  font-family: Pretendard, -apple-system, BlinkMacSystemFont, system-ui,
               'Apple SD Gothic Neo', 'Noto Sans KR', 'Malgun Gothic', sans-serif;
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, h4, p, ul, ol, dl, figure { margin: 0; }
ul, ol { padding: 0; list-style: none; }

:focus-visible { outline: 2px solid rgb(var(--fg)); outline-offset: 3px; border-radius: 4px; }

.skip-link {
  position: absolute; left: -9999px; top: 8px; z-index: 100;
  padding: 10px 16px; border-radius: var(--r-sm);
  background: rgb(var(--fg)); color: rgb(var(--bg)); font-size: 13px;
}
.skip-link:focus { left: 16px; }

/* ── 3. 레이아웃 ────────────────────────────────────── */
.wrap {
  width: 100%; max-width: var(--w-wide);
  margin-inline: auto; padding-inline: var(--pad);
}

.section { padding-block: clamp(72px, 11vw, 128px); }
.section--tight { padding-block: clamp(56px, 8vw, 88px); }

/* 색으로만 구획을 나눈다. 선을 많이 그으면 답답해진다. */
.section--soft { background: rgb(var(--bg-soft)); }

.section--deep { background: rgb(var(--bg-deep)); color: rgb(var(--bg)); }
.section--deep .eyebrow,
.section--deep .lead { color: rgb(var(--bg) / .62); }

/* ── 4. 헤더 ────────────────────────────────────────── */
.site-header {
  position: sticky; top: 0; z-index: 60;
  background: rgb(var(--bg) / .78);
  backdrop-filter: saturate(180%) blur(14px);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid rgb(var(--line) / 0);
  transition: border-color .25s;
}
/* 스크롤이 시작될 때만 경계선을 띄운다(처음부터 그으면 무겁다) */
.site-header.is-scrolled { border-bottom-color: rgb(var(--line) / .7); }

.site-header .wrap {
  display: flex; align-items: center; justify-content: space-between;
  gap: 20px; height: 66px;
}

.logo { display: flex; align-items: center; flex-shrink: 0; }
.site-nav { display: flex; align-items: center; gap: 2px; }

.site-nav a {
  position: relative; padding: 8px 13px; border-radius: var(--r-sm);
  font-size: 14px; font-weight: 500; color: rgb(var(--fg-soft));
  transition: color .15s, background-color .15s;
}
.site-nav a:hover { color: rgb(var(--fg)); background: rgb(var(--fg) / .05); }

/* 현재 페이지는 밑줄이 아니라 점으로 조용히 표시한다 */
.site-nav a[aria-current='page'] { color: rgb(var(--fg)); font-weight: 600; }
.site-nav a[aria-current='page']::after {
  content: ''; position: absolute; left: 50%; bottom: 2px;
  width: 3px; height: 3px; margin-left: -1.5px;
  border-radius: 50%; background: rgb(var(--accent));
}

.nav-cta {
  margin-left: 6px; padding: 9px 17px !important;
  background: rgb(var(--fg)); color: rgb(var(--bg)) !important;
}
.nav-cta:hover { background: rgb(var(--fg) / .87) !important; }

/* 링크가 4개뿐이라 햄버거 메뉴는 과하다. 좁은 화면에선 여백만 줄인다. */
@media (max-width: 680px) {
  .site-header .wrap { height: 58px; gap: 10px; }
  .site-nav { gap: 0; }
  .site-nav a { padding: 8px 8px; font-size: 13px; }
  .nav-cta { display: none; }
}

/* ── 5. 타이포 ──────────────────────────────────────── */
.eyebrow {
  font-size: 12px; font-weight: 600; letter-spacing: 1.8px;
  color: rgb(var(--fg-mute)); text-transform: uppercase;
}

.display {
  /* 2열 히어로에서 왼쪽 열 폭은 화면의 약 55%다. vw 계수를 그에 맞춰 낮춰야
     큰 화면에서 제목이 3줄로 끊기지 않는다. */
  font-size: clamp(36px, 5.2vw, 62px);
  font-weight: 600; letter-spacing: -2px; line-height: 1.14;
  /* 한국어는 어절 중간에서 끊기면 읽기 나쁘다. 단어 단위로만 줄바꿈한다. */
  word-break: keep-all;
}

.h2 {
  font-size: clamp(26px, 4.2vw, 40px);
  font-weight: 600; letter-spacing: -1.3px; line-height: 1.24;
  word-break: keep-all;
}

.h3 { font-size: clamp(18px, 2.3vw, 22px); font-weight: 600; letter-spacing: -.5px; }

.lead {
  font-size: clamp(16px, 1.75vw, 18px);
  line-height: 1.78; color: rgb(var(--fg-soft)); max-width: 36em;
  word-break: keep-all;
}

.prose { max-width: var(--w-text); }
.prose p { font-size: 16.5px; line-height: 1.85; color: rgb(var(--fg-soft)); }
.prose p + p { margin-top: 18px; }
.prose strong { color: rgb(var(--fg)); font-weight: 600; }

/* ── 히어로 ─────────────────────────────────────────── */
/* 큰 화면에서 오른쪽이 비어 보이지 않도록 2열로 나눈다.
   오른쪽은 지금 만드는 것을 요약해 보여주는 판이다 —
   제품 스크린샷이 없는 단계라 글자로 채운다. */
.hero-grid {
  display: grid;
  gap: clamp(40px, 6vw, 72px);
  grid-template-columns: 1fr;
  align-items: center;
}
@media (min-width: 940px) {
  /* 왼쪽을 넉넉히 준다 — 좁으면 큰 제목이 어색한 지점에서 끊긴다 */
  .hero-grid { grid-template-columns: 1.35fr .65fr; }
}
@media (min-width: 1200px) {
  .hero-grid { grid-template-columns: 1.25fr .75fr; }
}

.hero-panel {
  display: flex; flex-direction: column; gap: 2px;
  padding: 6px;
  background: rgb(var(--bg-soft) / .7);
  border: 1px solid rgb(var(--line) / .7);
  border-radius: var(--r-lg);
}

.hero-panel .row {
  display: flex; align-items: center; justify-content: space-between;
  gap: 14px;
  padding: 17px 19px;
  background: rgb(var(--bg));
  border-radius: 16px;
}
.hero-panel .row:first-child { border-radius: 17px 17px 8px 8px; }
.hero-panel .row:last-child  { border-radius: 8px 8px 17px 17px; }
.hero-panel .row + .row { margin-top: 2px; }

.hero-panel .name { font-size: 15px; font-weight: 600; letter-spacing: -.3px; }
.hero-panel .desc { margin-top: 3px; font-size: 12.5px; color: rgb(var(--fg-mute)); }
.hero-panel .state { flex-shrink: 0; font-size: 11.5px; color: rgb(var(--fg-mute)); }

/* ── 6. 부품 ────────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 14px 27px; border-radius: var(--r-sm);
  font-size: 14.5px; font-weight: 500; letter-spacing: -.2px;
  border: 1px solid transparent;
  transition: transform .15s, background-color .15s, border-color .15s;
}
.btn:active { transform: translateY(1px); }
.btn--solid { background: rgb(var(--fg)); color: rgb(var(--bg)); }
.btn--solid:hover { background: rgb(var(--fg) / .87); }
.btn--ghost { border-color: rgb(var(--line)); }
.btn--ghost:hover { border-color: rgb(var(--fg) / .4); background: rgb(var(--fg) / .03); }
.btn--onDeep { background: rgb(var(--bg)); color: rgb(var(--fg)); }
.btn--onDeep:hover { background: rgb(var(--bg) / .88); }
.btn-row { display: flex; flex-wrap: wrap; gap: 10px; }

.card {
  display: flex; flex-direction: column;
  padding: clamp(24px, 3vw, 32px);
  background: rgb(var(--bg));
  border: 1px solid rgb(var(--line) / .8);
  border-radius: var(--r-lg);
  transition: transform .2s, border-color .2s, box-shadow .2s;
}
a.card:hover {
  transform: translateY(-3px);
  border-color: rgb(var(--fg) / .28);
  box-shadow: 0 14px 30px -20px rgb(var(--fg) / .35);
}

.card__tag { margin-top: 6px; font-size: 12.5px; font-weight: 500; color: rgb(var(--fg-mute)); }
.card__body { flex: 1; margin-top: 18px; font-size: 15px; line-height: 1.75; color: rgb(var(--fg-soft)); }
.card__body em { font-style: normal; font-weight: 600; color: rgb(var(--fg)); }
.card__foot {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  margin-top: 24px; padding-top: 16px;
  border-top: 1px solid rgb(var(--line) / .7);
  font-size: 12.5px; color: rgb(var(--fg-mute));
}

.dot { display: inline-flex; align-items: center; gap: 7px; }
.dot::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: rgb(var(--accent)); }
.dot--muted::before { background: rgb(var(--fg-mute)); }

.grid { display: grid; gap: 18px; }
.grid--2, .grid--3 { grid-template-columns: 1fr; }
@media (min-width: 720px) {
  .grid--2 { grid-template-columns: repeat(2, 1fr); }
  .grid--3 { grid-template-columns: repeat(3, 1fr); }
}

.facts {
  display: grid; gap: 1px;
  background: rgb(var(--line) / .6);
  border: 1px solid rgb(var(--line) / .6);
  border-radius: var(--r-md); overflow: hidden;
}
.facts > div { display: flex; flex-wrap: wrap; gap: 4px 20px; padding: 15px 20px; background: rgb(var(--bg)); }
.facts dt { flex: 0 0 124px; font-size: 12.5px; font-weight: 500; color: rgb(var(--fg-mute)); }
.facts dd { flex: 1 1 220px; font-size: 14.5px; }
@media (max-width: 560px) { .facts dt { flex-basis: 100%; } }

.timeline { border-top: 1px solid rgb(var(--line) / .7); }
.timeline li {
  display: flex; flex-wrap: wrap; gap: 8px 32px;
  padding: 24px 0; border-bottom: 1px solid rgb(var(--line) / .7);
}
.timeline .when {
  flex: 0 0 70px; padding-top: 3px;
  font-size: 13.5px; font-weight: 600; color: rgb(var(--fg-mute));
  font-variant-numeric: tabular-nums;
}
.timeline .what { flex: 1 1 280px; font-size: 15px; line-height: 1.75; color: rgb(var(--fg-soft)); }
.timeline .what strong { display: block; margin-bottom: 4px; font-size: 16px; font-weight: 600; color: rgb(var(--fg)); }

.page-head { padding-top: clamp(52px, 7vw, 88px); padding-bottom: clamp(32px, 4.5vw, 52px); }
.page-head .eyebrow { margin-bottom: 16px; }
.page-head .lead { margin-top: 22px; }

.arrow-link { display: inline-flex; align-items: center; gap: 7px; font-size: 14.5px; font-weight: 500; }
.arrow-link svg { transition: transform .18s; }
.arrow-link:hover svg { transform: translateX(3px); }

.contact-row {
  display: flex; align-items: center; flex-wrap: wrap; gap: 4px 20px;
  padding: 18px 20px; background: rgb(var(--bg));
  border: 1px solid rgb(var(--line) / .8); border-radius: var(--r-md);
  transition: border-color .15s;
}
a.contact-row:hover { border-color: rgb(var(--fg) / .35); }
.contact-row .label { flex: 0 0 60px; font-size: 12.5px; font-weight: 500; color: rgb(var(--fg-mute)); }
.contact-row .value { flex: 1 1 220px; font-size: 15px; }
.contact-row .arrow { flex-shrink: 0; color: rgb(var(--fg-mute)); }

/* ── 7. 푸터 ────────────────────────────────────────── */
.site-footer { padding-block: 56px 60px; border-top: 1px solid rgb(var(--line) / .7); }

.footer-grid { display: grid; gap: 34px; grid-template-columns: 1fr; margin-bottom: 42px; }
@media (min-width: 720px) { .footer-grid { grid-template-columns: 1.5fr 1fr 1fr; gap: 28px; } }

.footer-col h4 {
  margin-bottom: 14px; font-size: 12px; font-weight: 600;
  letter-spacing: 1.2px; text-transform: uppercase; color: rgb(var(--fg-mute));
}
.footer-col li + li { margin-top: 9px; }
.footer-col a, .footer-col p { font-size: 14px; color: rgb(var(--fg-soft)); }
.footer-col a:hover { color: rgb(var(--fg)); }
.footer-tagline { margin-top: 14px; max-width: 26em; }

.footer-legal p { font-size: 12.5px; line-height: 1.7; color: rgb(var(--fg-mute)); }
.footer-legal a { text-decoration: underline; text-decoration-color: rgb(var(--line)); text-underline-offset: 2px; }
.copyright { margin-top: 18px; font-size: 12px; color: rgb(var(--fg-mute) / .85); }

/* ── 8. 애니메이션 ──────────────────────────────────── */
/* app.js 가 .reveal 을 붙이고 관찰한다. JS 가 실패하면 클래스 자체가
   안 붙으므로 내용은 그대로 보인다(빈 화면이 되지 않는다). */
.reveal { opacity: 0; transform: translateY(14px);
  transition: opacity .6s cubic-bezier(.22,.61,.36,1), transform .6s cubic-bezier(.22,.61,.36,1); }
.reveal.is-in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1 !important; transform: none !important; }
  * { transition-duration: .01ms !important; animation-duration: .01ms !important; }
}
