:root {
  --bg: #f6f7f9;
  --surface: #ffffff;
  --surface-2: #f0f2f5;
  --line: #e3e6eb;
  --fg: #16181d;
  --fg-2: #4b5260;
  --fg-3: #8a909c;
  --accent: #1f62e0;
  --accent-hover: #1a54c2;
  --accent-ink: #ffffff;
  --accent-soft: #e8f0fe;
  --warn: #9a6200;
  --warn-soft: #fef4dc;
  --teal: #12857a;
  --teal-soft: #e0f3f1;
  --violet: #6b4fd8;
  --violet-soft: #eeeafd;
  --shadow: 0 1px 2px rgb(16 24 40 / 0.06), 0 12px 32px -12px rgb(16 24 40 / 0.18);
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0f1115;
    --surface: #171a20;
    --surface-2: #1f232b;
    --line: #2c313a;
    --fg: #eceef2;
    --fg-2: #b4bac5;
    --fg-3: #7f8693;
    --accent: #7aa7ff;
    --accent-hover: #93b8ff;
    --accent-ink: #0b1630;
    --accent-soft: #1b2740;
    --warn: #f2c063;
    --warn-soft: #33290f;
    --teal: #4fd1c1;
    --teal-soft: #12302d;
    --violet: #ab98ff;
    --violet-soft: #251f42;
    --shadow: 0 1px 2px rgb(0 0 0 / 0.4), 0 12px 32px -12px rgb(0 0 0 / 0.6);
    color-scheme: dark;
  }
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 72px; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font-family: "Pretendard Variable", Pretendard, -apple-system, BlinkMacSystemFont, "Apple SD Gothic Neo", "Noto Sans KR", "Malgun Gothic", sans-serif;
  line-height: 1.6;
  word-break: keep-all;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; }
img { display: block; }
code { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 0.88em; background: var(--surface-2); border-radius: 6px; padding: 0.1em 0.4em; }
svg { fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }

/* 상단 */
.top {
  position: sticky; top: 0; z-index: 10;
  display: flex; align-items: center; gap: 24px;
  padding: 12px max(16px, calc((100% - 1120px) / 2));
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; font-size: 17px; }
.top nav { display: flex; gap: 20px; margin-left: auto; font-size: 14px; color: var(--fg-2); }
.top nav a { text-decoration: none; }
.top nav a:hover { color: var(--fg); }

/* 버튼 */
.button {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: 48px; padding: 0 22px; border-radius: 12px;
  background: var(--accent); color: var(--accent-ink);
  font-weight: 700; font-size: 15px; text-decoration: none; white-space: nowrap;
  transition: background 0.15s;
}
.button:hover { background: var(--accent-hover); }
.button svg { width: 18px; height: 18px; stroke-width: 2.2; }
.button.small { height: 38px; padding: 0 16px; font-size: 14px; border-radius: 10px; }
.button.ghost { background: var(--surface); color: var(--fg); border: 1px solid var(--line); }
.button.ghost:hover { background: var(--surface-2); }
.button[data-pending] { background: var(--surface-2); color: var(--fg-2); border: 1px solid var(--line); }
.button[data-pending]:hover { background: var(--surface); }
.text-link { display: inline-block; margin-top: 4px; color: var(--accent); font-weight: 600; text-decoration: none; }
.text-link[aria-disabled="true"] { color: var(--fg-3); cursor: not-allowed; }

main > section { padding: 72px max(16px, calc((100% - 1120px) / 2)); }
.section-head { max-width: 640px; margin-bottom: 36px; }
.section-head h2 { margin: 6px 0 8px; font-size: clamp(26px, 4vw, 34px); line-height: 1.3; letter-spacing: -0.02em; }
.section-head p { margin: 0; color: var(--fg-2); }
.eyebrow { display: inline-block; font-size: 13px; font-weight: 700; color: var(--accent); letter-spacing: 0.02em; }

