/* 상승기획 AI마케팅 페이지 (스코프: #ssam) — 원본 시안: gemini-code-1786613779947.html */
/* 폰트는 사이트 공용 Pretendard 사용 (@import 제거) */

#ssam, #ssam * {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  font-family: 'Pretendard', -apple-system, BlinkMacSystemFont, system-ui, Roboto, sans-serif;
  word-break: keep-all;
}

#ssam {
  background-color: #050b14;
  color: #ffffff;
  display: flex;
  justify-content: center;
  line-height: 1.5;
  /* 테마 컨테이너 탈출(full-bleed) — 채용공고 ssr.css와 같은 방식.
     100vw에는 스크롤바 두께가 포함되므로 JS(ai.js)가 --ssam-sbw를 실측해 보정 */
  width: calc(100vw - var(--ssam-sbw, 0px));
  max-width: calc(100vw - var(--ssam-sbw, 0px));
  margin-left: calc(50% - (100vw - var(--ssam-sbw, 0px)) / 2);
  margin-right: calc(50% - (100vw - var(--ssam-sbw, 0px)) / 2);
}

/* 시안은 800px 고정이었으나 운영 사이트의 다른 페이지처럼 전체 폭 사용 (08-20 사용자 결정) */
#ssam .page-wrapper {
  width: 100%;
  background-color: #030712;
  overflow: hidden;
}

/* 스크롤 애니메이션 — JS가 살아있을 때(#ssam.js-anim)만 숨김 상태 적용
   (지연 스크립트 플러그인이 실행 전이거나 JS가 죽어도 콘텐츠는 보이도록) */
#ssam.js-anim .fade-item {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1),
              transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
  will-change: opacity, transform;
}

#ssam.js-anim .zoom-item {
  opacity: 0;
  transform: scale(0.85);
  transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1),
              transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
  will-change: opacity, transform;
}

#ssam.js-anim .fade-item.is-visible {
  opacity: 1;
  transform: translateY(0);
}

#ssam.js-anim .zoom-item.is-visible {
  opacity: 1;
  transform: scale(1);
}

/* 공통 텍스트 및 태그 스타일 */
#ssam .text-blue { color: #2563eb; }
#ssam .text-light-blue { color: #60a5fa; }
#ssam .text-gray { color: #9ca3af; }
#ssam .badge-blue {
  display: inline-block;
  background-color: #2563eb;
  color: #ffffff;
  font-size: 0.8rem;
  font-weight: 700;
  padding: 4px 12px;
  border-radius: 20px;
  margin-bottom: 12px;
}

/* 1. 히어로 비디오 섹션 */
#ssam .section-hero-video {
  background: radial-gradient(circle at 50% 30%, #081d38 0%, #030b18 60%, #01050e 100%);
  /* 테마 헤더가 투명 오버레이로 콘텐츠 위에 겹치므로 헤더 높이만큼 상단 여백 확보 */
  padding: 150px 20px 40px;
  text-align: center;
}
#ssam .hero-video-container {
  width: 100%;
  max-width: 960px;
  margin: 0 auto 30px;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 12px 35px rgba(0, 0, 0, 0.6);
  border: 1px solid rgba(80, 140, 220, 0.2);
  background-color: #030a16;
  aspect-ratio: 16 / 9;
}
#ssam .hero-video-container video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
#ssam .scroll-down {
  font-size: 0.8rem;
  letter-spacing: 2px;
  color: #6b7280;
  animation: ssam-bounce 2s infinite;
}

@keyframes ssam-bounce {
  0%, 20%, 50%, 80%, 100% { transform: translateY(0); }
  40% { transform: translateY(-8px); }
  60% { transform: translateY(-4px); }
}

/* 2. 왜 AI 마케팅이 필요할까요? 섹션 */
#ssam .section-why {
  background-color: #ffffff;
  color: #111827;
  padding: 80px 20px;
  text-align: center;
}
#ssam .section-why .title {
  font-size: 2rem;
  font-weight: 800;
  margin-bottom: 16px;
}
#ssam .section-why .subtitle {
  font-size: 1.1rem;
  color: #4b5563;
  margin-bottom: 40px;
}
#ssam .compare-container {
  display: flex;
  gap: 24px;
  justify-content: center;
  max-width: 860px;
  margin: 0 auto;
}
#ssam .compare-box {
  flex: 1;
  border: 1px solid #e5e7eb;
  border-radius: 16px;
  padding: 24px 16px;
  background-color: #f9fafb;
  box-shadow: 0 4px 12px rgba(0,0,0,0.03);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  display: flex;
  flex-direction: column;
  align-items: center;
}
#ssam .compare-box:hover {
  transform: translateY(-5px);
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.08);
}
#ssam .compare-box.active {
  border: 2px solid #2563eb;
  background-color: #ffffff;
  box-shadow: 0 10px 25px rgba(37, 99, 235, 0.1);
}
#ssam .compare-tag {
  font-size: 0.8rem;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 4px;
  display: inline-block;
  margin-bottom: 12px;
}
#ssam .tag-past { background-color: #e5e7eb; color: #4b5563; }
#ssam .tag-now { background-color: #2563eb; color: #ffffff; }

