/* AICreator Customer Success Experience (TASK-008) — 독립 CSS, sc- 프리픽스.
   Hero→Brain→Workflow→Publishing 다크 존을 이어받는 마지막 섹션. */

.sc-root {
  --sc-bg-0: #05060a;
  --sc-bg-1: #0a0d16;
  --sc-text: #f8fafc;
  --sc-text-dim: rgba(248, 250, 252, 0.72);
  --sc-text-faint: rgba(248, 250, 252, 0.45);
  --sc-border: rgba(255, 255, 255, 0.12);
  --sc-accent-a: #5b7cff;
  --sc-accent-b: #8b5cf6;
  --sc-accent-c: #22d3ee;
  --sc-bad: #fb7185;
  --sc-good: #34d399;
  --sc-ease: cubic-bezier(0.16, 1, 0.3, 1);

  position: relative;
  background: linear-gradient(180deg, var(--sc-bg-1), var(--sc-bg-0));
  color: var(--sc-text);
  padding: clamp(64px, 9vw, 120px) max(24px, 4vw);
  font-family: 'Noto Sans KR', sans-serif;
}
.sc-root * { box-sizing: border-box; }
.sc-container { max-width: 1320px; margin: 0 auto; }
.sc-block { margin-bottom: clamp(72px, 9vw, 120px); }
.sc-block:last-child { margin-bottom: 0; }

/* ── 1) Success Hero ───────────────────────────────────── */
.sc-hero { text-align: center; max-width: 760px; margin: 0 auto clamp(72px, 9vw, 120px); }
.sc-eyebrow { display: inline-block; font-size: 12.5px; font-weight: 700; letter-spacing: 0.18em; text-transform: uppercase; color: #8b9bff; margin-bottom: 16px; }
.sc-hero-title { font-size: clamp(2rem, 3.8vw, 3.2rem); font-weight: 800; line-height: 1.3; margin: 0 0 20px; word-break: keep-all; }
.sc-hero-sub { font-size: clamp(1rem, 1.3vw, 1.15rem); color: var(--sc-text-dim); line-height: 1.75; margin: 0; word-break: keep-all; }

.sc-h2 { font-size: clamp(1.6rem, 2.6vw, 2.2rem); font-weight: 800; line-height: 1.35; margin: 0 0 36px; text-align: center; word-break: keep-all; }

/* ── 2) Before → After ─────────────────────────────────── */
.sc-compare-grid { display: grid; grid-template-columns: 1fr auto 1fr; gap: clamp(16px, 3vw, 32px); align-items: center; }
.sc-compare-col {
  padding: clamp(24px, 2.6vw, 34px); border-radius: 24px; border: 1px solid var(--sc-border);
  background: linear-gradient(135deg, rgba(255,255,255,0.05), rgba(255,255,255,0.02));
}
.sc-compare-label { display: flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 800; letter-spacing: 0.06em; text-transform: uppercase; margin-bottom: 18px; }
.sc-compare-col[data-kind="before"] .sc-compare-label { color: var(--sc-bad); }
.sc-compare-col[data-kind="after"] .sc-compare-label { color: var(--sc-good); }
.sc-compare-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 12px; }
.sc-compare-list li { display: flex; align-items: center; gap: 10px; font-size: 14px; color: var(--sc-text-dim); }
.sc-compare-icon { flex-shrink: 0; width: 20px; height: 20px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 11px; font-weight: 800; }
.sc-compare-col[data-kind="before"] .sc-compare-icon { background: rgba(251,113,133,0.16); color: var(--sc-bad); }
.sc-compare-col[data-kind="after"] .sc-compare-icon { background: rgba(52,211,153,0.16); color: var(--sc-good); }

.sc-compare-arrow {
  display: flex; align-items: center; justify-content: center;
  width: 44px; height: 44px; border-radius: 50%;
  background: linear-gradient(120deg, var(--sc-accent-a), var(--sc-accent-b));
  color: #05070d; flex-shrink: 0;
}
.sc-compare-arrow svg { width: 20px; height: 20px; }

