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

:root {
  --bg: #f8fafc;
  --surface: #ffffff;
  --border: #e2e8f0;
  --text: #0f172a;
  --text-muted: #64748b;
  --primary: #3b82f6;
  --primary-dark: #2563eb;
  --grad: linear-gradient(135deg, #2563eb 0%, #7c3aed 100%);
  --radius: 20px;
  --shadow-sm: 0 1px 3px rgba(15,23,42,.06);
  --shadow-md: 0 10px 30px rgba(15,23,42,.10);
}

html { scroll-behavior: smooth; }

body {
  font-family: 'Pretendard Variable', Pretendard, 'Segoe UI', system-ui, -apple-system, sans-serif;
  background: var(--surface);
  color: var(--text);
  line-height: 1.7;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; }

/* ── HEADER ──────────────────────────────────────────────────────────────────── */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(15, 23, 42, .88);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.site-header-inner {
  max-width: 1080px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 28px;
  padding: 0 24px;
  height: 64px;
}

.site-logo {
  font-size: 22px;
  font-weight: 800;
  background: linear-gradient(135deg, #60a5fa, #a78bfa);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  letter-spacing: -0.5px;
  text-decoration: none;
  flex-shrink: 0;
}

.site-nav {
  flex: 1;
  display: flex;
  gap: 24px;
  overflow-x: auto;
  scrollbar-width: none;
}

.site-nav::-webkit-scrollbar { display: none; }

.site-nav a {
  color: #94a3b8;
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  white-space: nowrap;
  padding-bottom: 3px;
  border-bottom: 2px solid transparent;
  transition: color .15s, border-color .15s;
}

/* 마우스 올렸을 때 + 현재 보고 있는 페이지(active) 모두 같은 강조색 유지 */
.site-nav a:hover,
.site-nav a.active {
  color: #60a5fa;
  border-bottom-color: #60a5fa;
}

.site-nav a.active { font-weight: 600; }

/* ── 버튼 ────────────────────────────────────────────────────────────────────── */
.btn-cta {
  display: inline-block;
  background: var(--grad);
  color: #fff;
  text-decoration: none;
  font-size: 16px;
  font-weight: 700;
  padding: 14px 32px;
  border-radius: 999px;
  box-shadow: 0 8px 24px rgba(37, 99, 235, .35);
  transition: transform .15s, box-shadow .15s;
  white-space: nowrap;
}

.btn-cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 28px rgba(37, 99, 235, .45);
}

.btn-cta-sm {
  font-size: 13px;
  padding: 9px 18px;
  box-shadow: 0 4px 14px rgba(37, 99, 235, .3);
}

.btn-ghost {
  display: inline-block;
  color: var(--text);
  text-decoration: none;
  font-size: 16px;
  font-weight: 600;
  padding: 14px 32px;
  border: 1.5px solid var(--border);
  border-radius: 999px;
  transition: border-color .15s, background .15s;
  white-space: nowrap;
}

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

/* ── HERO ────────────────────────────────────────────────────────────────────── */
.hero {
  position: relative;
  max-width: 880px;
  margin: 0 auto;
  padding: clamp(64px, 10vw, 110px) 24px 72px;
  text-align: center;
}

.hero::before {
  content: '';
  position: absolute;
  inset: 0 -50vw auto;
  height: 130%;
  background:
    radial-gradient(55% 45% at 50% 0%, rgba(59,130,246,.14) 0%, transparent 70%),
    radial-gradient(35% 35% at 78% 18%, rgba(124,58,237,.10) 0%, transparent 70%);
  z-index: -1;
  pointer-events: none;
}

.hero-badge {
  display: inline-block;
  font-size: 13px;
  font-weight: 600;
  color: var(--primary-dark);
  background: #eff6ff;
  border: 1px solid #bfdbfe;
  padding: 6px 16px;
  border-radius: 999px;
  margin-bottom: 22px;
}

.hero h1 {
  font-size: clamp(30px, 5.6vw, 48px);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.3;
  word-break: keep-all;
}

.grad-text {
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-sub {
  margin: 22px auto 0;
  font-size: clamp(15px, 2.2vw, 17.5px);
  color: var(--text-muted);
  max-width: 620px;
  word-break: keep-all;
}

.hero-actions {
  display: flex;
  gap: 12px;
  justify-content: center;
  margin-top: 36px;
  flex-wrap: wrap;
}

.hero-note {
  margin-top: 16px;
  font-size: 13px;
  color: var(--text-muted);
}

/* ── SECTIONS ────────────────────────────────────────────────────────────────── */
.section {
  padding: clamp(48px, 8vw, 80px) 24px;
  max-width: 1080px;
  margin: 0 auto;
}

.section-alt {
  max-width: none;
  background: var(--bg);
}

.section-alt > * {
  max-width: 1080px;
  margin-left: auto;
  margin-right: auto;
}

.section-title {
  font-size: clamp(22px, 4vw, 30px);
  font-weight: 800;
  letter-spacing: -0.02em;
  text-align: center;
  margin-bottom: clamp(28px, 5vw, 48px);
  word-break: keep-all;
}

/* 기능 카드 */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(280px, 100%), 1fr));
  gap: 18px;
}

