/* =============================================================
   OSBC Main Design — Main Page Sections
   ============================================================= */

/* =============================================================
   Hero — design2 슬라이더 시각, 풀와이드, 콘텐츠 1280
   - 외부 wrapper: viewport 100% (border-radius 없음)
   - 내부 콘텐츠 정렬: 1280 컨테이너
   ============================================================= */
.hero {
  position: relative;
  width: 100%;
  background: var(--c-bg-dark);
}
.hero-stage {
  position: relative;
  width: 100%;
  height: 720px;
  overflow: hidden;
}

/* 슬라이드 (절대 위치 스택) */
.hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.7s ease, visibility 0.7s ease;
  pointer-events: none;
}
.hero-slide.is-active {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  z-index: 2;
}

/* 슬라이드 배경(시각 placeholder) — 풀와이드 */
.hero-visual {
  position: absolute;
  inset: 0;
  z-index: 1;
}
.hero-visual::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image: radial-gradient(rgba(255, 255, 255, 0.04) 1px, transparent 1px);
  background-size: 28px 28px;
  opacity: 0.5;
  pointer-events: none;
}
.hero-visual-1 { background: var(--c-bg-dark); }
.hero-visual-2 { background: #0F1A2E; }
.hero-visual-3 { background: #121829; }
.hero-visual-4 { background: #0B1124; }

.hero-visual-label {
  position: absolute;
  right: 8%;
  top: 50%;
  transform: translateY(-50%);
  z-index: 2;
  padding: 12px 18px;
  border: 1px dashed rgba(255, 255, 255, 0.25);
  border-radius: var(--radius-sm);
  font-size: 12px;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.5);
  letter-spacing: 0.04em;
  text-align: center;
  line-height: 1.6;
}

/* 슬라이드 안 콘텐츠 — 1280 컨테이너에 정렬 */
.hero-inner {
  position: relative;
  z-index: 3;
  width: 100%;
  max-width: var(--container-w);
  height: 100%;
  margin: 0 auto;
  padding: var(--header-h) var(--pad-x) 100px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.hero-text {
  max-width: 720px;
  display: flex;
  flex-direction: column;
  gap: 32px;
}
.hero-title {
  font-size: 56px;
  font-weight: 700;
  line-height: 1.25;
  letter-spacing: -0.02em;
  color: #fff;
}
.hero-desc {
  font-size: 18px;
  font-weight: 400;
  line-height: 1.65;
  color: rgba(255, 255, 255, 0.85);
}
.hero-cta-group {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 8px;
}
.hero-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-width: 180px;
  height: 56px;
  padding: 0 28px;
  border: 1.5px solid #fff;
  border-radius: var(--radius-full);
  font-size: 16px;
  font-weight: 500;
  color: #fff;
  background: transparent;
  transition: background 0.3s ease, color 0.3s ease, border-color 0.3s ease;
}
/* 진한 배경 위 — 기본 outline(흰 테두리·흰 글씨), 호버 시 흰 fill + 남색 글씨 */
.hero-btn--primary:hover,
.hero-btn--outline:hover {
  background: #fff;
  color: var(--c-primary);
}

/* 슬라이드 진입 애니메이션 */
.hero-slide.is-active .hero-title,
.hero-slide.is-active .hero-desc,
.hero-slide.is-active .hero-cta-group {
  animation: heroTextIn 0.9s ease both;
}
.hero-slide.is-active .hero-desc { animation-delay: 0.1s; }
.hero-slide.is-active .hero-cta-group { animation-delay: 0.2s; }

@keyframes heroTextIn {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* =============================================================
   Hero Pagination — 1280 컨테이너 기준 좌측 하단
   ============================================================= */
.hero-pagination {
  position: absolute;
  left: 50%;
  bottom: 48px;
  transform: translateX(-50%);
  z-index: 5;
  width: 100%;
  max-width: var(--container-w);
  padding: 0 var(--pad-x);
  display: flex;
  align-items: center;
  gap: 8px;
}
.hero-bullet {
  position: relative;
  width: 36px;
  height: 3px;
  border-radius: 3px;
  background: rgba(255, 255, 255, 0.25);
  cursor: pointer;
  transition: width 0.3s ease, background 0.3s ease;
  overflow: hidden;
}
.hero-bullet::after {
  content: "";
  position: absolute;
  inset: 0;
  background: #fff;
  transform: scaleX(0);
  transform-origin: left;
}
.hero-bullet.is-active {
  width: 72px;
}
.hero-bullet.is-active::after {
  animation: heroBulletProgress 5s linear forwards;
}
.hero.is-paused .hero-bullet.is-active::after {
  animation-play-state: paused;
}
@keyframes heroBulletProgress {
  from { transform: scaleX(0); }
  to   { transform: scaleX(1); }
}
.hero-count {
  margin-left: 16px;
  font-size: 15px;
  font-weight: 600;
  color: #fff;
  letter-spacing: 0.05em;
}
.hero-count strong { font-weight: 700; color: #fff; }
.hero-count em {
  font-style: normal;
  color: rgba(255, 255, 255, 0.5);
  margin-left: 4px;
}
.hero-toggle {
  margin-left: 16px;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.3);
  background: rgba(255, 255, 255, 0.05);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background 0.2s ease, border-color 0.2s ease;
}
.hero-toggle:hover {
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.5);
}
.hero-toggle-icon {
  position: relative;
  width: 8px;
  height: 10px;
}
.hero-toggle[data-state="play"] .hero-toggle-icon::before,
.hero-toggle[data-state="play"] .hero-toggle-icon::after {
  content: "";
  position: absolute;
  top: 0;
  width: 2px;
  height: 10px;
  background: #fff;
}
.hero-toggle[data-state="play"] .hero-toggle-icon::before { left: 0; }
.hero-toggle[data-state="play"] .hero-toggle-icon::after  { right: 0; }
.hero-toggle[data-state="pause"] .hero-toggle-icon::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 0;
  height: 0;
  border-left: 8px solid #fff;
  border-top: 5px solid transparent;
  border-bottom: 5px solid transparent;
}

/* =============================================================
   Common Section Head — eyebrow + title + lead (모든 섹션 공통)
   ============================================================= */
.section-head {
  text-align: center;
  margin-bottom: 80px;
}
.section-eyebrow {
  display: inline-block;
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 0.14em;
  color: var(--c-primary);
  margin-bottom: 20px;
}
.section-title {
  font-size: 40px;
  font-weight: 700;
  line-height: 1.3;
  letter-spacing: -0.02em;
  color: var(--c-text);
  margin-bottom: 20px;
}
.section-lead {
  font-size: 18px;
  font-weight: 400;
  line-height: 1.65;
  color: var(--c-text-sub);
  max-width: 720px;
  margin: 0 auto;
}

/* =============================================================
   Section 2. Stats — 수치/지표 6종
   - 옅은 그레이 배경, 내부 십자형 구분선, 남색 숫자, 카운트업
   ============================================================= */
.stats {
  padding: 120px 0;
  background: #f8f8f8;
}

/* 내부 십자형 구분선만 (외곽 테두리 없음) */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
}
.stat {
  padding: 48px 24px;
  border-right: 1px solid #e0e0e0;
  border-bottom: 1px solid #e0e0e0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  cursor: default;
  /* 진입 stagger reveal */
  opacity: 0;
  transform: translateY(20px);
  transition:
    opacity 0.6s ease,
    transform 0.6s ease,
    background-color 0.35s ease,
    border-color 0.35s ease;
}
.stat.is-revealed {
  opacity: 1;
  transform: translateY(0);
}
.stat:nth-child(3n) { border-right: none; }
.stat:nth-last-child(-n+3) { border-bottom: none; }