/* ── 3) Success Metrics ────────────────────────────────── */
.sc-metrics-note { text-align: center; font-size: 11.5px; color: var(--sc-text-faint); margin: -20px 0 32px; }
.sc-metrics-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.sc-metric-card {
  padding: 26px 20px; border-radius: 20px; text-align: center;
  border: 1px solid var(--sc-border); background: linear-gradient(135deg, rgba(255,255,255,0.05), rgba(255,255,255,0.02));
}
.sc-metric-value { font-size: clamp(1.7rem, 2.4vw, 2.3rem); font-weight: 800; font-variant-numeric: tabular-nums; background: linear-gradient(120deg, var(--sc-accent-a), var(--sc-accent-c)); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
.sc-metric-label { font-size: 12.5px; color: var(--sc-text-faint); margin-top: 8px; }

/* ── 4) User Story Cards ───────────────────────────────── */
.sc-stories-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.sc-story-card {
  padding: 26px 22px; border-radius: 20px; border: 1px solid var(--sc-border);
  background: linear-gradient(135deg, rgba(255,255,255,0.05), rgba(255,255,255,0.02));
  display: flex; flex-direction: column; gap: 16px;
}
.sc-story-top { display: flex; align-items: center; justify-content: space-between; }
.sc-story-icon { width: 36px; height: 36px; border-radius: 12px; background: rgba(91,124,255,0.16); color: var(--sc-accent-a); display: flex; align-items: center; justify-content: center; }
.sc-story-icon svg { width: 18px; height: 18px; }
.sc-story-mock-badge { font-size: 10px; font-weight: 700; color: var(--sc-text-faint); background: rgba(255,255,255,0.06); border: 1px solid var(--sc-border); padding: 3px 9px; border-radius: 999px; }
.sc-story-tag { font-size: 12px; font-weight: 700; color: #8b9bff; }
.sc-story-quote { font-size: 15px; font-weight: 700; line-height: 1.55; color: var(--sc-text); margin: 0; word-break: keep-all; }

/* ── 5) Growth Timeline ────────────────────────────────── */
.sc-timeline-row { position: relative; display: flex; justify-content: space-between; --sc-progress: 0; }
.sc-timeline-track { position: absolute; left: 24px; right: 24px; top: 24px; height: 2px; background: rgba(255,255,255,0.1); z-index: 0; }
.sc-timeline-progress {
  position: absolute; left: 24px; top: 24px; height: 2px;
  width: calc(var(--sc-progress, 0) * 1%);
  background: linear-gradient(90deg, var(--sc-accent-a), var(--sc-accent-c)); z-index: 1;
}
.sc-timeline-step { position: relative; z-index: 2; display: flex; flex-direction: column; align-items: center; gap: 10px; flex: 1; }
.sc-timeline-dot {
  width: 48px; height: 48px; border-radius: 50%; background: var(--sc-bg-0); border: 2px solid rgba(255,255,255,0.16);
  display: flex; align-items: center; justify-content: center; color: var(--sc-text-faint);
  transition: border-color 0.4s var(--sc-ease), color 0.4s, box-shadow 0.4s;
}
.sc-timeline-dot svg { width: 20px; height: 20px; }
.sc-timeline-step[data-active="true"] .sc-timeline-dot { border-color: var(--sc-accent-c); color: var(--sc-accent-c); box-shadow: 0 0 24px rgba(34,211,238,0.35); }
.sc-timeline-label { font-size: 12.5px; font-weight: 700; color: var(--sc-text-dim); }

/* ── 6) Final CTA ──────────────────────────────────────── */
.sc-cta-block {
  text-align: center; padding: clamp(40px, 5vw, 64px) clamp(24px, 4vw, 48px); border-radius: 32px;
  background: linear-gradient(135deg, rgba(91,124,255,0.14), rgba(139,92,246,0.08));
  border: 1px solid rgba(139,124,255,0.25);
}
.sc-cta-title { font-size: clamp(1.5rem, 2.6vw, 2.1rem); font-weight: 800; margin: 0 0 26px; word-break: keep-all; }
.sc-cta-actions { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 14px; }
.sc-btn { display: inline-flex; align-items: center; gap: 8px; padding: 15px 30px; border-radius: 999px; font-weight: 700; font-size: 15px; min-height: 44px; text-decoration: none; transition: transform 0.18s var(--sc-ease), box-shadow 0.18s var(--sc-ease), border-color 0.18s, background 0.18s; }
.sc-btn:active { transform: scale(0.97); }
.sc-btn-primary { background: linear-gradient(120deg, var(--sc-accent-a), var(--sc-accent-b)); color: #05070d; box-shadow: 0 8px 30px rgba(91,124,255,0.35); }
.sc-btn-primary:hover { box-shadow: 0 10px 38px rgba(91,124,255,0.5); }
.sc-btn-ghost { background: transparent; border: 1px solid rgba(255,255,255,0.28); color: var(--sc-text); }
.sc-btn-ghost:hover { border-color: rgba(255,255,255,0.5); background: rgba(255,255,255,0.05); }
.sc-btn:focus-visible { outline: 2px solid var(--sc-accent-c); outline-offset: 3px; }

/* ── Scroll-reveal 초기 상태(FOUC 방지, JS가 IntersectionObserver로 in) ── */
.sc-reveal { opacity: 0; }

/* ── Reduced Motion ────────────────────────────────────── */
@media (prefers-reduced-motion: reduce) {
  .sc-root *, .sc-root *::before, .sc-root *::after { transition-duration: 0.1s !important; animation-duration: 0.1s !important; }
  .sc-reveal { opacity: 1 !important; transform: none !important; }
}

/* ── Tablet: 1 Column + Grid ───────────────────────────── */
@media (max-width: 1023px) {
  .sc-compare-grid { grid-template-columns: 1fr; }
  .sc-compare-arrow { margin: 0 auto; transform: rotate(90deg); }
  .sc-metrics-grid { grid-template-columns: repeat(2, 1fr); }
  .sc-stories-grid { grid-template-columns: repeat(2, 1fr); }
}

/* ── Mobile: Card Stack ────────────────────────────────── */
@media (max-width: 640px) {
  .sc-metrics-grid { grid-template-columns: 1fr 1fr; gap: 12px; }
  .sc-stories-grid { grid-template-columns: 1fr; }
  .sc-timeline-row { flex-direction: column; align-items: flex-start; gap: 22px; }
  .sc-timeline-track { left: 24px; top: 0; bottom: 0; right: auto; width: 2px; height: auto; }
  .sc-timeline-progress { left: 24px; top: 0; width: 2px; height: calc(var(--sc-progress, 0) * 1%); }
  .sc-timeline-step { flex-direction: row; align-items: center; }
  .sc-cta-actions { flex-direction: column; align-items: stretch; }
  .sc-btn { justify-content: center; }
}