#ssam .mockup-img {
  width: 100%;
  height: 240px;
  background-color: #ffffff;
  border-radius: 12px;
  margin-top: 12px;
  overflow: hidden;
  border: 1px solid #f0f0f0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 10px;
}
#ssam .mockup-img img {
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
  object-fit: contain;
  display: block;
}

/* 3. 상승기획 솔루션 섹션 */
#ssam .section-solution {
  background: radial-gradient(circle at 50% 100%, #084bbb 0%, #02256c 35%, #00123d 65%, #000921 100%);
  padding: 80px 40px;
  text-align: center;
}
#ssam .section-solution h2 {
  font-size: 2rem;
  font-weight: 700;
  line-height: 1.4;
  margin-bottom: 30px;
  color: #ffffff;
}
#ssam .divider {
  width: 60px;
  height: 1px;
  background-color: #3b82f6;
  margin: 0 auto 30px;
}
#ssam .section-solution p {
  color: #d1d5db;
  font-size: 1.05rem;
  line-height: 1.7;
  max-width: 600px;
  margin: 0 auto 50px;
}
#ssam .logo-bar {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 32px;
  padding-top: 30px;
  border-top: 1px solid rgba(255,255,255,0.1);
  flex-wrap: wrap;
  max-width: 760px;
  margin: 0 auto;
}
#ssam .logo-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  transition: transform 0.3s ease;
}
#ssam .logo-item:hover {
  transform: translateY(-6px) scale(1.08);
}
#ssam .logo-item-box {
  width: 54px;
  height: 54px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.95);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 10px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}
#ssam .logo-item-box img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}
#ssam .logo-item span {
  font-size: 0.85rem;
  color: #e5e7eb;
  font-weight: 600;
}

/* 4. AI CASE STUDY 섹션 */
#ssam .section-cases {
  background-color: #ffffff;
  color: #111827;
  padding: 80px 30px;
}
#ssam .section-cases .header {
  text-align: center;
  margin-bottom: 60px;
}
#ssam .section-cases .subtitle {
  font-size: 0.9rem;
  font-weight: 800;
  color: #2563eb;
  letter-spacing: 1px;
  margin-bottom: 8px;
}
#ssam .section-cases .title {
  font-size: 2rem;
  font-weight: 800;
  margin-bottom: 12px;
}
#ssam .section-cases .desc {
  color: #6b7280;
  font-size: 0.95rem;
}

#ssam .case-row {
  display: flex;
  align-items: center;
  gap: 40px;
  max-width: 1080px;
  margin: 0 auto 70px;
}
#ssam .case-row.reverse {
  flex-direction: row-reverse;
}
#ssam .case-text {
  flex: 1;
}
#ssam .case-text h3 {
  font-size: 1.4rem;
  font-weight: 700;
  margin-bottom: 12px;
  line-height: 1.3;
  color: #111827;
}
#ssam .case-text p {
  color: #6b7280;
  font-size: 0.95rem;
  line-height: 1.5;
}
/* 사례 영상: 콘텐츠 컬럼만 크롭한 mp4를 비율 그대로 노출
   (시안의 16:9 cover는 1600px 녹화 전체를 욱여넣어 글자가 안 읽혀 변경) */
#ssam .case-media {
  flex: 1.5;
  min-width: 0;
  position: relative;
  cursor: zoom-in;
  background-color: #000000;
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 10px 25px rgba(0,0,0,0.18);
  border: 1px solid #1f2937;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
#ssam .case-media:hover {
  transform: scale(1.02);
  box-shadow: 0 14px 30px rgba(0,0,0,0.25);
}
/* 클릭 확대 안내 배지 */
#ssam .case-media::after {
  content: '🔍 클릭해서 크게 보기';
  position: absolute;
  right: 10px;
  bottom: 10px;
  background: rgba(0, 0, 0, 0.65);
  color: #e5e7eb;
  font-size: 0.75rem;
  font-weight: 600;
  padding: 5px 10px;
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  pointer-events: none;
}
#ssam .case-media img,
#ssam .case-media video {
  width: 100%;
  height: auto;
  display: block;
}

/* 5. 원형 강조 메시지 */
#ssam .section-circle-quote {
  background-color: #000000;
  padding: 80px 20px;
  text-align: center;
}
#ssam .quote-circle {
  width: 320px;
  height: 320px;
  border-radius: 50%;
  border: 1px solid #1e293b;
  background: radial-gradient(circle, rgba(30,58,138,0.4) 0%, rgba(0,0,0,1) 75%);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 20px;
  box-shadow: 0 0 30px rgba(37, 99, 235, 0.2);
}
#ssam .quote-circle p {
  font-size: 1.6rem;
  font-weight: 800;
  line-height: 1.45;
  color: #ffffff;
  letter-spacing: -0.5px;
}

