/* Volo 홈페이지 스타일. 색·모서리는 앱의 맥 모양(crates/cli/src/theme.rs)을 따른다:
   컨트롤 모서리 8, 상자 12, SemiBold 위계, 시스템 파랑. 라이트/다크는 OS 설정을 따른다. */
:root {
  --bg: #f3f3f5;
  --card: #ffffff;
  --ink: #1d1d1f;
  --weak: #656a70;
  --line: rgba(0, 0, 0, 0.09);
  --line-strong: rgba(0, 0, 0, 0.16);
  --accent: #007aff;
  --btn: #0071e3;
  --btn-press: #0062c4;
  --accent-text: #0066d6;
  --soft: #e2efff;
  --panel: #e9eef6;
  --ok: #1a7f37;
  --shadow: 0 1px 2px rgba(0, 0, 0, 0.06), 0 10px 30px rgba(20, 40, 80, 0.12);
  --img-filter: none;
  --r-ctl: 8px;
  --r-box: 12px;
  --r-stage: 20px;
  --font: "Pretendard Variable", Pretendard, -apple-system, BlinkMacSystemFont, "Apple SD Gothic Neo", "Malgun Gothic", "Noto Sans KR", system-ui, sans-serif;
  --mono: ui-monospace, "SF Mono", Menlo, Consolas, "D2Coding", monospace;
  color-scheme: light;
}
/* 다크: OS가 다크이고 명시적으로 라이트를 고르지 않았을 때 + 명시적으로 다크를 골랐을 때. 두 곳의 값은 같아야 한다 */
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #1b1b1d;
    --card: #2c2c2e;
    --ink: #f5f5f7;
    --weak: #98989d;
    --line: rgba(255, 255, 255, 0.1);
    --line-strong: rgba(255, 255, 255, 0.2);
    --accent: #0a84ff;
    --btn: #0b6fe8;
    --btn-press: #0a5fcb;
    --accent-text: #64aaff;
    --soft: #173a63;
    --panel: #232a36;
    --ok: #3fb950;
    --shadow: 0 1px 2px rgba(0, 0, 0, 0.4), 0 12px 32px rgba(0, 0, 0, 0.45);
    --img-filter: brightness(0.93);
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #1b1b1d;
  --card: #2c2c2e;
  --ink: #f5f5f7;
  --weak: #98989d;
  --line: rgba(255, 255, 255, 0.1);
  --line-strong: rgba(255, 255, 255, 0.2);
  --accent: #0a84ff;
  --btn: #0b6fe8;
  --btn-press: #0a5fcb;
  --accent-text: #64aaff;
  --soft: #173a63;
  --panel: #232a36;
  --ok: #3fb950;
  --shadow: 0 1px 2px rgba(0, 0, 0, 0.4), 0 12px 32px rgba(0, 0, 0, 0.45);
  --img-filter: brightness(0.93);
  color-scheme: dark;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; scroll-padding-top: 76px; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.65;
  word-break: keep-all;
  overflow-wrap: break-word;
  -webkit-font-smoothing: antialiased;
}
img, svg { max-width: 100%; }
a { color: var(--accent-text); }
a:focus-visible, button:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 4px; }
h1, h2, h3, p { margin: 0; }
.ic { width: 1.25em; height: 1.25em; flex: none; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.wrap { width: 100%; max-width: 1080px; margin-inline: auto; padding-inline: 20px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------- 머리글 ---------- */
.top {
  position: sticky; top: 0; z-index: 20;
  background: color-mix(in srgb, var(--bg) 82%, transparent);
  -webkit-backdrop-filter: saturate(180%) blur(16px);
  backdrop-filter: saturate(180%) blur(16px);
  border-bottom: 1px solid var(--line);
}
.top .wrap { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 56px; }
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--ink); text-decoration: none; font-weight: 700; font-size: 18px; letter-spacing: -0.01em; }
.brand .logo { width: 28px; height: 28px; display: block; }
.logo .tile { fill: var(--card); stroke: var(--line-strong); stroke-width: 14; }
.logo .plane { fill: var(--ink); }
.top-tools { display: flex; align-items: center; gap: 4px; }
.theme-btn {
  display: inline-flex; align-items: center; justify-content: center; width: 36px; height: 36px; padding: 0;
  border: 0; border-radius: var(--r-ctl); background: transparent; color: var(--ink); cursor: pointer;
}
.theme-btn:hover { background: var(--line); }
.theme-btn .ic { width: 20px; height: 20px; }
.nav { display: flex; align-items: center; gap: 2px; flex-wrap: wrap; justify-content: flex-end; }
.nav a { color: var(--ink); text-decoration: none; font-size: 14.5px; font-weight: 500; padding: 6px 10px; border-radius: var(--r-ctl); }
.nav a:hover { background: var(--line); }
.nav a[aria-current="page"] { color: var(--accent-text); }
.nav .cta { background: var(--btn); color: #fff; font-weight: 600; margin-left: 4px; }
.nav .cta:hover { background: var(--btn-press); }
@media (max-width: 560px) {
  .wrap { padding-inline: 16px; }
  .nav a { padding: 6px 7px; font-size: 13.5px; }
  .nav .hide-s { display: none; }
}

/* ---------- 버튼 ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 40px; padding: 0 16px; border-radius: var(--r-ctl);
  font: inherit; font-weight: 600; font-size: 15px; text-decoration: none; cursor: pointer;
  border: 1px solid var(--line-strong); background: var(--card); color: var(--ink);
}
.btn:hover { border-color: var(--accent); color: var(--accent-text); }

.dl {
  display: flex; align-items: center; gap: 12px; min-width: 0;
  padding: 12px 18px 12px 14px; border-radius: var(--r-box);
  background: var(--btn); color: #fff; text-decoration: none; border: 1px solid transparent;
  box-shadow: 0 1px 2px rgba(0, 60, 160, 0.25), 0 6px 18px rgba(0, 122, 255, 0.28);
  transition: transform 0.15s ease, background-color 0.15s ease, box-shadow 0.15s ease;
}
.dl .ic { width: 26px; height: 26px; }
.dl-t { display: flex; flex-direction: column; min-width: 0; line-height: 1.3; }
.dl-t b { font-weight: 650; font-size: 16px; }
.dl-t small { font-size: 13px; opacity: 0.85; }
.dl.ready:hover { background: var(--btn-press); transform: translateY(-1px); }
.dl[aria-disabled="true"] {
  background: var(--card); color: var(--weak); border: 1px dashed var(--line-strong);
  box-shadow: none; cursor: default;
}
.dl[aria-disabled="true"] .dl-t b { color: var(--ink); }
.dl-row { display: flex; flex-wrap: wrap; gap: 12px; }
.dl-row .dl { flex: 1 1 220px; }
.dl-row [data-me="1"] { order: -1; }

/* ---------- 첫 화면 ---------- */
.hero { padding: 56px 0 72px; }
.hero .wrap { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.08fr); gap: 56px; align-items: center; }
.hero h1 { font-size: clamp(34px, 5.2vw, 56px); line-height: 1.16; letter-spacing: -0.035em; font-weight: 750; text-wrap: balance; }
.hero h1 em { font-style: normal; color: var(--accent-text); }
.lead { margin-top: 20px; font-size: clamp(16px, 1.6vw, 18px); color: var(--weak); max-width: 34em; }
.hero .dl-row { margin-top: 30px; max-width: 520px; }
.req { margin-top: 14px; font-size: 13.5px; color: var(--weak); }