.feature-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
  box-shadow: var(--shadow-sm);
  transition: transform .2s, box-shadow .2s;
}

.feature-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}

.feature-icon {
  width: 52px;
  height: 52px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 26px;
  background: linear-gradient(135deg, #eff6ff, #f5f3ff);
  border: 1px solid #e0e7ff;
  border-radius: 14px;
  margin-bottom: 16px;
}

.feature-card h3 {
  font-size: 17px;
  font-weight: 700;
  margin-bottom: 10px;
  word-break: keep-all;
}

.feature-card p {
  font-size: 14px;
  color: var(--text-muted);
  word-break: keep-all;
}

/* 작동 방식 */
.steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(220px, 100%), 1fr));
  gap: 18px;
}

.step {
  text-align: center;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 30px 22px;
  box-shadow: var(--shadow-sm);
}

.step-num {
  width: 44px;
  height: 44px;
  margin: 0 auto 16px;
  background: var(--grad);
  color: #fff;
  font-size: 18px;
  font-weight: 800;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 6px 16px rgba(37, 99, 235, .3);
}

.step h3 {
  font-size: 16px;
  font-weight: 700;
  margin-bottom: 8px;
}

.step p {
  font-size: 14px;
  color: var(--text-muted);
  word-break: keep-all;
}

/* 본문 콘텐츠 */
.prose {
  max-width: 760px;
  margin: 0 auto;
}

.prose p {
  font-size: 15.5px;
  color: #334155;
  margin-bottom: 18px;
  word-break: keep-all;
  overflow-wrap: break-word;
}

.prose h2 {
  font-size: 21px;
  font-weight: 800;
  letter-spacing: -0.02em;
  margin: 44px 0 14px;
  word-break: keep-all;
}

.prose h3 {
  font-size: 17px;
  font-weight: 700;
  margin: 28px 0 10px;
  word-break: keep-all;
}

.prose ul, .prose ol {
  margin: 0 0 18px 20px;
  font-size: 15.5px;
  color: #334155;
}

.prose li { margin-bottom: 8px; word-break: keep-all; overflow-wrap: break-word; }

.prose a { color: var(--primary-dark); }

.prose strong { color: var(--text); }

.prose code {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 1px 7px;
  font-size: 13.5px;
  word-break: break-all;
}

