@import url('https://cdn.jsdelivr.net/gh/orioncactus/pretendard@v1.3.9/dist/web/static/pretendard.min.css');

/* ══════════════════════════════════════════════════════
   CSS 커스텀 프로퍼티
══════════════════════════════════════════════════════ */
:root {
  --bg:           #F5EFE0;
  --surface:      #FFFCF5;
  --surface-alt:  #EDE5CC;
  --accent:       #E0D38B;
  --accent-dark:  #C8BB6A;
  --accent-light: #F5F0CC;
  --border:       #4A3E25;
  --border-light: #C4B48A;
  --text:         #2C2410;
  --text-2:       #5A4A2A;
  --text-3:       #8A7A5A;
  --success:      #3A6A28;
  --success-bg:   #EAF5E2;
  --error:        #8B2E2E;
  --error-bg:     #FFF0F0;
  --info:         #1E4E7A;
  --info-bg:      #E6F0FA;
  --shadow:       4px 4px 0 var(--border);
  --shadow-sm:    2px 2px 0 var(--border);
  --shadow-lg:    6px 6px 0 var(--border);
  --radius:       4px;
  --radius-lg:    8px;
  --max-w:        1100px;
  --font:         'Pretendard', 'Segoe UI', -apple-system, BlinkMacSystemFont, sans-serif;
}

/* ══════════════════════════════════════════════════════
   리셋 & 베이스
══════════════════════════════════════════════════════ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
ul { list-style: none; }
button { font-family: inherit; cursor: pointer; }
input, textarea, select { font-family: inherit; }

/* ══════════════════════════════════════════════════════
   레이아웃
══════════════════════════════════════════════════════ */
.container {
  width: 100%;
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 24px;
}
main { flex: 1; }

/* ══════════════════════════════════════════════════════
   타이포그래피
══════════════════════════════════════════════════════ */
h1 { font-size: clamp(2rem, 4vw, 3rem); font-weight: 800; line-height: 1.2; }
h2 { font-size: clamp(1.4rem, 2.5vw, 2rem); font-weight: 700; line-height: 1.3; }
h3 { font-size: 1.15rem; font-weight: 700; }
p  { color: var(--text-2); }

/* ══════════════════════════════════════════════════════
   헤더 / 네비게이션
══════════════════════════════════════════════════════ */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--surface);
  border-bottom: 2px solid var(--border);
  box-shadow: 0 2px 0 var(--border);
}
.nav-inner {
  display: flex;
  align-items: center;
  height: 60px;
  gap: 32px;
}
.nav-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  font-size: 1.1rem;
  color: var(--text);
  white-space: nowrap;
}
.nav-logo-img {
  width: 28px;
  height: 28px;
  object-fit: contain;
  border-radius: 4px;
}
.nav-logo-fallback {
  width: 28px;
  height: 28px;
  background: var(--accent);
  border: 2px solid var(--border);
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 900;
  font-size: 13px;
  color: var(--text);
  flex-shrink: 0;
}
.nav-links {
  display: flex;
  align-items: center;
  gap: 4px;
  margin-left: auto;
}
.nav-links a {
  padding: 6px 14px;
  border-radius: var(--radius);
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-2);
  transition: background 0.15s, color 0.15s;
}
.nav-links a:hover,
.nav-links a.active {
  background: var(--accent);
  color: var(--text);
  font-weight: 700;
}
.nav-cta {
  margin-left: 12px;
  padding: 7px 18px !important;
  background: var(--accent) !important;
  border: 2px solid var(--border) !important;
  box-shadow: var(--shadow-sm) !important;
  border-radius: var(--radius) !important;
  font-weight: 700 !important;
  color: var(--text) !important;
  transition: box-shadow 0.12s, transform 0.12s !important;
}
.nav-cta:hover {
  transform: translate(-1px, -1px) !important;
  box-shadow: 3px 3px 0 var(--border) !important;
}

