@charset "UTF-8";
/* =============================================
   전역 변수 및 기본 설정
   ============================================= */
:root {
  --color-primary: #ffffff;
  --color-accent: #e5f50b;
  --color-muted: #9ca3af;
  --color-border: #2e2e2e;
  --color-bg: #1a1a1a;
  --color-bg-soft: #1a1a1a;
  --color-text: #a8b3c0;

  --font-base: 0.9375rem;
  --font-sm: 0.875rem;
  --font-xs: 0.8rem;
  --lh: 1.7;

  --h1: clamp(1.75rem, 4vw, 2.5rem);
  --h2: clamp(1.35rem, 2.8vw, 1.75rem);
  --h3: clamp(1rem, 1.8vw, 1.2rem);

  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;

  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.07);
  --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.08);

  --wrap-width: 1020px;
  --wrap-pad: 0 16px;
}

/* =============================================
   스크린 리더 건너뛰기 링크
   ============================================= */
.skip-link {
  position: absolute;
  top: -100%;
  left: 0;
  z-index: 9999;
  padding: 8px 16px;
  background: var(--color-accent);
  color: #1a1a1a;
  font-size: var(--font-sm);
  text-decoration: none;
}
.skip-link:focus {
  top: 0;
}

/* =============================================
   리셋 & 기본 타이포그래피
   ============================================= */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { font-size: 16px; scroll-behavior: smooth; }

body {
  font-family: "Noto Sans KR", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: var(--font-base);
  line-height: var(--lh);
  color: var(--color-primary);
  background: var(--color-bg);
}

img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }

h1, h2, h3, h4 {
  line-height: 1.25;
  font-weight: 700;
  color: var(--color-primary);
}
h1 { font-size: var(--h1); margin-bottom: 0.5em; }
h2 { font-size: var(--h2); margin-bottom: 0.5em; }
h3 { font-size: var(--h3); margin-bottom: 0.4em; }

p { margin-bottom: 0.75rem; color: var(--color-text); }
p:last-child { margin-bottom: 0; }

/* =============================================
   레이아웃 래퍼
   ============================================= */
.wrap {
  max-width: var(--wrap-width);
  margin: 0 auto;
  padding: var(--wrap-pad);
}

/* =============================================
   헤더
   ============================================= */
.site-head {
  border-bottom: 1px solid #111111;
  background: #000000;
  position: sticky;
  top: 0;
  z-index: 100;
}

.site-head .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding-top: 14px;
  padding-bottom: 14px;
}

/* 로고 */
.brand img {
  height: 48px;
  width: auto;
}

/* 내비게이션 */
.nav {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 4px;
}

.nav a {
  text-decoration: none;
  color: var(--color-primary);
  font-weight: 500;
  font-size: 1rem;
  padding: 6px 14px;
  border-radius: var(--radius-sm);
  transition: background 0.15s;
}

.nav a:hover { background: var(--color-bg-soft); }
.nav a.active { color: var(--color-accent); font-weight: 700; }

/* =============================================
   히어로 섹션
   ============================================= */
.hero {
  padding: 60px 0 48px;
  border-bottom: 1px solid var(--color-border);
  background: var(--color-accent);
}

.hero h1 { letter-spacing: -0.02em; color: #1a1a1a; }

.hero-desc {
  font-size: 1.1rem;
  color: #1a1a1a;
  max-width: 680px;
  margin-top: 12px;
  margin-bottom: 28px;
  line-height: 1.7;
}

.hero-img {
  width: 100%;
  border-radius: var(--radius-lg);
  aspect-ratio: 16 / 6;
  object-fit: cover;
  margin-top: 32px;
}

/* =============================================
   버튼
   ============================================= */
.btn {
  display: inline-block;
  text-decoration: none;
  font-weight: 600;
  border-radius: var(--radius-md);
  padding: 11px 22px;
  border: 1px solid var(--color-border);
  font-size: var(--font-sm);
  transition: opacity 0.15s, transform 0.15s;
  cursor: pointer;
}

.btn:hover { opacity: 0.88; transform: translateY(-1px); }
.btn.primary { background: #f0f0f0; color: #1a1a1a; border-color: #cccccc; }
.btn.accent  { background: #cf59e2; color: #fff;    border-color: #b44fd4; }

.btn-group { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 24px; }

/* =============================================
   섹션 공통
   ============================================= */
.section { padding: 56px 0; }
.section + .section { border-top: 1px solid var(--color-border); }

.section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 28px;
}

.section-head h2 { margin-bottom: 0; }
.section-head a {
  font-size: var(--font-sm);
  color: var(--color-muted);
  text-decoration: none;
  white-space: nowrap;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  padding: 5px 14px;
  transition: color 0.15s, border-color 0.15s;
}

.section-head a:hover {
  color: var(--color-primary);
  border-color: #9ca3af;
  text-decoration: none;
}

/* =============================================
   특징 카드 그리드 (trust-box)
   ============================================= */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 16px;
}

.trust-box {
  border: 1px solid var(--color-border);
  background: var(--color-bg);
  padding: 22px;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
}

.trust-box h3 { margin-top: 0; font-size: 1.05rem; }
.trust-box p  { font-size: 0.95rem; margin-bottom: 0; color: var(--color-text); }

/* =============================================
   블로그 카드 그리드
   ============================================= */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 20px;
}

