/* CmdPad 홍보 사이트 — 빌드 도구 없이 이 파일 하나로 끝낸다.
   색은 앱의 Theme.swift 와 맞췄다 (민트 #4CD499, 배경 #0E0F13). */

:root {
  --bg: #0e0f13;
  --surface: #1c1f25;
  --surface-2: #262a32;
  --text: #f0f1f3;
  --muted: #9aa0ab;
  --mint: #4cd499;
  --mint-dim: #2f9c6f;
  --line: rgba(255, 255, 255, 0.09);
  --radius: 16px;
  --wrap: 1080px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "Apple SD Gothic Neo",
               "Pretendard", "Noto Sans KR", system-ui, sans-serif;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 24px; }

/* ── 상단 바 ───────────────────────────────────────── */
header {
  position: sticky; top: 0; z-index: 50;
  backdrop-filter: saturate(160%) blur(14px);
  background: rgba(14, 15, 19, 0.72);
  border-bottom: 1px solid var(--line);
}
.nav { display: flex; align-items: center; gap: 20px; height: 60px; }
.brand { display: flex; align-items: center; gap: 9px; font-weight: 700; letter-spacing: -0.01em; }
.brand .mark {
  width: 26px; height: 26px; border-radius: 7px;
  background: linear-gradient(150deg, #1d2b52, #101728);
  border: 1px solid rgba(255,255,255,.14);
  display: grid; place-items: center;
  color: var(--mint); font-size: 15px; line-height: 1;
}
.nav .spacer { flex: 1; }
.nav a { color: var(--muted); text-decoration: none; font-size: 14.5px; }
.nav a:hover { color: var(--text); }
.nav .lang { border: 1px solid var(--line); padding: 5px 11px; border-radius: 999px; }

/* ── 히어로 ────────────────────────────────────────── */
.hero { padding: 74px 0 40px; position: relative; }
.hero::before {                       /* 앱의 오로라 배경을 옮겨온 것 */
  content: ""; position: absolute; inset: -160px 0 auto; height: 620px;
  background:
    radial-gradient(50% 55% at 18% 30%, rgba(48,160,120,.20), transparent 70%),
    radial-gradient(45% 50% at 82% 22%, rgba(60,90,200,.20), transparent 70%);
  filter: blur(20px); pointer-events: none; z-index: -1;
}
.hero h1 {
  font-size: clamp(34px, 6vw, 56px); line-height: 1.18;
  letter-spacing: -0.03em; font-weight: 800; margin-bottom: 18px;
}
.hero .sub { font-size: clamp(16px, 2.2vw, 19px); color: var(--muted); max-width: 620px; }
.hero .note { margin-top: 14px; font-size: 14px; color: var(--muted); }

.cta { display: flex; flex-wrap: wrap; gap: 12px; margin: 30px 0 8px; }
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 13px 22px; border-radius: 12px; text-decoration: none;
  font-weight: 700; font-size: 15px; border: 1px solid transparent;
  transition: transform .12s ease, background .12s ease;
}
.btn:active { transform: scale(.98); }
.btn-primary { background: var(--mint); color: #06231a; }
.btn-primary:hover { background: #5ee0a8; }
.btn-ghost { border-color: var(--line); color: var(--text); background: var(--surface); }
.btn-ghost:hover { background: var(--surface-2); }

/* ── 기기 목업 (스크린샷 대신 CSS 로 그린다) ────────── */
.mock-row { display: flex; justify-content: center; margin: 46px 0 10px; }
.phone {
  width: min(760px, 100%); aspect-ratio: 16 / 8.4;
  border-radius: 30px; padding: 16px;
  background: linear-gradient(160deg, #0c1a2a, #0b1220 55%, #0a1a16);
  border: 1px solid rgba(255,255,255,.13);
  box-shadow: 0 30px 70px rgba(0,0,0,.55);
  display: grid; grid-template-rows: auto 1fr;
}
.phone .bar {
  display: flex; align-items: center; gap: 8px;
  font-size: 12px; color: var(--muted); padding: 2px 6px 12px;
}
.dot { width: 7px; height: 7px; border-radius: 50%; background: var(--mint); }
.keys {
  display: grid; grid-template-columns: repeat(6, 1fr); gap: 12px;
  align-content: center;
}
.key {
  aspect-ratio: 1; border-radius: 23%;
  background: linear-gradient(180deg, #212121, #121212);
  border: 1px solid rgba(255,255,255,.10);
  display: grid; place-items: center;
  color: #fff; font-weight: 600; letter-spacing: -0.02em;
  font-size: clamp(11px, 1.9vw, 19px);
  box-shadow: 0 5px 12px rgba(0,0,0,.45);
}
.key.brand-c { background: linear-gradient(160deg, #d97757, #c25f3f); }
.key.brand-g { background: linear-gradient(160deg, #0f0f0f, #1f1f1f); }
.key.brand-w { background: linear-gradient(160deg, #f5f5f5, #e3e3e3); color: #222; }

/* ── 섹션 공통 ─────────────────────────────────────── */
section { padding: 62px 0; border-top: 1px solid var(--line); }
/* 고정 헤더 높이만큼 띄운다 — 없으면 #가격 으로 이동했을 때 제목이 헤더에 가린다 */
section[id] { scroll-margin-top: 72px; }
section:first-of-type { border-top: 0; }
h2 {
  font-size: clamp(24px, 3.4vw, 32px); letter-spacing: -0.025em;
  font-weight: 800; margin-bottom: 12px;
}
.lead { color: var(--muted); max-width: 680px; margin-bottom: 34px; }

.grid { display: grid; gap: 18px; grid-template-columns: repeat(3, 1fr); }
.grid.two { grid-template-columns: repeat(2, 1fr); }
.card {
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 24px;
}
.card h3 { font-size: 17.5px; margin-bottom: 8px; letter-spacing: -0.015em; }
.card p { color: var(--muted); font-size: 15px; }
.card .ico { font-size: 22px; margin-bottom: 12px; display: block; }
.card.hi { border-color: rgba(76,212,153,.35); background: linear-gradient(180deg, rgba(76,212,153,.07), var(--surface)); }

/* ── 단계 ─────────────────────────────────────────── */
.steps { counter-reset: s; display: grid; gap: 14px; }
.step {
  display: grid; grid-template-columns: 34px 1fr; gap: 16px; align-items: start;
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 20px 22px;
}
.step::before {
  counter-increment: s; content: counter(s);
  width: 34px; height: 34px; border-radius: 50%;
  background: rgba(76,212,153,.14); color: var(--mint);
  display: grid; place-items: center; font-weight: 800; font-size: 15px;
}
.step h3 { font-size: 16.5px; margin-bottom: 4px; }
.step p { color: var(--muted); font-size: 14.5px; }

/* ── 가격 ─────────────────────────────────────────── */
.price { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; }
.plan {
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 28px;
}
.plan.pro { border-color: rgba(76,212,153,.4); }
.plan .tag { font-size: 13px; color: var(--mint); font-weight: 700; letter-spacing: .02em; }
.plan .amount { font-size: 34px; font-weight: 800; letter-spacing: -0.03em; margin: 6px 0 2px; }
.plan .per { color: var(--muted); font-size: 14px; margin-bottom: 18px; }
.plan ul { list-style: none; display: grid; gap: 9px; }
.plan li { color: var(--muted); font-size: 15px; padding-left: 24px; position: relative; }
.plan li::before {
  content: "✓"; position: absolute; left: 0; color: var(--mint); font-weight: 700;
}
.plan li.no::before { content: "—"; color: #667; }

/* ── 표 ───────────────────────────────────────────── */
.table-wrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; font-size: 15px; min-width: 520px; }
th, td { text-align: left; padding: 13px 14px; border-bottom: 1px solid var(--line); }
th { color: var(--muted); font-weight: 600; font-size: 14px; }
td.yes { color: var(--mint); font-weight: 600; }
td.no { color: #6b7280; }

/* ── FAQ ──────────────────────────────────────────── */
details {
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 18px 22px; margin-bottom: 12px;
}
details summary {
  cursor: pointer; font-weight: 650; font-size: 16px; list-style: none;
  display: flex; justify-content: space-between; gap: 12px;
}
details summary::-webkit-details-marker { display: none; }
details summary::after { content: "+"; color: var(--mint); font-weight: 700; }
details[open] summary::after { content: "−"; }
details p { color: var(--muted); font-size: 15px; margin-top: 12px; }

/* ── 푸터 ─────────────────────────────────────────── */
footer {
  border-top: 1px solid var(--line); padding: 34px 0 56px;
  color: var(--muted); font-size: 14px;
}
footer .row { display: flex; flex-wrap: wrap; gap: 18px; align-items: center; }
footer a { color: var(--muted); }
footer .spacer { flex: 1; }

/* 좁은 화면에선 섹션 링크를 숨긴다 — 안 그러면 메뉴가 두 줄로 깨진다.
   어차피 스크롤로 다 닿는 한 장짜리 페이지다. */
@media (max-width: 640px) {
  .nav a:not(.lang) { display: none; }
  .nav { gap: 12px; }
}

@media (max-width: 860px) {
  .grid, .grid.two, .price { grid-template-columns: 1fr; }
  .keys { grid-template-columns: repeat(4, 1fr); }
  .hero { padding-top: 52px; }
}
