/* ============================================================
   RAPHAEL — 기능 소개 공통 CSS (feature.css)
   ============================================================ */

/* ── 리셋 & 변수 ─────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
:root {
  --primary:      #000000;
  --primary-dark: #3366e0;
  --primary-light:#e8f0fe;
  --accent:       #000000;
  --success:      #333333;
  --warning:      #f59e0b;
  --bg:           #f0f4f8;
  --surface:      #ffffff;
  --border:       #e2e8f0;
  --text:         #1e293b;
  --text-2:       #64748b;
  --text-3:       #94a3b8;
  --radius:       16px;
  --shadow-sm:    0 1px 3px rgba(0,0,0,.08);
  --shadow-md:    0 4px 20px rgba(0,0,0,.08);
  --shadow-lg:    0 16px 48px rgba(0,0,0,.12);
}
body { font-family: 'Noto Sans KR', sans-serif; background: var(--surface); color: var(--text); font-size: .95rem; line-height: 1.6; }

/* ── 공통 헤더 ───────────────────────────────────────────── */
.f-header {
  position: sticky; top: 0; z-index: 300;
  background: rgba(255,255,255,.9); backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border);
  height: 64px; display: flex; align-items: center;
}
.f-header-inner {
  max-width: 1200px; margin: 0 auto; padding: 0 28px;
  width: 100%; display: flex; align-items: center; justify-content: space-between;
}
.f-logo { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.f-logo-icon { width: 34px; height: 34px; border-radius: 9px; overflow: hidden; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.f-logo-icon img { width: 100%; height: 100%; object-fit: contain; border-radius: 9px; display: block; }
.f-logo-text { font-size: 1.05rem; font-weight: 800; color: var(--text); }
.f-nav { display: flex; align-items: center; gap: 6px; }
.f-nav-link { padding: 7px 14px; border-radius: 9px; text-decoration: none; font-size: .83rem; font-weight: 600; color: var(--text-2); transition: all .2s; }
.f-nav-link:hover { background: var(--bg); color: var(--text); }
.f-nav-link.active { background: var(--primary-light); color: var(--primary); }
.f-header-actions { display: flex; align-items: center; gap: 10px; }
.f-btn { padding: 8px 18px; border-radius: 10px; font-size: .83rem; font-weight: 700; text-decoration: none; cursor: pointer; border: none; font-family: 'Noto Sans KR', sans-serif; transition: all .2s; }
.f-btn-ghost { background: transparent; color: var(--text-2); border: 1.5px solid var(--border); }
.f-btn-ghost:hover { border-color: var(--primary); color: var(--primary); }
.f-btn-primary { background: var(--primary); color: white; }
.f-btn-primary:hover { background: #222222; transform: translateY(-1px); box-shadow: 0 4px 14px rgba(0,0,0,.25); }

/* ── 브레드크럼 ──────────────────────────────────────────── */
.breadcrumb { background: var(--bg); border-bottom: 1px solid var(--border); padding: 12px 0; }
.breadcrumb-inner { max-width: 1200px; margin: 0 auto; padding: 0 28px; display: flex; align-items: center; gap: 8px; font-size: .8rem; color: var(--text-3); }
.breadcrumb a { color: var(--text-2); text-decoration: none; }
.breadcrumb a:hover { color: var(--primary); }
.breadcrumb i { font-size: .65rem; }

/* ── 히어로 ──────────────────────────────────────────────── */
.fh-hero { padding: 80px 0 0; position: relative; overflow: hidden; }
.fh-hero-bg { position: absolute; inset: 0; z-index: 0; }
.fh-hero-blob { position: absolute; border-radius: 50%; filter: blur(80px); opacity: .18; }
.fh-hero-blob-1 { width: 600px; height: 600px; background: radial-gradient(circle, #a8c8ff, transparent); top: -200px; left: -100px; }
.fh-hero-blob-2 { width: 400px; height: 400px; background: radial-gradient(circle, #c4b5fd, transparent); top: -100px; right: -50px; }
.fh-hero-inner { max-width: 1200px; margin: 0 auto; padding: 0 28px; position: relative; z-index: 1; }
.fh-hero-badge { display: inline-flex; align-items: center; gap: 8px; background: var(--primary-light); color: var(--primary); font-size: .78rem; font-weight: 700; padding: 6px 16px; border-radius: 20px; margin-bottom: 20px; }
.fh-hero-badge-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--primary); animation: pulse 2s infinite; }
@keyframes pulse { 0%,100%{opacity:1} 50%{opacity:.4} }
.fh-hero-title { font-size: 3rem; font-weight: 900; line-height: 1.15; margin-bottom: 20px; }
.fh-hero-title .g-text { background: linear-gradient(135deg, #000000 0%, #444444 100%); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; }
.fh-hero-desc { font-size: 1.1rem; color: var(--text-2); max-width: 560px; line-height: 1.75; margin-bottom: 36px; }
.fh-hero-actions { display: flex; gap: 14px; flex-wrap: wrap; margin-bottom: 56px; }
.fh-cta-primary { display: inline-flex; align-items: center; gap: 9px; background: #000000; color: white; padding: 14px 28px; border-radius: 14px; font-size: .95rem; font-weight: 700; text-decoration: none; transition: all .25s; }
.fh-cta-primary:hover { opacity: .9; transform: translateY(-2px); box-shadow: 0 8px 24px rgba(0,0,0,.3); }
.fh-cta-secondary { display: inline-flex; align-items: center; gap: 9px; background: var(--surface); color: var(--text); padding: 14px 28px; border-radius: 14px; font-size: .95rem; font-weight: 700; text-decoration: none; border: 1.5px solid var(--border); transition: all .25s; }
.fh-cta-secondary:hover { border-color: var(--primary); color: var(--primary); transform: translateY(-2px); }
.fh-hero-stats { display: flex; gap: 40px; padding: 28px 0; border-top: 1px solid var(--border); }
.fh-stat { display: flex; flex-direction: column; }
.fh-stat-val  { font-size: 1.6rem; font-weight: 900; color: var(--text); }
.fh-stat-label { font-size: .78rem; color: var(--text-3); }

/* ── 메인 이미지 히어로 ─────────────────────────────────── */
.fh-hero-img-area { max-width: 1200px; margin: 0 auto; padding: 0 28px; }
.fh-hero-img-wrap { border-radius: 24px; overflow: hidden; box-shadow: var(--shadow-lg); position: relative; margin-top: 20px; }
.fh-hero-img-wrap img { width: 100%; display: block; max-height: 540px; object-fit: cover; }
.fh-hero-img-badge { position: absolute; bottom: 20px; left: 20px; background: rgba(0,0,0,.55); backdrop-filter: blur(12px); color: white; font-size: .8rem; font-weight: 700; padding: 8px 16px; border-radius: 12px; display: flex; align-items: center; gap: 8px; }

/* ── 섹션 공통 ───────────────────────────────────────────── */
.f-section { padding: 80px 0; }
.f-section-alt { background: var(--bg); }
.f-section-dark { background: #0f172a; color: white; }
.f-container { max-width: 1200px; margin: 0 auto; padding: 0 28px; }
.f-section-label { font-size: .78rem; font-weight: 700; text-transform: uppercase; letter-spacing: .1em; color: var(--primary); margin-bottom: 12px; }
.f-section-title { font-size: 2rem; font-weight: 900; line-height: 1.25; margin-bottom: 16px; }
.f-section-desc  { font-size: .95rem; color: var(--text-2); max-width: 600px; line-height: 1.75; }

/* ── 기능 상세 블록 (교차) ──────────────────────────────── */
.f-detail { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; margin-bottom: 80px; }
.f-detail:last-child { margin-bottom: 0; }
.f-detail.reverse { direction: rtl; }
.f-detail.reverse > * { direction: ltr; }
.f-detail-text {}
.f-detail-title { font-size: 1.5rem; font-weight: 800; margin-bottom: 14px; }
.f-detail-desc  { color: var(--text-2); line-height: 1.8; margin-bottom: 24px; font-size: .93rem; }
.f-detail-list  { display: flex; flex-direction: column; gap: 12px; margin-bottom: 28px; }
.f-detail-item  { display: flex; align-items: flex-start; gap: 12px; }
.f-detail-check { width: 22px; height: 22px; border-radius: 50%; background: var(--primary-light); color: var(--primary); display: flex; align-items: center; justify-content: center; font-size: .65rem; flex-shrink: 0; margin-top: 1px; }
.f-detail-item-text { font-size: .88rem; color: var(--text); line-height: 1.5; }
.f-detail-item-text strong { font-weight: 700; color: var(--text); }
.f-detail-img  { border-radius: 20px; overflow: hidden; box-shadow: var(--shadow-lg); position: relative; }
.f-detail-img img { width: 100%; display: block; aspect-ratio: 4/3; object-fit: cover; }

/* ── 특장점 카드 그리드 ─────────────────────────────────── */
.f-cards-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 20px; }
.f-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 28px; transition: all .25s; }
.f-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); border-color: transparent; }
.f-card-icon { width: 52px; height: 52px; border-radius: 14px; display: flex; align-items: center; justify-content: center; font-size: 1.2rem; margin-bottom: 18px; }
.f-card-title { font-size: 1rem; font-weight: 700; margin-bottom: 8px; }
.f-card-desc  { font-size: .85rem; color: var(--text-2); line-height: 1.65; }

/* ── 인터랙티브 탭 ──────────────────────────────────────── */
.f-tabs { display: flex; gap: 8px; margin-bottom: 28px; flex-wrap: wrap; }
.f-tab { padding: 9px 20px; border-radius: 10px; border: 1.5px solid var(--border); background: transparent; font-size: .83rem; font-weight: 600; cursor: pointer; font-family: 'Noto Sans KR', sans-serif; color: var(--text-2); transition: all .2s; }
.f-tab:hover  { border-color: var(--primary); color: var(--primary); }
.f-tab.active { background: var(--primary); border-color: var(--primary); color: white; }
.f-tab-content { display: none; }
.f-tab-content.show { display: block; }

/* ── 비교 슬라이더 ──────────────────────────────────────── */
.f-compare-wrap { border-radius: 20px; overflow: hidden; position: relative; box-shadow: var(--shadow-lg); cursor: col-resize; user-select: none; }
.f-compare-wrap img { width: 100%; display: block; }
.f-compare-after { position: absolute; top: 0; left: 0; height: 100%; overflow: hidden; transition: width 0s; }
.f-compare-after img { position: absolute; top: 0; left: 0; width: 100vw; max-width: 100%; }
.f-compare-handle { position: absolute; top: 0; bottom: 0; width: 3px; background: white; box-shadow: 0 0 0 2px rgba(0,0,0,.25); cursor: col-resize; display: flex; align-items: center; justify-content: center; }
.f-compare-handle-knob { width: 36px; height: 36px; background: white; border-radius: 50%; display: flex; align-items: center; justify-content: center; box-shadow: var(--shadow-md); color: var(--primary); font-size: .85rem; }
.f-compare-label { position: absolute; bottom: 14px; font-size: .75rem; font-weight: 700; padding: 4px 12px; border-radius: 20px; }
.f-compare-label-before { left: 14px; background: rgba(0,0,0,.55); color: white; }
.f-compare-label-after  { right: 14px; background: rgba(0,0,0,.85); color: white; }

/* ── 스텝 타임라인 ──────────────────────────────────────── */
.f-steps { display: flex; flex-direction: column; gap: 0; position: relative; }
.f-steps::before { content:''; position: absolute; left: 23px; top: 0; bottom: 0; width: 2px; background: var(--border); }
.f-step { display: flex; gap: 20px; padding-bottom: 36px; position: relative; }
.f-step:last-child { padding-bottom: 0; }
.f-step-num { width: 48px; height: 48px; border-radius: 50%; background: var(--primary); color: white; font-size: 1rem; font-weight: 800; display: flex; align-items: center; justify-content: center; flex-shrink: 0; position: relative; z-index: 1; box-shadow: 0 0 0 6px white, 0 0 0 7px var(--border); }
.f-step-body { padding-top: 8px; flex: 1; }
.f-step-title { font-size: 1rem; font-weight: 700; margin-bottom: 6px; }
.f-step-desc  { font-size: .85rem; color: var(--text-2); line-height: 1.65; }

/* ── 스펙 테이블 ─────────────────────────────────────────── */
.f-spec-table { width: 100%; border-collapse: collapse; background: var(--surface); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-sm); }
.f-spec-table th { background: var(--bg); padding: 14px 20px; text-align: left; font-size: .82rem; font-weight: 700; color: var(--text-2); border-bottom: 1px solid var(--border); }
.f-spec-table td { padding: 14px 20px; font-size: .88rem; border-bottom: 1px solid var(--border); vertical-align: middle; }
.f-spec-table tr:last-child td { border-bottom: none; }
.f-spec-table tr:hover td { background: var(--bg); }
.f-spec-check { color: var(--success); font-size: .9rem; }
.f-spec-cross { color: var(--text-3); }

/* ── FAQ 아코디언 ────────────────────────────────────────── */
.f-faq { display: flex; flex-direction: column; gap: 10px; }
.f-faq-item { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; }
.f-faq-q { padding: 18px 22px; display: flex; justify-content: space-between; align-items: center; cursor: pointer; font-size: .9rem; font-weight: 600; transition: background .2s; }
.f-faq-q:hover { background: var(--bg); }
.f-faq-q i { color: var(--text-3); transition: transform .3s; font-size: .8rem; }
.f-faq-item.open .f-faq-q i { transform: rotate(180deg); }
.f-faq-a { max-height: 0; overflow: hidden; transition: max-height .35s ease, padding .35s; font-size: .85rem; color: var(--text-2); line-height: 1.75; padding: 0 22px; }
.f-faq-item.open .f-faq-a { max-height: 300px; padding: 0 22px 18px; }

/* ── CTA 배너 ────────────────────────────────────────────── */
.f-cta-section { background: #000000; padding: 80px 0; text-align: center; color: white; }
.f-cta-badge { display: inline-block; background: rgba(255,255,255,.12); color: rgba(255,255,255,.85); font-size: .78rem; font-weight: 700; padding: 6px 16px; border-radius: 20px; border: 1px solid rgba(255,255,255,.2); margin-bottom: 20px; }
.f-cta-title { font-size: 2.2rem; font-weight: 900; margin-bottom: 14px; }
.f-cta-desc  { font-size: .95rem; color: rgba(255,255,255,.65); max-width: 480px; margin: 0 auto 36px; line-height: 1.75; }
.f-cta-btns  { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }
.f-cta-btn-white   { background: white; color: #1e1b4b; padding: 13px 28px; border-radius: 12px; font-size: .92rem; font-weight: 700; border: none; cursor: pointer; text-decoration: none; font-family: 'Noto Sans KR', sans-serif; transition: all .2s; display: inline-flex; align-items: center; gap: 8px; }
.f-cta-btn-white:hover { transform: translateY(-2px); box-shadow: 0 8px 24px rgba(0,0,0,.3); }
.f-cta-btn-outline { background: transparent; color: white; padding: 13px 28px; border-radius: 12px; font-size: .92rem; font-weight: 700; border: 1.5px solid rgba(255,255,255,.35); cursor: pointer; text-decoration: none; font-family: 'Noto Sans KR', sans-serif; transition: all .2s; display: inline-flex; align-items: center; gap: 8px; }
.f-cta-btn-outline:hover { border-color: white; transform: translateY(-2px); }

/* ── 다른 기능 탐색 카드 ────────────────────────────────── */
.f-other-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 16px; }
.f-other-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 22px; text-decoration: none; color: inherit; transition: all .25s; display: flex; align-items: center; gap: 16px; }
.f-other-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); border-color: var(--primary); }
.f-other-icon { width: 44px; height: 44px; border-radius: 12px; display: flex; align-items: center; justify-content: center; font-size: 1rem; flex-shrink: 0; }
.f-other-body {}
.f-other-title { font-size: .88rem; font-weight: 700; margin-bottom: 3px; }
.f-other-desc  { font-size: .75rem; color: var(--text-3); }
.f-other-arrow { margin-left: auto; color: var(--text-3); font-size: .8rem; }

/* ── 푸터 ────────────────────────────────────────────────── */
.f-footer { background: #0f172a; color: rgba(255,255,255,.5); padding: 32px 0; font-size: .82rem; }
.f-footer-inner { max-width: 1200px; margin: 0 auto; padding: 0 28px; display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 12px; }
.f-footer a { color: rgba(255,255,255,.5); text-decoration: none; }
.f-footer a:hover { color: white; }

/* ── 반응형 ──────────────────────────────────────────────── */
@media (max-width: 900px) {
  .fh-hero-title { font-size: 2.2rem; }
  .f-detail { grid-template-columns: 1fr; gap: 36px; }
  .f-detail.reverse { direction: ltr; }
  .f-cards-grid { grid-template-columns: repeat(2,1fr); }
  .f-other-grid { grid-template-columns: repeat(2,1fr); }
  .f-nav { display: none; }
}
@media (max-width: 600px) {
  .fh-hero-title { font-size: 1.7rem; }
  .f-section-title { font-size: 1.5rem; }
  .f-cards-grid { grid-template-columns: 1fr; }
  .f-other-grid { grid-template-columns: 1fr; }
  .f-hero-stats { flex-wrap: wrap; gap: 20px; }
  .f-cta-title { font-size: 1.6rem; }
  .f-header-actions .f-btn-ghost { display: none; }
}
