/* 랜딩 전용 스타일. docs(main.css)와 독립.
   브랜드: sqzass = squeeze — 웜 피치/코랄, 눌리는(스퀴즈) 상호작용,
   말랑한 블롭. 구조: 고정 글래스 내비 / 히어로 / 벤토 그리드 / 푸터.
   테마: docs와 같은 [data-theme] 계약으로 라이트·다크 둘 다.
   인라인 style 금지 — 장식은 이 시트와 SVG 표현 속성이 진다. */

@font-face {
  font-family: "JetBrains Mono";
  src: url("/fonts/jetbrains-mono-400.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "JetBrains Mono";
  src: url("/fonts/jetbrains-mono-700.woff2") format("woff2");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

:root {
  /* 다크가 기본 — 템플릿이 data-theme="dark"를 쓴다 */
  --bg: #141110;
  --bg-hi: #1b1715;
  --panel: rgba(255, 226, 205, 0.05);
  --panel-hi: rgba(255, 226, 205, 0.09);
  --line: rgba(255, 214, 189, 0.13);
  --text: #f4eee7;
  --muted: #a79c92;
  --accent: #ffa171;      /* 피치 — 큰 요소·그래픽 */
  --accent-ink: #ffb98f;  /* 본문 위 링크·강조 텍스트 */
  --coral: #ff5e42;
  --grad: linear-gradient(98deg, #ffc296 0%, #ff9d63 45%, #ff5e42 100%);
  --bar-other: #4d4540;
  --btn-ink: #2a1408;
  --glass: rgba(20, 17, 16, 0.72);
  --shadow: 0 18px 50px rgba(0, 0, 0, 0.45);
  --sans: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue",
          "Noto Sans KR", "Apple SD Gothic Neo", sans-serif;
  --mono: "JetBrains Mono", ui-monospace, "SF Mono", Consolas, monospace;
  --wrap: 71rem;
  color-scheme: dark;
}
:root[data-theme="light"] {
  --bg: #faf5ef;
  --bg-hi: #ffffff;
  --panel: rgba(255, 255, 255, 0.65);
  --panel-hi: rgba(255, 255, 255, 0.95);
  --line: rgba(84, 48, 24, 0.14);
  --text: #261c15;
  --muted: #75665b;
  --accent: #e86a30;
  --accent-ink: #c2440f;
  --coral: #e04022;
  --grad: linear-gradient(98deg, #f2924e 0%, #e86a30 50%, #d43a1a 100%);
  --bar-other: #d4c8bd;
  --btn-ink: #ffffff;
  --glass: rgba(250, 245, 239, 0.75);
  --shadow: 0 18px 44px rgba(120, 70, 30, 0.14);
  color-scheme: light;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  font-size: 1.0625rem;
  line-height: 1.7;
  -webkit-text-size-adjust: 100%;
  overflow-x: clip;
}

a { color: var(--accent-ink); text-decoration: none; }
a:hover { text-decoration: underline; text-underline-offset: 3px; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 4px; }

img { max-width: 100%; }

.skip {
  position: absolute;
  left: -999px;
  top: 0;
  background: var(--coral);
  color: #fff;
  padding: 0.5rem 1rem;
  z-index: 30;
  font-weight: 700;
}
.skip:focus { left: 0.5rem; top: 0.5rem; }

/* ── 고정 글래스 내비 ── */
.nav {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 20;
  background: var(--glass);
  -webkit-backdrop-filter: blur(14px) saturate(1.5);
  backdrop-filter: blur(14px) saturate(1.5);
  border-bottom: 1px solid var(--line);
}
.nav-in {
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 0.72rem clamp(1.25rem, 4vw, 2.5rem);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}
.mark {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  color: var(--text);
  font-weight: 800;
  font-size: 1.06rem;
}
.mark:hover { text-decoration: none; }
.mark img { width: 26px; height: 26px; }
:root[data-theme="dark"] .mark img { filter: invert(1); }
.nav-links {
  display: flex;
  align-items: center;
  gap: 1.2rem;
  font-size: 0.93rem;
  font-weight: 600;
}
.nav-links > a { color: var(--muted); }
.nav-links > a:hover { color: var(--text); text-decoration: none; }
.nav-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.1rem;
  height: 2.1rem;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  padding: 0;
}
.nav-icon:hover { color: var(--text); border-color: var(--accent); }
:root[data-theme="dark"] .theme-toggle .i-moon { display: none; }
:root[data-theme="light"] .theme-toggle .i-sun { display: none; }

main { display: block; }

.inner { max-width: var(--wrap); margin: 0 auto; padding-inline: clamp(1.25rem, 4vw, 2.5rem); }

/* ── 히어로: 말랑한 블롭 하나가 뒤를 받친다 ── */
.hero {
  position: relative;
  padding-block: clamp(8rem, 16vw, 11.5rem) clamp(2.5rem, 5vw, 4rem);
  overflow: clip;
}
.blob {
  position: absolute;
  top: clamp(2rem, 6vw, 5rem);
  right: -12rem;
  width: clamp(26rem, 46vw, 44rem);
  aspect-ratio: 1;
  background: var(--grad);
  opacity: 0.24;
  filter: blur(70px);
  border-radius: 43% 57% 52% 48% / 55% 44% 56% 45%;
  animation: squish 16s ease-in-out infinite;
  pointer-events: none;
}
:root[data-theme="light"] .blob { opacity: 0.28; }
@keyframes squish {
  0%, 100% { border-radius: 43% 57% 52% 48% / 55% 44% 56% 45%; transform: scale(1); }
  33%      { border-radius: 56% 44% 46% 54% / 46% 58% 42% 54%; transform: scale(1.06, 0.94); }
  66%      { border-radius: 48% 52% 58% 42% / 52% 46% 54% 48%; transform: scale(0.95, 1.05); }
}

.hero .inner { position: relative; }
.kicker {
  margin: 0 0 1.2rem;
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  color: var(--accent-ink);
  font-family: var(--mono);
  font-size: 0.8rem;
  font-weight: 700;
}
.kicker::before {
  content: "";
  width: 1.5rem;
  height: 3px;
  border-radius: 2px;
  background: var(--grad);
}
.display {
  margin: 0;
  font-size: clamp(2.8rem, 6.4vw, 5.2rem);
  line-height: 1.03;
  font-weight: 800;
  letter-spacing: -0.028em;
  text-wrap: balance;
}
.display em {
  display: inline-block; /* 스퀴즈 스프링의 transform 대상 */
  font-style: normal;
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  transform-origin: left center;
}
.sub {
  margin: 1.5rem 0 0;
  max-width: 52ch;
  font-size: 1.14rem;
  line-height: 1.75;
  color: var(--muted);
  text-wrap: pretty;
}
.cta { margin: 2.1rem 0 0; display: flex; gap: 0.75rem; flex-wrap: wrap; }
.btn {
  display: inline-flex;
  align-items: center;
  min-height: 2.95rem;
  padding: 0 1.5rem;
  border-radius: 14px;
  font-weight: 700;
  font-size: 0.99rem;
  transition: transform 0.14s ease, box-shadow 0.14s ease, border-color 0.14s ease;
  cursor: pointer;
}
.btn:hover { text-decoration: none; transform: translateY(-1px); }
.btn:active { transform: scale(0.96); } /* 쥐어짜면 눌린다 */
.btn-primary {
  background: var(--grad);
  color: var(--btn-ink);
  box-shadow: 0 6px 24px rgba(255, 110, 60, 0.35);
}
.btn-primary:hover { box-shadow: 0 8px 30px rgba(255, 110, 60, 0.48); }
.btn-ghost { color: var(--text); border: 1px solid var(--line); background: var(--panel); }
.btn-ghost:hover { border-color: var(--accent); }

.lede { margin-top: clamp(2.6rem, 5vw, 3.6rem); }
.lede p {
  max-width: 62ch;
  margin: 0 0 1rem;
  font-size: 1rem;
  color: var(--muted);
}

/* ── 벤토 ── */
.bento-wrap { padding-block: clamp(2rem, 4vw, 3rem) clamp(4rem, 7vw, 6rem); }
.bento {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-auto-flow: dense;
  gap: 0.9rem;
}
.tile {
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--panel);
  padding: 1.5rem 1.6rem;
  margin: 0;
  transition: transform 0.16s ease, border-color 0.16s ease, background 0.16s ease;
}
.tile:hover {
  transform: scale(0.988); /* 타일도 쥐면 눌린다 */
  border-color: var(--accent);
  background: var(--panel-hi);
}
.tile h2 { margin: 0 0 0.55rem; font-size: 1.08rem; font-weight: 800; letter-spacing: -0.01em; }
/* keep-all은 CJK에만 작용한다 — 영문 페이지에 인용된 한국어 예시
   (검색엔진최적화)가 단어 중간에서 꺾이지 않게 전역으로 준다. */
.tile .note { margin: 0; font-size: 0.93rem; line-height: 1.65; color: var(--muted); word-break: keep-all; }
.tile-link { margin: 1.1rem 0 0; font-weight: 700; font-size: 0.95rem; }

.t-bench { grid-column: span 2; grid-row: span 2; }
.t-wide { grid-column: span 2; }

/* 벤치마크 타일 */
.t-bench .note { margin-bottom: 1.4rem; }
.row { margin: 0 0 1.25rem; }
.row h3 { margin: 0 0 0.4rem; font-size: 0.94rem; font-weight: 700; }
.meas {
  display: grid;
  grid-template-columns: 4.6rem 1fr 6.8rem;
  align-items: center;
  gap: 0.7rem;
  margin: 0.3rem 0;
}
.who { font-size: 0.82rem; font-weight: 600; color: var(--muted); }
.meas.us .who { color: var(--accent-ink); }
.track { width: 100%; height: 1.05rem; display: block; }
.fill { fill: var(--bar-other); transform-box: fill-box; transform-origin: left center; }
.meas.us .fill { fill: var(--accent); }
.val {
  font-family: var(--mono);
  font-variant-numeric: tabular-nums;
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--muted);
  white-space: nowrap;
}
.meas.us .val { color: var(--accent-ink); }

/* 0 바이트 타일 */
.t-zero { display: flex; flex-direction: column; justify-content: center; gap: 0.5rem; }
.zero-num {
  margin: 0;
  font-family: var(--mono);
  font-size: clamp(2.8rem, 5vw, 4rem);
  font-weight: 700;
  line-height: 1;
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* 설치 명령 — 페이지에서 제일 중요한 것. CTA 바로 아래에서 눈에 띈다.

   탭과 명령을 카드 하나로 묶는다. 둘을 떼어 놓으면 화면에 떠 있는 조각이
   둘이 되고, 무엇이 무엇을 바꾸는지가 근접성으로만 설명된다. */
.install {
  display: inline-flex;
  flex-direction: column;
  align-items: stretch;
  max-width: 100%;
  border: 1px solid var(--line);
  border-radius: 15px;
  background: var(--bg-hi);
  padding: 0;
  margin: 1.6rem 0 0;
  min-width: 0;
  overflow: hidden;
}
.pick-tabs {
  position: relative;
  display: flex;
  gap: 0.15rem;
  padding: 0.32rem;
  border-bottom: 1px solid var(--line);
}
.pick-in {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}
.pick-tab {
  position: relative;
  z-index: 1;
  cursor: pointer;
  font-family: var(--mono);
  font-size: 0.8rem;
  line-height: 1;
  color: var(--muted);
  padding: 0.44rem 0.8rem;
  border-radius: 9px;
  transition: color 0.18s;
}
.pick-tab:hover { color: var(--ink); }
.pick-in:checked + .pick-tab { color: var(--accent-ink); }
/* JS가 없을 때의 선택 표시. 표시자가 살아나면 이 배경은 넘겨준다. */
.pick-in:checked + .pick-tab { background: rgba(255, 120, 70, 0.12); }
.install.is-enhanced .pick-in:checked + .pick-tab { background: transparent; }
/* 라디오가 화면에 없으므로 포커스 링은 라벨이 받는다. 없으면 키보드로 못 쓴다. */
.pick-in:focus-visible + .pick-tab {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}
/* 선택을 따라 미끄러지는 표시자. 이동하는 동안 진행 방향으로 눌렸다 펴진다 —
   히어로의 squeeze와 같은 동작이고, 이 제품이 하는 일 자체다. */
.pick-marker {
  position: absolute;
  top: 0.32rem;
  left: 0;
  height: calc(100% - 0.64rem);
  border-radius: 9px;
  background: rgba(255, 120, 70, 0.14);
  box-shadow: inset 0 0 0 1px rgba(255, 140, 90, 0.4);
  opacity: 0;
  pointer-events: none;
  transform-origin: center;
}
.install.is-enhanced .pick-marker { opacity: 1; }

/* 패널을 격자 한 칸에 겹쳐 쌓는다. 카드 폭이 가장 긴 명령에 맞춰 고정되므로
   탭을 옮길 때마다 상자가 늘었다 줄었다 하지 않는다.
   숨김은 display가 아니라 visibility다 — 폭 계산에는 남아 있어야 한다. */
.pick-panels {
  display: grid;
  min-width: 0;
  max-width: 100%;
}
.pick-panel {
  grid-area: 1 / 1;
  display: flex;
  align-items: center;
  gap: 0.6rem;
  min-width: 0;
  padding: 0.78rem 0.6rem 0.78rem 1.05rem;
  visibility: hidden;
  opacity: 0;
  transform-origin: left center;
}
/* 복사 버튼은 카드 오른쪽 끝에 붙는다. 명령 길이를 따라가면 탭을 옮길 때마다
   버튼이 300px씩 이동하는데, 누르려던 것이 도망가는 셈이다. */
.pick-panel > .inst-copy { margin-left: auto; }
/* 첫 패널이 기본이다. `:has()`를 모르는 브라우저에서도 curl 명령은 그대로
   보이고 탭만 안 먹는다 — 이 페이지에서 가장 중요한 내용이 사라지면 안 된다.
   채널이 셋인 건 packaging/README.md의 결정이고, 늘리면 여기도 는다. */
.pick-panel:first-child { visibility: visible; opacity: 1; }
.install:has(#inst-2:checked) .pick-panel,
.install:has(#inst-3:checked) .pick-panel { visibility: hidden; opacity: 0; }
.install:has(#inst-2:checked) .pick-panel:nth-child(2),
.install:has(#inst-3:checked) .pick-panel:nth-child(3) { visibility: visible; opacity: 1; }

.install-note { margin: 0.7rem 0 0; font-size: 0.82rem; color: var(--muted); }
/* 설치 카드보다 조용해야 한다. 대부분의 방문자는 셸에 붙여 넣지 에이전트에
   붙여 넣지 않으므로, 있는 걸 알아볼 수는 있되 먼저 눈에 들어오면 안 된다. */
.install-agent { margin: 0.55rem 0 0; }
.agent-copy {
  display: inline-flex;
  align-items: center;
  gap: 0.34rem;
  white-space: nowrap;
  padding: 0.34rem 0.66rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: transparent;
  color: var(--muted);
  font: inherit;
  font-size: 0.78rem;
  line-height: 1.2;
  cursor: pointer;
  transition: color 0.15s, border-color 0.15s;
}
.agent-copy:hover { color: var(--ink); border-color: var(--ink-3); }
.agent-copy:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.agent-copy.is-done { color: var(--accent-ink); border-color: rgba(255, 140, 90, 0.55); }
.agent-copy svg { flex: none; }

.pick-panel > code {
  font-family: var(--mono);
  font-size: 0.92rem;
  font-weight: 700;
  color: var(--accent-ink);
  white-space: nowrap;
  overflow-x: auto;
  scrollbar-width: none;
}
/* 화면에서는 안 보이고 스크린리더에는 읽히는 것. fieldset의 legend가 그렇다 —
   눈으로는 버튼 행 자체가 무엇을 고르는지 말해 주지만, 소리로는 아니다. */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}
.inline { font-family: var(--mono); font-size: 0.85em; color: var(--accent-ink); }
.inst-copy {
  flex: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2rem;
  height: 2rem;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
}
.inst-copy:hover { color: var(--accent-ink); background: var(--panel-hi); }
.inst-copy:active { transform: scale(0.9); }
.inst-copy .i-check { display: none; }
.inst-copy.is-done .i-copy { display: none; }
.inst-copy.is-done .i-check { display: block; color: var(--accent-ink); }

/* ── 푸터 — docs와 같은 colophon. 마크업은 partials/colophon.html 하나를
   양쪽이 include하고, 여기서는 main.css의 .colophon 블록을 랜딩의 토큰
   (--line·--text·--muted·--wrap)으로 옮겨 적는다. 값의 근거는 main.css 쪽
   주석에 있다. docs의 회색 두 단(ink-2/ink-3)은 랜딩엔 --muted 하나라
   한 단으로 눕는다. */
.colophon {
  border-top: 1px solid var(--line);
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 2.5rem clamp(1.25rem, 4vw, 2.5rem) 3.5rem;
  font-size: 0.8125rem;
}
.colophon-grid {
  display: grid;
  grid-template-columns: minmax(0, 20rem) repeat(2, minmax(0, 9rem));
  justify-content: start;
  gap: clamp(1.5rem, 5vw, 4rem);
}
.colophon-mark {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--mono);
  font-size: 1.0625rem;
  font-weight: 600;
  letter-spacing: -0.03em;
  color: var(--muted);
}
.colophon-mark:hover { color: var(--text); text-decoration: none; }
.colophon-brand img { width: 1.7rem; height: 1.7rem; opacity: 0.6; }
:root[data-theme="dark"] .colophon-brand img { filter: invert(1); }
.colophon-brand p { margin: 0.6rem 0 0; max-width: 24rem; color: var(--muted); line-height: 1.6; }
.colophon h2 {
  margin: 0 0 0.7rem;
  font-family: var(--mono);
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}
.colophon ul { list-style: none; margin: 0; padding: 0; }
.colophon li + li { margin-top: 0.4rem; }
.colophon a { color: var(--muted); transition: color 0.14s ease; }
.colophon a:hover { color: var(--accent-ink); text-decoration: underline; }

/* ── 한국어: 자간·모노·대문자 장치를 한글에 적용하지 않는다 ── */
html[lang="ko"] .display { letter-spacing: 0; }
html[lang="ko"] .kicker { font-family: var(--sans); font-size: 0.85rem; }
html[lang="ko"] .colophon h2 { font-family: var(--sans); letter-spacing: -0.01em; text-transform: none; }
html[lang="ko"] h1, html[lang="ko"] h2, html[lang="ko"] h3 { word-break: keep-all; }
html[lang="ko"] .sub, html[lang="ko"] .note { word-break: keep-all; }

/* ── 반응형 ── */
@media (max-width: 62rem) {
  .bento { grid-template-columns: repeat(2, 1fr); }
  .t-bench { grid-column: span 2; }
  .nav-links > a:first-child { display: none; }
  .colophon-grid { grid-template-columns: minmax(0, 1fr); gap: 2rem; }
}
@media (max-width: 42rem) {
  .bento { grid-template-columns: 1fr; }
  .t-bench, .t-install, .t-demo { grid-column: span 1; }
  .meas { grid-template-columns: 3.9rem 1fr 6rem; gap: 0.5rem; }
  .display { font-size: clamp(2.3rem, 11vw, 3rem); }
  .blob { right: -16rem; opacity: 0.18; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .btn, .tile, .inst-copy { transition: none; }
  .blob { animation: none; }
}