.stage {
  position: relative; border-radius: var(--r-stage); padding: 36px 28px 56px 28px;
  background:
    radial-gradient(120% 90% at 85% 0%, color-mix(in srgb, var(--accent) 16%, transparent), transparent 60%),
    var(--panel);
  border: 1px solid var(--line);
}
.stage .main { display: block; width: 86%; height: auto; border-radius: var(--r-box); box-shadow: var(--shadow); border: 1px solid var(--line); }
.stage .float {
  position: absolute; right: 5%; bottom: -26px; width: 34%; height: auto;
  border-radius: var(--r-box); box-shadow: var(--shadow); border: 1px solid var(--line);
}
.flight { position: absolute; left: 0; top: 0; width: 100%; height: 70px; pointer-events: none; overflow: hidden; border-radius: var(--r-stage) var(--r-stage) 0 0; }
.flight path.trail { fill: none; stroke: var(--accent); stroke-opacity: 0.45; stroke-width: 1.6; stroke-dasharray: 3 7; stroke-linecap: round; }
.flight .plane { fill: var(--accent); }
@media (max-width: 900px) {
  .hero { padding: 36px 0 56px; }
  .hero .wrap { grid-template-columns: minmax(0, 1fr); gap: 44px; }
}
@media (max-width: 480px) {
  .stage { padding: 30px 14px 44px; }
  .stage .float { bottom: -20px; }
}

