:root {
  color-scheme: light;
  --bg: #eef2f9; --surface: #ffffff; --border: #eeeeee; --border-strong: #e2e2e2;
  --text: #0f0f0f; --text-sub: #58616f; --text-mute: #5f6878; --black: #0f0f0f;
  --danger: #e5484d; --danger-strong: #c0292e;
  --radius-lg: 24px; --radius: 18px; --radius-sm: 14px;
  --shadow: 0 1px 2px rgba(15,15,15,.03), 0 8px 24px rgba(15,15,15,.04);
  --shadow-sm: 0 1px 2px rgba(15,15,15,.04);
  --brand: #3355e5; --brand-hover: #2a45cc; --brand-soft: #eef2fe; --accent: var(--brand);
  --font: "Pretendard Variable", Pretendard, -apple-system, BlinkMacSystemFont,
    system-ui, "Segoe UI", "Apple SD Gothic Neo", "Malgun Gothic", sans-serif;
  --mono: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  --page-w: 880px;
}

* { box-sizing: border-box; }
html, body { height: 100%; }
html { scroll-behavior: smooth; }
body {
  margin: 0; background: var(--bg); position: relative; color: var(--text);
  font-family: var(--font); font-size: 15px; line-height: 1.55;
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
  word-break: keep-all; overflow-wrap: break-word;
}
h1, h2, h3, h4 { margin: 0; font-weight: 800; letter-spacing: -0.02em; line-height: 1.25; }
p { margin: 0; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; font-size: inherit; color: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
::selection { background: var(--accent); color: #fff; }
svg.i { flex: none; display: block; }

body::before, body::after {
  content: ""; position: fixed; inset: -24%; z-index: 0; pointer-events: none;
  will-change: transform; backface-visibility: hidden;
}
body::before {
  background:
    linear-gradient(115deg, rgba(255,255,255,0) 18%, rgba(255,255,255,.2) 50%, rgba(255,255,255,0) 82%),
    radial-gradient(52vmax 48vmax at 12% 20%, rgba(51,85,229,.3), transparent 70%),
    radial-gradient(50vmax 46vmax at 86% 84%, rgba(34,197,235,.26), transparent 70%),
    radial-gradient(34vmax 34vmax at 50% 46%, rgba(255,255,255,.5), transparent 74%);
  animation: bg-flow-a 38s linear infinite;
}
body::after {
  background:
    radial-gradient(46vmax 44vmax at 84% 12%, rgba(124,123,245,.24), transparent 72%),
    radial-gradient(44vmax 42vmax at 16% 88%, rgba(99,161,255,.22), transparent 72%);
  animation: bg-flow-b 55s linear infinite;
}
@keyframes bg-flow-a {
  from { transform: rotate(0deg) translateX(8%) rotate(0deg) scale(1.08); }
  to { transform: rotate(360deg) translateX(8%) rotate(-360deg) scale(1.08); }
}
@keyframes bg-flow-b {
  from { transform: rotate(0deg) translateX(10%) rotate(0deg) scale(1.1); }
  to { transform: rotate(-360deg) translateX(10%) rotate(360deg) scale(1.1); }
}
.app { position: relative; z-index: 1; min-height: 100%; display: flex; flex-direction: column; }

.card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); box-shadow: var(--shadow); }

