/* ─── GUARDiA 상세 페이지 ────────────────────────────────── */

.guardia-page { padding-top: var(--header-h); }

/* ── 히어로 ── */
.gd-hero {
  position: relative;
  background: linear-gradient(135deg, #0a0f24 0%, #001f5c 50%, #0051A2 100%);
  padding: 80px 0 60px;
  overflow: hidden;
}
.gd-hero::before {
  content: '';
  position: absolute; inset: 0;
  background: radial-gradient(ellipse at 70% 50%, rgba(0,163,224,.15) 0%, transparent 70%);
}
.gd-hero-overlay { position: absolute; inset: 0; background: rgba(0,0,0,.2); }
.gd-hero-inner {
  position: relative; z-index: 2;
  display: grid; grid-template-columns: 1fr auto;
  gap: 60px; align-items: center;
}
.gd-hero-title {
  font-size: clamp(40px, 5vw, 64px);
  font-weight: 900; color: #fff;
  margin: 12px 0 16px;
}
.gd-hero-title span { color: var(--accent); }
.gd-hero-sub {
  font-size: 18px; color: rgba(255,255,255,.8);
  line-height: 1.7; margin-bottom: 32px;
}
.gd-hero-sub strong { color: #fff; }
.gd-hero-actions { display: flex; gap: 16px; flex-wrap: wrap; }
.gd-hero-stats {
  display: grid; grid-template-columns: repeat(2,1fr);
  gap: 16px; flex-shrink: 0;
}
.gd-stat {
  background: rgba(255,255,255,.08);
  border: 1px solid rgba(255,255,255,.15);
  border-radius: var(--radius);
  padding: 20px 24px; text-align: center;
}
.gd-stat-val { font-size: 28px; font-weight: 900; color: var(--accent); }
.gd-stat-lab { font-size: 12px; color: rgba(255,255,255,.7); margin-top: 4px; }

/* ── 탭 바 ── */
.gd-tabs-bar {
  background: var(--white);
  border-bottom: 2px solid var(--gray-200);
  position: sticky; top: var(--header-h); z-index: 100;
}
.gd-tabs { display: flex; gap: 0; overflow-x: auto; }
.gd-tab {
  padding: 16px 24px;
  font-size: 14px; font-weight: 600;
  color: var(--gray-600);
  border-bottom: 3px solid transparent;
  margin-bottom: -2px;
  white-space: nowrap;
  transition: all var(--fast);
}
.gd-tab:hover { color: var(--primary); }
.gd-tab.active { color: var(--primary); border-bottom-color: var(--primary); }

/* ── 핵심 기능 ── */
.gd-features-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}
.gd-feature-card {
  padding: 28px;
  display: flex; flex-direction: column; gap: 12px;
}
.gd-feature-icon { font-size: 36px; }
.gd-feature-card h3 { font-size: 16px; font-weight: 700; color: var(--gray-900); }
.gd-feature-card p  { font-size: 14px; color: var(--gray-600); line-height: 1.7; }

/* ── 스크린샷 갤러리 ── */
.gd-screenshots {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-top: 40px;
}
/* 모바일 앱 스크린샷: 세로 비율 5열 */
.gd-screenshots--mobile {
  grid-template-columns: repeat(5, 1fr);
  gap: 14px;
}
.screenshot-card--mobile {
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 8px 32px rgba(0,0,0,.25);
  border: 3px solid #1e293b;
}
.screenshot-card--mobile .screenshot-img {
  width: 100%;
  aspect-ratio: 390/844;
  object-fit: cover;
  display: block;
}
@media (max-width: 900px) {
  .gd-screenshots--mobile { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 600px) {
  .gd-screenshots--mobile { grid-template-columns: repeat(2, 1fr); }
}
.screenshot-card {
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  border: 1px solid var(--gray-200);
  transition: all var(--mid) var(--ease);
}
.screenshot-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}
.screenshot-img {
  width: 100%; aspect-ratio: 16/9;
  object-fit: cover;
  display: block;
}
.screenshot-placeholder {
  width: 100%; aspect-ratio: 16/9;
  background: linear-gradient(135deg, #1e2333, #2d3748);
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 8px; color: var(--gray-400); font-size: 13px;
}
.screenshot-placeholder .icon { font-size: 32px; }
.screenshot-caption {
  padding: 12px 16px;
  font-size: 13px; font-weight: 600; color: var(--gray-700);
  background: var(--white);
}

/* ── 메신저 ── */
.messenger-platforms {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-bottom: 48px;
}
.messenger-platform {
  border-radius: var(--radius);
  padding: 20px;
  display: flex; align-items: center; gap: 14px;
}
.platform-icon { font-size: 28px; flex-shrink: 0; }
.messenger-platform strong { display: block; font-size: 15px; font-weight: 700; }
.messenger-platform p { font-size: 12px; margin-top: 2px; }

.cmd-catalog {
  background: var(--gray-900);
  border-radius: var(--radius-lg);
  padding: 32px;
  margin-bottom: 48px;
}
.cmd-catalog-title {
  color: #fff; font-size: 18px; font-weight: 700;
  margin-bottom: 24px;
  padding-bottom: 12px;
  border-bottom: 1px solid rgba(255,255,255,.1);
}
.cmd-group { margin-bottom: 20px; }
.cmd-group-title {
  font-size: 11px; font-weight: 700;
  letter-spacing: 1.5px; text-transform: uppercase;
  color: var(--accent); margin-bottom: 10px;
}
.cmd-list { display: flex; flex-direction: column; gap: 6px; }
.cmd-item { display: flex; align-items: baseline; gap: 16px; }
.cmd-code {
  font-family: 'Courier New', monospace;
  font-size: 13px; color: #a5f3fc;
  background: rgba(165,243,252,.08);
  padding: 3px 8px; border-radius: 4px;
  white-space: nowrap; flex-shrink: 0;
  min-width: 220px;
}
.cmd-desc { font-size: 13px; color: rgba(255,255,255,.65); }

/* 메신저 데모 */
.messenger-demo { }
.demo-title { font-size: 22px; font-weight: 700; color: var(--gray-900); margin-bottom: 24px; }
.demo-scenario { display: flex; flex-direction: column; gap: 32px; }
.demo-step { display: flex; gap: 20px; }
.step-num {
  width: 40px; height: 40px; flex-shrink: 0;
  background: var(--primary); color: #fff;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-weight: 700;
}
.step-content { flex: 1; }
.step-content strong { font-size: 16px; color: var(--gray-900); display: block; margin-bottom: 6px; }
.step-content > p { font-size: 14px; color: var(--gray-600); margin-bottom: 10px; }
.chat-bubble {
  padding: 12px 16px;
  border-radius: 12px;
  font-size: 13px; line-height: 1.6;
  margin-top: 6px;
  max-width: 520px;
}
.chat-bubble.bot  { background: #1e2333; color: rgba(255,255,255,.9); }
.chat-bubble.user { background: var(--primary-light); color: var(--primary); font-weight: 600; }

/* ── 에디션 ── */
.gd-editions-grid {
  display: grid; grid-template-columns: repeat(3,1fr);
  gap: 24px;
}
.gd-edition-card {
  border: 2px solid var(--gray-200);
  border-radius: var(--radius-lg);
  padding: 36px 28px;
  position: relative;
  display: flex; flex-direction: column; gap: 16px;
  transition: all var(--mid) var(--ease);
}
.gd-edition-card:hover { box-shadow: var(--shadow-lg); }
.gd-edition-card.highlight {
  border-color: var(--primary);
  box-shadow: 0 0 0 4px rgba(0,81,162,.1);
}
.edition-recommend {
  position: absolute; top: -12px; left: 50%;
  transform: translateX(-50%);
  background: var(--primary); color: #fff;
  font-size: 12px; font-weight: 700;
  padding: 3px 14px; border-radius: 20px;
}
.edition-header { display: flex; align-items: center; justify-content: space-between; }
.edition-header h3 { font-size: 22px; font-weight: 900; color: var(--ed-color, var(--gray-900)); }
.edition-badge {
  background: color-mix(in srgb, var(--ed-color, var(--primary)) 15%, transparent);
  color: var(--ed-color, var(--primary));
  padding: 3px 10px; border-radius: 12px;
  font-size: 12px; font-weight: 700;
}
.edition-target { font-size: 13px; color: var(--gray-500); }
.edition-features { display: flex; flex-direction: column; gap: 10px; flex: 1; }
.edition-features li { display: flex; align-items: flex-start; gap: 10px; font-size: 14px; color: var(--gray-700); }
.check { color: var(--ed-color, var(--primary)); font-weight: 700; flex-shrink: 0; }
.edition-cta {
  background: var(--ed-color, var(--primary));
  color: #fff; text-align: center;
  padding: 12px; border-radius: var(--radius);
  font-weight: 600; width: 100%;
  justify-content: center;
}

/* ── 기술 ── */
.gd-tech-grid {
  display: grid; grid-template-columns: repeat(3,1fr); gap: 20px;
}
.gd-tech-card { padding: 28px; }
.tech-category { font-size: 16px; font-weight: 700; color: var(--primary); margin-bottom: 16px; }
.tech-items { display: flex; flex-direction: column; gap: 10px; }
.tech-items li {
  font-size: 14px; color: var(--gray-700);
  padding: 8px 12px;
  background: var(--gray-50); border-radius: var(--radius-sm);
  border-left: 3px solid var(--accent);
}

/* ── 도입 사례 ── */
.gd-usecases { display: grid; grid-template-columns: repeat(3,1fr); gap: 20px; }
.usecase-card { padding: 28px; display: flex; flex-direction: column; gap: 12px; }
.usecase-card h3 { font-size: 17px; font-weight: 700; color: var(--gray-900); }
.usecase-card p  { font-size: 14px; color: var(--gray-600); line-height: 1.7; }

/* ── CTA ── */
.gd-cta {
  background: linear-gradient(135deg, var(--primary-dark), #0a0f24);
  padding: 80px 0; text-align: center;
}
.gd-cta h2 { font-size: 32px; font-weight: 800; color: #fff; margin-bottom: 12px; }
.gd-cta p  { font-size: 17px; color: rgba(255,255,255,.75); margin-bottom: 32px; }
.gd-cta-actions { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }

/* ── 반응형 ── */
@media (max-width: 1024px) {
  .gd-hero-inner    { grid-template-columns: 1fr; }
  .gd-hero-stats    { grid-template-columns: repeat(4,1fr); }
  .gd-features-grid { grid-template-columns: repeat(2,1fr); }
  .gd-screenshots   { grid-template-columns: repeat(2,1fr); }
  .messenger-platforms { grid-template-columns: repeat(2,1fr); }
  .gd-editions-grid { grid-template-columns: 1fr; }
  .gd-tech-grid     { grid-template-columns: repeat(2,1fr); }
  .gd-usecases      { grid-template-columns: 1fr; }
}
@media (max-width: 768px) {
  .gd-features-grid { grid-template-columns: 1fr; }
  .gd-screenshots   { grid-template-columns: 1fr; }
  .messenger-platforms { grid-template-columns: 1fr; }
  .gd-hero-stats    { grid-template-columns: repeat(2,1fr); }
  .gd-tech-grid     { grid-template-columns: 1fr; }
  .cmd-item         { flex-direction: column; gap: 4px; }
  .cmd-code         { min-width: unset; }
}
