/* =========================================================================
   간다GO — 디자인 토큰 시스템 (프리미엄 팔레트) + 컴포넌트 오버레이
   폰트: Pretendard / 팔레트: 딥 네이비 + 오렌지 프리미엄
   ========================================================================= */

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

/* =========================================================================
   1. 디자인 토큰 — 프리미엄 팔레트로 교체
   ========================================================================= */
:root {
  /* Surface / Background — 딥 네이비 계열 */
  --bg: #070b16;
  --bg-2: #0a0f1e;
  --surface: #111a2e;
  --surface-2: #16203a;
  --surface-3: #1d294899;
  --overlay: rgba(255, 255, 255, 0.04);
  --overlay-strong: rgba(255, 255, 255, 0.07);

  /* Brand accent — 오렌지 프리미엄 그라디언트 */
  --accent: #ff7a18;
  --accent-2: #ff9d2f;
  --accent-soft: rgba(255, 122, 24, 0.14);
  --accent-ring: rgba(255, 122, 24, 0.45);
  --accent-grad: linear-gradient(135deg, #ff7a18 0%, #ff9d2f 100%);

  /* Text */
  --text: #f5f7fb;
  --text-2: #c7d0e0;
  --text-muted: #93a0b8;
  --text-faint: #64708a;

  /* Lines */
  --border: rgba(255, 255, 255, 0.08);
  --border-2: rgba(255, 255, 255, 0.12);

  /* Radius */
  --r-sm: 10px;
  --r: 16px;
  --r-lg: 22px;
  --r-pill: 999px;

  /* Shadow */
  --shadow: 0 10px 30px -12px rgba(0, 0, 0, 0.6);
  --shadow-accent: 0 12px 34px -10px rgba(255, 122, 24, 0.5);

  /* Layout */
  --maxw: 1180px;
  --gutter: clamp(16px, 4vw, 40px);

  /* Type */
  --font: 'Pretendard', 'Pretendard Variable', -apple-system, BlinkMacSystemFont,
    system-ui, 'Segoe UI', Roboto, 'Apple SD Gothic Neo', 'Noto Sans KR', sans-serif;
}

/* =========================================================================
   2. Base
   ========================================================================= */
*,
*::before,
*::after { box-sizing: border-box; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  font-family: var(--font);
  background:
    radial-gradient(1100px 620px at 78% -8%, rgba(255, 122, 24, 0.12), transparent 60%),
    radial-gradient(900px 560px at 8% 4%, rgba(58, 96, 190, 0.12), transparent 55%),
    var(--bg);
  color: var(--text);
  line-height: 1.72;
  font-size: 16px;
  letter-spacing: -0.01em;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

a { color: var(--accent-2); text-decoration: none; transition: color .18s ease; }
a:hover { color: #ffb861; }

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

h1, h2, h3, h4 { line-height: 1.28; letter-spacing: -0.02em; font-weight: 800; margin: 0 0 .5em; }
h1 { font-size: clamp(1.75rem, 4.2vw, 2.7rem); }
h2 { font-size: clamp(1.4rem, 3vw, 2rem); }
h3 { font-size: clamp(1.12rem, 2vw, 1.35rem); }
p { margin: 0 0 1em; color: var(--text-2); }

.container { max-width: var(--maxw); margin: 0 auto; padding-inline: var(--gutter); }
.section { padding-block: clamp(48px, 8vw, 96px); }
.section--tight { padding-block: clamp(36px, 6vw, 64px); }

.eyebrow {
  display: inline-block; font-size: .82rem; font-weight: 700; letter-spacing: .12em;
  text-transform: uppercase; color: var(--accent-2); margin-bottom: 14px;
}
.lede { font-size: clamp(1rem, 1.6vw, 1.12rem); color: var(--text-muted); max-width: 62ch; }
.center { text-align: center; }
.center .lede { margin-inline: auto; }

/* =========================================================================
   3. 컴포넌트 오버레이 — 버튼
   ========================================================================= */
.btn {
  --_bg: var(--overlay-strong);
  display: inline-flex; align-items: center; justify-content: center; gap: .5em;
  padding: 13px 26px; border-radius: var(--r-pill);
  font-weight: 700; font-size: .96rem; font-family: inherit;
  border: 1px solid var(--border-2); background: var(--_bg); color: var(--text);
  cursor: pointer; transition: transform .16s ease, box-shadow .18s ease, background .18s ease, border-color .18s ease;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-2px); color: var(--text); }
.btn:focus-visible { outline: 3px solid var(--accent-ring); outline-offset: 2px; }

.btn--primary {
  background: var(--accent-grad); border-color: transparent; color: #1a0d00;
  box-shadow: var(--shadow-accent);
}
.btn--primary:hover { box-shadow: 0 16px 40px -10px rgba(255, 122, 24, 0.62); color: #1a0d00; }

.btn--ghost { background: transparent; }
.btn--sm { padding: 9px 18px; font-size: .875rem; }
.btn--block { width: 100%; }

/* =========================================================================
   4. 컴포넌트 오버레이 — 카드 / 그리드
   ========================================================================= */
.card {
  position: relative; background: var(--surface);
  border: 1px solid var(--border); border-radius: var(--r-lg);
  padding: 26px; box-shadow: var(--shadow);
  transition: transform .2s ease, border-color .2s ease, background .2s ease;
  overflow: hidden;
}
.card::before {
  content: ''; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(160deg, var(--overlay), transparent 42%);
}
.card:hover { transform: translateY(-4px); border-color: var(--border-2); }

.card--accent {
  border-color: var(--accent-ring);
  background:
    linear-gradient(160deg, var(--accent-soft), transparent 55%), var(--surface-2);
  box-shadow: var(--shadow-accent);
}
.card h3 { position: relative; }
.card p { position: relative; color: var(--text-muted); margin-bottom: 0; }

.grid { display: grid; gap: 20px; }
.grid--2 { grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); }
.grid--3 { grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
.grid--4 { grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); }

/* Link card */
a.card { display: block; color: inherit; }
a.card:hover { color: inherit; }
a.card h3 { color: var(--text); }
a.card .card__more { color: var(--accent-2); font-weight: 700; font-size: .9rem; margin-top: 14px; display: inline-block; }

/* =========================================================================
   5. 헤더 / 네비게이션
   ========================================================================= */
.site-header {
  position: sticky; top: 0; z-index: 50;
  backdrop-filter: blur(14px);
  background: rgba(7, 11, 22, 0.72);
  border-bottom: 1px solid var(--border);
}
.nav {
  display: flex; align-items: center; justify-content: space-between;
  height: 66px; gap: 20px;
}
.nav__brand { display: flex; align-items: center; gap: 9px; font-weight: 800; font-size: 1.18rem; color: var(--text); white-space: nowrap; }
.nav__brand .dot { width: 10px; height: 10px; border-radius: 50%; background: var(--accent-grad); box-shadow: 0 0 12px var(--accent); flex-shrink: 0; }
.nav__links { display: flex; gap: 2px; align-items: center; }
.nav__links a { color: var(--text-2); font-size: .875rem; font-weight: 600; padding: 8px 9px; border-radius: var(--r-sm); white-space: nowrap; }
.nav__links a:hover { color: var(--text); background: var(--overlay); }
.nav__cta { display: flex; gap: 8px; align-items: center; }

.nav__toggle { display: none; background: none; border: 0; color: var(--text); cursor: pointer; padding: 8px; }

@media (max-width: 1120px) {
  .nav__links a { font-size: .82rem; padding: 8px 6px; }
}
@media (max-width: 1000px) {
  .nav__links { display: none; }
  .nav__cta .btn span.long { display: none; }
}

/* =========================================================================
   6. Hero
   ========================================================================= */
.hero { padding-block: clamp(56px, 10vw, 120px); position: relative; isolation: isolate; }
/* 히어로 배경 이미지 — src/assets/hero-bg.jpg 업로드 시 자동 적용.
   파일이 없으면 배경만 로드 실패하고 아래 그라디언트(body 배경)가 그대로 보입니다. */
.hero::before {
  content: ''; position: absolute; inset: 0; z-index: -1;
  background-image:
    linear-gradient(180deg, rgba(7,11,22,0.72) 0%, rgba(7,11,22,0.85) 55%, var(--bg) 100%),
    linear-gradient(90deg, rgba(7,11,22,0.78) 0%, rgba(7,11,22,0.30) 60%, transparent 100%),
    url('/assets/hero-bg.webp');
  background-size: cover; background-position: center; background-repeat: no-repeat;
}
.hero .container { position: relative; z-index: 1; }
.hero h1 { max-width: 16ch; }
.hero .lede { margin-top: 8px; }
.hero__cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }
.hero__chips { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 26px; }
.chip {
  font-size: .86rem; font-weight: 600; color: var(--text-2);
  padding: 8px 15px; border-radius: var(--r-pill);
  border: 1px solid var(--border-2); background: var(--overlay);
  transition: all .16s ease;
}
.chip:hover { color: var(--text); border-color: var(--accent-ring); background: var(--accent-soft); }

/* =========================================================================
   7. 요금(코스) 섹션
   ========================================================================= */
.pricing { display: grid; gap: 22px; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); align-items: stretch; }
.price-card { text-align: center; padding: 34px 26px; }
.price-card__name { font-size: 1.28rem; font-weight: 800; }
.price-card__price { font-size: clamp(2.1rem, 5vw, 2.9rem); font-weight: 800; margin: 12px 0 2px; letter-spacing: -0.03em; }
.price-card__price small { font-size: 1rem; font-weight: 600; color: var(--text-muted); }
.price-card__min { color: var(--accent-2); font-weight: 700; margin-bottom: 6px; }
.price-card__desc { color: var(--text-muted); font-size: .95rem; margin-bottom: 22px; }
.price-card__badge {
  position: absolute; top: 14px; left: 50%; transform: translateX(-50%);
  background: var(--accent-grad); color: #1a0d00; font-weight: 800; font-size: .78rem;
  padding: 5px 16px; border-radius: var(--r-pill);
}