/* ══════════════════════════════════════════════════════
   버튼
══════════════════════════════════════════════════════ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 24px;
  border-radius: var(--radius);
  font-weight: 700;
  font-size: 0.95rem;
  border: 2px solid var(--border);
  transition: box-shadow 0.12s, transform 0.12s, background 0.12s;
  white-space: nowrap;
}
.btn:hover { transform: translate(-2px, -2px); }
.btn-primary {
  background: var(--accent);
  color: var(--text);
  box-shadow: var(--shadow);
}
.btn-primary:hover { box-shadow: var(--shadow-lg); }
.btn-secondary {
  background: var(--surface);
  color: var(--text);
  box-shadow: var(--shadow);
}
.btn-secondary:hover { box-shadow: var(--shadow-lg); background: var(--surface-alt); }
.btn-outline {
  background: transparent;
  color: var(--text-2);
  box-shadow: none;
  border-color: var(--border-light);
}
.btn-outline:hover { background: var(--surface-alt); box-shadow: var(--shadow-sm); }
.btn-sm { padding: 6px 14px; font-size: 0.85rem; }
.btn-lg { padding: 14px 32px; font-size: 1.05rem; }
.btn-success {
  background: var(--success-bg);
  color: var(--success);
  border-color: var(--success);
  box-shadow: 2px 2px 0 var(--success);
}

/* ══════════════════════════════════════════════════════
   카드
══════════════════════════════════════════════════════ */
.card {
  background: var(--surface);
  border: 2px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px;
  box-shadow: var(--shadow);
}
.card-sm {
  padding: 18px;
}
.card-accent {
  border-top: 4px solid var(--accent-dark);
}
.card-info {
  border-top: 4px solid var(--info);
}
.card-header {
  display: flex;
  align-items: center;
  gap: 10px;
  padding-bottom: 14px;
  margin-bottom: 14px;
  border-bottom: 1.5px solid var(--border-light);
}
.card-icon {
  width: 36px;
  height: 36px;
  background: var(--accent);
  border: 2px solid var(--border);
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 900;
  font-size: 14px;
  color: var(--text);
  flex-shrink: 0;
}
.card-icon-info { background: var(--info-bg); border-color: var(--info); color: var(--info); }

/* ══════════════════════════════════════════════════════
   배지 / 태그
══════════════════════════════════════════════════════ */
.badge {
  display: inline-block;
  padding: 2px 10px;
  border-radius: 2px;
  font-size: 0.72rem;
  font-weight: 700;
  border: 1.5px solid;
  letter-spacing: 0.03em;
}
.badge-new     { background: #E8F5E2; color: var(--success); border-color: var(--success); }
.badge-notice  { background: var(--accent-light); color: var(--text); border-color: var(--accent-dark); }
.badge-update  { background: var(--info-bg); color: var(--info); border-color: var(--info); }
.badge-guide   { background: var(--surface-alt); color: var(--text-2); border-color: var(--border-light); }

/* ══════════════════════════════════════════════════════
   폼 요소
══════════════════════════════════════════════════════ */
.form-group { display: flex; flex-direction: column; gap: 6px; }
.form-label { font-size: 0.85rem; font-weight: 700; color: var(--text-2); }
.form-label .required { color: var(--error); margin-left: 3px; }
.form-input,
.form-select,
.form-textarea {
  width: 100%;
  padding: 10px 14px;
  background: var(--bg);
  border: 2px solid var(--border-light);
  border-radius: var(--radius);
  font-size: 0.95rem;
  color: var(--text);
  transition: border-color 0.15s, box-shadow 0.15s;
  outline: none;
}
.form-input:focus,
.form-select:focus,
.form-textarea:focus {
  border-color: var(--border);
  box-shadow: var(--shadow-sm);
}
.form-textarea { resize: vertical; min-height: 140px; }
.form-hint { font-size: 0.78rem; color: var(--text-3); }

/* ══════════════════════════════════════════════════════
   섹션 공통
══════════════════════════════════════════════════════ */
.section { padding: 80px 0; }
.section-sm { padding: 52px 0; }
.section-title {
  font-size: clamp(1.5rem, 2.5vw, 2rem);
  font-weight: 800;
  margin-bottom: 8px;
}
.section-sub {
  font-size: 1rem;
  color: var(--text-2);
  margin-bottom: 40px;
}
.section-divider {
  height: 3px;
  background: var(--border);
  margin: 10px 0 40px;
  width: 48px;
}

/* ══════════════════════════════════════════════════════
   푸터
══════════════════════════════════════════════════════ */
.site-footer {
  margin-top: auto;
  background: var(--surface-alt);
  border-top: 2px solid var(--border);
  padding: 32px 0 28px;
}
.footer-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 18px;
}
.footer-brand {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 800;
  font-size: 1rem;
  color: var(--text);
}
.footer-brand img {
  width: 22px;
  height: 22px;
  border-radius: 3px;
}
.footer-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 6px 0;
}
.footer-links a {
  padding: 4px 14px;
  font-size: 0.85rem;
  color: var(--text-2);
  font-weight: 500;
  transition: color 0.15s;
  border-right: 1px solid var(--border-light);
}
.footer-links a:last-child { border-right: none; }
.footer-links a:hover { color: var(--text); }
.footer-copy {
  font-size: 0.78rem;
  color: var(--text-3);
  text-align: center;
}