.gbtn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  border: 1px solid transparent; border-radius: 999px; background: var(--black); color: #fff;
  font-weight: 700; letter-spacing: -0.01em; white-space: nowrap; cursor: pointer; text-decoration: none;
  transition: transform .12s ease, opacity .12s ease, background .12s ease, border-color .12s ease;
}
.gbtn:active { transform: scale(.985); }
.gbtn--lg { height: 54px; padding: 0 30px; font-size: 16px; }
.gbtn--block { display: flex; width: 100%; }
.gbtn--primary { background: var(--brand); color: #fff; }
.gbtn--primary:hover { background: var(--brand-hover); }

.brand-mark { display: block; flex: none; width: 28px; height: 28px; }
.brand-mark svg { display: block; width: 100%; height: 100%; }

.lnav {
  position: fixed; top: calc(16px + env(safe-area-inset-top)); left: 0; right: 0; z-index: 40;
  display: flex; justify-content: center; padding: 0 20px; pointer-events: none;
}
.lnav__inner {
  position: relative; display: flex; align-items: center; gap: 18px;
  width: 100%; max-width: calc(var(--page-w) + 20px); height: 56px; padding: 0 10px 0 18px;
  border: 1px solid transparent; border-radius: 999px; pointer-events: auto;
  transition: max-width .45s cubic-bezier(.22,1,.36,1), background .35s ease, border-color .35s ease, box-shadow .35s ease;
}
.lnav.is-condensed .lnav__inner {
  max-width: 680px; background: rgba(255,255,255,.72); border-color: rgba(255,255,255,.8);
  box-shadow: 0 10px 30px rgba(30,41,59,.1);
}
.lnav__inner::before {
  content: ""; position: absolute; inset: 0; z-index: 0; border-radius: inherit; pointer-events: none; opacity: 0;
  backdrop-filter: blur(18px) saturate(150%); -webkit-backdrop-filter: blur(18px) saturate(150%);
  transition: opacity .35s ease;
}
.lnav.is-condensed .lnav__inner::before { opacity: 1; }
.lnav__inner > * { position: relative; z-index: 1; }
.lnav__brand {
  display: flex; align-items: center; gap: 9px; min-height: 44px; padding: 6px 0;
  font-weight: 800; font-size: 19px; line-height: normal; letter-spacing: -0.035em; white-space: nowrap;
}
.lnav__brand .brand-mark { width: 26px; height: 26px; }
.lnav__divider { width: 1px; height: 18px; background: var(--border-strong); }
.lnav__links { display: flex; align-items: center; gap: 4px; }
.lnav__links a {
  padding: 7px 12px; border-radius: 999px; font-size: 14px; font-weight: 600; color: var(--text-sub);
  transition: color .15s ease, background .15s ease;
}
.lnav__links a:hover { color: var(--text); background: rgba(15,15,15,.05); }
.lnav__actions { display: flex; align-items: center; gap: 18px; margin-left: auto; }
.gbtn--sm { height: 38px; padding: 0 16px; font-size: 14px; }
.lnav__brand:focus-visible, .lnav__links a:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: var(--radius-sm); }

.gbtn:focus-visible, .center__brand:focus-visible, .pill:focus-visible,
.pcard:focus-visible, .prow:focus-visible {
  outline: 2px solid var(--accent); outline-offset: 3px;
}

.page { flex: 1; width: 100%; max-width: calc(var(--page-w) + 80px); margin: 0 auto; padding: calc(128px + env(safe-area-inset-top)) 40px 80px; }

.head__mark { width: 64px; height: 64px; }
.head__title { margin-top: 20px; font-size: 40px; letter-spacing: -0.03em; }
.head__meta { display: flex; flex-wrap: wrap; gap: 8px 16px; margin-top: 14px; color: var(--text-mute); font-size: 13px; font-weight: 600; }
.head__meta span { display: inline-flex; align-items: center; gap: 6px; }

.db { margin-top: 48px; }
.db__head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 16px; }
.db__title { display: flex; align-items: baseline; gap: 8px; font-size: 20px; }
.db__count { color: var(--text-mute); font-size: 14px; font-weight: 700; letter-spacing: 0; }

