/* ================================================================
   xSlide Site — 공통 디자인 시스템 (site.css)
   home.html / why-xslide.html / features-highlights.html / features-all.html
   ================================================================ */

:root {
  --font:        'Noto Sans KR', -apple-system, BlinkMacSystemFont, sans-serif;
  --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;
}

/* ── 타이포 유틸 ── */
.grad-text {
  background: var(--grad-main);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.section-label {
  font-size: 14px; font-weight: 700; letter-spacing: .1em;
  text-transform: uppercase; color: var(--accent-b); margin-bottom: 14px;
  display: block;
}
.section-title {
  font-size: clamp(28px, 4vw, 44px); font-weight: 800;
  line-height: 1.22; margin-bottom: 18px;
}
.section-desc {
  font-size: 17px; color: var(--text2); line-height: 1.85;
}

/* ── 버튼 ── */
.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);
}

/* ══════════════════════════════════════════
   페이지 HERO (서브페이지 공통)
══════════════════════════════════════════ */
.page-hero {
  padding: 60px 0 40px;
  position: relative; overflow: hidden;
  text-align: center;
}
.page-hero-glow {
  position: absolute; top: -150px; left: 50%; transform: translateX(-50%);
  width: 950px; height: 400px; pointer-events: none;
  background: radial-gradient(ellipse, rgba(99,102,241,0.18) 0%, transparent 70%);
  filter: blur(40px);
}
.page-hero .section-label { display: block; margin-bottom: 14px; }
.page-hero h1 {
  font-size: clamp(32px, 5vw, 58px); font-weight: 700;
  line-height: 1.15; letter-spacing: -.02em; margin-bottom: 20px;
}
.page-hero p {
  font-size: clamp(16px, 2vw, 19px); color: var(--text2);
  max-width: 820px; margin: 0 auto 40px; line-height: 1.8;
}

/* ── 빵부스러기 ── */
.breadcrumb {
  display: flex; align-items: center; gap: 8px;
  font-size: 13px; color: var(--text3);
  margin-bottom: 32px; justify-content: center;
}
.breadcrumb a { color: var(--text3); text-decoration: none; }
.breadcrumb a:hover { color: var(--text2); }
.breadcrumb i { font-size: 11px; }

