/* Mission Link — 라이트 브랜딩 테마 (weenote.kr 참고)
   모바일 퍼스트: 작은 화면 레이아웃을 기본으로, min-width 브레이크포인트로 확장. */

:root {
  --bg: #ffffff;
  --bg-tint: #f6f8fc;
  --surface: #ffffff;
  --border: #e6ebf2;
  --text: #0f172a;
  --text-body: #475569;
  --muted: #94a3b8;
  --brand: #2563eb;
  --brand-strong: #1d4ed8;
  --brand-soft: #eef3ff;
  --warm: #f59e0b;
  --radius: 16px;
  --radius-sm: 10px;
  --shadow: 0 1px 2px rgba(15, 23, 42, 0.04),
            0 8px 24px rgba(15, 23, 42, 0.06);
  --shadow-lg: 0 12px 40px rgba(37, 99, 235, 0.12);
  color-scheme: light;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  background: var(--bg);
  color: var(--text-body);
  font-family: system-ui, -apple-system, "Segoe UI", Roboto,
               "Apple SD Gothic Neo", "Noto Sans KR", sans-serif;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

body {
  /* 안전영역(노치/홈 인디케이터) 존중 — 좌우/하단만, 상단은 스티키 네비가 처리 */
  padding: 0 env(safe-area-inset-right)
           env(safe-area-inset-bottom) env(safe-area-inset-left);
}

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

h1, h2, h3 { color: var(--text); line-height: 1.2; margin: 0; }

/* ───────────────────────── 레이아웃 시스템 ───────────────────────── */

.section { padding: 3rem 1.25rem; }
.section--tint { background: var(--bg-tint); }

.shell {
  width: 100%;
  max-width: 1080px;
  margin: 0 auto;
}

.eyebrow {
  display: inline-block;
  color: var(--brand);
  font-weight: 700;
  font-size: 0.82rem;
  letter-spacing: 0.04em;
  margin: 0 0 0.75rem;
}

.section-head { text-align: center; max-width: 40ch; margin: 0 auto 2rem; }
.section-head h2 {
  font-size: 1.6rem;
  letter-spacing: -0.01em;
}
.section-head p { color: var(--muted); margin: 0.6rem 0 0; }

/* ───────────────────────── 버튼 ───────────────────────── */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  font-weight: 700;
  font-size: 1rem;
  padding: 0.85rem 1.4rem;
  min-height: 48px;
  border-radius: 999px;
  border: 1px solid transparent;
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.12s ease, box-shadow 0.2s ease, background 0.2s ease;
}
.btn:active { transform: scale(0.98); }

.btn--primary {
  background: var(--brand);
  color: #fff;
  box-shadow: 0 6px 16px rgba(37, 99, 235, 0.25);
}
.btn--primary:hover { background: var(--brand-strong); }

.btn--ghost {
  background: #fff;
  color: var(--brand);
  border-color: var(--border);
}
.btn--ghost:hover { border-color: var(--brand); }

.btn--sm { font-size: 0.88rem; padding: 0.6rem 1rem; min-height: 42px; }
.btn--block { width: 100%; }

/* ───────────────────────── 네비 ───────────────────────── */

.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: saturate(180%) blur(12px);
  -webkit-backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid var(--border);
  padding-top: env(safe-area-inset-top);
}
.nav-inner {
  max-width: 1080px;
  margin: 0 auto;
  height: 60px;
  padding: 0 1.25rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}
.nav-logo {
  font-weight: 800;
  font-size: 1.15rem;
  color: var(--text);
  text-decoration: none;
  letter-spacing: -0.02em;
}
.nav-logo span { color: var(--brand); }
.nav-links { display: none; gap: 1.75rem; }
.nav-links a {
  color: var(--text-body);
  text-decoration: none;
  font-size: 0.95rem;
  font-weight: 600;
}
.nav-links a:hover { color: var(--brand); }
.nav-cta { flex-shrink: 0; }

/* ───────────────────────── 히어로 ───────────────────────── */

