/* ============================================
   12개국 연결
   ============================================ */
.countries { text-align: center; }
.countries-header { margin-bottom: 64px; }
.countries-header .section-label { margin-inline: auto; }
.countries-header .section-body { max-width: 60ch; }

.countries-stage {
  position: relative;
  min-height: 560px;
  max-width: 900px;
  margin: 0 auto 80px;
}
.countries-web {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}
.countries-hub {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 120px;
  height: 120px;
  background: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 20px 60px rgba(0, 101, 101, 0.20);
  z-index: 2;
  border: 6px solid rgba(0, 101, 101, 0.06);
}
.countries-hub img { width: 100%; height: 100%; object-fit: contain; }
.hub-pulse {
  position: absolute;
  inset: -12px;
  border-radius: 50%;
  border: 2px solid rgba(0, 101, 101, 0.3);
  animation: hub-pulse 3s ease-out infinite;
}
@keyframes hub-pulse {
  0% { transform: scale(1); opacity: 1; }
  100% { transform: scale(1.6); opacity: 0; }
}

.countries-grid {
  position: relative;
  width: 100%;
  height: 100%;
  min-height: 560px;
}
.country-card {
  position: absolute;
  padding: 14px 20px 14px 14px;
  background: rgba(255, 255, 255, 0.9);
  border-radius: var(--radius-md);
  border: 1px solid var(--border-hairline);
  box-shadow: 0 8px 24px rgba(0, 101, 101, 0.08);
  display: flex;
  align-items: center;
  gap: 12px;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  backdrop-filter: blur(10px);
  animation: card-in 0.6s ease-out both;
  animation-delay: var(--delay);
  min-width: 140px;
}
.country-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 40px rgba(0, 101, 101, 0.14);
}
@keyframes card-in {
  from { opacity: 0; transform: translateY(20px) scale(0.9); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}
.country-flag {
  font-size: 26px;
  line-height: 1;
  flex-shrink: 0;
}
.country-info { text-align: left; }
.country-greeting {
  font-size: 14px;
  font-weight: 600;
  color: var(--text-primary);
  line-height: 1.3;
}
.country-name {
  font-size: 11px;
  color: var(--text-tertiary);
  margin-top: 2px;
  display: flex;
  align-items: center;
  gap: 6px;
}
.country-note {
  padding: 2px 6px;
  background: rgba(0, 101, 101, 0.08);
  border-radius: 4px;
  font-size: 10px;
  color: var(--deep-teal);
  font-weight: 600;
}

/* 12개 카드를 원형 배치 */
.country-card:nth-child(1)  { top: 4%;  left: 42%; }
.country-card:nth-child(2)  { top: 12%; left: 68%; }
.country-card:nth-child(3)  { top: 34%; left: 78%; }
.country-card:nth-child(4)  { top: 58%; left: 72%; }
.country-card:nth-child(5)  { top: 78%; left: 54%; }
.country-card:nth-child(6)  { top: 84%; left: 30%; }
.country-card:nth-child(7)  { top: 74%; left: 6%; }
.country-card:nth-child(8)  { top: 52%; left: 0%; }
.country-card:nth-child(9)  { top: 28%; left: 0%; }
.country-card:nth-child(10) { top: 10%; left: 12%; }
.country-card:nth-child(11) { top: 42%; left: 20%; }
.country-card:nth-child(12) { top: 42%; left: 62%; }

@media (max-width: 900px) {
  .countries-stage { min-height: auto; padding: 40px 0; }
  .countries-web { display: none; }
  .countries-hub {
    position: relative;
    top: auto; left: auto;
    transform: none;
    margin: 0 auto 32px;
    width: 96px; height: 96px;
  }
  .countries-grid {
    position: static;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
    gap: 12px;
    min-height: auto;
  }
  .country-card {
    position: static;
    top: auto !important;
    left: auto !important;
  }
}

.countries-app-preview {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
}
.countries-app-caption {
  font-size: 14px;
  color: var(--text-secondary);
}
.privacy-blur-members {
  top: 22%;
  left: 22%;
  width: 60%;
  height: 60%;
  background: transparent;
  backdrop-filter: none;
  /* 이름 부분만 블러 */
}
.privacy-blur-members::before,
.privacy-blur-members::after {
  content: '';
  position: absolute;
  left: 0;
  width: 60%;
  height: 12%;
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  background: rgba(255,255,255,0.35);
  border-radius: 4px;
}
.privacy-blur-members::before { top: 8%; }
.privacy-blur-members::after { top: 26%; }

/* ============================================
   음성/화상 통화
   ============================================ */
.call-features {
  display: grid;
  gap: 14px;
  margin-top: 32px;
}
.call-feature {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 14px 18px;
  background: rgba(255, 255, 255, 0.55);
  border-radius: var(--radius-md);
  border: 1px solid var(--border-hairline);
  backdrop-filter: blur(8px);
}
.call-feature-ico {
  width: 44px;
  height: 44px;
  background: var(--deep-teal);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  flex-shrink: 0;
}
.call-feature strong {
  display: block;
  font-size: 15px;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 2px;
}
.call-feature span {
  font-size: 13px;
  color: var(--text-secondary);
}

.call-viz {
  position: relative;
  height: 460px;
  background: linear-gradient(135deg, rgba(0, 101, 101, 0.05), rgba(187, 232, 228, 0.15));
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-hairline);
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 40px;
  backdrop-filter: blur(10px);
}
.call-avatar {
  position: relative;
  width: 100px;
  height: 100px;
  z-index: 3;
}
.avatar-inner {
  width: 100%;
  height: 100%;
  background: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 44px;
  box-shadow: 0 12px 32px rgba(0, 101, 101, 0.16);
  border: 4px solid rgba(0, 101, 101, 0.08);
  animation: avatar-pulse 3s ease-in-out infinite;
}
.call-avatar-b .avatar-inner { animation-delay: 1.5s; }
@keyframes avatar-pulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.04); }
}
.avatar-ring {
  position: absolute;
  inset: -8px;
  border-radius: 50%;
  border: 2px solid var(--deep-teal);
  opacity: 0.4;
  animation: ring-pulse 3s ease-out infinite;
}
.call-avatar-b .avatar-ring { animation-delay: 1.5s; }
@keyframes ring-pulse {
  0% { transform: scale(1); opacity: 0.5; }
  100% { transform: scale(1.5); opacity: 0; }
}

