/* ==============================================================
   NEXUS™ 솔루션 페이지 (/solution/dt) 전용 스타일
   - nx-* 클래스로 스코프 분리됨
   - 글로벌 리셋 / body 룰은 layout(global.css)에 위임
   ============================================================== */

:root {
  --primary: #1a4d8c;
  --primary-2: #2272c4;
  --accent: #4dbfff;
  --accent-soft: #eff5fb;
  --ink: #1a1a1a;
  --text: #333;
  --muted: #777;
  --bg: #fff;
  --bg-soft: #f7f8fa;
  --line: #e5e7eb;
  --warn: #ff7849;
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, .04);
  --shadow: 0 8px 24px rgba(0, 0, 0, .06);
  --ease: cubic-bezier(.22, .61, .36, 1);
}

/* ──────────── Section ──────────── */
.nx-section {
  padding: 120px 0;
  background: var(--bg);
}
.nx-section--soft { background: var(--bg-soft); }

.nx-container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ──────────── Section Header (좌측 정렬, 장식 없음) ──────────── */
.nx-head {
  margin-bottom: 56px;
}
.nx-head__title {
  font-size: clamp(32px, 3.5vw, 44px);
  font-weight: 800;
  color: var(--ink);
  margin: 0 0 20px;
  line-height: 1.25;
  letter-spacing: -.025em;
}
.nx-head__title sup {
  font-size: .5em;
  font-weight: 600;
  vertical-align: super;
}
.nx-head__desc {
  font-size: 17px;
  color: var(--text);
  line-height: 1.7;
  margin: 0;
  max-width: 900px;
}

/* ──────────── Card Base ──────────── */
.nx-grid {
  display: grid;
  gap: 24px;
  align-items: stretch;
}
.nx-grid--2 { grid-template-columns: repeat(2, 1fr); }

.nx-card {
  background: var(--bg);
  border-radius: 12px;
  height: 100%;
  transition: transform .35s var(--ease),
              box-shadow .35s var(--ease),
              border-color .35s var(--ease);
}

/* ─── 핵심 가치 (기존 사이트 "핵심 기능" 레이아웃 차용) ─── */
.nx-value-hero {
  width: 100%;
  aspect-ratio: 19 / 6;
  border-radius: 16px;
  overflow: hidden;
  margin-bottom: 64px;
  box-shadow: var(--shadow);
  background: #1a4d8c;
  position: relative;
}
.nx-value-hero img {
  width: 100%; height: 100%;
  object-fit: cover;
  display: block;
}

/* 핵심 기능 / 기대효과 섹션의 hero 이미지 영역 */
.nx-section-hero {
  width: 100%;
  aspect-ratio: 16 / 9;
  border-radius: 16px;
  overflow: hidden;
  margin-bottom: 64px;
  box-shadow: var(--shadow-sm);
  background: var(--bg-soft);
  position: relative;
}
.nx-section-hero img {
  width: 100%; height: 100%;
  object-fit: cover;
  display: block;
}
/* 이미지 src가 비어있을 때 placeholder 표시 */
.nx-section-hero img[src=""],
.nx-section-hero img:not([src]) {
  visibility: hidden;
}
.nx-section-hero:has(img[src=""])::after,
.nx-section-hero:has(img:not([src]))::after {
  content: '이미지 영역';
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  color: #b8c0cc;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: .15em;
  background: repeating-linear-gradient(
    45deg,
    var(--bg-soft) 0,
    var(--bg-soft) 12px,
    #eef2f7 12px,
    #eef2f7 24px
  );
  border: 1px dashed #cdd5e0;
  border-radius: 16px;
}


/* 4-column 카드 그리드 - 배경/보더 없음, 가운데 정렬 */
.nx-grid--4 { grid-template-columns: repeat(4, 1fr); }

.nx-value {
  padding: 0 16px;
  background: transparent;
  border: none;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}
.nx-value:hover {
  transform: translateY(-4px);
  border: none;
  box-shadow: none;
}
.nx-value__icon {
  width: 80px;
  height: 80px;
  display: grid;
  place-items: center;
  margin-bottom: 22px;
  background: transparent;
}
.nx-value__icon svg { width: 64px; height: 64px; }
.nx-value__title {
  font-size: 18px;
  font-weight: 700;
  color: var(--ink);
  margin: 0 0 12px;
  line-height: 1.4;
  letter-spacing: -.015em;
}
.nx-value__desc {
  font-size: 14.5px;
  color: var(--muted);
  margin: 0;
  line-height: 1.7;
}

/* ─── PILLAR ─── */
.nx-pillar {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}
.nx-pillar + .nx-pillar { margin-top: 96px; }
.nx-pillar--reverse .nx-pillar__visual { order: 2; }

.nx-pillar__visual {
  position: relative;
  border-radius: 16px;
  overflow: hidden;
  aspect-ratio: 5 / 4;
  background: linear-gradient(135deg, #d6e7f5, #f5f9ff);
  box-shadow: var(--shadow);
}
.nx-pillar__visual img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .8s var(--ease);
}
.nx-pillar:hover .nx-pillar__visual img { transform: scale(1.04); }