.card {
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  background: var(--color-bg);
  overflow: hidden;
  transition: transform 0.2s, box-shadow 0.2s;
}

.card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
  border-color: #d1d5db;
}

.card-thumb {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  display: block;
}

.card-thumb[src=""],
.card-thumb:not([src]) {
  display: none;
}

/* 썸네일 플레이스홀더 */
.card-thumb-placeholder {
  width: 100%;
  aspect-ratio: 16 / 9;
  background: var(--color-bg-soft);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #9ca3af;
  font-size: var(--font-xs);
}

.card-body { padding: 14px 16px 18px; }

.card-meta {
  font-size: var(--font-xs);
  color: var(--color-muted);
  margin-bottom: 6px;
}

.card-title {
  font-size: 1rem;
  font-weight: 700;
  line-height: 1.4;
  margin-bottom: 8px;
}

.card-title a {
  text-decoration: none;
  color: var(--color-primary);
}

.card-title a:hover { color: var(--color-accent); }

.card-excerpt {
  font-size: var(--font-sm);
  color: var(--color-muted);
  line-height: 1.55;
  margin-bottom: 0;
}

/* 태그 */
.tag {
  display: inline-block;
  padding: 2px 9px;
  border: 1px solid var(--color-border);
  border-radius: 999px;
  font-size: var(--font-xs);
  color: var(--color-muted);
  text-decoration: none;
  margin: 2px;
}