.call-wave {
  display: flex;
  align-items: center;
  gap: 4px;
  flex: 1;
  justify-content: center;
  height: 60px;
  z-index: 2;
}
.call-wave span {
  display: block;
  width: 4px;
  height: 20%;
  background: linear-gradient(180deg, var(--deep-teal), var(--leaf-green));
  border-radius: 4px;
  animation: wave-bounce 1.2s ease-in-out infinite;
  animation-delay: calc(var(--i) * 0.06s);
}
@keyframes wave-bounce {
  0%, 100% { height: 20%; }
  50% { height: 90%; }
}

.call-caption {
  position: absolute;
  padding: 10px 16px;
  background: #fff;
  border-radius: 14px;
  font-size: 13px;
  font-weight: 500;
  box-shadow: 0 8px 20px rgba(0, 101, 101, 0.14);
  border: 1px solid var(--border-hairline);
  display: flex;
  align-items: center;
  gap: 8px;
  max-width: 200px;
  animation: caption-slide 5s ease-in-out infinite;
}
.call-caption-a { top: 12%; left: 20%; }
.call-caption-b { bottom: 12%; right: 20%; animation-delay: 2.5s; }
@keyframes caption-slide {
  0%, 40%, 100% { opacity: 0; transform: translateY(8px); }
  10%, 30% { opacity: 1; transform: translateY(0); }
}
.lang-tag {
  padding: 2px 6px;
  background: var(--deep-teal);
  color: #fff;
  border-radius: 4px;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.05em;
}
@media (max-width: 900px) {
  .call-viz { height: 360px; padding: 24px; }
  .call-avatar { width: 80px; height: 80px; }
  .avatar-inner { font-size: 34px; }
  .call-caption { max-width: 140px; font-size: 12px; }
}