/* ══════════════════════════════════════════
   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; }


    /* ══ 페이지 전용 스타일 ══ */

    /* ── 타임라인 섹션 ── */
    .timeline-container {
      display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: start;
    }
    @media (max-width: 768px) {
      .timeline-container { grid-template-columns: 1fr; gap: 40px; }
    }

    .timeline { position: relative; padding: 0 0 0 40px; }
    .timeline::before {
      content: ''; position: absolute; left: 16px; top: 8px; bottom: 8px;
      width: 2px;
      background: linear-gradient(180deg, var(--accent-a), var(--accent-b), var(--accent-c));
      border-radius: 2px;
    }
    .timeline-item { position: relative; margin-bottom: 52px; }
    .timeline-item:last-child { margin-bottom: 0; }
    .timeline-dot {
      position: absolute; left: -32px; top: 4px;
      width: 16px; height: 16px; border-radius: 50%;
      background: var(--grad-main);
      box-shadow: 0 0 0 3px rgba(99,102,241,.2);
    }
    .timeline-year {
      font-size: 13px; font-weight: 700; color: var(--accent-c);
      letter-spacing: .1em; margin-bottom: 6px;
    }
    .timeline-title { font-size: 18px; font-weight: 700; margin-bottom: 8px; }
    .timeline-desc { font-size: 14px; color: var(--text2); line-height: 1.8; }

    /* ── 고통 포인트 카드 ── */
    .pain-grid {
      display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px;
    }
    @media (max-width: 900px) { .pain-grid { grid-template-columns: repeat(2, 1fr); } }
    @media (max-width: 600px) { .pain-grid { grid-template-columns: 1fr; } }

    .pain-card {
      border-radius: var(--radius-lg); padding: 28px;
      background: rgba(239,68,68,.04);
      border: 1px solid rgba(239,68,68,.14);
      position: relative; overflow: hidden;
    }
    .pain-card.full-width {
      grid-column: 1 / -1; max-width: 600px; margin: 0 auto; width: 100%;
    }
    .pain-num {
      font-size: 48px; font-weight: 900; color: rgba(239,68,68,.12);
      line-height: 1; margin-bottom: 12px;
      font-variant-numeric: tabular-nums;
    }
    .pain-title { font-size: 16px; font-weight: 700; margin-bottom: 8px; color: #fca5a5; display: flex; align-items: center; gap: 8px; }
    .pain-title i { font-size: 20px; }
    .pain-desc { font-size: 13px; color: var(--text2); line-height: 1.75; }

    /* ── 해결 카드 ── */
    .solution-grid {
      display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px;
    }
    @media (max-width: 768px) { .solution-grid { grid-template-columns: 1fr; } }

    .solution-card {
      border-radius: var(--radius-lg); padding: 32px;
      background: var(--surface);
      border: 1px solid var(--border);
      display: flex; gap: 20px;
      transition: all .3s;
    }
    @media (max-width: 480px) {
      .solution-card { flex-direction: column; padding: 24px; gap: 16px; }
    }
    .solution-card:hover {
      border-color: rgba(99,102,241,.3);
      background: rgba(99,102,241,.06);
      transform: translateY(-3px);
    }
    .solution-icon {
      width: 52px; height: 52px; border-radius: 14px; flex-shrink: 0;
      display: flex; align-items: center; justify-content: center; font-size: 24px;
    }
    .solution-body h3 { font-size: 17px; font-weight: 700; margin-bottom: 8px; }
    .solution-body p { font-size: 14px; color: var(--text2); line-height: 1.75; }

    /* ── 데이터 쇼케이스 ── */
    .data-row {
      display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px;
    }
    @media (max-width: 900px) { .data-row { grid-template-columns: repeat(2, 1fr); } }
    @media (max-width: 480px) { .data-row { grid-template-columns: 1fr; } }

    .data-card {
      border-radius: var(--radius-lg); padding: 28px 24px; text-align: center;
      background: var(--surface); border: 1px solid var(--border);
    }
    .data-num {
      font-size: 42px; font-weight: 900; line-height: 1;
      background: var(--grad-main);
      -webkit-background-clip: text; -webkit-text-fill-color: transparent;
      background-clip: text; margin-bottom: 8px;
    }
    .data-label { font-size: 13px; color: var(--text2); line-height: 1.5; }
    .data-source { font-size: 11px; color: var(--text3); margin-top: 6px; }

    /* ── 증언 ── */
    .quote-grid {
      display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px;
    }
    @media (max-width: 900px) { .quote-grid { grid-template-columns: repeat(2, 1fr); } }
    @media (max-width: 600px) { .quote-grid { grid-template-columns: 1fr; } }

    .quote-card {
      border-radius: var(--radius-lg); padding: 28px;
      background: var(--surface); border: 1px solid var(--border);
      display: flex; flex-direction: column; gap: 16px;
    }
    .quote-icon { font-size: 28px; color: var(--accent-b); }
    .quote-text { font-size: 14px; color: var(--text2); line-height: 1.8; font-style: italic; }
    .quote-author { display: flex; align-items: center; gap: 10px; margin-top: auto; }
    .quote-avatar {
      width: 36px; height: 36px; border-radius: 50%;
      display: flex; align-items: center; justify-content: center;
      font-size: 14px; font-weight: 700; color: #fff;
      background: var(--grad-main);
      flex-shrink: 0;
    }
    .quote-name { font-size: 13px; font-weight: 600; }
    .quote-role { font-size: 12px; color: var(--text3); }

    /* ── 비교 테이블 ── */
    .table-wrap {
      border-radius: var(--radius-lg);
      border: 1px solid var(--border2);
      overflow-x: auto;
      -webkit-overflow-scrolling: touch;
    }
    .compare-table {
      width: 100%; border-collapse: collapse;
      min-width: 600px;
    }
    .compare-table th {
      padding: 16px 20px; text-align: left;
      font-size: 13px; font-weight: 700;
      background: var(--bg3); border-bottom: 1px solid var(--border2);
    }
    .compare-table th:not(:first-child) { text-align: center; }
    .compare-table td {
      padding: 14px 20px; font-size: 13px; color: var(--text2);
      border-bottom: 1px solid var(--border);
      vertical-align: middle;
    }
    .compare-table td:not(:first-child) { text-align: center; }
    .compare-table tr:last-child td { border-bottom: none; }
    .compare-table tr:hover td { background: rgba(255,255,255,.02); }
    .compare-table .col-xslide { background: rgba(99,102,241,.04); }
    .col-xslide th { color: #a5b4fc !important; }
    .check-yes { color: #34d399 !important; font-size: 20px !important; vertical-align: middle; }
    .check-no  { color: #f87171 !important; font-size: 20px !important; vertical-align: middle; }
    .check-partial { color: #fbbf24; font-size: 13px; font-weight: 600; }

    /* ── 섹션 간격 ── */
    .section { padding: 88px 0; }
    .section-alt {
      padding: 30px 0;
      background: linear-gradient(180deg, transparent, var(--bg2) 15%, var(--bg2) 85%, transparent);
    }
    @media (max-width: 768px) {
      .section, .section-alt { padding: 60px 0; }
    }
    .section-header { margin-bottom: 56px; }
    .section-header.center { text-align: center; }
    .section-header.center .section-desc { margin: 0 auto; }
    
    .cta-section { padding: 40px 0 60px; }
    @media (max-width: 768px) {
      .cta-section { padding: 30px 0 80px; }
    }