.hero { padding-top: 3rem; padding-bottom: 3rem; }
.hero-grid {
  max-width: 1080px;
  margin: 0 auto;
  display: grid;
  gap: 2.5rem;
}
.hero-copy { text-align: center; }
.hero-title {
  font-size: 2.25rem;
  letter-spacing: -0.02em;
  margin: 0 0 1rem;
}
.hero-title em {
  font-style: normal;
  background: linear-gradient(120deg, var(--brand), #818cf8);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.hero-sub {
  font-size: 1.05rem;
  color: var(--text-body);
  max-width: 38ch;
  margin: 0 auto 1.75rem;
}
.hero-cta {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  max-width: 320px;
  margin: 0 auto;
}
.hero-trust {
  margin: 1.25rem 0 0;
  font-size: 0.85rem;
  color: var(--muted);
}
.hero-trust b { color: var(--brand); }

/* 대시보드 미리보기 목업 (이미지 없이 CSS로) */
.preview {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 20px;
  box-shadow: var(--shadow-lg);
  padding: 1.25rem;
  max-width: 420px;
  margin: 0 auto;
  width: 100%;
}
.preview-bar {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  padding-bottom: 0.9rem;
  border-bottom: 1px solid var(--border);
  margin-bottom: 1rem;
}
.preview-dot { width: 10px; height: 10px; border-radius: 50%; background: #e2e8f0; }
.preview-dot:first-child { background: #fca5a5; }
.preview-dot:nth-child(2) { background: #fcd34d; }
.preview-dot:nth-child(3) { background: #86efac; }
.preview-title {
  margin-left: auto;
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--muted);
}
.preview-row { margin-bottom: 1rem; }
.preview-row:last-child { margin-bottom: 0; }
.preview-row-head {
  display: flex;
  justify-content: space-between;
  font-size: 0.82rem;
  margin-bottom: 0.4rem;
}
.preview-row-head b { color: var(--text); font-weight: 700; }
.preview-row-head span { color: var(--brand); font-weight: 700; }
.preview-track {
  height: 8px;
  background: #eef2f7;
  border-radius: 999px;
  overflow: hidden;
}
.preview-fill {
  height: 100%;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--brand), #818cf8);
}

/* ───────────────────────── 신뢰 스트립 (스탯) ───────────────────────── */

.stats {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
}
.stat {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem 1rem;
  text-align: center;
  box-shadow: var(--shadow);
}
.stat-num {
  display: block;
  font-size: 2rem;
  font-weight: 800;
  color: var(--brand);
  letter-spacing: -0.02em;
}
.stat-label { display: block; color: var(--muted); font-size: 0.9rem; margin-top: 0.25rem; }

/* ───────────────────────── LINK 가치 ───────────────────────── */

.values {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
}
.value {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem;
  text-align: center;
  box-shadow: var(--shadow);
}
.value-icon {
  width: 48px;
  height: 48px;
  margin: 0 auto 0.9rem;
  border-radius: 14px;
  display: grid;
  place-items: center;
  background: var(--brand-soft);
  color: var(--brand);
}
.value-icon svg { width: 24px; height: 24px; }
.value-en { display: block; font-weight: 800; color: var(--text); font-size: 1.05rem; }
.value-ko { display: block; color: var(--muted); font-size: 0.88rem; margin-top: 0.3rem; }

/* ───────────────────────── 작동 방식 (스텝) ───────────────────────── */

.steps {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.85rem;
  max-width: 720px;
  margin: 0 auto;
}
.step {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.1rem 1.25rem;
  box-shadow: var(--shadow);
}
.step-num {
  flex-shrink: 0;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--brand);
  color: #fff;
  font-weight: 800;
  display: grid;
  place-items: center;
  font-size: 0.95rem;
}
.step-body b { color: var(--text); display: block; margin-bottom: 0.15rem; }
.step-body span { color: var(--text-body); font-size: 0.95rem; }

/* ───────────────────────── 모금함 ───────────────────────── */

.campaigns {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.25rem;
}
.campaign {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.4rem;
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
  transition: transform 0.15s ease, box-shadow 0.2s ease;
}
.campaign:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); }
.tags { display: flex; flex-wrap: wrap; gap: 0.35rem; margin-bottom: 0.75rem; }
.tag {
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--brand);
  background: var(--brand-soft);
  border-radius: 999px;
  padding: 0.2rem 0.6rem;
}
.campaign-name { font-size: 1.15rem; margin: 0 0 0.2rem; }
.campaign-meta { color: var(--muted); font-size: 0.85rem; margin: 0.15rem 0; }
.campaign-desc {
  font-size: 0.95rem;
  color: var(--text-body);
  margin: 0.6rem 0 1.1rem;
  flex-grow: 1;
}
.progress {
  height: 9px;
  background: #eef2f7;
  border-radius: 999px;
  overflow: hidden;
  margin-bottom: 0.5rem;
}
.progress-bar {
  display: block;
  height: 100%;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--brand), #818cf8);
}
.campaign-goal { font-size: 0.85rem; color: var(--text-body); margin: 0 0 1rem; }
.campaign-goal b { color: var(--brand); }
.campaign-cta { display: flex; gap: 0.45rem; }
.campaign-cta .btn { flex: 1; }