.tag:hover { border-color: #9ca3af; color: var(--color-primary); }

/* =============================================
   FAQ 아코디언
   ============================================= */
.faq-section {
  background: transparent;
  border-radius: var(--radius-md);
  padding: 28px 0;
}

.faq-section h2 { margin-bottom: 20px; }

details {
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  padding: 14px 18px;
  margin-bottom: 10px;
  background: #242424;
}

details[open] { background: #242424; }
details > summary {
  cursor: pointer;
  font-weight: 700;
  color: var(--color-primary);
  list-style: none;
  position: relative;
  padding-right: 24px;
  font-size: 1rem;
}

details > summary::after {
  content: "+";
  position: absolute;
  right: 0;
  top: 0;
  font-size: 1.2rem;
  color: var(--color-muted);
  transition: transform 0.2s;
}

details[open] > summary::after { content: "−"; }

details > div {
  margin-top: 10px;
  color: var(--color-text);
  font-size: 0.95rem;
  line-height: 1.65;
}

details > div a { color: var(--color-accent); }

/* =============================================
   페이지네이션
   ============================================= */
.pagination {
  display: flex;
  gap: 8px;
  margin-top: 40px;
  flex-wrap: wrap;
  justify-content: center;
}

.pagination a,
.pagination span {
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  padding: 8px 16px;
  text-decoration: none;
  font-size: var(--font-sm);
  font-weight: 500;
  color: var(--color-primary);
}

.pagination span.current {
  background: var(--color-primary);
  color: #fff;
  border-color: var(--color-primary);
}

.pagination a:hover { background: var(--color-bg-soft); }

/* =============================================
   블로그 단일 포스트
   ============================================= */
.post-header { padding: 48px 0 32px; }
.post-header h1 { margin-bottom: 12px; }

.post-meta {
  display: flex;
  align-items: center;
  gap: 16px;
  font-size: var(--font-sm);
  color: var(--color-muted);
  flex-wrap: wrap;
}

.post-cover {
  width: 100%;
  max-width: 800px;
  height: auto;
  aspect-ratio: 800 / 534;
  border-radius: var(--radius-md);
  object-fit: cover;
  margin: 24px 0;
}

/* 포스트 본문 */
.post-content { max-width: var(--wrap-width); }
.post-content h2 { margin-top: 2rem; margin-bottom: 0.6rem; }
.post-content h3 { margin-top: 1.5rem; margin-bottom: 0.5rem; }
.post-content p  { margin-bottom: 1rem; }
.post-content ul,
.post-content ol { margin: 0.5rem 0 1rem 1.4rem; color: var(--color-text); }
.post-content li { margin-bottom: 0.3rem; }
.post-content a  { color: var(--color-accent); }
.post-content strong { color: var(--color-primary); }

/* 포스트 내 테이블 */
.post-table-wrap {
  overflow-x: auto;
  margin: 1.2rem 0;
}

.post-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.875rem;
  line-height: 1.6;
}

.post-table thead tr {
  background: #242424;
  text-align: left;
}

.post-table th,
.post-table td {
  padding: 10px 14px;
  border: 1px solid var(--color-border);
  color: var(--color-text);
}

.post-table th {
  color: var(--color-primary);
  font-weight: 600;
}

.post-table tbody tr:nth-child(even) {
  background: #1e1e1e;
}

.post-table-note {
  font-size: 0.82rem;
  color: var(--color-muted);
  margin-top: 0.4rem;
}


/* =============================================
   개인정보 처리방침 페이지
   ============================================= */
.policy-content { max-width: var(--wrap-width); }
.policy-content h2 { margin-top: 2.2rem; padding-top: 1rem; border-top: 1px solid var(--color-border); }
.policy-content h2:first-child { border-top: none; margin-top: 0; padding-top: 0; }
.policy-content p  { margin-bottom: 0.9rem; }
.policy-content ul { margin: 0.5rem 0 1rem 1.4rem; color: var(--color-text); }
.policy-content li { margin-bottom: 0.3rem; }

/* =============================================
   빵 부스러기 (Breadcrumb)
   ============================================= */
.breadcrumb {
  font-size: var(--font-xs);
  color: var(--color-muted);
  padding: 12px 0;
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}

.breadcrumb a { text-decoration: none; color: var(--color-muted); }
.breadcrumb a:hover { text-decoration: underline; }
.breadcrumb span { color: #9ca3af; }

/* =============================================
   푸터
   ============================================= */
.site-foot {
  border-top: 1px solid #111111;
  background: #000000;
  margin-top: 64px;
}

.site-foot .wrap {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 24px;
  padding-top: 36px;
  padding-bottom: 36px;
}

.foot-brand { font-weight: 700; font-size: 1.05rem; margin-bottom: 8px; }

.foot-desc {
  font-size: var(--font-sm);
  color: var(--color-muted);
  max-width: 380px;
  line-height: 1.6;
}

.foot-copy {
  margin-top: 12px;
  font-size: var(--font-xs);
  color: #9ca3af;
}

.foot-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: flex-end;
  align-items: flex-start;
}

.foot-links a {
  font-size: var(--font-sm);
  text-decoration: none;
  color: var(--color-muted);
}

.foot-links a:hover {
  text-decoration: underline;
  color: var(--color-primary);
}

/* =============================================
   유틸리티
   ============================================= */
.muted { color: var(--color-muted); }
.text-sm { font-size: var(--font-sm); }
.mt-0 { margin-top: 0; }

/* =============================================
   햄버거 버튼
   ============================================= */
.nav-toggle {
  display: none;
  background: none;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  padding: 7px 11px;
  cursor: pointer;
  color: var(--color-primary);
  font-size: 1.25rem;
  line-height: 1;
  flex-shrink: 0;
}

/* =============================================
   소개 그리드
   ============================================= */
.intro-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: center;
}

.intro-grid img {
  border-radius: 12px;
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

/* =============================================
   반응형
   ============================================= */
@media (max-width: 768px) {
  /* 헤더: 로고 + 햄버거 한 줄 */
  .site-head .wrap {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    padding-top: 12px;
    padding-bottom: 12px;
  }

  /* 햄버거 버튼 표시 */
  .nav-toggle { display: block; }

  /* 모바일 내비: 기본 숨김, 드롭다운 */
  .nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: #000;
    border-bottom: 1px solid var(--color-border);
    flex-direction: column;
    padding: 8px 16px 14px;
    gap: 2px;
    z-index: 99;
  }

  .nav.open { display: flex; }

  .nav a {
    padding: 11px 14px;
    font-size: 1rem;
    border-radius: var(--radius-sm);
    border-bottom: 1px solid var(--color-border);
  }

  .nav a:last-child { border-bottom: none; }

  /* 소개 섹션: 단일 열 */
  .intro-grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .intro-grid img { order: -1; }

  .hero { padding: 36px 0 32px; }

  .site-foot .wrap {
    flex-direction: column;
    gap: 20px;
  }

  .foot-links { justify-content: flex-start; }

  .section-head { flex-wrap: wrap; }

  .faq-section { padding: 20px; }
}
