:root {
  --bg: #ffffff;
  --surface: #ffffff;
  --surface-2: #f6f6f3;
  --border: #e6e6e0;
  --border-strong: #d3d3cb;
  --text: #1a1a17;
  --text-muted: #6c6c63;
  --accent: #2f6feb;
  --accent-text: #1b4fbf;
  --accent-bg: #eaf1fd;
  --radius: 10px;
  --card-radius: 14px;
  --maxw: 1080px;
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Noto Sans KR", "Apple SD Gothic Neo", sans-serif;
  --mono: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, monospace;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0e0e0c;
    --surface: #171614;
    --surface-2: #1c1b18;
    --border: #2a2924;
    --border-strong: #3a382f;
    --text: #ededea;
    --text-muted: #9c9a8f;
    --accent: #5f92f2;
    --accent-text: #9cbcf7;
    --accent-bg: #182338;
  }
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
h1, h2, h3 { line-height: 1.25; font-weight: 650; letter-spacing: -0.01em; }
.muted { color: var(--text-muted); }
.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }

.brand { display: inline-flex; align-items: center; gap: 9px; font-weight: 650; font-size: 18px; color: var(--text); }
.brand svg { width: 24px; height: 24px; }

.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 10px 18px; border-radius: var(--radius);
  font-size: 15px; font-weight: 550; cursor: pointer;
  border: 1px solid var(--border-strong); background: transparent; color: var(--text);
  transition: background .15s, border-color .15s, transform .05s;
}
.btn:hover { background: var(--surface-2); }
.btn:active { transform: scale(.985); }
.btn-primary { background: var(--text); color: var(--bg); border-color: var(--text); }
.btn-primary:hover { opacity: .9; background: var(--text); }
.btn svg { width: 17px; height: 17px; }

.pill {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 13px; color: var(--accent-text); background: var(--accent-bg);
  padding: 5px 13px; border-radius: 999px;
}

/* ── top nav ── */
.nav { position: sticky; top: 0; z-index: 20; background: color-mix(in srgb, var(--bg) 88%, transparent); backdrop-filter: blur(8px); border-bottom: 1px solid var(--border); }
.nav-inner { display: flex; align-items: center; justify-content: space-between; height: 60px; }
.nav-links { display: flex; align-items: center; gap: 22px; font-size: 14px; color: var(--text-muted); }
.nav-links a:hover { color: var(--text); }
.nav-ghost { display: inline-flex; align-items: center; gap: 7px; padding: 6px 12px; border: 1px solid var(--border-strong); border-radius: var(--radius); color: var(--text); }
.nav-ghost svg { width: 16px; height: 16px; }
@media (max-width: 640px) { .nav-links .hide-sm { display: none; } }

/* ── hero ── */
.hero { text-align: center; padding: 76px 0 52px; }
.hero h1 { font-size: 44px; margin: 20px auto 16px; max-width: 640px; font-weight: 700; }
.hero p { font-size: 18px; color: var(--text-muted); max-width: 560px; margin: 0 auto 30px; }
.hero-cta { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }
@media (max-width: 640px) { .hero h1 { font-size: 32px; } .hero p { font-size: 16px; } }

.section { padding: 44px 0; }
.section-title { text-align: center; font-size: 26px; margin: 0 0 8px; }
.section-sub { text-align: center; color: var(--text-muted); margin: 0 0 34px; }

/* ── feature grid ── */
.features { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 16px; }
.feature { background: var(--surface); border: 1px solid var(--border); border-radius: var(--card-radius); padding: 20px; }
.feature .ico { width: 38px; height: 38px; border-radius: 10px; background: var(--accent-bg); color: var(--accent-text); display: flex; align-items: center; justify-content: center; margin-bottom: 12px; }
.feature .ico svg { width: 20px; height: 20px; }
.feature h3 { font-size: 16px; margin: 0 0 5px; }
.feature p { font-size: 14px; color: var(--text-muted); margin: 0; line-height: 1.55; }

/* ── how it works ── */
.flow { display: flex; align-items: center; justify-content: center; gap: 12px; flex-wrap: wrap; }
.flow-node { display: inline-flex; align-items: center; gap: 9px; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 12px 18px; font-size: 15px; }
.flow-node.accent { background: var(--accent-bg); border-color: transparent; color: var(--accent-text); }
.flow-node svg { width: 18px; height: 18px; }
.flow-arrow { color: var(--text-muted); font-size: 20px; }

/* ── code block ── */
.code { max-width: 520px; margin: 0 auto; background: var(--surface-2); border: 1px solid var(--border); border-radius: var(--card-radius); overflow: hidden; font-family: var(--mono); }
.code-head { display: flex; align-items: center; justify-content: space-between; padding: 9px 15px; border-bottom: 1px solid var(--border); font-size: 12px; color: var(--text-muted); }
.code-body { padding: 15px 17px; font-size: 13.5px; line-height: 2; }
.code-body .c { color: var(--text-muted); }
.code-body .p { color: var(--accent-text); }

/* ── demo preview / CTA band ── */
.band { background: var(--surface-2); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }

footer.site { border-top: 1px solid var(--border); padding: 22px 0; }
.foot-inner { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 12px; font-size: 14px; color: var(--text-muted); }
.foot-inner a:hover { color: var(--text); }
.foot-links { display: flex; gap: 18px; }

