/* ==========================================================================
   Lamp — 디자인 시스템
   산세리프만 사용한다. 궁서·세리프 폴백 없음.
   ========================================================================== */

:root {
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", "Pretendard", "Apple SD Gothic Neo",
    "Malgun Gothic", "Noto Sans KR", system-ui, sans-serif;
  --mono: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, "Liberation Mono", monospace;

  --brand: #f0a81e;
  --brand-strong: #d98d05;
  --brand-soft: #fdf3d8;
  --btn-brand: #f2ab27;
  --btn-brand-hover: #e3a01a;
  --glow: rgba(255, 205, 60, 0.55);

  --bg: #f6f4ee;
  --bg-grad: radial-gradient(120% 80% at 78% -10%, #fff8e2 0%, rgba(255, 248, 226, 0) 58%),
             radial-gradient(90% 70% at 0% 0%, #f2efe6 0%, rgba(242, 239, 230, 0) 60%);
  --surface: #fffdf9;
  --surface-2: #fbf9f3;
  --surface-3: #f2efe6;
  --ink: #17150f;
  --ink-2: #5f5949;
  --ink-3: #8d8575;
  --line: #e7e1d3;
  --line-2: #d9d2c1;
  --ok: #0f7b6c;
  --ok-soft: #e3f4ef;
  --bad: #b4392a;
  --bad-soft: #fbeae6;
  --warn: #a96a10;
  --warn-soft: #fdf1dc;
  --info: #2d5b8e;
  --info-soft: #e8f0f9;

  --shadow-sm: 0 1px 2px rgba(38, 30, 10, .06), 0 1px 1px rgba(38, 30, 10, .04);
  --shadow: 0 12px 30px -18px rgba(52, 40, 12, .35), 0 2px 6px -3px rgba(52, 40, 12, .16);
  --shadow-lg: 0 32px 70px -40px rgba(52, 40, 12, .5);

  --r-sm: 9px;
  --r: 13px;
  --r-lg: 18px;
  --r-xl: 24px;

  --side-w: 250px;
  color-scheme: light;
}

[data-theme="dark"] {
  --brand: #ffc84a;
  --brand-strong: #ffd870;
  --brand-soft: #2c2413;
  --btn-brand: #ffc84a;
  --btn-brand-hover: #f2ba36;
  --glow: rgba(255, 200, 74, 0.4);

  --bg: #100f0c;
  --bg-grad: radial-gradient(120% 80% at 80% -10%, #241f10 0%, rgba(36, 31, 16, 0) 55%),
             radial-gradient(90% 70% at 0% 0%, #17150f 0%, rgba(23, 21, 15, 0) 60%);
  --surface: #17150f;
  --surface-2: #1c1a13;
  --surface-3: #232018;
  --ink: #f7f2e6;
  --ink-2: #bdb5a3;
  --ink-3: #8d8677;
  --line: #2b271d;
  --line-2: #3a3427;
  --ok: #57c9b3;
  --ok-soft: #14261f;
  --bad: #ef8a72;
  --bad-soft: #2b1815;
  --warn: #eab463;
  --warn-soft: #2a2113;
  --info: #8ab6e6;
  --info-soft: #16202c;

  --shadow-sm: 0 1px 2px rgba(0, 0, 0, .4);
  --shadow: 0 16px 36px -22px rgba(0, 0, 0, .8), 0 2px 8px -4px rgba(0, 0, 0, .5);
  --shadow-lg: 0 40px 80px -48px rgba(0, 0, 0, .9);
  color-scheme: dark;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }

html, body { height: 100%; }

body {
  margin: 0;
  font-family: var(--font);
  background: var(--bg);
  background-image: var(--bg-grad);
  background-attachment: fixed;
  color: var(--ink);
  font-size: 14px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  letter-spacing: -0.006em;
}

a { color: inherit; text-decoration: none; }
button, input, textarea, select { font: inherit; color: inherit; }
button { cursor: pointer; }
img { max-width: 100%; display: block; }
svg { fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
h1, h2, h3, h4 { letter-spacing: -0.025em; margin: 0; font-weight: 650; }
code, pre, kbd { font-family: var(--mono); }
::selection { background: var(--brand-soft); color: var(--ink); }

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

/* ---------------------------------------------------------------- 스크롤 */
* { scrollbar-width: thin; scrollbar-color: var(--line-2) transparent; }
*::-webkit-scrollbar { width: 10px; height: 10px; }
*::-webkit-scrollbar-thumb { background: var(--line-2); border-radius: 8px; border: 3px solid transparent; background-clip: content-box; }

/* ---------------------------------------------------------------- 레이아웃 */
.app {
  display: grid;
  grid-template-columns: var(--side-w) minmax(0, 1fr);
  min-height: 100vh;
}

.sidebar {
  position: sticky;
  top: 0;
  height: 100vh;
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 18px 14px 14px;
  border-right: 1px solid var(--line);
  background: color-mix(in srgb, var(--surface) 72%, transparent);
  backdrop-filter: blur(14px) saturate(1.1);
  z-index: 40;
}

.sidebar__head { display: flex; align-items: center; justify-content: space-between; padding: 4px 8px 16px; }
.icon-btn.sidebar__close { display: none; }

.brand { display: inline-flex; align-items: center; gap: 9px; }
.brand__orb { filter: drop-shadow(0 0 9px var(--glow)); }
.brand__word { font-size: 20px; font-weight: 700; letter-spacing: -0.03em; }

.nav { display: flex; flex-direction: column; gap: 2px; flex: 1; overflow-y: auto; padding-bottom: 8px; }
.nav__label {
  font-size: 10.5px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase;
  color: var(--ink-3); padding: 16px 10px 6px;
}
.nav__item {
  display: flex; align-items: center; gap: 11px;
  padding: 9px 11px; border-radius: 10px; color: var(--ink-2);
  font-size: 13.5px; font-weight: 550; border: 0; background: none; width: 100%; text-align: left;
  transition: background .14s, color .14s;
}
.nav__item svg { width: 18px; height: 18px; flex: none; opacity: .82; }
.nav__item:hover { background: var(--surface-3); color: var(--ink); }
.nav__item[aria-current="page"] { background: var(--brand-soft); color: var(--ink); font-weight: 650; }
.nav__item[aria-current="page"] svg { color: var(--brand-strong); opacity: 1; }
.nav__count {
  margin-left: auto; font-size: 11px; font-weight: 650; color: var(--ink-3);
  background: var(--surface-3); border-radius: 20px; padding: 1px 7px;
}

.sidebar__foot { border-top: 1px solid var(--line); padding-top: 10px; display: grid; gap: 6px; }
.account {
  display: flex; align-items: center; gap: 10px; width: 100%;
  background: none; border: 0; padding: 8px; border-radius: 11px; text-align: left;
}
.account:hover { background: var(--surface-3); }
.account__av {
  width: 32px; height: 32px; border-radius: 50%; flex: none;
  display: grid; place-items: center; font-size: 13px; font-weight: 700;
  background: linear-gradient(150deg, #ffe9a3, #f3b52a); color: #231c07;
  overflow: hidden;
}
.account__av img { width: 100%; height: 100%; object-fit: cover; }
.account__txt { display: grid; min-width: 0; }
.account__txt b { font-size: 12.5px; font-weight: 620; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.account__txt i { font-style: normal; font-size: 11.5px; color: var(--ink-3); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.account__chev { width: 15px; height: 15px; margin-left: auto; color: var(--ink-3); flex: none; }

.theme-btn {
  display: flex; align-items: center; gap: 9px; background: none; border: 0;
  padding: 8px 11px; border-radius: 10px; color: var(--ink-2); font-size: 12.5px; font-weight: 550;
}
.theme-btn:hover { background: var(--surface-3); color: var(--ink); }
.theme-btn__ico { display: grid; place-items: center; }
.theme-btn svg { width: 17px; height: 17px; }

.main { min-width: 0; display: flex; flex-direction: column; }

.topbar {
  position: sticky; top: 0; z-index: 30;
  display: flex; align-items: center; gap: 14px;
  padding: 22px 32px 14px;
  background: linear-gradient(to bottom, var(--bg) 60%, color-mix(in srgb, var(--bg) 0%, transparent));
  backdrop-filter: blur(6px);
}
.topbar__titles { min-width: 0; flex: 1; }
.topbar__titles h1 { font-size: 25px; line-height: 1.2; }
.topbar__titles p { margin: 4px 0 0; font-size: 13px; color: var(--ink-2); }
.topbar__actions { display: flex; gap: 9px; align-items: center; flex: none; }
.topbar__menu { display: none; }

.view { padding: 4px 32px 56px; max-width: 1320px; width: 100%; }
.view:focus { outline: none; }

/* ---------------------------------------------------------------- 버튼 */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 7px;
  height: 36px; padding: 0 14px; border-radius: 8px;
  border: 1px solid var(--line-2); background: var(--surface);
  font-size: 13px; font-weight: 600; color: var(--ink);
  transition: background .12s, border-color .12s, color .12s;
  white-space: nowrap;
}
.btn svg { width: 16px; height: 16px; }
.btn:hover { background: var(--surface-3); }
.btn[disabled] { opacity: .45; pointer-events: none; }
.btn--brand { background: var(--btn-brand); border-color: var(--btn-brand); color: #1f1a0b; }
.btn--brand:hover { background: var(--btn-brand-hover); border-color: var(--btn-brand-hover); }
.btn--dark { background: var(--ink); border-color: var(--ink); color: var(--bg); }
.btn--dark:hover { background: color-mix(in srgb, var(--ink) 86%, var(--bg)); border-color: color-mix(in srgb, var(--ink) 86%, var(--bg)); }
.btn--ghost { background: transparent; border-color: transparent; color: var(--ink-2); }
.btn--ghost:hover { background: var(--surface-3); color: var(--ink); }
.btn--danger { color: var(--bad); border-color: color-mix(in srgb, var(--bad) 30%, var(--line)); background: transparent; }
.btn--danger:hover { background: var(--bad-soft); }
.btn--muted { color: var(--ink-3); }
.btn--sm { height: 30px; padding: 0 11px; font-size: 12.3px; border-radius: 7px; }
.btn--sm svg { width: 14px; height: 14px; }
.btn--lg { height: 44px; padding: 0 18px; font-size: 14px; border-radius: 10px; }
.btn--block { width: 100%; }

.icon-btn {
  display: grid; place-items: center; width: 34px; height: 34px; border-radius: 9px;
  border: 1px solid transparent; background: none; color: var(--ink-2);
}
.icon-btn:hover { background: var(--surface-3); color: var(--ink); }
.icon-btn svg { width: 18px; height: 18px; }
.icon-btn--bordered { border-color: var(--line); background: var(--surface); }

.link { color: var(--ink); font-weight: 600; border-bottom: 1px solid var(--line-2); }
.link:hover { border-color: var(--ink); }
.link--muted { color: var(--ink-2); font-weight: 550; border-bottom-color: transparent; }
.link--muted:hover { color: var(--ink); border-bottom-color: var(--line-2); }

/* ---------------------------------------------------------------- 카드 */
.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-sm);
  min-width: 0;
}
.card--pad { padding: 20px; }
.card__head {
  display: flex; align-items: flex-start; justify-content: space-between; gap: 14px;
  padding: 18px 20px 0;
}
.card__title { font-size: 15px; font-weight: 650; letter-spacing: -.02em; }
.card__sub { font-size: 12.5px; color: var(--ink-3); margin-top: 3px; }
.card__body { padding: 16px 20px 20px; }
.card--flat { box-shadow: none; }

.grid { display: grid; gap: 16px; }
.grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid--dash { grid-template-columns: 1.02fr 1fr 1fr; }
.grid--site { grid-template-columns: minmax(0, 1fr) 330px; align-items: start; }
.stack { display: grid; gap: 14px; }
.row { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.row--tight { gap: 6px; }
.spacer { flex: 1; }
.mt-0 { margin-top: 0; } .mt-8 { margin-top: 8px; } .mt-16 { margin-top: 16px; } .mt-24 { margin-top: 24px; }
.mb-0 { margin-bottom: 0; }

/* ---------------------------------------------------------------- 텍스트 */
.muted { color: var(--ink-2); }
.dim { color: var(--ink-3); }
.tiny { font-size: 11.5px; }
.small { font-size: 12.5px; }
.strong { font-weight: 650; }
.mono { font-family: var(--mono); }
.nowrap { white-space: nowrap; }
.truncate { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.eyebrow { font-size: 10.5px; font-weight: 750; letter-spacing: .12em; text-transform: uppercase; color: var(--ink-3); }
.section-title { font-size: 15px; font-weight: 650; margin: 0 0 12px; }

/* ---------------------------------------------------------------- 폼 */
.field { display: grid; gap: 6px; min-width: 0; }
.field > label, .label { font-size: 12.3px; font-weight: 620; color: var(--ink-2); }
.field .hint { font-size: 11.5px; color: var(--ink-3); }

.input, .textarea {
  width: 100%; height: 38px; padding: 0 12px;
  border: 1px solid var(--line-2); border-radius: 10px;
  background: var(--surface); color: var(--ink); font-size: 13.5px;
  transition: border-color .14s, box-shadow .14s;
}
.textarea { height: auto; min-height: 92px; padding: 10px 12px; line-height: 1.6; resize: vertical; }
.input:focus, .textarea:focus { outline: none; border-color: var(--brand); box-shadow: 0 0 0 3px color-mix(in srgb, var(--brand) 22%, transparent); }
.input::placeholder, .textarea::placeholder { color: var(--ink-3); }
.input--mono { font-family: var(--mono); font-size: 12.5px; }
.input--code {
  font-family: var(--mono); font-size: 19px; font-weight: 650; letter-spacing: .3em;
  text-align: center; height: 46px; padding-left: .3em;
}
.input--code::placeholder { font-weight: 500; letter-spacing: .24em; color: var(--ink-3); }
.input--sm { height: 32px; font-size: 12.5px; }
.input-group { display: flex; align-items: stretch; gap: 0; }
.input-group .input { border-top-right-radius: 0; border-bottom-right-radius: 0; }
.input-group .input-group__suffix {
  display: grid; place-items: center; padding: 0 12px; font-size: 12.5px; color: var(--ink-3);
  border: 1px solid var(--line-2); border-left: 0; border-radius: 0 10px 10px 0; background: var(--surface-2);
}

.switch { display: inline-flex; align-items: center; gap: 9px; cursor: pointer; user-select: none; }
.switch input { position: absolute; opacity: 0; width: 0; height: 0; }
.switch__track {
  width: 38px; height: 22px; border-radius: 20px; background: var(--line-2); position: relative;
  transition: background .16s; flex: none;
}
.switch__track::after {
  content: ""; position: absolute; top: 2px; left: 2px; width: 18px; height: 18px; border-radius: 50%;
  background: #fff; box-shadow: 0 1px 3px rgba(0, 0, 0, .3); transition: transform .16s;
}
.switch input:checked + .switch__track { background: var(--ok); }
.switch input:checked + .switch__track::after { transform: translateX(16px); }
.switch input:focus-visible + .switch__track { outline: 2px solid var(--brand); outline-offset: 2px; }
.switch__label { font-size: 13px; font-weight: 550; }

.check { display: flex; gap: 9px; align-items: flex-start; cursor: pointer; font-size: 13px; }
.check input { appearance: none; width: 17px; height: 17px; margin: 1px 0 0; flex: none;
  border: 1.5px solid var(--line-2); border-radius: 5px; background: var(--surface); position: relative; }
.check input:checked { background: var(--ink); border-color: var(--ink); }
.check input:checked::after {
  content: ""; position: absolute; inset: 0;
  background: no-repeat center/11px 11px
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m20 6-11 11-5-5'/%3E%3C/svg%3E");
}
[data-theme="dark"] .check input:checked::after {
  filter: invert(1);
}

/* 커스텀 셀렉트 (브라우저 기본 select 사용 안 함) */
.sel { position: relative; display: inline-block; min-width: 0; }
.sel--block { display: block; width: 100%; }
.sel__btn {
  display: flex; align-items: center; gap: 8px; width: 100%;
  height: 36px; padding: 0 11px; border-radius: 10px;
  border: 1px solid var(--line-2); background: var(--surface); font-size: 13px; font-weight: 550;
  text-align: left;
}
.sel__btn:hover { background: var(--surface-2); }
.sel__btn[aria-expanded="true"] { border-color: var(--brand); box-shadow: 0 0 0 3px color-mix(in srgb, var(--brand) 20%, transparent); }
.sel__val { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sel__val--ph { color: var(--ink-3); }
.sel__chev { width: 15px; height: 15px; color: var(--ink-3); flex: none; transition: transform .16s; }
.sel__btn[aria-expanded="true"] .sel__chev { transform: rotate(180deg); }
.sel__pop {
  position: absolute; z-index: 60; top: calc(100% + 6px); left: 0; min-width: 100%; max-height: 268px; overflow-y: auto;
  padding: 5px; border-radius: 12px; border: 1px solid var(--line);
  background: var(--surface); box-shadow: var(--shadow-lg);
}
.sel__pop[hidden] { display: none; }
.sel__opt {
  display: flex; align-items: center; gap: 8px; width: 100%; padding: 8px 10px; border: 0; border-radius: 8px;
  background: none; font-size: 13px; text-align: left; color: var(--ink-2);
}
.sel__opt:hover, .sel__opt[data-active="1"] { background: var(--surface-3); color: var(--ink); }
.sel__opt[aria-selected="true"] { color: var(--ink); font-weight: 620; }
.sel__opt[aria-selected="true"]::after {
  content: ""; margin-left: auto; width: 13px; height: 13px;
  background: no-repeat center/13px url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2317150f' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m20 6-11 11-5-5'/%3E%3C/svg%3E");
}
[data-theme="dark"] .sel__opt[aria-selected="true"]::after { filter: invert(1); }
.sel__opt small { color: var(--ink-3); font-size: 11.5px; }

/* 커스텀 컬러 피커 */
.cp { position: relative; display: inline-flex; }
.cp__swatch {
  width: 36px; height: 36px; border-radius: 10px; border: 1px solid var(--line-2);
  background: var(--cp-color, #f0a81e); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .35);
  position: relative;
}
.cp__swatch::after {
  content: ""; position: absolute; inset: -1px; border-radius: 11px;
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--cp-color, #f0a81e) 22%, transparent);
  opacity: 0; transition: opacity .15s;
}
.cp__swatch:hover::after, .cp__swatch[aria-expanded="true"]::after { opacity: 1; }
.cp__pop {
  position: absolute; z-index: 60; top: calc(100% + 8px); left: 0; width: 236px; padding: 12px;
  border-radius: 14px; border: 1px solid var(--line); background: var(--surface); box-shadow: var(--shadow-lg);
}
.cp__pop[hidden] { display: none; }
.cp__sv {
  position: relative; height: 128px; border-radius: 9px; overflow: hidden; cursor: crosshair;
  background-image: linear-gradient(to top, #000, transparent), linear-gradient(to right, #fff, var(--cp-hue, #f00));
}
.cp__knob {
  position: absolute; width: 12px; height: 12px; border-radius: 50%; border: 2px solid #fff;
  box-shadow: 0 0 0 1px rgba(0, 0, 0, .35), 0 1px 4px rgba(0, 0, 0, .4); transform: translate(-50%, -50%);
  pointer-events: none;
}
.cp__hue {
  position: relative; height: 12px; margin: 11px 0 9px; border-radius: 8px; cursor: pointer;
  background: linear-gradient(to right, #f00 0%, #ff0 17%, #0f0 33%, #0ff 50%, #00f 67%, #f0f 83%, #f00 100%);
}
.cp__hue-knob {
  position: absolute; top: 50%; width: 14px; height: 14px; margin-left: -7px; border-radius: 50%;
  background: #fff; border: 1px solid rgba(0, 0, 0, .25); transform: translateY(-50%);
  box-shadow: 0 1px 4px rgba(0, 0, 0, .3); pointer-events: none;
}
.cp__row { display: flex; gap: 7px; align-items: center; }
.cp__hex {
  flex: 1; height: 30px; padding: 0 9px; border-radius: 8px; border: 1px solid var(--line-2);
  background: var(--surface); font-family: var(--mono); font-size: 12px; text-transform: uppercase;
}
.cp__presets { display: flex; gap: 6px; margin-top: 10px; flex-wrap: wrap; }
.cp__preset { width: 20px; height: 20px; border-radius: 6px; border: 1px solid rgba(0, 0, 0, .12); }

/* ---------------------------------------------------------------- 배지/상태 */
.badge {
  display: inline-flex; align-items: center; gap: 6px; height: 23px; padding: 0 9px;
  border-radius: 20px; font-size: 11.5px; font-weight: 620; white-space: nowrap;
  background: var(--surface-3); color: var(--ink-2);
}
.badge--ok { background: var(--ok-soft); color: var(--ok); }
.badge--bad { background: var(--bad-soft); color: var(--bad); }
.badge--warn { background: var(--warn-soft); color: var(--warn); }
.badge--info { background: var(--info-soft); color: var(--info); }
.badge--brand { background: var(--brand-soft); color: var(--brand-strong); }
[data-theme="dark"] .badge--brand { color: var(--brand); }
.dot { width: 6px; height: 6px; border-radius: 50%; background: currentColor; flex: none; }
.dot--live { box-shadow: 0 0 0 3px color-mix(in srgb, var(--ok) 18%, transparent); }

.chip {
  display: inline-flex; align-items: center; gap: 6px; height: 26px; padding: 0 10px;
  border-radius: 8px; border: 1px solid var(--line); background: var(--surface-2);
  font-size: 12px; color: var(--ink-2);
}

/* ---------------------------------------------------------------- 표 */
.table-wrap { overflow-x: auto; border-radius: var(--r-lg); }
.table { width: 100%; border-collapse: separate; border-spacing: 0; font-size: 13px; }
.table th {
  text-align: left; font-size: 11px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase;
  color: var(--ink-3); padding: 11px 14px; background: var(--surface-2); border-bottom: 1px solid var(--line);
  white-space: nowrap;
}
.table th:first-child { border-top-left-radius: 0; }
.table td { padding: 13px 14px; border-bottom: 1px solid var(--line); vertical-align: middle; }
.table tbody tr:last-child td { border-bottom: 0; }
.table tbody tr:hover td { background: color-mix(in srgb, var(--surface-2) 60%, transparent); }
.table .cell-site { display: flex; align-items: center; gap: 11px; min-width: 0; }
.table .cell-url { color: var(--info); font-size: 12.5px; }
.table .cell-url:hover { text-decoration: underline; }
.thumb {
  width: 32px; height: 32px; border-radius: 8px; flex: none; display: grid; place-items: center;
  font-size: 11px; font-weight: 700; letter-spacing: .02em; overflow: hidden;
  border: 1px solid var(--line); background: var(--surface-3); color: var(--ink-2);
}
.thumb img { width: 100%; height: 100%; object-fit: cover; }

/* ---------------------------------------------------------------- 통계 */
.stat { display: grid; gap: 2px; }
.stat__num { font-size: 30px; font-weight: 680; letter-spacing: -.04em; line-height: 1.1; font-variant-numeric: tabular-nums; }
.stat__delta { font-size: 12px; font-weight: 620; display: inline-flex; align-items: center; gap: 4px; }
.stat__delta--up { color: var(--ok); }
.stat__delta--down { color: var(--bad); }

.chart { width: 100%; height: 132px; display: block; overflow: visible; }
.chart__grid line { stroke: var(--line); stroke-width: 1; stroke-dasharray: 2 4; }
.chart__area { fill: url(#lampArea); }
.chart__line { fill: none; stroke: var(--brand); stroke-width: 2.1; stroke-linecap: round; stroke-linejoin: round; }
.chart__dot { fill: var(--surface); stroke: var(--brand); stroke-width: 2; }
.chart__x { font-size: 9.5px; fill: var(--ink-3); font-family: var(--font); }

.ring { position: relative; width: 148px; height: 148px; margin: 4px auto 0; }
.ring svg { width: 100%; height: 100%; transform: rotate(-90deg); }
.ring__track { stroke: var(--surface-3); stroke-width: 10; fill: none; }
.ring__bar { stroke: var(--ok); stroke-width: 10; fill: none; stroke-linecap: round; transition: stroke-dasharray .6s cubic-bezier(.2, .8, .2, 1); }
.ring__mid { position: absolute; inset: 0; display: grid; place-content: center; text-align: center; gap: 0; }
.ring__score { font-size: 34px; font-weight: 700; letter-spacing: -.04em; line-height: 1; font-variant-numeric: tabular-nums; }
.ring__of { font-size: 11px; color: var(--ink-3); }

/* ---------------------------------------------------------------- 드롭존 */
.drop {
  border: 1.5px dashed var(--line-2); border-radius: 14px; background: var(--surface-2);
  padding: 22px 16px; text-align: center; transition: border-color .15s, background .15s;
  display: grid; justify-items: center; gap: 6px;
}
.drop--hot { border-color: var(--brand); background: var(--brand-soft); }
.drop__ico {
  width: 42px; height: 42px; border-radius: 12px; display: grid; place-items: center;
  background: var(--brand-soft); color: var(--brand-strong); margin-bottom: 2px;
}
[data-theme="dark"] .drop__ico { color: var(--brand); }
.drop__ico svg { width: 22px; height: 22px; }
.drop__t { font-size: 13.5px; font-weight: 600; }
.drop__s { font-size: 12px; color: var(--ink-3); }
.divider-or { display: flex; align-items: center; gap: 10px; color: var(--ink-3); font-size: 11px; letter-spacing: .08em; margin: 12px 0; }
.divider-or::before, .divider-or::after { content: ""; height: 1px; background: var(--line); flex: 1; }
.divider { height: 1px; background: var(--line); margin: 16px 0; }

/* ---------------------------------------------------------------- 인라인 알림 */
.note {
  display: flex; gap: 10px; align-items: flex-start; padding: 11px 13px;
  border-radius: 11px; border: 1px solid var(--line); background: var(--surface-2);
  font-size: 12.8px; line-height: 1.55;
}
.note svg { width: 16px; height: 16px; flex: none; margin-top: 1px; }
.note--ok { border-color: color-mix(in srgb, var(--ok) 30%, var(--line)); background: var(--ok-soft); color: var(--ok); }
.note--bad { border-color: color-mix(in srgb, var(--bad) 30%, var(--line)); background: var(--bad-soft); color: var(--bad); }
.note--warn { border-color: color-mix(in srgb, var(--warn) 32%, var(--line)); background: var(--warn-soft); color: var(--warn); }
.note--info { border-color: color-mix(in srgb, var(--info) 26%, var(--line)); background: var(--info-soft); color: var(--info); }
.note__body { min-width: 0; }
.note__body b { display: block; font-weight: 650; margin-bottom: 2px; }
.note ul { margin: 5px 0 0; padding-left: 16px; }
.note code { font-size: 11.8px; background: color-mix(in srgb, currentColor 10%, transparent); padding: 1px 5px; border-radius: 5px; }

#noteHost { position: fixed; right: 22px; bottom: 22px; z-index: 200; display: grid; gap: 8px; width: min(380px, calc(100vw - 32px)); pointer-events: none; }
#noteHost .note { pointer-events: auto; box-shadow: var(--shadow-lg); background: var(--surface); color: var(--ink); animation: noteIn .22s ease both; }
#noteHost .note--ok { background: var(--ok-soft); color: var(--ok); }
#noteHost .note--bad { background: var(--bad-soft); color: var(--bad); }
#noteHost .note--warn { background: var(--warn-soft); color: var(--warn); }
@keyframes noteIn { from { opacity: 0; transform: translateY(8px) scale(.98); } }

/* ---------------------------------------------------------------- 빈 상태 */
.empty { text-align: center; padding: 40px 20px; display: grid; justify-items: center; gap: 8px; }
.empty__ico { width: 46px; height: 46px; border-radius: 14px; display: grid; place-items: center; background: var(--surface-3); color: var(--ink-3); }
.empty__ico svg { width: 22px; height: 22px; }
.empty h3 { font-size: 14.5px; }
.empty p { margin: 0; font-size: 12.8px; color: var(--ink-2); max-width: 380px; }

/* ---------------------------------------------------------------- 탭 */
.tabs { display: flex; gap: 4px; border-bottom: 1px solid var(--line); margin-bottom: 18px; overflow-x: auto; }
.tab {
  border: 0; background: none; padding: 10px 13px; font-size: 13px; font-weight: 570; color: var(--ink-2);
  border-bottom: 2px solid transparent; margin-bottom: -1px; white-space: nowrap;
}
.tab:hover { color: var(--ink); }
.tab[aria-selected="true"] { color: var(--ink); border-bottom-color: var(--brand); font-weight: 650; }

.seg { display: inline-flex; padding: 3px; gap: 2px; border-radius: 10px; background: var(--surface-3); }
.seg__btn { border: 0; background: none; padding: 5px 11px; border-radius: 8px; font-size: 12.3px; font-weight: 570; color: var(--ink-2); }
.seg__btn[aria-pressed="true"] { background: var(--surface); color: var(--ink); box-shadow: var(--shadow-sm); }

/* ---------------------------------------------------------------- 코드 */
.code {
  font-family: var(--mono); font-size: 12px; line-height: 1.65;
  background: var(--surface-2); border: 1px solid var(--line); border-radius: 10px;
  padding: 11px 13px; overflow-x: auto; white-space: pre; color: var(--ink-2);
}
.code--inline { padding: 2px 6px; border-radius: 6px; white-space: nowrap; display: inline-block; }

/* 편집기 */
.editor { position: relative; display: grid; grid-template-columns: 46px minmax(0, 1fr); border-radius: 12px; overflow: hidden; border: 1px solid var(--line); background: var(--surface); }
.editor__gutter {
  font-family: var(--mono); font-size: 12px; line-height: 20px; padding: 12px 8px 12px 0;
  text-align: right; color: var(--ink-3); background: var(--surface-2); border-right: 1px solid var(--line);
  overflow: hidden; user-select: none; white-space: pre; tab-size: 2;
}
.editor__pane { position: relative; min-height: 430px; overflow: hidden; }
.editor__hl, .editor__area {
  font-family: var(--mono); font-size: 12.5px; line-height: 20px; padding: 12px 14px;
  margin: 0; border: 0; white-space: pre; tab-size: 2;
  width: 100%; height: 100%; overflow: auto;
}
.editor__hl { position: absolute; inset: 0; pointer-events: none; color: var(--ink); overflow: hidden; }
.editor__area {
  position: relative; background: transparent; color: transparent; caret-color: var(--ink);
  resize: none; outline: none; z-index: 2;
}
.editor__area::selection { background: color-mix(in srgb, var(--brand) 32%, transparent); }
.editor__hl .t-str { color: #a2620a; } .editor__hl .t-com { color: #8d8575; font-style: italic; }
.editor__hl .t-tag { color: #9c3d6e; } .editor__hl .t-attr { color: #2f6b8f; }
.editor__hl .t-kw { color: #8a3fa8; } .editor__hl .t-num { color: #2f7a5f; }
.editor__hl .t-punc { color: var(--ink-3); }
[data-theme="dark"] .editor__hl .t-str { color: #e8b44e; }
[data-theme="dark"] .editor__hl .t-tag { color: #f08bb8; }
[data-theme="dark"] .editor__hl .t-attr { color: #7cc0e8; }
[data-theme="dark"] .editor__hl .t-kw { color: #c79bf0; }
[data-theme="dark"] .editor__hl .t-num { color: #85d3b4; }

/* IDE 레이아웃 */
.ide { display: grid; grid-template-columns: 214px minmax(0, 1fr); gap: 14px; align-items: start; }
.ide__side { display: grid; gap: 10px; }
.tree { display: grid; gap: 1px; max-height: 420px; overflow: auto; }
.tree__item {
  display: flex; align-items: center; gap: 7px; padding: 6px 8px; border-radius: 7px; border: 0;
  background: none; font-size: 12.5px; color: var(--ink-2); text-align: left; width: 100%;
  font-family: var(--mono);
}
.tree__item:hover { background: var(--surface-3); color: var(--ink); }
.tree__item[aria-current="true"] { background: var(--brand-soft); color: var(--ink); font-weight: 600; }
.tree__item svg { width: 13px; height: 13px; flex: none; color: var(--ink-3); }
.tree__name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tree__del { margin-left: auto; opacity: 0; color: var(--ink-3); }
.tree__item:hover .tree__del { opacity: 1; }

.preview { border: 1px solid var(--line); border-radius: 12px; overflow: hidden; background: #fff; }
.preview__bar {
  display: flex; align-items: center; gap: 8px; padding: 7px 10px; background: var(--surface-2);
  border-bottom: 1px solid var(--line); font-size: 11.5px; color: var(--ink-3);
}
.preview__dots { display: flex; gap: 4px; }
.preview__dots i { width: 7px; height: 7px; border-radius: 50%; background: var(--line-2); display: block; }
.preview__url { flex: 1; background: var(--surface); border: 1px solid var(--line); border-radius: 6px; padding: 2px 8px; font-family: var(--mono); font-size: 11px; color: var(--ink-2); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.preview iframe { display: block; width: 100%; height: 380px; border: 0; background: #fff; }
.preview--mobile iframe { width: 390px; max-width: 100%; height: 560px; margin: 0 auto; display: block; background: #fff; }

/* ---------------------------------------------------------------- 배포 목록 */
.timeline { display: grid; gap: 0; }
.tl-item { display: grid; grid-template-columns: 26px minmax(0, 1fr) auto; gap: 11px; padding: 12px 0; border-bottom 1px solid var(--line); }
.tl-item { border-bottom: 1px solid var(--line); }
.tl-item:last-child { border-bottom: 0; }
.tl-dot { width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center; background: var(--surface-3); color: var(--ink-3); margin-top: 1px; }
.tl-dot svg { width: 12px; height: 12px; }
.tl-dot--live { background: var(--ok-soft); color: var(--ok); }
.tl-main { min-width: 0; }
.tl-title { font-size: 13px; font-weight: 600; display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.tl-meta { font-size: 11.5px; color: var(--ink-3); margin-top: 2px; }

/* ---------------------------------------------------------------- 사이트 상세 */
.site-hero { display: flex; align-items: flex-start; gap: 16px; flex-wrap: wrap; }
.site-hero__thumb { width: 46px; height: 46px; border-radius: 12px; font-size: 14px; }
.site-hero h2 { font-size: 21px; }
.site-url { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; color: var(--info); font-weight: 550; }
.site-url svg { width: 13px; height: 13px; }

.kv { display: grid; grid-template-columns: 118px minmax(0, 1fr); gap: 9px 14px; font-size: 12.8px; }
.kv dt { color: var(--ink-3); }
.kv dd { margin: 0; min-width: 0; overflow-wrap: anywhere; }

.metric-row { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.metric { border: 1px solid var(--line); border-radius: 11px; padding: 10px 12px; background: var(--surface-2); }
.metric b { display: block; font-size: 17px; font-weight: 650; letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.metric span { font-size: 11.5px; color: var(--ink-3); }

/* ---------------------------------------------------------------- 인증 */
.auth-host { min-height: 100vh; }
.auth { min-height: 100vh; display: grid; grid-template-columns: 1.05fr .95fr; }
.auth__art {
  position: relative; overflow: hidden; padding: 48px;
  background: radial-gradient(90% 70% at 30% 20%, #2b2416 0%, #171410 60%, #0e0d0a 100%);
  color: #f7f2e6; display: flex; flex-direction: column; justify-content: space-between;
}
.auth__art::after {
  content: ""; position: absolute; width: 520px; height: 520px; right: -160px; top: -120px; border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 210, 74, .45) 0%, rgba(255, 210, 74, 0) 65%);
  filter: blur(8px); pointer-events: none;
}
.auth__brand { display: flex; align-items: center; gap: 10px; font-size: 19px; font-weight: 680; }
.auth__brand img { width: 26px; height: 26px; filter: drop-shadow(0 0 10px rgba(255, 208, 60, .6)); }
.auth__pitch h2 { font-size: 34px; line-height: 1.24; letter-spacing: -.035em; margin: 0 0 14px; }
.auth__pitch p { font-size: 14px; color: #cfc7b6; max-width: 400px; line-height: 1.7; margin: 0; }
.auth__points { display: grid; gap: 10px; margin-top: 24px; }
.auth__point { display: flex; gap: 10px; align-items: center; font-size: 13px; color: #e4dccb; }
.auth__point svg { width: 15px; height: 15px; color: #ffd24a; flex: none; }
.auth__foot { font-size: 11.5px; color: #8f8878; }
.auth__panel { display: grid; place-items: center; padding: 40px 24px; }
.auth__box { width: 100%; max-width: 392px; }
.auth__box h1 { font-size: 24px; margin-bottom: 6px; }
.auth__box > p { font-size: 13px; color: var(--ink-2); margin: 0 0 22px; }
.auth__providers { display: grid; gap: 9px; margin-bottom: 4px; }
.auth__mob-brand { display: none; }

/* ---------------------------------------------------------------- 기타 */
.iframe-full { width: 100%; height: 520px; border: 1px solid var(--line); border-radius: 12px; background: #fff; }
.mobile-note { display: none; }

.skeleton { background: linear-gradient(90deg, var(--surface-3) 25%, var(--surface-2) 37%, var(--surface-3) 63%); background-size: 400% 100%; animation: sk 1.3s ease infinite; border-radius: 8px; }
@keyframes sk { from { background-position: 100% 0; } to { background-position: 0 0; } }

.boot { position: fixed; inset: 0; display: grid; place-content: center; justify-items: center; gap: 14px; background: var(--bg); z-index: 300; }
.boot img { animation: pulse 1.6s ease-in-out infinite; }
.boot p { font-size: 12.5px; color: var(--ink-3); letter-spacing: .04em; }
@keyframes pulse { 0%, 100% { opacity: .55; transform: scale(.94); } 50% { opacity: 1; transform: scale(1); } }

.scrim { display: none; }

/* ---------------------------------------------------------------- 반응형 */
@media (max-width: 1180px) {
  .grid--dash { grid-template-columns: 1fr 1fr; }
  .grid--dash > :nth-child(3) { grid-column: span 2; }
  .grid--site { grid-template-columns: minmax(0, 1fr); }
}

@media (max-width: 940px) {
  .app { grid-template-columns: minmax(0, 1fr); }
  .sidebar {
    position: fixed; left: 0; top: 0; bottom: 0; width: 274px; z-index: 90;
    transform: translateX(-102%); transition: transform .24s cubic-bezier(.3, .8, .3, 1);
    background: var(--surface); box-shadow: var(--shadow-lg);
  }
  .sidebar.is-open { transform: none; }
  .icon-btn.sidebar__close { display: grid; }
  .scrim.is-open { display: block; position: fixed; inset: 0; background: rgba(20, 16, 8, .38); z-index: 80; backdrop-filter: blur(2px); }
  .topbar { padding: 14px 18px 10px; }
  .topbar__menu { display: grid; }
  .topbar__titles h1 { font-size: 20px; }
  .topbar__titles p { font-size: 12px; }
  .view { padding: 4px 18px 40px; }
  .grid--3, .grid--2 { grid-template-columns: minmax(0, 1fr); }
  .grid--dash { grid-template-columns: minmax(0, 1fr); }
  .grid--dash > :nth-child(3) { grid-column: auto; }
  .ide { grid-template-columns: minmax(0, 1fr); }
  .auth { grid-template-columns: minmax(0, 1fr); }
  .auth__art { display: none; }
  .auth__mob-brand { display: flex; align-items: center; gap: 9px; margin-bottom: 26px; font-size: 18px; font-weight: 680; }
  .auth__mob-brand img { width: 24px; height: 24px; filter: drop-shadow(0 0 8px var(--glow)); }
  .auth__panel { padding: 34px 20px; align-items: start; padding-top: 54px; }
  #noteHost { right: 14px; left: 14px; width: auto; bottom: 14px; }
}

@media (max-width: 620px) {
  .hint-row { flex-direction: column; align-items: flex-start; }
  .card__head { padding: 15px 15px 0; }
  .card__body { padding: 13px 15px 16px; }
  .card--pad { padding: 15px; }
  .table th, .table td { padding: 10px 11px; }
  .metric-row { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 7px; }
  .metric { padding: 8px 9px; }
  .metric b { font-size: 15px; }
  .metric span { font-size: 10.5px; }
  .site-url { word-break: break-all; }
  .site-hero .row.row--tight { gap: 6px; }
  .kv { grid-template-columns: 92px minmax(0, 1fr); }
  .stat__num { font-size: 26px; }
  .topbar__actions .btn span { display: none; }
  .topbar__actions .btn { padding: 0 10px; }
  .topbar__actions .btn--brand { padding: 0 12px; }
  .topbar__actions .btn--brand span { display: inline; }
  .card .row.wrap-sm { flex-wrap: wrap; }
  .hide-sm { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  * { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}

/* ==========================================================================
   랜딩 페이지
   ========================================================================== */

.landing { min-height: 100vh; }
.landing__nav {
  position: sticky; top: 0; z-index: 50;
  display: flex; align-items: center; gap: 22px;
  padding: 16px 32px; max-width: 1240px; margin: 0 auto;
  background: color-mix(in srgb, var(--bg) 75%, transparent);
  backdrop-filter: blur(12px);
}
.landing__links { display: flex; gap: 20px; margin-left: 10px; flex: 1; }
.landing__links a { font-size: 13px; color: var(--ink-2); font-weight: 550; }
.landing__links a:hover { color: var(--ink); }

.hero {
  position: relative; max-width: 1240px; margin: 0 auto; padding: 64px 32px 30px;
  text-align: center; overflow: visible;
}
.hero__glow {
  position: absolute; left: 50%; top: -180px; width: 720px; height: 620px; transform: translateX(-50%);
  background: radial-gradient(circle at 50% 50%, rgba(255, 208, 60, .42) 0%, rgba(255, 208, 60, 0) 62%);
  filter: blur(10px); pointer-events: none; z-index: 0;
  animation: heroGlow 9s ease-in-out infinite;
}
@keyframes heroGlow { 50% { opacity: .72; transform: translateX(-50%) scale(1.06); } }
.hero > *:not(.hero__glow) { position: relative; z-index: 1; }
.hero__badge {
  display: inline-flex; align-items: center; gap: 7px; padding: 5px 12px; border-radius: 20px;
  background: var(--surface); border: 1px solid var(--line); font-size: 11.5px; font-weight: 600; color: var(--ink-2);
}
.hero__badge .dot { color: var(--ok); }
.hero h1 {
  font-size: clamp(38px, 6.2vw, 74px); line-height: 1.06; letter-spacing: -0.045em;
  margin: 22px 0 18px; font-weight: 720;
}
.hero__accent {
  background: linear-gradient(92deg, #f5b420 0%, #ffd75e 45%, #f0a81e 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.hero__sub { font-size: clamp(15px, 1.6vw, 17.5px); color: var(--ink-2); max-width: 660px; margin: 0 auto 30px; line-height: 1.65; }
.hero__cta { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; }
.hero__stats {
  display: flex; gap: 36px; justify-content: center; margin: 44px 0 0; flex-wrap: wrap;
}
.hero__stats > div { display: grid; gap: 2px; }
.hero__stats b { font-size: 25px; letter-spacing: -0.03em; font-variant-numeric: tabular-nums; }
.hero__stats span { font-size: 11.5px; color: var(--ink-3); }

/* 제품 미리보기 목업 */
.mock {
  margin: 52px auto 0; max-width: 980px; border-radius: 18px; overflow: hidden;
  border: 1px solid var(--line); background: var(--surface);
  box-shadow: 0 40px 70px -52px rgba(60, 45, 10, .45);
  transform: perspective(1400px) rotateX(2.2deg); transform-origin: top center;
}
.mock__bar { display: flex; align-items: center; gap: 6px; padding: 10px 14px; border-bottom: 1px solid var(--line); background: var(--surface-2); }
.mock__bar span { width: 9px; height: 9px; border-radius: 50%; background: var(--line-2); display: block; }
.mock__bar em { margin-left: 10px; font-style: normal; font-size: 10.5px; color: var(--ink-3); font-family: var(--mono); }
.mock__body { display: grid; grid-template-columns: 150px minmax(0, 1fr); min-height: 300px; }
.mock__side { border-right: 1px solid var(--line); padding: 16px 14px; display: grid; gap: 9px; align-content: start; background: var(--surface-2); }
.mock__logo { width: 60px; height: 12px; border-radius: 4px; background: var(--brand); opacity: .8; margin-bottom: 8px; }
.mock__side i { height: 8px; border-radius: 4px; background: var(--line); display: block; }
.mock__side i:nth-child(2) { width: 78%; }
.mock__main { padding: 16px; display: grid; gap: 12px; }
.mock__row { display: grid; grid-template-columns: 1.05fr 1fr 1fr; gap: 12px; }
.mock__card { border: 1px solid var(--line); border-radius: 12px; padding: 12px; min-height: 108px; display: grid; place-items: center; background: var(--surface); }
.mock__drop { width: 100%; height: 62px; border: 1.5px dashed var(--line-2); border-radius: 9px; display: block; background: var(--surface-2); }
.mock__ring { width: 62px; height: 62px; border-radius: 50%; display: block;
  background: conic-gradient(var(--ok) 0 82%, var(--surface-3) 82% 100%);
  mask: radial-gradient(circle, transparent 58%, #000 60%); -webkit-mask: radial-gradient(circle, transparent 58%, #000 60%); }
.mock__chart { width: 100%; height: 58px; display: block; border-radius: 8px;
  background: linear-gradient(180deg, rgba(240,168,30,.35), rgba(240,168,30,0) 70%),
    linear-gradient(90deg, transparent 0 12%, var(--brand) 12% 13%, transparent 13% 28%, var(--brand) 28% 29%, transparent 29% 44%, var(--brand) 44% 45%, transparent 45% 60%, var(--brand) 60% 61%, transparent 61% 76%, var(--brand) 76% 77%, transparent 77%);
  background-size: 100% 100%, 100% 60%;
  background-position: 0 0, 0 100%;
  background-repeat: no-repeat; }
.mock__table { border: 1px solid var(--line); border-radius: 12px; padding: 14px; display: grid; gap: 8px; }
.mock__table i { height: 9px; border-radius: 4px; background: var(--surface-3); display: block; }

.section { max-width: 1120px; margin: 0 auto; padding: 76px 32px; }
.section--alt { max-width: none; background: color-mix(in srgb, var(--surface) 55%, transparent); border-block: 1px solid var(--line); }
.section--alt > * { max-width: 1120px; margin-inline: auto; }
.section__head { text-align: center; max-width: 620px; margin: 0 auto 38px; }
.section__head h2 { font-size: clamp(24px, 3vw, 33px); letter-spacing: -0.035em; margin: 10px 0 10px; }
.section__head p { color: var(--ink-2); font-size: 14.5px; margin: 0; }

.feature-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.feature { border: 1px solid var(--line); border-radius: 16px; padding: 22px; background: var(--surface); transition: transform .18s ease, box-shadow .18s ease; }
.feature:hover { transform: translateY(-2px); box-shadow: var(--shadow); }
.feature__ico { width: 36px; height: 36px; border-radius: 10px; display: grid; place-items: center; background: var(--brand-soft); color: var(--brand-strong); margin-bottom: 12px; }
[data-theme="dark"] .feature__ico { color: var(--brand); }
.feature h3 { font-size: 14.5px; margin: 0 0 6px; }
.feature p { font-size: 13px; color: var(--ink-2); margin: 0; line-height: 1.6; }

.steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.step { padding: 4px; }
.step__n { font-size: 12px; font-weight: 700; color: var(--brand-strong); letter-spacing: .08em; margin-bottom: 8px; }
[data-theme="dark"] .step__n { color: var(--brand); }
.step h3 { font-size: 16px; margin: 0 0 6px; }
.step p { font-size: 13px; color: var(--ink-2); margin: 0; }

.gen-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.gen { display: flex; gap: 14px; align-items: flex-start; border: 1px solid var(--line); border-radius: 14px; padding: 18px; background: var(--surface); }
.gen b { font-size: 14px; }
.gen p { margin: 3px 0 0; font-size: 12.5px; color: var(--ink-2); }

.limit-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
.limit { text-align: center; padding: 20px; border-radius: 14px; background: var(--surface); border: 1px solid var(--line); }
.limit b { display: block; font-size: 24px; letter-spacing: -0.03em; }
.limit span { font-size: 11.5px; color: var(--ink-3); }

.cta-foot { text-align: center; position: relative; padding: 90px 32px 100px; overflow: hidden; }
.cta-foot__glow { position: absolute; left: 50%; bottom: -240px; width: 640px; height: 480px; transform: translateX(-50%);
  background: radial-gradient(circle, rgba(255, 208, 60, .4) 0%, rgba(255, 208, 60, 0) 65%); pointer-events: none; }
.cta-foot > *:not(.cta-foot__glow) { position: relative; }
.cta-foot h2 { font-size: clamp(26px, 3.4vw, 38px); letter-spacing: -0.04em; margin: 0 0 10px; }
.cta-foot p { color: var(--ink-2); margin: 0 0 26px; }

.landing__foot {
  display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap;
  max-width: 1120px; margin: 0 auto; padding: 26px 32px 44px; border-top: 1px solid var(--line);
}

/* 탭 패널/문서 */
[data-panel] { animation: fadeUp .22s ease both; }
@keyframes fadeUp { from { opacity: 0; transform: translateY(4px); } }
.doc-body { font-size: 13.4px; color: var(--ink-2); line-height: 1.7; }
.doc-list { margin: 0; padding-left: 18px; }
.doc-list li { margin-bottom: 5px; }

@media (max-width: 940px) {
  .landing__nav { padding: 14px 18px; }
  .landing__links { display: none; }
  .hero { padding: 40px 18px 20px; }
  .hero__stats { gap: 22px; margin-top: 32px; }
  .mock { transform: none; margin-top: 34px; }
  .mock__body { grid-template-columns: 1fr; }
  .mock__side { display: none; }
  .mock__row { grid-template-columns: 1fr 1fr; }
  .mock__row > :nth-child(3) { grid-column: span 2; }
  .section { padding: 52px 18px; }
  .feature-grid, .steps, .gen-grid, .limit-grid { grid-template-columns: minmax(0, 1fr); }
  .limit-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .landing__foot { padding: 22px 18px 36px; }
}