/* =========================================================================
   8. 본문 / 아티클
   ========================================================================= */
.article { max-width: 820px; margin-inline: auto; }
.article h2 { margin-top: 1.6em; }
.article ul, .article ol { color: var(--text-2); padding-left: 1.3em; }
.article li { margin-bottom: .5em; }
.article .figure {
  position: relative; border-radius: var(--r); overflow: hidden; border: 1px solid var(--border);
  aspect-ratio: 16 / 9; margin: 6px 0 26px;
}
.article .figure img { width: 100%; height: 100%; object-fit: cover; display: block; }
.article .figure figcaption {
  position: absolute; left: 0; right: 0; bottom: 0; padding: 22px 18px 12px;
  font-size: .82rem; color: var(--text-2);
  background: linear-gradient(0deg, rgba(7,11,22,0.72), transparent);
}

/* 체크리스트 */
.checklist { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.checklist li {
  position: relative; padding: 14px 16px 14px 46px; margin: 0;
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-sm);
  color: var(--text-2);
}
.checklist li::before {
  content: '✓'; position: absolute; left: 15px; top: 50%; transform: translateY(-50%);
  width: 20px; height: 20px; border-radius: 50%; background: var(--accent-soft);
  color: var(--accent-2); font-weight: 800; font-size: .8rem;
  display: flex; align-items: center; justify-content: center;
}

