/* ─── 히어로 ──────────────────────────────────────────────── */
.hero {
  position: relative;
  height: 100vh; min-height: 600px;
  display: flex; align-items: center;
  overflow: hidden;
  background: linear-gradient(135deg, #0a0f24 0%, #0d2463 50%, #0a1a4a 100%);
  transition: background var(--slow);
}
.hero-0 { background: linear-gradient(135deg, #0a0f24 0%, #0d2463 60%, #0051A2 100%); }
.hero-1 { background: linear-gradient(135deg, #1a0f3a 0%, #2d1b69 60%, #0051A2 100%); }
.hero-2 { background: linear-gradient(135deg, #001a3a 0%, #003070 60%, #00A3E0 100%); }

/* 애니메이션 배경 패턴 */
.hero::before {
  content: '';
  position: absolute; inset: 0;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.03'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}

.hero-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(to right, rgba(0,0,0,.5) 0%, rgba(0,0,0,.1) 100%);
}
.hero-content {
  position: relative; z-index: 2;
  max-width: 700px;
}
.hero-badge {
  display: inline-block;
  background: var(--accent);
  color: #fff;
  font-size: 12px; font-weight: 700;
  letter-spacing: 2px;
  padding: 4px 12px; border-radius: 20px;
  margin-bottom: 20px;
  animation: fadeUp .5s ease;
}
.hero-title {
  font-size: clamp(36px, 5.5vw, 64px);
  font-weight: 900;
  color: #fff;
  line-height: 1.15;
  margin-bottom: 20px;
  animation: fadeUp .5s .1s ease both;
}
.hero-sub {
  font-size: clamp(16px, 2vw, 20px);
  color: rgba(255,255,255,.8);
  margin-bottom: 40px;
  line-height: 1.6;
  animation: fadeUp .5s .2s ease both;
}
.hero-actions {
  display: flex; gap: 16px; flex-wrap: wrap;
  animation: fadeUp .5s .3s ease both;
}
.hero-btn-contact {
  border-color: rgba(255,255,255,.5);
  color: #fff !important;
}
.hero-btn-contact:hover {
  background: rgba(255,255,255,.15) !important;
  color: #fff !important;
}

/* 컨트롤 */
.hero-controls {
  position: absolute; bottom: 40px; left: 50%;
  transform: translateX(-50%);
  display: flex; align-items: center; gap: 12px;
  z-index: 3;
}
.hero-arrow {
  width: 36px; height: 36px;
  border-radius: 50%;
  background: rgba(255,255,255,.15);
  color: #fff;
  font-size: 20px;
  display: flex; align-items: center; justify-content: center;
  transition: background var(--fast);
}
.hero-arrow:hover { background: rgba(255,255,255,.3); }
.hero-dots { display: flex; gap: 8px; }
.hero-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: rgba(255,255,255,.4);
  transition: all var(--mid);
}
.hero-dot.active {
  background: #fff; width: 24px; border-radius: 4px;
}
.hero-pause {
  width: 32px; height: 32px;
  border-radius: 50%;
  background: rgba(255,255,255,.1);
  color: rgba(255,255,255,.7);
  font-size: 12px;
  display: flex; align-items: center; justify-content: center;
}

/* 스크롤 힌트 */
.hero-scroll-hint {
  position: absolute; right: 40px; bottom: 40px;
  display: flex; flex-direction: column; align-items: center; gap: 8px;
  color: rgba(255,255,255,.5); font-size: 10px; letter-spacing: 2px;
}
.scroll-line {
  width: 1px; height: 60px;
  background: linear-gradient(to bottom, rgba(255,255,255,.5), transparent);
  animation: scrollPulse 1.5s ease infinite;
}
@keyframes scrollPulse {
  0%,100% { opacity:.5; transform:scaleY(1); }
  50%      { opacity:1;  transform:scaleY(1.1); }
}

/* ─── 핵심 사업 ──────────────────────────────────────────── */
.business-grid {
  display: grid;
  grid-template-columns: repeat(3,1fr);
  gap: 28px;
}
.business-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 40px 32px;
  border: 1px solid var(--gray-200);
  transition: all var(--mid) var(--ease);
  display: flex; flex-direction: column; gap: 12px;
}
.business-card:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-6px);
  border-color: transparent;
}
.business-icon {
  width: 64px; height: 64px;
  border-radius: var(--radius);
  font-size: 28px;
  display: flex; align-items: center; justify-content: center;
}
.business-title { font-size: 22px; font-weight: 700; color: var(--gray-900); }
.business-desc  { font-size: 15px; color: var(--gray-600); line-height: 1.7; flex: 1; }
.business-more  { font-size: 14px; font-weight: 600; }

/* ─── GUARDiA 섹션 ───────────────────────────────────────── */
.section-guardia { background: var(--gray-50); }
.guardia-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}
.guardia-desc {
  font-size: 16px; color: var(--gray-600);
  line-height: 1.8; margin: 20px 0 28px;
}
.guardia-features {
  display: flex; flex-direction: column; gap: 16px;
  margin-bottom: 32px;
}
.guardia-feature {
  display: flex; align-items: flex-start; gap: 16px;
  padding: 14px 18px;
  background: var(--white);
  border-radius: var(--radius);
  border: 1px solid var(--gray-200);
}
.feature-icon { font-size: 24px; flex-shrink: 0; }
.guardia-feature strong { display: block; font-size: 15px; color: var(--gray-900); }
.guardia-feature p { font-size: 13px; color: var(--gray-600); margin-top: 2px; }
.guardia-actions { display: flex; gap: 12px; flex-wrap: wrap; }

/* 모의 채팅 UI */
.guardia-mockup {
  background: #1e1e2e;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  border: 1px solid rgba(255,255,255,.1);
}
.mockup-bar {
  background: #2d2d3f;
  padding: 10px 16px;
  display: flex; gap: 6px;
}
.mockup-bar span {
  width: 12px; height: 12px;
  border-radius: 50%;
  background: #ff5f56;
}
.mockup-bar span:nth-child(2) { background: #ffbd2e; }
.mockup-bar span:nth-child(3) { background: #27c93f; }
.mockup-content { padding: 20px; }
.mockup-chat { display: flex; flex-direction: column; gap: 12px; }
.chat-msg { max-width: 80%; }
.chat-msg.bot { align-self: flex-start; }
.chat-msg.user { align-self: flex-end; }
.chat-name { font-size: 11px; color: var(--accent); font-weight: 700; display: block; margin-bottom: 4px; }
.chat-msg p {
  padding: 10px 14px;
  border-radius: 12px;
  font-size: 13px; line-height: 1.5;
}
.chat-msg.bot p  { background: #2d2d3f; color: rgba(255,255,255,.9); }
.chat-msg.user p { background: var(--primary); color: #fff; }

/* ─── KPI ────────────────────────────────────────────────── */
.section-kpi {
  background: var(--primary);
  padding: 60px 0;
}
.kpi-grid {
  display: grid;
  grid-template-columns: repeat(4,1fr);
  gap: 0;
}
.kpi-item {
  text-align: center;
  padding: 24px;
  border-right: 1px solid rgba(255,255,255,.2);
}
.kpi-item:last-child { border-right: none; }
.kpi-value {
  font-size: clamp(32px, 4vw, 48px);
  font-weight: 900;
  color: #fff;
}
.kpi-label {
  font-size: 14px; color: rgba(255,255,255,.75);
  margin-top: 6px;
}

/* ─── 소식 ───────────────────────────────────────────────── */
.news-grid {
  display: grid;
  grid-template-columns: repeat(4,1fr);
  gap: 20px;
}
.news-card { display: flex; flex-direction: column; }
.news-card-body { padding: 24px; flex: 1; display: flex; flex-direction: column; gap: 10px; }
.news-title {
  font-size: 16px; font-weight: 700; color: var(--gray-900);
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.news-summary {
  font-size: 13px; color: var(--gray-600);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  flex: 1;
}
.news-card-footer {
  display: flex; justify-content: space-between; align-items: center;
  padding: 12px 24px;
  border-top: 1px solid var(--gray-100);
  font-size: 12px;
}
.news-date { color: var(--gray-400); }
.news-more { color: var(--primary); font-weight: 600; }

/* 스켈레톤 */
.skeleton { animation: pulse 1.5s ease infinite; }
@keyframes pulse { 0%,100%{opacity:.6} 50%{opacity:1} }
.skel-line { background: var(--gray-200); border-radius: 4px; }

/* ─── CTA ────────────────────────────────────────────────── */
.section-cta {
  background: linear-gradient(135deg, var(--secondary), var(--primary-dark));
  padding: 80px 0;
}
.cta-inner {
  display: flex; align-items: center; justify-content: space-between;
  gap: 40px; flex-wrap: wrap;
}
.cta-text h2 { font-size: 28px; font-weight: 800; color: #fff; }
.cta-text p  { color: rgba(255,255,255,.75); margin-top: 8px; font-size: 16px; }
.cta-actions { display: flex; gap: 16px; flex-wrap: wrap; flex-shrink: 0; }

/* ─── 반응형 ──────────────────────────────────────────────── */
@media (max-width: 1024px) {
  .business-grid { grid-template-columns: repeat(2,1fr); }
  .guardia-inner { grid-template-columns: 1fr; gap: 40px; }
  .kpi-grid      { grid-template-columns: repeat(2,1fr); }
  .news-grid     { grid-template-columns: repeat(2,1fr); }
}
@media (max-width: 768px) {
  .hero-title { font-size: 32px; }
  .hero-sub   { font-size: 15px; }
  .hero-scroll-hint { display: none; }
  .business-grid { grid-template-columns: 1fr; }
  .kpi-grid      { grid-template-columns: repeat(2,1fr); }
  .news-grid     { grid-template-columns: 1fr; }
  .cta-inner     { flex-direction: column; text-align: center; }
  .cta-actions   { justify-content: center; }
}