/* 6. 성과 그래프 섹션 */
#ssam .section-results {
  background: linear-gradient(180deg, #030712 0%, #09152e 100%);
  padding: 80px 30px;
}
#ssam .section-results .title-area {
  max-width: 960px;
  margin: 0 auto 40px;
}
#ssam .section-results h2 {
  font-size: 2rem;
  font-weight: 700;
  line-height: 1.3;
  margin-bottom: 12px;
  color: #ffffff;
}
#ssam .section-results .title-area p {
  color: #9ca3af;
  font-size: 0.95rem;
}
#ssam .result-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background-color: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 16px;
  padding: 20px 24px;
  max-width: 960px;
  margin: 0 auto 18px;
  transition: transform 0.3s ease, border-color 0.3s ease;
  gap: 15px;
}
#ssam .result-card:hover {
  transform: translateY(-4px);
  border-color: rgba(59, 130, 246, 0.4);
}
#ssam .result-info {
  flex: 1;
}
#ssam .result-info .hospital {
  font-size: 0.85rem;
  color: #9ca3af;
  margin-bottom: 4px;
}
#ssam .result-info .name {
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 8px;
}
#ssam .result-info .percent {
  font-size: 2.2rem;
  font-weight: 800;
  color: #3b82f6;
}
#ssam .result-info .percent span {
  font-size: 1rem;
  font-weight: 600;
}

#ssam .result-graph {
  width: 62%;
  height: 130px;
  background-color: #ffffff;
  border-radius: 12px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 4px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}
#ssam .result-graph img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}

/* 7. 하단 클로징 & CTA 섹션 */
#ssam .section-cta {
  background-color: #ffffff;
  color: #111827;
  padding: 80px 30px;
  text-align: center;
}
#ssam .section-cta .sub-text {
  color: #6b7280;
  font-size: 1rem;
  margin-bottom: 12px;
}
#ssam .section-cta h2 {
  font-size: 1.8rem;
  font-weight: 800;
  line-height: 1.4;
  margin-bottom: 50px;
  color: #111827;
}

#ssam .cta-card {
  position: relative;
  max-width: 1080px;
  margin: 0 auto;
  border-radius: 24px;
  padding: 50px 40px;
  text-align: left;
  overflow: hidden;
  box-shadow: 0 20px 40px rgba(0,0,0,0.3);
  background: linear-gradient(90deg, rgba(5, 11, 20, 0.95) 0%, rgba(5, 11, 20, 0.75) 55%, rgba(5, 11, 20, 0.1) 100%),
              url('/wp-content/uploads/sangseung-ai-marketing/cta-bg.webp') no-repeat center right / cover;
  min-height: 280px;
  display: flex;
  align-items: center;
}
#ssam .cta-card-content {
  z-index: 2;
  max-width: 420px;
}
#ssam .cta-card-content .tag {
  font-size: 0.95rem;
  color: #9ca3af;
  margin-bottom: 12px;
  font-weight: 500;
}
#ssam .cta-card-content h3 {
  font-size: 2rem;
  font-weight: 800;
  line-height: 1.3;
  margin-bottom: 30px;
  color: #ffffff;
}

#ssam .btn-contact {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: linear-gradient(#080c14, #080c14) padding-box,
              linear-gradient(135deg, #3b82f6 0%, #06b6d4 25%, #10b981 50%, #f59e0b 75%, #ec4899 100%) border-box;
  color: #ffffff;
  text-decoration: none;
  padding: 14px 34px;
  border-radius: 9999px;
  border: 1.5px solid transparent;
  font-weight: 600;
  font-size: 1.05rem;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  animation: ssam-pulseGlow 3s infinite alternate;
}

@keyframes ssam-pulseGlow {
  0% { box-shadow: 0 0 5px rgba(59, 130, 246, 0.2); }
  100% { box-shadow: 0 0 22px rgba(59, 130, 246, 0.6); }
}

#ssam .btn-contact:hover {
  transform: translateY(-3px) scale(1.02);
  box-shadow: 0 0 25px rgba(59, 130, 246, 0.8);
  color: #ffffff;
}

@media (max-width: 640px) {
  #ssam .section-hero-video {
    padding: 100px 16px 32px;
  }
  #ssam .compare-container {
    flex-direction: column;
  }
  #ssam .case-row, #ssam .case-row.reverse {
    flex-direction: column;
  }
  #ssam .case-media {
    width: 100%;
  }
  #ssam .result-card {
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
  }
  #ssam .result-graph {
    width: 100%;
    height: 140px;
  }
  #ssam .cta-card {
    padding: 40px 24px;
    background: linear-gradient(180deg, rgba(5, 11, 20, 0.95) 0%, rgba(5, 11, 20, 0.6) 100%),
                url('/wp-content/uploads/sangseung-ai-marketing/cta-bg.webp') no-repeat bottom right / cover;
  }
  #ssam .cta-card-content h3 {
    font-size: 1.6rem;
  }
  #ssam .quote-circle {
    width: 280px;
    height: 280px;
  }
  #ssam .quote-circle p {
    font-size: 1.35rem;
  }
}