/* FAQ */
.faq details {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-sm);
  padding: 4px 18px; margin-bottom: 10px; transition: border-color .18s ease;
}
.faq details[open] { border-color: var(--border-2); }
.faq summary {
  cursor: pointer; font-weight: 700; padding: 14px 0; list-style: none;
  display: flex; justify-content: space-between; align-items: center; gap: 12px; color: var(--text);
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: '+'; color: var(--accent-2); font-size: 1.4rem; font-weight: 400; }
.faq details[open] summary::after { content: '−'; }
.faq details p { padding-bottom: 16px; margin: 0; color: var(--text-muted); }

/* Who / How / Why */
.whw { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); margin-top: 20px; }
.whw__item { background: var(--surface); border: 1px solid var(--border); border-radius: var(--r); padding: 22px; }
.whw__item h4 { color: var(--accent-2); font-size: 1.05rem; margin-bottom: .5em; }
.whw__item p { color: var(--text-muted); font-size: .93rem; margin: 0; }

/* Breadcrumb */
.breadcrumb { font-size: .85rem; color: var(--text-muted); padding-block: 18px 4px; }
.breadcrumb a { color: var(--text-muted); }
.breadcrumb a:hover { color: var(--accent-2); }
.breadcrumb span { margin-inline: 6px; color: var(--text-faint); }