/* ---------- 한눈에 ---------- */
.facts { padding: 8px 0 56px; }
.facts ul { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.facts li { background: var(--card); border: 1px solid var(--line); border-radius: var(--r-box); padding: 20px; }
.facts .ic { width: 22px; height: 22px; color: var(--accent-text); margin-bottom: 10px; }
.facts h3 { font-size: 16.5px; font-weight: 650; letter-spacing: -0.01em; margin-bottom: 4px; }
.facts p { font-size: 14.5px; color: var(--weak); }
@media (max-width: 800px) { .facts ul { grid-template-columns: minmax(0, 1fr); } }

/* ---------- 기능 소개 ---------- */
.show { padding: 56px 0; }
.show .wrap { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: 56px; align-items: center; }
.show.rev .copy { order: 2; }
.num { display: inline-flex; align-items: center; justify-content: center; width: 26px; height: 26px; border-radius: 7px; background: var(--soft); color: var(--accent-text); font-size: 13px; font-weight: 700; margin-bottom: 14px; }
.show h2 { font-size: clamp(26px, 3.4vw, 34px); line-height: 1.25; letter-spacing: -0.028em; font-weight: 720; text-wrap: balance; }
.show .copy > p { margin-top: 14px; color: var(--weak); max-width: 32em; }
.keys { margin: 20px 0 0; padding: 0; list-style: none; display: grid; gap: 10px; }
.keys li { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; font-size: 14.5px; }
.keys .what { flex: 0 0 100%; font-weight: 600; font-size: 14px; color: var(--ink); }
.os { font-size: 12px; font-weight: 600; color: var(--weak); border: 1px solid var(--line-strong); border-radius: 5px; padding: 0 7px; line-height: 20px; }
kbd { font-family: var(--mono); font-size: 0.84em; background: var(--card); border: 1px solid var(--line-strong); border-bottom-width: 2px; border-radius: 6px; padding: 1px 7px; white-space: nowrap; }
.note { margin-top: 18px; font-size: 14px; color: var(--weak); padding: 10px 14px; border-left: 3px solid var(--accent); background: color-mix(in srgb, var(--accent) 8%, transparent); border-radius: 0 var(--r-ctl) var(--r-ctl) 0; max-width: 34em; }
.panel {
  background: var(--panel); border: 1px solid var(--line); border-radius: var(--r-stage);
  padding: 28px; display: flex; flex-wrap: wrap; gap: 20px; align-items: center; justify-content: center;
}
.panel img { display: block; height: auto; border-radius: var(--r-box); box-shadow: var(--shadow); border: 1px solid var(--line); }
.panel figure { margin: 0; display: flex; flex-direction: column; gap: 8px; align-items: center; min-width: 0; max-width: 100%; }
.panel figure img { max-width: 100%; }
.panel figcaption { font-size: 12.5px; color: var(--weak); text-align: center; }
.panel .fit { width: 100%; }
.panel img, .stage img, .card img { filter: var(--img-filter); }
@media (max-width: 900px) {
  .show { padding: 40px 0; }
  .show .wrap { grid-template-columns: minmax(0, 1fr); gap: 28px; }
  .show.rev .copy { order: 0; }
}
@media (max-width: 480px) { .panel { padding: 16px; gap: 14px; } }

/* ---------- 그 밖에 ---------- */
.more { padding: 56px 0 24px; }
.more h2 { font-size: clamp(26px, 3.4vw, 34px); letter-spacing: -0.028em; font-weight: 720; text-align: left; margin-bottom: 24px; }
.cards { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--r-box); padding: 22px; }
.card .ic { width: 22px; height: 22px; color: var(--accent-text); margin-bottom: 10px; }
.card h3 { font-size: 17px; font-weight: 650; letter-spacing: -0.01em; margin-bottom: 6px; }
.card p { font-size: 14.5px; color: var(--weak); }
.card.wide { grid-column: 1 / -1; }
.card img { display: block; margin-top: 14px; height: auto; border-radius: var(--r-ctl); border: 1px solid var(--line); }
.rule { width: 100%; margin-top: 14px; border-collapse: separate; border-spacing: 0; font-size: 14px; border: 1px solid var(--line); border-radius: var(--r-ctl); overflow: hidden; }
.rule th, .rule td { text-align: left; padding: 9px 12px; vertical-align: top; border-bottom: 1px solid var(--line); }
.rule tr:last-child td { border-bottom: 0; }
.rule th { font-weight: 600; font-size: 12.5px; color: var(--weak); background: color-mix(in srgb, var(--ink) 4%, transparent); }
.rule code { font-family: var(--mono); font-size: 0.9em; }
.tbl-wrap { overflow-x: auto; }
@media (max-width: 760px) { .cards { grid-template-columns: minmax(0, 1fr); } }