/* 첫 화면 */
.hero { display: grid; grid-template-columns: 1.05fr 1fr; gap: 48px; align-items: center; padding-top: 64px !important; }
.hero h1 { margin: 10px 0 16px; font-size: clamp(32px, 5.2vw, 52px); line-height: 1.22; letter-spacing: -0.03em; }
.hero mark { background: linear-gradient(transparent 60%, var(--accent-soft) 60%); color: var(--accent); padding: 0 2px; }
.lead { font-size: 18px; color: var(--fg-2); margin: 0 0 28px; }
.lead b { color: var(--fg); }
.actions { display: flex; flex-wrap: wrap; gap: 10px; }
.status { margin: 14px 0 0; font-size: 14px; color: var(--fg-3); }
.trust { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; padding: 0; margin: 22px 0 0; }
.trust li { font-size: 13px; color: var(--fg-2); background: var(--surface); border: 1px solid var(--line); border-radius: 999px; padding: 4px 12px; }

.hero-visual { position: relative; padding-bottom: 56px; }
.app {
  display: grid; grid-template-columns: 1fr auto 1fr; gap: 12px; align-items: center;
  background: var(--surface); border: 1px solid var(--line); border-radius: 18px; padding: 14px; box-shadow: var(--shadow);
}
.pane { border: 1px solid var(--line); border-radius: 12px; overflow: hidden; background: var(--surface); }
.pane-head { display: flex; align-items: center; gap: 8px; padding: 8px 10px; font-size: 12px; font-weight: 600; border-top: 3px solid; }
.pane-head.teal { border-color: var(--teal); background: var(--teal-soft); }
.pane-head.violet { border-color: var(--violet); background: var(--violet-soft); }
.pane-head .dot { width: 8px; height: 8px; border-radius: 50%; background: currentColor; opacity: 0.6; }
.row { position: relative; padding: 8px 10px 8px 32px; font-size: 13px; border-top: 1px solid var(--line); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.row::before { content: ""; position: absolute; left: 10px; top: 50%; width: 14px; height: 11px; transform: translateY(-50%); border-radius: 2px; }
.row.folder::before { background: #f5b83d; }
.row.file::before { width: 11px; height: 14px; background: var(--surface-2); border: 1.5px solid var(--fg-3); }
.row.sel { background: var(--teal-soft); font-weight: 600; }
.row.drop { background: var(--accent-soft); outline: 2px dashed var(--accent); outline-offset: -3px; }
.row em { font-style: normal; font-size: 11px; color: var(--accent); margin-left: 6px; }
.middle { display: flex; flex-direction: column; gap: 8px; }
.chip { font-size: 12px; font-weight: 700; padding: 8px 10px; border-radius: 10px; background: var(--accent); color: var(--accent-ink); text-align: center; }
.chip.ghost { background: var(--surface-2); color: var(--fg-2); }
.tray {
  position: absolute; right: -8px; bottom: 0; width: 250px;
  background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 12px 14px; box-shadow: var(--shadow);
}
.tray-title { font-size: 13px; font-weight: 700; }
.bar { height: 6px; border-radius: 99px; background: var(--surface-2); margin: 8px 0 6px; overflow: hidden; }
.bar span { display: block; width: 71%; height: 100%; background: var(--accent); border-radius: inherit; }
.tray-meta { display: flex; justify-content: space-between; font-size: 12px; color: var(--fg-3); }

/* 기능 */
.cards { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: 16px; padding: 22px; }
.card h3 { margin: 14px 0 6px; font-size: 17px; }
.card p { margin: 0; color: var(--fg-2); font-size: 14.5px; }
.card p b { color: var(--fg); }
.card code { display: block; margin-top: 12px; padding: 8px 10px; line-height: 1.7; }
.ico { display: inline-flex; width: 42px; height: 42px; align-items: center; justify-content: center; border-radius: 12px; background: var(--accent-soft); color: var(--accent); }
.ico svg { width: 22px; height: 22px; }

/* 안전 */
.safety { background: var(--surface); border-block: 1px solid var(--line); }
.safe-list { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px 28px; list-style: none; padding: 0; margin: 0; }
.safe-list li { display: flex; flex-direction: column; gap: 4px; padding: 18px 0 18px 36px; border-top: 1px solid var(--line); position: relative; }
.safe-list li::before {
  content: ""; position: absolute; left: 0; top: 20px; width: 22px; height: 22px; border-radius: 50%;
  background: var(--accent-soft) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%231f62e0' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 12 4 4 8-8'/%3E%3C/svg%3E") center / 14px no-repeat;
}
.safe-list b { font-size: 16px; }
.safe-list span { color: var(--fg-2); font-size: 14.5px; }

/* 설치 */
.steps { list-style: none; counter-reset: step; padding: 0; margin: 0; display: grid; gap: 14px; max-width: 820px; }
.steps > li { counter-increment: step; position: relative; background: var(--surface); border: 1px solid var(--line); border-radius: 16px; padding: 20px 22px 20px 70px; }
.steps > li::before {
  content: counter(step); position: absolute; left: 22px; top: 20px; width: 32px; height: 32px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center; background: var(--accent); color: var(--accent-ink); font-weight: 800;
}
.steps h3 { margin: 2px 0 6px; font-size: 17px; }
.steps p { margin: 0 0 6px; color: var(--fg-2); font-size: 14.5px; }
.steps p b { color: var(--fg); }
.warn { background: var(--warn-soft); color: var(--warn) !important; border-radius: 10px; padding: 8px 12px; margin-top: 10px !important; font-weight: 600; }
.env { margin: 12px 0 0; display: grid; gap: 6px; }
.env div { display: grid; grid-template-columns: 210px 1fr; gap: 12px; font-size: 14px; background: var(--surface-2); border-radius: 10px; padding: 8px 12px; }
.env dt { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-weight: 700; font-size: 13px; }
.env dd { margin: 0; color: var(--fg-2); }

/* 업데이트 */
.update { background: var(--surface); border-block: 1px solid var(--line); }
.update-steps { list-style: none; counter-reset: up; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.update-steps li { counter-increment: up; background: var(--bg); border: 1px solid var(--line); border-radius: 14px; padding: 16px; font-size: 14.5px; color: var(--fg-2); }
.update-steps li::before { content: counter(up); display: block; font-size: 26px; font-weight: 800; color: var(--accent); margin-bottom: 4px; }
.update-steps b { color: var(--fg); font-weight: 600; }
.note { max-width: 820px; margin: 20px 0 0; font-size: 14px; color: var(--fg-3); }

/* 도움말 */
.faq details { max-width: 820px; background: var(--surface); border: 1px solid var(--line); border-radius: 14px; margin-bottom: 10px; }
.faq summary { cursor: pointer; padding: 16px 20px; font-weight: 700; list-style: none; position: relative; padding-right: 48px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 20px; top: 50%; transform: translateY(-50%); font-size: 22px; font-weight: 400; color: var(--fg-3); }
.faq details[open] summary::after { content: "−"; }
.faq details p { margin: 0; padding: 0 20px 18px; color: var(--fg-2); }

/* 바닥 */
.foot {
  display: flex; flex-wrap: wrap; align-items: center; gap: 12px 28px;
  padding: 28px max(16px, calc((100% - 1120px) / 2)); border-top: 1px solid var(--line);
  font-size: 14px; color: var(--fg-2);
}
.foot div { display: flex; align-items: center; gap: 8px; }
.foot div:first-child span { color: var(--fg-3); }
.foot b { color: var(--fg); }
.foot a { margin-left: auto; color: var(--accent); font-weight: 600; text-decoration: none; }

:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 6px; }

@media (max-width: 960px) {
  .hero { grid-template-columns: 1fr; }
  .cards { grid-template-columns: repeat(2, 1fr); }
  .update-steps { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 640px) {
  .top { gap: 12px; }
  .top nav { display: none; }
  .top .button.small { margin-left: auto; }
  main > section { padding-top: 52px; padding-bottom: 52px; }
  .hero { padding-top: 36px !important; gap: 32px; }
  .lead { font-size: 16px; }
  .actions .button { flex: 1 1 100%; }
  .app { grid-template-columns: 1fr; }
  .middle { flex-direction: row; justify-content: center; }
  .tray { position: static; width: auto; margin-top: 12px; }
  .hero-visual { padding-bottom: 0; }
  .cards, .safe-list, .update-steps { grid-template-columns: 1fr; }
  .steps > li { padding: 18px 18px 18px 60px; }
  .steps > li::before { left: 16px; }
  .env div { grid-template-columns: 1fr; gap: 2px; }
  .foot a { margin-left: 0; }
}