/* Related links */
.related { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 14px; }
.related a {
  font-size: .9rem; font-weight: 600; color: var(--text-2);
  padding: 9px 16px; border-radius: var(--r-pill);
  border: 1px solid var(--border-2); background: var(--overlay);
}
.related a:hover { border-color: var(--accent-ring); background: var(--accent-soft); color: var(--text); }

/* Notice banner */
.notice {
  border: 1px solid var(--border-2); background: var(--surface-2);
  border-left: 3px solid var(--accent); border-radius: var(--r-sm);
  padding: 16px 20px; color: var(--text-muted); font-size: .92rem;
}

/* =========================================================================
   9. 푸터 — 오렌지 CTA(제작문의·제휴문의) 포함
   ========================================================================= */
.site-footer {
  border-top: 1px solid var(--border); background: var(--bg-2);
  padding-block: clamp(48px, 7vw, 76px) 32px; margin-top: 40px;
}
.footer-cta {
  display: flex; flex-wrap: wrap; gap: 14px; align-items: center; justify-content: center;
  padding: 30px; border-radius: var(--r-lg);
  background: linear-gradient(160deg, var(--accent-soft), transparent 60%), var(--surface);
  border: 1px solid var(--accent-ring); margin-bottom: 44px; text-align: center;
}
.footer-cta__text { flex: 1 1 260px; text-align: left; }
.footer-cta__text strong { font-size: 1.15rem; }
.footer-cta__text p { margin: 4px 0 0; color: var(--text-muted); font-size: .92rem; }
.footer-cta__btns { display: flex; flex-wrap: wrap; gap: 12px; }

.footer-regions { margin-bottom: 40px; padding-bottom: 34px; border-bottom: 1px solid var(--border); }
.footer-regions h4 { font-size: .82rem; letter-spacing: .1em; text-transform: uppercase; color: var(--text-faint); margin-bottom: 14px; }

.footer-grid { display: grid; gap: 30px; grid-template-columns: 1.4fr repeat(4, 1fr); }
.footer-grid h4 { font-size: .82rem; letter-spacing: .1em; text-transform: uppercase; color: var(--text-faint); margin-bottom: 14px; }
.footer-grid ul { list-style: none; padding: 0; margin: 0; }
.footer-grid li { margin-bottom: 9px; }
.footer-grid a { color: var(--text-2); font-size: .92rem; }
.footer-grid a:hover { color: var(--accent-2); }
.footer-brand .dot { width: 10px; height: 10px; border-radius: 50%; background: var(--accent-grad); display: inline-block; margin-right: 8px; }
.footer-brand strong { font-size: 1.2rem; }
.footer-biz { color: var(--text-muted); font-size: .9rem; margin-top: 12px; line-height: 1.9; }
.footer-biz b { color: var(--text-2); font-weight: 600; }
.footer-tel { display: inline-flex; align-items: center; gap: 8px; margin-top: 10px; font-weight: 800; font-size: 1.25rem; color: var(--text); }
.footer-tel:hover { color: var(--accent-2); }

.footer-bottom {
  margin-top: 44px; padding-top: 24px; border-top: 1px solid var(--border);
  display: flex; flex-wrap: wrap; gap: 12px; justify-content: space-between;
  color: var(--text-faint); font-size: .84rem;
}
.footer-bottom a { color: var(--text-faint); }
.footer-bottom a:hover { color: var(--accent-2); }

@media (max-width: 820px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-cta { flex-direction: column; }
  .footer-cta__text { text-align: center; }
}
@media (max-width: 520px) {
  .footer-grid { grid-template-columns: 1fr; }
}

/* Skip link (접근성) */
.skip { position: absolute; left: -999px; top: 0; background: var(--accent); color: #1a0d00; padding: 10px 16px; z-index: 100; border-radius: 0 0 var(--r-sm) 0; font-weight: 700; }
.skip:focus { left: 0; }

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}