.pills { display: flex; flex-wrap: wrap; gap: 6px; }
.pill {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  min-height: 38px; padding: 9px 14px; border: 1px solid var(--border); border-radius: 999px;
  background: #fff; color: var(--text-sub); font-size: 13.5px; font-weight: 700; line-height: 1; cursor: pointer;
  transition: background .12s ease, color .12s ease, border-color .12s ease;
}
.pill:hover:not(.is-active) { color: var(--text); background: rgba(15,15,15,.05); }
.pill.is-active { background: var(--black); border-color: var(--black); color: #fff; }

.gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 16px; }
.pcard {
  display: flex; flex-direction: column; overflow: hidden;
  transition: border-color .15s ease, transform .15s ease;
}
.pcard__cover { height: 120px; display: grid; place-items: center; background: var(--brand-soft); }
.pcard__cover .brand-mark { width: 56px; height: 56px; }
.pcard__body { display: flex; flex-direction: column; flex: 1; padding: 18px 20px 20px; }
.pcard__name { font-size: 18px; }
.pcard__desc {
  margin-top: 6px; color: var(--text-sub); font-size: 14px;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.pcard__props { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 14px; margin-top: auto; padding-top: 14px; }
.pcard:hover { border-color: var(--border-strong); }
@media (hover: hover) { .pcard:hover { transform: translateY(-2px); } }

.addr { font-size: 13px; color: var(--text-mute); overflow-wrap: anywhere; }

.list { overflow: hidden; }
.prow {
  display: grid; grid-template-columns: 40px minmax(0, 1fr) auto 18px; gap: 14px; align-items: center;
  padding: 14px 20px; border-bottom: 1px solid var(--border); transition: background .12s ease;
}
.prow:last-child { border-bottom: none; }
.prow:hover, .prow:active { background: #fcfcfc; }
.prow__icon { width: 40px; height: 40px; display: grid; place-items: center; border-radius: var(--radius-sm); background: var(--brand-soft); transition: transform .15s ease; }
.prow__icon .brand-mark { width: 24px; height: 24px; }
@media (hover: hover) { .prow:hover .prow__icon { transform: translateY(-1px) scale(1.04); } }
.prow__text { min-width: 0; }
.prow__name { display: block; font-weight: 700; }
.prow__desc { display: block; color: var(--text-mute); font-size: 12.5px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.prow__go { color: var(--text-mute); }

[hidden] { display: none !important; }

.foot { padding: 0 40px 56px; font-size: 13px; color: var(--text-sub); }
.foot__inner { max-width: var(--page-w); margin: 0 auto; padding-top: 26px; border-top: 1px solid var(--border); display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 16px; }
.foot__brand { font-weight: 800; color: var(--text); }
.foot__links { display: flex; align-items: center; flex-wrap: wrap; gap: 8px 18px; }
.foot__links a { font-weight: 600; color: var(--text-sub); transition: color .15s ease; }
.foot__links a:hover { color: var(--text); }
.foot__links a:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 4px; }
.foot__copy { font-size: 12.5px; color: var(--text-mute); }

.center { flex: 1; display: grid; place-items: center; padding: 24px; }
.center__box { width: 100%; max-width: 420px; }
.center__brand { display: flex; align-items: center; justify-content: center; gap: 10px; margin-bottom: 26px; padding: 4px 8px; border-radius: var(--radius-sm); font-size: 26px; font-weight: 800; line-height: normal; letter-spacing: -0.035em; }
.center__brand .brand-mark { width: 34px; height: 34px; }
.center__card { padding: 36px 32px; text-align: center; box-shadow: 0 20px 60px rgba(15,15,15,.07); }
.center__icon { display: grid; place-items: center; color: var(--brand); }
.center__title { margin-top: 16px; font-size: 26px; }
.center__desc { margin-top: 10px; color: var(--text-sub); font-size: 14px; }
.center__path { margin-top: 14px; padding: 10px 12px; border-radius: var(--radius-sm); background: #f7f7f7; font-size: 13px; color: var(--text-sub); overflow-wrap: anywhere; }
.center__card .gbtn { margin-top: 28px; }

@media (max-width: 760px) {
  .lnav__links, .lnav__divider { display: none; }
  .lnav__inner { padding-left: 14px; }
  .page { padding: calc(100px + env(safe-area-inset-top)) 20px 56px; }
  .head__mark { width: 56px; height: 56px; }
  .head__title { font-size: 30px; }
  .prow { grid-template-columns: 36px minmax(0, 1fr) 18px; gap: 10px; padding: 12px 14px; }
  .prow__icon { width: 36px; height: 36px; }
  .prow .addr { display: none; }
  .foot { padding: 0 20px calc(40px + env(safe-area-inset-bottom)); }
  .foot__inner { flex-direction: column; align-items: flex-start; gap: 10px; }
  .center { padding: 20px; }
  .center__card { padding: 28px 22px; }
  .center__title { font-size: 22px; }
}

@media (max-width: 760px), (hover: none) {
  .gbtn--sm { height: 44px; }
  .pill { min-height: 42px; padding: 10px 15px; font-size: 14px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .lnav__inner { transition: none; }
  body::before, body::after { animation: none; }
  .gbtn, .pill, .pcard, .prow, .prow__icon { transition: none; }
  .gbtn:active, .pcard:hover, .prow:hover .prow__icon { transform: none; }
}

.head__actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 24px; }
.gbtn--md { height: 46px; padding: 0 22px; font-size: 15px; }

.sec { margin-top: 48px; scroll-margin-top: 96px; }
.sec__title { display: flex; align-items: baseline; gap: 8px; margin-bottom: 16px; font-size: 20px; }

.cmds { overflow: hidden; }
.cmd {
  display: grid; grid-template-columns: 40px minmax(0, 1fr); gap: 14px; align-items: center;
  padding: 14px 20px; border-bottom: 1px solid var(--border);
}
.cmd:last-child { border-bottom: none; }
.cmd__icon { width: 40px; height: 40px; display: grid; place-items: center; border-radius: var(--radius-sm); background: var(--brand-soft); color: var(--brand); }
.cmd__name { display: block; font-weight: 700; }
.cmd__desc { display: block; color: var(--text-sub); font-size: 13.5px; }

.feats { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 16px; }
.feat { padding: 20px; }
.feat__icon { width: 40px; height: 40px; display: grid; place-items: center; border-radius: var(--radius-sm); background: var(--brand-soft); color: var(--brand); }
.feat__name { margin-top: 14px; font-size: 16px; }
.feat__desc { margin-top: 6px; color: var(--text-sub); font-size: 14px; }


@media (max-width: 760px) {
  .head__actions .gbtn { flex: 1; }
  .cmd { gap: 10px; padding: 12px 14px; }
  .cmd__icon { width: 36px; height: 36px; }
}
