/* ================================================================
   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);
}

/* ══════════════════════════════════════════
   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; }


    /* ── 공통/여백 ── */
    .section { padding: 88px 0; }
    .section-alt {
      padding: 88px 0;
      background: linear-gradient(180deg, transparent, var(--bg2) 15%, var(--bg2) 85%, transparent);
    }
    .cta-section { padding: 80px 0 100px; }
    @media (max-width: 768px) {
      .section, .section-alt { padding: 60px 0; }
      .cta-section { padding: 60px 0 80px; }
    }
    .section-header { margin-bottom: 60px; }
    .section-header.center { text-align: center; }
    .section-header.center .section-desc { margin: 0 auto; }

    /* ── 하이라이트 카드 (대형, 번갈아 방향) ── */
    .highlight-block {
      display: grid; grid-template-columns: 1fr 1fr; gap: 72px;
      align-items: center; margin-bottom: 100px;
    }
    .highlight-block:last-child { margin-bottom: 0; }
    .highlight-block.reverse { direction: rtl; }
    .highlight-block.reverse > * { direction: ltr; }
    @media (max-width: 900px) {
      .highlight-block, .highlight-block.reverse { grid-template-columns: 1fr; direction: ltr; gap: 40px; }
    }

    .highlight-content .section-label { display: block; }
    .highlight-content h2 {
      font-size: clamp(24px, 3.5vw, 38px); font-weight: 800;
      line-height: 1.25; margin-bottom: 18px;
    }
    .highlight-content p {
      font-size: 16px; color: var(--text2); line-height: 1.85; margin-bottom: 24px;
    }
    .highlight-bullets { display: flex; flex-direction: column; gap: 12px; }
    .highlight-bullet {
      display: flex; align-items: flex-start; gap: 10px;
      font-size: 14px; color: var(--text2); line-height: 1.6;
    }
    .highlight-bullet i { color: #34d399; font-size: 16px; margin-top: 2px; flex-shrink: 0; }

    /* ── 비주얼 박스 ── */
    .visual-box {
      border-radius: var(--radius-lg);
      border: 1px solid var(--border2);
      overflow: hidden;
      box-shadow: 0 24px 80px rgba(0,0,0,0.4), var(--shadow-glow);
      position: relative;
    }
    .visual-box-inner {
      aspect-ratio: 4/3;
      background: var(--bg3);
      display: flex; align-items: center; justify-content: center;
      position: relative; overflow: hidden;
      padding: 28px;
    }
    .visual-box-inner.flex-start {
      flex-direction: column; justify-content: flex-start; padding: 20px;
    }
    .visual-label {
      position: absolute; top: 12px; left: 12px;
      font-size: 11px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase;
      color: var(--text3); background: var(--bg2);
      padding: 4px 10px; border-radius: 6px; border: 1px solid var(--border);
    }
    .vb-glow {
      position: absolute; bottom: -40px; left: 50%; transform: translateX(-50%);
      width: 300px; height: 150px; background: radial-gradient(ellipse, rgba(99,102,241,.15), transparent);
      pointer-events: none;
    }

    /* 비주얼 1: 웹 네이티브 */
    .vb-devices {
      display: flex; gap: 12px; align-items: center; justify-content: center;
      flex-wrap: wrap;
    }
    .vb-device {
      background: var(--bg2); border: 1px solid var(--border2);
      border-radius: 8px; display: flex; flex-direction: column;
      align-items: center; gap: 6px; padding: 14px 18px;
      font-size: 11px; color: var(--text3);
    }
    .vb-device i { font-size: 24px; color: var(--text2); }
    .vb-device.highlight-device { border-color: rgba(99,102,241,.5); background: rgba(99,102,241,.08); }
    .vb-device.highlight-device i { color: #818cf8; }
    .vb-check {
      width: 20px; height: 20px; border-radius: 50%;
      background: rgba(52,211,153,.15); color: #34d399;
      display: flex; align-items: center; justify-content: center; font-size: 11px;
    }

    /* 비주얼 2: 캔버스 편집 */
    .vb-canvas {
      width: 100%; aspect-ratio: 16/9;
      background: linear-gradient(135deg, #0a1628, #1a2a4a);
      border-radius: 8px; position: relative; overflow: hidden;
    }
    .vb-canvas-el {
      position: absolute;
      background: rgba(99,102,241,.25); border: 1px solid rgba(99,102,241,.5);
      border-radius: 4px;
    }
    .vb-canvas-el.selected {
      background: rgba(99,102,241,.15);
      border: 2px solid #6366f1;
      box-shadow: 0 0 0 3px rgba(99,102,241,.2);
    }
    .vb-handle {
      position: absolute; width: 8px; height: 8px;
      background: #6366f1; border: 2px solid #fff; border-radius: 1px;
      box-shadow: 0 1px 4px rgba(0,0,0,.5);
    }

    /* 비주얼 3: AI */
    .vb-ai { display: flex; flex-direction: column; gap: 10px; width: 100%; }
    .vb-ai-step {
      display: flex; align-items: center; gap: 12px;
      background: var(--bg2); border: 1px solid var(--border);
      border-radius: 8px; padding: 10px 14px; font-size: 13px;
    }
    .vb-ai-step i { font-size: 18px; flex-shrink: 0; }
    .vb-ai-step.active { border-color: rgba(99,102,241,.4); background: rgba(99,102,241,.08); }
    .vb-ai-step.active i { color: #818cf8; }
    .vb-ai-arrow { text-align: center; font-size: 16px; color: var(--text3); }
    .vb-ai-title { font-weight: 600; font-size: 13px; }
    .vb-ai-desc { font-size: 11px; color: var(--text3); margin-top: 2px; }
    .vb-ai-badge {
      margin-left: auto; font-size: 11px; font-weight: 700; color: #34d399;
      background: rgba(52,211,153,.12); padding: 3px 8px; border-radius: 4px;
    }
    .vb-ai-loader { display: flex; gap: 3px; }
    .vb-ai-loader div { width: 6px; height: 6px; border-radius: 50%; background: #818cf8; }
    .vb-ai-loader div:nth-child(1) { animation: pulse 1s infinite; }
    .vb-ai-loader div:nth-child(2) { animation: pulse 1s .2s infinite; }
    .vb-ai-loader div:nth-child(3) { animation: pulse 1s .4s infinite; }

    /* 비주얼 4: 애니메이션 */
    .vb-anim { display: flex; flex-direction: column; gap: 8px; width: 100%; }
    .vb-anim-time-ruler {
      font-size: 10px; color: var(--text3); margin-bottom: 6px; padding-left: 90px; display: flex; gap: 0;
    }
    .vb-anim-time-step { flex: 1; border-left: 1px solid var(--border); padding-left: 4px; }
    .vb-anim-track { display: flex; align-items: center; gap: 10px; font-size: 12px; color: var(--text3); }
    .vb-anim-label { width: 80px; text-align: right; flex-shrink: 0; }
    .vb-anim-bar-bg {
      flex: 1; height: 22px; background: var(--bg2);
      border: 1px solid var(--border); border-radius: 4px; overflow: hidden; position: relative;
    }
    .vb-anim-bar {
      height: 100%; border-radius: 3px; display: flex; align-items: center; padding: 0 8px;
      font-size: 10px; font-weight: 600; color: #fff; white-space: nowrap;
    }
    .vb-playhead { position: absolute; top: 0; bottom: 0; width: 2px; background: #ef4444; z-index: 1; }

    /* 비주얼 5: 공유 */
    .vb-share { display: flex; flex-direction: column; gap: 14px; width: 100%; }
    .vb-share-subtitle { font-size: 12px; color: var(--text3); font-weight: 600; margin-bottom: 4px; }
    .vb-share-url {
      background: var(--bg2); border: 1px solid rgba(99,102,241,.4);
      border-radius: 8px; padding: 10px 14px; font-size: 12px; color: #a5b4fc;
      font-family: monospace; display: flex; align-items: center; gap: 8px;
    }
    .vb-share-url i { color: #34d399; }
    .vb-share-card {
      background: var(--bg2); border: 1px solid var(--border); border-radius: 8px; padding: 12px; display: flex; gap: 10px;
    }
    .vb-share-thumb {
      width: 60px; height: 40px; border-radius: 4px; flex-shrink: 0; background: linear-gradient(135deg, #4c1d95, #7c3aed);
    }
    .vb-share-info .title { font-size: 12px; font-weight: 600; margin-bottom: 3px; }
    .vb-share-info .meta { font-size: 11px; color: var(--text3); }
    .vb-share-btns { display: flex; gap: 8px; margin-top: 4px; }
    .vb-share-btn {
      flex: 1; background: var(--bg2); border: 1px solid var(--border); border-radius: 7px;
      padding: 8px; text-align: center; font-size: 11px; color: var(--text2);
    }
    .vb-share-btn-icon { display: block; font-size: 18px; margin-bottom: 4px; }

    /* 비주얼 6: 템플릿 */
    .vb-tpl-filters { display: flex; gap: 6px; margin-bottom: 10px; flex-wrap: wrap; }
    .vb-tpl-filter {
      padding: 3px 10px; border-radius: 999px; font-size: 10px; color: var(--text3); border: 1px solid var(--border);
    }
    .vb-tpl-filter.active {
      font-weight: 600; background: rgba(99,102,241,.2); color: #a5b4fc; border-color: rgba(99,102,241,.3);
    }
    .vb-templates { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; width: 100%; }
    @media (max-width: 480px) {
      .vb-templates { grid-template-columns: repeat(2, 1fr); }
    }
    .vb-tpl {
      aspect-ratio: 16/9; border-radius: 6px; overflow: hidden; border: 1px solid var(--border);
      cursor: pointer; transition: all .2s; position: relative;
    }
    .vb-tpl:hover { border-color: rgba(99,102,241,.5); transform: scale(1.03); }
    .vb-tpl-label {
      position: absolute; bottom: 4px; left: 0; right: 0; text-align: center; font-size: 9px;
      color: rgba(255,255,255,.7); background: rgba(0,0,0,.4); padding: 2px;
    }

    /* ── 특징 카드 그리드 (소형) ── */
    .feature-mini-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
    @media (max-width: 900px) { .feature-mini-grid { grid-template-columns: repeat(2, 1fr); } }
    @media (max-width: 540px) { .feature-mini-grid { grid-template-columns: 1fr; } }

    .feature-mini {
      background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
      padding: 24px; transition: all .3s;
    }
    .feature-mini:hover { border-color: rgba(99,102,241,.3); transform: translateY(-3px); }
    .feature-mini-icon {
      width: 42px; height: 42px; border-radius: 10px; display: flex; align-items: center; justify-content: center;
      font-size: 20px; margin-bottom: 16px;
    }
    .feature-mini h3 { font-size: 15px; font-weight: 700; margin-bottom: 8px; }
    .feature-mini p { font-size: 13px; color: var(--text2); line-height: 1.75; }