/* ───────────────────────── 차별점 (피처) ───────────────────────── */

.feats {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.25rem;
}
.feat {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem;
  box-shadow: var(--shadow);
}
.feat-icon {
  width: 46px;
  height: 46px;
  border-radius: 13px;
  background: var(--brand-soft);
  color: var(--brand);
  display: grid;
  place-items: center;
  margin-bottom: 1rem;
}
.feat-icon svg { width: 24px; height: 24px; }
.feat h3 { font-size: 1.1rem; margin-bottom: 0.4rem; }
.feat p { color: var(--text-body); font-size: 0.95rem; margin: 0; }

/* ───────────────────────── 마지막 CTA 밴드 ───────────────────────── */

.cta-band {
  background: linear-gradient(135deg, var(--brand), #4f46e5);
  border-radius: 24px;
  padding: 3rem 1.5rem;
  text-align: center;
  color: #fff;
  max-width: 1080px;
  margin: 0 auto;
  box-shadow: var(--shadow-lg);
}
.cta-quote {
  font-size: 1.3rem;
  font-weight: 700;
  line-height: 1.5;
  margin: 0 0 1.75rem;
  color: #fff;
}
.cta-band .btn--ghost {
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  border-color: rgba(255, 255, 255, 0.4);
}
.cta-band .btn--ghost:hover { background: rgba(255, 255, 255, 0.22); }
.contact { margin: 1.5rem 0 0; font-size: 0.85rem; color: rgba(255, 255, 255, 0.75); }
.contact a { color: #fff; }

/* ───────────────────────── 푸터 ───────────────────────── */

.footer {
  background: var(--bg-tint);
  border-top: 1px solid var(--border);
  padding: 2.5rem 1.25rem;
  padding-bottom: calc(2.5rem + env(safe-area-inset-bottom));
}
.footer-inner {
  max-width: 1080px;
  margin: 0 auto;
  text-align: center;
}
.footer-logo { font-weight: 800; font-size: 1.1rem; color: var(--text); }
.footer-logo span { color: var(--brand); }
.footer-tag { color: var(--muted); font-size: 0.9rem; margin: 0.5rem 0 1rem; }
.footer-meta { color: var(--muted); font-size: 0.82rem; }
.footer-meta a { color: var(--brand); text-decoration: none; }

/* ───────────────────────── 반응형 ───────────────────────── */

@media (min-width: 640px) {
  .section { padding: 5rem 2rem; }
  .nav-links { display: flex; }
  .hero-cta { flex-direction: row; justify-content: center; max-width: none; }
  .hero-cta .btn { flex: 0 1 auto; }
  .hero-title { font-size: 2.75rem; }
  .stats { grid-template-columns: repeat(3, 1fr); }
  .values { grid-template-columns: repeat(2, 1fr); }
  .campaigns { grid-template-columns: repeat(2, 1fr); }
  .feats { grid-template-columns: repeat(2, 1fr); }
  .section-head h2 { font-size: 2rem; }
  .cta-quote { font-size: 1.6rem; }
}

@media (min-width: 960px) {
  .section { padding: 6rem 2rem; }
  .hero-grid {
    grid-template-columns: 1.05fr 0.95fr;
    align-items: center;
    gap: 3.5rem;
  }
  .hero-copy { text-align: left; }
  .hero-sub { margin-left: 0; }
  .hero-cta { justify-content: flex-start; }
  .hero-title { font-size: 3.25rem; }
  .values { grid-template-columns: repeat(4, 1fr); }
  .campaigns { grid-template-columns: repeat(3, 1fr); }
  .cta-band { padding: 4rem 2rem; }
}

/* 접근성: 모션 최소화 선호 시 트랜지션 제거 */
@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; }
}
