:root {
  --bg:          #080c14;
  --bg2:         #0d1220;
  --bg3:         #111827;
  --surface:     rgba(255,255,255,0.04);
  --surface2:    rgba(255,255,255,0.07);
  --border:      rgba(255,255,255,0.08);
  --border2:     rgba(255,255,255,0.14);
  --text:        #f1f5f9;
  --text2:       #94a3b8;
  --text3:       #64748b;
  --accent-a:    #6366f1;
  --accent-b:    #8b5cf6;
  --accent-c:    #06b6d4;
  --grad-main:   linear-gradient(135deg, #6366f1 0%, #8b5cf6 50%, #06b6d4 100%);
  --grad-soft:   linear-gradient(135deg, rgba(99,102,241,0.15) 0%, rgba(139,92,246,0.15) 100%);
  --shadow-glow: 0 0 60px rgba(99,102,241,0.25);
  --radius:      14px;
  --radius-lg:   22px;
}

/* ── 버튼 ── */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 13px 28px; border-radius: 10px;
  font-family: var(--font); font-size: 15px; font-weight: 600;
  cursor: pointer; text-decoration: none; transition: all .2s;
  border: none; outline: none; white-space: nowrap;
}
.btn-primary {
  background: var(--grad-main); color: #fff;
  box-shadow: 0 4px 24px rgba(99,102,241,0.4);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 8px 32px rgba(99,102,241,0.5); }
.btn-ghost {
  background: var(--surface2); color: var(--text);
  border: 1px solid var(--border2);
}
.btn-ghost:hover { background: rgba(255,255,255,0.1); }
.btn-outline {
  background: transparent; color: var(--text);
  border: 1px solid var(--border2);
}
.btn-outline:hover { border-color: var(--accent-a); color: #a5b4fc; }
.btn-sm { padding: 8px 18px; font-size: 13px; }

/* ── 배지 ── */
.badge {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 5px 14px; border-radius: 999px;
  font-size: 12px; font-weight: 600; letter-spacing: .04em;
  background: rgba(99,102,241,0.15); color: #a5b4fc;
  border: 1px solid rgba(99,102,241,0.3);
}

/* ══════════════════════════════════════════
   SCROLL REVEAL
══════════════════════════════════════════ */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity .65s ease, transform .65s ease; }
.reveal.visible { opacity: 1; transform: none; }
.reveal-delay-1 { transition-delay: .08s; }
.reveal-delay-2 { transition-delay: .16s; }
.reveal-delay-3 { transition-delay: .24s; }
.reveal-delay-4 { transition-delay: .32s; }
.reveal-delay-5 { transition-delay: .40s; }

/* ══════════════════════════════════════════
   SHARED COMPONENT — CTA BANNER
══════════════════════════════════════════ */
.cta-banner {
  border-radius: 28px; padding: 72px 60px; text-align: center;
  background: linear-gradient(135deg, rgba(99,102,241,.12), rgba(139,92,246,.12) 50%, rgba(6,182,212,.08));
  border: 1px solid rgba(99,102,241,.25);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.05), var(--shadow-glow);
  position: relative; overflow: hidden;
}
.cta-banner::before {
  content: ''; position: absolute; top: -80px; right: -80px;
  width: 320px; height: 320px; border-radius: 50%;
  background: radial-gradient(circle, rgba(139,92,246,.2), transparent 70%);
  pointer-events: none;
}
.cta-banner h2 { font-size: clamp(26px, 3.5vw, 40px); font-weight: 900; margin-bottom: 14px; line-height: 1.25; }
.cta-banner p { font-size: 16px; color: var(--text2); margin-bottom: 36px; max-width: 500px; margin-left: auto; margin-right: auto; }
.cta-banner-actions { display: flex; align-items: center; justify-content: center; gap: 12px; flex-wrap: wrap; }
.cta-note { margin-top: 16px; font-size: 12px; color: var(--text3); }