/* ══════════════════════════════════════════════════════
   법률 문서 (privacy / terms)
══════════════════════════════════════════════════════ */
.legal-header {
  padding: 52px 0 36px;
  border-bottom: 2px solid var(--border);
  margin-bottom: 48px;
}
.legal-header .badge { margin-bottom: 14px; }
.legal-header h1 { margin-bottom: 10px; }
.legal-header .meta {
  font-size: 0.85rem;
  color: var(--text-3);
  display: flex;
  gap: 16px;
}
.legal-body { max-width: 760px; }
.legal-section { margin-bottom: 40px; }
.legal-section h2 {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 12px;
  padding-bottom: 8px;
  border-bottom: 1.5px solid var(--border-light);
  display: flex;
  align-items: center;
  gap: 8px;
}
.legal-section h2 .num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  background: var(--accent);
  border: 1.5px solid var(--border);
  border-radius: 3px;
  font-size: 0.78rem;
  font-weight: 900;
  color: var(--text);
  flex-shrink: 0;
}
.legal-section p {
  margin-bottom: 10px;
  font-size: 0.95rem;
  line-height: 1.75;
}
.legal-section ul {
  list-style: disc;
  padding-left: 20px;
  display: flex;
  flex-direction: column;
  gap: 5px;
}
.legal-section ul li {
  font-size: 0.92rem;
  color: var(--text-2);
  line-height: 1.7;
}
.legal-highlight {
  background: var(--accent-light);
  border-left: 3px solid var(--accent-dark);
  padding: 12px 16px;
  border-radius: 0 var(--radius) var(--radius) 0;
  margin: 14px 0;
  font-size: 0.9rem;
  color: var(--text);
}

/* ══════════════════════════════════════════════════════
   공지사항
══════════════════════════════════════════════════════ */
.notice-list { display: flex; flex-direction: column; gap: 12px; }
.notice-item {
  background: var(--surface);
  border: 2px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: box-shadow 0.15s;
}
.notice-item:hover { box-shadow: var(--shadow); }
.notice-header {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px 20px;
  cursor: pointer;
  user-select: none;
}
.notice-title-wrap { flex: 1; min-width: 0; }
.notice-title {
  font-weight: 700;
  font-size: 0.97rem;
  color: var(--text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.notice-meta {
  font-size: 0.78rem;
  color: var(--text-3);
  margin-top: 2px;
}
.notice-toggle {
  width: 28px;
  height: 28px;
  border: 1.5px solid var(--border-light);
  background: var(--bg);
  border-radius: 4px;
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--text-2);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: background 0.15s, transform 0.2s;
}
.notice-item.open .notice-toggle { background: var(--accent); transform: rotate(45deg); }
.notice-body {
  display: none;
  padding: 0 20px 20px;
  border-top: 1.5px solid var(--border-light);
  margin-top: 0;
}
.notice-body.open { display: block; padding-top: 16px; }
.notice-body p { font-size: 0.92rem; line-height: 1.75; margin-bottom: 8px; }
.notice-body ul {
  list-style: disc;
  padding-left: 18px;
  margin-top: 8px;
}
.notice-body ul li {
  font-size: 0.9rem;
  color: var(--text-2);
  line-height: 1.7;
}

/* ══════════════════════════════════════════════════════
   공유 페이지 (share.html)
══════════════════════════════════════════════════════ */
.share-page { padding: 60px 0; }
.share-pin-section { text-align: center; margin-bottom: 48px; }
.share-pin-label {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--text-3);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 16px;
}
.pin-boxes {
  display: inline-flex;
  gap: 10px;
  justify-content: center;
}
.pin-box {
  width: 54px;
  height: 64px;
  background: var(--surface);
  border: 2.5px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.8rem;
  font-weight: 900;
  color: var(--text);
  letter-spacing: 0;
}
.share-content-card {
  position: relative;
}
.share-copy-btn {
  position: absolute;
  top: 16px;
  right: 16px;
}
.share-text-area {
  min-height: 160px;
  padding: 20px;
  font-size: 1rem;
  line-height: 1.75;
  color: var(--text);
  word-break: break-all;
  white-space: pre-wrap;
  background: var(--bg);
  border: 1.5px solid var(--border-light);
  border-radius: var(--radius);
  margin-top: 48px;
}
.share-image-wrap {
  margin-top: 48px;
  text-align: center;
}
.share-image-wrap img {
  max-width: 100%;
  max-height: 400px;
  margin: 0 auto;
  border: 2px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
}
.share-empty {
  text-align: center;
  padding: 60px 20px;
  color: var(--text-3);
}
.share-empty .empty-icon {
  width: 64px;
  height: 64px;
  margin: 0 auto 16px;
  background: var(--surface-alt);
  border: 2px solid var(--border-light);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  font-weight: 900;
  color: var(--text-3);
}
.pin-copy-hint {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 20px;
  padding: 10px 20px;
  background: var(--info-bg);
  border: 1.5px solid var(--info);
  border-radius: var(--radius);
  font-size: 0.88rem;
  color: var(--info);
  font-weight: 600;
}

