/* 스튜디오 백묵 — 모바일 우선 반응형 */
:root {
  --bg: #0f1419;
  --bg-card: #1a222c;
  --bg-soft: #243040;
  --text: #f2f4f7;
  --muted: #9aa7b5;
  --accent: #3d8bfd;
  --accent-hover: #5a9fff;
  --accent-soft: rgba(61, 139, 253, 0.15);
  --warn: #f0b429;
  --warn-bg: rgba(240, 180, 41, 0.12);
  --border: #2c3a4a;
  --radius: 14px;
  --shadow: 0 8px 28px rgba(0, 0, 0, 0.35);
  --max: 960px;
  --font: "Pretendard", "Apple SD Gothic Neo", "Noto Sans KR", system-ui, -apple-system, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--accent); text-decoration: none; }
a:hover { color: var(--accent-hover); text-decoration: underline; }
ul { padding-left: 1.2rem; }
h1, h2, h3 { line-height: 1.3; margin: 0 0 0.75rem; font-weight: 700; }
h1 { font-size: 1.75rem; }
h2 { font-size: 1.35rem; }
h3 { font-size: 1.1rem; }
p { margin: 0 0 1rem; color: var(--muted); }
.lead { font-size: 1.05rem; color: var(--text); }

.container { width: min(100% - 2rem, var(--max)); margin-inline: auto; }
.section { padding: 2.5rem 0; }
.section-alt { background: #121820; }

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(15, 20, 25, 0.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}
.nav {
  display: flex; align-items: center; justify-content: space-between;
  min-height: 58px; gap: 1rem;
}
.logo {
  font-weight: 800; font-size: 1.05rem; color: var(--text);
  text-decoration: none; white-space: nowrap;
}
.logo:hover { text-decoration: none; color: var(--accent); }
.logo span { color: var(--accent); }
.nav-toggle {
  display: inline-flex; align-items: center; justify-content: center;
  width: 42px; height: 42px; border: 1px solid var(--border);
  border-radius: 10px; background: var(--bg-card); color: var(--text);
  cursor: pointer;
}
.nav-toggle span {
  display: block; width: 18px; height: 2px; background: currentColor;
  position: relative;
}
.nav-toggle span::before, .nav-toggle span::after {
  content: ""; position: absolute; left: 0; width: 18px; height: 2px; background: currentColor;
}
.nav-toggle span::before { top: -6px; }
.nav-toggle span::after { top: 6px; }
.nav-links {
  display: none; position: absolute; left: 0; right: 0; top: 58px;
  background: var(--bg-card); border-bottom: 1px solid var(--border);
  padding: 0.75rem 1rem 1rem; flex-direction: column; gap: 0.25rem;
}
.nav-links.open { display: flex; }
.nav-links a {
  color: var(--text); padding: 0.7rem 0.85rem; border-radius: 10px;
  text-decoration: none; font-size: 0.95rem;
}
.nav-links a:hover { background: var(--bg-soft); text-decoration: none; }

@media (min-width: 768px) {
  .nav-toggle { display: none; }
  .nav-links {
    display: flex; position: static; flex-direction: row; align-items: center;
    background: transparent; border: 0; padding: 0; gap: 0.15rem;
  }
  .nav-links a { padding: 0.45rem 0.7rem; font-size: 0.9rem; }
  h1 { font-size: 2.25rem; }
  h2 { font-size: 1.6rem; }
  .section { padding: 3.5rem 0; }
}

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.4rem;
  padding: 0.8rem 1.2rem; border-radius: 12px; font-weight: 700;
  border: 1px solid transparent; cursor: pointer; text-decoration: none;
  font-size: 0.95rem; transition: 0.15s ease;
}
.btn:hover { text-decoration: none; }
.btn-primary { background: var(--accent); color: #fff; }
.btn-primary:hover { background: var(--accent-hover); color: #fff; }
.btn-ghost {
  background: transparent; color: var(--text); border-color: var(--border);
}
.btn-ghost:hover { background: var(--bg-soft); color: var(--text); }
.btn-block { width: 100%; }
.btn-row { display: flex; flex-wrap: wrap; gap: 0.65rem; margin-top: 1.25rem; }

/* Hero */
.hero {
  padding: 2.75rem 0 2rem;
  background:
    radial-gradient(ellipse at top right, rgba(61,139,253,0.18), transparent 55%),
    var(--bg);
}
.hero-badge {
  display: inline-block; font-size: 0.8rem; font-weight: 700;
  color: var(--accent); background: var(--accent-soft);
  padding: 0.35rem 0.7rem; border-radius: 999px; margin-bottom: 0.9rem;
}
.price-pill {
  display: inline-flex; align-items: baseline; gap: 0.35rem;
  background: var(--bg-card); border: 1px solid var(--border);
  padding: 0.65rem 1rem; border-radius: 12px; margin: 1rem 0 0.25rem;
}
.price-pill strong { font-size: 1.45rem; color: #fff; }
.price-pill span { color: var(--muted); font-size: 0.9rem; }

/* Cards */
.grid { display: grid; gap: 1rem; }
.grid-2 { grid-template-columns: 1fr; }
.grid-3 { grid-template-columns: 1fr; }
@media (min-width: 640px) {
  .grid-2 { grid-template-columns: 1fr 1fr; }
  .grid-3 { grid-template-columns: 1fr 1fr; }
}
@media (min-width: 900px) {
  .grid-3 { grid-template-columns: 1fr 1fr 1fr; }
}
.card {
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 1.25rem; box-shadow: var(--shadow);
}
.card h3 { margin-bottom: 0.4rem; }
.card .meta { font-size: 0.9rem; color: var(--muted); margin-bottom: 0.85rem; }
.feature-icon {
  width: 42px; height: 42px; border-radius: 11px;
  display: grid; place-items: center;
  background: var(--accent-soft); color: var(--accent);
  font-size: 1.2rem; margin-bottom: 0.75rem;
}
.chip {
  display: inline-block; font-size: 0.78rem; font-weight: 600;
  padding: 0.25rem 0.55rem; border-radius: 999px;
  background: var(--bg-soft); color: var(--muted); margin: 0.15rem 0.2rem 0.15rem 0;
}
.chip-accent { background: var(--accent-soft); color: var(--accent); }

/* Gallery placeholders */
.gallery { display: grid; grid-template-columns: 1fr 1fr; gap: 0.6rem; }
.gallery .ph {
  aspect-ratio: 4/3; border-radius: 12px; background: var(--bg-soft);
  border: 1px dashed var(--border); display: grid; place-items: center;
  color: var(--muted); font-size: 0.85rem; text-align: center; padding: 0.5rem;
}
.gallery .ph:first-child { grid-column: 1 / -1; aspect-ratio: 16/9; }

/* Steps */
.steps { counter-reset: step; list-style: none; padding: 0; margin: 0; }
.steps li {
  position: relative; padding: 1rem 1rem 1rem 3.4rem;
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: var(--radius); margin-bottom: 0.75rem;
}
.steps li::before {
  counter-increment: step; content: counter(step);
  position: absolute; left: 1rem; top: 1rem;
  width: 1.7rem; height: 1.7rem; border-radius: 50%;
  background: var(--accent); color: #fff; font-weight: 800;
  font-size: 0.85rem; display: grid; place-items: center;
}
.steps strong { color: var(--text); display: block; margin-bottom: 0.2rem; }

/* Draft / TODO banners */
.draft-banner, .todo-banner {
  border-radius: 12px; padding: 0.85rem 1rem; margin-bottom: 1.25rem;
  font-size: 0.92rem;
}
.draft-banner {
  background: var(--warn-bg); border: 1px solid rgba(240,180,41,0.35); color: #ffe8a3;
}
.todo-banner {
  background: rgba(255, 90, 90, 0.1); border: 1px solid rgba(255,90,90,0.3); color: #ffb4b4;
}
.todo-inline {
  display: inline-block; font-size: 0.75rem; font-weight: 700;
  background: rgba(255,90,90,0.15); color: #ff9a9a;
  padding: 0.1rem 0.45rem; border-radius: 6px; margin-left: 0.35rem;
  vertical-align: middle;
}

/* FAQ */
.faq details {
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: 12px; padding: 0.9rem 1rem; margin-bottom: 0.6rem;
}
.faq summary {
  cursor: pointer; font-weight: 700; color: var(--text);
  list-style: none;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; float: right; color: var(--muted); }
.faq details[open] summary::after { content: "−"; }
.faq details p { margin: 0.75rem 0 0; }

/* Table-ish rules */
.rule-list { list-style: none; padding: 0; margin: 0 0 1rem; }
.rule-list li {
  padding: 0.7rem 0; border-bottom: 1px solid var(--border);
  color: var(--muted); display: flex; gap: 0.6rem;
}
.rule-list li::before { content: "·"; color: var(--accent); font-weight: 900; }

/* Footer */
.site-footer {
  border-top: 1px solid var(--border); padding: 2rem 0 2.5rem;
  margin-top: 1rem; color: var(--muted); font-size: 0.9rem;
}
.site-footer a { color: var(--muted); }
.site-footer .brand { color: var(--text); font-weight: 700; margin-bottom: 0.5rem; }
.footer-grid {
  display: grid; gap: 1.25rem;
}
@media (min-width: 640px) {
  .footer-grid { grid-template-columns: 1.4fr 1fr 1fr; }
}
.biz-todo {
  margin-top: 1rem; padding: 0.75rem 0.9rem; border-radius: 10px;
  border: 1px dashed var(--border); font-size: 0.82rem; color: #7f8b98;
}

/* Utility */
.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0,0,0,0); border: 0;
}
.text-center { text-align: center; }
.mt-0 { margin-top: 0; }
.mb-0 { margin-bottom: 0; }
.muted { color: var(--muted); }
.page-hero { padding: 2rem 0 0.5rem; }

.visitor-count {
  margin: 0.85rem 0 0;
  text-align: center;
  font-size: 0.8rem;
  color: var(--muted);
}
.visitor-count[hidden] { display: none; }