/* ══════════════════════════════════════════
   SHARED COMPONENT — 아이콘 컬러 클래스
══════════════════════════════════════════ */
.ic-indigo  { background: rgba(99,102,241,.12); color: #818cf8; }
.ic-purple  { background: rgba(139,92,246,.12); color: #a78bfa; }
.ic-cyan    { background: rgba(6,182,212,.12);  color: #22d3ee; }
.ic-green   { background: rgba(52,211,153,.12); color: #34d399; }
.ic-amber   { background: rgba(251,191,36,.12); color: #fbbf24; }
.ic-rose    { background: rgba(251,113,133,.12);color: #fb7185; }
.ic-sky     { background: rgba(56,189,248,.12); color: #38bdf8; }
.ic-orange  { background: rgba(251,146,60,.12); color: #fb923c; }
.ic-teal    { background: rgba(20,184,166,.12); color: #2dd4bf; }
.ic-pink    { background: rgba(236,72,153,.12); color: #f472b6; }
.ic-lime    { background: rgba(163,230,53,.12); color: #a3e635; }
.ic-violet  { background: rgba(167,139,250,.12);color: #c4b5fd; }


    /* ══ 사이드바 레이아웃 ══ */
    .doc-layout-wrap {
      max-width: 100%;
      margin: 0 auto;
      padding-top: 0px;
      min-height: 100vh;
    }
    .doc-layout {
      border-top:var(--border);
      display: grid;
      grid-template-columns: 240px 1fr;
      gap: 0;
    }
    @media (max-width: 900px) { .doc-layout { grid-template-columns: 1fr; } }

    /* ── 유틸리티 클래스 ── */
    .breadcrumb-start { justify-content: flex-start; margin-bottom: 24px; }
    .mr-8 { margin-right: 8px; }
    .ml-4 { margin-left: 4px; }
    .mt-40 { margin-top: 40px; }

    /* ── 사이드바 ── */
    .doc-sidebar {
      position: sticky; top: 64px; height: calc(100vh - 64px);
      overflow-y: auto; padding: 32px 0;
      border-right: 1px solid var(--border);
      background: var(--bg2);
    }
    @media (max-width: 900px) { .doc-sidebar { display: none; } }
    .sidebar-title {
      font-size: 18px; font-weight: 700; letter-spacing: -1px;
      text-transform: uppercase; color: var(--text3);
      padding: 12px 20px; margin-bottom: 8px; margin-top: 20px;
    }
    .sidebar-title:first-child { margin-top: 0; }
    .sidebar-link {
      display: flex; align-items: center; gap: 8px;
      padding: 7px 20px; font-size: 13px; color: var(--text3);
      text-decoration: none; transition: all .15s; cursor: pointer;
      border-left: 2px solid transparent;
    }
    .sidebar-link:hover { color: var(--text2); background: var(--surface); }
    .sidebar-link.active { color: #a5b4fc; border-left-color: var(--accent-a); background: rgba(99,102,241,.06); }
    .sidebar-link i { font-size: 14px; flex-shrink: 0; }

    /* ── 문서 본문 ── */
    .doc-content {
      margin-top:55px;
      padding: 0px 0px 60px 65px;
      max-width: 100%;
    }
    @media (max-width: 1100px) { .doc-content { padding: 48px 32px; } }
    @media (max-width: 700px) { .doc-content { padding: 32px 20px; } }

    /* ── 기능 섹션 ── */
    .feature-section {
      padding: 0 0 80px;
      border-bottom: 1px solid var(--border);
      margin-bottom: 72px;
    }
    .feature-section:last-child { border-bottom: none; padding-bottom: 0; }

    .feature-section-header {
      display: flex; align-items: flex-start; gap: 18px; margin-bottom: 36px;
    }
    .fs-icon {
      width: 56px; height: 56px; border-radius: 14px; flex-shrink: 0;
      display: flex; align-items: center; justify-content: center; font-size: 26px;
    }
    .fs-num {
      font-size: 11px; font-weight: 700; letter-spacing: .1em;
      text-transform: uppercase; color: var(--text3); margin-bottom: 4px;
    }
    .fs-title { font-size: 26px; font-weight: 800; margin-bottom: 8px; }
    .fs-desc { font-size: 15px; color: var(--text2); line-height: 1.8; }

    /* ── 기능 카드 그리드 ── */
    .func-grid {
      display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px;
    }
    @media (max-width: 620px) { .func-grid { grid-template-columns: 1fr; } }

    .func-card {
      background: var(--surface); border: 1px solid var(--border);
      border-radius: var(--radius); padding: 20px 22px;
      transition: border-color .2s, background .2s;
    }
    .func-card:hover { border-color: rgba(99,102,241,.25); background: rgba(99,102,241,.04); }
    .func-card-header {
      display: flex; align-items: center; gap: 10px; margin-bottom: 8px;
    }
    .func-icon {
      width: 32px; height: 32px; border-radius: 8px; flex-shrink: 0;
      display: flex; align-items: center; justify-content: center; font-size: 15px;
    }
    .func-title { font-size: 14px; font-weight: 700; }
    .func-desc { font-size: 13px; color: var(--text2); line-height: 1.7; }
    .func-badge {
      display: inline-block; margin-top: 8px;
      padding: 2px 8px; border-radius: 4px; font-size: 11px; font-weight: 600;
    }
    .func-badge.pro { background: rgba(99,102,241,.15); color: #a5b4fc; }
    .func-badge.ai  { background: rgba(139,92,246,.15); color: #c4b5fd; }
    .func-badge.new { background: rgba(52,211,153,.15); color: #34d399; }
    .func-badge.biz { background: rgba(251,191,36,.15);  color: #fbbf24; }

    /* 스크린샷 플레이스홀더 */
    .screenshot-placeholder {
      margin: 28px 0;
      width:950px;
      height:520px;
      border-radius: 8px;
      border: 2px dashed var(--border2);
      background-position: center top;
      background-size: 100% 100%;
    }

    /* ── 인트로 헤더 ── */
    .doc-intro {
      padding: 0 0 60px;
      border-bottom: 1px solid var(--border);
      margin-bottom: 72px;
    }
    @media (max-width: 640px) {
      .doc-intro { padding: 0 0 30px; margin-bottom: 40px; }
    }
    .doc-intro h1 { font-size: clamp(28px, 4vw, 42px); font-weight: 900; margin-bottom: 14px; line-height: 1.2; }
    .doc-intro p { font-size: 16px; color: var(--text2); line-height: 1.8; max-width: 680px; }
    .doc-intro-meta {
      display: flex; gap: 20px; margin-top: 20px; flex-wrap: wrap;
    }
    .doc-meta-item {
      display: flex; align-items: center; gap: 6px; font-size: 13px; color: var(--text3);
    }
    .doc-meta-item i { color: var(--accent-b); }

    /* ── 기능 수 뱃지 ── */
    .func-count-badge {
      display: inline-flex; align-items: center; gap: 6px;
      padding: 4px 12px; border-radius: 999px;
      background: rgba(99,102,241,.1); color: #a5b4fc;
      border: 1px solid rgba(99,102,241,.2);
      font-size: 12px; font-weight: 600;
      margin-bottom: 20px;
    }

    /* ── 목차 모바일 ── */
    .toc-mobile {
      display: none;
      margin: 24px 0;
      background: var(--bg2); border: 1px solid var(--border);
      border-radius: var(--radius); overflow: hidden;
    }
    @media (max-width: 900px) { .toc-mobile { display: block; } }
    .toc-mobile-header {
      display: flex; align-items: center; justify-content: space-between;
      padding: 14px 16px; cursor: pointer; font-size: 14px; font-weight: 600;
    }
    .toc-mobile-body {
      display: none; padding: 8px 0; border-top: 1px solid var(--border);
    }
    .toc-mobile-body.open { display: block; }
    .toc-mobile-body a {
      display: block; padding: 8px 16px;
      font-size: 13px; color: var(--text2); text-decoration: none;
    }
    .toc-mobile-body a:hover { color: var(--text); }
    @media (max-width: 640px) {
      .feature-section {
        padding: 0 0 40px;
        border-bottom: 1px solid var(--border);
        margin-bottom: 32px;
      }      
      .screenshot-placeholder {
        margin: 28px 0;
        height:260px;
        border-radius: 8px;
        border: 2px dashed var(--border2);
        background-position: center top;
        background-size: 100% 100%;
      }    
    }