/* ══════════════════════════════════════════════════════
   홈 페이지 전용
══════════════════════════════════════════════════════ */
.hero {
  padding: 80px 0 72px;
  border-bottom: 2px solid var(--border);
}
.hero-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}
.hero-label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 4px 14px;
  background: var(--accent);
  border: 2px solid var(--border);
  border-radius: var(--radius);
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 20px;
  box-shadow: var(--shadow-sm);
}
.hero h1 { margin-bottom: 18px; }
.hero-sub {
  font-size: 1.05rem;
  color: var(--text-2);
  margin-bottom: 32px;
  line-height: 1.75;
}
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; }
.hero-visual {
  background: var(--surface);
  border: 2px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  padding: 28px;
  aspect-ratio: 4/3;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.mock-titlebar {
  display: flex;
  align-items: center;
  gap: 6px;
  padding-bottom: 10px;
  border-bottom: 1.5px solid var(--border-light);
}
.mock-dot {
  width: 9px; height: 9px;
  border-radius: 50%;
  border: 1.5px solid var(--border-light);
}
.mock-dot:nth-child(1) { background: #E85454; border-color: #C83030; }
.mock-dot:nth-child(2) { background: #E8C030; border-color: #C8A010; }
.mock-dot:nth-child(3) { background: #40B850; border-color: #208830; }
.mock-bar {
  flex: 1;
  height: 9px;
  background: var(--surface-alt);
  border-radius: 2px;
  margin: 0 8px;
}
.mock-entries { display: flex; flex-direction: column; gap: 8px; margin-top: 4px; }
.mock-entry {
  background: var(--bg);
  border: 1.5px solid var(--border-light);
  border-radius: var(--radius);
  padding: 8px 12px;
  display: flex;
  align-items: center;
  gap: 10px;
}
.mock-entry-badge {
  padding: 1px 8px;
  font-size: 0.68rem;
  font-weight: 700;
  border: 1.5px solid;
  border-radius: 2px;
  flex-shrink: 0;
}
.mock-entry-text {
  font-size: 0.78rem;
  color: var(--text-2);
  flex: 1;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.mock-entry-synced {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--success);
  flex-shrink: 0;
}

.features-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}
.feature-card-cloud .card-icon  { background: var(--info-bg); border-color: var(--info); color: var(--info); }
.feature-card-lan .card-icon    { background: var(--accent); border-color: var(--border); color: var(--text); }
.feature-list { display: flex; flex-direction: column; gap: 8px; margin-top: 14px; }
.feature-item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 0.9rem;
  color: var(--text-2);
  line-height: 1.55;
}
.feature-item::before {
  content: '';
  width: 6px;
  height: 6px;
  border-radius: 1px;
  background: var(--accent-dark);
  margin-top: 7px;
  flex-shrink: 0;
}
.feature-card-cloud .feature-item::before { background: var(--info); }

.steps-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.step-card {
  background: var(--surface);
  border: 2px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px 24px;
  box-shadow: var(--shadow);
  text-align: center;
}
.step-num {
  width: 44px;
  height: 44px;
  background: var(--accent);
  border: 2px solid var(--border);
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  font-weight: 900;
  color: var(--text);
  margin: 0 auto 16px;
  box-shadow: var(--shadow-sm);
}
.step-card h3 { margin-bottom: 8px; }
.step-card p  { font-size: 0.88rem; }

.download-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.download-card {
  background: var(--surface);
  border: 2px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px;
  text-align: center;
  box-shadow: var(--shadow);
}
.download-card h3 { margin-bottom: 6px; }
.download-card p  { font-size: 0.85rem; margin-bottom: 20px; }
.platform-badge {
  display: inline-block;
  padding: 2px 10px;
  border: 1.5px solid var(--border-light);
  border-radius: 2px;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  color: var(--text-3);
  margin-bottom: 16px;
}
.coming-soon-btn {
  padding: 10px 20px;
  background: var(--surface-alt);
  border: 1.5px dashed var(--border-light);
  border-radius: var(--radius);
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-3);
  cursor: default;
}

/* ══════════════════════════════════════════════════════
   반응형 미디어 쿼리
══════════════════════════════════════════════════════ */
@media (max-width: 768px) {
  .hero-inner { grid-template-columns: 1fr; }
  .hero-visual { display: none; }
  .features-grid { grid-template-columns: 1fr; }
  .steps-grid { grid-template-columns: 1fr; }
  .download-grid { grid-template-columns: 1fr; }
  .nav-links a:not(.nav-cta) { display: none; }
  .nav-links { margin-left: auto; }
  .section { padding: 52px 0; }
  .pin-box { width: 44px; height: 54px; font-size: 1.5rem; }
}

@media (max-width: 540px) {
  .container { padding: 0 16px; }
  .footer-links { flex-direction: column; align-items: center; }
  .footer-links a { border-right: none; padding: 6px 0; }
}