.nx-pillar__num {
  display: block;
  font-size: 14px;
  font-weight: 700;
  color: var(--primary-2);
  letter-spacing: .15em;
  margin: 0 0 16px;
}
.nx-pillar__title {
  font-size: clamp(24px, 2.4vw, 32px);
  font-weight: 800;
  color: var(--ink);
  margin: 0 0 24px;
  line-height: 1.3;
  letter-spacing: -.02em;
}
.nx-pillar__paragraphs p {
  font-size: 16px;
  color: var(--text);
  line-height: 1.8;
  margin: 0 0 14px;
}
.nx-pillar__paragraphs p:last-child { margin-bottom: 0; }

.nx-keypoint {
  margin-top: 32px;
  padding: 24px 28px;
  background: var(--bg-soft);
  border-left: 3px solid var(--primary-2);
  border-radius: 0 8px 8px 0;
}
.nx-keypoint--alert { border-left-color: var(--warn); }
.nx-keypoint__label {
  display: block;
  font-size: 14px;
  font-weight: 700;
  color: var(--ink);
  margin-bottom: 12px;
  letter-spacing: .02em;
}
.nx-keypoint__list li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 15px;
  color: var(--text);
  font-weight: 500;
  padding: 4px 0;
  line-height: 1.6;
}
.nx-keypoint__list li::before {
  content: '·';
  color: var(--primary-2);
  font-weight: 800;
  font-size: 20px;
  line-height: 1;
  flex-shrink: 0;
  margin-top: 2px;
}
.nx-keypoint--alert .nx-keypoint__list li::before { color: var(--warn); }

/* ─── 핵심 기능 ─── */
.nx-feature {
  padding: 40px;
  background: var(--bg);
  border: 1px solid var(--line);
  display: flex;
  flex-direction: column;
}
.nx-feature:hover {
  border-color: var(--primary-2);
  box-shadow: var(--shadow);
  transform: translateY(-4px);
}
.nx-feature__num {
  align-self: flex-start;
  font-size: 13px;
  font-weight: 700;
  color: var(--primary-2);
  letter-spacing: .15em;
  margin-bottom: 16px;
}
.nx-feature__title {
  font-size: 20px;
  font-weight: 800;
  color: var(--ink);
  margin: 0 0 14px;
  line-height: 1.4;
  letter-spacing: -.015em;
}
.nx-feature__desc {
  font-size: 15px;
  color: var(--muted);
  margin: 0;
  line-height: 1.75;
}

/* ─── 기대효과 ─── */
.nx-effect {
  padding: 32px 36px;
  background: var(--bg);
  border: 1px solid var(--line);
  display: flex;
  align-items: center;
  gap: 24px;
}
.nx-effect:hover {
  border-color: var(--primary-2);
  box-shadow: var(--shadow);
  transform: translateY(-4px);
}
.nx-effect__icon {
  flex-shrink: 0;
  width: 52px;
  height: 52px;
  border-radius: 10px;
  background: var(--accent-soft);
  display: grid;
  place-items: center;
  color: var(--primary);
}
.nx-effect__icon svg { width: 26px; height: 26px; }
.nx-effect__body { flex: 1; min-width: 0; }
.nx-effect__title {
  font-size: 17px;
  font-weight: 700;
  color: var(--ink);
  margin: 0 0 8px;
  line-height: 1.4;
  letter-spacing: -.015em;
}
.nx-effect__desc {
  font-size: 14.5px;
  color: var(--muted);
  margin: 0;
  line-height: 1.7;
}

/* ──────────── PREVIEW ONLY ──────────── */
/* pillar visual: 실제 이미지 표시 */
.nx-pillar__visual { background: #f5f8fc; }
.nx-pillar__visual img { display: block; }

/* value-hero 이미지 정상 표시 */
.nx-value-hero img { display: block; }

@media (max-width: 1024px) {
  .nx-section { padding: 80px 0; }
  .nx-head { margin-bottom: 48px; }
  .nx-pillar { gap: 48px; }
  .nx-pillar + .nx-pillar { margin-top: 72px; }
  .nx-value-hero { aspect-ratio: 16 / 7; margin-bottom: 48px; }
}

@media (max-width: 768px) {
  .nx-section { padding: 64px 0; }
  .nx-container { padding: 0 20px; }
  .nx-head { margin-bottom: 40px; }
  .nx-grid { gap: 32px 16px; }
  .nx-grid--2 { grid-template-columns: 1fr; }
  .nx-grid--4 { grid-template-columns: repeat(2, 1fr); }
  .nx-value-hero { aspect-ratio: 16 / 9; margin-bottom: 40px; }
  .nx-feature { padding: 32px 28px; }
  .nx-effect { padding: 28px; flex-direction: column; align-items: flex-start; gap: 18px; }
  .nx-pillar { grid-template-columns: 1fr; gap: 32px; }
  .nx-pillar + .nx-pillar { margin-top: 56px; }
  .nx-pillar--reverse .nx-pillar__visual { order: 0; }
}

@media (prefers-reduced-motion: no-preference) {
  .nx-card, .nx-pillar {
    opacity: 0;
    transform: translateY(20px);
    animation: nxFadeUp .8s var(--ease) forwards;
  }
  .nx-grid > .nx-card:nth-child(1) { animation-delay: .05s; }
  .nx-grid > .nx-card:nth-child(2) { animation-delay: .15s; }
  .nx-grid > .nx-card:nth-child(3) { animation-delay: .25s; }
  .nx-grid > .nx-card:nth-child(4) { animation-delay: .35s; }
  @keyframes nxFadeUp { to { opacity: 1; transform: none; } }
}