/* ══════════ demo dashboard ══════════ */
.app { display: flex; min-height: 100vh; }
.side { width: 224px; flex-shrink: 0; border-right: 1px solid var(--border); padding: 18px 14px; position: sticky; top: 0; height: 100vh; display: flex; flex-direction: column; background: var(--surface); }
.side .brand { padding: 6px 8px 18px; }
.side nav { display: flex; flex-direction: column; gap: 2px; }
.side nav a { display: flex; align-items: center; gap: 10px; padding: 9px 11px; border-radius: 8px; font-size: 14px; color: var(--text-muted); }
.side nav a:hover { background: var(--surface-2); color: var(--text); }
.side nav a.active { background: var(--accent-bg); color: var(--accent-text); font-weight: 550; }
.side nav a svg { width: 17px; height: 17px; }
.side-foot { margin-top: auto; font-size: 12px; color: var(--text-muted); padding: 8px; border-top: 1px solid var(--border); }
.main { flex: 1; min-width: 0; padding: 26px 30px 48px; }
@media (max-width: 760px) { .side { display: none; } .main { padding: 20px; } }

.demo-banner { display: flex; align-items: center; gap: 9px; font-size: 13px; background: var(--accent-bg); color: var(--accent-text); border-radius: var(--radius); padding: 9px 14px; margin-bottom: 22px; }
.demo-banner svg { width: 16px; height: 16px; flex-shrink: 0; }
.demo-banner a { text-decoration: underline; }

.page-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; margin-bottom: 20px; flex-wrap: wrap; }
.page-head h1 { font-size: 24px; margin: 0 0 3px; }
.page-head p { margin: 0; color: var(--text-muted); font-size: 14px; }
.select { display: inline-flex; align-items: center; gap: 7px; border: 1px solid var(--border-strong); border-radius: 8px; padding: 7px 12px; font-size: 13px; color: var(--text-muted); background: var(--surface); }
.select svg { width: 15px; height: 15px; }

.tabs { display: flex; gap: 4px; border-bottom: 1px solid var(--border); margin-bottom: 22px; }
.tab { padding: 9px 15px; font-size: 14px; color: var(--text-muted); cursor: pointer; border: none; background: none; border-bottom: 2px solid transparent; margin-bottom: -1px; }
.tab.active { color: var(--text); border-bottom-color: var(--accent); font-weight: 550; }

.stat-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 14px; margin-bottom: 22px; }
.stat { background: var(--surface); border: 1px solid var(--border); border-radius: var(--card-radius); padding: 16px 18px; }
.stat .lbl { display: flex; align-items: center; gap: 7px; font-size: 13px; color: var(--text-muted); margin-bottom: 8px; }
.stat .lbl svg { width: 15px; height: 15px; }
.stat .val { font-size: 26px; font-weight: 650; letter-spacing: -0.01em; }
.stat .hint { font-size: 12px; color: var(--text-muted); margin-top: 3px; }

.grid-2 { display: grid; grid-template-columns: 2fr 1fr; gap: 16px; }
@media (max-width: 900px) { .grid-2 { grid-template-columns: 1fr; } }
.card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--card-radius); }
.card-head { display: flex; align-items: center; justify-content: space-between; padding: 15px 18px; border-bottom: 1px solid var(--border); }
.card-head h3 { font-size: 15px; margin: 0; font-weight: 600; }
.card-head a { font-size: 13px; color: var(--text-muted); }
.card-head a:hover { color: var(--text); }
.card-body { padding: 16px 18px; }

table { width: 100%; border-collapse: collapse; font-size: 14px; }
th, td { padding: 9px 6px; text-align: left; }
th { font-size: 12px; color: var(--text-muted); font-weight: 500; border-bottom: 1px solid var(--border); }
td { border-bottom: 1px solid var(--border); }
tr:last-child td { border-bottom: none; }
td.num, th.num { text-align: right; font-variant-numeric: tabular-nums; }
td.name { font-weight: 550; }
td.rank { color: var(--text-muted); width: 34px; }

.seg { display: inline-flex; gap: 4px; }
.seg button { padding: 6px 14px; font-size: 13px; border: 1px solid var(--border-strong); background: var(--surface); color: var(--text-muted); border-radius: 8px; cursor: pointer; }
.seg button.active { background: var(--text); color: var(--bg); border-color: var(--text); }

.chart svg { width: 100%; height: auto; display: block; }
.axis { font-size: 11px; fill: var(--text-muted); }
.hidden { display: none; }

/* Actual-app screenshot previews; no simulated dashboard values. */
.hero.wrap, .section.wrap { padding-inline: 24px; }
.product-shot { margin-block: 0; }
.product-shot img { display: block; width: 100%; height: auto; border: 1px solid var(--border); border-radius: var(--card-radius); }
.product-shot figcaption { margin-top: 12px; color: var(--text-muted); font-size: 13px; text-align: center; }
.screen-preview { scroll-margin-top: 80px; }
.screen-preview figure { margin-inline: 0; }
.text-link { color: var(--accent-text); text-decoration: underline; text-underline-offset: 3px; }
.scope-note ul { margin-top: 0; padding-left: 22px; }
.scope-note li + li { margin-top: 12px; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 4px; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