/* Active 강조 (자동순환 또는 호버) — 남색 fill + 흰 글씨 */
.stat.is-active {
  background: var(--c-primary);
  border-right-color: transparent;
  border-bottom-color: transparent;
}
.stat.is-active .stat-label,
.stat.is-active .stat-num,
.stat.is-active .stat-unit {
  color: #fff;
  transition: color 0.35s ease;
}

.stat-label {
  display: block;
  font-size: 20px;
  font-weight: 700;
  color: var(--c-text-sub);
  letter-spacing: -0.01em;
  margin-bottom: 20px;
  transition: color 0.35s ease;
}
.stat-value {
  display: inline-flex;
  align-items: baseline;
  gap: 4px;
  line-height: 1;
}
.stat-num {
  font-size: 60px;
  font-weight: 700;
  line-height: 1;
  letter-spacing: -0.02em;
  color: var(--c-primary);
  font-variant-numeric: tabular-nums;
  transition: color 0.35s ease;
}
.stat-unit {
  font-size: 18px;
  font-weight: 500;
  color: var(--c-text-sub);
  letter-spacing: -0.01em;
  transition: color 0.35s ease;
}

/* =============================================================
   Section 3. Products — 어두운 카드 6장 (design2 기반)
   ============================================================= */
.products {
  padding: 120px 0;
  background: #fff;
}
.products-list {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.product-item {
  position: relative;
  height: 480px;
}
.product-cont {
  position: relative;
  display: block;
  height: 100%;
  overflow: hidden;
  background: var(--c-bg-dark);
  border-radius: var(--radius-md);
  transition: transform 0.4s ease;
}
.product-cont:hover { transform: translateY(-4px); }

.product-bg {
  position: absolute;
  inset: 0;
  z-index: 1;
  background: var(--c-bg-dark);
}
.product-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(10, 14, 26, 0.2) 0%, rgba(10, 14, 26, 0.85) 100%);
}
/* 단색 6톤 (blue gradient 남발 금지 — design2 메모) */
.product-bg-1 { background: #14192A; }
.product-bg-2 { background: #0A0E1A; }
.product-bg-3 { background: #1E2439; }
.product-bg-4 { background: #111524; }
.product-bg-5 { background: #0F1426; }
.product-bg-6 { background: #181E34; }

/* 호버 시 남색 테두리 */
.product-cont::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 3;
  border: 2px solid transparent;
  border-radius: var(--radius-md);
  pointer-events: none;
  transition: border-color 0.3s ease;
}
.product-cont:hover::after {
  border-color: var(--c-primary);
}

.product-info {
  position: absolute;
  inset: 0;
  z-index: 2;
  padding: 40px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  color: #fff;
}
.product-name {
  font-size: 28px;
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.01em;
  color: #fff;
}
.product-text {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 14px;
}
.product-cat {
  display: inline-block;
  padding: 5px 12px;
  border-radius: var(--radius-full);
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.15);
  font-size: 15px;
  font-weight: 500;
  color: #fff;
  letter-spacing: 0.01em;
}
.product-desc {
  font-size: 16px;
  line-height: 1.6;
  color: #e6e6e6;
  font-weight: 400;
}
.product-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 6px;
  padding: 9px 22px;
  border: 1px solid #fff;
  border-radius: var(--radius-full);
  color: #fff;
  font-size: 15px;
  font-weight: 500;
  background: transparent;
  transition: background 0.2s ease, color 0.2s ease;
}
.product-link:hover {
  background: #fff;
  color: var(--c-primary);
}
.product-link .ico-arrow {
  width: 14px;
  height: 14px;
}

/* =============================================================
   Section 4. Services — 흰 카드 3장 (design2 기반)
   ============================================================= */
.services {
  padding: 120px 0;
  background: #f8f8f8;
}
.services-list {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.service-item {
  background: #fff;
  border-radius: var(--radius-lg);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.service-item:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 40px rgba(20, 25, 42, 0.08);
}
.service-item a {
  display: flex;
  flex-direction: column;
  height: 100%;
  padding: 40px;
}
.service-num {
  display: inline-block;
  font-style: normal;
  font-size: 20px;
  font-weight: 700;
  color: var(--c-primary);
  letter-spacing: 0.04em;
  margin-bottom: 32px;
}
.service-title {
  font-size: 28px;
  font-weight: 700;
  color: var(--c-text);
  letter-spacing: -0.02em;
  margin-bottom: 14px;
  line-height: 1.3;
}
.service-desc {
  font-size: 16px;
  line-height: 1.65;
  color: var(--c-text-sub);
  margin-bottom: 56px;
}
.service-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: auto;
  padding-top: 24px;
  border-top: 1px solid var(--c-border);
  width: 100%;
  font-size: 15px;
  font-weight: 500;
  color: var(--c-text);
  transition: color 0.2s ease, gap 0.2s ease;
}
.service-link .ico-arrow {
  margin-left: auto;
}
.service-item:hover .service-link {
  color: var(--c-primary);
  gap: 10px;
}

/* =============================================================
   Section 5. Clients — 고객사 로고 (와이어프레임 디벨롭)
   - 흰 배경, 6×3 그리드, 내부 십자형 구분선 (stats와 동일 톤)
   - 로고 자산 미확보 → placeholder 셀
   ============================================================= */
.clients {
  padding: 120px 0;
  background: #fff;
}
.clients-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
}
.client-cell {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 110px;
  background: #fff;
  border-right: 1px solid #e0e0e0;
  border-bottom: 1px solid #e0e0e0;
  font-size: 15px;
  font-weight: 500;
  color: #b0b0b0;
  letter-spacing: 0.04em;
  transition: background 0.2s ease, color 0.2s ease;
}
.client-cell:nth-child(6n) { border-right: none; }
.client-cell:nth-last-child(-n+6) { border-bottom: none; }
.client-cell:hover {
  background: #fafafa;
  color: var(--c-text-sub);
}
.clients-more {
  display: flex;
  justify-content: center;
  margin-top: 60px;
}

/* Generic outline button — 흰 배경 위 (재사용용) */
.btn-outline {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 28px;
  border: 1.5px solid var(--c-primary);
  border-radius: var(--radius-full);
  color: var(--c-primary);
  font-size: 15px;
  font-weight: 500;
  background: transparent;
  transition: background 0.2s ease, color 0.2s ease, gap 0.2s ease;
}
.btn-outline:hover {
  background: var(--c-primary);
  color: #fff;
  gap: 12px;
}
.btn-outline .ico-arrow {
  width: 14px;
  height: 14px;
}

/* =============================================================
   Section 6. Insights — 블로그/뉴스/웨비나
   - 흰 배경, 카드 박스 없이 콘텐츠만 (썸네일·제목·요약·날짜)
   ============================================================= */
.insights {
  padding: 120px 0;
  background: #f8f8f8;
}
.insights-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
}
.insight-card a {
  display: flex;
  flex-direction: column;
  height: 100%;
  gap: 24px;
}
.insight-thumb {
  position: relative;
  aspect-ratio: 4 / 3;
  background: var(--c-bg-dark);
  border-radius: var(--radius-md);
  overflow: hidden;
}
.insight-thumb::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image: radial-gradient(rgba(255, 255, 255, 0.04) 1px, transparent 1px);
  background-size: 22px 22px;
  opacity: 0.5;
  pointer-events: none;
}
.insight-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}
.insight-card:hover .insight-thumb img {
  transform: scale(1.04);
}
.insight-thumb-label {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 15px;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.4);
  letter-spacing: 0.06em;
}
.insight-body {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.insight-title {
  font-size: 22px;
  font-weight: 700;
  line-height: 1.4;
  color: var(--c-text);
  letter-spacing: -0.02em;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  transition: color 0.2s ease;
}
.insight-card:hover .insight-title {
  color: var(--c-primary);
}
.insight-summary {
  font-size: 15px;
  font-weight: 400;
  line-height: 1.65;
  color: var(--c-text-sub);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.insight-date {
  font-size: 15px;
  font-weight: 500;
  color: var(--c-text-mute);
  margin-top: 4px;
}
.insights-more {
  display: flex;
  justify-content: center;
  margin-top: 60px;
}

/* =============================================================
   Section 7. CTA — 전환 유도 (그라디언트 배경, 풀와이드)
   - 다크 → OSBC 남색 단톤 그라디언트 + 옅은 도트 패턴
   ============================================================= */
.cta {
  position: relative;
  padding: 100px 0;
  background: #000;
  color: #fff;
  overflow: hidden;
}
.cta::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: radial-gradient(rgba(255, 255, 255, 0.05) 1px, transparent 1px);
  background-size: 28px 28px;
  opacity: 0.6;
  pointer-events: none;
}
.cta-inner {
  position: relative;
  z-index: 1;
  max-width: var(--container-w);
  margin: 0 auto;
  padding: 0 var(--pad-x);
  text-align: center;
}
.cta-title {
  font-size: 40px;
  font-weight: 700;
  line-height: 1.35;
  letter-spacing: -0.02em;
  color: #fff;
  margin-bottom: 20px;
}
.cta-lead {
  font-size: 18px;
  font-weight: 400;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.85);
  margin-bottom: 40px;
}
.cta-actions {
  display: flex;
  justify-content: center;
  gap: 12px;
}
.cta-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-width: 180px;
  height: 56px;
  padding: 0 28px;
  border-radius: var(--radius-full);
  background: transparent;
  color: #fff;
  font-size: 16px;
  font-weight: 600;
  border: 1.5px solid #fff;
  transition: background 0.3s ease, color 0.3s ease;
}
.cta-btn:hover {
  background: #fff;
  color: var(--c-primary);
}
/* 왼쪽 강한 액션 — fill 기본 (cta 버튼이 2개일 때) */
.cta-btn--fill {
  background: #fff;
  color: var(--c-primary);
}
.cta-btn--fill:hover {
  background: rgba(255, 255, 255, 0.88);
  color: var(--c-primary);
}

/* =============================================================
   Section base (이후 섹션 추가 시 사용)
   ============================================================= */
.section {
  padding: 120px 0;
}
.section--alt {
  background: var(--c-bg-alt);
}
.section-placeholder {
  width: 100%;
  max-width: var(--container-w);
  margin: 0 auto;
  padding: 80px var(--pad-x);
  border: 1px dashed var(--c-border);
  border-radius: var(--radius-md);
  text-align: center;
  color: var(--c-text-mute);
  font-size: 15px;
  letter-spacing: 0.02em;
}
