/*
 * style.css — 블로그 글수집(blogddong.com) 메인 스타일
 * 컨셉: cosmic × playful (Mailchimp 참조 — 친근한 컬러·라운드·명확한 CTA)
 */

:root {
  /* cosmic 컬러 스킴 */
  --cosmic-950: #070b1d;
  --cosmic-900: #0b1026;
  --cosmic-800: #141a3c;
  --cosmic-700: #1e2657;
  --primary: #667eea;
  --secondary: #764ba2;
  --accent: #f093fb;
  --star: #ffe500;          /* Mailchimp 옐로우 포인트 */
  --mint: #4ade80;
  --ink: #1c2033;
  --ink2: #4b5268;
  --muted: #8b90a5;
  --line: #e8eaf4;
  --bg: #ffffff;
  --bg-soft: #f6f7ff;
  --grad-cosmic: linear-gradient(135deg, #667eea 0%, #764ba2 50%, #f093fb 100%);
  --grad-deep: linear-gradient(180deg, #0b1026 0%, #1e2657 100%);
  --rad: 20px;
  --rad-lg: 28px;
  --shadow: 0 14px 40px -18px rgba(30, 38, 87, .35);
  --shadow-sm: 0 6px 20px -10px rgba(30, 38, 87, .25);
}

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

html { scroll-behavior: smooth; }

body {
  font-family: 'Pretendard', 'Noto Sans KR', -apple-system, sans-serif;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.65;
  letter-spacing: -.02em;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

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

.container { max-width: 1180px; margin: 0 auto; padding: 0 22px; }

.visually-hidden {
  position: absolute; width: 1px; height: 1px; margin: -1px;
  clip: rect(0 0 0 0); clip-path: inset(50%); overflow: hidden; white-space: nowrap;
}

/* ── 별 배경 캔버스 (빛 페이드 효과) ── */
#star-canvas {
  position: fixed; inset: 0; width: 100%; height: 100%;
  z-index: 0; pointer-events: none; opacity: .5;
}
.site-header, .site-main, .site-footer { position: relative; z-index: 1; }

/* ── 헤더 ── */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(11, 16, 38, .82);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(255, 255, 255, .08);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 68px; }

.logo { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; }
.logo-orb {
  width: 30px; height: 30px; border-radius: 50%;
  background: radial-gradient(circle at 32% 30%, #f093fb, #667eea 55%, #2c3a8c);
  box-shadow: 0 0 14px rgba(240, 147, 251, .65), inset -3px -4px 8px rgba(0,0,0,.3);
  position: relative;
}
.logo-orb::after {
  content: ''; position: absolute; left: -6px; top: 12px; width: 42px; height: 8px;
  border: 2px solid rgba(255, 229, 0, .75); border-radius: 50%;
  transform: rotate(-18deg);
}
.logo-orb.small { width: 24px; height: 24px; }
.logo-orb.small::after { left: -5px; top: 9px; width: 34px; height: 7px; }
.logo-text { font-size: 19px; font-weight: 800; color: #fff; letter-spacing: -.04em; }
.logo-text em { font-style: normal; color: var(--star); }
.logo-text.light { color: #fff; }

.main-nav ul { display: flex; align-items: center; gap: 6px; }
.main-nav a {
  display: block; padding: 9px 15px; border-radius: 12px;
  color: #cfd4ee; text-decoration: none; font-weight: 600; font-size: 15px;
  transition: color .25s, background .25s;
}
.main-nav a:hover { color: #fff; background: rgba(255, 255, 255, .09); }
.main-nav a.active { color: var(--star); }
.main-nav .nav-cta {
  margin-left: 10px; background: var(--star); color: var(--cosmic-900);
  font-weight: 800; border-radius: 999px; padding: 10px 20px;
  box-shadow: 0 6px 18px -6px rgba(255, 229, 0, .5);
}
.main-nav .nav-cta:hover { background: #fff04d; color: var(--cosmic-900); }

.nav-toggle { display: none; background: none; border: 0; cursor: pointer; padding: 10px; }
.nav-toggle span { display: block; width: 24px; height: 2.5px; background: #fff; margin: 5px 0; border-radius: 3px; transition: .3s; }

/* ── 공통 섹션 ── */
section { padding: 84px 0; }
.section-head { text-align: center; max-width: 640px; margin: 0 auto 52px; }
.section-head .eyebrow {
  display: inline-block; font-size: 13.5px; font-weight: 800; color: var(--secondary);
  background: #f3eaff; border: 1px solid #e3d2fb; padding: 7px 16px; border-radius: 999px;
  margin-bottom: 16px; letter-spacing: 0;
}
.section-head h2 { font-size: clamp(26px, 3.6vw, 38px); font-weight: 800; letter-spacing: -.045em; line-height: 1.3; }
.section-head p { margin-top: 14px; color: var(--ink2); font-size: 16.5px; }
.bg-soft { background: var(--bg-soft); }

/* ── 페이지 히어로(서브페이지 공통) ── */
.page-hero {
  background: var(--grad-deep); color: #fff; text-align: center;
  padding: 88px 0 72px; position: relative; overflow: hidden;
}
.page-hero .eyebrow {
  display: inline-block; font-size: 13.5px; font-weight: 800; color: var(--star);
  background: rgba(255, 229, 0, .12); border: 1px solid rgba(255, 229, 0, .35);
  padding: 7px 16px; border-radius: 999px; margin-bottom: 18px;
}
.page-hero h1 { font-size: clamp(30px, 4.5vw, 46px); font-weight: 800; letter-spacing: -.05em; line-height: 1.25; }
.page-hero p { margin: 16px auto 0; max-width: 620px; color: #c6cbe8; font-size: 17px; }
.page-hero .deco-planet {
  position: absolute; border-radius: 50%; pointer-events: none; opacity: .55;
  background: radial-gradient(circle at 30% 30%, #f093fb, #667eea 60%, transparent);
  filter: blur(2px);
}

/* ── 홈 히어로 + 슬라이더 ── */
.hero-cosmos {
  background: var(--grad-deep); color: #fff; overflow: hidden; position: relative;
  padding: 92px 0 60px;
}
.hero-grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: 56px; align-items: center; }
.hero-copy .eyebrow {
  display: inline-flex; align-items: center; gap: 8px; font-size: 14px; font-weight: 800;
  color: var(--star); background: rgba(255, 229, 0, .12); border: 1px solid rgba(255, 229, 0, .35);
  padding: 8px 18px; border-radius: 999px; margin-bottom: 22px;
}
.hero-copy h1 { font-size: clamp(32px, 4.8vw, 52px); font-weight: 800; letter-spacing: -.05em; line-height: 1.22; }
.hero-copy h1 .grad {
  background: linear-gradient(90deg, #ffe500, #f093fb 65%, #a5b4fc);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.hero-copy > p { margin: 20px 0 30px; color: #c6cbe8; font-size: 17.5px; max-width: 480px; }

/* 수집기 검색 폼 (핵심 기능 진입점) */
.collect-form { display: flex; gap: 10px; flex-wrap: wrap; max-width: 560px; }
.collect-form .in { flex: 1; min-width: 240px; position: relative; }
.collect-form input[type=text] {
  width: 100%; padding: 17px 20px; font-size: 16px; color: var(--ink);
  border: 2px solid transparent; border-radius: 16px; background: #fff;
  box-shadow: 0 16px 44px -18px rgba(0, 0, 0, .55);
  font-family: inherit;
}
.collect-form input[type=text]:focus { outline: none; border-color: var(--star); box-shadow: 0 0 0 5px rgba(255, 229, 0, .22); }
.collect-form button {
  background: var(--star); color: var(--cosmic-900); font-weight: 800; font-size: 16px;
  font-family: inherit; padding: 17px 30px; border: 0; border-radius: 16px; cursor: pointer;
  box-shadow: 0 12px 30px -10px rgba(255, 229, 0, .55);
  transition: transform .2s;
}
.hero-hint { margin-top: 14px; font-size: 13.5px; color: #9aa1c9; }
.hero-hint b { color: #c6cbe8; }

.hero-stats { display: flex; gap: 34px; margin-top: 38px; flex-wrap: wrap; }
.hero-stats .stat b { display: block; font-size: 27px; font-weight: 800; color: var(--star); letter-spacing: -.03em; }
.hero-stats .stat span { font-size: 13.5px; color: #9aa1c9; }

/* 캐러셀 슬라이더 (홈 전용) */
.hero-slider { position: relative; }
.bd-slider { position: relative; border-radius: var(--rad-lg); overflow: hidden; box-shadow: 0 30px 70px -30px rgba(0, 0, 0, .7); }
.bd-track { display: flex; transition: transform .5s ease; }   /* speed 500ms */
.bd-slide { min-width: 100%; position: relative; }
.bd-slide img { width: 100%; height: auto; aspect-ratio: 16/10; object-fit: cover; }
.bd-slide .cap {
  position: absolute; left: 0; right: 0; bottom: 0; padding: 26px 28px 22px;
  background: linear-gradient(180deg, transparent, rgba(7, 11, 29, .88) 70%);
}
.bd-slide .cap b { display: block; font-size: 19px; font-weight: 800; color: #fff; letter-spacing: -.03em; }
.bd-slide .cap span { font-size: 14px; color: #c6cbe8; }
.bd-arrow {
  position: absolute; top: 50%; transform: translateY(-50%); z-index: 5;
  width: 44px; height: 44px; border-radius: 50%; border: 0; cursor: pointer;
  background: rgba(255, 255, 255, .92); color: var(--cosmic-900);
  font-size: 18px; font-weight: 800; display: flex; align-items: center; justify-content: center;
  box-shadow: var(--shadow-sm); transition: transform .2s, background .2s;
}
.bd-arrow:hover { background: var(--star); }
.bd-arrow.prev { left: 14px; }
.bd-arrow.next { right: 14px; }
.bd-dots { display: flex; justify-content: center; gap: 9px; margin-top: 18px; }
.bd-dots button {
  width: 10px; height: 10px; border-radius: 999px; border: 0; cursor: pointer;
  background: rgba(255, 255, 255, .3); transition: all .3s; padding: 0;
}
.bd-dots button.on { width: 28px; background: var(--star); }

/* ── 카드/그리드 공통 ── */
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 26px; }

.card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--rad);
  padding: 30px 28px; box-shadow: var(--shadow-sm);
  transition: transform .25s, box-shadow .25s;
}
.card:hover { transform: translateY(-6px); box-shadow: var(--shadow); }
.card .icon {
  width: 54px; height: 54px; border-radius: 16px; display: flex; align-items: center; justify-content: center;
  font-size: 26px; margin-bottom: 18px; background: var(--bg-soft);
}
.card h3 { font-size: 18.5px; font-weight: 800; letter-spacing: -.03em; margin-bottom: 10px; }
.card p { color: var(--ink2); font-size: 14.8px; }
.card.tone-a .icon { background: #eef0ff; }
.card.tone-b .icon { background: #f6ecff; }
.card.tone-c .icon { background: #fff8cc; }
.card.tone-d .icon { background: #ffeef9; }

/* ── 버튼 ── */
.btn {
  display: inline-flex; align-items: center; gap: 8px; text-decoration: none; cursor: pointer;
  font-weight: 800; font-size: 15.5px; font-family: inherit; border: 0; border-radius: 999px;
  padding: 15px 30px; transition: transform .2s, box-shadow .2s, background .2s;
}
.btn-star { background: var(--star); color: var(--cosmic-900); box-shadow: 0 10px 26px -10px rgba(255, 229, 0, .6); }
.btn-star:hover { background: #fff04d; }
.btn-cosmic { background: var(--grad-cosmic); color: #fff; box-shadow: 0 10px 26px -10px rgba(118, 75, 162, .55); }
.btn-ghost { background: transparent; color: var(--ink); border: 2px solid var(--line); }
.btn-ghost:hover { border-color: var(--primary); color: var(--primary); }
.btn-ghost.on-dark { color: #fff; border-color: rgba(255, 255, 255, .35); }
.btn-ghost.on-dark:hover { border-color: var(--star); color: var(--star); }

/* ── 홈: 절차 스텝 ── */
.steps { counter-reset: step; }
.steps .card { position: relative; padding-top: 40px; }
.steps .card::before {
  counter-increment: step; content: counter(step);
  position: absolute; top: -20px; left: 26px;
  width: 44px; height: 44px; border-radius: 50%;
  background: var(--grad-cosmic); color: #fff; font-weight: 800; font-size: 18px;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 8px 20px -8px rgba(118, 75, 162, .6);
}

/* ── CTA 밴드 ── */
.cta-band {
  background: var(--grad-cosmic); border-radius: var(--rad-lg);
  padding: 62px 40px; text-align: center; color: #fff;
  position: relative; overflow: hidden;
}
.cta-band h2 { font-size: clamp(24px, 3.4vw, 34px); font-weight: 800; letter-spacing: -.04em; }
.cta-band p { margin: 12px auto 28px; max-width: 520px; color: rgba(255, 255, 255, .88); }
.cta-band .btn-star { box-shadow: 0 14px 34px -12px rgba(0, 0, 0, .4); }

/* ── 후기 ── */
.review-card { background: #fff; border: 1px solid var(--line); border-radius: var(--rad); padding: 28px; box-shadow: var(--shadow-sm); }
.review-card .stars { color: var(--star); font-size: 15px; letter-spacing: 2px; margin-bottom: 12px; text-shadow: 0 1px 0 rgba(0,0,0,.08); }
.review-card p { color: var(--ink2); font-size: 15px; }
.review-card .who { display: flex; align-items: center; gap: 12px; margin-top: 18px; }
.review-card .avatar {
  width: 42px; height: 42px; border-radius: 50%; font-weight: 800; color: #fff;
  display: flex; align-items: center; justify-content: center; font-size: 15px;
  background: var(--grad-cosmic);
}
.review-card .who b { display: block; font-size: 14.5px; }
.review-card .who span { font-size: 12.5px; color: var(--muted); }

/* ── 요금 ── */
.price-card { position: relative; text-align: center; padding: 44px 32px; }
.price-card .plan { font-size: 14px; font-weight: 800; color: var(--secondary); }
.price-card .amount { font-size: 42px; font-weight: 800; letter-spacing: -.05em; margin: 12px 0 4px; }
.price-card .amount small { font-size: 15px; font-weight: 600; color: var(--muted); letter-spacing: 0; }
.price-card ul { margin: 24px 0 30px; text-align: left; }
.price-card ul li { padding: 9px 0 9px 30px; border-bottom: 1px dashed var(--line); font-size: 14.8px; color: var(--ink2); position: relative; }
.price-card ul li::before { content: '✦'; position: absolute; left: 6px; color: var(--primary); }
.price-card.featured { border: 2px solid var(--primary); box-shadow: var(--shadow); }
.price-card.featured .badge {
  position: absolute; top: -16px; left: 50%; transform: translateX(-50%);
  background: var(--star); color: var(--cosmic-900); font-size: 13px; font-weight: 800;
  padding: 6px 18px; border-radius: 999px; box-shadow: var(--shadow-sm);
}

/* ── 뉴스/블로그 카드 ── */
.news-card { overflow: hidden; padding: 0; text-decoration: none; display: block; }
.news-card .thumb { aspect-ratio: 1200/630; overflow: hidden; background: var(--grad-deep); }
.news-card .thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s; }
.news-card:hover .thumb img { transform: scale(1.05); }
.news-card .body { padding: 22px 24px 26px; }
.news-card .date { font-size: 12.5px; color: var(--muted); }
.news-card h3 { font-size: 17px; font-weight: 800; margin: 8px 0 10px; letter-spacing: -.03em; line-height: 1.4; }
.news-card p { font-size: 14px; color: var(--ink2); }

/* ── 팀 ── */
.team-card { text-align: center; }
.team-card .face {
  width: 92px; height: 92px; margin: 0 auto 16px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center; font-size: 40px;
  background: var(--bg-soft); border: 3px solid #fff; box-shadow: var(--shadow-sm);
}
.team-card .role { font-size: 13px; font-weight: 700; color: var(--secondary); }

/* ── 문서(약관/방침) ── */
.doc-wrap { max-width: 820px; margin: 0 auto; }
.doc-wrap h2 { font-size: 21px; font-weight: 800; margin: 42px 0 14px; letter-spacing: -.03em; }
.doc-wrap h2:first-child { margin-top: 0; }
.doc-wrap p, .doc-wrap li { color: var(--ink2); font-size: 15.3px; margin-bottom: 10px; }
.doc-wrap ol, .doc-wrap ul { padding-left: 22px; margin-bottom: 14px; }
.doc-wrap ul { list-style: disc; }
.doc-wrap ol { list-style: decimal; }
.doc-meta { color: var(--muted); font-size: 13.5px; margin-bottom: 30px; }

/* ── 폼 ── */
.form-grid { display: grid; gap: 18px; max-width: 680px; margin: 0 auto; }
.form-grid label { font-weight: 700; font-size: 14.5px; display: block; margin-bottom: 7px; }
.form-grid input, .form-grid textarea, .form-grid select {
  width: 100%; padding: 14px 16px; border: 2px solid var(--line); border-radius: 14px;
  font-size: 15px; font-family: inherit; color: var(--ink); background: #fff;
  transition: border .25s, box-shadow .25s;
}
.form-grid input:focus, .form-grid textarea:focus, .form-grid select:focus {
  outline: none; border-color: var(--primary); box-shadow: 0 0 0 4px rgba(102, 126, 234, .15);
}
.form-msg { display: none; padding: 15px 18px; border-radius: 14px; font-size: 14.5px; font-weight: 600; }
.form-msg.ok { display: block; background: #e9fbef; border: 1px solid #bfeed0; color: #157a3c; }
.form-msg.fail { display: block; background: #fdecef; border: 1px solid #f6c2cd; color: #b42548; }

/* ── 위치/연락 정보 ── */
.info-list li { display: flex; gap: 14px; padding: 16px 0; border-bottom: 1px dashed var(--line); font-size: 15px; }
.info-list li .ic { font-size: 20px; }
.info-list li b { min-width: 92px; color: var(--ink); }
.info-list li span { color: var(--ink2); }
.map-box {
  border-radius: var(--rad); overflow: hidden; border: 1px solid var(--line);
  background: var(--grad-deep); min-height: 320px; display: flex; align-items: center; justify-content: center;
  color: #c6cbe8; text-align: center; padding: 30px;
}

/* ── 사이트맵 ── */
.sitemap-grid h2 { font-size: 17px; font-weight: 800; color: var(--secondary); margin-bottom: 14px; }
.sitemap-grid ul li { padding: 7px 0; }
.sitemap-grid ul a { text-decoration: none; color: var(--ink2); font-size: 15px; transition: color .2s; }
.sitemap-grid ul a:hover { color: var(--primary); }

/* ── 파트너 ── */
.partner-logo {
  display: flex; align-items: center; justify-content: center; gap: 10px;
  background: #fff; border: 1px solid var(--line); border-radius: 16px;
  padding: 26px 18px; font-weight: 800; color: var(--ink2); font-size: 15.5px;
  box-shadow: var(--shadow-sm);
}
.partner-logo .dot { width: 12px; height: 12px; border-radius: 50%; background: var(--grad-cosmic); }

/* ── 포트폴리오 ── */
.folio-card { padding: 0; overflow: hidden; }
.folio-card .cover { height: 150px; display: flex; align-items: center; justify-content: center; font-size: 44px; }
.folio-card .cover.c1 { background: linear-gradient(135deg, #1e2657, #667eea); }
.folio-card .cover.c2 { background: linear-gradient(135deg, #4a2a72, #a06ee0); }
.folio-card .cover.c3 { background: linear-gradient(135deg, #6d2f6d, #f093fb); }
.folio-card .cover.c4 { background: linear-gradient(135deg, #223a75, #4facfe); }
.folio-card .body { padding: 24px 26px 28px; }
.folio-card .meta { font-size: 12.5px; color: var(--muted); margin-top: 10px; }

/* ── 푸터 ── */
.site-footer { background: var(--cosmic-950); color: #b9bfe0; padding: 64px 0 34px; }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 40px; margin-bottom: 44px; }
.footer-brand p { font-size: 14px; margin-top: 16px; color: #8b92bd; max-width: 320px; }
.footer-brand .footer-copyright-note { font-size: 12px; color: #5d648f; }
.footer-col h3 { color: #fff; font-size: 15px; font-weight: 800; margin-bottom: 16px; }
.footer-col ul li { margin-bottom: 10px; }
.footer-col a { color: #8b92bd; text-decoration: none; font-size: 14px; transition: color .2s; }
.footer-col a:hover { color: var(--star); }
.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, .08); padding-top: 26px;
  display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap;
  font-size: 13px; color: #5d648f;
}
.footer-bottom a { color: #8b92bd; text-decoration: none; }
.footer-bottom a:hover { color: var(--star); }