.prose .callout {
  background: linear-gradient(135deg, #eff6ff, #f5f3ff);
  border: 1px solid #dbeafe;
  border-radius: 14px;
  padding: 16px 20px;
  font-size: 14.5px;
  margin-bottom: 18px;
  word-break: keep-all;
}

/* FAQ */
.faq-list {
  max-width: 760px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.faq-item {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 18px 22px;
  box-shadow: var(--shadow-sm);
  transition: border-color .15s;
}

.faq-item[open] { border-color: #bfdbfe; }

.faq-item summary {
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  list-style: none;
  display: flex;
  align-items: center;
  gap: 10px;
  word-break: keep-all;
}

.faq-item summary::-webkit-details-marker { display: none; }

.faq-item summary::before {
  content: '+';
  flex-shrink: 0;
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #eff6ff;
  color: var(--primary-dark);
  border-radius: 8px;
  font-weight: 700;
  transition: transform .2s;
}

.faq-item[open] summary::before {
  content: '−';
}

.faq-item p {
  margin-top: 12px;
  padding-left: 34px;
  font-size: 14.5px;
  color: var(--text-muted);
  word-break: keep-all;
}

.faq-item a { color: var(--primary-dark); }

/* 마지막 CTA */
.cta-section {
  max-width: 1032px;
  margin: 0 auto;
  border-radius: 24px;
  background: var(--grad);
  text-align: center;
  color: #fff;
  padding: clamp(44px, 7vw, 72px) 24px;
  margin-bottom: 24px;
}

.cta-section h2 {
  font-size: clamp(22px, 4vw, 30px);
  font-weight: 800;
  letter-spacing: -0.02em;
  word-break: keep-all;
}

.cta-section p {
  color: rgba(255, 255, 255, .85);
  margin: 12px 0 28px;
}

.cta-section .btn-cta {
  background: #fff;
  color: var(--primary-dark);
  box-shadow: 0 8px 24px rgba(15, 23, 42, .25);
}

/* ── 콘텐츠 페이지 (가이드/방침) ─────────────────────────────────────────────── */
.page-wrap {
  max-width: 760px;
  margin: 0 auto;
  padding: clamp(36px, 6vw, 56px) 24px 80px;
}

.page-title {
  font-size: clamp(26px, 5vw, 34px);
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.35;
  margin-bottom: 8px;
  word-break: keep-all;
}

.page-date {
  font-size: 13px;
  color: var(--text-muted);
  margin-bottom: 32px;
}

/* ── FOOTER ──────────────────────────────────────────────────────────────────── */
.site-footer {
  background: #0f172a;
  color: #94a3b8;
  margin-top: 40px;
}

.site-footer-inner {
  max-width: 1080px;
  margin: 0 auto;
  padding: 48px 24px;
  display: flex;
  gap: 48px;
  flex-wrap: wrap;
}

.footer-brand { flex: 1; min-width: 200px; }

.footer-brand p {
  font-size: 13px;
  margin-top: 8px;
}

.footer-links {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-links a {
  color: #94a3b8;
  text-decoration: none;
  font-size: 13px;
  transition: color .15s;
}

.footer-links a:hover { color: #f8fafc; }

.footer-contact { font-size: 13px; }

.footer-contact a { color: #cbd5e1; }

.footer-copy {
  margin-top: 10px;
  font-size: 12px;
  color: #475569;
}

/* ── 모바일 ──────────────────────────────────────────────────────────────────── */
@media (max-width: 640px) {
  /* 헤더: 로고+CTA 한 줄, 메뉴는 아래 줄 가로 스크롤 */
  .site-header-inner {
    flex-wrap: wrap;
    height: auto;
    padding: 10px 16px 0;
    gap: 0 12px;
  }

  .site-logo { font-size: 19px; }

  .btn-cta-sm {
    margin-left: auto;
    font-size: 12px;
    padding: 7px 14px;
  }

  .site-nav {
    order: 3;
    width: 100%;
    gap: 18px;
    padding: 8px 0 10px;
  }

  .site-nav a { font-size: 13px; }

  .hero { padding: 44px 18px 48px; }
  .hero-badge { font-size: 12px; padding: 5px 13px; margin-bottom: 16px; }
  .hero-actions { flex-direction: column; align-items: stretch; padding: 0 8px; }
  .hero-actions .btn-cta, .hero-actions .btn-ghost { text-align: center; }

  .section { padding: 40px 16px; }
  .feature-card { padding: 22px 20px; }
  .step { padding: 24px 18px; }

  .prose p, .prose ul, .prose ol { font-size: 14.5px; }
  .faq-item { padding: 15px 16px; }
  .faq-item p { padding-left: 0; }

  .cta-section {
    margin: 0 12px 16px;
    border-radius: 18px;
  }

  .page-wrap { padding: 28px 16px 60px; }

  .site-footer-inner {
    flex-direction: column;
    gap: 24px;
    padding: 36px 20px;
  }
}