/* ---------- 내려받기 ---------- */
.get { padding: 64px 0 80px; scroll-margin-top: 56px; }
.get-box { background: var(--card); border: 1px solid var(--line); border-radius: var(--r-stage); padding: 40px; box-shadow: var(--shadow); }
.get h2 { font-size: clamp(26px, 3.4vw, 34px); letter-spacing: -0.028em; font-weight: 720; }
.get .lead { margin-top: 10px; }
.os-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; margin-top: 28px; }
.os-card { border: 1px solid var(--line); border-radius: var(--r-box); padding: 20px; display: flex; flex-direction: column; gap: 14px; background: color-mix(in srgb, var(--ink) 2.5%, transparent); }
.os-card h3 { font-size: 18px; font-weight: 650; display: flex; align-items: center; gap: 10px; }
.os-card h3 .ic { color: var(--accent-text); }
.os-card h3 span { margin-left: auto; font-size: 13px; font-weight: 600; color: var(--weak); }
.os-card ul { margin: 0; padding-left: 1.1em; font-size: 14px; color: var(--weak); display: grid; gap: 6px; }
.os-card .dl { margin-top: auto; }
.foot-note { margin-top: 22px; font-size: 13.5px; color: var(--weak); }
@media (max-width: 760px) { .get-box { padding: 22px 16px; } .os-grid { grid-template-columns: minmax(0, 1fr); } }

/* ---------- 바닥글 ---------- */
.foot { border-top: 1px solid var(--line); padding: 28px 0 44px; font-size: 14px; color: var(--weak); }
.foot .wrap { display: flex; flex-wrap: wrap; gap: 12px 28px; justify-content: space-between; align-items: center; }
.foot nav { display: flex; flex-wrap: wrap; gap: 6px 20px; }
.foot a { color: var(--ink); text-decoration: none; font-weight: 500; }
.foot a:hover { color: var(--accent-text); text-decoration: underline; }

/* ---------- 변경 내역 ---------- */
.page-head { padding: 48px 0 20px; }
.page-head h1 { font-size: clamp(30px, 4.4vw, 44px); line-height: 1.2; letter-spacing: -0.032em; font-weight: 750; }
.page-head p { margin-top: 12px; color: var(--weak); max-width: 36em; }
.filters { display: flex; flex-wrap: wrap; gap: 8px; margin: 22px 0 8px; }
.chip { font: inherit; font-size: 14px; font-weight: 600; min-height: 34px; padding: 0 14px; border-radius: 999px; border: 1px solid var(--line-strong); background: var(--card); color: var(--ink); cursor: pointer; }
.chip[aria-pressed="true"] { background: var(--btn); border-color: var(--btn); color: #fff; }
.log { padding-bottom: 80px; }
.log-state { margin-top: 24px; padding: 36px 20px; text-align: center; color: var(--weak); background: var(--card); border: 1px dashed var(--line-strong); border-radius: var(--r-box); }
.entries { list-style: none; margin: 16px 0 0; padding: 0; display: grid; gap: 16px; }
.entry { background: var(--card); border: 1px solid var(--line); border-radius: var(--r-box); padding: 22px; }
.entry header { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 12px; margin-bottom: 4px; }
.entry h2 { font-size: 22px; font-weight: 700; letter-spacing: -0.02em; }
.entry .build { font-family: var(--mono); font-size: 13px; color: var(--weak); }
.entry time { margin-left: auto; font-size: 13.5px; color: var(--weak); }
.badge { font-size: 12px; font-weight: 650; padding: 1px 9px; border-radius: 999px; background: var(--soft); color: var(--accent-text); }
.badge.win { background: color-mix(in srgb, var(--ok) 16%, transparent); color: var(--ok); }
.notes { margin-top: 10px; font-size: 15px; }
.notes > :first-child { margin-top: 0; }
.notes ul, .notes ol { padding-left: 1.3em; margin: 6px 0; }
.notes li { margin: 3px 0; }
.notes p { margin: 8px 0; }
.notes h1, .notes h2, .notes h3, .notes h4 { font-size: 15.5px; margin: 14px 0 4px; font-weight: 650; }
.notes code { font-family: var(--mono); font-size: 0.9em; background: var(--soft); padding: 0 5px; border-radius: 4px; }
.notes img { max-width: 100%; height: auto; }

/* ---------- 나타나기 (JS가 켜졌을 때만 숨겼다가 보여 줌) ---------- */
.js .rv { opacity: 0; transform: translateY(14px); transition: opacity 0.6s ease, transform 0.6s ease; }
.js .rv.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js .rv { opacity: 1; transform: none; transition: none; }
  .dl { transition: none; }
  .dl.ready:hover { transform: none; }
}
